/* ============ tokens ============ */
:root {
  color-scheme: light;
  --mist: #FAF8F1;
  --mist-2: #F1EFE2;
  --ink: #232A20;
  --ink-2: #4A5444;
  --ink-3: #626B5C;
  --line: rgb(35 42 32 / .10);
  --koi: #678A50;
  --koi-ink: #4D6B3C;
  --shade: 62 74 40;
  --lemon: #F6EBC2;

  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter Display', 'Inter', system-ui, sans-serif;
  --font-script: 'Lora', Georgia, serif;
  --soft: 'cv11', 'ss03';

  --r-frame: 28px;
  --r-inner: 18px;
  --r-card: 14px;
  --r-pill: 999px;

  --gutter: clamp(20px, 5vw, 72px);
  --wrap: 1320px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --press: cubic-bezier(.34, 1.56, .64, 1);
  --spring-soft: linear(0, .02 2.8%, .074 5.6%, .149 8.3%, .237 11.1%, .332 13.9%, .428 16.7%, .521 19.4%, .607 22.2%, .687 25%, .757 27.8%, .819 30.6%, .871 33.3%, .914 36.1%, .949 38.9%, .977 41.7%, .999 44.4%, 1.015 47.2%, 1.026 50%, 1.033 52.8%, 1.037 55.6%, 1.038 58.3%, 1.038 61.1%, 1.036 63.9%, 1.033 66.7%, 1.03 69.4%, 1.027 72.2%, 1.023 75%, 1.019 77.8%, 1.016 80.6%, 1.013 83.3%, 1.01 86.1%, 1.008 88.9%, 1.005 91.7%, 1.004 94.4%, 1.002 97.2%, 1);
  --spring-jelly: linear(0, .024 2.1%, .09 4.2%, .185 6.2%, .298 8.3%, .422 10.4%, .547 12.5%, .668 14.6%, .779 16.7%, .878 18.8%, .963 20.8%, 1.032 22.9%, 1.085 25%, 1.123 27.1%, 1.148 29.2%, 1.16 31.2%, 1.163 33.3%, 1.157 35.4%, 1.145 37.5%, 1.129 39.6%, 1.11 41.7%, 1.09 43.8%, 1.069 45.8%, 1.05 47.9%, 1.032 50%, 1.016 52.1%, 1.003 54.2%, .993 56.2%, .985 58.3%, .979 60.4%, .975 62.5%, .974 64.6%, .974 66.7%, .975 68.8%, .977 70.8%, .98 72.9%, .983 75%, .986 77.1%, .989 79.2%, .993 81.2%, .995 83.3%, .998 85.4%, 1 87.5%, 1.002 89.6%, 1.003 91.7%, 1.004 93.8%, 1.004 95.8%, 1.004 97.9%, 1);
}
@supports not (transition-timing-function: linear(0, 1)) {
  :root { --spring-soft: cubic-bezier(.34, 1.3, .64, 1); --spring-jelly: cubic-bezier(.3, 1.6, .5, 1); }
}
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-text);
  font-feature-settings: var(--soft);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--koi); outline-offset: 3px; border-radius: 12px; }
[data-sr] { will-change: transform, opacity; }

