/* Foreseen Projects
   Two grounds: night for the flight on the home page, paper for everything you read.
   One warm colour, the logo's beam, reserved for light: the CTA and thin rules. */

:root {
  --night: #0B1118;
  --night-2: #111A24;
  --cream: #EEF0EC;
  --cream-soft: #A9B3BD;
  --paper: #F6F8FA;
  --paper-2: #ECEFF2;
  --ink: #14181D;
  --ink-soft: #56606B;
  --slate: #1B3A5C;
  --beam-a: #FFD166;
  --beam-b: #FF5A22;
  --line: color-mix(in oklab, var(--ink) 12%, transparent);

  --serif: "warbler-deck", "Newsreader", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;

  --t-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --t-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --t-base: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --t-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --t-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  --t-2xl: clamp(2rem, 1.5rem + 2.3vw, 3.3rem);
  --t-3xl: clamp(2.6rem, 1.8rem + 4vw, 4.8rem);
  --t-4xl: clamp(2.9rem, 1.7rem + 5.6vw, 6.6rem);

  --gutter: clamp(1rem, 5vw, 5.5rem);
  --maxw: 88rem;
  --section: clamp(4.5rem, 10vw, 11rem);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);

  /* the flight engine reads these */
  --sc-canvas: var(--night);
  --sc-surface: var(--night-2);
  --sc-ink: var(--cream);
  --sc-ink-soft: var(--cream-soft);
  --sc-accent: var(--beam-a);
  --sc-accent-ink: var(--ink);
  --sc-font-display: var(--serif);
  --sc-font-text: var(--sans);
  --sc-font-mono: var(--sans);
  --sc-gutter: var(--gutter);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.paper { background: var(--paper); color: var(--ink); }
body.night { background: var(--night); color: var(--cream); }
img, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
::selection { background: var(--beam-a); color: var(--ink); }
:root { accent-color: var(--slate); }
:focus-visible { outline: 2px solid var(--beam-b); outline-offset: 3px; border-radius: 4px; }
.night :focus-visible { outline-color: var(--beam-a); }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* ---------------------------------------------------------------- type */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
.display--xl { font-size: var(--t-4xl); line-height: 0.98; letter-spacing: -0.028em; }
.display--lg { font-size: var(--t-3xl); }
.display--md { font-size: var(--t-2xl); line-height: 1.06; }
.display--sm { font-size: var(--t-xl); line-height: 1.18; letter-spacing: -0.01em; }
.lede { font-size: var(--t-lg); line-height: 1.5; max-width: 40ch; text-wrap: pretty; margin: 0; }
.label {
  font-size: var(--t-xs); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0;
}
.paper .label { color: var(--ink-soft); }
.night .label { color: var(--cream-soft); }
.label a { text-decoration: none; }
.label a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------------------------------------------------------- CTA */
.cta {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 44px; padding: 0.7em 1.25em;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 500; font-size: var(--t-sm); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 240ms var(--ease), color 240ms var(--ease), transform 240ms var(--ease);
}
.cta::after {
  content: ""; width: 0.5em; height: 0.5em; border-radius: 50%;
  background: linear-gradient(135deg, var(--beam-a), var(--beam-b));
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--beam-a) 60%, transparent);
  transition: box-shadow 400ms var(--ease);
}
.cta:hover { background: var(--slate); }
.cta:hover::after { box-shadow: 0 0 0 6px color-mix(in oklab, var(--beam-a) 18%, transparent); }
.cta--lg { font-size: var(--t-base); padding: 0.85em 1.5em; }
.cta--light, .bar--night .cta { background: var(--cream); color: var(--ink); }
.cta--light:hover, .bar--night .cta:hover { background: #fff; }

.arrow { text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.arrow::after { content: " →"; }

/* ---------------------------------------------------------------- bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(0.9rem, 2vw, 1.4rem) var(--gutter);
  transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.paper .bar { background: color-mix(in oklab, var(--paper) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.paper .bar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.bar__brand img { width: clamp(150px, 12.5vw, 190px); height: auto; }
.bar__nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.bar__nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); list-style: none; margin: 0; padding: 0; }
.bar__nav ul a { text-decoration: none; font-size: var(--t-sm); font-weight: 400; position: relative; padding-block: 0.4rem; }
.bar__nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--beam-a), var(--beam-b));
  transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease);
}
.bar__nav ul a:hover::after, .bar__nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.bar__lang { font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.12em; text-decoration: none; opacity: 0.75; }
.bar__lang:hover { opacity: 1; }
.bar--night { color: var(--cream); }
.bar--night::before {
  content: ""; position: absolute; inset: 0 0 -60% 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--night) 70%, transparent), transparent);
}
.bar__menu {
  display: none; min-height: 44px; padding: 0 1rem; border: 1px solid currentColor; border-radius: 999px;
  background: transparent; font-size: var(--t-sm); cursor: pointer;
}

@media (max-width: 900px) {
  /* backdrop-filter would make the bar the containing block of the fixed menu panel */
  .paper .bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .bar__menu { display: inline-block; position: relative; z-index: 2; }
  .bar__nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2rem;
    padding: 6rem var(--gutter) 3rem;
    background: var(--paper); color: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity 260ms var(--ease), visibility 0s 260ms;
  }
  .bar--night .bar__nav { background: var(--night); color: var(--cream); }
  .bar.is-open .bar__nav { opacity: 1; visibility: visible; transition: opacity 260ms var(--ease); }
  .bar__nav ul { flex-direction: column; gap: 1rem; }
  .bar__nav ul a { font-family: var(--serif); font-size: var(--t-2xl); }
  .bar.is-open .bar__brand { position: relative; z-index: 2; }
}

/* ---------------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity 200ms linear; }
}

/* ================================================================ paper pages */
main { display: block; }
.paper main { padding-top: clamp(5rem, 9vw, 7rem); }

.intro { padding-block: clamp(3rem, 8vw, 8rem) clamp(2.5rem, 5vw, 5rem); }
.intro .label { margin-bottom: 1.5rem; }
.intro .display { max-width: 15ch; }
.intro .lede { margin-top: 2rem; color: var(--ink-soft); }
.note { margin-top: 1rem; color: var(--ink-soft); font-size: var(--t-sm); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; }
.chip {
  min-height: 40px; padding: 0.35rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: var(--t-sm); transition: background-color 200ms, color 200ms, border-color 200ms;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* project cards: an editorial rhythm rather than a uniform grid */
.cards {
  list-style: none; margin: 0; padding: 0 0 var(--section);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2.5vw, 2.5rem); row-gap: clamp(3rem, 6vw, 6rem);
}
.card { grid-column: span 12; }
@media (min-width: 900px) {
  .card--0 { grid-column: 1 / span 8; }
  .card--1 { grid-column: 9 / span 4; align-self: end; }
  .card--2 { grid-column: 2 / span 5; }
  .card--3 { grid-column: 7 / span 6; margin-top: 8rem; }
  .card--4 { grid-column: 3 / span 8; }
  .card--1 .card__media img, .card--2 .card__media img { aspect-ratio: 4 / 5; }
}
.card[hidden] { display: none; }
.card a { display: block; text-decoration: none; }
.card__media { display: block; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1200ms var(--ease); }
.card a:hover .card__media img { transform: scale(1.035); }
.card__meta { display: flex; flex-direction: column; gap: 0.2rem; margin-top: 1rem; }
.card__title { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.15; }
.card__sub { color: var(--ink-soft); font-size: var(--t-sm); }

