/* =========================================================
   Univis — website
   Swiss grid · PP Mori (Regular / Italic / Semibold / Semibold Italic)
   ========================================================= */

@font-face { font-family: "PP Mori"; src: url("../fonts/PPMori-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Mori"; src: url("../fonts/PPMori-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "PP Mori"; src: url("../fonts/PPMori-Semibold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Mori"; src: url("../fonts/PPMori-SemiboldItalic.otf") format("opentype"); font-weight: 600; font-style: italic; font-display: swap; }

/* The colours that change with the page are registered, so the page can ease them all at once (see body) */
@property --page { syntax: "<color>"; inherits: true; initial-value: #0B0B0C; }
@property --page-ink { syntax: "<color>"; inherits: true; initial-value: #F3F1EC; }
@property --cream { syntax: "<color>"; inherits: true; initial-value: #EDEBE5; }
@property --cream-ink { syntax: "<color>"; inherits: true; initial-value: #0B0B0C; }
@property --cream-ink-2 { syntax: "<color>"; inherits: true; initial-value: rgba(11, 11, 12, .6); }
@property --cream-ink-3 { syntax: "<color>"; inherits: true; initial-value: rgba(11, 11, 12, .6); }
@property --cream-line { syntax: "<color>"; inherits: true; initial-value: rgba(11, 11, 12, .14); }

:root {
  /* ---- Colour ---- */
  --bg: #0B0B0C;
  --card: #151518;
  --ink: #F3F1EC;
  --ink-2: rgba(243, 241, 236, .64);
  --ink-3: rgba(243, 241, 236, .52);   /* 4.6:1 on --bg and --card */
  --line: rgba(243, 241, 236, .14);

  --cream: #EDEBE5;
  --cream-ink: #0B0B0C;
  --cream-ink-2: rgba(11, 11, 12, .6);
  --cream-line: rgba(11, 11, 12, .14);
  --cream-ink-3: rgba(11, 11, 12, .6);   /* 4.6:1 on --cream */
  --page: var(--bg);        /* the page's colour and ink: dark, cream in services, the service's colour while one is active */
  --page-ink: var(--ink);

  --blue: #4C7DFF;
  --blue-deep: #2747C0;   /* the Web background in services: light text at .75 still reaches 4.5:1 */
  --green: #52D88A;
  --gold: #F2C14E;
  --pink: #EFA3C8;

  /* ---- Spacing scale (8pt, in rem so it scales with user text size) ---- */
  --s-0: .25rem;  --s-1: .5rem;   --s-2: 1rem;   --s-3: 1.5rem;  --s-4: 2rem;
  --s-5: 3rem;    --s-6: 4rem;   --s-7: 6rem;    --s-8: 8rem;
  --s-9: 12rem;   --s-10: 16rem;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --col-gap: clamp(1rem, 1.6vw, 2rem);
  --section: clamp(5rem, 9vw, 10rem);
  --radius: clamp(.875rem, 1.2vw, 1.25rem);

  /* ---- Type scale: size, leading and tracking move together ---- */
  --fs-display: clamp(2.75rem, 7.2vw, 8.5rem);   /* lh .95 · ls -.04em  */
  --fs-h2: clamp(2rem, 4.2vw, 4.75rem);          /* lh 1   · ls -.035em */
  --fs-h3: clamp(1.5rem, 2.3vw, 2.5rem);         /* lh 1.05· ls -.025em */
  --fs-statement: clamp(1.5rem, 2.5vw, 2.75rem); /* lh 1.15· ls -.025em */
  --fs-lead: clamp(1.125rem, 1.45vw, 1.5rem);    /* lh 1.4 · ls -.01em  */
  --fs-body: 1.0625rem;                          /* lh 1.6 · ls 0       */
  --fs-ui: .9375rem;                             /* lh 1.2 · ls -.005em */
  --fs-meta: .8125rem;                           /* lh 1.45· ls .015em  */

  /* ---- Section rhythm ---- */
  --gap-head: clamp(var(--s-6), 9vw, var(--s-9));     /* running head → title */
  --gap-block: clamp(var(--s-7), 10vw, var(--s-10));  /* title row → content */
  --gap-item: clamp(var(--s-5), 4.5vw, var(--s-6));    /* between items in a list · label → item title */
  --header-h: 4.75rem;                                 /* height of the fixed nav bar */

  /* ---- Motion: one critically-damped curve, no overshoot ---- */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-press: 100ms;
  --t-fast: .35s;
  --t-base: .6s;
  --t-slow: .9s;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 6rem;
  scrollbar-gutter: stable;   /* no layout jump when the intro releases the scroll */
}
@media (pointer: fine) { html { overscroll-behavior: none; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--page);
  color: var(--page-ink);
  font-family: "PP Mori", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  /* Ease the dark ↔ light shift and the services' colours; no abrupt brightness jumps. Easing the colours
     themselves, not each element's, keeps every surface, text and line on the page switching in sync */
  transition: --page var(--t-slow) var(--ease-io), --page-ink var(--t-slow) var(--ease-io), --cream var(--t-slow) var(--ease-io),
    --cream-ink var(--t-slow) var(--ease-io), --cream-ink-2 var(--t-slow) var(--ease-io), --cream-ink-3 var(--t-slow) var(--ease-io), --cream-line var(--t-slow) var(--ease-io);
}
/* while the intro plays: no scrolling by wheel, keys or touch */
html:has(body.is-loading), body.is-loading { overflow: hidden; }
body.is-loading { touch-action: none; }
body.theme-light { --page: var(--cream); --page-ink: var(--cream-ink); }
/* Services: the page takes on each service's colour while it crosses the middle of the screen (main.js) */
body.theme-light[data-tone="brand"] { --page: var(--gold); }
body.theme-light[data-tone="motion"] { --page: var(--green); }
body.theme-light[data-tone="brand"], body.theme-light[data-tone="motion"] { --cream-ink-2: rgba(11, 11, 12, .78); --cream-ink-3: rgba(11, 11, 12, .64); --cream-line: rgba(11, 11, 12, .22); }
/* Web: a deeper blue with light text (dark-on-light parts such as .btn--dark flip with it) */
body.theme-light[data-tone="web"] {
  --page: var(--blue-deep); --page-ink: var(--ink); --cream: var(--bg);
  --cream-ink: var(--ink); --cream-ink-2: rgba(243, 241, 236, .9); --cream-ink-3: rgba(243, 241, 236, .75); --cream-line: rgba(243, 241, 236, .3);
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
em { font-style: italic; font-weight: 400; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
[id] { scroll-margin-top: var(--s-7); }   /* an anchor jump without smooth scroll lands clear of the header */
h1, h2, h3 { text-wrap: balance; }
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: fixed; left: var(--gutter); top: var(--s-2); z-index: 200;
  padding: .75rem 1.25rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600;
  transform: translateY(-200%); transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* =========================================================
   Swiss grid
   ========================================================= */
.container { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
.section { padding-block: var(--section); }

.meta { color: var(--ink-2); }
.muted { color: var(--ink-3); }

/* Title row — every main section: display title left, short intro right */
.sec-intro { margin-bottom: var(--gap-block); row-gap: var(--s-4); align-items: end; }
.sec-intro > :first-child { grid-column: 1 / 9; }
.sec-intro > :nth-child(2) { grid-column: 9 / 13; }
@media (max-width: 960px) { .sec-intro > :first-child, .sec-intro > :nth-child(2) { grid-column: 1 / -1; } }

/* Masked line reveal */
/* Generous clip box so descenders (g, p, y) and italic overhangs are never cut */
.line { display: block; overflow: hidden; padding: .04em .08em .2em; margin: -.04em -.08em -.2em; }
.line__inner { display: block; }
/* Masked word reveal (hero title): same clip box, one word at a time */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .08em .2em; margin: -.04em -.08em -.2em; }
.word__inner { display: inline-block; }

/* =========================================================
   Type roles — the only type styles on the site (see DESIGN.md).
   New elements use a .t-* class; existing components are listed
   here instead of setting their own sizes, weights or tracking.
   ========================================================= */
h1, h2, h3, h4, legend { font: inherit; }
.t-display, .display, .contact__title, .page-title, .case-next__title, .intro__count { font-size: var(--fs-display); font-weight: 600; line-height: .95; letter-spacing: -.04em; }
.t-h2, .mission__title, .svc-item__title { font-size: var(--fs-h2); font-weight: 600; line-height: 1; letter-spacing: -.035em; }
.t-statement, .hero__statement, .mission__text, .bloom-steps { font-size: var(--fs-statement); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.t-h3, .project__title, .ribbon__title, .mission__steps strong, .contact__mail, .faq__q, .prose h2 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.05; letter-spacing: -.025em; }
.t-lead, .page-intro, .case .prose p, .partners__text, .faq__a, .svc-index__list a, .quote blockquote { font-size: var(--fs-lead); font-weight: 400; line-height: 1.4; letter-spacing: -.01em; }
.t-body, .legal .prose p, .case-meta dd, .footer__col a, .svc-tier { font-size: var(--fs-body); font-weight: 400; line-height: 1.6; letter-spacing: 0; }
.t-ui, .btn, .quote figcaption, .hero__link, .view-toggle__btn { font-size: var(--fs-ui); font-weight: 600; letter-spacing: -.005em; }
.t-meta, .meta, .sec-head { font-size: var(--fs-meta); font-weight: 400; line-height: 1.45; letter-spacing: .015em; }
/* Emphasis is always italic regular — never heavier */
em { font-style: italic; font-weight: 400; letter-spacing: -.02em; }

/* Section index row — the Swiss "running head" */
.sec-head {
  position: relative; align-items: baseline;
  padding-top: var(--s-2); margin-bottom: var(--gap-head); color: var(--ink-2);
}
.sec-head::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: currentColor; opacity: .3;
  transform-origin: left; transform: scaleX(var(--rule, 1));
}

.sec-head__name { grid-column: 3 / 9; color: var(--ink); }

.services .sec-head { color: var(--cream-ink-2); }
.services .sec-head__name { color: var(--cream-ink); }

@media (max-width: 760px) {
  .sec-head__name { grid-column: 3 / 13; }

}

/* =========================================================
   Buttons — feedback on press, not release
   ========================================================= */
.btn {
  --h: 3.5rem;
  display: inline-flex; align-items: center; gap: var(--s-0);
  height: var(--h); padding: 0 .375rem 0 1.625rem;
  border-radius: 999px;
  white-space: nowrap; overflow: hidden;
  transition: scale var(--t-press) ease-out;
}
.btn:active { scale: .97; }
.btn--light { background: var(--ink); color: var(--bg); }
.btn--dark  { background: var(--cream-ink); color: var(--cream); }
/* Hover: the label rolls up to its copy, the arrow rolls out top-right and back in — one motion, one curve */
.btn__text { position: relative; display: inline-block; overflow: hidden; padding-right: 1rem; line-height: 1.3; }
.btn__text > span { display: block; }
.btn__text::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.btn__text > span, .btn__text::after { transition: transform var(--t-base) var(--ease); }
.btn:hover .btn__text > span, .btn:hover .btn__text::after { transform: translateY(-100%); }
.btn__icon {
  position: relative; overflow: hidden;
  width: calc(var(--h) - .75rem); height: calc(var(--h) - .75rem); border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); color: var(--ink);
}
.btn--dark .btn__icon { background: var(--cream); color: var(--cream-ink); }
.btn__icon svg { grid-area: 1 / 1; width: 1.1rem; height: 1.1rem; transition: transform var(--t-base) var(--ease); }
.btn__icon svg:last-child { transform: translate(-180%, 180%); }
.btn:hover .btn__icon svg:first-child { transform: translate(180%, -180%); }
.btn:hover .btn__icon svg:last-child { transform: translate(0, 0); }

/* =========================================================
   Intro — the logo draws itself, then becomes the hero (js/intro.js)
   ========================================================= */
.intro { position: fixed; inset: 0; z-index: 100; overflow: hidden; color: var(--ink); pointer-events: none; }
.intro__bg { position: absolute; inset: 0; background: var(--bg); }
/* Centred by position, not by translate, so the FLIP into the hero mask only has x, y and scale */
.intro__logo {
  --w: clamp(5.5rem, 14vmin, 9rem);
  position: absolute; left: calc(50% - var(--w) / 2); top: calc(50% - var(--w) * 318 / 285 / 2);
  width: var(--w); aspect-ratio: 285 / 318; height: auto;
  transform-origin: 0 0; overflow: visible; fill: currentColor;
}
/* The counter rides the line from 0 (left) to 100 (right) */
.intro__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(var(--gutter), env(safe-area-inset-bottom)); }
.intro__bar::before, .intro__bar::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line); }
.intro__bar::after { background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.intro__count { display: inline-flex; padding-bottom: var(--s-2); font-variant-numeric: tabular-nums; }
.intro__count sup { font-size: .28em; font-weight: 400; letter-spacing: 0; margin: .15em 0 0 .1em; }

/* =========================================================
   Page transition (js/transition.js): a disc with a spiral arm, 240vmax wide,
   turns in from the bottom right until it covers the screen, then turns on
   out to the top left. Only its transform moves (GPU-composited, no repaint).
   ========================================================= */
.swap { position: fixed; inset: 0; z-index: 150; visibility: hidden; pointer-events: none; }
.swap.is-on { visibility: visible; pointer-events: auto; }
.swap__shape {
  position: absolute; left: 50%; top: 50%; width: 240vmax; height: 240vmax; max-width: none; margin: -120vmax 0 0 -120vmax;
  fill: var(--swoosh, var(--bg)); will-change: transform;
  transform: translate(65%, 65%) rotate(150deg);   /* waiting off-screen, bottom right */
}
.swap__mark {   /* centred by position: GSAP animates its transform */
  --w: clamp(11rem, 30vw, 21rem);
  position: absolute; left: calc(50% - var(--w) / 2); top: calc(50% - var(--w) * 404 / 1055 / 2);
  width: var(--w); height: auto; overflow: visible; fill: var(--ink); visibility: hidden;
}
.swap__pen { stroke: var(--ink); stroke-width: .8; }   /* closes the anti-aliasing seam against the masked n */
/* Arriving: the page starts covered by the shape alone (the head script sets the class).
   The page itself stays visible underneath, so GSAP reads its real end states. */
html.is-swapping .swap { visibility: visible; animation: swap-failsafe 0s 6s forwards reverse; }   /* never stuck if the script fails */
html.is-swapping .swap__shape { transform: none; }
@keyframes swap-failsafe { from { visibility: hidden; } to { visibility: visible; } }

/* =========================================================
   Cursor
   ========================================================= */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--ink); mix-blend-mode: difference;
  display: grid; place-items: center; opacity: 0;
  transition: width var(--t-base) var(--ease), height var(--t-base) var(--ease), margin var(--t-base) var(--ease), opacity var(--t-fast);
}
.cursor__label { font-size: .875rem; font-weight: 600; color: var(--bg); opacity: 0; scale: .6; transition: opacity var(--t-fast), scale var(--t-base) var(--ease); }
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.cursor.is-hidden { opacity: 0; }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; }
.cursor.is-view .cursor__label { opacity: 1; scale: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: max(var(--s-3), env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) var(--s-3) max(var(--gutter), env(safe-area-inset-left));
  transition: transform var(--t-slow) var(--ease);
}
/* The wordmark; it draws itself in when it appears (js/logo.js). In the home hero the big logo window
   is the brand, so the wordmark only appears once the hero has scrolled past (.is-compact). */
.header__mark {
  display: flex; align-items: center; flex-shrink: 0; height: 2.25rem; color: inherit;
  transition: scale var(--t-press) ease-out, opacity var(--t-base) var(--ease), visibility 0s;
}
.header:not(.is-compact) .header__mark { opacity: 0; visibility: hidden; pointer-events: none; transition-delay: 0s, 0s, var(--t-base); }
.header__mark svg { height: 1.9rem; width: auto; aspect-ratio: 1055 / 404; overflow: visible; fill: currentColor; }
.header__mark .wm-pen { stroke: currentColor; stroke-width: .8; }   /* closes the anti-aliasing seam against the masked n */
.header__mark:active { scale: .97; }

.bar { display: flex; align-items: center; gap: var(--s-0); padding: .3125rem; border-radius: 999px; }


.nav { display: flex; align-items: center; gap: var(--s-0); }
.nav__link {
  padding: .6875rem 1.125rem; border-radius: 999px; font-weight: 600; font-size: .9375rem; letter-spacing: -.005em;
  transition: background-color var(--t-fast) var(--ease);
}
.nav__link:hover { background: rgba(127, 127, 127, .14); }
.nav__link:active { background: rgba(127, 127, 127, .24); }
.nav__cta {
  padding: .6875rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .9375rem; margin-left: .25rem;
  background: var(--ink); color: var(--bg);
  transition: scale var(--t-press) ease-out;
}
.nav__cta:active { scale: .97; }
body.theme-light .nav__cta { background: var(--cream-ink); color: var(--cream); }
.menu-btn { display: none; }

/* Mobile menu — enters and exits along the same path */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); color: var(--ink);
  padding: 7.5rem var(--gutter) max(var(--gutter), env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path var(--t-slow) var(--ease-io), visibility 0s linear var(--t-slow);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--t-slow) var(--ease-io), visibility 0s; }
