/* ==========================================================================
   Stéphanie van Bussel Styling
   --------------------------------------------------------------------------
   1  Tokens            7  Work grid
   2  Reset & base      8  Project detail
   3  Typography        9  Sections
   4  Header & menu    10  Contact
   5  Entry            11  Footer
   6  Hero             12  Responsive & motion
   ========================================================================== */

/* 1 — Tokens ------------------------------------------------------------- */

:root {
  /* surfaces */
  --paper: #FBF9F6;
  --bone: #F1ECE5;
  --line: #E3DCD3;
  --line-soft: #EFE9E1;
  --sand: #DDD3C6;
  --stone: #C9C0B4;
  --clay-pale: #B9AF9F;

  /* ink */
  --ink: #2C2825;
  --ink-70: #5C564F;
  --ink-50: #7A736B;
  --ink-40: #8C857C;
  --clay: #8B6B54;

  /* dark ground */
  --deep: #322C27;
  --darker: #1B1714;
  --ground: #141110;
  --void: #0D0B0A;
  --light: #F5F0E9;

  /* type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-xl: clamp(2.25rem, 7.4vw, 6rem);
  --fs-l: clamp(2.375rem, 4.4vw, 3.875rem);
  --fs-m: clamp(1.875rem, 3vw, 2.875rem);
  --fs-s: clamp(1.5rem, 2vw, 1.875rem);
  --fs-lead: clamp(1.1875rem, 1.5vw, 1.4375rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;
  --fs-label: 0.6875rem;

  /* rhythm */
  --gutter: 2rem;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --max: 80rem;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-both: cubic-bezier(0.72, 0, 0.16, 1);
}

/* 2 — Reset & base ------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 300; font-family: var(--serif); }
p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; transition: color 0.4s ease; }
a:hover { color: var(--clay); }

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

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.on-dark :focus-visible, .entry :focus-visible { outline-color: var(--light); }

.skip {
  position: absolute; top: -100px; left: 1rem; z-index: 200;
  padding: 0.9rem 1.4rem; background: var(--ink); color: var(--paper);
  font-size: var(--fs-label); letter-spacing: 0.18em; text-transform: uppercase;
}
.skip:focus { top: 1rem; color: var(--paper); }

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

/* 3 — Typography --------------------------------------------------------- */