/* background light: two fixed layers that trade places as the page scrolls */
.bg { position: fixed; inset: 0; z-index: -3; pointer-events: none; }
.bg-morning {
  background:
    radial-gradient(60vmax 48vmax at 88% -6%, #EDF3DF 0%, rgb(237 243 223 / 0) 64%),
    radial-gradient(46vmax 40vmax at -8% 30%, #E3EED8 0%, rgb(227 238 216 / 0) 62%),
    radial-gradient(54vmax 44vmax at 58% 108%, #F4EDCC 0%, rgb(244 237 204 / 0) 62%);
}
.bg-afternoon {
  opacity: .3;
  background:
    radial-gradient(60vmax 48vmax at 88% -6%, #F6EBC2 0%, rgb(246 235 194 / 0) 64%),
    radial-gradient(46vmax 40vmax at -8% 30%, #F7EED0 0%, rgb(247 238 208 / 0) 62%),
    radial-gradient(34vmax 30vmax at 104% 62%, #E5F0E0 0%, rgb(229 240 224 / 0) 60%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ liquid glass (wave2234/liquid-glass-recipes, water drop recipe) ============ */
/* thin veil, highlight arc, light top rim and dark bottom rim, refraction through #lens (Chromium) */
.lg {
  --veil: .15;
  position: relative; isolation: isolate;
  background:
    radial-gradient(130% 78% at 16% -14%, rgb(255 255 255 / .28), transparent 56%),
    linear-gradient(135deg, rgb(255 255 255 / var(--veil)), rgb(255 255 255 / calc(var(--veil) * .6)) 46%, rgb(255 255 255 / var(--veil)));
  -webkit-backdrop-filter: blur(3px) saturate(1.55);
  backdrop-filter: blur(3px) saturate(1.55);
  box-shadow:
    inset 0 1.5px 1px -.5px rgb(255 255 255 / .62),
    inset 0 -1.5px 1px -.5px rgb(var(--shade) / .22),
    0 10px 30px rgb(var(--shade) / .15);
}
.lens-on .lg { -webkit-backdrop-filter: url(#lens) blur(2px) saturate(1.55); backdrop-filter: url(#lens) blur(2px) saturate(1.55); }
/* a coloured hairline that catches the light, like the edge of a drop */
.lg::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(160deg, rgb(255 255 255 / .9), rgb(255 255 255 / .1) 38%, rgb(184 216 152 / .35) 62%, rgb(255 238 180 / .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}

/* ============ buttons ============ */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: var(--r-pill);
  font: 500 15px/1 var(--font-text); font-feature-settings: var(--soft); letter-spacing: -.005em;
  color: var(--ink); white-space: nowrap; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: transform .34s var(--press), box-shadow 240ms var(--ease-out), background-position .6s var(--ease-out);
}
.btn:active { transform: scale(.93); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-icon { width: 46px; padding: 0; }
.btn-icon.btn-sm { width: 38px; }
.lgbtn {
  background:
    radial-gradient(130% 78% at 16% -14%, rgb(255 255 255 / .7), transparent 56%),
    linear-gradient(135deg, rgb(255 255 255 / .62), rgb(255 255 255 / .3) 46%, rgb(255 255 255 / .58));
  background-size: 230% 230%, 230% 230%; background-position: 0% 0%, 0% 0%;
  -webkit-backdrop-filter: blur(3px) saturate(1.55); backdrop-filter: blur(3px) saturate(1.55);
  box-shadow:
    inset 0 1.5px 1px -.5px rgb(255 255 255 / .95),
    inset 0 -1.5px 1px -.5px rgb(var(--shade) / .26),
    inset 0 0 0 1px rgb(255 255 255 / .45),
    0 1px 2px rgb(var(--shade) / .12),
    0 10px 24px -10px rgb(var(--shade) / .38);
}
.lens-on .lgbtn { -webkit-backdrop-filter: url(#lens) blur(2px) saturate(1.55); backdrop-filter: url(#lens) blur(2px) saturate(1.55); }
.lens-on .menu-bg { -webkit-backdrop-filter: url(#lensSoft) blur(3px) saturate(1.5); backdrop-filter: url(#lensSoft) blur(3px) saturate(1.5); }
.lgbtn:active { background-position: var(--sx, 70%) var(--sy, 70%), var(--sx, 70%) var(--sy, 70%); }
.btn-ink {
  color: #fff;
  background: linear-gradient(180deg, #3A4535 0%, var(--ink) 100%);
  box-shadow: inset 0 1.5px 1px -.5px rgb(255 255 255 / .4), inset 0 -10px 14px -10px rgb(0 0 0 / .5), 0 1px 2px rgb(var(--shade) / .3), 0 16px 28px -14px rgb(var(--shade) / .75);
}
@media (hover: hover) and (pointer: fine) {
  .lgbtn:hover { box-shadow: inset 0 1.5px 1px -.5px #fff, inset 0 -1.5px 1px -.5px rgb(var(--shade) / .26), inset 0 0 0 1px rgb(255 255 255 / .7), 0 1px 2px rgb(var(--shade) / .12), 0 16px 30px -12px rgb(var(--shade) / .45); }
}
.drop { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; background: radial-gradient(circle, rgb(255 255 255 / .75) 0%, rgb(255 255 255 / .25) 45%, rgb(255 255 255 / 0) 70%); }
.btn-ink .drop { background: radial-gradient(circle, rgb(255 255 255 / .28) 0%, rgb(255 255 255 / 0) 70%); }
/* jelly: squash, stretch, settle */
@keyframes jelly {
  0% { transform: scale(.93); }
  30% { transform: scale(1.1, .88); }
  50% { transform: scale(.94, 1.07); }
  68% { transform: scale(1.03, .97); }
  84% { transform: scale(.99, 1.01); }
  100% { transform: scale(1); }
}
.jelly { animation: jelly .64s cubic-bezier(.3, .7, .4, 1); }

/* ============ nav ============ */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 60;
  display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 7px;
  border-radius: var(--r-pill); --veil: .6;
  transform: translate(-50%, -90px); opacity: 0;
  transition: transform 260ms var(--ease-out), opacity 200ms ease;
}
.nav.show { transform: translate(-50%, 0); opacity: 1; transition: transform 700ms var(--spring-soft), opacity 300ms ease; }
.nav .bead { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.nav .bead i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #E4EBD6 60%, #C9D8B6); box-shadow: 0 2px 4px rgb(var(--shade) / .3); }
.liq { position: relative; display: flex; isolation: isolate; }
.liq a, .liq button { position: relative; z-index: 1; height: 42px; padding: 0 18px; display: inline-flex; align-items: center; gap: 4px; border-radius: var(--r-pill); font-size: 15px; color: var(--ink-2); transition: color 240ms ease, transform .34s var(--press); }
.nav .liq button { padding: 0 13px 0 18px; }
.liq button:active { transform: scale(.93); }
.liq [aria-current="true"], .liq [aria-selected="true"], .liq [aria-pressed="true"], .liq [aria-expanded="true"] { color: var(--ink); }
.chev { width: 14px; height: 14px; opacity: .5; transition: transform .5s var(--spring-jelly), opacity .2s; }
[aria-expanded="true"] > .chev { transform: rotate(180deg); opacity: .9; }
.liq-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; filter: url(#goo); }
.liq-thumb, .liq-tail {
  position: absolute; left: 0; top: 0; border-radius: var(--r-pill);
  background: radial-gradient(130% 90% at 25% -10%, #fff 0%, rgb(255 255 255 / .92) 45%, rgb(246 249 238 / .9) 100%);
  will-change: transform, width;
}
.liq-shadow { position: absolute; left: 0; top: 0; border-radius: var(--r-pill); pointer-events: none; box-shadow: inset 0 -1.5px 1px -.5px rgb(var(--shade) / .16), 0 1px 2px rgb(var(--shade) / .14), 0 8px 18px -10px rgb(var(--shade) / .45); z-index: 2; }
.nav .btn-ink { height: 42px; margin-left: 6px; }
.edge-blur { position: fixed; inset: 0 0 auto 0; height: 84px; z-index: 55; pointer-events: none; opacity: 0; transition: opacity 240ms ease; }
.edge-blur.show { opacity: 1; }
.edge-blur div { position: absolute; inset: 0; }
.edge-blur div:nth-child(1) { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); mask: linear-gradient(to top, transparent 0%, #000 25%, #000 100%); -webkit-mask: linear-gradient(to top, transparent 0%, #000 25%, #000 100%); }
.edge-blur div:nth-child(2) { backdrop-filter: blur(2.5px); -webkit-backdrop-filter: blur(2.5px); mask: linear-gradient(to top, transparent 25%, #000 50%); -webkit-mask: linear-gradient(to top, transparent 25%, #000 50%); }
.edge-blur div:nth-child(3) { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); mask: linear-gradient(to top, transparent 50%, #000 75%); -webkit-mask: linear-gradient(to top, transparent 50%, #000 75%); }
.edge-blur div:nth-child(4) { backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); mask: linear-gradient(to top, transparent 75%, #000 100%); -webkit-mask: linear-gradient(to top, transparent 75%, #000 100%); background: linear-gradient(to bottom, rgb(250 248 241 / .5), rgb(250 248 241 / 0)); }

/* dropdown: one drop of glass that wobbles open and morphs between menus */
.menu { position: fixed; left: 0; top: 0; z-index: 65; opacity: 0; pointer-events: none; transition: opacity .2s ease; will-change: transform; }
.menu.on { opacity: 1; pointer-events: auto; transition: opacity .12s ease; }
.menu-bg { position: absolute; left: 0; top: 0; border-radius: 26px; --veil: .7; background: radial-gradient(130% 78% at 16% -14%, rgb(255 255 255 / .5), transparent 56%), linear-gradient(135deg, rgb(255 255 255 / .84), rgb(255 255 255 / .7) 46%, rgb(255 255 255 / .84)); box-shadow: inset 0 1.5px 1px -.5px rgb(255 255 255 / .8), inset 0 -1.5px 1px -.5px rgb(var(--shade) / .22), 0 24px 50px -18px rgb(var(--shade) / .4); }
.menu-in { position: relative; z-index: 1; padding: 10px; width: max-content; min-width: 268px; max-width: min(360px, calc(100vw - 24px)); }
.menu-head { padding: 9px 12px 7px; font: 500 11.5px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.menu-sep { height: 1px; margin: 6px 12px; background: var(--line); }
.menu-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 17px; text-align: left; transition: background-color .2s ease, transform .34s var(--press); }
.menu-item:hover, .menu-item:focus-visible { background: rgb(255 255 255 / .6); box-shadow: inset 0 1.5px 1px -.5px #fff, inset 0 -1px 1px -.5px rgb(var(--shade) / .14); }
.menu-item:active { transform: scale(.95); }
.menu-item b { display: block; font: 500 15.5px/1.25 var(--font-display); letter-spacing: -.012em; color: var(--ink); }
.menu-item small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); margin-top: 2px; }
.menu-item .th { width: 54px; height: 36px; border-radius: 10px; background-position: center; background-size: cover; background-repeat: no-repeat; box-shadow: 0 0 0 1px rgb(255 255 255 / .9), 0 6px 12px -6px rgb(var(--shade) / .5); }
.menu-item .th.tall { width: 26px; height: 44px; margin: 0 14px; border-radius: 7px; background-position: top; }
.menu-item .th.dash { background: rgb(255 255 255 / .35); box-shadow: inset 0 0 0 1.5px rgb(103 138 80 / .45); }
.menu-item .no { width: 30px; text-align: center; font: 600 13px/1 var(--font-display); color: var(--koi-ink); }
.menu-item .go { width: 16px; height: 16px; color: var(--ink-3); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .3s var(--ease-out); }
.menu-item:hover .go, .menu-item:focus-visible .go { opacity: 1; transform: none; }
@keyframes mi-in { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
.menu-item, .menu-head, .menu-sep { animation: mi-in .52s var(--spring-soft) backwards; animation-delay: calc(var(--i, 0) * 34ms + 50ms); }

/* ============ hero ============ */
.hero { position: relative; height: 100svh; min-height: 660px; overflow: hidden; container-type: size; }
.water { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-mask: linear-gradient(to bottom, #000 88%, transparent); mask: linear-gradient(to bottom, #000 88%, transparent); }
.hero-ui { position: absolute; inset: 0; pointer-events: none; }
.hero-ui > * { pointer-events: auto; }

.ident { position: absolute; left: clamp(28px, 5.5cqw, 96px); top: clamp(24px, 6cqh, 72px); width: min(460px, 34cqw); z-index: 5; }
.script { width: 100%; height: auto; overflow: visible; display: block; margin-left: -4%; }
.script .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.ready .script .draw { animation: write 2.2s var(--ease-in-out) .2s forwards; }
@keyframes write { to { stroke-dashoffset: 0; } }
.script .word { opacity: 0; transition: opacity 1.2s ease .5s, filter 1.2s ease .5s; filter: blur(6px); }
.ready .script .word { opacity: 1; filter: blur(0); }
.ready .script .word + .word { opacity: .28; }
.ident .name { font: 500 clamp(28px, 2.7cqw, 42px)/1.05 var(--font-display); letter-spacing: -.035em; margin-top: 6px; }
.ident .role { margin-top: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 300px; }
.ident .mail { margin-top: 6px; display: inline-block; font-size: 14px; color: var(--ink-3); }
.ident .icons { display: flex; gap: 10px; margin-top: 18px; }

.rise { opacity: 0; transform: translateY(12px); filter: blur(6px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), filter 600ms var(--ease-out); }
.ready .rise { opacity: 1; transform: none; filter: none; }
.ready .rise.d1 { transition-delay: .25s; } .ready .rise.d2 { transition-delay: .35s; } .ready .rise.d3 { transition-delay: .45s; } .ready .rise.d4 { transition-delay: .55s; }

.stage { position: absolute; left: 55%; top: 51%; width: var(--D); height: var(--D); --D: min(46cqw, 78cqh); transform: translate(-50%, -50%); }
.stage-inner { position: absolute; inset: 0; transform-origin: 50% 50%; }
.sphere-wrap { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transform: scale(.94); filter: blur(10px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), filter 900ms var(--ease-out); }
.ready .sphere-wrap { opacity: 1; transform: none; filter: none; }
.sphere {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(130% 78% at 26% -4%, rgb(255 255 255 / .5), transparent 46%),
    radial-gradient(circle at 34% 28%, rgb(255 255 255 / .72) 0%, rgb(252 251 246 / .42) 34%, rgb(236 239 226 / .3) 66%, rgb(214 222 200 / .46) 100%);
  -webkit-backdrop-filter: blur(3px) saturate(150%); backdrop-filter: blur(3px) saturate(150%);
  box-shadow:
    inset -34px -46px 90px rgb(var(--shade) / .18),
    inset 26px 26px 60px rgb(255 255 255 / .7),
    inset 0 2px 1px -.5px rgb(255 255 255 / .95),
    inset 0 -2px 1px -.5px rgb(var(--shade) / .2),
    inset 0 0 40px 6px rgb(255 255 255 / .35),
    0 60px 90px -46px rgb(var(--shade) / .42),
    0 10px 30px -10px rgb(var(--shade) / .14);
  will-change: transform;
}
.sphere::before { /* sharp highlight, top left */
  content: ''; position: absolute; left: 13%; top: 9%; width: 34%; height: 20%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / .95), rgb(255 255 255 / 0));
  transform: rotate(-28deg); filter: blur(4px);
}
.sphere::after { /* faint lemon and leaf fringe on the rim */
  content: ''; position: absolute; inset: -1px; border-radius: 50%; padding: 1.5px;
  background: conic-gradient(from 210deg, rgb(255 228 150 / .8), rgb(255 255 255 / 0) 25%, rgb(184 216 152 / .7) 50%, rgb(255 255 255 / 0) 75%, rgb(255 228 150 / .8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.core {
  position: absolute; left: 50%; top: 50%; width: calc(var(--D) * .38); height: calc(var(--D) * .38);
  transform: translate(-50%, -50%); border-radius: 50%; z-index: 2; overflow: hidden;
  box-shadow: 0 0 0 6px rgb(255 255 255 / .6), 0 0 0 7px rgb(var(--shade) / .08), 0 22px 40px -18px rgb(var(--shade) / .5);
}
/* portrait placeholder: swap for a real photo */
.photo-ph, .photo-card { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(70% 55% at 28% 22%, #FFF7DC 0%, rgb(255 247 220 / 0) 62%), radial-gradient(80% 70% at 78% 86%, #CFE0BC 0%, rgb(207 224 188 / 0) 70%), linear-gradient(155deg, #F1F3E5, #DEE8D0); }
.photo-ph::before, .photo-card::before { content: ''; position: absolute; left: 50%; top: 22%; width: 30%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: rgb(255 255 255 / .78); box-shadow: 0 10px 24px -12px rgb(var(--shade) / .35); }
.photo-ph::after, .photo-card::after { content: ''; position: absolute; left: 50%; bottom: -16%; width: 66%; height: 46%; transform: translateX(-50%); border-radius: 50% 50% 0 0 / 70% 70% 0 0; background: rgb(255 255 255 / .78); }
.photo-ph span { position: absolute; left: 0; right: 0; bottom: 13%; z-index: 1; text-align: center; font-size: clamp(11px, .95cqw, 13px); font-weight: 500; color: var(--ink-3); }
.reel-ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgb(35 42 32 / .7); font-size: 13px;
  background: radial-gradient(70% 60% at 30% 30%, #FBF4D6 0%, transparent 60%), radial-gradient(70% 70% at 75% 75%, #D7E6C6 0%, transparent 65%), linear-gradient(135deg, #EEF0DE, #E2EAD2);
  background-size: 160% 160%; animation: reel 14s ease-in-out infinite alternate;
}
@keyframes reel { to { background-position: 100% 100%; } }

.orbit { position: absolute; inset: 0; pointer-events: none; }
.card {
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer;
  border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .9), 0 1px 2px rgb(var(--shade) / .14), 0 18px 30px -14px rgb(var(--shade) / .45);
  will-change: transform, opacity, filter;
  transition: opacity 300ms ease, box-shadow 300ms ease;
  opacity: 0;
}
.ready .card { opacity: 1; }
.card img, .card .ph { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card.phone { border-radius: 9px; }
.card .ph { display: grid; place-items: end start; padding: 7% 8%; color: rgb(35 42 32 / .75); font: 600 clamp(9px, 1cqw, 13px)/1 var(--font-display); letter-spacing: -.01em; }
.card .ph em { position: absolute; right: 8%; top: 6%; font: 700 clamp(18px, 2.4cqw, 34px)/1 var(--font-display); font-style: normal; letter-spacing: -.05em; color: rgb(255 255 255 / .85); }
.orbit.dim .card.hot { box-shadow: 0 0 0 1px #fff, 0 26px 40px -16px rgb(var(--shade) / .55); }
.tag { position: absolute; left: 0; top: 0; z-index: 9; pointer-events: none; height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity 200ms ease; --veil: .55; }
.tag.on { opacity: 1; }

.view-work { position: absolute; left: 55%; top: calc(51% + var(--D) / 2 - 22px); translate: -50% 0; z-index: 6; --D: min(46cqw, 78cqh); }
.toc { position: absolute; right: clamp(28px, 5cqw, 92px); top: 14cqh; bottom: 19cqh; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; z-index: 5; }
.toc a { position: relative; font: 600 clamp(36px, 3.7cqw, 60px)/.95 var(--font-display); letter-spacing: -.04em; padding: 6px 0; transition: transform 420ms var(--spring-jelly); }
.toc a::after { content: ''; position: absolute; right: 0; bottom: -2px; height: 2.5px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform 420ms var(--ease-out); border-radius: 2px; }
.toc a small { display: block; text-align: right; margin-top: 10px; font: 400 14px/1 var(--font-text); letter-spacing: 0; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) {
  .toc a:hover { transform: translateX(-12px); }
  .toc a:hover::after { transform: scaleX(1); }
}
.hero .mq-thin { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 4; }

/* ============ marquee ============ */
.mq { overflow: hidden; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.mq-track { display: inline-flex; will-change: transform; }
.mq-item { display: inline-flex; align-items: center; }
.mq-item span { padding: 0 22px; }
.mq-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--koi); flex: none; }
.mq-thin { font-size: 13px; color: var(--ink-3); letter-spacing: .01em; }
.mq-thin .mq-item i { width: 5px; height: 5px; opacity: .7; }
.mq-mid { font: 400 clamp(20px, 2vw, 28px)/1 var(--font-display); letter-spacing: -.02em; color: var(--ink-2); padding: 22px 0; border-block: 1px solid var(--line); }
.mq-mid .mq-item span { padding: 0 34px; }
.mq-band { background: var(--ink); color: var(--lemon); font: 600 clamp(17px, 1.5vw, 22px)/1 var(--font-display); letter-spacing: -.01em; padding: 19px 0; box-shadow: 0 20px 40px -24px rgb(var(--shade) / .6); position: relative; z-index: 3; }
.mq-band .mq-item i { background: #B8D898; }

/* ============ section headings ============ */
section { position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: clamp(96px, 12vw, 170px); }
.big { font: 300 clamp(96px, 13vw, 200px)/.82 var(--font-display); letter-spacing: -.065em; margin-left: -.04em; }
.lede { max-width: 360px; color: var(--ink-2); font-size: 17px; line-height: 1.55; padding-bottom: 14px; }

/* ============ web: stardew ============ */
.site { display: grid; grid-template-columns: minmax(0, 64fr) minmax(0, 36fr); gap: clamp(32px, 4vw, 64px); align-items: start; margin-top: clamp(48px, 6vw, 80px); scroll-margin-top: 96px; }
.tilt { perspective: 1100px; perspective-origin: 50% 0%; }
.frame { border-radius: var(--r-frame); padding: 10px; transform-origin: 50% 80%; will-change: transform; --veil: .5;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  box-shadow: inset 0 1.5px 1px -.5px rgb(255 255 255 / .95), inset 0 -1.5px 1px -.5px rgb(var(--shade) / .24), inset 0 0 0 1px rgb(255 255 255 / .5), 0 2px 4px rgb(var(--shade) / .08), 0 40px 70px -40px rgb(var(--shade) / .55); }
.frame-bar { display: flex; align-items: center; gap: 12px; padding: 4px 6px 12px; }
.dots { display: flex; gap: 7px; padding-left: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #E9EDDF 60%, #D3DCC4); box-shadow: inset 0 0 0 .5px rgb(var(--shade) / .25); }
.tabs { overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { font-size: 14px; height: 36px; padding: 0 14px; white-space: nowrap; }
.screen { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-inner); overflow: hidden; background: var(--mist-2); cursor: zoom-in; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 220ms ease, filter 220ms ease; }
.screen img.swap { opacity: 0; filter: blur(8px); }
.frame-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 8px 4px; font-size: 13px; color: var(--ink-3); }
.work-title { font: 500 clamp(28px, 2.6vw, 40px)/1.08 var(--font-display); letter-spacing: -.035em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 26px 0 24px; }
.facts dt { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.facts dd { font-size: 15px; margin-top: 4px; }
.copy { color: var(--ink-2); max-width: 58ch; }
.built { margin-top: 20px; display: grid; gap: 10px; }
.built li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.built li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--koi); }
.cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.hint { font-size: 13px; color: var(--ink-3); }
.credit { margin-top: 26px; font-size: 12.5px; color: var(--ink-3); max-width: 46ch; line-height: 1.5; }
.viewing-note { margin-top: 22px; font-size: 13px; line-height: 1.6; color: var(--ink-3); max-width: 58ch; }
.viewing-note strong { display: block; margin-bottom: 5px; font-weight: 500; }

/* ============ web: eduai flex carousel (WebGL lens) ============ */
.app { margin-top: clamp(110px, 12vw, 170px); scroll-margin-top: 96px; }
.app-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.app-head .facts { grid-template-columns: repeat(4, auto); margin: 0; justify-content: end; gap: 10px 36px; }
/* EduAI: a 3D card carousel. The centre card faces you; the others shrink, step back and turn toward it */
.cf { position: relative; height: clamp(460px, 66vh, 640px); margin-top: 30px; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline-offset: -4px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.cf.grabbing { cursor: grabbing; }
.cf-stage { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 45%; }
.cf-card { position: absolute; left: 50%; top: 50%; border-radius: 26px; overflow: hidden; background: #fff; transform-origin: 50% 50%; will-change: transform;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .9), 0 1px 2px rgb(var(--shade) / .12), 0 30px 46px -26px rgb(var(--shade) / .5); }
.cf-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; -webkit-user-drag: none; }
.cf-card i { position: absolute; inset: 0; background: rgb(250 248 241); pointer-events: none; opacity: 0; }
.cf-arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 200; }
.cf-arrow.prev { left: clamp(12px, 3vw, 44px); } .cf-arrow.next { right: clamp(12px, 3vw, 44px); }
.cf-info { text-align: center; min-height: 128px; margin-top: 18px; position: relative; z-index: 2; transition: opacity .1s ease; }
.cf-info.out { opacity: 0; }
.cf-info b { display: block; font: 500 20px/1.2 var(--font-display); letter-spacing: -.02em; }
.cf-info > span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.cf-meta { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 4px 34px; margin-top: 16px; }
.cf-meta div { display: flex; gap: 14px; font-size: 13.5px; }
.cf-meta dt { color: var(--ink-3); } .cf-meta dd { font-variant-numeric: tabular-nums; }
.cf-stage.blink { animation: blink .2s ease; }
@keyframes blink { 50% { opacity: .35; } }
.flex-focus { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgb(250 248 241 / .6); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transition: opacity 260ms ease; }
.flex-focus.on { opacity: 1; pointer-events: auto; }
.flex-focus img { max-width: min(393px, 86vw); max-height: 88vh; border-radius: 34px; box-shadow: 0 40px 80px -30px rgb(var(--shade) / .55), 0 0 0 1px #fff; transform: scale(.9); transition: transform 600ms var(--spring-jelly); }
.flex-focus.on img { transform: none; }

/* ============ reserved / flip ============ */
.reserved { margin-top: clamp(110px, 12vw, 170px); scroll-margin-top: 96px; perspective: 1400px; }
.flip { position: relative; perspective: 1800px; height: clamp(220px, 22vw, 300px); cursor: pointer; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.face { position: absolute; inset: 0; border-radius: var(--r-frame); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3vw, 40px); }
.face.lg { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.face.back { transform: rotateX(180deg); }
.glint { position: absolute; inset: -40% auto -40% -30%; width: 34%; transform: rotate(14deg) translateX(-120%); background: linear-gradient(90deg, rgb(255 255 255 / 0), rgb(255 255 255 / .7), rgb(255 255 255 / 0)); filter: blur(10px); animation: glint 7s var(--ease-in-out) infinite; pointer-events: none; }
@keyframes glint { 0%, 55% { transform: rotate(14deg) translateX(-120%); } 100% { transform: rotate(14deg) translateX(520%); } }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; color: var(--ink-2); --veil: .5; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--koi); box-shadow: 0 0 0 4px rgb(103 138 80 / .15); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(103 138 80 / 0); } }
.res-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.res-title { font: 400 clamp(34px, 4.2vw, 64px)/1 var(--font-display); letter-spacing: -.045em; }
.flip-hint { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.flip-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 60% at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / .35), transparent 60%); opacity: 0; transition: opacity 300ms ease; }
.flip:hover .flip-glare { opacity: 1; }
.web-mq { margin-top: clamp(100px, 11vw, 150px); }

/* ============ film: expansion ============ */
.film-expand { height: calc(100svh + 85svh); margin-top: clamp(40px, 6vw, 80px); }
.fx-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.fx-title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .22em; z-index: 3; pointer-events: none; font: 300 clamp(80px, 12.5vw, 196px)/.9 var(--font-display); letter-spacing: -.065em; }
.fx-title span { display: inline-block; will-change: transform, opacity; }
.fx-stage { position: relative; width: min(100vw - 2 * var(--gutter), 1320px); aspect-ratio: 16 / 9; max-height: calc(100svh - 150px); border-radius: var(--r-frame); overflow: hidden; z-index: 2; will-change: clip-path, transform; box-shadow: 0 50px 90px -50px rgb(var(--shade) / .55); }
.fx-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; opacity: 0; scale: .9; transition: opacity 240ms ease, scale 500ms var(--spring-jelly), transform .34s var(--press); z-index: 4; }
.fx-play:active { transform: scale(.93); }
.fx-play.on { opacity: 1; scale: 1; }
.fx-play svg { width: 24px; height: 24px; fill: var(--koi); margin-left: 4px; }
.fx-meta { position: absolute; left: 30px; bottom: 26px; z-index: 4; color: var(--ink-2); font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity 300ms ease, transform 600ms var(--ease-out); max-width: 340px; line-height: 1.45; }
.fx-meta b { display: block; font: 500 22px/1.2 var(--font-display); letter-spacing: -.025em; color: var(--ink); margin-bottom: 4px; }
.fx-meta.on { transform: none; opacity: 1; }

/* ============ film: accordion ============ */
.films { padding-top: clamp(40px, 5vw, 70px); scroll-margin-top: 96px; }
.films-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 28px; }
.h2 { font: 400 clamp(30px, 3.2vw, 48px)/1.05 var(--font-display); letter-spacing: -.04em; }
.acc { display: flex; gap: 12px; height: clamp(400px, 56vh, 580px); }
.panel { position: relative; flex: 1 1 0; min-width: 0; border-radius: 22px; overflow: hidden; cursor: pointer; transition: flex-grow 750ms cubic-bezier(.22, 1, .36, 1); box-shadow: 0 0 0 1px rgb(255 255 255 / .8), 0 22px 40px -26px rgb(var(--shade) / .55); outline-offset: 4px; }
.panel.open { flex-grow: 5.2; }
.poster { position: absolute; inset: -4% -12%; transition: transform 900ms var(--ease-out); }
.panel .num { position: absolute; left: 26px; top: 20px; font: 700 clamp(64px, 7vw, 120px)/.85 var(--font-display); letter-spacing: -.07em; color: rgb(255 255 255 / .85); opacity: 0; transform: translateY(10px); transition: opacity 400ms ease, transform 600ms var(--ease-out); text-shadow: 0 10px 30px rgb(var(--shade) / .18); }
.panel.open .num { opacity: 1; transform: none; transition-delay: 180ms; }
.poster .ph-note { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font-size: 13px; color: rgb(35 42 32 / .55); white-space: nowrap; opacity: 0; transition: opacity 400ms ease; }
.panel.open .poster .ph-note { opacity: 1; }
.panel .veil { position: absolute; inset: 0; background: rgb(250 248 241 / .18); transition: opacity 500ms ease; }
.panel.open .veil { opacity: 0; }
.panel .vlabel { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font: 500 15px/1 var(--font-display); letter-spacing: -.01em; color: #fff; text-shadow: 0 1px 10px rgb(0 0 0 / .45); white-space: nowrap; transition: opacity 300ms ease; }
.panel.open .vlabel { opacity: 0; }
.info-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; border-radius: 20px; padding: 14px 14px 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; opacity: 0; transform: translateY(14px); transition: opacity 300ms ease, transform 600ms var(--spring-soft); --veil: .4; }
.panel.open .info-bar { opacity: 1; transform: none; transition-delay: 220ms; }
.info-bar b { display: block; font: 500 20px/1.15 var(--font-display); letter-spacing: -.025em; }
.info-bar span { font-size: 13px; color: var(--ink-2); }
.film-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; margin-top: 26px; align-items: start; }
.film-note .facts { grid-template-columns: repeat(3, auto); margin: 0; gap: 14px 32px; }
.film-note .facts dd { max-width: 230px; }

/* ============ film: drift wall ============ */
.stills { margin-top: clamp(100px, 11vw, 150px); }
.wall { position: relative; height: clamp(440px, 64vh, 660px); margin-top: 28px; overflow: hidden; perspective: 1300px;
  -webkit-mask: radial-gradient(120% 90% at 50% 50%, #000 55%, transparent 100%); mask: radial-gradient(120% 90% at 50% 50%, #000 55%, transparent 100%); }
.wall-plane { position: absolute; left: 50%; top: 50%; width: 140%; display: flex; gap: 18px; transform: translate(-50%, -50%) rotateX(24deg) rotateZ(-9deg); transform-style: preserve-3d; }
.wcol { flex: 1; display: flex; flex-direction: column; gap: 18px; will-change: transform; }
.tile { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; cursor: zoom-in; box-shadow: 0 0 0 1px rgb(255 255 255 / .85), 0 16px 30px -18px rgb(var(--shade) / .5); transition: transform 500ms var(--spring-jelly), box-shadow 300ms ease; }
.tile:hover { transform: translateZ(46px) scale(1.06); box-shadow: 0 0 0 1px #fff, 0 34px 50px -20px rgb(var(--shade) / .6); }
.tile .lab { position: absolute; left: 10px; bottom: 9px; font-size: 11.5px; color: rgb(35 42 32 / .62); font-weight: 500; }

/* ============ ending ============ */
.ending { position: relative; margin-top: clamp(110px, 12vw, 170px); scroll-margin-top: 0; }
.end-body { position: relative; min-height: 100svh; overflow: hidden; }
.end-water { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.end-ui { position: relative; z-index: 2; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: clamp(70px, 9vw, 120px); pointer-events: none; }
.end-ui .wrap > *, .end-ui a, .end-ui button, .end-ui .flip { pointer-events: auto; }
.end-grid { position: relative; min-height: 660px; }
.kit { font: 800 clamp(84px, 12vw, 196px)/.84 var(--font-display); letter-spacing: -.06em; }
.kit span { display: block; width: max-content; }
.kit span + span { margin-left: 12%; }
/* the card sits at the right of the column, the hint fills the space to its right edge */
.end-card { position: absolute; right: calc(218px - max(0px, (100vw - 100%) / 2 - 40px)); top: -2%; width: clamp(280px, 23vw, 340px); }
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.petal { position: absolute; left: 0; top: 0; will-change: transform; filter: drop-shadow(16px 22px 7px rgb(52 66 34 / .2)); }
.petal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.end-card .flip { height: auto; rotate: -5deg; }
.end-card .flip-inner { position: relative; display: grid; border-radius: 26px; }
/* magic glow: a colour-shifting aura behind the card, turning with it */
.end-card .flip::before {
  content: ''; position: absolute; inset: -4px; border-radius: 30px; pointer-events: none; z-index: -1;
  background: conic-gradient(from var(--ang), #F6E7A8, #B9DD9A, #93D6C8, #B9C3F2, #F1BFD3, #F7CFA3, #F6E7A8);
  filter: blur(20px); opacity: calc(.85 * var(--edge, 1)); transform: scaleX(var(--edge, 1)); animation: ang 6s linear infinite;
}
@keyframes ang { to { --ang: 360deg; } }
.end-card .face { position: relative; grid-area: 1 / 1; min-height: 400px; justify-content: flex-start; gap: 12px; padding: 26px; border-radius: 26px; }
.end-card .face.back { transform: rotateY(180deg); background: linear-gradient(160deg, rgb(255 255 255 / .9), rgb(250 249 242 / .82)); box-shadow: inset 0 1.5px 1px -.5px #fff, inset 0 -1.5px 1px -.5px rgb(var(--shade) / .2); }
.end-card .face.front { padding: 0; }
/* the moving rainbow rim */
.magic::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2.5px; z-index: 4; pointer-events: none;
  background: conic-gradient(from var(--ang), #F6E7A8, #B9DD9A, #93D6C8, #B9C3F2, #F1BFD3, #F7CFA3, #F6E7A8);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: ang 6s linear infinite;
}
/* holographic foil: bands of colour that slide with the pointer and on their own */
.holo {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; mix-blend-mode: color-dodge; opacity: .32;
  background:
    radial-gradient(60% 45% at var(--hx, 30%) var(--hy, 20%), rgb(255 255 255 / .55), rgb(255 255 255 / 0) 70%),
    repeating-linear-gradient(118deg, rgb(255 158 196 / 0) 0%, rgb(255 158 196 / .5) 3%, rgb(255 229 154 / .55) 6%, rgb(166 240 198 / .55) 9%, rgb(143 216 255 / .55) 12%, rgb(200 168 255 / .5) 15%, rgb(200 168 255 / 0) 18%, rgb(255 255 255 / 0) 34%);
  background-size: 100% 100%, 300% 300%;
  background-position: 0 0, var(--bx, 20%) var(--by, 20%);
  animation: foil 9s ease-in-out infinite alternate;
}
.back .holo { opacity: .16; }
.end-card .face.back > :not(.holo) { position: relative; z-index: 2; }
@keyframes foil { from { --hx: 22%; } to { --hx: 78%; } }
@property --hx { syntax: '<percentage>'; initial-value: 30%; inherits: true; }
.photo-card { border-radius: inherit; }
.photo-card span { position: absolute; left: 0; right: 0; top: 18px; text-align: center; font-size: 12.5px; font-weight: 500; color: var(--ink-3); z-index: 1; }
.name-strip { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5; border-radius: 18px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; --veil: .55; }
.name-strip b { font: 500 18px/1.2 var(--font-display); letter-spacing: -.02em; }
.name-strip span { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.end-card h3 { font: 500 26px/1.1 var(--font-display); letter-spacing: -.03em; }
.end-card p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.end-card dl { display: grid; gap: 10px; font-size: 13.5px; margin-top: auto; }
.end-card dl div { border-radius: 10px; padding: 4px 6px; margin: -4px -6px; transition: background-color .4s ease; }
.end-card dt { font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.end-card dd > span { display: block; }
.end-card dd > span + span { margin-top: 4px; }
.end-card dd b { font-weight: 500; }
.pulse { animation: hl 1.6s ease 2; }
@keyframes hl { 0%, 100% { background-color: rgb(246 235 194 / 0); } 40% { background-color: rgb(246 235 194 / .95); } }
.flip-cue { position: absolute; left: calc(100% + 20px); top: 34%; display: flex; align-items: center; gap: 8px; width: max-content; pointer-events: none; animation: nudge 2.2s ease-in-out infinite; }
.flip-cue svg { width: 46px; height: 46px; flex: none; color: var(--koi); transform: rotate(90deg); }
.flip-cue span { font: 600 clamp(18px, 1.4vw, 22px)/1.25 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-8px); } }
.end-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.ghost { border: 1.5px dashed rgb(103 138 80 / .6); background: transparent; color: var(--ink-3); box-shadow: none; }
.end-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0 30px; margin-top: 60px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.end-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }

/* ============ lightbox / toast / slots ============ */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; display: none; place-items: center; overflow: hidden; }
dialog.lb[open] { display: grid; }
dialog.lb::backdrop { background: rgb(250 248 241 / .62); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.lb figure { position: relative; max-width: min(1200px, 92vw); transform: scale(.955); opacity: 0; transition: transform 420ms var(--spring-soft), opacity 260ms ease; }
dialog.lb[open] figure.on { transform: none; opacity: 1; }
.lb img { max-width: 100%; max-height: 80dvh; border-radius: 18px; box-shadow: 0 40px 80px -30px rgb(var(--shade) / .55), 0 0 0 1px #fff; margin: 0 auto; }
.lb .vid { width: min(1100px, 90vw); aspect-ratio: 16 / 9; border-radius: 22px; display: grid; place-items: center; text-align: center; color: var(--ink-2); --veil: .55; }
.lb figcaption { text-align: center; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.lb .x { position: fixed; top: 18px; right: 18px; }
.lb .nav-arrow { position: fixed; top: 50%; translate: 0 -50%; }
.lb .nav-arrow.prev { left: 18px; } .lb .nav-arrow.next { right: 18px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; height: 46px; padding: 0 20px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; transform: translate(-50%, 120px); transition: transform 600ms var(--spring-soft); --veil: .6; }
.toast.on { transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; stroke: var(--koi); }
.slots-btn { position: fixed; right: 18px; top: 20px; z-index: 70; }
body.slots [data-slot] { outline: 1.5px dashed var(--koi); outline-offset: 4px; border-radius: 4px; position: relative; }
body.slots [data-slot]::before { content: attr(data-slot); position: absolute; left: -2px; top: -26px; z-index: 5; font: 500 11px/1 var(--font-text); letter-spacing: 0; color: #fff; background: var(--koi-ink); padding: 4px 7px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
body.slots .photo-ph[data-slot]::before, body.slots .photo-card[data-slot]::before { content: none; }

/* ============ responsive ============ */
@media (max-width: 1100px) {
  .hero { height: auto; min-height: 100svh; padding: 28px 0 24px; display: flex; flex-direction: column; container-type: inline-size; }
  .hero-ui { position: relative; display: flex; flex-direction: column; }
  .ident { position: relative; left: auto; top: auto; width: auto; padding: 0 var(--gutter); }
  .script { width: min(420px, 78vw); }
  .stage { position: relative; left: auto; top: auto; transform: none; --D: min(88vw, 560px); margin: 20px auto 0; }
  .view-work { position: relative; left: auto; top: auto; translate: none; align-self: center; margin-top: -16px; }
  .toc { position: relative; right: auto; top: auto; bottom: auto; flex-direction: row; justify-content: center; gap: 28px; margin-top: 28px; }
  .toc a { font-size: clamp(26px, 6vw, 40px); }
  .toc a small { display: none; }
  .hero .mq-thin { position: relative; bottom: auto; margin-top: 26px; }
  .site, .app-head { grid-template-columns: minmax(0, 1fr); }
  .app-head .facts { justify-content: start; grid-template-columns: repeat(2, auto); }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .film-note { grid-template-columns: 1fr; }
  .flip-cue { left: calc(100% + 18px); }
}
@media (max-width: 1180px) {
  .end-grid { min-height: 0; }
  .end-card { position: relative; right: auto; top: auto; margin: 46px 0 0 8%; width: min(320px, 72vw); }
}
@media (max-width: 760px) {
  .kit { font-size: clamp(64px, 19vw, 96px); }
  .big { font-size: clamp(84px, 24vw, 120px); }
  .cf { height: 440px; }
  .cf-arrow { display: none; }
  .wall { height: 420px; }
  .wall-plane { width: 260%; }
  .fx-title { font-size: clamp(56px, 15vw, 80px); flex-direction: column; gap: 0; }
  .acc { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .acc::-webkit-scrollbar { display: none; }
  .panel, .panel.open { flex: 0 0 74vw; height: 440px; scroll-snap-align: center; }
  .panel .vlabel { display: none; }
  .panel .info-bar { opacity: 1; transform: none; }
  .film-note .facts, .app-head .facts { grid-template-columns: repeat(2, auto); }
  .nav { height: 52px; padding: 0 5px; }
  .nav .liq button { padding: 0 8px 0 12px; font-size: 14px; }
  .nav .bead { display: none; }
  .nav .btn-ink span { display: none; }
  .nav .btn-ink { width: 40px; padding: 0; }
  .end-card { width: min(300px, 78vw); margin: 40px 0 76px 2%; }
  .flip-cue { left: 12px; top: auto; bottom: -60px; }
  .flip-cue span { font-size: 15px; }
  .flip-cue svg { width: 36px; height: 36px; }
  .end-foot { flex-direction: column; align-items: flex-start; }
  .slots-btn { top: auto; bottom: 16px; right: 16px; width: 44px; padding: 0; font-size: 0; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .rise, .sphere-wrap, .card { transition: opacity 200ms ease !important; transform: none !important; filter: none !important; }
  .film-expand { height: auto; }
  .fx-sticky { position: relative; height: auto; padding: 60px 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .lg, .lgbtn, .sphere { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #FBFAF5; }
}

/* ===== round 2: real photo, posters, film videos ===== */
.portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; display: block; }
.photo-card.has-photo::before, .photo-card.has-photo::after { content: none; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.panel .veil { background: linear-gradient(180deg, rgb(250 248 241 / .1) 0%, rgb(250 248 241 / 0) 40%, rgb(20 24 18 / .16) 100%); }
.card .ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card .ph.has-img > em, .card .ph.has-img > span { display: none; }
.reel-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity 600ms ease; }
.reel-vid.on { opacity: 1; }
.fx-stage.has-vid .fx-meta { padding: 12px 16px; border-radius: 16px; background: rgb(250 248 241 / .74); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); box-shadow: 0 0 0 1px rgb(255 255 255 / .7); }
.lb video.lbv { display: block; width: min(1100px, 90vw); height: auto; max-height: 80dvh; aspect-ratio: auto 16 / 9; border-radius: 18px; background: #0d0f0c; box-shadow: 0 40px 80px -30px rgb(var(--shade) / .55), 0 0 0 1px #fff; margin: 0 auto; }
.panel .info-bar { --veil: .74; }

/* Third website follows the existing browser frame, with its text first. */
.site-mirror { grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); margin-top: clamp(110px, 12vw, 170px); }
.preview-film { position: relative; }
.preview-film img { display: block; width: 100%; }
.preview-film p { position: absolute; inset: 0 0 auto; margin: 0; padding: 18px 22px; color: #fff; background: rgb(0 0 0 / .72); font-size: 16px; }
@media (max-width: 800px) { .site-mirror { grid-template-columns: minmax(0, 1fr); } }

/* Round 4: complete pages inside the existing browser frame. */
.screen-scroll { height: 100%; overflow: hidden; }
.screen .screen-scroll img { display: block; width: 100%; height: auto; max-width: none; }
.screen.screen-detail .screen-scroll { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: clamp(10px, 1.5vw, 22px); overflow: hidden; }
.screen.screen-detail .screen-scroll img { width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
.screen-description { padding: 2px 8px 6px; margin-top: 6px; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.screen::after { content: ''; position: absolute; inset: auto 0 0; height: 44px; background: linear-gradient(transparent, rgb(41 47 35 / .22)); opacity: 0; pointer-events: none; transition: opacity 160ms ease; }
.screen.has-more::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .screen-scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgb(84 98 71 / .4) transparent; }
  .screen-scroll::-webkit-scrollbar { width: 5px; }
  .screen-scroll::-webkit-scrollbar-thumb { background: rgb(84 98 71 / .4); border-radius: 6px; }
}
.tabs { flex-wrap: nowrap; mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 8px), transparent); }
.tabs button { flex-shrink: 0; }
.frame-foot { gap: 12px; align-items: flex-start; }
.frame-foot > :last-child { text-align: right; max-width: 65%; }
.lb.long-image figure { width: min(1200px, 94vw); max-width: none; }
.lb.long-image #lbMedia { max-height: calc(100dvh - 140px); overflow-y: auto; border-radius: 18px; scrollbar-width: thin; }
.lb.long-image img { width: 100%; height: auto; max-height: none; border-radius: 0; box-shadow: none; }
.lb.long-image .nav-arrow { z-index: 6; }
.fx-controls { position: absolute; inset: 0; z-index: 4; opacity: 0; pointer-events: none; transition: opacity 240ms ease; }
.fx-controls.on { opacity: 1; pointer-events: auto; }
.fx-step { position: absolute; top: 50%; translate: 0 -50%; }
.fx-prev { left: 24px; } .fx-next { right: 24px; }
.fx-pause { position: absolute; right: 26px; bottom: 26px; }
.fx-dots { position: absolute; bottom: 30px; left: 50%; translate: -50% 0; display: flex; gap: 6px; }
.fx-dot { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: rgb(250 248 241 / .5); }
.fx-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: .45; }
.fx-dot[aria-pressed=true]::after { background: var(--ink); opacity: 1; }
.fx-stage .reel-vid, .fx-stage .reel-ph { transition: opacity 200ms ease; }
.fx-stage.reel-switching .reel-vid, .fx-stage.reel-switching .reel-ph { opacity: 0; }
.fx-stage .fx-meta { padding: 12px 16px; border-radius: 16px; background: rgb(250 248 241 / .74); backdrop-filter: blur(14px); }
.preview-notice { position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: #fbfaf5; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.preview-notice button { margin-left: auto; flex-shrink: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 30px; }
body:has(.preview-notice) { padding-top: var(--preview-notice-height, 80px); }
body:has(.preview-notice) .nav, body:has(.preview-notice) .slots-btn { margin-top: var(--preview-notice-height, 80px); }
.toast { height: auto; min-height: 46px; max-width: min(660px, 92vw); padding-block: 12px; }
@media (max-width: 760px) {
  .fx-prev { left: 10px; } .fx-next { right: 10px; }
  .fx-stage .fx-meta { left: 10px; bottom: 45px; padding: 8px 10px; font-size: 11px; max-width: 55%; }
  .fx-meta b { font-size: 16px; }
  .fx-pause { right: 10px; bottom: 48px; padding: 0 12px; height: 34px; font-size: 11px; }
  .fx-dots { bottom: 12px; }
  .fx-play { width: 58px; height: 58px; }
  .preview-notice { padding: 10px 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .fx-stage .reel-vid { display: none; } }