.mobile-menu nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: var(--s-2);
  font-size: clamp(2.25rem, 10.5vw, 4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.12;
  border-bottom: 1px solid var(--line); padding: .2em 0;
}

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn {
    display: grid; place-items: center; align-content: center; gap: 6px;
    width: 2.75rem; height: 2.75rem; border-radius: 50%;
    transition: background-color var(--t-fast) var(--ease), scale var(--t-press) ease-out;
  }
  .menu-btn:active { scale: .94; background: rgba(127, 127, 127, .2); }
  .menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform var(--t-base) var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .bar { position: relative; z-index: 2; }
}

/* =========================================================
   Hero — the icon is a window onto the 3D garden, the copy beside it
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; background: var(--bg);
  display: flex; flex-direction: column;
}
.hero__sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Big, left, cut off by the edges. bloom.js renders into it; without WebGL it is the plain logo. */
.hero__mask {
  position: absolute; left: -7vw; top: calc(var(--header-h) / 2);
  height: 118svh; aspect-ratio: 285 / 318; background: var(--ink);
  -webkit-mask: url("../assets/icon.svg") 0 0 / 100% 100% no-repeat;
  mask: url("../assets/icon.svg") 0 0 / 100% 100% no-repeat;
}
/* With 3D the scene cuts itself to the logo (bloom.js), so the lily can grow out of it:
   the canvas overhangs the box to the top and right */