.display-xl { font-family: var(--serif); font-size: var(--fs-xl); line-height: 1.02; letter-spacing: -0.022em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.display-l  { font-family: var(--serif); font-size: var(--fs-l);  line-height: 1.1;  letter-spacing: -0.018em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.display-m  { font-family: var(--serif); font-size: var(--fs-m);  line-height: 1.14; letter-spacing: -0.01em;  text-wrap: balance; }
.display-s  { font-family: var(--serif); font-size: var(--fs-s);  line-height: 1.2; }

.lead {
  font-family: var(--serif); font-size: var(--fs-lead); font-weight: 400;
  line-height: 1.66; color: var(--ink-70); text-wrap: pretty;
}
.body { font-size: var(--fs-body); line-height: 1.9; color: var(--ink-70); text-wrap: pretty; }
.small { font-size: var(--fs-small); line-height: 1.8; color: var(--ink-70); text-wrap: pretty; }
.caption { font-size: var(--fs-caption); line-height: 1.7; color: var(--ink-40); }

.label {
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-50);
}

.measure { max-width: 34rem; }
.measure-wide { max-width: 44rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: 0 2.375rem;
  background: var(--ink); color: var(--paper);
  font-size: var(--fs-label); font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.5s ease, color 0.5s ease;
}
.btn:hover { background: var(--clay); color: var(--paper); }
.btn--light { background: var(--bone); color: var(--ink); }
.btn--light:hover { background: var(--light); color: var(--clay); }
.btn--ghost { background: none; color: inherit; border: 1px solid var(--sand); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.link {
  display: inline-flex; align-items: center; align-self: flex-start;
  min-height: 2.75rem; padding: 0.375rem 0;
  font-size: var(--fs-label); font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1px solid var(--stone);
  transition: border-color 0.5s ease, color 0.4s ease;
}
.link:hover { border-color: var(--clay); }

/* layout */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.bleed { padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.on-dark { background: var(--deep); color: var(--bone); }
.on-dark .lead, .on-dark .body { color: rgba(241, 236, 229, 0.8); }
.on-dark .label { color: rgba(241, 236, 229, 0.5); }
.on-dark a:hover { color: var(--light); }

.grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 4 — Header & menu ------------------------------------------------------ */

.header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 5.5rem; padding-inline: var(--pad);
  color: var(--light);
  border-bottom: 1px solid rgba(245, 240, 233, 0.16);
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}
.header--solid {
  position: fixed; background: rgba(251, 249, 246, 0.94);
  backdrop-filter: blur(12px); color: var(--ink); border-bottom-color: var(--line);
}
.header--plain { position: relative; background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }

.wordmark {
  font-family: var(--serif); font-size: clamp(0.8125rem, 1.2vw, 1.0625rem);
  font-weight: 300; letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap;
}
.header__nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }
.header__nav a {
  font-size: var(--fs-label); font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase;
  padding-block: 0.25rem; border-bottom: 1px solid transparent;
}
.header__nav a[aria-current="page"] { border-bottom-color: currentColor; }
.header__end { display: flex; align-items: center; gap: 2rem; }

.lang { display: flex; align-items: center; gap: 0.5rem; font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase; }
.lang [aria-current] { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lang span { opacity: 0.4; }
.lang a:not([aria-current]) { opacity: 0.6; }

.menu-btn {
  display: none; align-items: center; gap: 0.875rem;
  min-height: 2.75rem; min-width: 2.75rem; justify-content: flex-end;
  font-size: 0.625rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
}
.menu-btn svg { flex: none; }
.menu-btn__label { white-space: nowrap; }

.menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ground); color: var(--light);
  display: flex; flex-direction: column;
  padding: 1.75rem var(--pad) var(--pad);
  opacity: 0; visibility: hidden; transform: translateY(-1.25rem);
  /* visibility is deliberately not transitioned: it must flip the instant the
     attribute changes, so the close button can take focus on open and nothing
     is left keyboard-reachable on close. */
  pointer-events: none;
  transition: opacity 0.55s var(--ease-out), transform 0.7s var(--ease-out);
  overflow-y: auto;
}
.menu[data-open="true"] { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.menu__top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 3.75rem; }
.menu__list { display: flex; flex-direction: column; gap: 0.25rem; margin-block: auto; padding-block: 3rem; }
.menu__list a {
  font-family: var(--serif); font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 300;
  line-height: 1.24; letter-spacing: 0.01em; color: rgba(245, 240, 233, 0.82);
  transition: color 0.5s ease, transform 0.7s var(--ease-out);
}
.menu__list a:hover { color: var(--light); transform: translateX(1rem); }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(245, 240, 233, 0.16); }
.menu__foot a, .menu__foot span { font-size: var(--fs-caption); letter-spacing: 0.1em; color: rgba(245, 240, 233, 0.6); }

body[data-menu="open"] { overflow: hidden; }

/* 5 — Entry -------------------------------------------------------------- */

.entry {
  --sh: 100svh;
  position: relative; width: 100%; height: 100svh; min-height: 34rem;
  overflow: hidden; background: var(--ground);
}

.entry__door {
  position: absolute; top: 0; width: 50%; height: 100%;
  overflow: hidden; transform-origin: top left;
  will-change: transform, filter, opacity;
}
.entry__door--l { left: 0; }
.entry__door--r { left: 50%; }
.entry__door img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }

.entry__frag { position: absolute; overflow: hidden; will-change: transform, filter, opacity; }
.entry__frag img { width: 100%; height: 100%; object-fit: cover; }
.entry__frag--1 { left: 8vw;  top: calc(var(--sh) * 0.10); width: 18vw; aspect-ratio: 4 / 5; }
.entry__frag--2 { left: 44vw; top: calc(var(--sh) * 0.06); width: 17vw; aspect-ratio: 4 / 5; }
.entry__frag--3 { left: 75vw; top: calc(var(--sh) * 0.14); width: 15vw; aspect-ratio: 4 / 5; }
.entry__frag--4 { left: 68vw; top: calc(var(--sh) * 0.63); width: 18vw; aspect-ratio: 5 / 4; }
.entry__frag--5 { left: 13vw; top: calc(var(--sh) * 0.68); width: 16vw; aspect-ratio: 6 / 5; }