/* band CTA */
.band { background: var(--night); color: var(--cream); }
.band__in { padding-block: var(--section); display: grid; gap: 1.5rem; justify-items: start; }
.band .lede { color: var(--cream-soft); }
.band .cta { background: var(--cream); color: var(--ink); margin-top: 1rem; }
.band .cta:hover { background: #fff; }

/* project page */
.project__hero { height: min(88svh, 62vw); min-height: 22rem; overflow: hidden; margin-top: calc(-1 * clamp(5rem, 9vw, 7rem)); }
.project__cover { width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--hero-y, 50%); }   /* --hero-y: per project, from projects.json heroY */
.project__head {
  display: grid; gap: 2.5rem; padding-block: clamp(3rem, 7vw, 7rem);
}
.project__head .label { margin-bottom: 1.25rem; }
@media (min-width: 900px) { .project__head { grid-template-columns: 7fr 5fr; align-items: end; } }
.project__text .lede { color: var(--ink-soft); }
.facts { margin: 2rem 0 0; display: grid; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.facts dt { font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.2em; }
.facts dd { margin: 0; font-size: var(--t-sm); }
.gallery { display: grid; gap: clamp(1rem, 2.5vw, 2.5rem); padding-bottom: var(--section); }
.g { display: grid; gap: clamp(1rem, 2.5vw, 2.5rem); }
@media (min-width: 700px) { .g--2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.g__item { margin: 0; }
.g__open { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; }
.g--2 .g__item:not(.is-portrait) img { aspect-ratio: 4 / 3; object-fit: cover; }
.g--2 .g__item.is-portrait img { aspect-ratio: 2 / 3; object-fit: cover; }
.g--2:has(.is-portrait) .g__item:not(.is-portrait) img { aspect-ratio: 2 / 3; }
.film { padding-bottom: var(--section); }
.film .label { margin-bottom: 1.25rem; }
.film video { max-height: 86svh; margin-inline: auto; background: var(--night); border-radius: 2px; }
.next { padding-block: 0 var(--section); }
.next a { display: grid; gap: 1rem; text-decoration: none; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.next__img { display: block; overflow: hidden; max-width: 40rem; }
.next__img img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1200ms var(--ease); }
.next a:hover .next__img img { transform: scale(1.035); }

/* lightbox */
.lightbox { padding: 0; border: 0; width: 100vw; height: 100svh; max-width: none; max-height: none; background: rgba(8, 11, 15, 0.96); color: var(--cream); }
.lightbox::backdrop { background: rgba(8, 11, 15, 0.9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 88svh; width: auto; height: auto; }
.lightbox button {
  position: absolute; min-width: 48px; min-height: 48px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: var(--cream); font-size: 1.6rem; cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox__prev { left: 2vw; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 2vw; top: 50%; translate: 0 -50%; }
.lightbox__close { right: 2vw; top: 2vw; }

/* services */
.strip { display: grid; gap: clamp(1rem, 2.5vw, 2.5rem); grid-template-columns: 1fr; padding-bottom: var(--section); }
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.svc-group { display: grid; gap: 1.5rem; padding-bottom: clamp(3rem, 6vw, 6rem); }
@media (min-width: 900px) { .svc-group { grid-template-columns: 3fr 9fr; } }
.svc-group__h { padding-top: 1.6rem; }
.svc { list-style: none; margin: 0; padding: 0; }
.svc__item { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.svc__n { font-size: var(--t-xs); color: var(--ink-soft); letter-spacing: 0.08em; padding-top: 0.55em; font-variant-numeric: tabular-nums; }
.svc__item p { margin: 0.6rem 0 0; max-width: 58ch; color: var(--ink-soft); }
.svc__item .svc__who { font-size: var(--t-sm); color: var(--slate); }
.who, .process { padding-block: var(--section) 0; }
.who__list, .process__list { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 700px) { .who__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .who__list { grid-template-columns: repeat(3, 1fr); } }
.who__list li { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.who__list h3, .process__list h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); line-height: 1.15; margin: 0 0 0.6rem; }
.who__list p, .process__list p { margin: 0; color: var(--ink-soft); }
.process { padding-bottom: var(--section); }
.process__list { counter-reset: step; }
@media (min-width: 900px) { .process__list { grid-template-columns: repeat(5, 1fr); } }
.process__list li { counter-increment: step; position: relative; padding-top: 2.4rem; }
.process__list li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  font-size: var(--t-xs); letter-spacing: 0.1em; color: var(--ink-soft);
}
.process__list li::after {
  content: ""; position: absolute; top: 1.6rem; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--beam-a), var(--beam-b));
  opacity: 0.6;
}

/* studio */
.studio { display: grid; gap: clamp(2rem, 5vw, 5rem); padding-bottom: var(--section); }
@media (min-width: 900px) { .studio { grid-template-columns: 5fr 7fr; align-items: start; } }
.studio__text { display: grid; gap: 1.25rem; }
.studio__text p { margin: 0; max-width: 52ch; }
.studio__text p:not(.lede) { color: var(--ink-soft); }
.studio__film { margin: 0; }
.studio__film video { width: 100%; background: var(--slate); }
.studio__film figcaption { margin-top: 0.8rem; font-size: var(--t-sm); color: var(--ink-soft); }
.quote { position: relative; color: var(--cream); background: var(--night); overflow: hidden; }
.quote__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.quote__in { position: relative; padding-block: var(--section); }
.quote .label { color: var(--cream-soft); }
.quote blockquote { margin: 2rem 0 0; max-width: 40rem; }
.quote blockquote p { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.3; margin: 0 0 1.2rem; text-wrap: pretty; }
.quote blockquote footer { font-size: var(--t-sm); color: var(--cream-soft); letter-spacing: 0.04em; }
.tools { padding-block: var(--section); display: grid; gap: 1.5rem; }
.tools .lede { max-width: 48ch; }

/* journal */
.posts { list-style: none; margin: 0; padding: 0 0 var(--section); }
.post a { display: grid; gap: 0.6rem; padding-block: 2rem; border-top: 1px solid var(--line); text-decoration: none; }
.post:last-child a { border-bottom: 1px solid var(--line); }
.post__meta { font-size: var(--t-sm); color: var(--ink-soft); }
.post__title { max-width: 30ch; transition: color 200ms; }
.post a:hover .post__title { color: var(--slate); }

/* talk */
.talk { display: grid; gap: clamp(2.5rem, 6vw, 6rem); padding-bottom: var(--section); }
@media (min-width: 1000px) { .talk { grid-template-columns: 8fr 4fr; } }
.form { display: grid; gap: 1.4rem; }
.form__row { display: grid; gap: 1.4rem; }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } .form__row--3 { grid-template-columns: repeat(3, 1fr); } }
.form label { display: grid; gap: 0.45rem; font-size: var(--t-sm); }
.form label em { font-style: normal; color: var(--ink-soft); font-size: var(--t-xs); }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent); border-radius: 6px;
  background: #fff; font-weight: 400;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--slate); outline-offset: 1px; border-color: var(--slate); }
.form__check { grid-template-columns: auto 1fr !important; align-items: start; color: var(--ink-soft); }
.form__check input { width: 20px; height: 20px; margin-top: 0.15rem; }
.form button { justify-self: start; border: 0; cursor: pointer; }
.form__status { margin: 0; min-height: 1.5em; color: var(--slate); }
.talk__direct { display: grid; gap: 0.4rem; align-content: start; }
.talk__direct .label { margin-bottom: 0.6rem; }
.talk__direct p { margin: 0; font-family: var(--serif); font-size: var(--t-xl); }
.talk__direct a { text-decoration: none; }
.talk__direct a:hover { text-decoration: underline; }
.booking iframe { width: 100%; min-height: 720px; border: 0; }
.prose p { max-width: 62ch; color: var(--ink-soft); }
.prose h1 { margin-bottom: 2rem; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 6rem); }
.foot__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 4fr 2fr 3fr 3fr; } }
.foot__brand img { width: 179px; height: auto; }
.foot__sig { margin: 1.25rem 0 0; font-family: var(--serif); font-size: var(--t-lg); }
.foot__h { margin: 0 0 0.75rem; font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: var(--t-sm); }
.foot__list a { text-decoration: none; }
.foot__list a:hover { text-decoration: underline; }
.foot__end { align-self: start; }
@media (min-width: 900px) { .foot__end { justify-self: end; } }
.foot__small {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem); padding-block: 1.5rem 2rem; border-top: 1px solid var(--line);
  font-size: var(--t-xs); color: var(--ink-soft);
}

/* ================================================================ the flight (home) */
.home .sc-copy { max-width: min(36rem, calc(100vw - 2 * var(--gutter))); }
.home .sc-copy--lead { bottom: clamp(5.5rem, 14vh, 9rem); }
.home .sc-copy--trail { bottom: clamp(5.5rem, 14vh, 9rem); }
/* a scrim plate only where the type sits, fading with the block itself */
/* Scrims live in their own layers in the copy layer (not on the blocks), so they are part of
   the composited frame; site.js keeps each one at its block's opacity. One shape: a soft
   light-fall from the corner the type is anchored to. */