.hero__mask.has-3d { background: none; -webkit-mask: none; mask: none; }
.hero__mask .bloom-canvas { position: absolute; inset: auto auto 0 0; width: 145%; height: 115%; display: block; }
/* Right column, centred: one statement in two tones, then the CTA row */
.hero__content { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + var(--gap-item)) max(var(--s-5), env(safe-area-inset-bottom)); }
.hero__copy { row-gap: var(--s-4); }
.hero__copy > * { grid-column: 8 / 13; }
.hero__statement { color: var(--ink-3); text-wrap: pretty; }
.hero__key { color: var(--ink); }
.hero__cta { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-4); }
.hero__link { color: var(--ink); padding-bottom: .15em; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size var(--t-base) var(--ease); white-space: nowrap; }
.hero__link:hover { background-size: 0 1px; background-position: 100% 100%; }
@media (max-width: 1100px) { .hero__copy > * { grid-column: 7 / 13; } }
@media (max-width: 760px) {
  /* the icon on top, the copy below it (the tail may overlap a little) */
  .hero { --mask-h: calc(108vw * 318 / 285); }
  .hero__mask { left: -12vw; top: var(--header-h); width: 108vw; height: var(--mask-h); }
  .hero__content { padding-top: calc(var(--header-h) + var(--mask-h) - var(--gap-item)); }
  .hero__copy > * { grid-column: 1 / -1; }
  .hero__cta { justify-content: flex-start; }
}