.entry__scrim {
  position: absolute; top: 0; width: 50%; height: 100%; pointer-events: none;
  background: linear-gradient(to top, rgba(15, 12, 10, 0.64) 0%, rgba(15, 12, 10, 0.10) 44%, rgba(15, 12, 10, 0.48) 100%);
}
.entry__scrim--l { left: 0; }
.entry__scrim--r { left: 50%; }
.entry__dim {
  position: absolute; top: 0; width: 50%; height: 100%; pointer-events: none;
  background: var(--void); opacity: 0; transition: opacity 1.1s var(--ease-out);
}
.entry__dim--l { left: 0; }
.entry__dim--r { left: 50%; }
.entry__divider {
  position: absolute; left: 50%; top: 0; width: 1px; height: 100%;
  background: rgba(245, 240, 233, 0.22); transform-origin: top center;
}

.entry__label {
  position: absolute; top: 0; height: 100%; width: 50%; z-index: 12;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: clamp(4rem, 16svh, 9.25rem); color: var(--light);
  text-align: center;
}
.entry__label--l { left: 0; }
.entry__label--r { left: 50%; }
.entry__label .word {
  font-family: var(--serif); font-size: clamp(1.75rem, 3.8vw, 3.375rem);
  font-weight: 300; letter-spacing: 0.045em; line-height: 1.1;
}
.entry__label .bar {
  display: block; height: 1px; width: 3.5rem; margin-top: 1.75rem;
  background: rgba(245, 240, 233, 0.55);
  transition: width 0.9s var(--ease-out), background 0.9s ease;
}

.entry__hit { position: absolute; top: 0; width: 50%; height: 100%; z-index: 15; display: block; }
.entry__hit--l { left: 0; }
.entry__hit--r { left: 50%; }

.entry:has(.entry__hit--l:hover) .entry__door--l img,
.entry:has(.entry__hit--r:hover) .entry__door--r img { transform: scale(1.055); }
.entry:has(.entry__hit--l:hover) .entry__dim--r,
.entry:has(.entry__hit--r:hover) .entry__dim--l { opacity: 0.48; }
.entry:has(.entry__hit--l:hover) .entry__label--l .bar,
.entry:has(.entry__hit--r:hover) .entry__label--r .bar { width: 8.25rem; background: rgba(245, 240, 233, 0.9); }

.entry__brand {
  flex: 0 0 auto; text-align: center; pointer-events: none; color: var(--light);
  font-family: var(--serif); font-size: clamp(0.8125rem, 1.4vw, 1.25rem);
  font-weight: 300; letter-spacing: 0.32em; text-transform: uppercase; line-height: 1.4;
}
.entry__brand span {
  display: block; margin-top: 0.875rem; font-family: var(--sans);
  font-size: 0.5625rem; font-weight: 300; letter-spacing: 0.34em;
  color: rgba(245, 240, 233, 0.5);
}

.entry__chrome {
  position: absolute; top: 0; left: 0; right: 0; z-index: 16;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: clamp(1.5rem, 4svh, 2.75rem) var(--pad) 0; color: var(--light);
}
/* the outer two share the leftover space equally, so the wordmark between them
   is centred on the viewport rather than on whatever is left over */
.entry__chrome .lang { flex: 1 1 0; }
.entry__chrome .menu-btn { display: flex; flex: 1 1 0; }

.entry__grain { position: absolute; inset: 0; z-index: 20; }
.entry__veil { position: absolute; inset: 0; z-index: 30; background: var(--void); pointer-events: none; }

