/* ---------- Tokens ---------- */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #f1f1ee; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #0d0d0c; }

:root {
  --bg: #f1f1ee;
  --fg: #0d0d0c;
  --accent: #ff4a1c;
  --pad: clamp(16px, 2.2vw, 34px);
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --inout: cubic-bezier(0.76, 0, 0.24, 1);
  --sans: "Bricolage Grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  transition: --bg 0.9s var(--expo), --fg 0.9s var(--expo);
}
:root.is-dark { --bg: #0d0d0c; --fg: #f1f1ee; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html.is-loading, html.is-locked { overflow: hidden; }
::selection { background: var(--accent); color: #0d0d0c; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
html.has-cursor, html.has-cursor * { cursor: none !important; }

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.label { opacity: 0.6; }
.dot {
  display: inline-block;
  width: 0.5em; height: 0.5em;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.7em;
  vertical-align: 0.08em;
}

/* ---------- Display type (kinetic) ---------- */
.display {
  display: block;
  font-weight: 300;
  font-stretch: 100%;
  font-size: clamp(54px, 10.5vw, 196px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.line { display: block; overflow: hidden; padding: 0.06em 0 0.08em; margin: -0.06em 0 -0.08em; }
.line__inner { display: inline-block; }
.ch {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1.8s var(--expo);
  transition-delay: calc(var(--i) * 60ms);
  will-change: transform;
}
.in .ch { transform: none; }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.4s var(--expo), transform 1.4s var(--expo);
  transition-delay: calc(var(--d, 0) * 120ms);
}
[data-reveal].in { opacity: 1; transform: none; }
.hero [data-reveal] { transition-delay: calc(900ms + var(--d, 0) * 120ms); }

/* ---------- Rolling link ---------- */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll > span, .roll::after {
  display: block;
  transition: transform 0.75s var(--expo);
}
.roll::after { content: attr(data-t); position: absolute; left: 0; top: 100%; white-space: nowrap; }
.roll:hover > span, .roll:hover::after, .roll:focus-visible > span, .roll:focus-visible::after { transform: translateY(-100%); }
/* 40px hit area */
.roll::before { content: ""; position: absolute; inset: -12px -8px; }
[data-magnetic] { transition: translate 0.6s var(--expo); overflow: visible; }
[data-magnetic].roll { overflow: hidden; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: #0d0d0c; color: #f1f1ee;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: var(--pad);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.4s var(--inout);
}
.loader__label { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.02em; padding-bottom: 0.5vw; }
.loader__count {
  font-weight: 300; font-size: clamp(40px, 6vw, 96px); line-height: 0.9; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  transition: transform 0.9s var(--inout);
}
html:not(.is-loading) .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
html:not(.is-loading) .loader__count { transform: translateY(-30%); }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  display: none; place-items: center;
  transition: width 0.45s var(--expo), height 0.45s var(--expo), margin 0.45s var(--expo), background-color 0.3s, opacity 0.3s;
  opacity: 0;
}
html.has-cursor .cursor { display: grid; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
.cursor.is-view { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--accent); mix-blend-mode: normal; }
.cursor__label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: #0d0d0c;
  opacity: 0; scale: 0.6; transition: opacity 0.25s, scale 0.45s var(--expo);
}
.cursor.is-view .cursor__label { opacity: 1; scale: 1; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(var(--pad) * 0.8) var(--pad);
  color: #fff; mix-blend-mode: difference;
  font-weight: 400; font-size: 14px; letter-spacing: 0;
  transform: translateY(-120%);
  transition: transform 1s var(--expo) 0.5s;
}
html:not(.is-loading) .nav { transform: none; }
.nav__mark { justify-self: start; }
.nav__links { justify-self: end; display: flex; gap: clamp(14px, 2vw, 32px); }
.nav__clock { opacity: 0.7; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; padding: 0 var(--pad) var(--pad); }
.hero__inner { position: relative; width: 100%; min-height: calc(100svh - var(--pad)); display: flex; flex-direction: column; will-change: transform; }
.hero .hero__title { position: relative; z-index: 1; margin: auto; padding-top: 8svh; text-align: center; }
.ch { transform-origin: 50% 82%; }

/* ASCII flowers: photographs redrawn as characters, behind the name */
.garden { position: absolute; inset: 0; pointer-events: none; }
.garden__stems { position: absolute; inset: 0; width: 100%; height: 100%; }
.bloom { position: absolute; scale: 0; will-change: scale, rotate; }
.bloom__sway { position: absolute; inset: 0; animation: sway 9s ease-in-out infinite alternate; }
@keyframes sway { from { rotate: -2.2deg; } to { rotate: 2.2deg; } }
.bloom__ascii { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the photo itself, blurred: a little of the flower's colour leaking onto the page */
.bloom__glow {
  position: absolute; left: -12%; top: -4%; width: 124%; height: 124%;
  filter: blur(20px) saturate(1.5); opacity: 0;
}

/* ASCII frogs */
.frogs { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 1.4s; }
.frogs.in { opacity: 1; }
.frog {
  position: absolute; left: 0; top: 0; margin: 0;
  font: 500 10px/1 var(--mono); letter-spacing: 0; white-space: pre;
  color: var(--fg); will-change: transform;
}
.hero__title { margin-bottom: clamp(28px, 5vw, 80px); margin-left: -0.04em; }
/* one line on wide screens, stacked on portrait */
.hero__title .line { display: inline-block; vertical-align: top; }
.hero__title .line + .line { margin-left: 0.2em; }
@media (max-aspect-ratio: 1/1) {
  .hero__title { font-size: 21vw; }
  .hero__title .line { display: block; }
  .hero__title .line + .line { margin-left: 0; }
}
.hero__foot {
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 16px;
  padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
}
.hero__scroll { justify-self: end; }
.arrow { display: inline-block; animation: nudge 1.8s var(--inout) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* ---------- Statement ---------- */
.statement {
  display: grid; grid-template-columns: 1fr 3fr; gap: var(--pad);
  padding: clamp(140px, 26vw, 400px) var(--pad);
}
.statement__text {
  font-size: clamp(24px, 2.9vw, 52px);
  line-height: 1.16; letter-spacing: -0.025em; font-weight: 350;
  max-width: 21em;
}
.statement__text .w { opacity: 0.14; transition: opacity 0.9s ease-out; }

/* ---------- Work ---------- */
.work { padding: 0 var(--pad) clamp(120px, 20vw, 320px); }
.work__head { display: flex; justify-content: space-between; padding-bottom: 18px; }
.row { position: relative; transition: opacity 0.7s; }
.row::before, .rows::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: color-mix(in srgb, var(--fg) 22%, transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.3s var(--expo); transition-delay: calc(var(--i, 0) * 70ms);
}
.rows { position: relative; }
.rows::after { top: auto; bottom: 0; --i: 6; }
.rows.in .row::before, .rows.in::after { transform: scaleX(1); }
.row__btn {
  display: grid; grid-template-columns: 3.5rem 1fr 14rem 4rem; align-items: center; gap: 16px;
  width: 100%; text-align: left;
  padding: clamp(18px, 2.2vw, 34px) 0;
}
.row__mask { display: block; overflow: hidden; }
.row__mask > * {
  display: block; transform: translateY(110%);
  transition: transform 1.1s var(--expo); transition-delay: calc(var(--i, 0) * 70ms + 80ms);
}
.rows.in .row__mask > * { transform: none; }
.row__t {
  font-size: clamp(28px, 3.6vw, 64px);
  line-height: 1.05; letter-spacing: -0.035em;
  font-variation-settings: "wght" 300, "wdth" 100;
  transition: font-variation-settings 0.9s var(--expo), translate 0.9s var(--expo);
}
.row__y { text-align: right; }
.row__thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .rows:hover .row:not(:hover) { opacity: 0.4; }
  .row:hover .row__t, .row__btn:focus-visible .row__t { font-variation-settings: "wght" 480, "wdth" 100; translate: 0.35em 0; }
}

/* ---------- Floating preview ---------- */
.preview {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: clamp(200px, 17vw, 280px); aspect-ratio: 3 / 4;
  pointer-events: none; will-change: transform;
}
.preview__inner {
  position: relative; width: 100%; height: 100%;
  opacity: 0; scale: 0.94;
  transition: opacity 0.6s, scale 1s var(--expo);
}
.preview.is-on .preview__inner { opacity: 1; scale: 1; }
.preview__item {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s var(--expo);
  outline: 1px solid rgba(0, 0, 0, 0.08); outline-offset: -1px;
}
.preview__item.is-active { clip-path: inset(0 0 0 0); }
.preview__item svg, .case__poster svg, .row__thumb svg { display: block; width: 100%; height: 100%; }
.preview__item svg { scale: 1.1; transition: scale 1.6s var(--expo); }
.preview__item.is-active svg { scale: 1; }
@media not ((hover: hover) and (pointer: fine)) { .preview { display: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: clamp(18px, 2vw, 32px) 0; border-block: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span {
  font-size: clamp(28px, 3.6vw, 64px); line-height: 1.1; letter-spacing: -0.035em;
  font-variation-settings: "wght" 300, "wdth" 100;
  white-space: nowrap;
}
.marquee .dot { width: 0.14em; height: 0.14em; margin: 0 0.7em; vertical-align: 0.26em; }

/* ---------- Practice ---------- */
.practice { padding: clamp(120px, 20vw, 320px) var(--pad); display: grid; grid-template-columns: 1fr 3fr; gap: var(--pad); }
.practice__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 56px); }
.col { border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); padding-top: 14px; }
.col__n { opacity: 0.6; }
.col h3 { font-size: clamp(24px, 2.2vw, 38px); font-weight: 350; letter-spacing: -0.03em; line-height: 1; margin: clamp(40px, 6vw, 100px) 0 18px; }
.col p { max-width: 30em; text-wrap: pretty; opacity: 0.7; font-size: 16px; }
.col ul { margin-top: 28px; opacity: 0.6; display: grid; gap: 4px; }

/* ---------- Contact ---------- */
.contact { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(110px, 14vw, 220px) var(--pad) var(--pad); }
.contact__title { margin: 24px 0 clamp(28px, 5vw, 80px) -0.04em; width: max-content; max-width: 100%; }
.contact__foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px 32px;
  padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
}
.contact__social { display: flex; gap: clamp(16px, 2.4vw, 40px); flex-wrap: wrap; }
.contact__legal { opacity: 0.45; margin-top: clamp(40px, 6vw, 90px); }