/* =========================================================
   Mission
   ========================================================= */
.mission__title { grid-column: 1 / 10; }
.mission__text {
  grid-column: 5 / 13; margin-top: var(--gap-head);
}
.mission__text .w { opacity: .16; }
/* the name opens a small card with a photo and the way to the about page (js/pop.js); locked until that page exists */
/* the name carries a small photo inline; on hover it grows into a card with the photo and the way to the
   about page (js/pop.js places the card so it starts exactly on the thumbnail). Locked until that page exists */
.who { position: relative; z-index: 5; }
.who__thumb, .who__card { overflow: hidden; background: #1d1d21 var(--photo, none) 50% 20% / cover no-repeat; }
.who__thumb {
  position: relative; display: inline-block; height: .82em; aspect-ratio: 4 / 5; vertical-align: -.1em; border-radius: .14em;
  background-image: var(--thumb, var(--photo, none)); transform: rotate(-4deg);
}
/* the thumbnail itself grows into the photo and back (js/pop.js): one shape, morphing */
.who__card { position: absolute; left: 0; top: 0; z-index: 20; visibility: hidden; pointer-events: none; will-change: left, top, width, height; }
/* until the photo comes: the icon, quietly */
.who:not([style*="--photo"]) .who__thumb::after, .who:not([style*="--photo"]) .who__card::after {
  content: ""; position: absolute; inset: 22%; background: var(--ink-3);
  -webkit-mask: url("../assets/icon.svg") center / contain no-repeat; mask: url("../assets/icon.svg") center / contain no-repeat;
}
.mission__steps { margin-top: var(--gap-block); row-gap: var(--gap-item); }
.mission__steps li {
  grid-column: span 3; border-top: 1px solid var(--line); padding-top: var(--s-2);
  display: flex; flex-direction: column;
}
.mission__steps strong { margin-top: var(--gap-item); }
.mission__steps p { color: var(--ink-2); margin-top: var(--s-2); max-width: 26ch; }
@media (max-width: 1100px) { .mission__title { grid-column: 1 / -1; } .mission__text { grid-column: 3 / 13; } }
@media (max-width: 860px) { .mission__steps li { grid-column: span 6; } }
@media (max-width: 760px) { .mission__text { grid-column: 1 / -1; } }
@media (max-width: 480px) { .mission__steps li { grid-column: 1 / -1; } }

/* =========================================================
   Expand image (pinned)
   ========================================================= */
.expand { position: relative; height: 260vh; }
.expand__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.expand__frame { position: absolute; inset: 0; clip-path: inset(24% 32% 24% 32% round 20px); }
.expand__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.expand__veil { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11,11,12,0) 35%, rgba(11,11,12,.55) 100%); }
.expand__words {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  padding: clamp(6rem, 11vh, 8rem) var(--gutter) clamp(var(--s-4), 6vh, var(--s-6));
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: clamp(2.25rem, 6.6vw, 7.75rem); font-weight: 600; letter-spacing: -.04em; line-height: 1;
}
.expand__w { display: block; white-space: nowrap; }
.expand__w--r { align-self: flex-end; }