/* --- the reveal ---------------------------------------------------------
   Default (no attribute on <html>) is the resting state: two doors, no
   animation. That is also what a visitor with JavaScript off sees, and what
   a returning visitor sees, so the page can never get stuck on black.
   The inline script in <head> adds data-entry-reveal="play" once per session
   before first paint. See _includes/partials/head.njk and js/entry.js.       */

.entry__frag, .entry__veil { display: none; }

[data-entry-reveal="play"] .entry__frag,
[data-entry-reveal="play"] .entry__veil { display: block; }

/* "hold" = the head script has decided to play, but we are waiting for the
   two door images to decode. An opaque veil covers everything, so the visitor
   sees black rather than a flash of the finished page. The head script
   releases it after 1.6s even if js/entry.js never loads. */
[data-entry-reveal="hold"] .entry__veil { display: block; opacity: 1; }
[data-entry-reveal="hold"] .entry__frag { display: block; opacity: 0; }

[data-entry-reveal="play"] .entry__door--l { animation: doorL 4.05s var(--ease-out) both; }
[data-entry-reveal="play"] .entry__door--r { animation: doorR 4.05s var(--ease-out) both; }
[data-entry-reveal="play"] .entry__frag { animation: frag 3.5s var(--ease-out) both; }
[data-entry-reveal="play"] .entry__frag--2 { animation-delay: 0.18s; }
[data-entry-reveal="play"] .entry__frag--3 { animation-delay: 0.36s; }
[data-entry-reveal="play"] .entry__frag--4 { animation-delay: 0.50s; }
[data-entry-reveal="play"] .entry__frag--5 { animation-delay: 0.27s; }
[data-entry-reveal="play"] .entry__scrim { animation: settle 4.95s ease both; }
[data-entry-reveal="play"] .entry__divider { animation: drawline 4.95s var(--ease-out) both; }
[data-entry-reveal="play"] .entry__label,
[data-entry-reveal="play"] .entry__chrome { animation: rise 4.95s var(--ease-out) both; }
[data-entry-reveal="play"] .entry__veil { animation: veil 0.9s ease both; }

@keyframes doorL {
  0%   { opacity: 0; transform: translate(23vw, calc(var(--sh) * 0.36)) scale(0.27); filter: blur(20px); }
  26%  { opacity: 1; }
  48%  { transform: translate(20vw, calc(var(--sh) * 0.28)) scale(0.42); filter: blur(0); }
  67%  { transform: translate(20vw, calc(var(--sh) * 0.28)) scale(0.42); animation-timing-function: var(--ease-both); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); filter: blur(0); }
}
@keyframes doorR {
  0%   { opacity: 0; transform: translate(8vw, calc(var(--sh) * 0.41)) scale(0.27); filter: blur(20px); }
  7%   { opacity: 0; }
  33%  { opacity: 1; }
  55%  { transform: translate(5vw, calc(var(--sh) * 0.33)) scale(0.42); filter: blur(0); }
  67%  { transform: translate(5vw, calc(var(--sh) * 0.33)) scale(0.42); animation-timing-function: var(--ease-both); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); filter: blur(0); }
}
@keyframes frag {
  0%   { opacity: 0; transform: translateY(4svh) scale(0.64); filter: blur(18px); }
  36%  { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  72%  { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-1.5svh) scale(0.8); filter: blur(14px); }
}
@keyframes settle { 0%, 70% { opacity: 0; } 100% { opacity: 1; } }
@keyframes drawline { 0%, 72% { transform: scaleY(0); opacity: 0; } 100% { transform: scaleY(1); opacity: 1; } }
@keyframes rise { 0%, 73% { opacity: 0; transform: translateY(1.25rem); } 100% { opacity: 1; transform: none; } }
@keyframes veil { 0% { opacity: 1; } 100% { opacity: 0; } }

/* 6 — Hero --------------------------------------------------------------- */

.hero {
  position: relative; min-height: clamp(26rem, 62svh, 38.75rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: var(--ground); color: var(--light);
  padding: 9rem var(--pad) clamp(2.5rem, 6vw, 4rem);
}
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); }
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 12, 10, 0.84) 0%, rgba(15, 12, 10, 0.26) 52%, rgba(15, 12, 10, 0.64) 100%);
}
.hero__body { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; max-width: var(--max); margin-inline: auto; width: 100%; }
.hero__label { font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(245, 240, 233, 0.6); margin-bottom: 1.375rem; }
.hero h1 { color: var(--light); }
.hero .lead { color: rgba(245, 240, 233, 0.78); max-width: min(24rem, 100%); }

