/* Companion site — light / dusk / night. One page that goes from day to night. */
/* Palette colors live in theme.css (generated from content/site.json); this file holds layout and type. */
:root {
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --line-night: color-mix(in srgb, var(--night-ink) 16%, transparent);

  /* Fonts: theme.css (generated from theme.fonts) overrides --display and --body; these are fallbacks. */
  --display: "Bodoni Moda", "Didot", serif;
  --body: "EB Garamond", "Garamond", Georgia, serif;
  --text: var(--body);
  --ui: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.88rem);
  --step-0: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem);
  --step-1: clamp(1.4rem, 1.2rem + 0.7vw, 1.8rem);
  --step-2: clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --step-3: clamp(2.6rem, 1.8rem + 3.6vw, 4.75rem);
  --step-chapter: clamp(3.4rem, 1.6rem + 7vw, 8.5rem);
  --step-hero: clamp(3.6rem, 1.4rem + 10vw, 11.5rem);

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);

  --ease-out: cubic-bezier(.165, .84, .44, 1);
  --ease-out-expo: cubic-bezier(.19, 1, .22, 1);
  --ease-in-out: cubic-bezier(.645, .045, .355, 1);
  --dur-1: 140ms; --dur-2: 220ms; --dur-3: 420ms; --dur-hero: 1400ms;

  --radius: 2px;
  --shadow: 0 18px 40px -18px color-mix(in srgb, var(--ink) 35%, transparent);

  /* Header follows the chapter on screen (set on <html data-world>) */
  --hdr-bg: color-mix(in srgb, var(--paper) 86%, transparent);
  --hdr-ink: var(--ink);
  --hdr-soft: var(--ink-soft);
  --hdr-accent: var(--rose);
  --hdr-line: var(--line);
}
html[data-world="dusk"] {
  --hdr-bg: color-mix(in srgb, var(--dusk) 82%, transparent);
  --hdr-ink: var(--night-ink); --hdr-soft: var(--night-soft); --hdr-accent: var(--blush); --hdr-line: var(--line-night);
}
html[data-world="night"] {
  --hdr-bg: color-mix(in srgb, var(--night) 84%, transparent);
  --hdr-ink: var(--night-ink); --hdr-soft: var(--night-soft); --hdr-accent: var(--blush); --hdr-line: var(--line-night);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button, input, select, textarea, .nav, .lang, .btn, .chapter__eyebrow, .hero__role, .reel__eyebrow, .field label, .card__list dt, .terms span, .form__note, .form__status, .field__error, .foot__small, .foot__nav, .menu__nav, .menu-btn, .more, .next__link svg { font-family: var(--ui); }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::selection { background: var(--rose); color: var(--paper); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
html { scrollbar-color: var(--ink-soft) var(--paper-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-3); }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; }

.skip { position: absolute; left: var(--s-4); top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--s-2) var(--s-4); }
.skip:focus { top: var(--s-4); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-6);
  border-radius: 999px; border: 1px solid var(--ink);
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease, border-color var(--dur-2) ease, transform var(--dur-1) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--rose); border-color: var(--rose); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s-5);
  padding: var(--s-3) var(--gutter);
  background: var(--hdr-bg); color: var(--hdr-ink);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-3) ease, color var(--dur-3) ease, border-color var(--dur-2) ease;
}
.top.is-scrolled { border-bottom-color: var(--hdr-line); }
.wordmark { font-family: var(--display); font-size: 1.45rem; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; }
.wordmark em { color: var(--hdr-accent); transition: color var(--dur-3) ease; }
.nav { display: flex; gap: var(--s-5); font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: var(--s-2) 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav__cta { color: var(--hdr-accent); }
.lang { display: flex; gap: 2px; font-size: var(--step--1); }
.lang button {
  min-width: 44px; min-height: 44px; border: 0; background: none; cursor: pointer;
  letter-spacing: 0.08em; color: var(--hdr-soft); border-radius: 999px;
}
.lang button[aria-pressed="true"] { color: var(--hdr-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 0.35em; }
.menu-btn {
  display: none; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0 var(--s-2);
  border: 0; background: none; cursor: pointer; color: var(--hdr-ink);
  font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase;
}
.menu-btn__bar { display: block; position: relative; width: 22px; height: 1px; background: currentColor; margin-top: -6px; }
.menu-btn__bar::after { content: ""; position: absolute; left: 0; top: 6px; width: 70%; height: 1px; background: currentColor; }
.menu-btn__bar + .menu-btn__bar { display: none; }
.menu-btn__label { order: -1; }
.menu { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: var(--night); color: var(--night-ink); }
.menu::backdrop { background: color-mix(in srgb, var(--night) 60%, transparent); }
.menu__inner { min-height: 100%; display: grid; align-content: center; gap: var(--s-7); padding: var(--s-8) var(--gutter); position: relative; }
.menu__close { position: absolute; top: var(--s-4); right: var(--gutter); width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--night-ink) 30%, transparent); border-radius: 999px; background: none; color: inherit; cursor: pointer; }
.menu__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.menu__nav { display: grid; gap: var(--s-2); }
.menu__nav a { font-family: var(--display); font-style: italic; font-size: var(--step-3); line-height: 1.1; text-decoration: none; padding: var(--s-2) 0; border-bottom: 1px solid var(--line-night); }
.menu__nav a[aria-current="page"] { color: var(--blush); }
.lang--menu { gap: var(--s-4); }
.lang--menu button { min-width: auto; padding: 0; color: var(--night-soft); }
.lang--menu button[aria-pressed="true"] { color: var(--night-ink); }
.menu__mail { font-family: var(--text); font-size: var(--step-0); color: var(--night-soft); }
.menu__mail a { color: var(--night-ink); }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] { animation: lb-in var(--dur-2) var(--ease-out); }
  .menu[open] .menu__nav a { animation: fade-up 600ms var(--ease-out-expo) both; }
  .menu[open] .menu__nav a:nth-child(2) { animation-delay: 50ms; } .menu[open] .menu__nav a:nth-child(3) { animation-delay: 100ms; }
  .menu[open] .menu__nav a:nth-child(4) { animation-delay: 150ms; } .menu[open] .menu__nav a:nth-child(5) { animation-delay: 200ms; } .menu[open] .menu__nav a:nth-child(6) { animation-delay: 250ms; }
}