@media (max-width: 760px) { .expand__frame { clip-path: inset(30% 10% 30% 10% round 16px); } }

/* =========================================================
   Work
   ========================================================= */


.work__grid { row-gap: var(--gap-block); align-items: start; }
.project--a { grid-column: 1 / 8; }
.project--b { grid-column: 9 / 13; margin-top: clamp(var(--s-8), 22vw, 26rem); }
.project--c { grid-column: 2 / 7; }
.project--d { grid-column: 7 / 13; margin-top: clamp(var(--s-7), 12vw, var(--s-10)); }
.project { display: block; }
.project__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--card); aspect-ratio: 4 / 3; }
.project--b .project__media, .project--c .project__media { aspect-ratio: 4 / 5; }
.project--d .project__media { aspect-ratio: 1 / 1; }
.project__media img {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover;
  transition: scale 1.2s var(--ease);
}
.project:hover .project__media img { scale: 1.04; }
.project__meta {
  display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: baseline; gap: var(--s-2);
  padding-top: var(--s-3); margin-top: var(--s-2); border-top: 1px solid var(--line);
}
.project__title em { color: var(--ink-2); }
.project__arrow {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; align-self: center;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-base) var(--ease);
}
.project__arrow svg { width: 1.05rem; height: 1.05rem; }
.project:hover .project__arrow { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(45deg); }

/* the title row stands in the middle, a size up from Display, "work" under "Selected" */
.work__head { display: flex; flex-direction: column; align-items: center; gap: var(--s-5); text-align: center; }
.work__head .display { font-size: clamp(3.5rem, 11vw, 12.5rem); }
/* the two views: a toggle under the title (work.js); the gallery is the default without JS */
.work__grid[hidden], .ribbon[hidden], .view-toggle[hidden] { display: none; }
.view-toggle { display: inline-flex; padding: var(--s-0); border-radius: 999px; background: rgba(243, 241, 236, .08); }
.view-toggle__btn {
  padding: .6rem 1.15rem; border-radius: 999px; color: var(--ink-2);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), scale var(--t-press) ease-out;
}
.view-toggle__btn[aria-pressed="false"]:hover { color: var(--ink); }
.view-toggle__btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.view-toggle__btn:active { scale: .96; }
.view-toggle__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Ribbon: the projects' pictures on one band through the pinned screen (work.js, Three.js); the canvas fills it,
   the row at the bottom sits on the grid: name · line · count · scope and the way in */