.scrim { opacity: 0; }
.scrim--lead { background: radial-gradient(ellipse 100% 100% at 0% 100%, color-mix(in oklab, var(--night) 92%, transparent) 0%, color-mix(in oklab, var(--night) 85%, transparent) 50%, color-mix(in oklab, var(--night) 50%, transparent) 75%, transparent 100%); }
.scrim--trail { background: radial-gradient(ellipse 100% 100% at 100% 100%, color-mix(in oklab, var(--night) 92%, transparent) 0%, color-mix(in oklab, var(--night) 85%, transparent) 50%, color-mix(in oklab, var(--night) 50%, transparent) 75%, transparent 100%); }
.scrim--sky { background: radial-gradient(ellipse 90% 80% at 100% 0%, color-mix(in oklab, var(--night) 88%, transparent) 0%, color-mix(in oklab, var(--night) 78%, transparent) 50%, color-mix(in oklab, var(--night) 40%, transparent) 78%, transparent 100%); }
.scrim--finale { background: linear-gradient(90deg, color-mix(in oklab, var(--night) 90%, transparent) 0%, color-mix(in oklab, var(--night) 82%, transparent) 40%, color-mix(in oklab, var(--night) 30%, transparent) 70%, transparent 90%); }
@media (max-width: 860px) {
  .scrim--lead, .scrim--trail, .scrim--finale { background: linear-gradient(to top, color-mix(in oklab, var(--night) 92%, transparent) 0%, color-mix(in oklab, var(--night) 85%, transparent) 45%, color-mix(in oklab, var(--night) 40%, transparent) 70%, transparent 85%); }
  .scrim--sky { background: linear-gradient(to bottom, color-mix(in oklab, var(--night) 90%, transparent) 0%, color-mix(in oklab, var(--night) 80%, transparent) 40%, transparent 65%); }
}
.plate > * + * { margin-top: 1.1rem; }
.plate .lede { color: var(--cream); opacity: 0.92; }
.hero .display { font-size: var(--t-3xl); max-width: 13ch; }
.hero .lede { max-width: 34ch; }
.sc-copy--trail .lede, .sc-copy--trail .display { margin-left: auto; }
.stop__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.4rem; font-size: var(--t-sm); }
.sc-copy--trail .stop__foot { justify-content: flex-end; }
.finale { bottom: auto; top: 50%; translate: 0 -46%; }
/* after the light: the line sits in the sky, above the house, where the frame is darkest */
.home .sc-copy--sky { bottom: auto; top: clamp(6rem, 16vh, 10rem); max-width: min(28rem, 80vw); }
.finale .display { max-width: 12ch; }
.finale .lede { max-width: 36ch; }
.finale__services { font-size: var(--t-sm); color: var(--cream-soft); }
.finale__services a { text-decoration: none; }
.finale__services a:hover { color: var(--cream); }
.finale__small { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: var(--t-xs); color: var(--cream-soft); }
.finale__small a { text-decoration: none; }
.finale__small a:hover { color: var(--cream); text-decoration: underline; }

/* the route map */
.rail {
  position: fixed; left: var(--gutter); bottom: clamp(1rem, 3vh, 2rem); z-index: 30;
  display: flex; align-items: center; gap: 1.5rem;
}
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.35rem; }
.rail button {
  position: relative; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--cream);
}
.rail button::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; translate: 0 -50%;
  background: color-mix(in oklab, var(--cream) 30%, transparent); transition: background-color 300ms, height 300ms;
}
.rail button[aria-current="true"]::before { background: linear-gradient(90deg, var(--beam-a), var(--beam-b)); height: 3px; }
.rail button span {
  position: absolute; left: 50%; bottom: 100%; translate: -50% 0; margin-bottom: 0.4rem;
  white-space: nowrap; font-size: var(--t-xs); letter-spacing: 0.06em; color: var(--cream);
  opacity: 0; transition: opacity 200ms;
}
.rail button:hover span, .rail button:focus-visible span, .rail button[aria-current="true"] span { opacity: 1; }
.rail__skip { font-size: var(--t-xs); color: var(--cream-soft); text-decoration: none; }
.rail__skip:hover { color: var(--cream); text-decoration: underline; }
.noscript { position: fixed; inset: auto 0 2rem 0; text-align: center; z-index: 40; }

[data-sc-progress] { background: linear-gradient(90deg, var(--beam-a), var(--beam-b)); }

@media (max-width: 860px) {
  .home .sc-copy--lead, .home .sc-copy--trail { bottom: 6.5rem; left: var(--gutter); right: var(--gutter); text-align: left; }
  .sc-copy--trail .lede, .sc-copy--trail .display { margin-left: 0; }
  .sc-copy--trail .stop__foot { justify-content: flex-start; }
  .finale { top: auto; bottom: 4.5rem !important; translate: none; }
  .home .sc-copy--sky { bottom: auto; top: 6.5rem; }
  .rail span { display: none; }
}

/* ================================================================ after the flight (home) */
/* The page below the landing scrolls up over the fixed flight and covers it completely. */
.after { position: relative; z-index: 50; background: var(--paper); color: var(--ink); }
.after::before { content: ""; position: absolute; inset: -1px 0 auto 0; height: 1px; background: var(--paper); }
.more { padding-block: var(--section) 0; }
.more__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; }
.more__list { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 900px) { .more__list { grid-template-columns: repeat(3, 1fr); } }
.more__list a { display: block; text-decoration: none; }
.more__list .card__media img { aspect-ratio: 4 / 5; }
.more__list a:hover .card__media img { transform: scale(1.035); }
.after .who { padding-top: var(--section); }
.after .who .more__head + .who__list { margin-top: 3rem; }
.after .foot { background: var(--paper); }
.bar--day-on-home { color: var(--ink); }