/* Hero: a diptych. Day on the left, night on the right, the name across the seam. */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto;
  min-height: calc(100dvh - 4.5rem);
  position: relative; overflow: clip; isolation: isolate;
}
.hero__half { margin: 0; grid-row: 1 / -1; position: relative; overflow: hidden; }
.hero__half--light { grid-column: 1; background: var(--paper-2); }
.hero__half--dark { grid-column: 2; background: var(--night); }
.hero__half img, .hero__half video { width: 100%; height: 100%; object-fit: cover; }
.hero__half picture { display: block; height: 100%; }
.hero__half--light img { object-position: 60% 20%; }
.hero__half--dark img { object-position: 50% 32%; filter: brightness(0.84) saturate(0.9) contrast(1.04); }
/* a little fog on each side so the name reads */
.hero__half::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero__half--light::after { background: linear-gradient(to top, color-mix(in srgb, var(--paper) 85%, transparent), transparent 55%); }
.hero__half--dark::after { background: linear-gradient(to top, color-mix(in srgb, var(--night) 90%, transparent), transparent 55%); }

.hero__name {
  grid-column: 1 / -1; grid-row: 1; align-self: center; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 0.18em;
  font-size: var(--step-hero); line-height: 0.86; letter-spacing: -0.035em;
  pointer-events: none; margin: 0;
}
.hero__name .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__name .line:nth-child(1) { text-align: right; color: var(--ink); }
.hero__name .line:nth-child(2) { text-align: left; color: var(--blush); }
.hero__name .line > * { display: inline-block; }
.hero__name em { font-style: italic; }

