/* Cosha Connect — a threshold, not a showcase.
   An indigo night with real hue, cream as ink, tangerine as the studio's own light,
   and the logo deck's six service colours, used quietly: each appears only where its world is present.
   Colour is light (a wash, a glow, a folded symbol), never a flat fill. One easing curve everywhere. */
/* Fonts are served from here, not from a third party */
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/BodoniModa-italic-latin-ext-c2cfb9.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/BodoniModa-italic-latin-07ad25.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/BodoniModa-normal-latin-ext-61936d.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/BodoniModa-normal-latin-855ea6.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/BodoniModa-normal-latin-ext-61936d.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/BodoniModa-normal-latin-855ea6.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/Inter-normal-latin-ext-749a30.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/Inter-normal-latin-1ab1ad.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/Inter-normal-latin-ext-749a30.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/Inter-normal-latin-1ab1ad.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --night: #13112E;       /* the ground: the logo's Dark Indigo taken down to night, keeping its hue */
  --night-2: #1C1A45;
  --indigo: #211F54;      /* brand Dark Indigo: the night behind the door */
  --indigo-2: #15133A;
  --bone: #F2E9DF;        /* Limewash: ink, never the page. 15:1 on Kiln */
  --bone-2: #B8B0C4;      /* secondary text, cool-leaning to sit on the indigo */
  --light: #FC7632;       /* logo tangerine: the warm light */
  --violet: #766CFF;      /* logo Baby Purple: the cool light */
  /* The service colours from the logo deck: each world's own light. They only appear where that world is present. */
  --c-ground: #5FB3E4;
  --c-room: #F2733A;
  --c-object: #F0BE3C;
  --c-name: #F29AA3;
  --c-moment: #3DB866;
  --c-signal: #7A6BE0;
  --brass: #B8935C;
  --line: rgba(242, 233, 223, .12);
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: max(16px, env(safe-area-inset-left, 0px), 4vw);
  --gut-r: max(16px, env(safe-area-inset-right, 0px), 4vw);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; color: var(--bone);
  /* The designer's pattern, redrawn as hairlines and set tone-on-tone into the ground, so it reads like an engraving, not a print. */
  background: var(--night);
  font: 400 17px/1.65 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: url(assets/brand/pattern-line.svg?v=5) 0 0 / 960px auto repeat;
  -webkit-mask: radial-gradient(ellipse 62% 70% at 88% 34%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 80%); mask: radial-gradient(ellipse 62% 70% at 88% 34%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 80%); }
body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 120% 90% at 50% 45%, rgba(6, 5, 18, 0) 40%, rgba(6, 5, 18, .62) 100%); }
img, video { display: block; max-width: 100%; height: auto; }
p { text-wrap: pretty; }
h1, h2, h3, p, figure, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--light); color: var(--night); }
:focus-visible { outline: 1.5px solid var(--light); outline-offset: 5px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--bone); color: var(--night); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 16px; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.label { font: 400 13px/1.4 var(--text); letter-spacing: .02em; color: var(--bone-2); }
h2 { font: 400 clamp(2.3rem, 5.2vw, 4.75rem)/1.02 var(--display); letter-spacing: -.018em; text-wrap: balance; }
/* Optical alignment: pull large Bodoni caps back over their side bearing so the ink, not the box, meets the gutter */
h2:not(.label), .hl, .pv-intro h1 { margin-left: -.03em; }

/* The Cosha mark, drawn from the brand logo as a mask so it can take any colour */
.mark {
  display: inline-block; width: 52px; aspect-ratio: 400 / 147; background: currentColor;
  -webkit-mask: url(assets/brand/mark.png) center / contain no-repeat; mask: url(assets/brand/mark.png) center / contain no-repeat;
}
.mark--light { color: var(--light); }

/* ---------- The light you carry: follows the cursor down the page; the engraving catches it ---------- */
.carry {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease);
  background:
    url(assets/brand/pattern-lit.svg) 0 0 / 960px auto repeat,
    radial-gradient(circle 340px at var(--mx, 50%) var(--my, 50%), rgba(252, 118, 50, .1), transparent 100%);
  -webkit-mask: radial-gradient(circle 360px at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0,0,0,.5) 45%, transparent 100%);
          mask: radial-gradient(circle 360px at var(--mx, 50%) var(--my, 50%), #000 0%, rgba(0,0,0,.5) 45%, transparent 100%);
}
.has-cursor .carry { opacity: 1; }
main, .foot { position: relative; z-index: 1; }
@media (hover: none), (pointer: coarse) { .carry { display: none; } }

/* ---------- Film grain: one fixed layer, stepped so it flickers like film, not like video noise ---------- */
.grain {
  position: fixed; inset: -7%; z-index: 90; pointer-events: none; opacity: .085; will-change: transform;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .95  0 0 0 0 .9  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Light leaks, the burn on the edge of his film ---------- */
.leak { position: absolute; pointer-events: none; mix-blend-mode: screen; z-index: 2; }
.leak--left {
  inset: -10% auto -10% -12%; width: 46%;
  background:
    radial-gradient(60% 45% at 10% 78%, rgba(255, 62, 18, .62), transparent 70%),
    radial-gradient(40% 30% at 0% 30%, rgba(252, 118, 50, .38), transparent 70%),
    linear-gradient(90deg, rgba(255, 54, 14, .35), transparent 30%);
  animation: leak 9s ease-in-out infinite alternate;
}
.leak--frame {
  inset: 0;
  background:
    radial-gradient(70% 40% at 100% 0%, rgba(252, 118, 50, .5), transparent 70%),
    linear-gradient(270deg, rgba(255, 60, 20, .32), transparent 16%);
  animation: leak 11s ease-in-out infinite alternate-reverse;
}
@keyframes leak { from { opacity: .55; transform: translateX(-2%) scale(1); } to { opacity: 1; transform: translateX(2%) scale(1.05); } }

/* ---------- Cursor: a ring of light that names what a click will do ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 1.5px solid var(--light); opacity: 0;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background-color .4s, opacity .3s;
  display: grid; place-items: center;
}
.cursor-label { font: 500 11px/1 var(--text); letter-spacing: .04em; color: var(--night); opacity: 0; transition: opacity .25s; white-space: nowrap; }
/* Over a world, the ring carries that world's symbol */
.cursor-shape { position: absolute; width: 16px; height: 16px; overflow: visible; fill: none; stroke: var(--light); stroke-width: 1px; opacity: 0; transform: scale(.4) rotate(-90deg); transition: opacity .3s, transform .6s var(--ease); }
.cursor.is-shape { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-color: rgba(252, 118, 50, .5); }
.cursor.is-shape .cursor-shape { opacity: 1; transform: none; }
.has-cursor .cursor { opacity: 1; }
.cursor.is-label { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: var(--light); }
.cursor.is-label .cursor-label { opacity: 1; transition-delay: .12s; }
.cursor.is-link { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Opening ---------- */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 150; overflow: hidden; display: grid; place-items: center; pointer-events: none; }
/* The dark is the wall around a door. The door starts as a slit with no width; its shadow is the whole dark room.
   It widens to the exact arch of the corridor behind it, then comes towards you. */
.loader-door {
  position: absolute; left: 50%; top: 49.5%; width: 0; height: 71vh;
  border-radius: 999vmax 999vmax 0 0;
  box-shadow: 0 0 26px 1px rgba(252, 118, 50, var(--rim, 0)), 0 0 0 300vmax #0A0920; /* the rim only glows once the door starts to open */
}
.loader-mark { position: relative; z-index: 2; }
.loader-mark { opacity: 0; }
.loader-mark .mark { width: clamp(104px, 11vw, 160px); filter: drop-shadow(0 0 22px rgba(252, 118, 50, .5)); }
.loader-line { position: absolute; z-index: 1; left: 50%; top: 14vh; width: 1px; height: 71vh; background: linear-gradient(to bottom, rgba(252, 118, 50, 0), var(--light) 18%, #FFD2B0 50%, var(--light) 82%, rgba(252, 118, 50, 0)); transform: scaleY(0); transform-origin: 50% 0; box-shadow: 0 0 14px rgba(252, 118, 50, .85), 0 0 60px rgba(252, 118, 50, .35); }
.is-ready:not(.is-opening) .loader { display: none; } /* while the door is still opening, the loader stays */


/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 100; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gut-r) 18px var(--gut);
  transition: transform .7s var(--ease), background-color .5s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 210%; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease);
  background: linear-gradient(to bottom, rgba(9, 8, 24, .96) 0%, rgba(9, 8, 24, .88) 38%, rgba(9, 8, 24, .5) 66%, rgba(9, 8, 24, 0) 100%); }