/* ---------- Case overlay ---------- */
.case {
  position: fixed; inset: 0; z-index: 70;
  background: #0d0d0c; color: #f1f1ee;
  display: flex; flex-direction: column;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--inout);
  overflow-y: auto; overscroll-behavior: contain;
}
.case[hidden] { display: none; }
.case:focus { outline: none; }
.case.is-open { clip-path: inset(0 0 0 0); }
.case.is-closing { clip-path: inset(0 0 100% 0); }
.case__bar { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--pad) * 0.8) var(--pad); }
.case__body {
  flex: 1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 110px);
  align-items: center; padding: var(--pad) var(--pad) calc(var(--pad) * 1.5);
}
.case__poster { aspect-ratio: 3 / 4; max-height: 64svh; justify-self: center; width: min(100%, 48svh); overflow: hidden; }
.case__title { font-size: clamp(40px, 5vw, 92px); font-weight: 300; font-stretch: 100%; line-height: 0.95; letter-spacing: -0.04em; margin: 16px 0 clamp(20px, 2.6vw, 40px); text-wrap: balance; }
.case__blurb { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; max-width: 30em; text-wrap: pretty; opacity: 0.7; }
.case__meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px clamp(24px, 4vw, 64px); margin: clamp(28px, 4vw, 56px) 0; }
.case__meta dt { opacity: 0.5; grid-row: 1; }
.case__meta dd { grid-row: 2; }
.case__next { display: grid; gap: 6px; text-align: left; padding: 14px 0 0; border-top: 1px solid rgba(241, 241, 238, 0.22); width: 100%; }
.case__next .mono { opacity: 0.5; }
.case__next strong { font-size: clamp(22px, 2vw, 34px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; transition: translate 0.6s var(--expo), font-variation-settings 0.6s var(--expo); font-variation-settings: "wght" 300, "wdth" 100; }
.case__next:hover strong { translate: 0.35em 0; font-variation-settings: "wght" 480, "wdth" 100; }
.case__next:active { scale: 0.98; }
.case [data-in] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s var(--expo), transform 0.6s var(--expo);
}
.case.is-open:not(.is-swapping):not(.is-closing) [data-in] {
  opacity: 1; transform: none;
  transition-duration: 1.4s; transition-delay: calc(600ms + var(--d) * 110ms);
}
.case.is-swapping [data-in] { transform: translateY(-10px); transition-duration: 0.4s; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__clock { display: none; }
  .hero__foot { grid-template-columns: 1fr 1fr; }
  .hero__title { margin-bottom: 52px; } /* room for a frog on the rule */
  .hero__scroll { display: none; }
  .statement, .practice { grid-template-columns: 1fr; }
  .practice__grid { grid-template-columns: 1fr; }
  .col h3 { margin-top: 28px; }
  .row__btn { grid-template-columns: 2.2rem 1fr 54px; align-items: center; }
  .row__d { grid-column: 2; grid-row: 2; }
  .row__y { display: none; }
  .row__thumb { display: block; grid-column: 3; grid-row: 1 / span 2; width: 54px; aspect-ratio: 3 / 4; overflow: hidden; }
  .case__body { grid-template-columns: 1fr; align-items: start; }
  .case__poster { width: min(100%, 320px); justify-self: start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0ms !important; animation: none !important; }
  .statement__text .w { opacity: 1 !important; }
}