.hero__text {
  grid-column: 1 / -1; grid-row: 2; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-6);
  padding: var(--s-6) var(--gutter) var(--s-7);
}
.hero__role { grid-column: 1; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--s-3); }
.hero__lede { grid-column: 1; font-family: var(--text); font-weight: 400; font-size: var(--step-1); line-height: 1.4; max-width: 30ch; color: var(--ink); }
.hero__actions { grid-column: 2; grid-row: 1 / span 2; align-self: end; justify-self: start; display: flex; flex-wrap: wrap; gap: var(--s-3); padding-left: var(--s-2); }
.hero__actions .btn--solid { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.hero__actions .btn--solid:hover { background: var(--blush); border-color: var(--blush); }
.hero__actions .btn--line { color: var(--night-ink); border-color: color-mix(in srgb, var(--night-ink) 50%, transparent); }
.hero__actions .btn--line:hover { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }

/* The authored moment: both halves develop, the name rises into the seam */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__half { clip-path: inset(100% 0 0 0); animation: develop var(--dur-hero) var(--ease-out-expo) 120ms forwards; }
  .js .hero__half--dark { animation-delay: 260ms; }
  .js .hero__half img { transform: scale(1.12); filter: saturate(0.6) brightness(1.08); animation: settle 2200ms var(--ease-out-expo) 120ms forwards; }
  .js .hero__name .line > * { transform: translateY(105%); animation: rise 1100ms var(--ease-out-expo) forwards; }
  .js .hero__name .line:nth-child(1) > * { animation-delay: 520ms; }
  .js .hero__name .line:nth-child(2) > * { animation-delay: 680ms; }
  .js .hero__role, .js .hero__lede, .js .hero__actions { opacity: 0; transform: translateY(12px); animation: fade-up 800ms var(--ease-out-expo) forwards; }
  .js .hero__role { animation-delay: 900ms; }
  .js .hero__lede { animation-delay: 1000ms; }
  .js .hero__actions { animation-delay: 1100ms; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero__half--light img { animation: drift-up linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero__half--dark img, .hero__half--dark video { animation: drift-up-slow linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero__name .line:nth-child(1) { animation: split-left linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero__name .line:nth-child(2) { animation: split-right linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero__text { animation: fade-out linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
  }
}
@keyframes drift-up { to { translate: 0 -12vh; } }
@keyframes drift-up-slow { to { translate: 0 -6vh; } }
@keyframes split-left { to { translate: -6vw 0; opacity: 0.2; } }
@keyframes split-right { to { translate: 6vw 0; opacity: 0.2; } }
@keyframes fade-out { to { opacity: 0; translate: 0 -3vh; } }
@keyframes develop { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); filter: none; } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* Chapters */
.chapter { padding: var(--s-9) var(--gutter); }
.chapter__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4) var(--s-8); align-items: end; margin-bottom: var(--s-7); }
.chapter__eyebrow { grid-column: 1 / -1; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-soft); }
.chapter h2 { font-size: var(--step-chapter); font-style: italic; letter-spacing: -0.03em; line-height: 0.9; color: var(--c-ink); }
.chapter__lede { font-family: var(--text); font-weight: 400; font-size: var(--step-1); line-height: 1.4; max-width: 36ch; color: var(--c-ink); justify-self: end; }

/* A chapter's palette follows its world (light / dusk / night) */
.chapter[data-world="light"] { --c-ink: var(--ink); --c-soft: var(--ink-soft); --tile-bg: var(--paper-2); background: var(--paper); }
.chapter[data-world="dusk"] {
  --c-ink: var(--ink); --c-soft: var(--ink-soft); --tile-bg: var(--paper-2);
  background: linear-gradient(to bottom, var(--paper) 0%, var(--paper-2) 18%, var(--blush) 34%, var(--dusk) 62%, var(--night) 100%);
}
.chapter[data-world="night"] { --c-ink: var(--night-ink); --c-soft: var(--night-soft); --tile-bg: var(--night-2); background: var(--night); color: var(--night-ink); }
.chapter[data-world="night"] ::selection { background: var(--blush); color: var(--night); }
.chapter[data-world="night"] h2, .chapter[data-world="night"] h1 { color: var(--blush); }
.chapter h1 { font-size: var(--step-chapter); font-style: italic; letter-spacing: -0.03em; line-height: 0.9; color: var(--c-ink); }
.chapter--page { padding-top: var(--s-8); min-height: 70vh; }
.chapter--page .chapter__head { margin-bottom: var(--s-8); }
.chapter__more { margin-top: var(--s-6); display: flex; justify-content: flex-end; }
/* A dusk chapter ends on --night: its "See all" link sits there, so it takes the night ink. */
.chapter[data-world="dusk"] .chapter__more .more { color: var(--night-ink); }
.more { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink, inherit); padding: var(--s-2) 0; }
.more svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-2) var(--ease-out); }
.more:hover svg, .next__link:hover svg { transform: translateX(6px); }
.about__more { margin-top: var(--s-5); }
.about__more .more { color: var(--blush); }
.next { padding: var(--s-9) var(--gutter); display: grid; gap: var(--s-4); }
.next--light { background: var(--paper); color: var(--ink); --c-soft: var(--ink-soft); }
.next--dusk { background: linear-gradient(to bottom, var(--night) 0%, var(--dusk) 100%); color: var(--night-ink); --c-soft: var(--night-soft); }
.next--night { background: var(--night); color: var(--night-ink); --c-soft: var(--night-soft); }
.chapter[data-world="light"] + .next--dusk { background: linear-gradient(to bottom, var(--paper) 0%, var(--blush) 40%, var(--dusk) 100%); }
.next__link { display: inline-flex; align-items: baseline; gap: var(--s-5); text-decoration: none; font-family: var(--display); font-style: italic; font-size: var(--step-chapter); line-height: 0.95; letter-spacing: -0.03em; }
.next__link svg { width: 0.5em; height: 0.5em; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; align-self: center; transition: transform var(--dur-3) var(--ease-out); }
.cta { background: var(--night); color: var(--night-ink); padding: var(--s-9) var(--gutter); display: grid; gap: var(--s-4); justify-items: start; border-top: 1px solid var(--line-night); --c-soft: var(--night-soft); }
.cta h2 { max-width: 14ch; }
.cta__body { max-width: 44ch; color: var(--night-soft); margin-bottom: var(--s-3); }
.btn--light { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.btn--light:hover { background: var(--blush); border-color: var(--blush); }
.about--teaser { border-top: 1px solid var(--line-night); }
.foot__nav { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-5); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; flex-basis: 100%; }
.foot__nav a { text-decoration: none; color: var(--night-soft); }
.foot__nav a:hover { color: var(--night-ink); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4); grid-auto-flow: dense; }
.grid li { grid-column: span 4; }
.grid li.w-7 { grid-column: span 7; } .grid li.w-5 { grid-column: span 5; }
.grid li.w-6 { grid-column: span 6; } .grid li.w-3 { grid-column: span 3; }
.tile {
  display: block; width: 100%; padding: 0; border: 0; background: var(--tile-bg); cursor: zoom-in;
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); position: relative;
}
/* Row heights match: a 7-col tile is as tall as its 5-col 4:5 neighbour */
.w-7 .tile { aspect-ratio: 28 / 25; }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: transform 900ms var(--ease-out); }
.tile:hover img { transform: scale(1.035); }
.tile::after {
  content: attr(data-caption); position: absolute; left: var(--s-4); bottom: var(--s-3);
  font-family: var(--display); font-style: italic; font-size: var(--step-0); color: var(--paper);
  text-shadow: 0 1px 12px color-mix(in srgb, var(--night) 60%, transparent);
  opacity: 0; transform: translateY(6px); transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out);
}
.tile:hover::after, .tile:focus-visible::after { opacity: 1; transform: none; }
.chapter[data-world="night"] :focus-visible { outline-color: var(--blush); }
@media (prefers-reduced-motion: no-preference) {
  .js .grid li { opacity: 0; transform: translateY(28px) scale(0.97); transition: opacity 900ms var(--ease-out-expo), transform 900ms var(--ease-out-expo); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .grid li.is-in { opacity: 1; transform: none; }
  .js .chapter__head > * { opacity: 0; transform: translateX(-36px); transition: opacity 900ms var(--ease-out-expo), transform 1100ms var(--ease-out-expo); }
  .js .chapter[data-world="night"] .chapter__head > * { transform: translateX(36px); }
  .js .chapter__head > *:nth-child(2) { transition-delay: 90ms; }
  .js .chapter__head > *:nth-child(3) { transition-delay: 200ms; }
  .js .chapter__head.is-in > * { opacity: 1; transform: none; }
  .js .about__photo, .js .about__text > *, .js .card > *, .js .work__intro > * { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease-out-expo), transform 900ms var(--ease-out-expo); }
  .js .about__text > *:nth-child(2) { transition-delay: 100ms; } .js .about__text > *:nth-child(3) { transition-delay: 180ms; } .js .about__text > *:nth-child(4) { transition-delay: 260ms; }
  .js .is-in > .about__photo, .js .about.is-in .about__text > *, .js .card.is-in > *, .js .work.is-in .work__intro > * { opacity: 1; transform: none; }
  .js .cta > *, .js .next > * { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease-out-expo), transform 900ms var(--ease-out-expo); }
  .js .cta > *:nth-child(2), .js .next > *:nth-child(2) { transition-delay: 100ms; } .js .cta > *:nth-child(3) { transition-delay: 180ms; } .js .cta > *:nth-child(4) { transition-delay: 260ms; }
  .js .cta.is-in > *, .js .next.is-in > * { opacity: 1; transform: none; }
}