/* 7 — Work grid ---------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding-block: 2.5rem 1.75rem; border-bottom: 1px solid var(--line); }
.filters .count { margin-left: auto; font-size: var(--fs-caption); letter-spacing: 0.08em; color: var(--ink-40); }
.chip {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.375rem;
  border: 1px solid var(--line); color: var(--ink-70);
  font-size: var(--fs-label); font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tile[hidden] { display: none; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(3rem, 6vw, 6.25rem) var(--gutter); }
.tile { grid-column: var(--col) / span var(--span); margin-top: var(--mt, 0); align-self: start; display: block; }
.tile__frame { overflow: hidden; aspect-ratio: var(--ar, 4 / 5); background: var(--bone); }
.tile__frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.3s var(--ease-out); }
.tile:hover .tile__frame img { transform: scale(1.055); }
.tile__cap {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem;
  padding-top: 1.25rem; border-top: 1px solid var(--line); transition: border-color 0.7s ease;
}
.tile:hover .tile__cap { border-color: var(--clay); }
.tile__name { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.625rem); font-weight: 400; line-height: 1.25; }
.tile__num { font-family: var(--sans); font-size: var(--fs-label); letter-spacing: 0.2em; color: var(--clay-pale); margin-right: 1rem; }
.tile__meta { font-size: var(--fs-label); font-weight: 300; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-40); white-space: nowrap; }

/* 8 — Project detail ----------------------------------------------------- */

.project { display: grid; grid-template-columns: minmax(0, 18.75rem) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: start; }
.meta { border-top: 1px solid var(--line); }
.meta > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.125rem; border-bottom: 1px solid var(--line); }
.meta dt { font-size: 0.625rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-40); }
.meta dd { margin: 0; font-size: var(--fs-small); text-align: right; overflow-wrap: anywhere; }
.stack { display: flex; flex-direction: column; gap: var(--gutter); }
.stack img { width: 100%; }

.next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line);
}
.next__art { display: flex; align-items: center; gap: 2rem; }
.next__art img { width: 8.75rem; aspect-ratio: 4 / 5; object-fit: cover; }
.next:hover img { filter: none; }

/* 9 — Sections ----------------------------------------------------------- */

.split { display: grid; grid-template-columns: minmax(0, 21.25rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 28.75rem); }
.split--form { grid-template-columns: minmax(0, 1fr) minmax(0, 36rem); gap: clamp(2.5rem, 7vw, 7rem); }
.split--portrait { grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: clamp(1.75rem, 3vw, 2.5rem); }
.card { border-top: 1px solid var(--sand); padding-top: 1.5rem; }
.card h3 { font-size: var(--fs-s); font-weight: 400; line-height: 1.3; margin-bottom: 0.75rem; }
.card .num { display: block; font-family: var(--sans); font-size: var(--fs-label); letter-spacing: 0.2em; color: var(--clay-pale); margin-bottom: 1rem; }

.service { display: flex; flex-direction: column; }
.service__frame { overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 2rem; background: var(--bone); }
.service__frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform 1.3s var(--ease-out); }
.service:hover .service__frame img { transform: scale(1.05); }

.credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--gutter); }
.credits > div { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.credits .name { font-family: var(--serif); font-size: 1.375rem; font-weight: 400; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.credits .role { font-size: var(--fs-label); font-weight: 300; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-40); }

.band { position: relative; overflow: hidden; background: var(--darker); color: var(--bone); padding-block: var(--section); }
.band__body { position: relative; }
.tag {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.375rem;
  border: 1px solid rgba(241, 236, 229, 0.24); color: rgba(241, 236, 229, 0.86);
  font-size: var(--fs-label); font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.cta { background: var(--deep); color: var(--bone); padding-block: var(--section); text-align: center; }
.cta h2 { color: var(--light); margin-bottom: 2.5rem; }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.75rem; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.section-head--ruled { padding-bottom: 2rem; border-bottom: 1px solid var(--line); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* 10 — Contact ----------------------------------------------------------- */

.form { background: var(--bone); padding: clamp(1.75rem, 4vw, 3.5rem); }
.field { margin-bottom: 1.75rem; }
.field label, .fieldset legend {
  display: block; font-size: 0.625rem; font-weight: 400; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-50); margin-bottom: 0.625rem; padding: 0;
}
.field input, .field textarea {
  width: 100%; padding: 0 1rem; background: var(--paper); border: 1px solid var(--sand);
  font-family: var(--sans); font-size: 1rem; font-weight: 300; color: var(--ink);
  transition: border-color 0.4s ease;
}
.field input { height: 3.25rem; }
.field textarea { padding: 1rem; line-height: 1.7; resize: vertical; min-height: 8.75rem; }
.field input:focus, .field textarea:focus { border-color: var(--clay); outline: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.fieldset { border: 0; margin: 0 0 1.75rem; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 2.875rem; padding: 0 1.25rem;
  background: var(--paper); border: 1px solid var(--sand); color: var(--ink-70);
  font-size: var(--fs-label); font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* 11 — Footer ------------------------------------------------------------ */

.footer { padding: clamp(3.5rem, 6vw, 5.5rem) var(--pad) 2.5rem; }
.footer__inner { max-width: var(--max); margin-inline: auto; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 12.5rem)); gap: 2.5rem 3rem; padding-bottom: clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.footer__col { display: flex; flex-direction: column; gap: 1rem; }
.footer__col p:first-child { margin-bottom: 0.375rem; }
.footer__col a { font-size: var(--fs-small); }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.75rem; padding-top: 2rem; font-size: var(--fs-label); font-weight: 300; letter-spacing: 0.08em; color: var(--ink-40); }
.footer__bar div { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.monogram { margin-bottom: 1.5rem; }

/* 12 — Responsive & motion ----------------------------------------------- */

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { grid-column: auto / span 1; margin-top: 0; }
  .project { grid-template-columns: 1fr; }
  .split, .split--wide, .split--form, .split--portrait { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .header__nav { display: none; }
  .header .lang, .entry__chrome .lang { display: none; }

  /* Below this width a centred wordmark and a labelled Menu cannot share a
     row — at 390px they overlapped by 13px. The label goes (the icon keeps an
     accessible name), and the entry adopts the same left/right header row as
     every other page. */
  .menu-btn__label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .entry__chrome { align-items: center; }
  .entry__brand {
    flex: 1 1 auto; text-align: left;
    font-size: 0.75rem; letter-spacing: 0.2em;
  }
  .entry__brand span { font-size: 0.4375rem; letter-spacing: 0.24em; margin-top: 0.625rem; }
  .entry__chrome .menu-btn { flex: 0 0 auto; }
  .menu-btn { display: flex; }

  .entry { height: 100svh; }
  .entry__door { width: 100%; height: 50%; left: 0 !important; }
  .entry__door--l { top: 0; }
  .entry__door--r { top: 50%; }
  .entry__scrim, .entry__dim, .entry__label, .entry__hit { width: 100%; height: 50%; left: 0 !important; }
  .entry__scrim--l, .entry__dim--l, .entry__label--l, .entry__hit--l { top: 0; }
  .entry__scrim--r, .entry__dim--r, .entry__label--r, .entry__hit--r { top: 50%; }
  .entry__label { padding-bottom: clamp(2.5rem, 7svh, 4rem); }
  .entry__divider { left: 0; top: 50%; width: 100%; height: 1px; transform-origin: center; }

  .entry__frag--1 { left: 6vw;  top: calc(var(--sh) * 0.11); width: 36vw; }
  .entry__frag--2 { left: 55vw; top: calc(var(--sh) * 0.07); width: 34vw; }
  .entry__frag--3 { display: none; }
  .entry__frag--4 { left: 58vw; top: calc(var(--sh) * 0.75); width: 34vw; }
  .entry__frag--5 { left: 8vw;  top: calc(var(--sh) * 0.71); width: 38vw; }

  [data-entry-reveal="play"] .entry__door--l { animation-name: doorT; }
  [data-entry-reveal="play"] .entry__door--r { animation-name: doorB; }
  [data-entry-reveal="play"] .entry__divider { animation-name: drawlineX; }

  .hero { padding-top: 7.5rem; }
  .field-row { grid-template-columns: 1fr; }
}

@keyframes doorT {
  0%   { opacity: 0; transform: translate(12vw, calc(var(--sh) * 0.32)) scale(0.28); filter: blur(16px); }
  26%  { opacity: 1; }
  48%  { transform: translate(9vw, calc(var(--sh) * 0.25)) scale(0.43); filter: blur(0); }
  67%  { transform: translate(9vw, calc(var(--sh) * 0.25)) scale(0.43); animation-timing-function: var(--ease-both); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); filter: blur(0); }
}
@keyframes doorB {
  0%   { opacity: 0; transform: translate(51vw, calc(var(--sh) * 0.02)) scale(0.28); filter: blur(16px); }
  7%   { opacity: 0; }
  33%  { opacity: 1; }
  55%  { transform: translate(48vw, calc(var(--sh) * -0.025)) scale(0.43); filter: blur(0); }
  67%  { transform: translate(48vw, calc(var(--sh) * -0.025)) scale(0.43); animation-timing-function: var(--ease-both); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); filter: blur(0); }
}
@keyframes drawlineX { 0%, 72% { transform: scaleX(0); opacity: 0; } 100% { transform: scaleX(1); opacity: 1; } }

@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .credits > div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .entry__frag, .entry__veil { display: none !important; }
}