.nav.is-solid::before { opacity: 1; }
.nav.is-end::before { opacity: 0; }
.nav-mark { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--light); }
/* Both words on one line in the display face. The drawn wordmark, with its script, is kept for the loader and the last room */
.nav-word { display: block; font: 400 1.75rem/1 var(--display); letter-spacing: -.012em; color: var(--bone); white-space: nowrap; text-shadow: 0 1px 14px rgba(10, 9, 32, .6); }
.nav-links { display: flex; align-items: center; gap: clamp(22px, 2.8vw, 44px); font-size: 13px; letter-spacing: .05em; }
.nav-links a { text-decoration: none; position: relative; padding: 6px 0; text-shadow: 0 1px 14px rgba(10, 9, 32, .6); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
/* The one way in: a hairline pill that fills with light when you reach for it */
/* The one way in is written, not boxed: the site's own caption language, a hairline of light and a line of italic */
.nav-links .nav-cta { display: inline-flex; align-items: center; gap: 12px; padding: 6px 0; font: 400 italic 1.08rem/1 var(--display); letter-spacing: 0; }
.nav-links .nav-cta::before { content: ""; width: 22px; height: 1px; background: var(--light); box-shadow: 0 0 8px rgba(252, 118, 50, .7); transition: width .7s var(--ease); }
.nav-links .nav-cta::after { left: 34px; background: var(--light); }
.nav-links .nav-cta:hover::before, .nav-links .nav-cta:focus-visible::before { width: 40px; }
.nav-links .nav-cta:hover::after { left: 52px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--light); box-shadow: 0 0 0 0 rgba(252, 118, 50, .6); animation: pulse 2.8s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(252, 118, 50, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(252, 118, 50, 0); } }
.nav-toggle { display: none; font-size: 14px; padding: 6px 0; }
.nav-links { margin-left: auto; }
/* Sound: silent until asked. Four bars that lie flat when it is off and breathe when it is on */
.sound { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; letter-spacing: .05em; color: var(--bone-2); text-shadow: 0 1px 14px rgba(10, 9, 32, .6); transition: color .4s; }
.sound:hover, .sound[aria-pressed="true"] { color: var(--bone); }
.sound-bars { display: inline-flex; align-items: center; gap: 3px; height: 14px; }
.sound-bars i { width: 1.5px; height: 2px; background: currentColor; transition: height .5s var(--ease), background-color .4s; }
.sound[aria-pressed="true"] .sound-bars i { background: var(--light); animation: sound 1.3s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-duration: .9s; animation-delay: -.4s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-duration: 1.6s; animation-delay: -.9s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(4) { animation-duration: 1.1s; animation-delay: -.2s; }
@keyframes sound { from { height: 3px; } to { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .sound[aria-pressed="true"] .sound-bars i { animation: none; height: 9px; } }

/* ---------- Threshold (hero) ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: #0A0920; }
.hero-stage { position: absolute; inset: 0; transform-origin: 50% 46%; will-change: transform; }
.lens { position: absolute; inset: 0; }
.lens img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.lens-dark { filter: brightness(.42) saturate(.85); }
/* The walk: frames of the corridor drawn by scroll. It takes over from the still the moment you move. */
.walk { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.lens-lit {
  -webkit-mask: radial-gradient(circle var(--r, 34vmax) at var(--x, 50%) var(--y, 46%), #000 30%, rgba(0,0,0,.55) 58%, transparent 100%);
          mask: radial-gradient(circle var(--r, 34vmax) at var(--x, 50%) var(--y, 46%), #000 30%, rgba(0,0,0,.55) 58%, transparent 100%);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: var(--shade, 1);
  background: linear-gradient(to top, rgba(19,17,46,.9) 0%, rgba(19,17,46,0) 38%), linear-gradient(to bottom, rgba(19,17,46,.55) 0%, rgba(19,17,46,0) 22%); }
/* The infinity mark as light on the lens, low in the dark corner by the line: never sharp, never a stamp */
.hero-loop {
  position: absolute; z-index: 3; left: -16vw; bottom: -6vh; width: min(1100px, 92vw); aspect-ratio: 400 / 147; pointer-events: none; mix-blend-mode: screen;
  filter: blur(34px); opacity: .34; transform: rotate(-7deg); animation: breathe 16s ease-in-out infinite alternate;
}
/* The mask lives on the child, the blur on the parent: CSS filters run before masks, so this order is what makes it soft */
.hero-loop::before {
  content: ""; position: absolute; inset: 0;
  -webkit-mask: url(assets/brand/mark.png) center / contain no-repeat; mask: url(assets/brand/mark.png) center / contain no-repeat;
  background: radial-gradient(60% 90% at 50% 45%, rgba(252, 118, 50, .9), rgba(252, 118, 50, .2) 60%, transparent 85%);
}
/* The two halves of the line stand either side of the doorway, like the corridor walls; the arch stays clear. */
.hero-copy { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.hero-title { font: 400 clamp(3rem, 6.1vw, 7.6rem)/.92 var(--display); letter-spacing: -.028em; }
.hl { display: block; overflow: hidden; padding-bottom: .08em; position: absolute; }
.hl > span { display: block; }
.hl--l { left: var(--gut); top: 27vh; }
.hl--r { right: var(--gut-r); bottom: 27vh; text-align: right; }
.hero-sub { position: absolute; left: var(--gut); bottom: clamp(72px, 10vh, 104px); font-size: clamp(14px, 1.05vw, 16px); color: var(--bone-2); max-width: 30ch; }
.hero-foot { position: absolute; z-index: 4; left: var(--gut); right: var(--gut-r); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--bone-2); }
.clock { font-variant-numeric: tabular-nums; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.cue-line { width: 44px; height: 1px; background: var(--bone-2); position: relative; overflow: hidden; }
.cue-line::after { content: ""; position: absolute; inset: 0; background: var(--light); transform: translateX(-100%); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- The walk: one journey through the house ----------
   Default (no script, or reduced motion): the hero, then each room as a still with its words, stacked.
   .is-live: everything is pinned to one screen; scroll moves the camera and the rooms dissolve into each other. */
figcaption { font-size: 13px; color: var(--bone-2); margin-top: 12px; }
.journey { position: relative; }
.shot { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; padding: 0 var(--gut-r) clamp(52px, 8.5vh, 96px) var(--gut); isolation: isolate; }
.shot-still { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* The scrim is part of the room's caption: it arrives and leaves with the words, so the picture is clean in between */
.shot::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 62% 78% at 0% 100%, rgba(7, 6, 18, .9) 0%, rgba(7, 6, 18, .62) 45%, rgba(7, 6, 18, 0) 100%); }
.shot--idea::before { background: linear-gradient(90deg, rgba(7, 6, 18, .9) 0%, rgba(7, 6, 18, .74) 36%, rgba(7, 6, 18, .1) 70%, rgba(7, 6, 18, 0) 100%); }
.shot-copy { max-width: min(40rem, 100%); }
.shot-disc { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .06em; color: var(--bone); margin-bottom: clamp(8px, 1.4vh, 16px); }
.shot-disc::before { content: ""; width: 28px; height: 1px; background: var(--c); opacity: .7; }
.shot-shape { order: -1; width: 12px; height: 12px; overflow: visible; fill: var(--c); }
.shot--world .shot-disc { gap: 16px; font-size: clamp(1rem, 1.3vw, 1.3rem); letter-spacing: .04em; margin-bottom: clamp(12px, 1.8vh, 22px); }
.shot--world .shot-disc::before { width: 46px; }
.shot--world .shot-shape { width: 18px; height: 18px; }
/* Arriving in a room: its sign turns into place, the line draws out from it, and the word rises a letter at a time */
.is-live .shot--world .shot-disc::before { width: 0; transition: width .5s var(--ease); }
.is-live .shot--world.is-arrived .shot-disc::before { width: 46px; transition: width 1s var(--ease) .15s; }
.is-live .shot--world .shot-shape { transform: rotate(-90deg) scale(.3); transition: transform .5s var(--ease); }
.is-live .shot--world.is-arrived .shot-shape { transform: none; transition: transform 1.1s var(--ease); }
.is-live .shot-word span { display: inline-block; opacity: 0; transform: translateY(.34em) rotate(5deg); transform-origin: 0 100%; transition: opacity .3s, transform .4s var(--ease); }
.is-live .is-arrived .shot-word span { opacity: 1; transform: none; transition: opacity .6s calc(var(--n) * 55ms), transform 1.1s var(--ease) calc(var(--n) * 55ms); }
.shot-word { font: 400 clamp(4.2rem, 10.6vw, 10.4rem)/.86 var(--display); letter-spacing: -.035em; margin-left: -.045em; padding-bottom: .17em; } /* room for the j of Object and the g of Signal */
.shot-line { font: 400 clamp(1.3rem, 2.1vw, 2rem)/1.3 var(--display); margin-top: clamp(6px, 1vh, 12px); max-width: 24ch; }
.shot--world .shot-line { min-height: 2.6em; }
.shot-items { font-size: 15px; color: var(--bone-2); margin-top: 12px; max-width: 46ch; }
.shot--world .shot-items { min-height: 4.95em; } /* three lines in every room, so the word never moves */
.shot--idea { align-items: center; }
.shot--idea .shot-copy { max-width: 1100px; }
.idea-line { font-size: clamp(2.1rem, 4.6vw, 4.4rem); line-height: 1.08; max-width: 21ch; }
.idea-line .w { transition: opacity .2s linear; }
.idea-para { color: var(--bone-2); max-width: 46ch; margin-top: clamp(24px, 4vh, 44px); }

/* The rail: the six worlds as six symbols. Where you are is folded open in its colour. */
.rail { display: none; }
.is-live .rail { display: block; position: absolute; z-index: 6; right: calc(var(--gut-r) - 6px); top: 50%; transform: translateY(-50%); opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
.is-live .rail.is-on { opacity: 1; visibility: visible; transition: opacity .8s var(--ease), visibility 0s; }
.rail ol { position: relative; display: grid; gap: 6px; }
.rail ol::after { content: ""; position: absolute; right: -8px; top: 0; width: 1px; height: 34px; background: linear-gradient(transparent, var(--light), transparent); transform: translateY(calc(var(--at, 0) * 40px)); transition: transform 1.1s var(--ease); }
.rail button::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--c); border-radius: 50%; opacity: 0; pointer-events: none; }
.rail button.is-here::after { animation: rail-ring 1.2s var(--ease) both; }
.rail button.is-here svg { animation: rail-land 1s var(--ease) both; }
.rail button.is-here span { animation: rail-name .9s var(--ease) .12s both; }
@keyframes rail-land { 0% { transform: rotate(-90deg) scale(.5); } 55% { transform: rotate(0) scale(1.6); } 100% { transform: scale(1.15); } }
@keyframes rail-ring { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes rail-name { from { clip-path: inset(-30% 0 -30% 100%); } to { clip-path: inset(-30% 0 -30% -10%); } }
.rail button { position: relative; display: grid; place-items: center; width: 34px; height: 34px; color: rgba(242, 233, 223, .78); }
.rail svg { width: 13px; height: 13px; overflow: visible; fill: transparent; stroke: currentColor; stroke-width: 1px; transform: rotate(-90deg) scale(.8); transition: transform 1s var(--ease), fill .6s, stroke .4s, filter .8s; }
.rail span { position: absolute; right: 100%; top: 50%; transform: translate(8px, -50%); padding-right: 10px; font: 400 1.05rem/1 var(--display); color: var(--bone); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .4s, transform .6s var(--ease); }
.rail button:hover span, .rail button:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.rail button:hover svg { transform: rotate(-45deg) scale(1); }
.rail button.is-here svg { fill: var(--c); stroke: var(--c); transform: scale(1.15); }
.rail button.is-here span { opacity: 1; transform: translate(0, -50%); font-style: italic; text-shadow: 0 1px 16px rgba(7, 6, 18, .8); }

/* Held by the browser, so it cannot jitter under a thumb. dvh: the room is always exactly the visible screen, with or without a phone's address bar */
.is-live .journey-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 480px; overflow: hidden; }
.is-live .walk { height: 100vh; height: 100lvh; } /* the film never rescales when the address bar moves; the bar only covers its bottom edge */
.is-live .hero { position: absolute; inset: 0; height: auto; min-height: 0; }
.is-live .shots { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.is-live .shot { position: absolute; inset: 0; min-height: 0; opacity: 0; visibility: hidden; }
.is-live .shot-still { display: none; }
.is-live .shot-copy { will-change: transform; }
.journey-veil { position: absolute; inset: 0; z-index: 7; background: var(--night); opacity: 0; pointer-events: none; }

/* ---------- Work: the walk continues through the projects ----------
   Default (no script, or reduced motion): each project is a full-height still with its title card, stacked.
   .is-live: pinned to one screen; scroll pushes the camera in and the projects dissolve into each other.
   --tone is each project's own atmosphere, chosen from its image; the scrim and the cursor's light use it. */
.work { position: relative; }
.work-intro { padding: clamp(110px, 14vw, 190px) var(--gut-r) clamp(40px, 5vw, 72px) var(--gut); }
.work-intro p { color: var(--bone-2); font-size: 15px; max-width: 40ch; margin-top: 20px; }
.piece { --tone: 8, 7, 20; position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: 0 var(--gut-r) clamp(72px, 12vh, 140px) var(--gut); }
.piece-open { position: absolute; inset: 0; z-index: -3; display: block; width: 100%; height: 100%; overflow: hidden; }
.piece-open img { width: 100%; height: 100%; object-fit: cover; transition: opacity .38s var(--ease); will-change: transform; }
.piece-open img.is-swapping { opacity: 0; }
.piece-torch { display: none; }
.piece::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--tone), .92) 0%, rgba(var(--tone), .58) 32%, rgba(var(--tone), 0) 60%), linear-gradient(0deg, rgba(var(--tone), .78) 0%, rgba(var(--tone), 0) 44%); }
.piece-copy { max-width: min(44rem, 100%); pointer-events: none; }
.piece-copy button { pointer-events: auto; }
/* A hairline under the discipline, the way a caption is ruled off on a gallery wall */
.piece .shot-disc { margin-bottom: 18px; }
.piece-name { font: 400 clamp(3.1rem, 7.4vw, 7.6rem)/.9 var(--display); letter-spacing: -.03em; margin-left: -.04em; max-width: 11ch; text-wrap: balance; padding-bottom: .08em; }
.piece-enter { display: inline-flex; align-items: center; gap: 16px; margin-top: clamp(20px, 3.4vh, 36px); padding: 14px 22px 14px 24px; font-size: 14px;
  border: 1px solid rgba(242, 233, 223, .34); border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .5s var(--ease), color .5s, border-color .5s, gap .6s var(--ease); }
.piece-enter span { font-size: 12px; color: var(--bone-2); padding-left: 16px; border-left: 1px solid rgba(242, 233, 223, .25); font-variant-numeric: tabular-nums; transition: color .5s, border-color .5s; }
.piece-enter:hover, .piece-enter:focus-visible { background: var(--bone); color: var(--night); border-color: var(--bone); gap: 22px; }
.piece-enter:hover span, .piece-enter:focus-visible span { color: rgba(19, 17, 46, .7); border-color: rgba(19, 17, 46, .25); }
/* What else there is to see here: a moving window where a walk-through exists, and the other views */
.piece-side { position: absolute; right: calc(var(--gut-r) + 56px); bottom: clamp(72px, 12vh, 140px); display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.piece-reel { width: clamp(130px, 11.5vw, 190px); }
.piece-reel video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; outline: 1px solid rgba(242, 233, 223, .18); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.piece-reel figcaption { margin-top: 8px; text-align: right; }
.piece-views { display: flex; gap: 8px; }
.piece-views button { position: relative; display: block; width: 64px; aspect-ratio: 3 / 2; overflow: hidden; opacity: .5; outline: 1px solid rgba(242, 233, 223, .2); transition: opacity .5s, transform .6s var(--ease); }
.piece-views img { width: 100%; height: 100%; object-fit: cover; }
.piece-views button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--light); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.piece-views button:hover, .piece-views button:focus-visible { opacity: 1; transform: translateY(-3px); }
.piece-views button.is-on { opacity: 1; }
.piece-views button.is-on::after { transform: scaleX(1); }
.work-nav { display: none; }
/* The burn between two frames of film: it crosses the picture only while one project is giving way to the next */
.work-flash { display: none; }
.work.is-live .work-flash { --b: 0; display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: rgba(7, 6, 18, calc(var(--b) * .7)); }
.work.is-live .work-flash::after { content: ""; position: absolute; inset: 0; opacity: calc(var(--b) * .6);
  background: radial-gradient(70% 90% at 0% 60%, rgba(255, 78, 22, .75), rgba(252, 118, 50, .28) 45%, transparent 75%), linear-gradient(90deg, rgba(255, 60, 20, .4), transparent 34%), radial-gradient(40% 50% at 100% 0%, rgba(252, 118, 50, .4), transparent 70%); }

.work.is-live .work-pin { --tx: 50%; --ty: 50%; position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 480px; overflow: hidden; }
.work.is-live .piece-open { height: 100vh; height: 100lvh; }
.work.is-live .work-intro { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding-top: 0; padding-bottom: 0; }
.work.is-live .work-intro h2 { font-size: clamp(3rem, 8vw, 8rem); }
.work-reel { display: none; }
.work.is-live .work-intro h2, .work.is-live .work-intro p { position: relative; z-index: 1; } /* the title crosses in front of the pictures */
.work.is-live .work-reel:not(:empty) { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: absolute; top: 0; bottom: 0; right: var(--gut-r); width: min(34vw, 600px); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.work-reel div { display: flex; flex-direction: column; animation: reel 70s linear infinite; }
.work-reel div:nth-child(2) { animation-direction: reverse; }
.work-reel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 14px; filter: brightness(.78) saturate(.9); }
@keyframes reel { to { transform: translateY(-50%); } }
@keyframes reel-x { to { transform: translateX(-50%); } }
.work.is-live .piece { position: absolute; inset: 0; min-height: 0; opacity: 0; visibility: hidden; }
.work.is-live .piece-copy, .work.is-live .piece-side { opacity: 0; will-change: transform, opacity; }
/* The cursor carries the light: the picture is clearest where you look, and falls into its own tone away from it */
@media (hover: hover) and (pointer: fine) {
  .work.is-live .piece-torch { display: block; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background: radial-gradient(circle 62vmax at var(--tx) var(--ty), rgba(var(--tone), 0) 0%, rgba(var(--tone), .18) 45%, rgba(var(--tone), .64) 100%); }
}
.work.is-live .work-nav { display: grid; gap: 2px; position: absolute; z-index: 6; right: calc(var(--gut-r) - 6px); top: 50%; transform: translateY(-50%); opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
.work.is-live .work-nav.is-on { opacity: 1; visibility: visible; transition: opacity .8s var(--ease), visibility 0s; }
.work-nav button { display: flex; align-items: center; justify-content: flex-end; gap: 8px; width: 52px; height: 30px; font-size: 11px; color: var(--bone-2); font-variant-numeric: tabular-nums; text-shadow: 0 0 10px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .5); transition: color .4s; }
.work-nav button::before { content: ""; height: 1px; width: 8px; background: currentColor; opacity: .7; box-shadow: 0 0 6px rgba(0, 0, 0, .7); transition: width .7s var(--ease), background-color .4s, opacity .4s; }
.work-nav button:hover::before { width: 16px; }
.work-nav button.is-here { color: var(--bone); }
.work-nav button.is-here::before { width: 24px; background: var(--light); opacity: 1; }

/* The index: the other projects, as a list you read */
.card-shape { width: 12px; height: 12px; overflow: visible; fill: var(--c); }


/* Arrivals. .rv is added by script, so without it everything is simply there. */
.rv.n-frames .ph { clip-path: inset(0 50% 0 50%); transition: clip-path 1.5s var(--ease); }
.rv.n-frames.is-in .ph { clip-path: inset(0 0 0 0); }
.rv.n-letter > *, .rv.n-letter .n-text p { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.rv.n-letter .n-text { opacity: 1; transform: none; }
.rv.n-letter.is-in > *, .rv.n-letter.is-in .n-text p { opacity: 1; transform: none; }
.rv.n-letter h2 { transition-delay: .08s; } .rv.n-letter .n-text p:nth-child(1) { transition-delay: .18s; } .rv.n-letter .n-text p:nth-child(2) { transition-delay: .28s; } .rv.n-letter .n-text p:nth-child(3) { transition-delay: .38s; }
/* his name is written, not shown */
.rv.n-letter .sign { opacity: 1; transform: rotate(-4deg); clip-path: inset(-20% 100% -20% 0); transition: clip-path 1.4s cubic-bezier(.6, 0, .2, 1) .75s; }
.rv.n-letter.is-in .sign { transform: rotate(-4deg); clip-path: inset(-20% -5% -20% 0); }
.rv.quiet p span { opacity: 0; filter: blur(10px); transform: translateY(14px); transition: opacity 1.3s var(--ease), filter 1.3s var(--ease), transform 1.3s var(--ease); }
.rv.quiet p span + span { transition-delay: .55s; }
.rv.quiet.is-in p span { opacity: 1; filter: none; transform: none; }
.rv.letter > * { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.rv.letter.is-in > * { opacity: 1; transform: none; }
.rv.letter > :nth-child(2) { transition-delay: .12s; } .rv.letter > :nth-child(3) { transition-delay: .3s; }
.more { padding: clamp(96px, 12vw, 170px) 0; }
.more-head { display: grid; gap: 12px; padding: 0 var(--gut-r) 0 var(--gut); margin-bottom: clamp(28px, 4vw, 56px); }
.more-head h3 { font: 400 clamp(2.8rem, 6.4vw, 6rem)/.95 var(--display); letter-spacing: -.03em; }
/* Six doors side by side. The one you are at opens; the others wait in the dark */
.more-list { display: flex; gap: 6px; height: clamp(440px, 70vh, 760px); padding: 0 var(--gut-r) 0 var(--gut); }
.more-list li { flex: 1 1 0; min-width: 0; transition: flex-grow 1s var(--ease), opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.more-list li:hover, .more-list li:focus-within { flex-grow: 3.6; }
.more-list button { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; text-align: left; }
.more-list img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.46) saturate(.75); transform: scale(1.1); transition: filter 1s var(--ease), transform 1.6s var(--ease); }
.more-list li:hover img, .more-list li:focus-within img { filter: none; transform: none; }
.more-list button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 7, 20, .88), rgba(8, 7, 20, 0) 58%); }
.more-no { position: absolute; z-index: 1; left: 18px; top: 16px; font-size: 12px; color: var(--bone); font-variant-numeric: tabular-nums; transition: color .4s; }
.more-list li:hover .more-no, .more-list li:focus-within .more-no { color: var(--light); }
.more-text { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 20px; display: grid; gap: 10px; transition: opacity .5s; }
.more-list:hover li:not(:hover) .more-text { opacity: 0; } /* while one door is open the others go quiet, so no name is ever cut short */
.more-name { font: 400 clamp(1.45rem, 2.2vw, 2.5rem)/1.04 var(--display); letter-spacing: -.02em; }
.more-kind { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bone-2); white-space: nowrap; }
.rv.more .more-head h3 { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.rv.more.is-in .more-head h3 { opacity: 1; transform: none; }
.rv.more .more-list li { opacity: 0; transform: translateY(46px); }
.rv.more.is-in .more-list li { opacity: 1; transform: none; }
.rv.direct li { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.rv.direct.is-in li { opacity: 1; transform: none; }
.rv.direct li:nth-child(2) { transition-delay: .08s; } .rv.direct li:nth-child(3) { transition-delay: .16s; } .rv.direct li:nth-child(4) { transition-delay: .24s; }

/* ---------- Nithin ---------- */
.nithin { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: clamp(80px, 9vw, 136px) var(--gut-r) clamp(96px, 12vw, 180px) var(--gut); border-top: 1px solid var(--line); align-items: start; }
.n-frames { grid-column: 1 / span 6; position: relative; }
.n-frame { margin: 0; }
.n-frame--a { width: min(74%, 30rem); }
.n-frame--a .ph { aspect-ratio: 4 / 5; }
/* Placeholder that reads as an unexposed film frame: sprocket edge, a burn, the mark, and what goes here */
.ph {
  position: relative; overflow: hidden; display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 90% at 0% 100%, rgba(255, 70, 20, .32), transparent 55%), radial-gradient(90% 60% at 100% 0%, rgba(252,118,50,.14), transparent 60%), var(--night-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ph::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 7px;
  background: repeating-linear-gradient(to bottom, transparent 0 9px, rgba(242,233,223,.16) 9px 15px); }
.ph-mark { width: 44px; color: rgba(242, 233, 223, .28); margin-bottom: 14px; }
.ph-note { font-size: 13px; line-height: 1.5; color: var(--bone-2); padding: 0 12px 0 22px; }
.ph { grid-template-rows: auto auto; align-content: center; }
.n-frame figcaption { font-variant-numeric: tabular-nums; }
.n-letter { grid-column: 8 / span 5; padding-top: clamp(0px, 4vw, 64px); }
.n-letter h2 { margin-top: 12px; }
.n-text { margin-top: 36px; display: grid; gap: 1.1em; color: var(--bone-2); max-width: 48ch; }
.n-text p:first-child { font: 400 clamp(1.25rem, 1.7vw, 1.55rem)/1.45 var(--display); color: var(--bone); }
.sign { margin-top: 40px; font: 400 italic 2.4rem/1 var(--display); color: var(--light); transform: rotate(-4deg); transform-origin: left; display: inline-block; }

/* ---------- Discretion ---------- */
.quiet { padding: clamp(96px, 14vw, 200px) var(--gut-r) clamp(96px, 14vw, 200px) var(--gut); border-top: 1px solid var(--line); text-align: center; }
.quiet p { font: 400 italic clamp(1.6rem, 3.4vw, 3rem)/1.3 var(--display); max-width: 30ch; margin: 0 auto; text-wrap: balance; }
.quiet p span { display: block; }

/* ---------- Conversation: the room behind the door ----------
   Nithin wrote to you above; here you write back. The form is the letter itself: a few sentences with blanks in them.
   The brand's indigo with the pattern engraved into it. Tangerine is only light: the dot, the focus, the send on hover. */
@keyframes breathe { from { transform: rotate(-9deg) scale(1); opacity: .34; } to { transform: rotate(-6deg) scale(1.06) translateY(-2%); opacity: .5; } }
.convo {
  position: relative; color: var(--bone); overflow: hidden; clip-path: inset(0 0 0 0); isolation: isolate;
  background: url(assets/brand/pattern-line.svg?v=5) 0 0 / 960px auto repeat, linear-gradient(180deg, var(--indigo) 0%, var(--indigo-2) 100%);
}
.convo-inner { padding: clamp(110px, 12vw, 170px) var(--gut-r) clamp(72px, 9vw, 120px) var(--gut); }
.convo-top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(242, 233, 223, .16); }
.letter { margin-top: clamp(48px, 7vw, 104px); max-width: 72rem; font: 400 clamp(1.55rem, 3.4vw, 3.4rem)/1.5 var(--display); letter-spacing: -.01em; }
.letter p { text-wrap: wrap; }
.letter-open { font-style: italic; color: var(--bone-2); margin-bottom: .5em; }
.blank { display: inline; }
.blank input, .blank textarea {
  font: inherit; font-style: italic; letter-spacing: inherit; color: var(--bone); background: transparent; caret-color: var(--light);
  border: 0; border-bottom: 1px solid rgba(242, 233, 223, .34); border-radius: 0; padding: 0 .12em .04em; margin: 0;
  field-sizing: content; min-width: 3em; max-width: 100%; vertical-align: baseline; transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.blank--long { display: block; margin: .1em 0 .2em; }
.blank textarea { display: block; width: 100%; padding-left: 0; resize: none; overflow: hidden; min-height: 1.5em; line-height: inherit; }
@supports not (field-sizing: content) { .blank input { width: 9em; } .blank textarea { min-height: 3em; overflow: auto; } }
.blank input::placeholder, .blank textarea::placeholder { color: rgba(242, 233, 223, .5); transition: color .45s var(--ease); }
.blank textarea.is-turning::placeholder { color: rgba(242, 233, 223, 0); }
.blank input:hover, .blank textarea:hover { border-bottom-color: rgba(242, 233, 223, .7); }
.blank input:focus, .blank textarea:focus { outline: none; border-bottom-color: var(--light); box-shadow: 0 1px 0 0 var(--light); }
.blank.is-error input { border-bottom-color: #FF9A6B; box-shadow: 0 1px 0 0 #FF9A6B; }
.form-foot { display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 64px); font: 400 1rem/1.5 var(--text); letter-spacing: 0; }
/* The same hairline pill as the way in at the top of the page; it fills with light when you reach for it */
.send { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px 16px 24px; font-size: 15px; border: 1px solid rgba(242, 233, 223, .4); border-radius: 999px;
  transition: background-color .5s var(--ease), color .5s, border-color .5s, gap .6s var(--ease), box-shadow .8s var(--ease); }
.send::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--light); transition: background-color .5s; }
.send:hover, .send:focus-visible { background: var(--light); border-color: var(--light); color: var(--night); gap: 18px; box-shadow: 0 14px 44px -12px rgba(252, 118, 50, .6); }
.send:hover::before, .send:focus-visible::before { background: var(--night); }
.form-note { font-size: 13px; max-width: 36ch; color: var(--bone-2); }
/* Or skip the letter: four ways to reach the studio, ruled off like the index */
.direct { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; margin-top: clamp(80px, 10vw, 150px); }
.direct li { border-top: 1px solid rgba(242, 233, 223, .16); padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.direct a { justify-self: start; position: relative; font: 400 clamp(1.05rem, 1.45vw, 1.3rem)/1.3 var(--display); text-decoration: none; padding-bottom: 3px; overflow-wrap: anywhere; transition: color .5s; }
.direct a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--light); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.direct a:hover::after, .direct a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* ---------- The end: the one room in full colour ----------
   Everything before this keeps tangerine as a point of light. Here it is the whole wall, as on the designer's logo sheet:
   cream wordmark on tangerine, drawn from the vector so it stays sharp at any size. The door in the wall is the one you came in by. */