/* The reel: a film that only moves when you scroll */
.reel { height: 260vh; position: relative; background: var(--paper-2); }
.reel__stick { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.reel__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.reel__stick::before { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; pointer-events: none; background: linear-gradient(to top, color-mix(in srgb, var(--night) 78%, transparent), transparent); }
.reel__caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(1.5rem, 5vh, 3rem);
  display: grid; gap: var(--s-2); color: var(--night-ink);
}
.reel__eyebrow { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; }
.reel__hint { font-family: var(--display); font-style: italic; font-size: var(--step-1); }
.reel__stick::after {
  content: ""; position: absolute; left: var(--gutter); bottom: calc(clamp(1.5rem, 5vh, 3rem) - 0.9rem);
  width: var(--reel-progress, 0%); max-width: 14rem; height: 1px; background: var(--night-ink); opacity: 0.9;
}
/* reel--blur: a portrait film. Full-bleed on phones, letterboxed over its own blur on wide screens */
.reel--blur { background: var(--night); }
.reel--blur .reel__stick { background: var(--night); }
.reel__backdrop { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(32px) brightness(0.38) saturate(0.7); display: none; }
.reel--blur .reel__video { position: relative; object-fit: cover; object-position: 50% 28%; }
.reel--blur .reel__stick::before { background: linear-gradient(to top, color-mix(in srgb, var(--night) 88%, transparent), transparent); }
@media (min-width: 961px) {
  .reel__backdrop { display: block; }
  .reel--blur .reel__video { object-fit: contain; object-position: 50% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .reel { height: auto; }
  /* relative, not static: the stick stays the containing block, so its overflow clips the blurred backdrop */
  .reel__stick { position: relative; height: 70vh; }
  .reel__hint { display: none; }
}

/* About — night */
.about {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8);
  align-items: center; padding: var(--s-9) var(--gutter);
  background: var(--night-2); color: var(--night-ink);
}
.about ::selection { background: var(--blush); color: var(--night); }
.about__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.about__text h2, .about__text h1 { margin-bottom: var(--s-6); max-width: 12ch; }
.about__text .chapter__eyebrow, .work__intro .chapter__eyebrow { margin-bottom: var(--s-4); color: var(--night-soft); }
.about__text p { max-width: 58ch; margin-bottom: var(--s-4); color: var(--night-soft); }
.about__text p:first-of-type { font-family: var(--display); font-size: var(--step-1); line-height: 1.4; color: var(--night-ink); }