.ribbon { position: relative; height: 100svh; }
.ribbon__stage { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; }   /* the band runs to the screen edges, past the container */
.ribbon__stage { cursor: grab; touch-action: pan-y; user-select: none; }
.ribbon__stage.is-over { cursor: pointer; }
.ribbon__stage.is-dragging { cursor: grabbing; }
.ribbon__stage canvas { display: block; width: 100%; height: 100%; }
.ribbon__info {
  position: absolute; left: 0; right: 0; bottom: var(--s-5); z-index: 2; pointer-events: none;
  align-items: center; padding-top: var(--s-3); border-top: 1px solid var(--line);
}
.ribbon__info > * { pointer-events: auto; }
/* the front project's name and the way in */
.ribbon__title { grid-column: 1 / 9; }
.ribbon__title em { color: var(--ink-2); }
.ribbon__link { grid-column: 9 / 13; justify-self: end; }
@media (max-width: 760px) {
  .ribbon__info { row-gap: var(--s-3); }
  .ribbon__title, .ribbon__link { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .project--a, .project--b, .project--c, .project--d { grid-column: 1 / -1; margin-top: 0; }
  .project .project__media { aspect-ratio: 4 / 3; }
}

/* =========================================================
   Services (light)
   ========================================================= */
.services { color: var(--cream-ink); }

/* Sticky index + scrolling catalogue (after Subone / Vanadium / Joby) */
.svc { align-items: start; }
.svc-index {
  grid-column: 1 / 6; position: sticky; top: clamp(6rem, 14vh, 9rem);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.svc-index__num {
  font-size: clamp(6rem, 15vw, 17rem); font-weight: 600; letter-spacing: -.06em; line-height: 1;
  height: 1em; overflow: hidden; font-variant-numeric: tabular-nums; margin-left: -.06em;
}
.svc-index__reel { display: flex; flex-direction: column; transform: translateY(calc(var(--i, 0) * -1em)); transition: transform var(--t-slow) var(--ease); }
.svc-index__reel span { display: block; height: 1em; line-height: .86; }
.svc-index__track { height: 1px; background: var(--cream-line); position: relative; overflow: hidden; }
.svc-index__fill { position: absolute; inset: 0; background: var(--cream-ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.svc-index__list { display: flex; flex-direction: column; }
.svc-index__list a {
  display: flex; align-items: center; gap: var(--s-1); padding: .55rem 0;
  color: var(--cream-ink-3);
  transition: transform var(--t-base) var(--ease);   /* colours follow the page's own easing (body) */
}
.svc-index__list a:hover { color: var(--cream-ink-2); }
.svc-index__list li.is-active a { color: var(--cream-ink); transform: translateX(.25rem); }

.svc-list { grid-column: 7 / 13; }
.svc-item {
  min-height: 72vh; padding-block: var(--s-3) var(--s-8);
  border-top: 1px solid var(--cream-line);
  display: flex; flex-direction: column;
}
.svc-item:last-child { min-height: 0; padding-bottom: 0; }
.svc-item__title { margin-top: var(--gap-item); }
.svc-item__title em { position: relative; }
/* Words that pop (js/pop.js, after wabi.ai): the letters under the pointer shrink away and a small 3D object
   springs up in each of their places. The letters keep their width, so the line never reflows */
.pop.is-live .word { overflow: visible; }   /* the hero masks its words for the reveal; by the first hover it is long done */
.pop { white-space: nowrap; }   /* split into letter boxes, the word would otherwise break between them */
.ch { display: inline-block; position: relative; vertical-align: baseline; }
.ch__g { display: inline-block; transform-origin: 50% 70%; transition: opacity .15s linear, transform .24s cubic-bezier(.22, .8, .28, 1); }
.ch.is-on .ch__g { opacity: 0; transform: scale(.34); }
.ch__o {
  position: absolute; left: 50%; bottom: .08em; width: 1em; height: 1em; max-width: none; margin-left: -.5em;
  object-fit: contain; pointer-events: none; opacity: 0;
  transform: translateY(.2em) scale(.4) rotate(var(--r0, 0deg));
  transition: transform .46s cubic-bezier(.16, 1.42, .4, 1), opacity .13s linear;
  filter: drop-shadow(0 .2em .22em rgba(20, 18, 14, .22));
}
.ch.is-on .ch__o { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .ch__g, .ch__o { transition-duration: .01s; }
  .ch__o, .ch.is-on .ch__o { transform: none; }
}

/* Services title runs one column wider, the intro beside it */
@media (min-width: 961px) {
  .services__head > :first-child { grid-column: 1 / 10; }
  .services__head > :nth-child(2) { grid-column: 10 / 13; }
}
/* Web scope: three levels inside the Web pillar, so Brand and Web stay the same size */
.svc-tiers { margin-top: var(--s-5); border-top: 1px solid var(--cream-line); }
.svc-tier { display: grid; grid-template-columns: minmax(6.5rem, 1fr) 3fr; gap: var(--s-2); padding-block: var(--s-2); border-bottom: 1px solid var(--cream-line); }
.svc-tier dt { font-weight: 600; color: var(--cream-ink); }
.svc-tier dd { color: var(--cream-ink-2); }
.svc-item__caps { margin-top: var(--s-6); display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); }
.svc-item__caps li {
  display: flex; align-items: baseline; gap: var(--s-1);
  padding: .9rem 0; border-top: 1px solid var(--cream-line); line-height: 1.35;
}
.svc-item__caps li::before { content: "+"; color: var(--cream-ink-2); font-variant-numeric: tabular-nums; transition: transform var(--t-base) var(--ease); }
.svc-item__caps li:hover::before { color: var(--cream-ink); transform: rotate(90deg); }
.svc-item.is-active .svc-item__caps li::before { color: var(--cream-ink); }
.svc-item--custom .btn { align-self: flex-start; margin-top: var(--s-5); }

@media (max-width: 960px) {
  .svc-index { display: none; }
  .svc-list { grid-column: 1 / -1; }
  .svc-item { min-height: 0; padding-bottom: var(--s-7); }
}
@media (max-width: 560px) { .svc-item__caps { grid-template-columns: 1fr; } }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================================================
   How I work — three principles on the index list
   ========================================================= */
.process .sec-intro > :first-child { grid-column: 1 / -1; }
.process__steps { margin-top: 0; }
.process__steps li { grid-column: span 4; }
@media (max-width: 860px) { .process__steps li { grid-column: 1 / -1; } }

/* =========================================================
   Partners — the studio stays small, the reach doesn't
   ========================================================= */
.partners .sec-intro { margin-bottom: 0; }
.partners__text { color: var(--ink-2); }

/* =========================================================
   FAQ — questions on hairlines, answers unfold
   ========================================================= */
.faq__list { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-4); cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex-shrink: 0; width: .55em; height: .55em; transition: transform var(--t-base) var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 2px; background: currentColor; translate: -50% -50%; }
.faq__icon::after { rotate: 90deg; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__q:hover { color: var(--ink-2); }
.faq__a { max-width: 40em; padding-bottom: var(--s-5); color: var(--ink-2); }

/* Footer claim under the wordmark */

/* =========================================================
   Testimonials — an aside: running head + quotes, no title
   ========================================================= */
.voices__list { row-gap: var(--gap-item); }
.quote { grid-column: span 4; display: flex; flex-direction: column; gap: var(--s-3); }
.quote blockquote { color: var(--ink-2); text-wrap: pretty; }
.quote blockquote em { color: var(--ink); }
.quote figcaption { color: var(--ink); }
@media (max-width: 960px) { .quote { grid-column: 1 / -1; } .quote blockquote { max-width: 34em; } }

/* =========================================================
   Contact — the title row with the mail link (the form is kept in pages/sections/contact/)
   ========================================================= */
.contact__mail {
  justify-self: start;   /* as wide as the address, so the underline ends with it */
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat; padding-bottom: .12em;
  transition: background-size var(--t-slow) var(--ease);
}
.contact__mail:hover, .contact__mail:focus-visible { background-size: 100% 1px; }


/* =========================================================
   Pages — case studies and legal pages (built by tools/build.mjs)
   Same anatomy as a home section: running head, title row, content.
   ========================================================= */
.page { padding-top: calc(var(--header-h) + var(--gap-item)); padding-bottom: var(--section); }
.page-back { display: inline-block; margin-bottom: var(--gap-item); color: var(--ink-2); transition: color var(--t-fast) var(--ease); }
.page-back:hover { color: var(--ink); }
.page-intro { color: var(--ink-2); }

/* Case: facts in a row, then the cover */
.case-meta { row-gap: var(--s-4); }
.case-meta div { grid-column: span 3; border-top: 1px solid var(--line); padding-top: var(--s-2); }
.case-meta dt { color: var(--ink-3); }
.case-meta dd { margin-top: var(--s-1); }
.case-meta a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.case-cover { margin-top: var(--gap-block); }
/* while the page scrolls, a canvas over each picture draws it bent and split (glitch.js); at rest it is hidden */
.glitch { position: absolute; display: none; pointer-events: none; }
.case-cover .glitch, .case-media .glitch { border-radius: var(--radius); }
.case-cover img, .case-media img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--card); }

/* Prose: one reading column, offset on the grid */
.prose { margin-top: var(--gap-block); }
.prose > * { grid-column: 5 / 12; max-width: 38em; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--gap-item); }
.prose h2 + * { margin-top: var(--s-3); }
.case .prose p { color: var(--ink-2); }
.case .prose p em { color: var(--ink); }
.legal .prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a, .partners__text a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.prose a:hover, .partners__text a:hover { text-decoration-thickness: 2px; }
.prose > .case-media { grid-column: 1 / -1; max-width: none; margin-block: var(--gap-item); }
.case-media--grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); }
@media (max-width: 960px) {
  .prose > * { grid-column: 1 / -1; }
  .case-meta div { grid-column: span 6; }
}
@media (max-width: 560px) { .case-media--grid { grid-template-columns: 1fr; } }

