/* ==========================================================================
   PRIMO — Creative Studio, Budapest
   --------------------------------------------------------------------------
   Type:  Tektur 900      — the chamfered display face (wordmark, nav)
          Bebas Neue 400  — everything else

   01  Tokens
   02  Reset & base
   03  Typography
   04  Utilities
   05  Cursor
   06  Preloader & page transition
   07  Header, menu & wordmark
   08  Index — the endless wall
   09  Work — the reel
   10  About
   11  Contact
   12  Footer
   13  Reduced motion & no-JS
   ========================================================================== */

/* ---------- 01  Tokens -------------------------------------------------- */
:root {
  --paper: #ffffff;
  --ink: #000000;
  --ink-60: rgba(0, 0, 0, 0.6);
  --ink-35: rgba(0, 0, 0, 0.35);
  --ink-12: rgba(0, 0, 0, 0.12);
  --accent: #ff3b00;

  --display: 'Tektur', system-ui, sans-serif;
  --ui: 'Bebas Neue', 'Arial Narrow', sans-serif;

  --gutter: clamp(18px, 3.4vw, 56px);
  --ch: 14px;                    /* chamfer — echoes the letterforms */

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-back: cubic-bezier(0.34, 1.4, 0.5, 1);

  --header-h: 92px;
}

/* ---------- 02  Reset & base -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Index and Work own their viewport; the document itself never scrolls. */
body.is-fixed { overflow: hidden; height: 100%; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  transform: translateY(-180%);
  transition: transform 0.4s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 03  Typography ---------------------------------------------- */
.meta {
  font-size: clamp(0.78rem, 0.9vw, 0.95rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; flex: none; }

.h-section {
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}

.h-lead {
  font-size: clamp(1.5rem, 2.9vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

.p-body {
  max-width: 42ch;
  color: var(--ink-60);
  margin: 0;
  letter-spacing: 0.05em;
}

/* ---------- 04  Utilities ----------------------------------------------- */
.shell { padding-inline: var(--gutter); width: 100%; }
.section { position: relative; padding-block: clamp(60px, 9vw, 140px); }
.rule { height: 1px; background: var(--ink-12); border: 0; margin: 0; }

.chamfer {
  clip-path: polygon(
    var(--ch) 0%, 100% 0%, 100% calc(100% - var(--ch)),
    calc(100% - var(--ch)) 100%, 0% 100%, 0% var(--ch)
  );
}

.media { position: relative; overflow: hidden; background: #f1f1f1; }
.media img { width: 100%; height: 100%; object-fit: cover; filter: none; }

/* --- reveals (IntersectionObserver adds .is-in) --- */
.js [data-anim='fade'] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-anim='fade'].is-in { opacity: 1; transform: none; }

.js [data-anim='clip'] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-io);
  transition-delay: var(--d, 0ms);
}
.js [data-anim='clip'].is-in { clip-path: inset(0 0 0% 0); }
.js [data-anim='clip'] img {
  transform: scale(1.26);
  transition: transform 1.5s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-anim='clip'].is-in img { transform: scale(1); }

/* per-character build-up */
.ch { display: inline-block; }
.js [data-chars] .ch {
  transform: translateY(0.9em);
  opacity: 0;
  transition: transform 0.9s var(--ease-out), opacity 0.5s linear;
  transition-delay: calc(var(--i) * 70ms + var(--d, 0ms));
}
.js [data-chars].is-in .ch { transform: none; opacity: 1; }

/* --- marquee --- */
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee__track { display: flex; flex: none; min-width: 100%; will-change: transform; }
.marquee__track > * { flex: none; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  padding-right: clamp(24px, 4vw, 60px);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 4.4rem);
  line-height: 1;
  white-space: nowrap;
}
.marquee__item::after {
  content: '';
  width: clamp(12px, 1.4vw, 22px);
  height: clamp(12px, 1.4vw, 22px);
  background: var(--accent);
  flex: none;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* --- link & button --- */
.link { position: relative; display: inline-block; padding-bottom: 2px; }
.link::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.55s var(--ease-io);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

.btn {
  --ch: 12px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-io);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled::before { transform: translateY(101%); }

/* ---------- 05  Cursor --------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 900;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor__dot {
  position: absolute;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  background: #fff;
  border-radius: 50%;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out),
              margin 0.4s var(--ease-out), opacity 0.3s linear;
}
.cursor__label {
  position: absolute;
  top: 0; left: 0;
  transform: translate(-50%, -50%) scale(0.4);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s linear, transform 0.45s var(--ease-back);
  white-space: nowrap;
}
.cursor.is-hover .cursor__dot { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor.is-label .cursor__dot { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
.cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-hidden .cursor__dot, .cursor.is-hidden .cursor__label { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- 06  Preloader & transition ----------------------------------- */
/* The whole loading screen: the wordmark, and the percentage underneath it.
   Nothing else sits on this screen. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--paper);
  display: grid;
  place-items: center;
  padding: var(--gutter);
  /* it wipes itself away — no hand-off to the black panels, which used to
     put one solid black frame between the loader and the page */
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s var(--ease-io);
}
.loader.is-done { pointer-events: none; }

.loader__stack {
  display: grid;
  justify-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  text-align: center;
}
.loader__mark {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.5rem, 13vw, 11rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
}
.loader__mark .ch {
  transform: translateY(0.9em);
  opacity: 0;
  animation: chIn 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 80ms + 100ms);
}
@keyframes chIn { to { transform: none; opacity: 1; } }