/* Comp card — night */
.card { padding: var(--s-9) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-7) var(--s-8); background: var(--night); color: var(--night-ink); }
.card ::selection { background: var(--blush); color: var(--night); }
.card h2 { grid-row: span 2; }
.card__list { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--night-ink); }
.card__list div { padding: var(--s-5) var(--s-4) var(--s-5) 0; border-bottom: 1px solid var(--line-night); }
.card__list dt { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-soft); margin-bottom: var(--s-2); }
.card__list dd { margin: 0; font-family: var(--display); font-size: var(--step-1); font-variant-numeric: lining-nums tabular-nums; }
.terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.terms li { display: grid; gap: var(--s-2); }
.terms strong { font-family: var(--display); font-weight: 400; font-style: italic; font-size: var(--step-1); color: var(--blush); }
.terms span { color: var(--night-soft); font-family: var(--text); font-size: var(--step-0); line-height: 1.5; }

/* Work with me — night */
.work {
  background: var(--night); color: var(--night-ink);
  padding: var(--s-9) var(--gutter);
  border-top: 1px solid var(--line-night);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--s-8);
}
.work ::selection { background: var(--blush); color: var(--night); }
.work__intro h2 { margin-bottom: var(--s-5); }
.work__intro p { color: var(--night-soft); max-width: 36ch; }
.work__mail { margin-top: var(--s-6); font-family: var(--display); font-size: var(--step-1); }
.work__mail a { color: var(--night-ink); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-5); }
.field { display: grid; gap: var(--s-2); grid-column: span 2; }
.field--half { grid-column: span 1; }
.field label { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--night-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) 0;
  background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--night-ink) 35%, transparent); border-radius: 0;
  color: var(--night-ink); caret-color: var(--blush);
  transition: border-color var(--dur-2) ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6b3c2' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; background-size: 18px; cursor: pointer; }
.field select option { background: var(--night-2); color: var(--night-ink); }
.field input[type="date"] { color-scheme: dark; }
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--blush); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--blush); }
.field [aria-invalid="true"] { border-bottom-color: #f0a3a3; }
.field__error { color: #f4b4b4; font-size: var(--step--1); }
.form__foot { grid-column: span 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-3); }
.work .btn--solid { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.work .btn--solid:hover { background: var(--blush); border-color: var(--blush); }
.work :focus-visible, .about :focus-visible, .card :focus-visible, .foot :focus-visible { outline-color: var(--blush); }
.form__note { color: var(--night-soft); font-size: var(--step--1); }
.form__status { flex-basis: 100%; color: var(--blush); font-size: var(--step--1); min-height: 1.5em; }

/* Footer */
.foot { background: var(--night); color: var(--night-soft); padding: var(--s-7) var(--gutter) var(--s-6); border-top: 1px solid var(--line-night); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-4) var(--s-6); }
.foot__name { font-family: var(--display); font-size: var(--step-2); color: var(--night-ink); margin-right: auto; }
.foot__name em { color: var(--blush); }
.foot a { color: var(--night-ink); }
.foot__small { font-size: var(--step--1); flex-basis: 100%; }

/* Age gate: split like the hero */
.gate { border: 0; padding: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: linear-gradient(to right, var(--paper) 50%, var(--night) 50%); color: var(--ink); }
.gate::backdrop { background: var(--paper); }
.gate__inner { min-height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; gap: var(--s-5); padding: var(--s-7) var(--gutter); background: linear-gradient(to right, var(--paper) 50%, var(--night) 50%); }
.gate__mark { font-family: var(--display); font-style: italic; font-size: 4.5rem; line-height: 1; display: flex; }
.gate__mark span:first-child { color: var(--rose); }
.gate__mark span:last-child { color: var(--blush); }
.gate h2 { font-size: var(--step-2); background: linear-gradient(to right, var(--ink) 50%, var(--night-ink) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 var(--s-4); }
.gate p { max-width: 38ch; color: var(--ink-soft); background: var(--paper); padding: var(--s-3) var(--s-5); border-radius: var(--radius); }
.gate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-3); }
.gate .btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gate .btn--line { background: var(--night); color: var(--night-ink); border-color: var(--night-ink); }
.gate .btn--line:hover { background: var(--night-ink); color: var(--night); }
.lang--gate button { min-width: auto; padding: 0 var(--s-4); background: var(--paper); color: var(--ink-soft); }
.lang--gate button[aria-pressed="true"] { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .gate[open] .gate__inner > * { animation: fade-up 700ms var(--ease-out-expo) both; }
  .gate[open] .gate__inner > *:nth-child(2) { animation-delay: 80ms; }
  .gate[open] .gate__inner > *:nth-child(3) { animation-delay: 140ms; }
  .gate[open] .gate__inner > *:nth-child(n+4) { animation-delay: 200ms; }
}

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%;
  background: color-mix(in srgb, var(--night) 96%, transparent); color: var(--night-ink);
}
.lightbox::backdrop { background: transparent; }
.lightbox__fig { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: var(--s-4); padding: var(--s-8) var(--s-9) var(--s-6); }
.lightbox__fig img { max-height: 80dvh; width: auto; max-width: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { font-family: var(--display); font-style: italic; color: var(--night-soft); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--night-ink) 30%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--night) 50%, transparent);
  color: var(--night-ink); cursor: pointer; transition: background-color var(--dur-2) ease, border-color var(--dur-2) ease;
}
.lb-btn:hover { background: var(--night-ink); color: var(--night); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: var(--s-5); right: var(--s-5); }
.lb-prev { left: var(--s-5); top: 50%; translate: 0 -50%; }
.lb-next { right: var(--s-5); top: 50%; translate: 0 -50%; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in var(--dur-2) var(--ease-out); }
  .lightbox[open] .lightbox__fig img { animation: lb-img 320ms var(--ease-out); }
  #lb-img.is-swapping { opacity: 0; transition: opacity 120ms ease; }
}
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-img { from { opacity: 0; transform: scale(0.97); } }