/* ================================================================ films */
.films { padding-block: var(--section); }
.films--dark { background: var(--night); color: var(--cream); }
.films--dark .label, .films--dark .lede { color: var(--cream-soft); }
.films__head { display: grid; gap: 1.25rem; max-width: 46rem; }
.films__head .lede { color: var(--ink-soft); }
.films__list {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: grid; gap: clamp(1rem, 2vw, 2rem); grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1000px) { .films__list { grid-template-columns: repeat(4, 1fr); } }
/* Five films: one row of five on a desk; on a phone the first (the newest) leads full width. */
.films__list:has(> li:nth-child(5):last-child) > li:first-child { grid-column: 1 / -1; }
.films__list:has(> li:nth-child(5):last-child) > li:first-child .film-card__media { aspect-ratio: 4 / 5; }
@media (min-width: 1000px) {
  .films__list:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(5, 1fr); }
  .films__list:has(> li:nth-child(5):last-child) > li:first-child { grid-column: auto; }
  .films__list:has(> li:nth-child(5):last-child) > li:first-child .film-card__media { aspect-ratio: 9 / 16; }
}
.film-card {
  display: grid; gap: 0.35rem; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit;
}
.film-card__media { position: relative; display: block; overflow: hidden; border-radius: 2px; background: var(--night-2); aspect-ratio: 9 / 16; }
.film-card__loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* no hover zoom on moving pictures: scaling a playing video makes it shimmer */
.film-card__play {
  position: absolute; left: 1rem; bottom: 1rem; width: 3rem; height: 3rem; border-radius: 50%;
  background: color-mix(in oklab, var(--night) 55%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid color-mix(in oklab, var(--cream) 40%, transparent);
  transition: background-color 240ms var(--ease);
}
.film-card__play::after {
  content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%;
  border-style: solid; border-width: 0.45rem 0 0.45rem 0.75rem; border-color: transparent transparent transparent var(--cream);
}
.film-card:hover .film-card__play { background: linear-gradient(135deg, var(--beam-a), var(--beam-b)); }
.film-card__tag { margin-top: 0.75rem; font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.films--dark .film-card__tag { color: var(--cream-soft); }
.film-card__title { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.15; }
.film-card__line { font-size: var(--t-sm); color: var(--ink-soft); }
.films--dark .film-card__line { color: var(--cream-soft); }

.player { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100svh; }
.player::backdrop { background: rgba(8, 11, 15, 0.94); }
.player[open] { display: grid; place-items: center; }
.player video { max-height: 92svh; max-width: 94vw; width: auto; background: #000; }
.player__close {
  position: fixed; right: 2vw; top: 2vw; min-width: 48px; min-height: 48px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: var(--cream); font-size: 1.6rem; cursor: pointer;
}
.player__close:hover { background: rgba(255, 255, 255, 0.2); }

@media (max-width: 860px) {
  .rail__skip { display: inline; white-space: nowrap; margin-left: auto; padding: 0.35rem 0.8rem; border: 1px solid color-mix(in oklab, var(--cream) 40%, transparent); border-radius: 999px; color: var(--cream); }
  .rail { right: var(--gutter); }
}

/* on the home page the bar turns to paper once the classic page covers the flight */
.bar.is-day { background: color-mix(in oklab, var(--paper) 90%, transparent); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
@media (min-width: 901px) { .bar.is-day { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.bar.is-day .bar__nav { color: var(--ink); }
@media (max-width: 900px) { .bar.is-day .bar__nav { background: var(--paper); } }

/* ================================================================ before / after */
.compare { padding-block: var(--section); }
.compare__list { display: grid; gap: clamp(1.5rem, 3vw, 3rem); margin-top: 3rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .compare__list { grid-template-columns: 2fr 1fr 1fr; align-items: end; }
}
.cmp { margin: 0; }
.cmp figcaption { margin-top: 0.75rem; font-size: var(--t-sm); color: var(--ink-soft); }
.cmp__frame { position: relative; overflow: hidden; border-radius: 2px; background: var(--paper-2); touch-action: pan-y; }
.cmp__img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.cmp__after { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 0 0 var(--x)); }
.cmp__handle {
  position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; translate: -1px 0; pointer-events: none;
  background: var(--paper); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.cmp__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 2.6rem; height: 2.6rem; translate: -50% -50%; border-radius: 50%;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314181D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 1.2rem no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp__frame:has(.cmp__range:focus-visible) { outline: 2px solid var(--beam-b); outline-offset: 3px; }
.cmp__tag {
  position: absolute; bottom: 0.8rem; padding: 0.2rem 0.6rem; border-radius: 999px; pointer-events: none;
  font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase;
  background: color-mix(in oklab, var(--night) 60%, transparent); color: var(--cream);
}
.cmp__tag--before { left: 0.8rem; }
.cmp__tag--after { right: 0.8rem; }

/* ================================================================ FAQ */
.faq { display: grid; gap: 2rem; padding-block: var(--section); }
@media (min-width: 900px) { .faq { grid-template-columns: 4fr 8fr; } }
.faq__head { display: grid; gap: 1.25rem; align-content: start; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.3rem; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: var(--t-lg); line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--sans); font-weight: 300; color: var(--ink-soft); transition: transform 240ms var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 1.5rem; max-width: 62ch; color: var(--ink-soft); }

/* ================================================================ service pages */
.intro .label a { color: inherit; }
.svc-page { display: grid; gap: clamp(2rem, 5vw, 5rem); padding-bottom: var(--section); }
@media (min-width: 900px) { .svc-page { grid-template-columns: 7fr 5fr; } }
.svc-page__why .lede { max-width: 46ch; }
.svc-page__facts { display: grid; gap: 1rem; align-content: start; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.svc-page__facts .label { margin-top: 0.5rem; }
.svc-page__facts p { margin: 0; color: var(--ink-soft); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.8rem; height: 1px; background: linear-gradient(90deg, var(--beam-a), var(--beam-b)); }
.more__list--six { margin-top: 2.5rem; }
@media (min-width: 900px) { .more__list--six { grid-template-columns: repeat(3, 1fr); } }
.more__list--six .card__media img { aspect-ratio: 3 / 2; }
.svc__item h3 a { text-decoration: none; }
.svc__item h3 a:hover { color: var(--slate); }
.svc-others { padding-block: 0 var(--section); }
.svc-others ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.svc-others a { display: inline-block; padding: 0.45rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: var(--t-sm); }
.svc-others a:hover { border-color: var(--ink); }
.pillars { padding-block: 0 var(--section); }

/* ================================================================ journal */
.posts { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.post a { border: 0 !important; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .post a { grid-template-columns: 5fr 7fr; align-items: center; gap: 3rem; } }
.post__img { display: block; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.post__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1200ms var(--ease); }
.post a:hover .post__img img { transform: scale(1.03); }
.post__text { display: grid; gap: 0.7rem; }
.post__desc { color: var(--ink-soft); max-width: 58ch; }

/* The head sits in the body's own column, so title, standfirst and text share one left edge.
   The standfirst is told apart by voice, not position: the serif, a larger size, full ink,
   and a short beam rule that closes it before the body text begins. */
.article__head { width: 100%; max-width: calc(46rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); padding-block: clamp(3rem, 8vw, 6rem) 0; display: grid; gap: 1.5rem; }
.article__head .display { font-size: var(--t-3xl); max-width: none; text-wrap: balance; }
.article__body .article__stand { position: relative; font-family: var(--serif); font-size: var(--t-xl); line-height: 1.38; color: var(--ink); max-width: none; padding-bottom: 2.25rem; margin: 0 0 2.5rem; }
.article__body .article__stand::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3.5rem; height: 2px; background: linear-gradient(90deg, var(--beam-a), var(--beam-b)); }
.article__body { width: 100%; max-width: calc(46rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); padding-bottom: var(--section); }
.article__body p, .article__body li { color: var(--ink); font-size: var(--t-base); line-height: 1.75; max-width: none; }
.article__body p { margin: 0 0 1.25rem; }
.article__body h2 { font-family: var(--serif); font-weight: 400; font-size: var(--t-2xl); line-height: 1.1; margin: 3.5rem 0 1.25rem; }
.article__body h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); margin: 2.5rem 0 1rem; }
.article__body ul, .article__body ol { margin: 0 0 1.5rem; padding-left: 1.3rem; }
.article__body li { margin-bottom: 0.5rem; }
.article__body strong { font-weight: 500; }
.article__body a { color: var(--slate); }
.article__body figure { margin: 2.5rem 0; }
.article__body img { width: 100%; height: auto; border-radius: 2px; }
.article__body figcaption { margin-top: 0.6rem; font-size: var(--t-sm); color: var(--ink-soft); }
.article__body blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 2px solid var(--beam-b); font-family: var(--serif); font-size: var(--t-lg); }
.article__body table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: var(--t-sm); display: block; overflow-x: auto; }
.article__body td, .article__body th { border-bottom: 1px solid var(--line); padding: 0.7rem 0.6rem; text-align: left; vertical-align: top; }
.article__body tr:first-child td { font-weight: 500; }
.article__foot { display: grid; gap: 2rem; padding-bottom: var(--section); }
.next__post { display: grid; gap: 0.6rem; text-decoration: none; border-top: 1px solid var(--line); padding-top: 2rem; }
.next__post:hover .display { color: var(--slate); }

/* form upload */
.form__file input { padding: 0.6rem; background: #fff; border: 1px dashed color-mix(in oklab, var(--ink) 30%, transparent); border-radius: 6px; min-height: 48px; }

/* ================================================================ motion */
/* page transitions between documents (Chromium; other browsers simply navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 520ms var(--ease) both vt-in; }
.bar { view-transition-name: site-bar; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* titles that fill in reading order, left to right, as the page scrolls.
   --tp (0..1) is the title's progress, set from its position on screen (site.js); each word
   takes its share of it in turn. Nothing is clipped, so descenders (j, f, g, p) stay whole.
   Titles already on screen when the page opens play the same fill once, on a timer. */
@property --tp { syntax: '<number>'; inherits: true; initial-value: 0; }
.kt { --tp: 0; }
.kt.is-timed { transition: --tp 1500ms cubic-bezier(0.4, 0, 0.2, 1) 120ms; }
.kw {
  --o: clamp(0, calc((var(--tp) * (var(--n) + 2.5) - var(--i)) / 2.5), 1);
  display: inline-block; opacity: calc(0.12 + 0.88 * var(--o));
  transform: translate3d(calc((1 - var(--o)) * -0.18em), 0, 0);
  filter: blur(calc((1 - var(--o)) * 3px));
}
.js .reveal.reveal--flat { transform: none; }

/* slow parallax inside image frames; hover zoom composes with it */
.js [data-par] { --py: 0px; --s: 1; transform: translate3d(0, var(--py), 0) scale(calc(var(--s) * 1.1)); transition: transform 1200ms var(--ease); will-change: transform; }
.js .card a:hover [data-par], .js .more__list a:hover [data-par], .js .post a:hover [data-par], .js .next a:hover [data-par] { --s: 1.035; }
.js .card a:hover .card__media img[data-par], .js .post a:hover .post__img img[data-par] { transform: translate3d(0, var(--py), 0) scale(calc(var(--s) * 1.1)); }
.js .quote__bg[data-par] { transition: none; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .kw { opacity: 1; transform: none; filter: none; }
  .js [data-par] { transform: none; transition: none; }
}


/* ================================================================ projects grid (v3)
   One featured project across the full width, then a strict two-column grid: every image
   the same proportion, every caption on the same baseline. */
.cards { grid-template-columns: 1fr; column-gap: clamp(1.25rem, 3vw, 3rem); row-gap: clamp(3rem, 6vw, 5.5rem); }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.cards .card { grid-column: auto; margin: 0; align-self: start; }
.cards .card--feature { grid-column: 1 / -1; }
.cards .card__media img { aspect-ratio: 3 / 2 !important; }
.cards .card--feature .card__media img { aspect-ratio: 21 / 9 !important; }
@media (max-width: 759px) { .cards .card--feature .card__media img { aspect-ratio: 4 / 3 !important; } }
.cards .card__meta { display: grid; grid-template-columns: 3rem 1fr; column-gap: 0.75rem; row-gap: 0.25rem; margin-top: 1.1rem; }
.card__n { grid-row: span 2; padding-top: 0.45rem; font-size: var(--t-xs); letter-spacing: 0.1em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.card__title { position: relative; justify-self: start; }
.card__title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.15rem; height: 1px;
  background: linear-gradient(90deg, var(--beam-a), var(--beam-b)); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease);
}
.card a:hover .card__title::after { transform: scaleX(1); }
.card__lede { grid-column: 2; max-width: 52ch; margin-top: 0.6rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .card--feature .card__meta { grid-template-columns: 3rem 5fr 6fr; align-items: baseline; }
  .card--feature .card__n { grid-row: auto; }
  .card--feature .card__title { font-size: var(--t-2xl); }
  .card--feature .card__sub { grid-column: 2; grid-row: 2; }
  .card--feature .card__lede { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
}

/* ================================================================ journal (v3) */
.journal { display: grid; gap: clamp(3rem, 6vw, 5rem); padding-bottom: var(--section); }
.lead a, .second a, .archive a { text-decoration: none; display: grid; }
.lead a { gap: 1.5rem; }
@media (min-width: 900px) { .lead a { grid-template-columns: 7fr 5fr; align-items: end; gap: 3rem; } }
.lead__img, .second__img, .archive__img { display: block; overflow: hidden; border-radius: 2px; background: var(--night); position: relative; }
.lead__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lead__text { display: grid; gap: 1rem; }
.lead__title { font-size: var(--t-2xl); }
.second { display: grid; gap: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); padding-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 760px) { .second { grid-template-columns: 1fr 1fr; } }
.second a { gap: 0.8rem; }
.second__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lead a:hover .lead__title, .second a:hover .second__title, .archive a:hover .archive__title { color: var(--slate); }
.lead__img img, .second__img img, .archive__img img { transition: transform 1200ms var(--ease); }
.lead a:hover .lead__img img, .second a:hover .second__img img, .archive a:hover .archive__img img { transform: scale(1.04); }
.post__mark { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 120% at 20% 10%, var(--slate), var(--night)); }
.post__mark img { width: 22% !important; height: auto !important; aspect-ratio: auto !important; opacity: 0.9; }
.lead__img:has(.post__mark), .second__img:has(.post__mark) { aspect-ratio: 16 / 10; }
.archive { border-top: 1px solid var(--line); padding-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 2.5rem; }
.archive__h span { margin-left: 0.5rem; color: var(--ink-soft); }
.archive__year { display: grid; gap: 1rem; }
@media (min-width: 900px) { .archive__year { grid-template-columns: 8rem 1fr; } }
.archive__y { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); color: var(--ink-soft); }
.archive__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 900px) { .archive__list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.archive__list a { grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: start; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.archive__img { margin-top: 0.3rem; }   /* top of the thumbnail on the cap height of the title's first line */
.archive__img { aspect-ratio: 4 / 3; }
.archive__img img { width: 100%; height: 100%; object-fit: cover; }
.archive__text { display: grid; gap: 0.3rem; }
.archive__title { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.25; }
.archive .post__meta { font-size: var(--t-xs); }

/* the camera look at the project stops (site.js drives the transform) */
[data-sc-world] { will-change: transform; transform-origin: 50% 50%; }

/* ================================================================ services: the range
   Four equal tiles, each a different kind of work, so the first impression is the breadth. */
.range { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.75rem, 2vw, 1.75rem); padding-bottom: var(--section); }
@media (min-width: 900px) { .range { grid-template-columns: repeat(4, 1fr); } }
.range__item { display: grid; gap: 0.9rem; text-decoration: none; color: inherit; }
.range__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--night); }
.range__media img, .range__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.range__item:hover .range__media > img:only-child { transform: scale(1.04); }
.range__media video { transition: none; }
.range__after { animation: range-wipe 7s var(--ease) infinite; }
@keyframes range-wipe {
  0%, 12% { clip-path: inset(0 0 0 100%); }
  42%, 70% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}