.loader__count {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.1rem, 2.6vw, 2.1rem);
  line-height: 1;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  animation: countIn 0.6s var(--ease-out) 0.55s forwards;
}
.loader__count::after { content: '%'; }
@keyframes countIn { to { opacity: 1; } }

.transition {
  position: fixed;
  inset: 0;
  z-index: 890;    /* above the expanded view, so a wipe covers everything */
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* the body is held hidden until the page is laid out, and visibility is
     inherited — the panels opt back in so they can cover that gap */
  visibility: visible;
}
.transition__panel {
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom center;
  /* 1px wider than its track, so sub-pixel rounding cannot leave a seam */
  width: calc(100% + 1px);
}

/* Arriving from another page. The inline head script sets this before the
   document has a body, so the very first frame is already black — no white
   gap, and no half-built page showing through while the JS lays it out. */
html.is-covered .transition__panel {
  transform: scaleY(1);
  transform-origin: top center;
}

.transition.is-out .transition__panel {
  animation: panelIn 0.7s var(--ease-io) forwards;
  animation-delay: calc(var(--i) * 55ms);
}
.transition.is-in .transition__panel {
  transform: scaleY(1);
  transform-origin: top center;
  animation: panelOut 0.7s var(--ease-io) forwards;
  animation-delay: calc(var(--i) * 55ms);
}
@keyframes panelIn { to { transform: scaleY(1); } }
@keyframes panelOut { to { transform: scaleY(0); } }