/* Responsive */
@media (max-width: 960px) {
  .nav, .top .lang { display: none; }
  .menu-btn { display: inline-flex; }
  .chapter__more { justify-content: flex-start; }
  .next__link { font-size: var(--step-3); }
  .hero { min-height: auto; grid-template-rows: auto auto; }
  .hero__half { grid-row: 1; aspect-ratio: 3 / 4; }
  .hero__name { grid-row: 1; align-self: end; padding-bottom: var(--s-4); }
  .hero__text { grid-template-columns: 1fr; padding-top: var(--s-5); padding-bottom: var(--s-7); }
  .hero__actions { grid-column: 1; grid-row: auto; margin-top: var(--s-5); padding-left: 0; }
  .hero__actions .btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .hero__actions .btn--solid:hover { background: var(--rose); border-color: var(--rose); }
  .hero__actions .btn--line { color: var(--ink); border-color: var(--ink); }
  .hero__actions .btn--line:hover { background: var(--ink); color: var(--paper); }
  .reel { height: 220vh; }
  .chapter { padding-top: var(--s-8); padding-bottom: var(--s-8); }
  .chapter__head { grid-template-columns: 1fr; margin-bottom: var(--s-6); }
  .chapter__lede { justify-self: start; }
  .about, .card, .work { grid-template-columns: 1fr; gap: var(--s-6); }
  .card h2 { grid-row: auto; }
  .card__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms { grid-template-columns: 1fr; gap: var(--s-4); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .grid li, .grid li.w-3, .grid li.w-5, .grid li.w-6 { grid-column: span 1; }
  .grid li.w-7 { grid-column: span 2; }
  .grid li:last-child:nth-child(6) { grid-column: span 2; }
  .grid li:last-child:nth-child(6) .tile { aspect-ratio: 28 / 25; }
  .lightbox__fig { padding: var(--s-8) var(--s-3) var(--s-6); }
  .lb-prev, .lb-next { top: auto; bottom: var(--s-4); translate: none; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
}
/* Split hero on phones: the two halves of the name sit side by side in half the width each, so the size follows
   the width (a long surname — "Adeyemi" at 390 px — was clipped by the line's overflow) */
@media (max-width: 960px) {
  html:not([data-hero="full"]):not([data-hero="stacked"]) .hero__name { font-size: min(var(--step-hero), 12.5vw); }
}
/* Reduced motion on phones: no scroll-driven film, so no 220vh scroll track either (it would stay empty) */
@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .reel { height: auto; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .field, .field--half, .form__foot { grid-column: span 1; }
  .top { gap: var(--s-3); }
  .gate__inner { background: var(--paper); }
  .gate h2 { background: none; color: var(--ink); }
  .gate { background: var(--paper); }
  .gate__mark span:last-child { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .grid li, .js .chapter__head > *, .js .about__photo, .js .about__text > *, .js .card > *, .js .work__intro > *, .js .cta > *, .js .next > * { opacity: 1; transform: none; }
  .hero__video { display: none; }
}

/* The closing invitation breathes: the studio loop, dimmed, behind the question */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta > * { position: relative; z-index: 1; }
.cta__film, .js .cta > .cta__film { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transform: none; filter: brightness(0.42) saturate(0.7); transition: opacity 1400ms ease; }
.js .cta > .cta__film.is-playing { opacity: 1; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to right, color-mix(in srgb, var(--night) 85%, transparent), color-mix(in srgb, var(--night) 45%, transparent)); }
@media (prefers-reduced-motion: reduce) { .cta__film { display: none; } }

/* Profiles elsewhere: wordmark pills, same voice as the buttons */
.profiles__label { font-family: var(--ui); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-soft); margin-bottom: var(--s-2); }
.profiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.profile { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.55em 1em; border: 1px solid var(--line-night); border-radius: 999px; font-family: var(--ui); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--night-ink); transition: background 240ms ease, color 240ms ease, border-color 240ms ease; }
.profile:hover, .profile:focus-visible { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.profile svg { width: 0.95em; height: 0.95em; fill: currentColor; }
.profile--x { text-transform: none; letter-spacing: 0.02em; }
.foot__profiles { flex-basis: 100%; }
.work__profiles { margin-top: var(--s-5); }

/* Phone and the ways to reach her (contact page, menu, footer) */
.work__phone { margin-top: var(--s-2); font-family: var(--display); font-size: var(--step-1); }
.work__phone a { color: var(--night-ink); text-decoration: none; font-variant-numeric: lining-nums tabular-nums; }
.work__phone a:hover { color: var(--blush); }
.channels { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-family: var(--ui); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; }
.channels a { color: var(--night-soft); text-decoration: none; padding: var(--s-1) 0; border-bottom: 1px solid var(--line-night); transition: color var(--dur-2) ease, border-color var(--dur-2) ease; }
.channels a:hover, .channels a:focus-visible { color: var(--night-ink); border-bottom-color: var(--blush); }
.menu__mail a + a { display: inline-block; margin-top: var(--s-2); }
.foot__contact a { text-decoration: none; }
.foot__contact a:hover { text-decoration: underline; }

/* Agenda, rates and reviews blocks: same voice as .card / .terms. Light by default; dusk and night follow data-world. */
.agenda, .rates, .reviews {
  --b-bg: var(--paper); --b-ink: var(--ink); --b-soft: var(--ink-soft); --b-line: var(--line); --b-accent: var(--rose);
  padding: var(--s-9) var(--gutter); display: grid; gap: var(--s-6);
  background: var(--b-bg); color: var(--b-ink);
}
.agenda[data-world="dusk"], .rates[data-world="dusk"], .reviews[data-world="dusk"] {
  --b-bg: var(--dusk); --b-ink: var(--night-ink); --b-soft: var(--night-soft); --b-line: var(--line-night); --b-accent: var(--blush);
}
.agenda[data-world="night"], .rates[data-world="night"], .reviews[data-world="night"] {
  --b-bg: var(--night); --b-ink: var(--night-ink); --b-soft: var(--night-soft); --b-line: var(--line-night); --b-accent: var(--blush);
}
.agenda[hidden], .rates[hidden], .reviews[hidden] { display: none; }
.agenda ::selection, .rates ::selection, .reviews ::selection { background: var(--b-accent); color: var(--b-bg); }
.agenda :focus-visible, .rates :focus-visible, .reviews :focus-visible { outline-color: var(--b-accent); }
.agenda h2, .rates h2, .reviews h2 { color: var(--b-ink); max-width: 14ch; }
.agenda__intro, .rates__intro, .reviews__intro { max-width: 58ch; color: var(--b-soft); }

.agenda__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--b-ink); }
.agenda__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-2) var(--s-6); align-items: baseline; padding: var(--s-5) 0; border-bottom: 1px solid var(--b-line); }
.agenda__dates { font-family: var(--display); font-size: var(--step-1); font-variant-numeric: lining-nums tabular-nums; color: var(--b-ink); }
.agenda__place { font-family: var(--ui); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--b-ink); }
.agenda__note { grid-column: 2; font-family: var(--text); font-size: var(--step-0); line-height: 1.5; color: var(--b-soft); }