/* ---------- ASCII theme, beyond the hero ---------- */
.loader__label { display: grid; gap: 8px; }
.loader__bar { opacity: 0.6; letter-spacing: 0; }
.marquee .sprig {
  font-family: var(--mono); font-style: normal; font-weight: 500; font-size: 0.3em;
  color: var(--accent); margin: 0 1.6em; vertical-align: 0.55em; letter-spacing: 0;
}
.statement__text .w { display: inline-block; white-space: nowrap; }

/* posters typed out in characters before the image resolves */
.develop { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; }
.develop.is-out { opacity: 0; transition: opacity 0.8s var(--expo); }
.case__poster { position: relative; }

/* contact flower */
.contact { position: relative; overflow: hidden; }
.contact > *:not(.contact__bloom) { position: relative; z-index: 1; }
.contact__bloom { position: absolute; right: 7%; top: 10%; scale: 0.7; transform-origin: 50% 85%; pointer-events: none; }
.contact__bloom .bloom__glow { filter: blur(48px) saturate(1.4); }
@media (max-width: 760px) { .contact__bloom { right: 9%; top: 7%; } }

/* ---------- Theme switch ---------- */
.nav__theme { font: inherit; color: inherit; letter-spacing: inherit; }
/* the two full-screen panels flip with the theme so their wipes stay visible */