.range__label { display: flex; gap: 0.75rem; align-items: baseline; font-family: var(--serif); font-size: var(--t-lg); line-height: 1.2; }
.range__n { font-family: var(--sans); font-size: var(--t-xs); letter-spacing: 0.1em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.range__label::after { content: "→"; margin-left: auto; font-family: var(--sans); color: var(--ink-soft); transition: transform 300ms var(--ease); }
.range__item:hover .range__label::after { transform: translateX(4px); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .range__after { animation: none; clip-path: inset(0 0 0 50%); } }

/* ================================================================ one vertical rhythm
   Every gap between two sections is exactly one --section, on every page. Paper sections
   carry their space as margins, so two neighbours collapse to a single gap instead of adding
   up (the old padding-top + padding-bottom pairs doubled it). Sections with their own ground
   (testimonial, CTA band, dark films) keep their padding inside and no margin, so the paper
   section next to them supplies the air. */
.after, .paper main { display: flow-root; }
.more, .who, .after .who, .process, .films, .compare, .faq, .tools { padding-block: 0; margin-block: var(--section); }
.gallery, .film, .next, .strip, .range, .studio, .talk, .svc-page, .svc-others, .plans, .pillars, .journal, .article__body, .article__foot { padding-bottom: 0; margin-block: 0 var(--section); }
.svc-group { padding-bottom: 0; margin-bottom: clamp(3rem, 6vw, 6rem); }
.quote, .band, .films--dark { margin-block: 0; }
.films--dark { padding-block: var(--section); }
:is(.more, .who, .process, .films, .compare, .faq, .tools, .svc-others, .pillars, .studio) > :first-child { margin-top: 0; }
:is(.more, .who, .process, .films, .compare, .faq, .tools, .svc-others, .pillars, .studio) > :last-child { margin-bottom: 0; }

/* social profiles: one quiet line of names above the small print */
.foot__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; width: 100%; font-size: var(--t-sm); }
.foot__social a { text-decoration: none; color: var(--ink); position: relative; }
.foot__social a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.15rem; height: 1px; background: linear-gradient(90deg, var(--beam-a), var(--beam-b)); transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--ease); }
.foot__social a:hover::after { transform: scaleX(1); }

/* ================================================================ first screens
   The work is in the first screen of every page, not one scroll down. */
.intro--media { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); grid-template-areas: "l" "h" "m" "p" "x"; padding-block: clamp(1rem, 3vw, 2.5rem) 0; margin-bottom: var(--section); }
.intro__label { grid-area: l; margin: 0; }
.intro__h { grid-area: h; margin: 0; }
.intro--media .display { font-size: var(--t-3xl); max-width: 16ch; }
.intro__lede { grid-area: p; margin: 0; }
.intro__extra { grid-area: x; }
.intro__media { grid-area: m; position: relative; overflow: hidden; border-radius: 2px; background: var(--night); aspect-ratio: 4 / 3; margin-block: 0.4rem; }
.intro__media > img, .intro__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .intro--media { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto auto auto; grid-template-areas: "l m" "h m" "p m" "x m"; column-gap: clamp(2rem, 4vw, 4.5rem); row-gap: 1.5rem; }
  .intro__label { align-self: end; }
  .intro__media { aspect-ratio: auto; height: min(calc(100svh - 10rem), 50rem); min-height: 26rem; margin: 0; }
  .intro__lede { margin-bottom: 0.4rem; }
}

