@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url(/static/vendor/fonts/outfit-latin-wght-normal.45447a2b45991ea4.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/static/vendor/fonts/instrument-serif-latin-400-italic.5a51946dfffa8297.woff2) format("woff2"); }

/* Palette and type follow a silk-and-mist poster language: deep slate at the top of the screen
   fading to silver at the foot, one soft-focus subject, thin geometric type, and a faint
   soft white glow on the big words (the colour fringe lives only on the moon's soft-focus edge). */
:root {
  --slate: #151c28;        /* top of the sky */
  --steel: #56627a;        /* middle */
  --silver: #c4cad6;       /* the foot of the poster */
  --dark: #0b0f16;         /* the dark side (services, booking) */
  --fg: #f6f8fc;
  --dim: rgba(246, 248, 252, .62);
  --faint: rgba(246, 248, 252, .16);
  --ink: #141b27;          /* type on the silver */
  --ink-dim: rgba(20, 27, 39, .68);
  --ice: #a9c8ff;
  --ice-hi: #d6e4ff;
  --glow: 0 0 .14em rgba(196, 214, 255, .25);
  --sans: "Outfit", system-ui, sans-serif;
  --script: "Instrument Serif", Georgia, serif;
  --mono: "Outfit", system-ui, sans-serif;
  --world: "Outfit", "Yu Gothic", "Malgun Gothic", "Nirmala UI", "Segoe UI", "Noto Sans", system-ui, sans-serif;
  --label-size: clamp(11px, .72vw, 12px);
  --label-tracking: .12em;
  --pad: clamp(16px, 2vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--slate); color: var(--fg); }
body { font-family: var(--sans); font-weight: 300; font-size: clamp(14px, 1vw, 16px); line-height: 1.5; background: var(--slate); -webkit-font-smoothing: antialiased; overflow-x: hidden; cursor: none; }
body.is-loading { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ice); color: var(--ink); }
:focus-visible { outline: 1px solid var(--ice); outline-offset: 4px; }
@media (hover: none) { body { cursor: auto; } }

.mono { font-family: var(--mono); font-weight: 450; font-size: var(--label-size); letter-spacing: var(--label-tracking); text-transform: uppercase; line-height: 1.6; }
.script { font-family: var(--script); font-style: italic; font-weight: 400; color: var(--ice); line-height: 1; letter-spacing: .005em; }
.script > span { display: inline-block; }
.ch { display: inline-block; will-change: transform; }

.grain {
  position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -3%); } 75% { transform: translate(-2%, -4%); } 100% { transform: translate(0, 0); } }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--fg); mix-blend-mode: difference;
  display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s;
}
.cursor span { font-family: var(--script); font-style: italic; font-size: 17px; color: var(--ink); opacity: 0; white-space: nowrap; transition: opacity .2s; }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(214, 228, 255, .92); mix-blend-mode: normal; }
.cursor.is-label span { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }
/* once the drawn cursor is live (main.js, first mouse move), the system pointer never shows over it:
   links and buttons would otherwise bring it back with the browser's own cursor: pointer */
@media (hover: hover) { body.custom-cursor, body.custom-cursor * { cursor: none !important; } }
/* near a plain link: a hollow ring that the link sits inside */
.cursor.is-link:not(.is-label) { width: 38px; height: 38px; margin: -19px 0 0 -19px; background: transparent; box-shadow: inset 0 0 0 1px var(--fg); }
/* over a world in the orb: the bubble takes that world's light */
.cursor.is-world { background: rgb(var(--world)); box-shadow: 0 0 34px 6px rgba(var(--world), .45), inset 0 0 0 1px rgba(255, 255, 255, .35); }
.cursor.is-world span { color: var(--world-ink); }
.cursor { transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, box-shadow .4s var(--ease); }
/* the label rolls in letter by letter */
.cursor span { display: inline-flex; overflow: hidden; padding-bottom: .12em; }
.cursor span i { display: inline-block; font-style: inherit; transform: translateY(115%); animation: cursor-roll .5s var(--ease) forwards; animation-delay: calc(var(--i) * 26ms); }
@keyframes cursor-roll { to { transform: none; } }
/* magnets lean toward the pointer (main.js sets --mx/--my) */
.hud nav a, .hud__logo, .menu-btn, [data-cursor] { translate: calc(var(--mx, 0) * 1px) calc(var(--my, 0) * 1px); }
@media (prefers-reduced-motion: reduce) { .cursor span i { animation: none; transform: none; } }