/* ---------- Hero foot: two facts and the scroll cue ---------- */
.hero__foot { grid-template-columns: 1fr 1fr 1fr; }

/* ---------- About: growing flower + fact sheet ---------- */
.statement { align-items: stretch; }
.statement__side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.plant { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: min(100%, 230px); min-height: 400px; pointer-events: none; }
.plant__bloom { position: relative; scale: 0.3; transform-origin: 50% 100%; margin-bottom: -8px; }
.plant__stem { margin: 0; font: 400 10px/1 var(--mono); color: var(--fg); opacity: 0.6; white-space: pre; }
.facts { margin-top: clamp(48px, 7vw, 120px); max-width: 46rem; }
.facts > div {
  display: grid; grid-template-columns: 11rem 1fr; gap: 16px;
  padding: 11px 0; border-top: 1px solid color-mix(in srgb, var(--fg) 20%, transparent);
}
.facts > div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); }
.facts dt { opacity: 0.55; }

/* ---------- Selected work: list + stage ---------- */
.work__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 90px); align-items: start; }
.row__btn { grid-template-columns: 3rem 1fr auto 3.2rem; }
.rows.has-active .row:not(.is-active) { opacity: 0.3; }
.row.is-active .row__t { font-variation-settings: "wght" 480, "wdth" 100; translate: 0.35em 0; }
.stage {
  position: sticky; top: 14vh;
  display: grid; grid-template-columns: clamp(170px, 19vw, 290px) minmax(0, 1fr); gap: clamp(16px, 2vw, 32px); align-items: start;
  padding-top: clamp(18px, 2.2vw, 34px);
}
.stage__poster { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.stage__info { display: grid; gap: 18px; transition: opacity 0.35s, transform 0.5s var(--expo); }
.stage__info.is-swapping { opacity: 0; transform: translateY(6px); }
.stage__blurb { font-size: 15px; line-height: 1.45; opacity: 0.8; text-wrap: pretty; }
.stage__meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; }
.stage__meta dt { opacity: 0.5; }
.stage__hint { opacity: 0.45; }