.foot { position: relative; z-index: 1; overflow: hidden; display: grid; justify-items: center; color: var(--night); font-size: 13px;
  padding: 26px var(--gut-r) calc(clamp(28px, 3vw, 48px) + env(safe-area-inset-bottom, 0px)) var(--gut);
  background: radial-gradient(80% 60% at 50% 38%, #FF8E4C 0%, rgba(255, 142, 76, 0) 70%), linear-gradient(180deg, #FC7632 0%, #F0621F 100%); }
.foot a { text-decoration: none; }
.foot-top { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid rgba(19, 17, 46, .22); }
.foot-line { font: 400 italic 17px/1.3 var(--display); }
.foot-meta { display: inline-flex; gap: 18px; font-variant-numeric: tabular-nums; }
.foot-door { display: grid; justify-items: center; gap: 26px; margin: clamp(36px, 4vw, 56px) 0 clamp(28px, 3vw, 44px); color: var(--night); }
.foot-arch { position: relative; display: block; width: clamp(124px, 12vw, 176px); aspect-ratio: 180 / 301; filter: drop-shadow(0 26px 30px rgba(116, 38, 0, .38)); transition: filter .9s var(--ease), transform 1.2s var(--ease); }
.foot-arch-in { position: absolute; inset: 0; overflow: hidden; border-radius: 999px 999px 0 0; clip-path: inset(0 0 0 0 round 999px 999px 0 0); transition: clip-path 1.6s var(--ease); }
/* the depth of the wall the door is cut into */
.foot-arch-in::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(19, 17, 46, .35), inset 10px 0 22px -10px rgba(19, 17, 46, .6), inset 0 14px 22px -12px rgba(19, 17, 46, .5); pointer-events: none; }
/* a door ajar until you arrive */
.js .foot:not(.is-in) .foot-arch-in { clip-path: inset(0 49% 0 49% round 999px 999px 0 0); }
.foot-arch img { position: absolute; left: 50%; top: -19.7%; height: 140.85%; width: auto; max-width: none; transform: translateX(-50%) scale(1.02); transition: transform 1.8s var(--ease); }
.foot-door:hover .foot-arch, .foot-door:focus-visible .foot-arch { filter: drop-shadow(0 36px 40px rgba(116, 38, 0, .5)); transform: translateY(-6px); }
.foot-door:hover .foot-arch img, .foot-door:focus-visible .foot-arch img { transform: translateX(-50%) scale(1.1); }
.foot-return { position: relative; padding-bottom: 6px; font: 400 italic 1.2rem/1.2 var(--display); }
.foot-return::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(.3); transition: transform .8s var(--ease); }
.foot-door:hover .foot-return::after, .foot-door:focus-visible .foot-return::after { transform: scaleX(1); }
.foot-word { width: min(100%, 128vh); aspect-ratio: 541.875 / 178.1875; background: var(--bone); transition: transform 1.8s var(--ease), opacity 1.2s var(--ease);
  -webkit-mask: url(assets/brand/wordmark.svg) center / contain no-repeat; mask: url(assets/brand/wordmark.svg) center / contain no-repeat; }