@media print {
  .header, .menu, .entry__veil, .entry__frag, .cta { display: none; }
  body { background: #fff; color: #000; }
}

/* 13 — Arrival ------------------------------------------------------------
   The entry sequence's vocabulary, reused at a fraction of its length:
   images resolve out of depth (small, blurred, transparent) and settle.

   Everything here is gated on [data-reveal-ready], which the inline <head>
   script sets before first paint — and never sets when the visitor asks for
   reduced motion. Without JavaScript the attribute never appears and every
   rule below is inert, so content is visible by default and can never be
   trapped in its hidden state.                                              */

/* the hero resolves as the page arrives */
[data-reveal-ready] .hero__img img {
  animation: arrive 1.15s var(--ease-out) 0.06s both;
}
@keyframes arrive {
  from { opacity: 0; transform: scale(1.07); filter: blur(16px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* hero type rises just behind it */
[data-reveal-ready] .hero__body > * { animation: liftIn 1s var(--ease-out) both; }
[data-reveal-ready] .hero__body > *:nth-child(1) { animation-delay: 0.34s; }
[data-reveal-ready] .hero__body > *:nth-child(2) { animation-delay: 0.46s; }
@keyframes liftIn {
  from { opacity: 0; transform: translateY(1.375rem); }
  to   { opacity: 1; transform: none; }
}

/* everything else resolves as it comes into view */
[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem) scale(0.985);
  filter: blur(10px);
}
[data-reveal-ready] [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity 0.85s var(--ease-out) var(--d, 0s),
    transform 0.95s var(--ease-out) var(--d, 0s),
    filter 0.85s var(--ease-out) var(--d, 0s);
}
/* blur is the expensive part — drop the hint once an element has settled */
[data-reveal-ready] [data-reveal].is-done { filter: none; will-change: auto; }

/* Cross-document view transitions: leaving a door for Mode & Media should
   feel like one move, not two pages. Supporting browsers cross-fade; the
   rest simply navigate. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fadeOut 0.28s var(--ease-out) both; }
::view-transition-new(root) { animation: fadeIn 0.42s var(--ease-out) both; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal-ready] .hero__img img,
  [data-reveal-ready] .hero__body > * { animation: none; }
  [data-reveal-ready] [data-reveal] { opacity: 1; transform: none; filter: none; }
  @view-transition { navigation: none; }
}