/* ---------- 07  Header, menu & wordmark ---------------------------------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 700;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  padding-inline: var(--gutter);
  mix-blend-mode: difference;
  color: #fff;
}
.hdr.is-menu { mix-blend-mode: normal; color: var(--ink); }
@media (max-width: 760px) { .hdr .is-opt { display: none; } }

.grid-btn { position: relative; width: 46px; height: 46px; cursor: pointer; flex: none; }
.grid-btn i {
  position: absolute;
  width: 18px; height: 18px;
  background: currentColor;
  transition: transform 0.62s var(--ease-io), width 0.62s var(--ease-io), height 0.62s var(--ease-io);
}
.grid-btn i:nth-child(1) { top: 2px; left: 2px; }
.grid-btn i:nth-child(2) { top: 2px; right: 2px; }
.grid-btn i:nth-child(3) { bottom: 2px; left: 2px; }
.grid-btn i:nth-child(4) { bottom: 2px; right: 2px; }
.grid-btn:hover i:nth-child(1) { transform: translate(-3px, -3px); }
.grid-btn:hover i:nth-child(2) { transform: translate(3px, -3px); }
.grid-btn:hover i:nth-child(3) { transform: translate(-3px, 3px); }
.grid-btn:hover i:nth-child(4) { transform: translate(3px, 3px); }

.is-open .grid-btn i { width: 26px; height: 5px; }
.is-open .grid-btn i:nth-child(1) { transform: translate(8px, 18.5px) rotate(45deg); }
.is-open .grid-btn i:nth-child(2) { transform: translate(-8px, 18.5px) rotate(-45deg); }
.is-open .grid-btn i:nth-child(3) { transform: translate(8px, -18.5px) rotate(-45deg); }
.is-open .grid-btn i:nth-child(4) { transform: translate(-8px, -18.5px) rotate(45deg); }

/* --- the wordmark: bottom-left, a hair off the corner, over everything ---
   The inset has to be measured from the *ink*, not from the box. At
   line-height 1 Tektur leaves 0.15em of descent space under the baseline and
   the P carries a 0.031em left side bearing, and both of those scale with the
   type — so a plain `left/bottom` inset would drift as the wordmark grows,
   pinching the bottom gap shut on wide screens. Cancelling them first means
   --mark-inset is the real, literal gap at every size. */
.mark--menu { position: absolute; z-index: 1; }

.mark {
  --mark-inset: clamp(16px, 1.6vw, 28px);
  position: fixed;
  left: calc(var(--mark-inset) - 0.031em);    /* − the P's side bearing */
  bottom: calc(var(--mark-inset) - 0.15em);   /* − the line box's descent */
  z-index: 600;
  mix-blend-mode: difference;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4.5rem, 19vw, 18rem);
  line-height: 1;
  letter-spacing: -0.012em;
  /* difference blending inverts whatever passes behind, so the source
     colour must be white: white-on-white reads black, and it flips to
     the negative of any picture drifting underneath */
  color: #fff;
  margin: 0;
}

/* --- menu --- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 690;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--gutter) calc(var(--gutter) + 130px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease-io), visibility 0s linear 0.9s;
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0% 0); visibility: visible; transition-delay: 0s; }

.menu__nav { display: flex; flex-direction: column; }
.menu__link { display: block; width: fit-content; max-width: 100%; overflow: hidden; }
.menu__link > span {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3rem, 11vw, 10rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease-out), color 0.4s linear;
  transition-delay: var(--d, 0ms);
}
.menu.is-open .menu__link > span { transform: none; }
.menu__link:hover > span, .menu__link:focus-visible > span { color: var(--accent); }
.menu__link[aria-current='page'] > span { color: var(--ink-35); }

.menu__foot {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: clamp(18px, 2vw, 30px);
  display: flex;
  justify-content: flex-end;
}
.menu__legal {
  display: flex;
  gap: clamp(14px, 2vw, 34px);
  flex-wrap: wrap;
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.7s linear 0.5s;
}
.menu.is-open .menu__legal { opacity: 1; }

/* ---------- 08  Index — the endless wall ----------------------------------- */
/* Pictures scattered across a plane with even gaps. JS places and wraps them;
   the group drifts on its own and can be scrolled or dragged anywhere.
   Named .wall, not .field — the contact form already owns .field. */
.wall {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
  cursor: grab;
  touch-action: none;
}
.wall.is-drag { cursor: grabbing; }

.wall__it {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  will-change: transform;
  /* width and position come from JS */
}
.wall__it .media { width: 100%; aspect-ratio: var(--ar, 3 / 4); }
.wall__it img {
  transition: transform 0.9s var(--ease-out);
  user-select: none;
  -webkit-user-drag: none;
}
.wall__it:hover img { transform: scale(1.05); }