.js .foot:not(.is-in) .foot-word { transform: translateY(12%); opacity: 0; }
/* on the tangerine wall the visitor's light turns to ink */
html:has(.foot:hover) .cursor { border-color: var(--night); }
html:has(.foot:hover) .cursor.is-label { background: var(--night); }
html:has(.foot:hover) .cursor-label { color: var(--bone); }
html:has(.foot:hover) .carry { opacity: 0; }

/* ---------- Project view ---------- */
.pv { --c: var(--light); width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: radial-gradient(60% 55% at 0% 100%, color-mix(in oklch, var(--c) 26%, transparent), transparent 70%), linear-gradient(170deg, var(--indigo), var(--indigo-2) 70%); color: var(--bone); overflow: hidden; }
.pv::backdrop { background: var(--indigo-2); }
.pv[open] { display: flex; flex-direction: column; animation: pv-in .9s var(--ease); }
@keyframes pv-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.pv-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gut-r) 18px var(--gut); font-size: 14px; }
.pv-count { color: var(--bone-2); font-variant-numeric: tabular-nums; }
.pv-actions { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.pv-actions button { padding: 6px 0; position: relative; }
.pv-actions button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.pv-actions button:hover::after { transform: scaleX(1); transform-origin: left; }
.pv-close { color: var(--light); }
.pv-actions button:focus-visible { outline: none; }
.pv-actions button:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.pv-scroller { flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scrollbar-width: none; cursor: grab; }
.pv-scroller::-webkit-scrollbar { display: none; }
.pv-scroller.is-dragging { cursor: grabbing; }
.pv-row { display: flex; height: 100%; gap: clamp(16px, 2vw, 32px); padding: 0 var(--gut-r) clamp(24px, 4vh, 48px) var(--gut); align-items: stretch; width: max-content; }
.pv-intro { width: min(520px, 82vw); flex: none; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 8px; }
.pv-intro h1 { font: 400 clamp(2.8rem, 6vw, 6rem)/.98 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.pv-kind { font-size: 13px; color: var(--c); margin-bottom: 18px; }
.pv-story { margin-top: 28px; display: grid; gap: 1em; color: var(--bone-2); max-width: 44ch; }
.pv-story p:first-child { font: 400 clamp(1.2rem, 1.6vw, 1.45rem)/1.4 var(--display); color: var(--bone); }
.pv-spec { margin-top: 32px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; font-size: 13px; }
.pv-spec dt { color: var(--bone-2); }
.pv-spec dd { margin: 0; }
.pv-img { flex: none; height: 100%; position: relative; overflow: hidden; background: rgba(0, 0, 0, .2); }
.pv-img img { height: 100%; width: auto; max-width: none; object-fit: cover; user-select: none; -webkit-user-drag: none; transform: scale(1.08); clip-path: inset(0 0 100% 0); transition: transform 1.8s var(--ease), clip-path 1.2s var(--ease); }
/* the curtain is on the picture, not its frame: a frame clipped to nothing would never be seen arriving */
.pv-img.is-seen img { transform: none; clip-path: inset(0 0 0 0); }
.pv-no { opacity: 0; transition: opacity .8s var(--ease) .6s; }
.pv-img.is-seen .pv-no { opacity: 1; }
.pv-no { position: absolute; left: 14px; bottom: 12px; margin: 0; font-size: 12px; letter-spacing: .04em; color: var(--bone); font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .7); }
.pv-intro > *, .pv-end > * { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) .25s, transform 1.2s var(--ease) .25s; }
.pv-intro.is-seen > *, .pv-end.is-seen > * { opacity: 1; transform: none; }
.pv-intro.is-seen > :nth-child(2) { transition-delay: .33s; } .pv-intro.is-seen > :nth-child(3) { transition-delay: .43s; } .pv-intro.is-seen > :nth-child(4) { transition-delay: .53s; }
.pv-end { flex: none; width: min(420px, 80vw); display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding-bottom: 8px; }
.pv-end p { color: var(--bone-2); font-size: 14px; }
.pv-end button { font: 400 clamp(1.8rem, 3vw, 2.8rem)/1.1 var(--display); text-align: left; transition: color .5s var(--ease); }
.pv-end button:hover { color: var(--light); }
.pv-end button span { display: block; font: 400 13px/1.4 var(--text); color: var(--light); margin-bottom: 8px; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .sound { margin-left: auto; padding: 10px 0; }
  .sound-txt { display: none; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px;
    padding: 0 var(--gut-r) calc(56px + env(safe-area-inset-bottom, 0px)) var(--gut); background: var(--night);
    clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease), visibility 0s .9s; visibility: hidden;
  }
  .nav-links a { opacity: 0; transform: translateY(40%); transition: opacity .5s var(--ease), transform .9s var(--ease); }
  .nav.is-open .nav-links a { opacity: 1; transform: none; }
  .nav.is-open .nav-links a:nth-child(1) { transition-delay: .18s; }
  .nav.is-open .nav-links a:nth-child(2) { transition-delay: .24s; }
  .nav.is-open .nav-links a:nth-child(3) { transition-delay: .30s; }
  .nav.is-open .nav-links a:nth-child(4) { transition-delay: .40s; }
  .nav-links a { font: 400 clamp(2.4rem, 11vw, 3.4rem)/1.2 var(--display); }
  .nav-links .nav-cta { font: 400 italic 1.5rem/1.2 var(--display); margin-top: 28px; }
  .nav-word { font-size: 1.45rem; }
  .nav.is-open .nav-links { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s; }
  .nav.is-open { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-mark { position: relative; z-index: 2; }

  .hero-title { position: absolute; left: var(--gut); right: var(--gut-r); bottom: calc(118px + env(safe-area-inset-bottom, 0px)); font-size: clamp(2.9rem, 13.4vw, 4.6rem); }
  .hl { position: static; }
  .hl--r { text-align: left; }
  .hero-sub { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); right: var(--gut-r); }
  .hero-foot .clock { display: none; }
  .hero::after { background: linear-gradient(to top, rgba(19,17,46,.94) 0%, rgba(19,17,46,.6) 30%, rgba(19,17,46,0) 58%), linear-gradient(to bottom, rgba(19,17,46,.55) 0%, rgba(19,17,46,0) 22%); }

  .nithin { grid-template-columns: 1fr; }
  .nithin > * { grid-column: 1 / -1 !important; }

  .shot { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .shot::before { background: linear-gradient(0deg, rgba(7, 6, 18, .92) 0%, rgba(7, 6, 18, .6) 26%, rgba(7, 6, 18, .18) 44%, rgba(7, 6, 18, 0) 58%); }
  .shot-copy, .piece-copy { text-shadow: 0 1px 22px rgba(10, 9, 32, .75), 0 0 2px rgba(10, 9, 32, .4); }
  .shot--idea::before { background: rgba(7, 6, 18, .64); }
  .shot--world .shot-line { min-height: 0; }
  .shot--world .shot-items { min-height: 4.95em; }
  .rail button { color: rgba(242, 233, 223, .85); }
  .rail svg { filter: drop-shadow(0 0 5px rgba(7, 6, 18, .9)); }
  .shot-word { font-size: clamp(4rem, 21vw, 6.4rem); }
  .is-live .rail { right: 4px; }
  .rail ol::after { right: 1px; height: 40px; }
  .rail span { display: none; }

  .piece { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  /* the render keeps the top of the screen, less cropped and sharper; the title has its own dark floor beneath it */
  .work.is-live .piece { background: rgb(var(--tone)); }
  .work.is-live .piece-open { height: 56vh; height: 56lvh; }
  .piece::before { background: linear-gradient(0deg, rgb(var(--tone)) 0%, rgb(var(--tone)) 44%, rgba(var(--tone), .55) 52%, rgba(var(--tone), 0) 64%); }
  .piece-name { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .piece-side { left: var(--gut); right: var(--gut-r); top: calc(56vh - 104px); top: calc(56lvh - 104px); bottom: auto; align-items: flex-start; } /* the other views sit along the foot of the picture, like a strip of film */
  .work.is-live .work-nav { top: 30%; }
  .piece-reel { display: none; }
  .work.is-live .work-nav { right: 10px; }
  .n-frames { order: 2; margin-top: 48px; }
  .n-frame--a { width: 68%; }
  .n-letter { padding-top: 0; }
  .ph-note { font-size: 12px; padding: 0 8px 0 20px; }
  .letter { line-height: 1.55; }
  /* thumbs: nothing smaller than a fingertip, no grey flash on tap, no rubber-banding into the browser chrome */
  .rail button { width: 44px; height: 40px; }
  .rail ol { gap: 0; }
  .work-nav button { width: 56px; height: 36px; }
  .piece-views { gap: 10px; }
  .piece-views button { width: 60px; }
  .foot-door { margin: 56px 0 44px; }
  .foot-arch { width: 148px; }
  .foot-top { flex-direction: column; align-items: center; gap: 6px; }
  .direct { grid-template-columns: 1fr; gap: 22px; }
  /* six doors become a strip you pull sideways */
  .more-list { height: 62vh; height: 62lvh; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .more-list::-webkit-scrollbar { display: none; }
  .more-list li, .more-list li:hover, .more-list li:focus-within { flex: 0 0 74vw; scroll-snap-align: center; }
  .more-list img { filter: brightness(.86); transform: none; }
  .more-name { font-size: 1.9rem; }
  /* the covers run in one line above the title */
  .work.is-live .work-intro { justify-content: flex-end; padding-bottom: 16vh; }
  .work.is-live .work-reel:not(:empty) { display: block; top: 15%; bottom: auto; left: 0; right: 0; width: auto; height: 34vh; height: 34lvh;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
  .work-reel div { flex-direction: row; width: max-content; height: 100%; animation-name: reel-x; animation-duration: 55s; }
  .work-reel div:nth-child(2) { display: none; }
  .work-reel img { width: auto; height: 100%; margin: 0 10px 0 0; }
  .foot-top { justify-content: center; text-align: center; }
  /* a project is a column here: every picture whole, the width of the screen */
  .pv-scroller { overflow-x: hidden; overflow-y: auto; cursor: auto; -webkit-overflow-scrolling: touch; }
  .pv-row { flex-direction: column; width: 100%; height: auto; gap: 14px; padding: 8px var(--gut-r) calc(40px + env(safe-area-inset-bottom, 0px)) var(--gut); }
  .pv-intro { width: auto; padding: 5vh 0 24px; }
  .pv-img { height: auto; width: 100%; }
  .pv-img img { width: 100%; height: 100%; }
  .pv-end { width: auto; padding: 40px 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