/* ---------- Work: the bouquet ---------- */
.work__body { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.bouquet { position: sticky; top: 8vh; height: min(86vh, 780px); }
.bq__stems { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bq__flower {
  position: absolute; left: 0; top: 0; scale: 0.15; transform-origin: 50% 62%;
  cursor: pointer; transition: opacity 0.6s; will-change: translate, scale;
}
.bq__lift { position: absolute; inset: 0; transform-origin: 50% 62%; transition: scale 0.8s var(--expo); }
.bq__flower .bloom__sway { transform-origin: 50% 62%; }
.bouquet.is-open.has-active .bq__flower:not(.is-active) { opacity: 0.6; }
.bq__flower.is-active { z-index: 3; }
.bq__flower.is-active .bq__lift { scale: 1.16; }
.work .row__t { font-size: clamp(26px, 3vw, 54px); }
.bq__num { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; transition: opacity 0.8s, color 0.4s; }
.bouquet.is-open .bq__num { opacity: 0.5; }
.bouquet.is-open .bq__num.is-active { opacity: 1; color: var(--accent); }
.bq__bow {
  position: absolute; left: 0; top: 0; margin: 0; transform: translate(-50%, -38%);
  font: 500 13px/1 var(--mono); letter-spacing: 0; white-space: pre; color: var(--fg); pointer-events: none;
}
/* the florist's card: the active project, beside the knot */
.bouquet .stage {
  position: absolute; left: 0; bottom: 0; top: auto; padding: 0;
  width: min(42%, 300px); grid-template-columns: clamp(78px, 7.5vw, 108px) minmax(0, 1fr); gap: 14px; align-items: end;
}
.bouquet .stage__info { gap: 10px; }
.stage__title { font-size: clamp(20px, 1.9vw, 30px); letter-spacing: -0.035em; line-height: 1; }
.bq__note { position: absolute; right: 0; bottom: 0; width: min(34%, 250px); display: grid; gap: 12px; }
.bq__blurb { font-size: 14px; line-height: 1.45; opacity: 0.75; text-wrap: pretty; transition: opacity 0.35s; }
.bq__blurb.is-swapping { opacity: 0; }
@media (max-width: 760px) {
  .work__body { grid-template-columns: 1fr; }
  .bouquet { position: relative; top: auto; height: 430px; order: -1; margin-bottom: 8px; }
  .bq__note, .bouquet .stage { display: none; }
}

/* ---------- Work: bouquet only ----------
   The project list is kept for keyboards and screen readers but not shown;
   the bouquet is the whole section. */
.work .rows {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.work__body { display: block; }
.bouquet {
  --bq-h: min(88vh, 840px);
  position: relative; top: auto; height: var(--bq-h);
  max-width: 1240px; margin: 0 auto;
}
.bq__stems { inset: 0 0 auto 0; }
.bouquet .stage, .bq__blurb { transition: opacity 0.5s; }
.bouquet:not(.has-active) .stage, .bouquet:not(.has-active) .bq__blurb { opacity: 0; }
.bouquet .stage { width: min(34%, 340px); grid-template-columns: clamp(84px, 8vw, 124px) minmax(0, 1fr); }
.bq__note { width: min(28%, 290px); }
@media (max-width: 760px) {
  /* drawing area on top, the selected project's card and description underneath */
  .bouquet { --bq-h: 430px; height: auto; padding-top: 430px; order: 0; margin-bottom: 0; }
  .bouquet .stage { display: grid; position: static; width: 100%; grid-template-columns: 84px minmax(0, 1fr); margin-top: 8px; min-height: 112px; }
  .bq__note { display: grid; position: static; width: 100%; margin-top: 18px; }
}

/* ---------- Project view: the picked flower beside the project ---------- */
.case { background: #101010; }
.case__body { grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.55fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 72px); }
.case__specimen { align-self: stretch; min-height: 56svh; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.case__bloom { position: relative; flex: none; scale: 0.2; transform-origin: 50% 100%; margin-bottom: -12px; }
.case__bloom .bloom__glow { filter: blur(42px) saturate(1.5); }
.case__stem { margin: 0; font: 400 10px/1 var(--mono); color: #f1f1ee; opacity: 0.6; white-space: pre; }
.case__poster { max-height: 50svh; width: min(100%, 37.5svh); }
.case__title { font-size: clamp(38px, 4.4vw, 80px); }
.case__meta { grid-template-columns: repeat(4, auto); }
@media (max-width: 760px) {
  .case__body { grid-template-columns: 1fr; }
  .case__specimen { min-height: 0; height: 250px; }
  .case__meta { grid-template-columns: repeat(2, auto); }
  .case__meta dt, .case__meta dd { grid-row: auto; }
  .case__meta dt:nth-of-type(n + 3) { margin-top: 10px; }
}

/* ---------- About: spider lily, lily of the valley, falling petals ---------- */
.statement { position: relative; }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.plant { width: 100%; max-width: 340px; min-height: 560px; }
.facts-wrap { display: grid; grid-template-columns: minmax(0, 46rem) auto; gap: clamp(20px, 4vw, 70px); align-items: end; margin-top: clamp(48px, 7vw, 120px); }
.facts-wrap .facts { margin-top: 0; }
.valley { position: relative; width: 200px; padding-bottom: 92px; }
.valley .col__bloom { width: 200px; height: 300px; margin: 0; }
.valley__stem { position: absolute; left: 80%; bottom: 0; margin: 0; font: 400 10px/1 var(--mono); color: var(--fg); opacity: 0.45; white-space: pre; }
@media (max-width: 760px) {
  .facts-wrap { grid-template-columns: 1fr; }
  .statement .statement__side .plant { display: flex; max-width: 250px; min-height: 380px; margin: 8px auto 0; } /* the spider lily shows on phones too */
  .valley { justify-self: end; width: 150px; padding-bottom: 60px; }
  .valley .col__bloom { width: 150px; height: 225px; }
}

/* ---------- About: the spider lily field ---------- */
.statement { display: block; padding-bottom: 0; }
.statement__head { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 3fr; gap: var(--pad); pointer-events: none; }
.field { position: relative; height: min(88vh, 820px); margin: clamp(-80px, -4vw, -30px) calc(var(--pad) * -1) 0; overflow-x: clip; }
.field__scene { position: absolute; inset: 0; perspective: 1000px; perspective-origin: 50% 0%; }
.field__plane {
  position: absolute; left: 50%; top: 50%; width: min(1500px, 126%); height: 150%;
  transform: translate(-50%, -50%) rotateX(calc(64deg + var(--rx, 0deg))) rotateZ(var(--rz, 0deg));
  transform-style: preserve-3d;
}
.field__ground {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 98%);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 98%);
}
/* a flower: blossom on top of its stalk, standing upright on the tilted ground */
.fl {
  position: absolute; left: 0; top: 0; padding: 0;
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 100%; will-change: transform;
  opacity: 0; transition: opacity 1.2s ease var(--d, 0s);
}
.field.is-open .fl { opacity: var(--fade, 1); }
.field.is-open.has-focus .fl { opacity: calc(var(--fade, 1) * 0.35); transition-delay: 0s; transition-duration: 0.6s; }
.field.is-open .fl.is-on { opacity: 1; }
.fl__head { display: block; position: relative; scale: 0.1; transform-origin: 50% 100%; transition: scale 1.9s var(--expo) var(--d, 0s); }
.field.is-open .fl__head { scale: 1; }
.fl__stem {
  margin: -8px 0 0; font: 400 10px/1 var(--mono); color: #f1f1ee; opacity: 0.4; white-space: pre;
  scale: 1 0; transform-origin: 50% 100%; transition: scale 1.2s var(--expo) var(--d, 0s);
}
.field.is-open .fl__stem { scale: 1 1; }
.fl__glow {
  position: absolute; left: 50%; top: 0; width: 130%; aspect-ratio: 1; translate: -50% -14%;
  background: radial-gradient(closest-side, rgba(236, 60, 46, 0.26), transparent);
  opacity: 0; transition: opacity 2.2s ease var(--d, 0s); pointer-events: none;
}
.field.is-open .fl__glow { opacity: 1; }
.fl { pointer-events: none; } /* red flowers in front must not swallow clicks meant for a white one behind them */
.fl--say { cursor: pointer; pointer-events: auto; }
.fl--say::before { content: ""; position: absolute; inset: -14px -18px 0; } /* the whole blossom and stalk, plus a margin */
.fl--say:focus-visible { outline: none; }
.fl--say .fl__glow { background: radial-gradient(closest-side, rgba(244, 244, 226, 0.13), transparent); }
.fl__say {
  position: absolute; left: 50%; bottom: calc(100% + 12px); translate: -50% 8px;
  white-space: nowrap; font: 400 17px/1.2 var(--sans); letter-spacing: -0.015em; color: #f1f1ee;
  opacity: 0; filter: blur(6px); pointer-events: none;
  transition: opacity 0.5s, filter 0.7s, translate 0.7s var(--expo);
}
.fl.is-on .fl__say { opacity: 1; filter: none; translate: -50% 0; }
.field__hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; opacity: 0.45; pointer-events: none; transition: opacity 0.5s; }
.field.has-focus .field__hint { opacity: 0; }
@media (max-width: 760px) {
  .statement__head { grid-template-columns: 1fr; }
  .field { height: 600px; margin-top: -40px; }
  .field__plane { width: 124%; }
  .fl__say { font-size: 15px; }
  /* captions open inward from whichever side the flower is on, so they stay on screen */
  .fl--l .fl__say { left: 0; translate: 0 8px; }
  .fl--l.is-on .fl__say { translate: 0 0; }
  .fl--r .fl__say { left: auto; right: 0; translate: 0 8px; }
  .fl--r.is-on .fl__say { translate: 0 0; }
}

/* ---------- About: statement in the middle of the field ---------- */
.statement__label { position: relative; z-index: 3; }
.field { height: min(100vh, 940px); margin-top: clamp(-60px, -3vw, -20px); }
.field__text { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 0 var(--pad); pointer-events: none; }
.field__text .statement__text {
  grid-area: 1 / 1; max-width: 19em; text-align: center; text-wrap: balance;
  /* a soft dark halo hugging the letters, not a box behind them */
  text-shadow: 0 0 14px #0d0d0c, 0 0 34px #0d0d0c, 0 0 70px #0d0d0c;
  transition: opacity 0.7s, filter 0.8s;
}
/* flowers standing behind the words fall out of focus */
.field.is-open .fl.is-behind { opacity: calc(var(--fade, 1) * 0.3); }
.fl__head { transition: scale 1.9s var(--expo) var(--d, 0s), filter 0.8s; }
.fl.is-behind .fl__head { filter: blur(2.6px); }
.fl.is-behind .fl__glow { opacity: 0.35; }
/* a clicked flower's line takes the centre; the statement recedes behind it */
.field__focus { opacity: 0; filter: blur(10px); }
.field.is-said .field__text .statement__text:not(.field__focus) { opacity: 0.07; filter: blur(9px); }
.field.is-said .field__focus { opacity: 1; filter: none; }
.field.is-said .fl.is-on .fl__say { opacity: 0; }
.field__hint-b { display: none; }
.field.is-said .field__hint-a { display: none; }
.field.is-said .field__hint-b { display: inline; }
.field.has-focus .field__hint { opacity: 0.45; }
@media (max-width: 760px) {
  .field { height: 660px; margin-top: -10px; }
}

/* ---------- Nav: sits on a fade, so whatever scrolls under it disappears before it meets the name ---------- */
.nav { color: #f1f1ee; mix-blend-mode: normal; }
.nav::before {
  content: ""; position: absolute; inset: 0 0 -30px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(#0d0d0c 0%, #0d0d0c 46%, rgba(13, 13, 12, 0));
}

/* ---------- Between sections: more room, and a stem that leads from one to the next ---------- */
.seam { height: clamp(200px, 34vh, 380px); margin: clamp(30px, 6vh, 90px) 0; display: flex; justify-content: center; align-items: flex-start; pointer-events: none; }
.seam__stem { margin: 0; font: 400 10px/1 var(--mono); color: var(--fg); opacity: 0.5; white-space: pre; }
.statement, .work, .practice { will-change: opacity; }
.work { padding-bottom: clamp(40px, 6vw, 100px); }
.statement { padding-top: clamp(60px, 9vw, 150px); }

/* ---------- Practice: the pond ---------- */
.practice { display: block; position: relative; padding-left: 0; padding-right: 0; padding-bottom: clamp(40px, 6vw, 100px); }
.practice__side { position: absolute; left: var(--pad); z-index: 3; pointer-events: none; }
.pond { position: relative; height: min(92vh, 860px); overflow-x: clip; } /* open above and below so a lifted flower is never cut off */
.pond__scene { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 8%; }
.pond__plane {
  position: absolute; left: 50%; top: 47%; width: min(1500px, 128%); height: 150%;
  transform: translate(-50%, -50%) rotateX(calc(58deg + var(--rx, 0deg))) rotateZ(var(--rz, 0deg));
  transform-style: preserve-3d;
}
.pond__water {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 98%);
  mask-image: radial-gradient(closest-side, #000 52%, transparent 98%);
}
.lily { position: absolute; left: 0; top: 0; padding: 0; transform-style: preserve-3d; will-change: transform; }
.lily:focus-visible { outline: none; }
.lily::before { content: ""; position: absolute; inset: -18%; } /* a generous target on the water */
/* resting: lying back on the water. focused: lifted off it and turned to face you. */
.lily__tilt {
  display: block; position: relative; width: 100%; height: 100%;
  transform-origin: 50% 85%; transform: rotateX(-34deg);
  transition: transform 1.1s var(--expo), filter 0.8s, opacity 0.8s;
}
.lily.is-far .lily__tilt { filter: blur(1.3px); opacity: 0.85; }
.pond.has-focus .lily:not(.is-focus) .lily__tilt { filter: blur(4px); opacity: 0.38; }
.pond .lily.is-focus .lily__tilt { transform: translateZ(110px) rotateX(-58deg) scale(1.32); filter: none; opacity: 1; }
.lily__bloom { position: absolute; inset: 0; scale: 0.3; transform-origin: 50% 85%; }
.pond__card {
  position: absolute; left: 0; top: 0; z-index: 3; width: min(310px, calc(100vw - 32px));
  opacity: 0; filter: blur(7px); pointer-events: none;
  transition: opacity 0.5s, filter 0.7s;
}
.pond__card.is-on { opacity: 1; filter: none; }
.pond__card h3 { font-size: clamp(26px, 2.4vw, 40px); font-weight: 350; letter-spacing: -0.03em; line-height: 1; margin: 10px 0 14px; }
.pond__card p { font-size: 15px; line-height: 1.45; opacity: 0.8; text-wrap: pretty; }
.pond__card ul { margin-top: 18px; opacity: 0.6; display: grid; gap: 4px; }
.pond__hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; opacity: 0.5; transition: opacity 0.5s; pointer-events: none; }
.pond.has-focus .pond__hint { opacity: 0; }
@media (max-width: 760px) {
  .practice__side { position: static; padding: 0 var(--pad); pointer-events: auto; }
  .pond { height: 620px; }
  .pond__plane { width: 138%; top: 40%; }
  .pond .lily.is-focus .lily__tilt { transform: translateZ(70px) rotateX(-58deg) scale(1.06); } /* a smaller lift so it stays on screen */
  .pond__hint { bottom: 10px; }
}

/* ---------- Bees ---------- */
.bee {
  position: absolute; left: 0; top: 0; z-index: 4; margin: 0;
  font: 500 10px/1 var(--mono); letter-spacing: 0; white-space: pre;
  color: color-mix(in srgb, #e3ac1f 78%, var(--fg));
  pointer-events: none; will-change: transform;
}

/* ---------- Cursor: a dot that opens into a thin ring over anything clickable ---------- */
.cursor { transition: width 0.18s ease-out, height 0.18s ease-out, margin 0.18s ease-out, background-color 0.18s, opacity 0.2s; }
.cursor.is-link, .cursor.is-view {
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  background: transparent; box-shadow: inset 0 0 0 1px #fff; mix-blend-mode: difference;
}
.cursor.is-view .cursor__label { display: none; }

/* ---------- Practice: a flower per discipline + the four steps ---------- */
.col__bloom { position: relative; height: clamp(120px, 11vw, 170px); margin-top: clamp(28px, 3.4vw, 52px); }
.col__flower { position: absolute; left: 0; bottom: 0; scale: 0.4; transform-origin: 50% 100%; }
.practice .col h3 { margin-top: clamp(24px, 2.6vw, 40px); }
.practice__side { display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(28px, 3.4vw, 52px); }
.steps { max-width: 13rem; }
.steps__note { opacity: 0.55; margin-bottom: 12px; }
.steps ol { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 2.4rem 1fr; padding: 9px 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 20%, transparent);
  opacity: 0.75; animation: step 6s linear infinite;
}
.steps li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); }
.steps li:nth-child(2) { animation-delay: 1.5s; }
.steps li:nth-child(3) { animation-delay: 3s; }
.steps li:nth-child(4) { animation-delay: 4.5s; }
.steps li span { opacity: 0.6; }
/* each step lights up in turn */
@keyframes step { 0%, 22% { opacity: 1; } 30%, 100% { opacity: 0.4; } }

@media (max-width: 760px) {
  .hero__foot { grid-template-columns: 1fr 1fr; }
  .plant { display: none; }
  .facts > div { grid-template-columns: 7.5rem 1fr; }
  .work__body { grid-template-columns: 1fr; }
  .stage { display: none; }
  .row__btn { grid-template-columns: 2.2rem 1fr 54px; }
}
/* ---------- Case study, below the first screen of a project ---------- */
.case__body { min-height: calc(100svh - 150px); flex: none; }
.study__cue { text-align: center; opacity: 0.5; padding: 0 0 22px; }
.study__cue[hidden] { display: none; }
.study { width: 100%; max-width: 1280px; margin: 0 auto; padding: clamp(60px, 10vw, 160px) var(--pad) clamp(60px, 8vw, 120px); display: grid; gap: clamp(80px, 12vw, 190px); }
.study:empty { display: none; }
.case { overflow-x: hidden; }
.study > *, .study__row > *, .study__types > *, .study__grid > * { min-width: 0; } /* let grid children shrink on narrow screens */
.study [data-sr] { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--expo), transform 1.1s var(--expo); }
.study [data-sr].in { opacity: 1; transform: none; }
.study__row { display: grid; grid-template-columns: 1fr 3fr; gap: var(--pad); align-items: start; }
.study__text { font-size: clamp(19px, 1.7vw, 27px); line-height: 1.35; letter-spacing: -0.015em; max-width: 30em; text-wrap: pretty; }
.study__big { font-size: clamp(30px, 4.4vw, 78px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 350; max-width: 15em; text-wrap: balance; }
.study__types { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 40px); margin-top: 22px; }
.study__types h3 { font-size: clamp(22px, 2vw, 32px); font-weight: 350; letter-spacing: -0.03em; line-height: 1; margin: 20px 0 10px; }
.study__types p { font-size: 15px; line-height: 1.45; opacity: 0.75; max-width: 28em; text-wrap: pretty; }
.study__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(6px, 0.8vw, 12px); margin-top: 22px; max-width: 860px; }
.study__notes { display: grid; }
.study__notes > div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(241, 241, 238, 0.2); }
.study__notes > div:last-child { border-bottom: 1px solid rgba(241, 241, 238, 0.2); }
.study__notes dt { opacity: 0.55; padding-top: 3px; }
.study__notes dd { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.4; max-width: 34em; text-wrap: pretty; }
/* an image slot: shows the image when its file exists, otherwise a marked placeholder */
.slot { position: relative; margin: 0; overflow: hidden; background: rgba(241, 241, 238, 0.035); border: 1px dashed rgba(241, 241, 238, 0.22); }
.slot::before {
  content: "[ " attr(data-label) " ]\A image to come"; white-space: pre; text-align: center;
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 11px/1.7 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.45;
}
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.slot:has(img) { border-style: solid; border-color: rgba(241, 241, 238, 0.1); }
.slot:has(img)::before { content: none; }
.study__next { margin-top: 0; }