/* Next project: one big link */
.case-next { margin-top: var(--section); }
/* the next project, bold: its cover fills a big rounded panel, the name and the button sit over it at the bottom */
.case-next__link { position: relative; display: flex; align-items: flex-end; min-height: clamp(22rem, 68vh, 44rem); padding: var(--s-4); overflow: hidden; border-radius: var(--radius); background: var(--card); isolation: isolate; }
.case-next__bg { position: absolute; inset: 0; z-index: -1; }
.case-next__bg img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--t-slow) var(--ease); }
.case-next__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--bg) 90%, transparent), color-mix(in srgb, var(--bg) 45%, transparent) 50%, color-mix(in srgb, var(--bg) 5%, transparent)); }
.case-next__link:hover .case-next__bg img { scale: 1.04; }
.case-next__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); width: 100%; }
.case-next__title { color: var(--ink); transition: color var(--t-fast) var(--ease); }
.case-next__link:hover .case-next__title { color: var(--ink-2); }
@media (max-width: 760px) {
  .case-next__link { min-height: 26rem; padding: var(--s-3); }
}
.case-next__link .btn__icon { flex-shrink: 0; width: clamp(3rem, 6vw, 5rem); height: auto; aspect-ratio: 1; background: var(--ink); color: var(--bg); }
.case-next__link .btn__icon svg { width: 40%; height: 40%; }
.case-next__link:hover .btn__icon svg:first-child { transform: translate(180%, -180%); }
.case-next__link:hover .btn__icon svg:last-child { transform: translate(0, 0); }