.rates__list { margin: 0; display: grid; border-top: 1px solid var(--b-ink); }
.rates__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-2) var(--s-6); align-items: baseline; padding: var(--s-5) 0; border-bottom: 1px solid var(--b-line); }
.rates__item dt { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--b-soft); }
.rates__item dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); }
.rates__price { font-family: var(--display); font-size: var(--step-1); font-variant-numeric: lining-nums tabular-nums; color: var(--b-ink); }
.rates__note { font-family: var(--text); font-size: var(--step-0); line-height: 1.5; color: var(--b-soft); }

.reviews__stats { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-8); }
.reviews__stats dt { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--b-soft); margin-bottom: var(--s-2); }
.reviews__stats dd { margin: 0; font-family: var(--display); font-size: var(--step-2); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.reviews__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); border-top: 1px solid var(--b-ink); padding-top: var(--s-6); }
.review { display: grid; gap: var(--s-3); align-content: start; }
.review__stars { letter-spacing: 0.2em; color: var(--b-accent); }
.review__body { margin: 0; }
.review__body p { font-family: var(--display); font-style: italic; font-size: var(--step-1); line-height: 1.35; max-width: 40ch; }
.review__meta { font-family: var(--ui); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--b-soft); }
.review__name { color: var(--b-ink); }
.review__reply { font-family: var(--text); color: var(--b-soft); padding-left: var(--s-4); border-left: 1px solid var(--b-accent); }
.review__reply strong { font-weight: 400; font-style: italic; color: var(--b-accent); }

.reviews__form { max-width: 44rem; border-top: 1px solid var(--b-ink); padding-top: var(--s-6); }
.reviews__form-title { grid-column: span 2; font-size: var(--step-1); font-style: italic; color: var(--b-ink); }
.reviews .field label, .reviews .field legend, .reviews .form__note { color: var(--b-soft); }
.reviews .field input, .reviews .field select, .reviews .field textarea { color: var(--b-ink); caret-color: var(--b-accent); border-bottom-color: color-mix(in srgb, var(--b-ink) 35%, transparent); }
.reviews .field input:focus, .reviews .field textarea:focus { border-bottom-color: var(--b-accent); }
.reviews .form__status { color: var(--b-accent); }
.reviews .btn--solid { background: var(--b-ink); color: var(--b-bg); border-color: var(--b-ink); }
.reviews .btn--solid:hover { background: var(--b-accent); border-color: var(--b-accent); }
.rating { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.rating legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; }
.rating__opt { display: inline-block; position: relative; }
.rating__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rating__opt span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--b-line); border-radius: 999px; color: var(--b-ink); font-family: var(--ui); transition: background-color var(--dur-2) ease, color var(--dur-2) ease; }
.rating__opt input:checked + span { background: var(--b-ink); color: var(--b-bg); border-color: var(--b-ink); }
.rating__opt input:focus-visible + span { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.field--check label { display: flex; align-items: center; gap: var(--s-3); text-transform: none; letter-spacing: 0; font-size: var(--step-0); }
.field--check input { width: 1.1rem; min-height: 0; height: 1.1rem; accent-color: var(--b-accent); }
/* Honeypot: off-screen, not display:none (bots fill what they can "see") */
.reviews__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 960px) {
  .reviews__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .agenda__item, .rates__item { grid-template-columns: minmax(0, 1fr); }
  .agenda__note { grid-column: 1; }
}

