/* neok architecture — onepager */

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f8f5f2;
  --surface: #efeae1;
  --ink: #1f1c18;
  --muted: #685f56;
  --faint: #a99d8f;
  --line: #e2dbcf;
  --accent: #ea4429;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 11vw, 150px);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Quicksand", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
address {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

::selection {
  background: #f2c8bf;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
}

.skip:focus {
  top: 12px;
}

/* ---------- Links & buttons ---------- */

.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), background-size 0.4s var(--ease);
}

.link:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.btn--solid {
  background: var(--ink);
  color: var(--bg);
}

.btn--solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn .arrow,
.link .arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.btn:hover .arrow,
.link:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.header.is-scrolled {
  background: rgba(248, 245, 242, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.logo img {
  height: 26px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.nav__link {
  position: relative;
  padding: 6px 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang {
  position: relative;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang__btn svg {
  width: 10px;
  height: 10px;
  transition: transform 0.3s var(--ease);
}

.lang__btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang__list {
  position: absolute;
  right: -12px;
  top: calc(100% + 6px);
  min-width: 168px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(31, 28, 24, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.lang__list.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang__opt {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px 10px;
  font-size: 0.9rem;
  text-align: left;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}

.lang__opt span:last-child {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.lang__opt:hover,
.lang__opt[aria-current="true"] {
  color: var(--ink);
  background: var(--surface);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  position: relative;
}

.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.burger span:first-child {
  top: 18px;
}

.burger span:last-child {
  top: 25px;
}

.burger[aria-expanded="true"] span:first-child {
  top: 21.5px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  top: 21.5px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: calc(var(--header-h) + clamp(40px, 6.5vw, 88px));
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  max-width: 17ch;
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(2.3rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 48px;
  margin-top: clamp(28px, 4vw, 48px);
}

.hero__lead {
  max-width: 34ch;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero__note {
  grid-column: 1 / -1;
  margin-top: -12px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
}

.hero__media {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--surface);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 14px;
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Intro animation (only with JS, only when motion is allowed) */
.js .hero [data-intro] {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}

.js .hero__media[data-intro] {
  transform: none;
  clip-path: inset(0 0 100% 0);
  animation: unveil 1.3s var(--ease) forwards;
  animation-delay: 520ms;
}

.js .hero__media img {
  transform: scale(1.06);
  animation: settle 2.2s var(--ease) 520ms forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes unveil {
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes settle {
  to {
    transform: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-top: var(--section);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px 48px;
  align-items: end;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section__head--solo {
  grid-template-columns: 1fr;
}

.section__title {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section__num {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section__intro {
  max-width: 52ch;
  color: var(--muted);
}

.label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Projects ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px);
}

.project {
  display: block;
  width: 100%;
  text-align: left;
}

.project--wide {
  grid-column: 1 / -1;
}

.project__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #fff;
}

.project--wide .project__media {
  aspect-ratio: 2 / 1;
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.project__media--plan img {
  object-fit: contain;
  padding: 6%;
}

.project:hover .project__media img,
.project:focus-visible .project__media img {
  transform: scale(1.03);
}

.project__count {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 8px 14px;
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.project:hover .project__count,
.project:focus-visible .project__count {
  opacity: 1;
  transform: none;
}

.project__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
}

.project__name {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.project__info {
  font-size: 0.88rem;
  color: var(--muted);
}

.project--cta .project__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  transition: background-color 0.5s var(--ease);
}

.project--cta .project__media span {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 300;
}

.project--cta .arrow {
  display: inline-block;
  margin-left: 10px;
  color: var(--accent);
  transition: transform 0.4s var(--ease);
}

.project--cta:hover .arrow {
  transform: translateX(8px);
}

.project--cta:hover .project__media {
  background: #e8e1d5;
}

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 40px);
  counter-reset: service;
}

.services li {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 1.12rem;
  line-height: 1.4;
  counter-increment: service;
}

.services li::before {
  content: counter(service, decimal-leading-zero);
  flex: none;
  width: 2.2em;
  padding-top: 0.35em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(20px, 3vw, 40px);
  margin-top: clamp(48px, 7vw, 88px);
}

.col h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

.col .label {
  display: block;
  margin-top: 6px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.88rem;
  font-weight: 500;
}

.col p {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.dashes {
  margin-top: 18px;
}

.dashes li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.dashes li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px clamp(20px, 3vw, 40px);
}

.step {
  position: relative;
  padding-top: 28px;
}

.step::before,
.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
}

.step::before {
  right: 0;
  background: var(--line);
}

.step::after {
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 180ms + 200ms);
}

.step.is-in::after {
  transform: scaleX(0.18);
}

html:not(.js) .step::after {
  transform: scaleX(0.18);
}

.step__num {
  display: block;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}

.step h3 {
  margin-top: 20px;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
}

/* ---------- Office ---------- */

.office {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 7vw, 110px);
  align-items: start;
}

.portrait {
  position: relative;
  max-width: 420px;
}

.portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.portrait figcaption {
  position: relative;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.office__lead {
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 300;
  line-height: 1.45;
}

.office__name {
  margin-top: clamp(32px, 4vw, 48px);
  font-size: 1.15rem;
  font-weight: 500;
}

.office__born {
  font-size: 0.95rem;
  color: var(--muted);
}

.vita {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(20px, 3vw, 40px);
  margin-top: 32px;
}

.vita ul {
  margin-top: 12px;
}

.vita li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.tags {
  margin-top: clamp(32px, 4vw, 48px);
}

.tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tags li {
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 880px;
  margin-left: auto;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent);
}

.faq__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transition: transform 0.4s var(--ease);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq details[open] .faq__icon::after {
  transform: rotate(0);
}

.faq__body {
  max-width: 62ch;
  padding-bottom: 26px;
  color: var(--muted);
}

@supports (interpolate-size: allow-keywords) {
  .faq details {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete;
  }

  .faq details[open]::details-content {
    height: auto;
  }
}

/* ---------- Contact ---------- */

.contact {
  margin-top: var(--section);
  padding-block: clamp(72px, 10vw, 130px);
  background: var(--ink);
  color: var(--bg);
}

.contact .section__head {
  border-top-color: rgba(248, 245, 242, 0.18);
  grid-template-columns: 1fr;
}

.contact h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 245, 242, 0.65);
}

.contact__lead {
  max-width: 20ch;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 44px);
}

.contact .btn {
  border-color: rgba(248, 245, 242, 0.4);
}

.contact .btn--solid {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--ink);
}

.contact .btn--solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.contact .btn--ghost:hover {
  border-color: var(--bg);
  color: var(--bg);
}

.contact__note {
  max-width: 62ch;
  margin-top: 28px;
  font-size: 0.95rem;
  color: rgba(248, 245, 242, 0.65);
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px clamp(20px, 3vw, 40px);
  margin-top: clamp(56px, 8vw, 100px);
  padding-top: 28px;
  border-top: 1px solid rgba(248, 245, 242, 0.18);
}

.contact__grid .label {
  display: block;
  margin-bottom: 12px;
  color: rgba(248, 245, 242, 0.55);
}

.contact__grid a {
  transition: color 0.3s var(--ease);
}

.contact__grid a:hover {
  color: var(--accent);
}

.contact__grid .sub {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: rgba(248, 245, 242, 0.65);
}

.contact__grid .sub a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
}

.hours {
  font-variant-numeric: tabular-nums;
}

/* ---------- Footer ---------- */

.footer {
  padding-block: 36px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer__brand > a:first-child img {
  height: 20px;
  width: auto;
}

.footer__badges {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__badges img {
  height: 44px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.footer__badges a:hover img {
  opacity: 1;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.footer__links a,
.footer__links button {
  transition: color 0.3s var(--ease);
}

.footer__links a:hover,
.footer__links button:hover {
  color: var(--accent);
}

.footer__links svg {
  width: 16px;
  height: 16px;
}

.footer__copy {
  flex-basis: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
}

/* ---------- Mobile call bar ---------- */

.callbar {
  display: none;
}

/* ---------- Cookie banner ---------- */

.cookie {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 200;
  max-width: 380px;
  margin-left: auto;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px -20px rgba(31, 28, 24, 0.35);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
  animation: rise 0.6s var(--ease) both;
  transform: translateY(18px);
  opacity: 0;
}

.cookie[hidden] {
  display: none;
}

.cookie a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.cookie .btn {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.8rem;
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.35s var(--ease), overlay 0.35s allow-discrete, display 0.35s allow-discrete;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  opacity: 1;
}

@starting-style {
  .lightbox[open] {
    opacity: 0;
  }
}

.lightbox::backdrop {
  background: #fff;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  padding-inline: var(--gutter);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.lightbox__count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  transition: color 0.3s;
}

.lightbox__close:hover {
  color: var(--accent);
}

.lightbox__close svg {
  width: 18px;
  height: 18px;
}

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 var(--gutter) clamp(20px, 4vh, 48px);
  touch-action: pan-y;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s var(--ease);
}

.lightbox__stage img.is-loading {
  opacity: 0;
}

.lightbox__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  padding-inline: clamp(8px, 2vw, 24px);
}

.lightbox__nav--prev {
  left: 0;
  justify-content: flex-start;
  cursor: w-resize;
}

.lightbox__nav--next {
  right: 0;
  justify-content: flex-end;
  cursor: e-resize;
}

.lightbox__nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(248, 245, 242, 0.92);
  border: 1px solid var(--line);
  transition: border-color 0.3s, color 0.3s;
}

.lightbox__nav:hover span {
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox__nav svg {
  width: 16px;
  height: 16px;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px));
  padding-bottom: var(--section);
}

.legal h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.legal h2 {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 1.25rem;
  font-weight: 500;
}

.legal p {
  margin-top: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.legal p:first-of-type {
  margin-top: 24px;
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back {
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .burger {
    display: block;
  }

  .header__cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px var(--gutter) 40px;
    background: var(--bg);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--ink);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    transition-delay: calc(var(--i, 0) * 50ms + 80ms);
  }

  .nav.is-open .nav__link {
    opacity: 1;
    transform: none;
  }

  .nav__link::after {
    display: none;
  }

  .header.is-menu {
    background: var(--bg);
  }

  .hero__row {
    grid-template-columns: 1fr;
  }

  .hero__note {
    margin-top: -16px;
    text-align: left;
  }

  .hero__media {
    aspect-ratio: 3 / 2;
  }

  .section__head {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .callbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%);
    transition: transform 0.45s var(--ease);
  }

  .callbar.is-visible {
    transform: none;
  }

  .callbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    font-size: 0.9rem;
    font-weight: 600;
  }

  .callbar a + a {
    background: var(--ink);
    color: var(--bg);
  }

  .callbar svg {
    width: 16px;
    height: 16px;
  }

  .cookie {
    bottom: 70px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .projects,
  .services,
  .columns,
  .vita {
    grid-template-columns: 1fr;
  }

  .project--wide .project__media,
  .project__media {
    aspect-ratio: 3 / 2;
  }

  .project__count {
    opacity: 1;
    transform: none;
  }

  .hero__actions .btn,
  .contact__actions .btn {
    flex: 1 1 100%;
  }

  .portrait {
    max-width: 300px;
  }

  .faq summary {
    font-size: 1.05rem;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox__nav span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

@media print {
  .header,
  .callbar,
  .cookie {
    display: none;
  }
}