/* services: the four kinds of work are the hero */
.intro--range .intro__media { background: none; overflow: visible; aspect-ratio: auto; height: auto; min-height: 0; }
.intro__media .range { margin: 0; padding: 0; grid-template-columns: repeat(2, 1fr); }
.intro__media .range__media { aspect-ratio: 4 / 3; }
.intro__media .range__label { font-size: var(--t-base); }
@media (min-width: 900px) and (max-height: 820px) { .intro__media .range__media { aspect-ratio: 16 / 10; } }

/* book a call: three projects and the client's words beside the title */
.intro--talk .intro__media { background: none; aspect-ratio: auto; height: auto; }
.proof { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 7.5rem 7.5rem auto; gap: 0.6rem; height: 100%; }
.proof > span { position: relative; overflow: hidden; border-radius: 2px; background: var(--night); }
.proof > span img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proof__a { grid-row: 1 / span 2; }
.proof__q { grid-column: 1 / -1; margin: 0.6rem 0 0; padding-left: 1.1rem; border-left: 2px solid var(--beam-b); }
.proof__q p { margin: 0 0 0.4rem; font-family: var(--serif); font-size: var(--t-lg); line-height: 1.3; }
.proof__q footer { font-size: var(--t-xs); letter-spacing: 0.08em; color: var(--ink-soft); }
@media (min-width: 900px) { .intro--talk .intro__media { height: min(calc(100svh - 10rem), 46rem); } .proof { grid-template-rows: 1fr 1fr auto; } }

/* projects and journal: title and text side by side, so the first card starts in the first screen */
.intro--compact { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 3vw, 2.5rem); }
@media (min-width: 900px) {
  .intro--compact { display: grid; grid-template-columns: 7fr 5fr; column-gap: 4rem; row-gap: 1rem; align-items: end; }
  .intro--compact .label, .intro--compact .filters { grid-column: 1 / -1; }
  .intro--compact .display { font-size: var(--t-3xl); max-width: none; }
  .intro--compact .lede { margin: 0; }
}

/* articles: the cover sits under the title, wider than the text */
.article__cover { width: 100%; max-width: calc(64rem + 2 * var(--gutter)); margin: 2rem auto clamp(2rem, 4vw, 3rem); padding-inline: var(--gutter); }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; display: block; }
.intro--media .intro__label, .intro--media .intro__lede { margin: 0; }
@media (min-width: 900px) { .intro--media .intro__lede { margin-bottom: 0.4rem; } }
@media (min-width: 900px) {
  .intro--media { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); }
  .intro--media .display { max-width: none; text-wrap: balance; }
}

/* the opening frame is the finished render: its scrim stays tight around the title, so the
   house itself is seen at full light */
.scrim[data-scrim-for="0"] {
  background: linear-gradient(90deg, color-mix(in oklab, var(--night) 88%, transparent) 0%, color-mix(in oklab, var(--night) 76%, transparent) 36%, color-mix(in oklab, var(--night) 40%, transparent) 50%, transparent 64%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 46%, transparent 74%); mask-image: linear-gradient(to top, #000 0%, #000 46%, transparent 74%);
}
.hero .display, .hero .lede { text-shadow: 0 1px 28px rgba(11, 17, 24, 0.5); }
@media (max-width: 860px) {
  .scrim[data-scrim-for="0"] { background: linear-gradient(to top, color-mix(in oklab, var(--night) 90%, transparent) 0%, color-mix(in oklab, var(--night) 72%, transparent) 32%, color-mix(in oklab, var(--night) 25%, transparent) 56%, transparent 72%); }
}

/* Floor-plan gallery (floor-plans service page): plans sit on white, whole, never cropped.
   Two wide tiles over three square ones on a desk; two columns on a phone. */
.plans .label { margin-bottom: 1.25rem; }
.plans__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(0.75rem, 1.6vw, 1.25rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plans__grid figure { margin: 0; }
.plans__img { display: block; aspect-ratio: 1; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px var(--paper-2); overflow: hidden; }
.plans__img img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.plans__grid figcaption { margin-top: 0.6rem; font-size: var(--t-sm); color: var(--ink-soft); }
.plans__grid li:last-child { grid-column: 1 / -1; }
.plans__grid li:last-child .plans__img { aspect-ratio: 2 / 1; }
@media (min-width: 900px) {
  .plans__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .plans__grid li { grid-column: span 2; }
  .plans__grid li:nth-child(-n+2) { grid-column: span 3; }
  .plans__grid li:nth-child(-n+2) .plans__img { aspect-ratio: 4 / 3; }
  .plans__grid li:last-child { grid-column: span 2; }
  .plans__grid li:last-child .plans__img { aspect-ratio: 1; }
}


/* ================================================================ agencies, resources, terms
   The commercial pages: same type and colour as the studio site, one action per page. */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* landing header: logo, the agencies area, language and one action (no main menu) */
.lpnav { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 2rem); }
.lpnav__link { text-decoration: none; font-size: var(--t-sm); position: relative; padding-block: 0.4rem; }
.lpnav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--beam-a), var(--beam-b)); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease); }
.lpnav__link:hover::after, .lpnav__link[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 900px) { .lp .bar { background: var(--paper); } }
@media (max-width: 620px) {
  .lpnav__link { display: none; }
  .lp .bar__brand img { width: 128px; }
  .lp .cta--bar { padding: 0.6em 1em; }
}
.foot--lp { padding-top: 0; margin-top: var(--section); }
.foot--lp .foot__small { margin-top: 0; align-items: center; }
.foot--lp .foot__small a { text-decoration: none; }
.foot--lp .foot__small a:hover { text-decoration: underline; }

/* price + calls in the first screen */
.price { margin: 0; display: grid; gap: 0.2rem; }
.price__n { font-family: var(--serif); font-size: var(--t-2xl); line-height: 1; }
.price__vat { font-family: var(--sans); font-size: var(--t-sm); color: var(--ink-soft); }
.price__t { font-size: var(--t-sm); color: var(--ink-soft); }
.intro__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1.2rem 0 0; }
.intro--media .intro__extra .price { margin-top: 0.4rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.8rem; height: 2px; background: linear-gradient(90deg, var(--beam-a), var(--beam-b)); }
.ticks--plain li::before { background: var(--ink-soft); }
.ticks--hero { margin-top: 0.4rem; font-size: var(--t-sm); color: var(--ink-soft); }