/* With no JS nothing positions them, so let them simply stack. */
.no-js .wall { position: static; height: auto; }
.no-js .wall__it { position: relative; width: 100%; }

/* ---------- 09  Work — the reel ------------------------------------------ */
.reel { position: fixed; inset: 0; overflow: hidden; }
.reel__stage { position: absolute; inset: 0; }

.reel__it {
  position: absolute;
  left: 0; right: 0; top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.6vw, 46px);
  padding-inline: var(--gutter);
  will-change: transform;
}

/* Sized from viewport height — this layout is driven vertically, so the
   shot has to keep its proportion to the screen, not to its width. */
.reel__media {
  display: block;
  height: clamp(230px, 56svh, 640px);
  max-width: 30vw;
  aspect-ratio: 3 / 4;
  transform-origin: center center;
  will-change: transform;
  position: relative;
}
.reel__media .media { width: 100%; height: 100%; }
/* JS drifts the picture inside the frame as the shot travels; the overscale
   is the headroom that keeps an edge from showing. */
.reel__media .media img { transform: scale(1.18); will-change: transform; }

/* Set large — the title and the year are half the page, not a caption. A long
   title takes a second line rather than running off the screen; the year never
   needs one. */
.reel__title, .reel__year {
  font-size: clamp(3.4rem, 7.4vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  will-change: opacity;
}
.reel__title { text-align: right; }
.reel__year { text-align: left; white-space: nowrap; }

/* corner bracket, as on the reference project image */
.reel__bracket {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 28px; height: 28px;
  color: var(--accent);
  fill: currentColor;
  opacity: 0;
  transform: scale(0.55) rotate(-25deg);
  transition: opacity 0.4s linear, transform 0.55s var(--ease-back);
}
.reel__media:hover .reel__bracket { opacity: 1; transform: none; }

.reel__hint {
  position: fixed;
  right: var(--gutter);
  bottom: calc(var(--gutter) + 2px);
  z-index: 500;
  mix-blend-mode: difference;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.reel__hint i {
  display: block;
  width: 1px; height: 30px;
  background: currentColor;
  animation: hint 1.9s var(--ease-io) infinite;
}
@keyframes hint {
  0%   { transform: scaleY(0); transform-origin: top center; }
  45%  { transform: scaleY(1); transform-origin: top center; }
  55%  { transform: scaleY(1); transform-origin: bottom center; }
  100% { transform: scaleY(0); transform-origin: bottom center; }
}

@media (max-width: 860px) {
  .reel__media { width: min(58vw, 330px); max-width: 66vw; }
  .reel__it { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .reel__title, .reel__year { text-align: center; font-size: clamp(2.6rem, 11vw, 4.2rem); }
  .reel__title { order: -1; }
  .reel__hint { display: none; }
}

/* --- expanded view --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 880;
  display: grid;
  place-items: center;
}
.lightbox[hidden] { display: none; }

.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: var(--paper);
  border: 0;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.45s linear;
}
.lightbox.is-open .lightbox__scrim { opacity: 1; }

/* Closing, the backdrop holds a beat and then goes, so the picture is nearly
   home before the reel behind it comes back into view. */
.lightbox.is-closing { pointer-events: none; }
.lightbox.is-closing .lightbox__scrim { transition: opacity 0.4s linear 0.12s; }
.lightbox.is-closing .lightbox__cap,
.lightbox.is-closing .lightbox__close { transition: opacity 0.2s linear; }

.lightbox__fig {
  position: relative;
  margin: 0;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.lightbox__img {
  max-width: min(94vw, 1240px);
  max-height: 84svh;
  width: auto;
  height: auto;
  object-fit: contain;
  will-change: transform;
  transform-origin: center center;
}
.lightbox__cap {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s linear 0.28s, transform 0.5s var(--ease-out) 0.28s;
}
.lightbox.is-open .lightbox__cap { opacity: 1; transform: none; }
.lightbox__year { color: var(--ink-35); }

.lightbox__close {
  position: absolute;
  top: var(--gutter);
  right: var(--gutter);
  width: 46px;
  height: 46px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s linear 0.2s, transform 0.5s var(--ease-out);
}
.lightbox.is-open .lightbox__close { opacity: 1; }
.lightbox__close:hover { transform: rotate(90deg); }
.lightbox__close i {
  position: absolute;
  top: 50%; left: 50%;
  width: 28px; height: 4px;
  margin: -2px 0 0 -14px;
  background: var(--ink);
}
.lightbox__close i:nth-child(1) { transform: rotate(45deg); }
.lightbox__close i:nth-child(2) { transform: rotate(-45deg); }

body.is-boxed { overflow: hidden; }

/* ---------- 10  About ----------------------------------------------------- */
/* The one page that is mostly words, so it is built from a small kit: a hero,
   a keyed two-column block, a ruled list, a row of facts and a picture strip.
   Contact borrows the hero. */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(30px, 6vw, 90px));
  padding-bottom: clamp(20px, 3vw, 44px);
}
.page-hero__title,
.contact-hero__title {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3rem, 14vw, 13rem);
  line-height: 1;
  letter-spacing: -0.012em;
  margin: 0;
}

/* A label in the left margin, the passage beside it. */
.duo {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 60px);
  align-items: start;
}
.duo__key { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 10px); }
.duo__body { grid-column: 5 / span 8; display: grid; gap: clamp(16px, 2.2vw, 28px); }
@media (max-width: 900px) {
  .duo__key { grid-column: 1 / -1; position: static; }
  .duo__body { grid-column: 1 / -1; }
}