/* ---------- Small labels: larger and brighter, so they can actually be read ---------- */
.mono { font-size: 12.5px; letter-spacing: 0.03em; }
.label { opacity: 0.85; }
.field__hint, .field.has-focus .field__hint, .pond__hint, .stage__hint, .study__cue { opacity: 0.75; }
.pond.has-focus .pond__hint { opacity: 0; }
.case__meta dt, .stage__meta dt, .study__notes dt, .steps__note, .col__n, .case__next .mono { opacity: 0.75; }
.pond__card ul, .col ul { opacity: 0.8; }
.pond__card p, .stage__blurb, .bq__blurb, .study__types p { opacity: 0.88; }
.bouquet.is-open .bq__num { opacity: 0.78; }
.contact__legal { opacity: 0.68; }
.nav__clock { opacity: 0.85; }
.slot::before { opacity: 0.62; }
.steps li { opacity: 0.85; }
.steps li span { opacity: 0.75; }
@keyframes step { 0%, 22% { opacity: 1; } 30%, 100% { opacity: 0.62; } }
@media (max-width: 760px) {
  .case__body { min-height: 0; }
  .study__row { grid-template-columns: 1fr; gap: 14px; }
  .study__types { grid-template-columns: 1fr; gap: 40px; }
  .study__notes > div { grid-template-columns: 6.5rem 1fr; }
}


/* ---------- Hints keep clear of the screen edges ---------- */
.field__hint, .pond__hint { padding: 0 var(--pad); text-wrap: balance; }
@media (max-width: 760px) {
  .field__hint, .pond__hint { padding: 0 28px; line-height: 1.6; }
}