/* the complete package: plan and photo side by side */
.pack { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--paper); }
.pack > span { position: relative; overflow: hidden; }
.pack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* the four products */
.offers, .tiers, .offer, .order, .upsell, .credits, .conds, .res, .calc, .gate, .svc-agency { margin-block: 0 var(--section); }
.offers__head { display: grid; gap: 1.25rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.offers__head .lede { color: var(--ink-soft); }
.offers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 700px) { .offers__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .offers__list { grid-template-columns: repeat(4, 1fr); } }
.offer-card { height: 100%; display: grid; grid-template-rows: auto 1fr auto auto; gap: 1rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; text-decoration: none; transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.offer-card:hover { border-color: color-mix(in oklab, var(--slate) 40%, transparent); box-shadow: 0 12px 30px -18px rgba(20, 24, 29, 0.35); }
.offer-card__name { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.15; }
.offer-card__short { color: var(--ink-soft); font-size: var(--t-sm); }
.offer-card .price__n { font-size: var(--t-xl); }
.offer-card .arrow { justify-self: start; }

/* monthly plan tiers */
.tiers__list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 900px) { .tiers__list { grid-template-columns: repeat(3, 1fr); } }
.tiers > h2 { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.tier { display: grid; gap: 0.6rem; align-content: start; padding: 1.6rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.tier--mid { border-color: color-mix(in oklab, var(--slate) 45%, transparent); box-shadow: inset 0 3px 0 0 var(--beam-a); }
.tier p { margin: 0; }
.tier__name { font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.tier__price { font-family: var(--serif); font-size: var(--t-2xl); line-height: 1.05; }
.tier__price span { font-family: var(--sans); font-size: var(--t-sm); color: var(--ink-soft); }
.tier__credits { font-size: var(--t-sm); }
.tier__credits strong { font-weight: 500; color: var(--slate); }
.tier__ex { font-size: var(--t-sm); color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 0.8rem; }
.tier__ex span { display: block; color: var(--ink); margin-bottom: 0.2rem; }

/* product page: why + what you get + what to send */
.offer { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 900px) { .offer { grid-template-columns: 5fr 7fr; } }
.offer__why .lede { max-width: 32ch; }
.offer__lists { display: grid; gap: 2.5rem; }
@media (min-width: 700px) { .offer__lists { grid-template-columns: 1fr 1fr; } }
.offer__lists .label { margin: 0 0 1rem; }
.process__note { margin: 2.5rem 0 0; max-width: 62ch; color: var(--ink-soft); }
@media (min-width: 900px) { .process__list--3 { grid-template-columns: repeat(3, 1fr); } }
.process__list--3 p { color: var(--ink); }
.honest--never h3 { color: #9a3a1e; }

/* order + request forms */
.order { display: grid; gap: clamp(2rem, 5vw, 5rem); scroll-margin-top: 6rem; }
@media (min-width: 1000px) { .order { grid-template-columns: 5fr 7fr; } }
.order__head { display: grid; gap: 1.25rem; align-content: start; }
.order__head .lede { color: var(--ink-soft); }
.order__sum { border-top: 1px solid var(--line); padding-top: 1.25rem; display: grid; gap: 0.6rem; }
.order__name { margin: 0; font-weight: 500; }
@media (min-width: 1000px) { .order__head { position: sticky; top: 7rem; } }

/* upsell: monthly plan, free sample */
.upsell { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 800px) { .upsell { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.upsell__card { display: grid; gap: 0.9rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--paper-2); border-radius: 4px; text-decoration: none; }
.upsell__card .label { margin: 0; }
.upsell__h { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.2; max-width: 28ch; }
.upsell__card .arrow { justify-self: start; }

/* credits table and conditions */
.credits { display: grid; gap: 2rem; }
@media (min-width: 900px) { .credits { grid-template-columns: 5fr 7fr; align-items: start; } }
.credits .lede { color: var(--ink-soft); margin-top: 1rem; }
.credits__table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.credits__table th, .credits__table td { text-align: left; padding: 0.9rem 0.6rem; border-bottom: 1px solid var(--line); }
.credits__table thead th { font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; }
.credits__table tbody th { font-weight: 400; }
.credits__table td { font-variant-numeric: tabular-nums; }
.credits__table .price__vat { font-size: var(--t-xs); }
.conds__list { margin: 2rem 0 0; display: grid; gap: 0; }
@media (min-width: 900px) { .conds__list { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 4rem); } }
.conds__list div { border-top: 1px solid var(--line); padding-block: 1.1rem; }
.conds__list dt { font-weight: 500; margin-bottom: 0.3rem; }
.conds__list dd { margin: 0; color: var(--ink-soft); }

/* links from the service pages to the agencies area */
.svc-agency { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem; border-block: 1px solid var(--line); }
.svc-agency p { margin: 0; max-width: 62ch; color: var(--ink-soft); }

/* newsletter */
.news { display: grid; gap: 0.6rem; }
.news__row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.news__field { flex: 1 1 14rem; display: block; }
.news input { width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border: 1px solid color-mix(in oklab, var(--ink) 22%, transparent); border-radius: 999px; background: #fff; font: inherit; }
.news input:focus { outline: 2px solid var(--slate); outline-offset: 1px; }
.news button { border: 0; cursor: pointer; }
.news button:disabled { opacity: 0.6; cursor: wait; }
.news__fine { margin: 0; font-size: var(--t-xs); color: var(--ink-soft); max-width: 60ch; }
.news__status { margin: 0; min-height: 1.4em; font-size: var(--t-sm); color: var(--slate); }
.newsband { background: var(--paper-2); }
.newsband__in { padding-block: var(--section); display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .newsband__in { grid-template-columns: 6fr 6fr; gap: clamp(2rem, 5vw, 5rem); } }
.newsband .display { margin: 0.8rem 0 1rem; max-width: 20ch; }
.newsband .lede { color: var(--ink-soft); }
.foot__news { display: grid; gap: 1.2rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .foot__news { grid-template-columns: 4fr 8fr; align-items: start; } }
.foot__newsp { margin: 0; font-family: var(--serif); font-size: var(--t-lg); max-width: 26ch; }
.foot__legal a { text-decoration: none; }
.foot__legal a:hover { text-decoration: underline; }
.article__news { margin: 0 0 clamp(2.5rem, 5vw, 4rem); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--paper-2); border-radius: 4px; display: grid; gap: 1rem; }
.article__newsh { margin: 0; font-family: var(--serif); font-size: var(--t-xl); line-height: 1.2; max-width: 30ch; }

/* resources */
.res__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 700px) { .res__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .res__list { grid-template-columns: repeat(3, 1fr); } }
.res__card { height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 0.9rem; padding: 1.8rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; text-decoration: none; transition: border-color 300ms var(--ease); }
.res__card:hover { border-color: color-mix(in oklab, var(--slate) 40%, transparent); }
.res__card .label { margin: 0; }
.res__name { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.15; }
.res__p { color: var(--ink-soft); font-size: var(--t-sm); }
.res__card .arrow { justify-self: start; }

/* guides: open after sign-up (and always without JavaScript) */
.gate__ask { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--paper-2); border-radius: 4px; display: grid; gap: 1rem; max-width: 52rem; }
.gate__h { margin: 0; font-family: var(--serif); font-size: var(--t-xl); }
.js .gate:not(.is-open) .gate__content { display: none; }
.gate.is-open .gate__ask, html:not(.js) .gate__ask { display: none; }
.guide__steps { list-style: none; counter-reset: g; margin: 0; padding: 0; display: grid; gap: 0; max-width: 60rem; }
.guide__steps li { counter-increment: g; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.guide__steps li::before { content: counter(g, decimal-leading-zero); grid-row: span 2; font-size: var(--t-xs); letter-spacing: 0.08em; color: var(--ink-soft); padding-top: 0.6em; }
.guide__steps h2 { margin: 0 0 0.5rem; font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); line-height: 1.2; }
.guide__steps p { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.guide__check { margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: 4px; max-width: 60rem; }
.guide__check .display { margin: 0 0 1.5rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
@media (min-width: 700px) { .checklist { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.checklist li { display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.8rem; align-items: start; }
.checklist li::before { content: ""; width: 1.05rem; height: 1.05rem; margin-top: 0.18em; border: 1.5px solid var(--slate); border-radius: 3px; }
.guide__tools { margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* calculator */
.calc { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 1000px) { .calc { grid-template-columns: 6fr 6fr; align-items: start; } }
.calc__in label em { display: block; margin-top: 0.1rem; }
.calc__out { display: grid; gap: 1.4rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--night); color: var(--cream); border-radius: 4px; }
@media (min-width: 1000px) { .calc__out { position: sticky; top: 7rem; } }
.calc__out p { margin: 0; }
.calc__out .label { color: var(--cream-soft); }
.calc__big { display: grid; gap: 0.6rem; }
.calc__big strong { font-family: var(--serif); font-weight: 400; font-size: var(--t-4xl); line-height: 1; font-variant-numeric: tabular-nums; }
.calc__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.calc__bars li { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; font-size: var(--t-sm); }
.calc__bars span { color: var(--cream-soft); }
.calc__bars b { font-weight: 500; font-variant-numeric: tabular-nums; }
.calc__bars i { grid-column: 1 / -1; display: block; height: 3px; background: color-mix(in oklab, var(--cream) 14%, transparent); position: relative; }
.calc__bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--cream); transition: width 400ms var(--ease); }
.calc__row { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid color-mix(in oklab, var(--cream) 18%, transparent); }
.calc__row strong { font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); font-variant-numeric: tabular-nums; }
.calc__row--beam strong { color: var(--beam-a); }
.calc__note { font-size: var(--t-xs); color: var(--cream-soft); }
.calc__out .cta { background: var(--cream); color: var(--ink); border: 0; cursor: pointer; }
.band__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1rem 0 0; }
.band__links .cta { margin-top: 0; }
.arrow--light { color: var(--cream); }

/* terms */
.terms h2 { margin: 2.5rem 0 0.6rem; font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); }
.terms__updated { font-size: var(--t-sm); }

/* print: guides and the calculator become clean pages to keep */
@media print {
  .bar, .foot, .band, .newsband, .gate__ask, .guide__tools, .skip, [data-print], .calc__in + .calc__out .cta { display: none !important; }
  .js .gate .gate__content { display: block !important; }
  .paper main { padding-top: 0; }
  .calc__out { background: #fff; color: #000; border: 1px solid #ccc; }
  .calc__out .label, .calc__bars span, .calc__note { color: #444; }
  .calc__bars i::after { background: #1B3A5C; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* one sign-up per page: when the page already offers the newsletter, the footer doesn't repeat it */
main:has(.news) ~ .foot .foot__news { display: none; }
.article__guide { margin: 0 0 1.5rem; }

/* AI furnished plans sit whole on white, never cropped */
.intro__media > img.is-contain, .pack img.is-contain { object-fit: contain; padding: 5%; background: #fff; }
.plans__grid--two li { grid-column: auto !important; }
.plans__grid--two .plans__img { aspect-ratio: 4 / 3 !important; }
@media (min-width: 900px) { .plans__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* doors to the free resources */
.who__door { display: inline-block; margin-top: 1rem; font-size: var(--t-sm); }
.svc-agency__links { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; }
.talk__ready { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 0.6rem; justify-items: start; }
.talk__ready p { font-family: var(--sans); font-size: var(--t-sm); color: var(--ink-soft); }
.talk__ready .arrow { font-size: var(--t-sm); }
.newsband__form { display: grid; gap: 1.2rem; justify-items: start; }
.newsband__form .news { width: 100%; }

/* the calculator on the home page */
.minicalc { display: grid; gap: clamp(2rem, 5vw, 5rem); margin-block: var(--section); align-items: center; }
@media (min-width: 1000px) { .minicalc { grid-template-columns: 5fr 7fr; } }
.minicalc__text .display { margin: 1rem 0 1.25rem; max-width: 14ch; }
.minicalc__text .lede { color: var(--ink-soft); }
.minicalc__box { display: grid; gap: 1.3rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--night); color: var(--cream); border-radius: 4px; }
.minicalc__in { display: grid; gap: 1rem; }
@media (min-width: 640px) { .minicalc__in { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.minicalc__in label { display: grid; gap: 0.45rem; font-size: var(--t-sm); color: var(--cream-soft); }
.minicalc__in input { width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; border: 1px solid color-mix(in oklab, var(--cream) 25%, transparent); border-radius: 6px; background: color-mix(in oklab, var(--cream) 6%, transparent); color: var(--cream); font: inherit; }
.minicalc__in input:focus { outline: 2px solid var(--beam-a); outline-offset: 1px; }
.minicalc__box p { margin: 0; }
.minicalc__out { display: grid; gap: 0.4rem; padding-top: 0.6rem; }
.minicalc__out span { font-size: var(--t-sm); color: var(--cream-soft); }
.minicalc__out strong { font-family: var(--serif); font-weight: 400; font-size: var(--t-4xl); line-height: 1; font-variant-numeric: tabular-nums; color: var(--beam-a); }
.minicalc__row { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid color-mix(in oklab, var(--cream) 18%, transparent); }
.minicalc__row strong { font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); font-variant-numeric: tabular-nums; }
.minicalc__note { font-size: var(--t-xs); color: var(--cream-soft); }
.minicalc__more { justify-self: start; background: var(--cream); color: var(--ink); }
.minicalc__more:hover { background: #fff; }
.finale__calc { font-size: var(--t-sm); margin-top: 0.4rem; }
.finale__calc a { color: var(--cream); }

/* Logo on screen: always 179 x 50 px on whole pixels, so the vector edges fall on the pixel grid
   (the -web.svg versions put the square's frame exactly on it). round() snaps the bar's spacing. */
.bar { padding-block: round(clamp(0.9rem, 2vw, 1.4rem), 1px); padding-inline: round(var(--gutter), 1px); }
.bar__brand { display: block; line-height: 0; align-self: center; }
.bar__brand img, .foot__brand img { width: 179px; height: 50px; }
@media (max-width: 620px) { .lp .bar__brand img { width: 143px; height: 40px; } }
.bar__brand { flex-shrink: 0; }
/* screen logo, tuned at 215 x 60 (0.6 px per unit): square on the pixel grid, letters with optical weight */
.bar__brand img, .foot__brand img { width: 215px; height: 60px; }
.bar__brand picture { display: block; }
@media (max-width: 620px) { .lp .bar__brand img { width: 143px; height: 40px; } }
/* the logo pictures: sizes follow brandLogo() in build.mjs */
.logo, .foot__mini picture { display: block; line-height: 0; }
.bar__brand img, .foot__brand img { width: 240px; height: 67px; }
@media (max-width: 420px) { .bar__brand img, .foot__brand img { width: 215px; height: 60px; } }
@media (max-width: 620px) { .lp .bar__brand img { width: 143px; height: 40px; } }
.foot__mini img { width: 143px; height: 40px; display: block; }


/* films page: the vertical film keeps its own 9:16 frame and full resolution, never cropped */
.intro--tall .intro__media { aspect-ratio: 9 / 16; height: auto; min-height: 0; width: min(70%, 17rem); justify-self: center; }
@media (min-width: 900px) {
  .intro--media.intro--tall { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .intro--tall .intro__media { height: min(calc(100svh - 10rem), 50rem); width: auto; justify-self: end; }
}
/* a portrait left on its own keeps its shape, centred, no taller than the screen */
.g--1 .g__item.is-portrait { display: flex; justify-content: center; }
.g--1 .g__item.is-portrait img { width: auto; max-width: 100%; max-height: 88svh; }
.g--1 .g__item.is-portrait .g__open { width: auto; max-width: 100%; background: none; }

/* studio hero: the observatory sits at the right of the render, keep it in frame (bottom right) */
.intro__media > img.studio__cover { object-position: 92% 50%; }

/* floor plans: the two ways, side by side */
.ways { margin-block: 0 var(--section); }
.ways__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 900px) { .ways__list { grid-template-columns: 1fr 1fr; } }
.ways__item { display: grid; gap: 0.9rem; align-content: start; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.ways__item p { margin: 0; max-width: 52ch; }
.ways__item > p:not(.label):not(.ways__when) { color: var(--ink-soft); }
.ways__name { margin: 0; font-family: var(--serif); font-size: var(--t-xl); font-weight: 400; line-height: 1.15; }
.ways__when { padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.ways__when strong { display: block; margin-bottom: 0.2rem; font-weight: 500; }
.ways__item .arrow { justify-self: start; }

/* ---------------------------------------------------------------- 2026-11-16: reach and touch
   Six links in the bar: between the phone menu and a wide screen the spacing tightens. */
@media (min-width: 901px) and (max-width: 1180px) {
  .bar { gap: 1rem; }
  .bar__nav { gap: 0.9rem; }
  .bar__nav ul { gap: 0.95rem; }
  .bar .cta--bar { padding-inline: 1em; }
}
.bar__nav ul a { white-space: nowrap; }
@media (max-width: 900px) and (max-height: 700px) { .bar__nav ul a { font-size: var(--t-xl); } .bar__nav { gap: 1.4rem; } }

/* Phone: "Marcar conversa" stays at the bottom of the screen (site.js decides when). */
.dock { display: none; }
@media (max-width: 900px) {
  .dock {
    display: inline-flex; justify-content: center; position: fixed; z-index: 60;
    left: var(--gutter); right: var(--gutter); bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 10px 30px color-mix(in oklab, var(--night) 28%, transparent);
    opacity: 0; visibility: hidden; transform: translateY(1.2rem);
    transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s 260ms;
  }
  .dock.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
}
@media print { .dock { display: none !important; } }

/* Touch: links that stand alone are at least 44 px tall (text inside a paragraph keeps its line). */
@media (hover: none) and (pointer: coarse), (max-width: 900px) {
  .foot__list { gap: 0; }
  .foot__list a, .foot__social a, .foot__legal a, .foot--lp .foot__small a, .finale__small a, .talk__direct a, .svc-others a, .bar__lang {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .foot__social { gap: 0 1.25rem; }
  a.arrow { display: inline-block; padding-block: 0.7rem 0.35rem; }
  .chip { min-height: 44px; }
  .rail__skip { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Before/after in a hero opens on the finished photo, shows the original, and comes back. */
@keyframes range-wipe {
  0%, 26% { clip-path: inset(0 0 0 0); }
  48%, 64% { clip-path: inset(0 0 0 100%); }
  90%, 100% { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) { .range__after { clip-path: inset(0 0 0 50%); } }