/* A ruled list — disciplines, then the way of working. */
.list { border-top: 1px solid var(--ink-12); }
.list__row {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(12px, 2.4vw, 40px);
  align-items: baseline;
  padding-block: clamp(16px, 2.2vw, 32px);
  border-bottom: 1px solid var(--ink-12);
  transition: color 0.45s linear;
}
.list__row:hover { color: var(--accent); }
.list__no {
  color: var(--ink-35);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  transition: color 0.45s linear;
}
.list__row:hover .list__no { color: inherit; }
.list__name {
  margin: 0;
  font-size: clamp(1.7rem, 4.4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.list__note { margin: 0; color: var(--ink-60); letter-spacing: 0.05em; max-width: 40ch; }
.list__row:hover .list__note { color: inherit; }
@media (max-width: 760px) {
  .list__row { grid-template-columns: 2.6rem minmax(0, 1fr); row-gap: 8px; }
  .list__note { grid-column: 2 / -1; }
}

/* The hard numbers, side by side. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(22px, 3vw, 46px);
}
.facts__k {
  margin: 0 0 8px;
  color: var(--ink-35);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.facts__v {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  white-space: nowrap;
  line-height: 1;
}

/* Names, set as a run of text rather than a grid of logos. */
.names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(18px, 2.8vw, 44px);
  font-size: clamp(1.15rem, 2.2vw, 1.9rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.names span { color: var(--ink-60); transition: color 0.35s linear; }
.names span:hover { color: var(--ink); }

/* Three pictures across, two on a narrow screen. */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.8vw, 26px); }
.strip .media { aspect-ratio: 3 / 4; }
@media (max-width: 700px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > :last-child { display: none; }
}

/* The closing invitation. */
.cta { display: grid; gap: clamp(20px, 3vw, 40px); justify-items: start; }

/* ---------- 11  Contact --------------------------------------------------- */
/* Contact shares the About hero; only the class name differs. */
.contact-hero {
  padding-top: calc(var(--header-h) + clamp(30px, 6vw, 90px));
  padding-bottom: clamp(20px, 3vw, 44px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: start;
}
.contact-grid__form { grid-column: 1 / span 7; }
.contact-grid__info { grid-column: 9 / span 4; }
@media (max-width: 960px) { .contact-grid__form, .contact-grid__info { grid-column: 1 / -1; } }

.mail {
  display: inline-block;
  position: relative;
  overflow: hidden;
  font-size: clamp(1.5rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.mail span { display: block; transition: transform 0.6s var(--ease-io); }
.mail span:last-child { position: absolute; inset: 0; color: var(--accent); transform: translateY(100%); }
.mail:hover span:first-child { transform: translateY(-100%); }
.mail:hover span:last-child { transform: none; }

.form { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 34px); }
@media (max-width: 620px) { .form__pair { grid-template-columns: 1fr; } }

.field { position: relative; }
.field__input {
  width: 100%;
  padding: 26px 0 10px;
  background: none;
  border: 0;
  border-bottom: 2px solid var(--ink-12);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  border-radius: 0;
}
.field__input:focus { outline: none; }
textarea.field__input { resize: none; min-height: 128px; line-height: 1.3; }

.field__label {
  position: absolute;
  left: 0; top: 26px;
  color: var(--ink-35);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.45s var(--ease-out), color 0.35s linear;
}
.field.is-filled .field__label,
.field__input:focus + .field__label {
  transform: translateY(-24px) scale(0.72);
  color: var(--ink);
}

.field__line {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-io), background 0.3s linear;
}
.field__input:focus ~ .field__line { transform: scaleX(1); }
.field.is-error .field__line { background: var(--accent); transform: scaleX(1); }

.field__err {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  min-height: 1.2em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s linear, transform 0.3s var(--ease-out);
}
.field.is-error .field__err { opacity: 1; transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  --ch: 9px;
  padding: 10px 20px;
  border: 2px solid var(--ink-12);
  color: var(--ink-60);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.35s linear, border-color 0.35s linear, background 0.35s linear;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.form-done { display: none; padding: clamp(24px, 4vw, 50px) 0; }
.form-done.is-on { display: block; }
.form-done__mark {
  width: 72px; height: 72px;
  background: var(--ink);
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  color: var(--paper);
  animation: pop 0.7s var(--ease-back) both;
}
@keyframes pop { from { transform: scale(0) rotate(-25deg); } to { transform: none; } }

.info { display: grid; gap: clamp(22px, 2.6vw, 34px); }
.info__block { display: grid; gap: 6px; }
.info__block dt, .info__k {
  color: var(--ink-35);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0;
}
.info__block dd { margin: 0; }

.clock {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0;
}
.clock i {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s var(--ease-io) infinite;
  flex: none;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }

.socials { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }

/* ---------- 12  Footer ---------------------------------------------------- */
.ftr {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(40px, 6vw, 90px);
  overflow: clip;
}
.ftr .rule { background: rgba(255, 255, 255, 0.16); }
.ftr__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 44px);
  padding-bottom: clamp(30px, 5vw, 70px);
}
.ftr__col { grid-column: span 3; display: grid; gap: 8px; align-content: start; }
.ftr__col h2 {
  margin: 0 0 4px;
  font: inherit;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
@media (max-width: 900px) { .ftr__col { grid-column: span 6; } }
@media (max-width: 540px) { .ftr__col { grid-column: 1 / -1; } }

.ftr__mark {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(4rem, 19.5vw, 19rem);
  line-height: 0.8;
  letter-spacing: -0.012em;
  margin: 0 0 -0.05em -0.05em;
}
.ftr__base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 20px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.ftr__legal { display: flex; gap: clamp(14px, 2vw, 30px); flex-wrap: wrap; }
.ftr a:hover { color: var(--accent); }

/* ---------- 13  Reduced motion & no-JS ------------------------------------ */
.no-js .loader, .no-js .cursor, .no-js .transition { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-anim] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-chars] .ch { opacity: 1 !important; transform: none !important; }
  .cursor { display: none; }
  /* the field stops drifting; it becomes a still wall of pictures */
  .wall { cursor: default; }
}