/* ───────── HUD (persistent across every section) ───────── */
.hud { position: fixed; z-index: 30; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: var(--pad) calc(var(--pad) + 14px) 0; mix-blend-mode: difference; }
.hud__l, .hud__r { display: flex; gap: clamp(12px, 2vw, 34px); align-items: center; }
.hud__r { justify-content: flex-end; }
.hud a { opacity: .8; transition: opacity .2s; }
.hud a:hover { opacity: 1; }
.hud__logo { display: block; width: clamp(38px, 3vw, 48px); opacity: 1 !important; }
.hud__logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.hud__logo circle { fill: none; stroke: #fff; stroke-width: 1.2; }
.hud__logo path { fill: #fff; }
.rail { position: fixed; z-index: 30; top: 30vh; bottom: 30vh; width: 8px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; mix-blend-mode: difference; }
.rail--l { left: 10px; } .rail--r { right: 10px; align-items: flex-end; }
.rail i { width: 5px; height: 1px; background: var(--faint); transition: width .3s, background .3s; }
.rail i:nth-child(5n + 1) { width: 8px; background: var(--dim); }
.rail i.is-on { background: #fff; width: 14px; }
.now { position: fixed; z-index: 30; left: calc(var(--pad) + 14px); bottom: calc(var(--pad) - 4px); color: var(--fg); mix-blend-mode: difference; }
.progress { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .08); }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--ice), #fff); transform: scaleX(0); transform-origin: left; }


/* ───────── Loader ───────── */
.loader { position: fixed; inset: 0; z-index: 70; color: var(--dim); --lw: min(70vh, 56vw); --ly: 52%; }
.loader__bg { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 70%, #0b0f17, #05070b 70%); }
/* the ring sits exactly where the intro's eclipse will light up (the moon's disc at the intro's opening scale) */
.loader__ring { position: absolute; left: calc(50% - var(--lw) * .34); top: calc(var(--ly) - var(--lw) * .34); width: calc(var(--lw) * .68); aspect-ratio: 1; overflow: visible; }
.loader__ring g circle { fill: none; }
/* held light: the loader is a closed hand in the dark with light inside it (glow.js); no ring, no count */
.loader__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loader__track, .loader__arc, .loader__head, .loader__n, .loader__phases { visibility: hidden; }
.loader__disc { opacity: 0; }
.loader__track { stroke: rgba(246, 248, 252, .08); stroke-width: .3; }
.loader__arc { stroke: var(--ice-hi); stroke-width: .45; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(169, 200, 255, .75)); }
.loader__head { fill: #fff !important; filter: drop-shadow(0 0 6px rgba(214, 228, 255, .95)); transform-origin: 50px 50px; }
.loader__n { position: absolute; left: 50%; top: 52%; translate: -50% -50%; overflow: hidden; margin: 0; font-weight: 100; font-size: clamp(56px, 8vw, 128px); line-height: .9; letter-spacing: .04em; color: var(--fg); text-shadow: var(--glow); }
.loader__n span { display: inline-block; }
.loader__phases { position: absolute; left: 50%; bottom: calc(var(--pad) + 4px); translate: -50% 0; display: flex; gap: clamp(10px, 1.2vw, 18px); }
.loader__phases svg { width: clamp(14px, 1.25vw, 20px); height: auto; overflow: visible; opacity: .2; transition: opacity .35s, filter .35s; }
.loader__phases svg.is-on { opacity: 1; filter: drop-shadow(0 0 4px rgba(169, 200, 255, .7)); }
.loader__phases circle { fill: none; stroke: var(--ice-hi); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.loader__phases path { fill: var(--ice-hi); }
.loader__l, .loader__r { position: absolute; bottom: var(--pad); margin: 0; }
.loader__l { left: var(--pad); }
.loader__r { right: var(--pad); text-align: right; }

/* ───────── Stage ───────── */
#spacer { width: 1px; }
#stage { position: fixed; inset: 0; overflow: hidden; }
/* the sky: a vertical slate → silver wash, plus one soft light that drifts between sections */
.bg { position: absolute; inset: 0;
  --top: #151c28; --mid: #56627a; --bot: #c4cad6; --bc: rgba(200, 212, 235, .32);
  background: radial-gradient(ellipse 55% 48% at var(--bx, 50%) var(--by, 62%), var(--bc), rgba(200, 212, 235, 0) 72%),
              linear-gradient(180deg, var(--top), var(--mid) 58%, var(--bot)); }
.sec { position: absolute; inset: 0; visibility: hidden; }
.sec a { pointer-events: auto; }
.sec__scroll { position: absolute; z-index: 3; left: 50%; bottom: 7vh; translate: -50% 0; color: var(--fg); font-size: clamp(18px, 1.5vw, 26px); display: grid; justify-items: center; }

/* shared hero object: the 3D moon (canvas) */
.moth-wrap { position: absolute; z-index: 5; left: 50%; top: 52%; width: min(70vh, 56vw); aspect-ratio: 1; margin-left: calc(min(70vh, 56vw) / -2); translate: 0 -50%; pointer-events: none; will-change: transform; }
.moth-cam { width: 100%; height: 100%; }
.moon { width: 100%; height: 100%; display: block; }

/* shared sky: orbit + planet */
.sky { position: absolute; inset: 0; z-index: 2; pointer-events: none; visibility: hidden; }
.orbit { position: absolute; left: 50%; top: 46%; width: min(92vw, 1300px); translate: -50% -50%; overflow: visible; }
.orbit__ring { fill: none; stroke: rgba(236, 241, 252, .42); stroke-width: 1; }
.orbit__ring--2 { stroke: rgba(169, 200, 255, .45); stroke-dasharray: 2 8; }
.planet { position: absolute; left: 50%; top: 46%; width: min(46vh, 70vw); height: min(46vh, 70vw); translate: calc(-50% + var(--lx) * 1px) calc(-50% + var(--ly) * 1px); }

/* 01 hero — composed like the poster */
.hero__kanji { position: absolute; z-index: 6; left: 50%; top: calc(var(--pad) + clamp(52px, 4.4vw, 70px)); translate: -50% 0; display: grid; justify-items: center; gap: .18em;
  font-family: "Yu Gothic", "Hiragino Sans", "Noto Sans JP", var(--sans); font-weight: 400; font-size: clamp(17px, 1.45vw, 24px); line-height: 1; color: #fff; }
.hero__word {
  position: absolute; z-index: 6; left: calc(var(--pad) + 22px); bottom: 8.5vh;
  display: flex; align-items: baseline; gap: .3em;
  font-weight: 300; text-transform: uppercase; white-space: nowrap; color: var(--ink);
  font-size: clamp(40px, 5.6vw, 112px); line-height: .9; letter-spacing: .035em;
}
.hero__row { display: inline-block; overflow: hidden; padding: .06em 0 .02em; }
.hero__num { font-weight: 200; letter-spacing: 0; overflow: hidden; display: inline-block; padding: .06em 0 .02em; }
.hero__caps { position: absolute; z-index: 6; right: calc(var(--pad) + 22px); bottom: calc(8.5vh + .35vw); display: grid; grid-template-columns: repeat(4, auto); column-gap: clamp(18px, 2.2vw, 44px); row-gap: .3em;
  font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(12px, 1.2vw, 21px); line-height: 1.1; color: var(--ink); }
.hl--1 { grid-area: 1 / 1; } .hl--2 { grid-area: 1 / 3; } .hl--3 { grid-area: 2 / 2; } .hl--4 { grid-area: 2 / 4; }
.hero__scroll { position: absolute; z-index: 6; left: 50%; bottom: 2.6vh; translate: -50% 0; display: grid; justify-items: center; gap: 10px; color: var(--ink-dim); }
.hero__scroll i { width: 1px; height: 30px; background: currentColor; transform-origin: top; animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 02 about: the moon stays centred; "ABOUT US" orbits it; copy sits either side, on the silver */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.about__copy { position: absolute; z-index: 7; bottom: 12vh; width: min(21vw, 300px); display: grid; gap: 14px; color: var(--ink-dim); font-size: clamp(13px, .95vw, 15px); }
.about__copy--l { left: calc(var(--pad) + 22px); }
.about__copy--r { right: calc(var(--pad) + 22px); text-align: right; }
.about__copy strong { color: var(--ink); font-weight: 500; }
.about__script { font-size: clamp(28px, 2.8vw, 48px); margin-bottom: 4px; color: #23304a; }

/* orbit ring: two layers (behind / in front of the moon); letters are placed by JS */
.ring { position: absolute; inset: 0; pointer-events: none; visibility: hidden; }
.ring--back { z-index: 4; }
.ring--front { z-index: 6; }
.ring__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring__line path { fill: none; stroke: rgba(226, 234, 252, .4); stroke-width: 1; }
.ring--back .ring__line path { stroke: rgba(226, 234, 252, .16); }
.rl {
  position: absolute; left: 0; top: 0; will-change: transform, opacity;
  font-family: var(--sans); font-weight: 400; text-transform: uppercase; line-height: 1;
  font-size: clamp(11px, .9vw, 14px); letter-spacing: .16em; color: #fff; white-space: pre;
  text-shadow: 0 0 10px rgba(169, 200, 255, .5);
}
.ring--back .rl { color: rgba(214, 224, 244, .75); text-shadow: none; }

/* 03 services: two copies of the list; the lit copy is masked by the spotlight (viewport coords) */
.svc__dim, .svc__lit { position: absolute; inset: 0; overflow: hidden; }
.svc__lit { --x: 50vw; --y: 50vh; --r: 0px;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 22%, rgba(0, 0, 0, .92) 36%, rgba(0, 0, 0, .55) 54%, rgba(0, 0, 0, .18) 74%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 22%, rgba(0, 0, 0, .92) 36%, rgba(0, 0, 0, .55) 54%, rgba(0, 0, 0, .18) 74%, transparent 100%);
}
.svc__list { position: absolute; left: 0; right: 0; top: 0; display: grid; justify-items: center; will-change: transform; }
.svc__row { font-weight: 200; text-transform: uppercase; font-size: 8.4vw; line-height: 1; letter-spacing: .02em; white-space: nowrap; transform-origin: 50% 50%; }
.svc__dim .svc__row { color: #151b26; }
.svc__lit .svc__row { color: var(--fg); text-shadow: var(--glow); }

/* the lunar surface (shared by the UNSEEN → Booking passage) */
.lunar { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the camera drifting a little with the mouse: every 3D layer moves together (so scenes that hand over to
   each other stay one), the type does not; a touch of overscan so no edge ever shows (main.js sets --lx, --ly) */
:root { --lx: 0; --ly: 0; }
.cam3d { translate: calc(var(--lx) * 1px) calc(var(--ly) * 1px); scale: 1.025; }
.cam3d--flat { translate: calc(var(--lx) * 1px) calc(var(--ly) * 1px); }
#shatter, #sea { opacity: 0; }                 /* the 3D chunks take over from the lunar canvas at the impact */

/* 04 flip */
.flip { display: grid; place-items: center; }
.flip__word { position: relative; z-index: 2; }
/* every letter's own shadows on the moon (built by shadows.js): a contact shadow at its foot and a cast
   shadow behind it, its silhouette laid back on the ground toward the horizon, slanting right. --land goes 0 → 1 as the ground arrives: soft and faint → sharp and connected. */
.flip__shadows { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; --land: 0; }
.ls { position: absolute; display: block; }
.ls--cast { font-family: var(--sans); font-weight: 200; text-transform: uppercase; line-height: .8; letter-spacing: .02em; text-align: center; white-space: nowrap;
  color: rgba(2, 4, 9, .92);                  /* transform (lay-back + slant) is set per letter by shadows.js */
  -webkit-mask-image: linear-gradient(to top, #000 6%, rgba(0, 0, 0, .4) 45%, transparent 88%);
          mask-image: linear-gradient(to top, #000 6%, rgba(0, 0, 0, .4) 45%, transparent 88%);
  filter: blur(calc(1.2px + (1 - var(--land)) * 16px)); opacity: calc(.8 * var(--land)); }
.ls--contact { border-radius: 50%; background: radial-gradient(closest-side, rgba(2, 4, 9, .9), rgba(2, 4, 9, .35) 60%, rgba(2, 4, 9, 0));
  filter: blur(calc(1.5px + (1 - var(--land)) * 12px)); opacity: calc(var(--land) * var(--land)); }
/* the canvas the word's dust is drawn on */
.flip__dust { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flip__word { display: flex; justify-content: center; font-weight: 200; text-transform: uppercase; font-size: 20vw; line-height: .8; letter-spacing: .02em; color: var(--fg); text-shadow: none;
  /* Glow the combined glyph silhouettes after their roll masks, so the blur
     never gets cropped into a visible rectangular strip at a slot edge. */
  filter: drop-shadow(0 0 .07em rgba(196, 214, 255, .25)); }
/* each column clips only vertically (for the roll), so the glow can spill sideways with no box edges */
.fl { position: relative; display: inline-block; height: .8em; clip-path: inset(0 -.5em -.06em); }
.fl--new { clip-path: inset(0 0 -.06em); }   /* the opening UN columns also clip sideways until they are fully open */
.fl__in { display: flex; flex-direction: column; }
.fl__in > span { height: .8em; display: block; text-align: center; }
.unseen-gl { position: absolute; pointer-events: none; visibility: hidden; background: transparent; }
.flip__word.has-unseen-gl > .fl { visibility: hidden; }
.flip__caps { position: absolute; left: 50%; bottom: 13vh; translate: -50% 0; width: min(560px, 86vw); height: 3em; text-align: center; color: var(--ink); }   /* sits on the mist */
.flip__cap { position: absolute; left: 0; right: 0; }
.flip__cap b { color: #fff; font-weight: 500; }

/* 05 booking */
/* three worlds: the portals and the worlds (worlds.js), one card at a time over its world */
.work__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.work__head { position: absolute; z-index: 2; left: calc(var(--pad) + 22px); top: calc(var(--pad) + 76px); display: grid; gap: 6px; color: #4a4e56; }   /* on the grey light */
.work__title { font-size: clamp(34px, 3.6vw, 60px); color: #23262c; }
.work__cards { position: absolute; z-index: 2; left: calc(var(--pad) + 22px); top: 50%; translate: 0 -50%; width: min(24vw, 340px); display: grid; }
.work__card { grid-area: 1 / 1; opacity: 0; display: grid; gap: 12px; pointer-events: none; padding: clamp(18px, 2vw, 28px); border-radius: 14px; background: rgba(9, 11, 18, .42); border: 1px solid rgba(246, 248, 252, .08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.work__meta { color: var(--dim); }
.work__meta b { color: var(--ice-hi); font-weight: 500; }
.work__name { width: min-content; font-weight: 200; font-size: clamp(30px, 3.1vw, 54px); line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--fg); text-shadow: var(--glow); }
.work__line { color: var(--dim); font-size: clamp(14px, 1.05vw, 17px); max-width: 34ch; }
.work__prog { display: flex; align-items: center; gap: 12px; color: var(--dim); }
.work__prog svg { width: 22px; height: 22px; overflow: visible; }
.work__prog circle { fill: none; stroke: var(--ice-hi); stroke-width: 1; }
.work__prog path { fill: var(--ice-hi); }
.booking { display: grid; place-content: center; }
/* the words as a 3D band round the moon: a canvas the band's shader draws into (band.js) */
.orb { position: absolute; inset: 0; z-index: 2; pointer-events: none; perspective: 1500px; perspective-origin: 50% 50%; }
.orb__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.booking__script { position: absolute; right: 10vw; bottom: 14vh; font-size: clamp(30px, 3.4vw, 60px); color: var(--ice-hi); }

/* 06 global */
.global__txt { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.global__name { position: absolute; z-index: 3; left: 0; right: 0; bottom: 17vh; text-align: center; font-family: var(--world); font-weight: 300; font-size: clamp(30px, 4.2vw, 70px); line-height: 1.05; letter-spacing: .06em; text-transform: uppercase; text-shadow: var(--glow); }
.global__lang { position: absolute; z-index: 3; left: 0; right: 0; bottom: 12.5vh; text-align: center; color: var(--dim); }

/* 07 footer: see "Footer" at the end of this file */

/* ───────── Mobile ───────── */
@media (max-width: 760px) {
  .hud { grid-template-columns: 1fr auto; padding: 14px 18px 0; }
  .hud__l { display: none; }
  .work__head { top: calc(var(--pad) + 60px); }
  .work__cards { top: auto; bottom: 9vh; translate: none; left: 18px; right: 18px; width: auto; }
  .work__name { font-size: 34px; }
  .hud__r { gap: 14px; }
  .hud__logo { width: 34px; }
  .rail { display: none; }
  .hero__kanji { top: 66px; }
  .moth-wrap { width: 96vw; margin-left: -48vw; top: 48%; }
  .loader { --lw: 96vw; --ly: 48%; }
  .loader__n { top: 48%; }
  .loader__phases { bottom: calc(var(--pad) + 34px); }
  .hero__word { left: 18px; bottom: calc(11vh + 3.4em * .2); font-size: 12.5vw; }
  .hero__caps { left: 18px; right: auto; bottom: 7vh; font-size: 12px; column-gap: 14px; }
  .hero__scroll { display: none; }
  .about__copy { width: auto; left: 18px; right: 18px; bottom: 7vh; text-align: left; }
  .about__copy--l { bottom: auto; top: 12vh; color: var(--dim); }
  .about__copy--l .about__script { color: var(--ice-hi); }
  .about__copy--r p:last-child { display: none; }
  .rl { font-size: 10px; }
  .footer { padding: 0 18px 40px; gap: 8px; }
  .footer__mail { font-size: 21px; }
  .footer__cols { grid-template-columns: repeat(2, auto); gap: 6px 26px; font-size: 10px; letter-spacing: .12em; }
  .footer__cols > div { gap: 0; }
  .svc__row { font-size: 10vw; }
  .flip__word { font-size: 22vw; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll i { animation: none; }
}

/* About copy respects the moon's foreground silhouette; its scale and orbit remain authored. */
@media (min-width: 761px) {
  .about__copy { -webkit-mask-image: radial-gradient(circle var(--moon-r, 0px) at var(--moon-x, -9999px) var(--moon-y, -9999px), transparent calc(100% - 10px), #000 calc(100% + 14px)); mask-image: radial-gradient(circle var(--moon-r, 0px) at var(--moon-x, -9999px) var(--moon-y, -9999px), transparent calc(100% - 10px), #000 calc(100% + 14px)); }
}

/* Existing fonts, optically spaced headings, and balanced small text. */
.hero__word, .work__name, .footer__mail { font-kerning: normal; }
.work__name { text-wrap: balance; }
.work__line, .about__copy p { text-wrap: pretty; }
.work__meta { line-height: 1.65; }

/* Feedback on existing links; no new control or pointer behaviour. */
.hud nav a { position: relative; }
.hud nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.45em; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.hud nav a:hover::after, .hud nav a:focus-visible::after { transform: scaleX(1); }
.hud nav a:active { opacity: .7; }
.hud nav a[aria-current="location"]::after { transform: scaleX(1); }
.footer__cols a { width: fit-content; background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat; transition: color .25s ease, background-size .3s ease; }
.footer__cols a:hover, .footer__cols a:focus-visible { background-size: 100% 1px; }
.footer__cols a:active, .footer__mail:active { opacity: .75; }

/* Point 11: keep the existing mobile scenes composed around their focal object. */
@media (max-width: 760px) {
  .hud { padding-top: max(14px, env(safe-area-inset-top)); }
  .hud__r a { display: inline-flex; align-items: center; min-height: 32px; }
  .work__cards { bottom: max(24px, calc(env(safe-area-inset-bottom) + 3.5svh)); }
  .work__card { padding: 16px; gap: 9px; }
  .work__name { font-size: clamp(26px, 8.2vw, 34px); }
  .work__line { max-width: 38ch; }
  .footer { padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 20px)); }
  .hero__caps { column-gap: clamp(9px, 3.6vw, 14px); }
}

/* Supporting type: clearer roles within the existing interface and card bounds. */
.hud nav { font-size: clamp(11.5px, .78vw, 13px); font-weight: 500; letter-spacing: .11em; line-height: 1.4; }
.hud nav a { opacity: .94; }
.hud nav a:hover, .hud nav a:focus-visible, .hud nav a[aria-current="location"] { opacity: 1; }
.hud nav a:active { opacity: .7; }
.now { font-size: clamp(11px, .75vw, 12px); font-weight: 500; letter-spacing: .1em; }
#nowNum { opacity: .65; font-variant-numeric: tabular-nums; margin-right: .35em; }
.work__meta { display: grid; gap: 5px; font-size: clamp(11px, .75vw, 12px); letter-spacing: .075em; line-height: 1.5; }
.work__meta-top { display: flex; align-items: baseline; gap: .6em; }
.work__index { flex: 0 0 auto; color: rgba(246, 248, 252, .65); font-weight: 500; font-variant-numeric: tabular-nums; }
.work__meta-separator { color: rgba(246, 248, 252, .4); }
.work__meta b { min-width: 0; font-weight: 550; color: var(--ice-hi); }
.work__stage { color: rgba(246, 248, 252, .82); font-size: 12px; font-weight: 400; letter-spacing: .015em; text-transform: none; }
.work__line { color: rgba(246, 248, 252, .82); font-weight: 400; line-height: 1.55; }
.work__prog { gap: 9px; font-size: clamp(11px, .75vw, 12px); font-weight: 400; letter-spacing: .065em; line-height: 1.5; color: rgba(246, 248, 252, .78); }
.work__percent { color: var(--fg); font-weight: 550; font-variant-numeric: tabular-nums; }
.work__eta { color: rgba(246, 248, 252, .7); }
.footer__cols { font-size: clamp(11.5px, .82vw, 13px); letter-spacing: .075em; line-height: 1.7; }
.footer__h { font-size: 11px; font-weight: 600; letter-spacing: .14em; margin-bottom: 4px; }
@media (max-width: 760px) {
  .hud nav { font-size: 11.5px; letter-spacing: .085em; }
  .work__meta, .work__prog { font-size: 11px; }
  .work__stage { font-size: 12px; }
  .footer__cols { font-size: 11.5px; letter-spacing: .055em; line-height: 1.65; }
  .footer__h { font-size: 11px; letter-spacing: .12em; }
}

/* Keep navigation legible over every sky/water colour, without blending text away. */
.hud, .now { mix-blend-mode: normal; color: #f6f8fc; }

.hud__l { justify-self: start; }
.hud__r { justify-self: end; }

.now { background: rgba(7, 10, 16, .84); padding: 5px 8px; margin: -5px -8px; border-radius: 4px; }
#nowNum { opacity: 1; }
.work__card { background: rgba(9, 11, 18, .76); }
.work__stage, .work__line { color: #eef3fb; }
.work__meta, .work__prog, .work__index, .work__eta { color: #dce5f2; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: 12px; transform: translateY(-180%); padding: 10px 16px; color: #101722; background: #eef4ff; border-radius: 4px; font-weight: 500; }
.skip-link:focus { transform: none; }
.loader__fallback { position: absolute; left: 50%; bottom: 12vh; translate: -50% 0; padding: 12px 18px; border: 1px solid #8b9cb5; color: #eef3fb; font-size: 14px; text-align: center; }
.graphics-still { position: fixed; z-index: 80; inset: 0; display: grid; align-content: center; justify-items: center; gap: 12px; background: #101722; color: #eef3fb; text-align: center; padding: 20px; }
.graphics-still img { width: min(48vh, 72vw); height: auto; }
.graphics-still p { font-family: var(--script); font-style: italic; font-size: clamp(28px, 5vw, 48px); }
.graphics-still span { font-size: 14px; color: #c8d5e8; }
.graphics-still a { padding: 9px 0; text-decoration: underline; text-underline-offset: 5px; }

/* Tablet: keep the ring between the two copy columns. Desktop composition is retained. */
@media (min-width: 1101px) and (max-width: 1400px) {
  .about__copy { width: 18vw; }
}
@media (min-width: 761px) and (max-width: 1100px) and (min-height: 501px) {
  .about__copy { width: 21vw; font-size: 13px; gap: 10px; bottom: 10vh; }
  .about__script { font-size: 30px; }
}

/* Short landscape viewports get a composed two-sided layout rather than an overlay. */
@media (max-width: 1100px) and (max-height: 500px) and (orientation: landscape) {
  :root { --pad: 16px; }
  .hud { padding: max(10px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); }
  .hud__logo { width: 32px; }
  .hud nav { font-size: 11px; gap: 16px; }
  .moth-wrap { width: min(62vh, 40vw); margin-left: calc(min(62vh, 40vw) / -2); top: 46%; }
  .loader { --lw: min(62vh, 40vw); --ly: 46%; }
  .hero__word { left: 18px; bottom: 24px; font-size: clamp(34px, 6.3vw, 62px); }
  .hero__caps { left: auto; right: 18px; bottom: 25px; font-size: 11px; column-gap: 12px; }
  .hero__kanji { top: 61px; font-size: 13px; gap: 3px; }
  .hero__scroll { display: none; }
  .about__copy { width: 27vw; left: 18px; right: auto; top: auto; bottom: 14vh; text-align: left; font-size: 12px; line-height: 1.45; gap: 8px; }
  .about__copy--r { left: auto; right: 18px; text-align: right; }
  .about__copy--l { color: var(--ink-dim); }
  .about__copy--l .about__script { color: #23304a; }
  .about__script { font-size: 26px; }
  .about__copy--r p:last-child { display: none; }
  .rl { font-size: 10px; }
  .work__cards { top: 78px; bottom: auto; left: 18px; right: auto; translate: none; width: min(39vw, 340px); }
  .work__card { padding: 13px; gap: 6px; }
  .work__name { font-size: 28px; }
  .work__line { font-size: 12px; line-height: 1.4; }
  .work__meta, .work__stage, .work__prog { font-size: 11px; }
  .work__head { top: 66px; }
  .work__title { font-size: 28px; }
  .footer { max-width: 35vw; padding: 0 18px max(30px, env(safe-area-inset-bottom)); gap: 7px; }
  .footer__mail { font-size: clamp(15px, 2.3vw, 20px); white-space: nowrap; }
  .footer__cols { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; font-size: 10px; line-height: 1.55; letter-spacing: .025em; }
  .footer__h { font-size: 10px; margin-bottom: 2px; }
  .footer__cols > div { gap: 0; }
  .sec__scroll { bottom: 16px; font-size: 18px; }
}

/* Project titles are drawn in the scene behind the hand. Supporting details
   remain plain type in the page corners, with no padded card surface. */
.work__cards { inset: 0; width: auto; translate: none; pointer-events: none; }
.work__card { position: relative; width: 100%; height: 100%; display: block; padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.work__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.work__meta { position: absolute; left: calc(var(--pad) + 22px); top: max(100px, 14vh); gap: 5px; }
.work__meta, .work__meta b, .work__index, .work__stage, .work__meta-separator, .work__line, .work__prog, .work__percent, .work__eta { color: #202a37; }
.work__stage { font-size: 13px; }
.work__line { position: absolute; right: calc(var(--pad) + 22px); bottom: 7.5vh; width: min(24vw, 360px); max-width: none; font-size: clamp(14px, 1vw, 17px); }
.work__prog { position: absolute; left: calc(var(--pad) + 22px); bottom: 10vh; }
.work__prog circle { stroke: currentColor; }
.work__prog path { fill: currentColor; }
@media (max-width: 760px) and (min-height: 501px) {
  .work__meta { left: 18px; top: 14vh; }
  .work__line { left: auto; right: 18px; bottom: 12vh; width: 27vw; max-width: none; font-size: clamp(11px, 3vw, 12px); line-height: 1.45; }
  .work__prog { left: 18px; bottom: 7vh; }
}
@media (max-width: 1100px) and (max-height: 500px) {
  .work__meta { left: 18px; top: 76px; font-size: 10px; }
  .work__stage { font-size: 11px; }
  .work__line { right: 18px; top: 76px; bottom: auto; width: 26vw; font-size: 12px; }
  .work__prog { left: 18px; bottom: 10vh; font-size: 10px; }
  .work__prog svg { width: 18px; height: 18px; }
}

/* ───────── Phone menu: every chapter, full screen, links low within thumb reach ───────── */
.menu-btn, .menu { display: none; }
@media (max-width: 760px) {
  .hud__r { display: none; }
  .menu-btn { position: relative; display: inline-grid; justify-self: end; align-items: center; grid-template-columns: auto 18px; column-gap: 10px; min-height: 40px; padding: 0; border: 0; background: none; color: #f6f8fc; font: inherit; font-size: 11.5px; font-weight: 500; letter-spacing: .085em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .menu-btn > span { grid-area: 1 / 1; text-align: right; transition: opacity .3s var(--ease), transform .4s var(--ease); }
  .menu-btn__close { opacity: 0; transform: translateY(6px); }
  /* two hairlines that turn into a cross */
  .menu-btn i { grid-area: 1 / 2; position: relative; height: 9px; }
  .menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .45s var(--ease); }
  .menu-btn i::before { top: 0; } .menu-btn i::after { bottom: 0; }
  .menu-btn[aria-expanded="true"] .menu-btn__open { opacity: 0; transform: translateY(-6px); }
  .menu-btn[aria-expanded="true"] .menu-btn__close { opacity: 1; transform: none; }
  .menu-btn[aria-expanded="true"] i::before { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i::after { transform: translateY(-4px) rotate(-45deg); }

  .menu { position: fixed; inset: 0; z-index: 29; display: flex; flex-direction: column; justify-content: flex-end; gap: 34px;
    padding: 0 max(18px, env(safe-area-inset-right)) max(36px, calc(env(safe-area-inset-bottom) + 26px)) max(18px, env(safe-area-inset-left));
    background: radial-gradient(120% 70% at 50% 0%, rgba(40, 52, 74, .55), transparent 70%), rgba(8, 11, 17, .985);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s; }
  .menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
  .menu__nav { display: grid; gap: 2px; }
  .menu__nav a, .menu__mail { opacity: 0; transform: translateY(22px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .menu.is-open .menu__nav a, .menu.is-open .menu__mail { opacity: 1; transform: none; transition: opacity .6s var(--ease) calc(.1s + var(--i) * .055s), transform .8s var(--ease) calc(.1s + var(--i) * .055s); }
  .menu__nav a { display: flex; align-items: flex-start; gap: 14px; padding: 4px 0; font-weight: 200; font-size: clamp(36px, 11vw, 52px); line-height: 1.04; letter-spacing: .02em; text-transform: uppercase; color: var(--fg); -webkit-tap-highlight-color: transparent; }
  .menu__nav a:active { opacity: .6; }
  .menu__n { padding-top: .55em; font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--dim); font-variant-numeric: tabular-nums; }
  .menu__nav a[aria-current="location"] { color: var(--ice-hi); text-shadow: var(--glow); }
  .menu__nav a[aria-current="location"] .menu__n { color: var(--ice-hi); }
  .menu__mail { align-self: flex-start; padding-top: 18px; border-top: 1px solid var(--faint); width: 100%; font-family: var(--script); font-style: italic; font-size: 22px; color: var(--ice-hi); }
  body.menu-open .now, body.menu-open .progress { opacity: 0; transition: opacity .3s; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .menu, .menu.is-open, .menu__nav a, .menu__mail, .menu.is-open .menu__nav a, .menu.is-open .menu__mail { transform: none; transition: none; }
}

/* the reveal clips one box: as a broken inline span, slivers of the italic leaked before it began */
.booking__script > span, .about__script > span { display: inline-block; }

/* ───────── Footer: a closing line over the sand, read later by the light in the hand ─────────
   Large light capitals with the script line, the address, a hairline, then quiet columns. Never bold.
   Colours are tokens: sand-grey ink on the beach, warm hand-light at night (.is-night). */
.footer { --f-ink: #2e2c28; --f-text: #4a4741; --f-dim: rgba(46, 44, 40, .58); --f-rule: rgba(46, 44, 40, .26); --f-glow: none;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 0; z-index: 3;
  padding: 0 calc(var(--pad) + 22px) calc(var(--pad) + 46px); color: var(--f-text); }
.footer.is-night { --f-ink: #f3e7d6; --f-text: #d4c9ba; --f-dim: rgba(239, 227, 210, .6); --f-rule: rgba(243, 231, 214, .24); --f-glow: 0 0 22px rgba(255, 190, 140, .28); }
.footer, .footer * { transition: color .6s ease, border-color .6s ease, background-color .6s ease, text-shadow .6s ease; }
.footer__label { display: flex; align-items: center; gap: 10px; margin: 0 0 clamp(14px, 2vh, 22px); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--f-dim); }
.footer__label i { width: 5px; height: 5px; border-radius: 50%; background: var(--f-ink); box-shadow: var(--f-glow); }
.footer__mail { display: inline-flex; align-items: baseline; gap: .45em; margin-top: clamp(18px, 2.6vh, 30px); padding-bottom: 5px; font-family: var(--sans); font-style: normal; font-weight: 300; font-size: clamp(17px, 1.3vw, 23px); letter-spacing: .01em; line-height: 1.2;
  color: var(--f-ink); border-bottom: 1px solid var(--f-rule); text-shadow: var(--f-glow); }
.footer__mail span { display: inline-block; font-size: .8em; transition: transform .35s var(--ease); }
.footer__mail:hover, .footer__mail:focus-visible { border-color: currentColor; }
.footer__mail:hover span, .footer__mail:focus-visible span { transform: translate(2px, -2px); }
.footer__rule { display: block; width: min(600px, 44vw); height: 1px; margin: clamp(22px, 3.2vh, 36px) 0 clamp(12px, 1.6vh, 16px); background: var(--f-rule); transform-origin: left; }
.footer__cols { width: min(600px, 44vw); display: grid; grid-template-columns: auto auto 1fr; gap: 0 clamp(26px, 3vw, 56px);
  font-size: 11.5px; font-weight: 400; letter-spacing: .08em; line-height: 1.75; text-transform: uppercase; color: var(--f-text); }
.footer__cols > div { display: grid; gap: 0; align-content: start; }
.footer__h { margin: 0 0 4px; font-size: 10.5px; font-weight: 400; letter-spacing: .14em; color: var(--f-dim); }
.footer__h::before { content: none; }
.footer__cols a:hover, .footer__cols a:focus-visible { color: var(--f-ink); }
.footer__end { justify-self: end; align-content: end !important; text-align: right; color: var(--f-dim); }
.footer__end a { justify-self: end; }
@media (max-width: 760px) {
  .footer { padding: 0 18px max(58px, calc(env(safe-area-inset-bottom) + 46px)); }
  .footer__label { margin-bottom: 12px; font-size: 10.5px; }
  .footer__mail { margin-top: 16px; font-size: 17px; }
  .footer__rule, .footer__cols { width: 100%; }
  .footer__rule { margin: 20px 0 12px; }
  /* the services are a chapter of their own: on a phone the columns are the studio links and the small print */
  .footer__cols { grid-template-columns: auto 1fr; gap: 0 28px; font-size: 11px; letter-spacing: .06em; line-height: 1.7; }
  .footer__cols > div:nth-child(2) { display: none; }
}
@media (max-width: 1100px) and (max-height: 500px) {
  .footer { max-width: 44vw; padding: 0 18px max(44px, calc(env(safe-area-inset-bottom) + 36px)); }
  .footer__label { display: none; }
  .footer__mail { margin-top: 10px; font-size: 14px; white-space: nowrap; }
  .footer__rule, .footer__cols { width: 100%; }
  .footer__rule { margin: 12px 0 8px; }
  .footer__cols { grid-template-columns: auto auto; gap: 0 18px; font-size: 10px; line-height: 1.5; }
  .footer__h { font-size: 9.5px; margin-bottom: 2px; }
  .footer__end { display: none !important; }
}

/* ───────── Project view (project.js): dive into the orb's world ───────── */
.swirl { position: fixed; inset: 0; z-index: 44; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; visibility: hidden; }
.work__enter { position: absolute; left: 0; top: 0; z-index: 3; width: 0; height: 0; padding: 0; border: 0; border-radius: 50%; background: none; pointer-events: none; }
.work__enter.is-on { pointer-events: auto; }
.work__enter:focus-visible { outline: 1px solid var(--ice-hi); outline-offset: 8px; }
.work__hint { display: flex; align-items: center; gap: 8px; padding-top: 4px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ice-hi); }

.proj { --p-ink: #1d2027; --p-dim: rgba(29, 32, 39, .56); --p-rule: rgba(29, 32, 39, .16);
  position: fixed; inset: 0; z-index: 46; display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); grid-template-rows: max-content;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: #d8d8d4; color: var(--p-ink); }
.proj__light { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: clamp(96px, 14vh, 150px) clamp(24px, 5vw, 88px) clamp(28px, 5vh, 56px); }
.proj__kicker { display: flex; gap: 18px; margin: 0 0 clamp(22px, 4vh, 46px); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--p-dim); }
.proj__count { color: var(--p-ink); font-variant-numeric: tabular-nums; }
.proj__title { margin: 0; font-weight: 200; font-size: clamp(54px, 7vw, 128px); line-height: .94; letter-spacing: -.01em; }
.proj__line { display: block; overflow: hidden; padding: 0 .1em .08em 0; }
.proj__line > span { display: inline-block; }
.proj__line--script { margin-top: .04em; font-family: var(--script); font-style: italic; font-weight: 400; font-size: .56em; line-height: 1.12; letter-spacing: 0; color: #3a3f4a; }
.proj__text { max-width: 36ch; margin: clamp(22px, 3.6vh, 40px) 0 0; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.6; color: rgba(29, 32, 39, .8); text-wrap: pretty; }
.proj__facts { width: min(440px, 100%); margin: clamp(26px, 4.4vh, 46px) 0 0; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.proj__facts > div { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--p-rule); transition: padding .45s var(--ease); }
.proj__facts > div:last-child { border-bottom: 1px solid var(--p-rule); }
.proj__facts > div::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--p-ink); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.proj__facts > div:hover { padding-left: 10px; }
.proj__facts > div:hover::after { transform: scaleX(1); }
.proj__facts dt { color: var(--p-dim); }
.proj__facts dd { margin: 0; display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
/* how it plays: four short hooks under the facts, two by two */
.proj__play { width: min(620px, 100%); margin: clamp(34px, 5.5vh, 56px) 0 clamp(40px, 8vh, 80px); }
.proj__play-eye { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--p-dim); }
.proj__play-eye::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.proj__play-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; }
.proj__play-item { position: relative; display: grid; gap: 7px; align-content: start; padding-top: 14px; border-top: 1px solid var(--p-rule); }
.proj__play-item::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--p-ink); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.proj__play-item:hover::before { transform: scaleX(1); }
.proj__play-item h3 { margin: 0; font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--p-ink); }
.proj__play-item p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(29, 32, 39, .74); text-wrap: pretty; }
@media (max-width: 760px) { .proj__play-grid { grid-template-columns: 1fr; gap: 18px; } }
.proj__bar { position: relative; display: inline-block; width: 92px; height: 1px; background: var(--p-rule); }
.proj__bar i { position: absolute; inset: 0; background: var(--p-ink); transform-origin: left; }
.proj__prev:hover > span[aria-hidden] { transform: translateX(-6px); }
.proj__next:hover > span[aria-hidden] { transform: translateX(6px); }

.proj__dark { position: relative; display: grid; place-items: center; min-height: 100%; overflow: hidden; background: #0b0f16; color: var(--fg); }
.proj__num { position: absolute; right: clamp(16px, 3vw, 48px); top: clamp(84px, 11vh, 120px); font-weight: 200; font-size: clamp(120px, 16vw, 290px); line-height: .8; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(246, 248, 252, .26); font-variant-numeric: tabular-nums; transition: -webkit-text-stroke-color .6s; }
.proj__moon { position: relative; width: min(46%, 290px); aspect-ratio: 1; display: grid; place-items: center; }
.proj__phase { width: 100%; transition: transform 1s var(--ease), filter .8s; filter: drop-shadow(0 0 22px rgba(169, 200, 255, .22)); }
.proj__phase svg { display: block; width: 100%; height: auto; overflow: visible; }
.proj__phase circle { fill: none; stroke: var(--ice-hi); stroke-width: .22; }
.proj__phase path { fill: var(--ice-hi); }
.proj__dark:hover .proj__phase { transform: rotate(14deg) scale(1.04); filter: drop-shadow(0 0 34px rgba(169, 200, 255, .45)); }
.proj__dark:hover .proj__num { -webkit-text-stroke-color: rgba(246, 248, 252, .5); }
.proj__moon-label { position: absolute; left: 50%; bottom: -40px; translate: -50% 0; white-space: nowrap; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.proj__dark-note { position: absolute; left: clamp(20px, 3vw, 48px); bottom: clamp(24px, 4.5vh, 50px); margin: 0; font-size: 11px; letter-spacing: .12em; line-height: 1.75; text-transform: uppercase; color: var(--dim); }
/* cover art: fills the dark half edge to edge; the number, moon and note give way to it */
.proj__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.proj__dark.has-cover .proj__num, .proj__dark.has-cover .proj__moon, .proj__dark.has-cover .proj__dark-note { display: none; }
/* the poster has no hard edge: its own colours run out past it onto the paper, toward the text (upward on
   phones). Behind it, one blurred layer holds an aligned copy and a mirror of it continuing past the edge, so the
   colours carry on without a seam and fade into the paper; the poster itself only loses focus into that over its
   first quarter, so no line shows where sharp meets soft. */
.proj__light { z-index: 1; }
.proj__dark.has-cover { overflow-x: visible; overflow-y: clip; background: #d8d8d4; }   /* (the bleed spills sideways only) */
/* the wipe in and out: one soft edge sweeping right to left. --e is where it is, in panel widths from the panel's
   left (1: shut, -.75: open, past the bleed). The poster and the bleed each turn it into their own mask, so they
   arrive and leave together; --bo / --bw place the bleed's box in panel widths. */
.proj__dark { --e: -.75; --soft: .14; }
.proj__dark:not(.has-cover) { -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--e) * 100%), #000 calc((var(--e) + var(--soft)) * 100%)); mask-image: linear-gradient(90deg, transparent calc(var(--e) * 100%), #000 calc((var(--e) + var(--soft)) * 100%)); }
.proj__bleed { --bo: .6; --bw: 1.6;
  --m: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .12) 10%, rgba(0, 0, 0, .42) 20%, rgba(0, 0, 0, .78) 29%, #000 36%);
  --w: linear-gradient(90deg, transparent calc((var(--e) + var(--bo)) / var(--bw) * 100%), #000 calc((var(--e) + var(--soft) + var(--bo)) / var(--bw) * 100%));
  display: none; position: absolute; inset: 0 0 0 -60%; overflow: hidden; pointer-events: none; filter: blur(30px) saturate(1.12);
  transform: scaleY(1.14);   /* the blur fades out at its own edges: push the top and bottom ones past the panel, which clips them */
  -webkit-mask-image: var(--w), var(--m); mask-image: var(--w), var(--m); -webkit-mask-composite: source-in; mask-composite: intersect; }
.proj__bleed i { position: absolute; top: 0; right: 0; width: 62.5%; height: 100%; background: center / cover no-repeat; }
.proj__bleed i + i { right: 62.5%; transform: scaleX(-1); }
.proj__dark.has-cover .proj__bleed { display: block; }
.proj__dark.has-cover .proj__cover { --fade: 90deg;
  --w: linear-gradient(90deg, transparent calc(var(--e) * 100%), #000 calc((var(--e) + var(--soft)) * 100%));
  --f: linear-gradient(var(--fade), transparent 0, rgba(0, 0, 0, .1) 5%, rgba(0, 0, 0, .32) 11%, rgba(0, 0, 0, .62) 17%, rgba(0, 0, 0, .86) 23%, #000 30%);
  -webkit-mask-image: var(--w), var(--f); mask-image: var(--w), var(--f); -webkit-mask-composite: source-in; mask-composite: intersect; }
@media (max-width: 760px) {
  .proj__dark.has-cover { overflow-x: clip; overflow-y: visible; }
  .proj__dark.has-cover .proj__cover { --fade: 180deg; }
  .proj__bleed { --bo: .09; --bw: 1.18; transform: scaleX(1.18); --m: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .15) 8%, rgba(0, 0, 0, .5) 16%, rgba(0, 0, 0, .85) 23%, #000 28.6%); inset: -40% 0 0 0; }
  .proj__bleed i { top: auto; bottom: 0; width: 100%; height: 71.43%; }
  .proj__bleed i + i { right: 0; bottom: 71.43%; transform: scaleY(-1); }
}

.proj__close { position: fixed; z-index: 47; top: clamp(18px, 3.2vh, 34px); right: clamp(18px, 3vw, 42px); width: 52px; height: 52px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(246, 248, 252, .38); border-radius: 50%; background: rgba(11, 15, 22, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; transition: background-color .45s var(--ease), border-color .45s var(--ease); }
.proj__close i { position: relative; width: 18px; height: 18px; transition: transform .6s var(--ease); }
.proj__close i::before, .proj__close i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #f6f8fc; transition: background-color .45s; }
.proj__close i::before { transform: rotate(45deg); } .proj__close i::after { transform: rotate(-45deg); }
.proj__close:hover, .proj__close:focus-visible { background: #f6f8fc; border-color: #f6f8fc; }
.proj__close:hover i, .proj__close:focus-visible i { transform: rotate(90deg); }
.proj__close:hover i::before, .proj__close:hover i::after, .proj__close:focus-visible i::before, .proj__close:focus-visible i::after { background: #0b0f16; }

@media (max-width: 760px) {
  .proj { grid-template-columns: 1fr; grid-template-rows: max-content max-content; }   /* stacked, scrolling: never squeezed to the screen */
  .proj__light { min-height: 0; padding: max(92px, calc(env(safe-area-inset-top) + 76px)) 20px 34px; }
  .proj__title { font-size: clamp(44px, 13vw, 66px); }
  .proj__dark { min-height: 72svh; padding-bottom: max(40px, env(safe-area-inset-bottom)); }
  .proj__num { top: 22px; right: 18px; font-size: 40vw; }
  .proj__moon { width: 52vw; }
  .proj__close { top: max(14px, env(safe-area-inset-top)); right: 14px; width: 46px; height: 46px; background: rgba(11, 15, 22, .55); }
}
@media (max-width: 1100px) and (max-height: 500px) {
  .proj__light { padding-top: 70px; }
  .proj__title { font-size: clamp(36px, 6vw, 52px); }
}
/* the hint sits with the card's corner type, just above the progress line */
.work__hint { position: absolute; left: calc(var(--pad) + 22px); bottom: calc(10vh + 36px); padding: 0; color: #202a37; }
@media (max-width: 760px) and (min-height: 501px) { .work__hint { left: 18px; top: calc(14vh + 58px); bottom: auto; } }   /* phones: under the meta, clear of the hand */
@media (max-width: 1100px) and (max-height: 500px) { .work__hint { left: 18px; bottom: calc(10vh + 28px); font-size: 10px; } }

/* ───────── Project summary extras ───────── */
.proj__brief { max-width: 46ch; margin: 14px 0 0; font-size: clamp(14px, .98vw, 16px); line-height: 1.65; color: var(--p-dim); text-wrap: pretty; }
/* the dark panel holds still if the summary scrolls */
@media (min-width: 761px) { .proj__dark { position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; min-height: 0; } }



/* longer cursor labels (the hero's Click to enable sound) widen the bubble into a pill */
.cursor.is-label.is-wide { width: auto; height: 46px; margin: 0; padding: 0 22px; border-radius: 23px; translate: -50% -50%; }

/* the hero's sound pill: dark glass, a small equaliser that breathes while the sound plays */
.cursor__eq { display: none; }
.cursor.is-label.is-sound { width: var(--pill, 180px); height: 34px; padding: 0 16px 0 14px; border-radius: 17px;
  display: flex; align-items: center; justify-content: flex-start; gap: 9px; overflow: hidden; background: rgba(9, 12, 18, .58); mix-blend-mode: normal;
  box-shadow: inset 0 0 0 1px rgba(246, 248, 252, .26), 0 10px 30px rgba(4, 6, 10, .28);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.cursor.is-sound .cursor__eq { display: inline-flex; flex: none; align-items: center; gap: 2px; height: 10px; }
.cursor__eq b { width: 2px; height: 100%; border-radius: 1px; background: #f6f8fc; transform: scaleY(.22); transition: transform .4s var(--ease); }
.cursor.is-playing .cursor__eq b { animation: cursor-eq 1.2s ease-in-out infinite; }
.cursor.is-playing .cursor__eq b:nth-child(2) { animation-duration: 1.5s; animation-delay: -.4s; }
.cursor.is-playing .cursor__eq b:nth-child(3) { animation-duration: 1.05s; animation-delay: -.8s; }
.cursor.is-playing .cursor__eq b:nth-child(4) { animation-duration: 1.35s; animation-delay: -.2s; }
@keyframes cursor-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.cursor.is-sound span { flex: none; font-family: var(--sans); font-style: normal; font-size: 10px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: #f6f8fc; padding: 0; }
@media (prefers-reduced-motion: reduce) { .cursor.is-playing .cursor__eq b { animation: none; transform: scaleY(.7); } }

/* one centring for every cursor state (no per-state margins), so size, shape and colour all morph:
   the dot stretches into the sound pill, the pill shrinks into the link ring, and back */
.cursor, .cursor.is-label, .cursor.is-link:not(.is-label), .cursor.is-label.is-wide, .cursor.is-label.is-sound { margin: 0; translate: -50% -50%; }
.cursor { transition: width .5s var(--ease), height .5s var(--ease), border-radius .5s var(--ease), padding .5s var(--ease), background-color .35s, box-shadow .45s var(--ease); }
.cursor span { transition: opacity .25s .12s; }

/* ───────── Scrollbars: a thin pill of moonlight on the night sky; ink on the project page's paper ───────── */
/* (Chrome ignores the ::-webkit-scrollbar styling below once scrollbar-color is set, so that is Firefox only) */
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: thin; scrollbar-color: #9fb0cc #0b0f16; } .proj { scrollbar-color: rgba(29, 32, 39, .45) #d8d8d4; } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0f16; }
::-webkit-scrollbar-thumb { border: 3px solid #0b0f16; border-radius: 10px; background: linear-gradient(180deg, #eef2fa, #a9c8ff 55%, #7d8eab); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
::-webkit-scrollbar-thumb:hover { border-width: 2px; background: linear-gradient(180deg, #fff, #c4d8ff 55%, #9fb0cc); }
::-webkit-scrollbar-button, ::-webkit-scrollbar-corner { display: none; background: transparent; }
.proj::-webkit-scrollbar-track { background: #d8d8d4; }
.proj::-webkit-scrollbar-thumb { border-color: #d8d8d4; background: rgba(29, 32, 39, .42); box-shadow: none; }
.proj::-webkit-scrollbar-thumb:hover { background: rgba(29, 32, 39, .7); }