/* =========================================================
   Footer — running head rule, columns, then the meadow
   ========================================================= */
.footer { overflow: hidden; }
.footer__top { row-gap: var(--gap-item); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.footer__intro { grid-column: 1 / 7; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
.footer__logo { width: clamp(7.5rem, 11vw, 10rem); aspect-ratio: 1055 / 404; height: auto; color: var(--ink); fill: currentColor; }
.footer__col { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); }
.footer__col a, .to-top { position: relative; color: var(--ink-2); transition: color var(--t-fast) var(--ease); }
.footer__col a:hover, .to-top:hover { color: var(--ink); }
.footer__col a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--t-base) var(--ease); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__base { display: flex; justify-content: space-between; gap: var(--s-1) var(--s-3); flex-wrap: wrap; margin-top: var(--gap-head); color: var(--ink-3); }

/* the meadow */
.footer__field { position: relative; height: clamp(180px, 22vw, 420px); margin-top: var(--s-4); overflow: hidden; isolation: isolate; }
.footer__meadow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* 3D meadow (bloom.js) takes over the footer; the 2D field stays as the fallback */
.footer__field.has-3d .footer__meadow { display: none; }
.footer__field .bloom-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 960px) {
  .footer__intro { grid-column: 1 / -1; }
  .footer__col { grid-column: span 4; }
}
@media (max-width: 560px) {
  .footer__col { grid-column: span 6; }
}

/* =========================================================
   Accessibility preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .2s !important; }
  .intro { display: none; }
  .expand { height: auto; }
  .expand__pin { position: relative; height: 80svh; }
  .expand__frame { clip-path: none; }
  .expand__words { display: none; }

  .mission__text .w { opacity: 1; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: rgba(243,241,236,.85); --ink-3: rgba(243,241,236,.7); --line: rgba(243,241,236,.4); --cream-ink-2: rgba(11,11,12,.85); --cream-line: rgba(11,11,12,.4); }
}

/* =========================================================
   simple header: plain text, transparent at the top, a solid fill once scrolled
   ========================================================= */
.header {
  padding-block: max(1.1rem, env(safe-area-inset-top)) 1.1rem;
  transition: transform var(--t-slow) var(--ease);
}
/* the fill fades in by opacity, so its colour stays in step with the page's */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--page); opacity: 0; transition: opacity var(--t-base) var(--ease); }
.header.is-scrolled::before { opacity: 1; }

.bar { padding: 0; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav { gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav__link, .nav__cta {
  padding: .25rem 0; border-radius: 0; background: none !important; color: inherit !important;
  font-size: .9375rem; font-weight: 400; letter-spacing: 0; margin: 0;
  background-image: linear-gradient(currentColor, currentColor) !important;
  background-repeat: no-repeat !important; background-position: 0 100% !important; background-size: 0% 1px !important;
  transition: background-size var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav__link { opacity: .62; }
.nav__link:hover, .nav__link:focus-visible { opacity: 1; background-size: 100% 1px !important; }
.nav__cta { font-weight: 600; background-size: 100% 1px !important; }
.nav__cta:hover { background-size: 0% 1px !important; }
.nav__cta::after { content: " ↗"; font-weight: 400; }



@media (max-width: 960px) {
  .menu-btn { width: 2.25rem; height: 2.25rem; background: none !important; }
  body.menu-open .header { background: var(--bg); color: var(--ink); }
}

/* =========================================================
   universe + endless flower field
   ========================================================= */
/* "From concept to launch": a long pinned 3D story */
.expand { height: 620vh; }
/* Behind the canvas (and without WebGL): the page's own black */
.expand__frame { background: var(--bg); }
.bloom-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.expand__frame.has-3d .expand__veil { display: none; }   /* the 3D scene grades its own edges */
.expand__w--r { opacity: 0; }

.bloom-steps {
  position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(var(--s-5), 9vh, var(--s-7));
  width: min(22ch, calc(100% - 2 * var(--gutter)));
  text-shadow: 0 2px 30px rgba(5, 6, 13, .6);
}
.bloom-steps li { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; visibility: hidden; }
@media (max-width: 760px) {
  .expand__words { justify-content: flex-start; gap: var(--s-2); }
  .expand__w--r { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .expand { height: auto; }
  .bloom-steps li { opacity: 0; visibility: hidden; }
  .bloom-steps li:last-child { opacity: 1; visibility: visible; }
}

/* Counters and side labels removed — the running head keeps only the section name */
.sec-head__name { grid-column: 1 / -1; }
.project__meta { grid-template-columns: 1fr auto; }