/* Demo sites: a quiet credit to the platform in the footer */
.foot__demo { flex-basis: 100%; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; }
.foot__demo a { color: var(--night-soft); text-decoration: none; }
.foot__demo a:hover { color: var(--night-ink); text-decoration: underline; }

/* Layout variants: theme.layout -> <html data-hero / data-gallery / data-nav>. Defaults: split / grid / top. */

/* Hero "full": one full-bleed photo, the name and the text over it */
[data-hero="full"] .hero { grid-template-columns: 1fr; }
[data-hero="full"] .hero__half--light { grid-column: 1; }
[data-hero="full"] .hero__half--dark { display: none; }
[data-hero="full"] .hero__half--light::after { background: linear-gradient(to top, color-mix(in srgb, var(--night) 85%, transparent), transparent 65%); }
[data-hero="full"] .hero__name { grid-template-columns: 1fr; align-self: end; padding: 0 var(--gutter) var(--s-4); }
[data-hero="full"] .hero__name .line:nth-child(1) { text-align: left; color: var(--night-ink); }
[data-hero="full"] .hero__name .line:nth-child(2) { text-align: left; color: var(--blush); }
@media (min-width: 961px) {
  [data-hero="full"] .hero__role { color: var(--night-soft); }
  [data-hero="full"] .hero__lede { color: var(--night-ink); }
}

/* Hero "stacked": the photo on top, the name and the text below it, on paper */
[data-hero="stacked"] .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
[data-hero="stacked"] .hero__half--light { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; max-height: 78dvh; }
[data-hero="stacked"] .hero__half--light::after { display: none; }
[data-hero="stacked"] .hero__half--dark { display: none; }
[data-hero="stacked"] .hero__name { grid-row: 2; grid-template-columns: 1fr; align-self: start; padding: var(--s-6) var(--gutter) 0; }
[data-hero="stacked"] .hero__name .line:nth-child(1) { text-align: left; color: var(--ink); }
[data-hero="stacked"] .hero__name .line:nth-child(2) { text-align: left; color: var(--rose); }
[data-hero="stacked"] .hero__text { grid-row: 3; }
[data-hero="stacked"] .hero__actions .btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-hero="stacked"] .hero__actions .btn--solid:hover { background: var(--rose); border-color: var(--rose); }
[data-hero="stacked"] .hero__actions .btn--line { color: var(--ink); border-color: var(--ink); }
[data-hero="stacked"] .hero__actions .btn--line:hover { background: var(--ink); color: var(--paper); }

/* Gallery "mosaic": masonry columns, every photo at its own ratio */
[data-gallery="mosaic"] .grid { display: block; columns: 3 16rem; column-gap: var(--s-4); }
/* Up to 5 photos (the teasers): 2 columns. With 3, CSS columns balance 4–5 tiles into 2 and leave the third empty. */
[data-gallery="mosaic"] .grid:not(:has(> li:nth-child(6))) { columns: 2 16rem; }
[data-gallery="mosaic"] .grid li { break-inside: avoid; margin-bottom: var(--s-4); }
[data-gallery="mosaic"] .tile, [data-gallery="mosaic"] .w-7 .tile { aspect-ratio: auto; }
[data-gallery="mosaic"] .tile img { height: auto; }

/* Gallery "strip": one horizontal row that scrolls and snaps */
[data-gallery="strip"] .grid { display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: var(--s-3); scrollbar-width: thin; }
[data-gallery="strip"] .grid li, [data-gallery="strip"] .grid li.w-5, [data-gallery="strip"] .grid li.w-4 { flex: 0 0 auto; width: min(72vw, 26rem); scroll-snap-align: start; }
[data-gallery="strip"] .grid li.w-7 { width: min(86vw, 40rem); }

/* Nav "side": on wide screens the header becomes a fixed column on the left (phones keep the menu button) */
@media (min-width: 961px) {
  [data-nav="side"] { --side-w: 15rem; }
  [data-nav="side"] body { padding-left: var(--side-w); }
  [data-nav="side"] .top {
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--side-w);
    flex-direction: column; align-items: flex-start; gap: var(--s-6);
    padding: var(--s-6) var(--s-5); border-bottom: 0; border-right: 1px solid var(--hdr-line); overflow-y: auto;
  }
  [data-nav="side"] .wordmark { margin-right: 0; }
  [data-nav="side"] .nav { flex-direction: column; gap: var(--s-3); }
  [data-nav="side"] .top .lang { margin-top: auto; }
  [data-nav="side"] .hero { min-height: 100dvh; }
}
