/* Puneet Thakkar Studio
   Layout: a dark room. A desk lamp stands at left, its beam lands on the brief card at right,
   and a frog patrols the desk edge. The studio pages wake up below once the light has been on. */

:root {
  --night: #07080c;          /* the room with the light off */
  --lit: #2c2116;            /* warm wall where the beam lands */
  --tungsten: #ffb547;       /* the bulb, primary accent */
  --tungsten-soft: #ffdc9a;
  --paper: #f2e8d5;          /* text */
  --paper-dim: #bdb19c;
  --muted: #8e8678;
  --lily: #7cc46e;           /* the frog */
  --lily-deep: #2f6b3b;
  --tongue: #ef5f5a;
  --metal: #20232b;
  --metal-hi: #3a3f4c;
  --shade-a: #2a2e38;
  --shade-b: #171a21;
  --line: rgba(242, 232, 213, .12);
  --line-strong: rgba(242, 232, 213, .24);
  --ink: #1a1209;            /* text on the bulb colour */
  --neon: #ff6f8e;           /* the sign on the wall */
  --lume: #c9ffe0;           /* watch hands in the dark */
  --mat: #14110d;            /* leather desk mat under the watches */

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --font-neon: "Tilt Neon", "Hanken Grotesk", system-ui, sans-serif;

  --fs-xs: .75rem;
  --fs-s: .875rem;
  --fs-m: 1rem;
  --fs-l: 1.2rem;
  --fs-xl: clamp(1.7rem, 2.6vw, 2.35rem);
  --fs-2xl: clamp(2.3rem, 5vw, 4.25rem);
  --fs-3xl: clamp(2.6rem, 7vw, 6.2rem);

  --gutter-l: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right, 0px));
  --floor: 104px;
  --above-floor: 76px;     /* keeps the brief clear of the frog */
  --ease-out: cubic-bezier(.2, .8, .2, 1);

  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
em { font-style: italic; }
::selection { background: var(--tungsten); color: var(--ink); }
:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px;
  background: var(--tungsten); color: var(--ink); border-radius: 6px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: var(--fs-s); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: transform .2s var(--ease-out), box-shadow .25s, background .2s, border-color .2s;
}
.btn-primary { background: var(--tungsten); color: var(--ink); box-shadow: 0 8px 28px -10px rgba(255, 181, 71, .7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -8px rgba(255, 181, 71, .85); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--paper); }
.btn-ghost:hover { border-color: var(--tungsten-soft); }
.btn-sm { padding: 9px 16px; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--tungsten-soft);
  text-decoration: underline; text-underline-offset: 3px; font-size: var(--fs-s);
}

/* ------------------------------------------------------------- the room */
.scene {
  position: relative;               /* no z-index: children share the root stacking context with .darkness */
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
  column-gap: clamp(24px, 4vw, 72px);
  align-items: center;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  padding-block: 104px calc(var(--floor) + var(--above-floor));
  overflow: hidden;
  background: var(--night);
}
.wall {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 220, 160, .025) 0 2px, transparent 2px 46px),
    radial-gradient(60% 75% at var(--lx, 70%) var(--ly, 50%), var(--lit) 0%, #17130e 42%, var(--night) 82%);
  opacity: 0;
  transition: opacity .5s ease;
}
.is-on .wall { opacity: 1; }

.beam {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
  overflow: visible; mix-blend-mode: screen; filter: blur(10px);
  opacity: 0; transition: opacity .35s ease;
}
.is-on .beam { opacity: 1; }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--floor); z-index: 0;
  background: linear-gradient(180deg, #0c0d11, #08090c);
  border-top: 1px solid rgba(242, 232, 213, .06);
  transition: background .5s, border-color .5s;
}
.is-on .floor {
  background: linear-gradient(180deg, #2a2016 0%, #17120d 35%, #0d0b09 100%);
  border-top-color: rgba(255, 210, 150, .28);
}

.chalk {
  position: absolute; z-index: 2; margin: 0; pointer-events: none;
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: rgba(242, 232, 213, .55); line-height: 1.2;
}
.chalk-1 { top: 22%; left: 44%; font-size: 1.6rem; transform: rotate(-5deg); }
.chalk-2 { top: 58%; left: 58%; font-size: 1.15rem; transform: rotate(3deg); }
.chalk-3 { top: 18%; right: 9%; font-size: 4rem; font-family: var(--font-mono); font-style: normal; color: rgba(124, 196, 110, .4); }
.was-lit .chalk { display: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em; color: var(--paper-dim);
  opacity: 0; transition: opacity .6s .8s; white-space: nowrap;
}
.is-on .scroll-cue { opacity: .75; }

/* ------------------------------------------------------------- the lamp */
.lamp-stage {
  position: relative; z-index: 45;
  align-self: end; justify-self: start;
  width: clamp(250px, 29vw, 400px);
  margin-bottom: calc(-2px - var(--above-floor));
  pointer-events: none;
}
.lamp { width: 100%; height: auto; overflow: visible; display: block; }
.lamp .anchor { fill: none; }
.lamp-shadow { fill: rgba(0, 0, 0, .55); }
.lamp-base, .lamp-collar, .lamp-neck { fill: url(#metalGrad); stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.lamp-arm { stroke: var(--metal-hi); stroke-width: 10; stroke-linecap: round; transition: stroke .5s; }
.lamp-spring { stroke: rgba(242, 232, 213, .16); stroke-width: 2; stroke-dasharray: 3 3; }
.lamp-joint { fill: var(--metal); stroke: var(--metal-hi); stroke-width: 3; }
.lamp-shade { fill: url(#shadeGrad); stroke: rgba(255, 255, 255, .08); stroke-width: 1.2; }
.lamp-shade-hi { fill: rgba(255, 255, 255, .05); transition: fill .5s; }
.lamp-mouth { fill: #0b0c10; transition: fill .3s; }
.lamp-bulb { fill: #2a2a2a; transition: fill .2s; }
.is-on .lamp-mouth { fill: #ffe7b0; }
.is-on .lamp-bulb { fill: url(#bulbGrad); filter: drop-shadow(0 0 14px #ffcf7d); }
.is-on .lamp-shade-hi { fill: rgba(255, 220, 160, .14); }
.is-on { --shade-a: #3b3330; --shade-b: #1f1b19; --metal-hi: #4b4e58; }

.lamp-face .eye-closed, .lamp-face .eye-happy, .mouth-off, .mouth-on {
  fill: none; stroke: #e9dcc4; stroke-width: 2.6; stroke-linecap: round;
}
.lamp-face { opacity: .75; transition: opacity .4s; }
.is-on .lamp-face { opacity: 1; }
.eye-white { fill: #fbf3e4; }
.pupil { fill: #14110d; }
.eye-open, .eye-happy, .mouth-on, .cheek { opacity: 0; }
.cheek { fill: #ff8f70; transition: opacity .4s; }
.is-on .eye-open, .is-on .mouth-on { opacity: 1; }
.is-on .eye-closed, .is-on .mouth-off { opacity: 0; }
.is-on .cheek { opacity: .35; }
.is-happy .eye-open { opacity: 0; }
.is-happy .eye-happy { opacity: 1; }
.is-happy .cheek { opacity: .8; }
.eye-open { transform-box: fill-box; transform-origin: center; transition: transform .08s; }
.blink .eye-open { transform: scaleY(.1); }

.zzz text { font-family: var(--font-display); font-style: italic; fill: rgba(242, 232, 213, .5); font-size: 20px; }
.zzz text:nth-child(2) { font-size: 24px; }
.zzz text:nth-child(3) { font-size: 30px; }
.zzz text { animation: zzz 3s ease-in-out infinite; }
.zzz text:nth-child(2) { animation-delay: .5s; }
.zzz text:nth-child(3) { animation-delay: 1s; }
.is-on .zzz { display: none; }
@keyframes zzz { 0%, 100% { opacity: 0; transform: translateY(6px); } 40%, 60% { opacity: 1; transform: translateY(0); } }

/* --------------------------------------------------------------- cord */
.fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 47; pointer-events: none; overflow: visible; }
.cord { fill: none; stroke: #8e8676; stroke-width: 2; stroke-linecap: round; transition: stroke .4s; }
.is-on .cord { stroke: #cbbfa8; }
.bead-halo { fill: rgba(255, 196, 110, .22); transform-box: fill-box; transform-origin: center; animation: halo 2.2s ease-in-out infinite; }
.was-lit .bead-halo { animation: none; opacity: 0; }
.fx.armed .bead-halo { animation: none; opacity: 1; transform: scale(1.5); fill: rgba(255, 196, 110, .45); }
@keyframes halo { 0%, 100% { transform: scale(.6); opacity: .9; } 50% { transform: scale(1.25); opacity: .2; } }
.tongue { fill: none; stroke: var(--tongue); stroke-width: 7; stroke-linecap: round; }
.tongue-tip { fill: #ff7b72; }
.tongue-tip.has-prey { fill: #fffbd0; filter: drop-shadow(0 0 8px #ffe48a); }

.cord-handle {
  position: absolute; left: 0; top: 0; z-index: 49;
  width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: transparent; border: 0; padding: 0; cursor: grab; touch-action: none;
}
.cord-handle:active, .grabbing .cord-handle { cursor: grabbing; }
.grabbing, .grabbing * { cursor: grabbing !important; user-select: none; }

.cord-hint {
  position: absolute; left: 0; top: 0; z-index: 49; margin: 0; pointer-events: none;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--tungsten-soft); transition: opacity .4s;
}
.cord-hint svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; animation: nudge 1.6s ease-in-out infinite; }
.cord-hint.flip { flex-direction: row-reverse; }
.cord-hint.flip svg { transform: scaleX(-1); animation: none; }
.was-lit .cord-hint { opacity: 0; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }

/* --------------------------------------------------------------- frog */
.frog {
  position: absolute; left: 0; bottom: calc(var(--floor) - 16px); z-index: 48;
  width: 96px; height: 77px; padding: 0; border: 0; background: none; cursor: pointer;
  will-change: transform; -webkit-tap-highlight-color: transparent;
}
.frog svg { width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; display: block; }
.f-shadow { fill: rgba(0, 0, 0, .45); }
.f-body, .f-leg { fill: var(--frog-body, #233127); transition: fill .5s; }
.f-belly { fill: var(--frog-belly, #2c3a2f); transition: fill .5s; }
.f-foot { fill: var(--frog-body, #233127); }
.f-eye-white { fill: #f6f0dc; }
.is-off .f-eye-white { fill: #e8e2c8; filter: drop-shadow(0 0 4px rgba(230, 240, 180, .55)); }
.f-pupil circle:first-child, .mf-pupil { fill: #101410; }
.f-glint { fill: #fff; }
.f-mouth { fill: none; stroke: #183520; stroke-width: 3; stroke-linecap: round; }
.f-cheek { fill: #ff8f84; opacity: 0; transition: opacity .5s; }
.is-on { --frog-body: var(--lily); --frog-belly: #c9e7a6; }
.is-on .f-cheek { opacity: .45; }
.f-eye { transform-box: fill-box; transform-origin: center; transition: transform .08s; }
.frog.blink .f-eye { transform: scaleY(.12); }

.frog-bubble {
  position: absolute; left: 0; top: 0; z-index: 49; margin: 0;
  max-width: min(240px, 70vw); padding: 9px 13px; border-radius: 14px 14px 14px 4px;
  background: var(--paper); color: var(--ink); font-size: var(--fs-s); font-weight: 500; line-height: 1.35;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.frog-bubble.show { opacity: 1; }

/* ------------------------------------------------------- darkness + firefly */
.darkness {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: rgba(3, 4, 7, .965);
  -webkit-mask-image: radial-gradient(circle var(--fr, 130px) at var(--fx, -400px) var(--fy, -400px), transparent 0, rgba(0, 0, 0, .12) 30%, rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, .8) 78%, #000 100%);
          mask-image: radial-gradient(circle var(--fr, 130px) at var(--fx, -400px) var(--fy, -400px), transparent 0, rgba(0, 0, 0, .12) 30%, rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, .8) 78%, #000 100%);
  opacity: 0; transition: opacity .3s ease;
}
.is-off .darkness { opacity: 1; }
.firefly {
  position: fixed; left: 0; top: 0; z-index: 60; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: #fffbd6; pointer-events: none;
  box-shadow: 0 0 10px 3px rgba(255, 238, 150, .9), 0 0 38px 14px rgba(255, 214, 100, .22);
  transition: opacity .25s;
}
.firefly::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: rgba(255, 245, 190, .5); animation: glow 1.8s ease-in-out infinite; }
.is-on .firefly { box-shadow: 0 0 8px 2px rgba(255, 238, 150, .7), 0 0 22px 8px rgba(255, 214, 100, .12); }
.firefly.caught { opacity: 0; }
@keyframes glow { 0%, 100% { transform: scale(.6); opacity: .2; } 50% { transform: scale(1.4); opacity: .8; } }
@media not all and (hover: hover) and (pointer: fine) { .firefly { display: none; } }

.sound-btn {
  position: fixed; z-index: 61;
  top: calc(16px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(7, 8, 12, .5);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--paper-dim); cursor: pointer;
  transition: opacity .3s, top .3s;
}
.sound-btn:hover { color: var(--paper); border-color: var(--line-strong); }
.was-lit .sound-btn { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  padding-block: calc(12px + env(safe-area-inset-top, 0px)) 12px;
  background: linear-gradient(180deg, rgba(7, 8, 12, .85), rgba(7, 8, 12, .55));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%); transition: transform .6s var(--ease-out) .4s, opacity .3s;
}
.was-lit .nav { transform: none; }
.was-lit.is-off .nav { opacity: .9; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1; }
.brand-role { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav-links a { text-decoration: none; font-size: var(--fs-s); color: var(--paper-dim); transition: color .2s; }
.nav-links a:hover { color: var(--tungsten-soft); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.switch { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px; cursor: pointer; }
.switch-track {
  position: relative; width: 38px; height: 22px; border-radius: 999px;
  background: #1b1d24; border: 1px solid var(--line-strong); transition: background .25s;
}
.switch-knob {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper-dim); transition: transform .25s var(--ease-out), background .25s, box-shadow .25s;
}
.is-on .switch-track { background: rgba(255, 181, 71, .25); border-color: rgba(255, 181, 71, .6); }
.is-on .switch-knob { transform: translateX(16px); background: var(--tungsten); box-shadow: 0 0 12px var(--tungsten); }
.switch-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--paper-dim); }

/* -------------------------------------------------------------- brief */
.brief {
  position: relative; z-index: 2;
  justify-self: center; width: 100%; max-width: 580px; min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 12px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 196, 110, .14), transparent 60%),
    linear-gradient(165deg, rgba(46, 36, 24, .9), rgba(19, 17, 14, .94) 65%);
  border: 1px solid rgba(255, 200, 120, .18);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 230, 180, .1);
  visibility: hidden; opacity: 0;
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.is-on .brief, .was-lit .brief { visibility: visible; opacity: 1; transition: opacity .5s ease; }

.flicker .brief, .flicker .beam, .flicker .wall, .flicker .lamp-bulb { animation: flicker .95s steps(1, end) both; }
@keyframes flicker {
  0% { opacity: 0; } 8% { opacity: .8; } 13% { opacity: .1; } 20% { opacity: .95; }
  27% { opacity: .35; } 34% { opacity: 1; } 52% { opacity: .75; } 58%, 100% { opacity: 1; }
}

.brief-head { display: grid; gap: 2px; padding-right: 130px; min-height: 46px; align-content: center; }
.avatar {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--tungsten), #c9742a);
  box-shadow: 0 0 0 2px rgba(255, 196, 110, .35);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.avatar-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--ink);
}
.no-photo img { display: none; }
.brief-name { font-weight: 600; line-height: 1.2; }
.brief-status { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--paper-dim); }
.dot { display: inline-block; vertical-align: middle; margin: -2px 7px 0 0; width: 7px; height: 7px; border-radius: 50%; background: var(--lily); box-shadow: 0 0 0 0 rgba(124, 196, 110, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(124, 196, 110, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(124, 196, 110, 0); } }

.brief-title {
  margin-top: 22px; padding-right: 96px;
  font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.06; letter-spacing: -.01em;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 96;
}
.brief-title em { color: var(--tungsten-soft); font-variation-settings: "SOFT" 100, "WONK" 1; }
.brief-sub { margin-top: 10px; color: var(--paper-dim); font-size: var(--fs-s); max-width: 46ch; }

.steps { list-style: none; padding: 0; margin: 22px 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps button {
  width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 8px 0 0; background: none; border: 0; border-top: 2px solid var(--line-strong); cursor: default;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  transition: border-color .3s, color .3s;
}
.steps b { font-weight: 500; color: inherit; opacity: .7; }
.steps button.done { border-top-color: var(--paper-dim); color: var(--paper-dim); cursor: pointer; }
.steps button[aria-current="step"] { border-top-color: var(--tungsten); color: var(--tungsten-soft); }

.step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.step.enter { animation: stepIn .45s var(--ease-out); }
.step.enter.back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-18px); } }
.step legend { font-family: var(--font-display); font-size: var(--fs-l); font-weight: 500; padding: 0; margin-bottom: 2px; float: left; width: 100%; }
.step legend + * { clear: both; }
.hint { color: var(--paper-dim); font-size: var(--fs-s); }
.sublegend { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); margin-top: 4px; }
.row-between { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input, .currency input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(0, 0, 0, .18);
  font-size: var(--fs-s); cursor: pointer; user-select: none;
  transition: background .2s, color .2s, border-color .2s, box-shadow .25s, transform .15s;
}
.chip span:hover { border-color: var(--tungsten-soft); }
.chip span:active { transform: scale(.97); }
.chip input:checked + span { background: var(--tungsten); border-color: var(--tungsten); color: var(--ink); font-weight: 600; box-shadow: 0 0 26px -8px rgba(255, 181, 71, .9); }
.chip input:focus-visible + span, .currency input:focus-visible + span { outline: 2px solid var(--tungsten); outline-offset: 2px; }

.currency { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.currency label { position: relative; }
.currency span { display: block; padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; cursor: pointer; color: var(--paper-dim); }
.currency input:checked + span { background: var(--paper); color: var(--ink); }

.field { display: grid; gap: 6px; min-width: 0; }
.field label {
  display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-dim);
}
.field label i { font-style: normal; color: var(--muted); text-transform: lowercase; }
.count { color: var(--muted); text-transform: none; letter-spacing: 0; }
.count.ok { color: var(--lily); }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .28); color: var(--paper);
  font: inherit; font-size: 15px; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--paper-dim) 50%), linear-gradient(135deg, var(--paper-dim) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #15130f; color: var(--paper); }
.field input::placeholder, .field textarea::placeholder { color: rgba(189, 177, 156, .45); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--tungsten); background: rgba(0, 0, 0, .38);
  box-shadow: 0 0 0 3px rgba(255, 181, 71, .16);
}
[aria-invalid="true"] { border-color: var(--tongue) !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.step-error { min-height: 1.3em; font-size: 13px; color: #ff9d90; }
.step-error:empty { min-height: 0; }

.form-nav { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.form-nav .btn-primary { margin-left: auto; }
.form-step-count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }

/* the pond captcha */
.pond {
  position: relative; height: 158px; border-radius: 10px; overflow: hidden; touch-action: none;
  background:
    radial-gradient(60% 90% at 20% 110%, rgba(124, 196, 110, .22), transparent 70%),
    repeating-radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .025) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #0e221c, #091512);
  border: 1px solid rgba(124, 196, 110, .28);
  transition: border-color .3s, box-shadow .3s;
}
.pond.solved { border-color: var(--lily); box-shadow: 0 0 0 3px rgba(124, 196, 110, .15); }
.pad { position: absolute; left: 14px; bottom: 8px; width: 118px; height: 30px; border-radius: 50%; background: #2c6a3a; clip-path: polygon(0 0, 46% 0, 50% 50%, 54% 0, 100% 0, 100% 100%, 0 100%); }
.mini-frog { position: absolute; left: 22px; bottom: 16px; width: 98px; height: 78px; overflow: visible; transform-origin: 50% 100%; }
.mini-frog .f-body, .mini-frog .f-leg { fill: var(--lily); }
.mini-frog .f-belly { fill: #c9e7a6; }
.mf-mouth-open { fill: #5a1f20; opacity: 0; transition: opacity .15s; }
.mini-frog.open .mf-mouth-open { opacity: 1; }
.mini-frog.open .mf-mouth-closed { opacity: 0; }
.mini-frog.gulp { animation: gulp .5s var(--ease-out); }
@keyframes gulp { 30% { transform: scale(1.08, .9); } 60% { transform: scale(.96, 1.06); } }
.fly { position: absolute; left: 0; top: 0; width: 34px; height: 34px; cursor: grab; touch-action: none; }
.fly:active { cursor: grabbing; }
.fly svg { width: 100%; height: 100%; overflow: visible; }
.fly-body { fill: #1b1e22; stroke: #4d5560; }
.fly-eye { fill: #c2463e; }
.wing { fill: rgba(220, 235, 255, .55); stroke: rgba(255, 255, 255, .5); stroke-width: .6; transform-box: fill-box; }
.w1 { transform-origin: 100% 100%; animation: flap .07s linear infinite alternate; }
.w2 { transform-origin: 0 100%; animation: flap .07s linear infinite alternate-reverse; }
@keyframes flap { to { transform: scaleY(.35); } }
.fly.eaten { transition: transform .22s ease-in, opacity .22s; opacity: 0; }
.pond-status {
  position: absolute; top: 10px; right: 12px; margin: 0;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(201, 231, 166, .7);
}
.pond.solved .pond-status { color: var(--lily); }
.math input { max-width: 140px; }

.review {
  margin: 0; max-height: 210px; overflow: auto;
  padding: 14px 16px; border-radius: 8px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: var(--paper-dim);
  white-space: pre-wrap; word-break: break-word;
}
.review .k { color: var(--tungsten-soft); }
.review .s { color: #a9d98f; }
.review .p { color: var(--muted); }
.review .n { color: var(--muted); font-style: italic; }

.brief-done { display: grid; gap: 14px; justify-items: start; padding-top: 18px; animation: stepIn .5s var(--ease-out); }
.done-mark {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: var(--lily); color: #0f2414; font-size: 26px; font-weight: 700;
  box-shadow: 0 0 40px -6px rgba(124, 196, 110, .8);
}
.brief-done h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.1; outline: none; }
.brief-done p { color: var(--paper-dim); max-width: 50ch; }
.brief-done a { color: var(--tungsten-soft); }
.demo-note { font-family: var(--font-mono); font-size: 12px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 8px; }

/* ------------------------------------------------------------- studio */
.studio { display: none; position: relative; }
.was-lit .studio { display: block; }
.container { max-width: 1200px; margin: 0 auto; }
.section {
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  padding-block: clamp(80px, 11vw, 150px);
  border-top: 1px solid var(--line);
}
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--tungsten); }
.section h2 {
  font-family: var(--font-display); font-weight: 350; font-size: var(--fs-2xl); line-height: 1.02; letter-spacing: -.02em;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}
.section h2 em { color: var(--tungsten-soft); font-weight: 300; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 8px; overflow: hidden; background: #17130e; isolation: isolate; }
.portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) sepia(.3) contrast(1.08) brightness(.82);
  transition: filter .8s ease, transform 1.2s var(--ease-out);
}
.portrait::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(80% 60% at 25% 10%, rgba(255, 200, 120, .45), transparent 60%), linear-gradient(0deg, rgba(7, 8, 12, .85), transparent 40%);
  mix-blend-mode: soft-light; transition: opacity .8s;
}
.portrait:hover img { filter: none; transform: scale(1.03); }
.portrait-fallback {
  position: absolute; inset: 0; display: none; place-items: center;
  background:
    radial-gradient(70% 55% at 30% 15%, rgba(255, 196, 110, .35), transparent 65%),
    repeating-linear-gradient(90deg, rgba(255, 220, 160, .03) 0 2px, transparent 2px 36px), #16120d;
}
.portrait-fallback span {
  font-family: var(--font-display); font-size: clamp(6rem, 16vw, 12rem); font-weight: 300; line-height: 1;
  color: var(--paper); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; letter-spacing: -.04em;
}
.portrait-fallback i { color: var(--tungsten); }
.no-photo .portrait-fallback { display: grid; }
.portrait figcaption {
  position: absolute; left: 14px; bottom: 12px; z-index: 3;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--paper-dim);
}
.about-copy { display: grid; gap: 18px; min-width: 0; }
.lede { font-size: var(--fs-l); line-height: 1.5; color: var(--paper); max-width: 34em; }
.about-copy > p:not(.lede):not(.eyebrow) { color: var(--paper-dim); max-width: 60ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 12px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; }

/* services */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.service {
  position: relative; display: grid; grid-template-rows: auto 1fr auto auto; gap: 10px;
  padding-block: 26px 34px; border-top: 1px solid var(--line-strong);
}
.service::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--tungsten);
  box-shadow: 0 0 14px var(--tungsten); transition: width .6s var(--ease-out);
}
.service:hover::before { width: 100%; }
.service h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; font-variation-settings: "SOFT" 100; }
.service p { color: var(--paper-dim); font-size: .97rem; }
.service .tags { font-family: var(--font-mono); font-size: 11.5px; color: var(--tungsten-soft); letter-spacing: .02em; }
.service .span-time { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; background: #0b0a09; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { list-style: none; display: flex; margin: 0; padding: 0; }
.marquee li {
  padding-inline: 26px; font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.4rem); color: var(--paper-dim); white-space: nowrap;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.marquee li::after { content: "✦"; font-style: normal; font-size: .5em; color: var(--tungsten); margin-left: 52px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* process */
.process-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: none; }
.process-list li { position: relative; display: grid; gap: 8px; align-content: start; padding-top: 22px; }
.process-list li::before { content: ""; position: absolute; top: 0; left: 0; right: calc(-1 * clamp(20px, 3vw, 40px)); height: 1px; background: var(--line-strong); }
.process-list li:last-child::before { right: 0; }
.process-list li::after { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--tungsten); box-shadow: 0 0 14px var(--tungsten); }
.p-num {
  font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 300; line-height: 1; font-style: italic;
  color: transparent; -webkit-text-stroke: 1px var(--tungsten-soft); font-variation-settings: "SOFT" 100, "WONK" 1;
}
.process-list h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; }
.p-when { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--tungsten); }
.process-list p:last-child { color: var(--paper-dim); font-size: .95rem; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px;
  cursor: pointer; list-style: none; font-size: 1.12rem; font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; color: var(--tungsten); transition: transform .3s var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 22px; color: var(--paper-dim); max-width: 62ch; }

/* footer */
.footer {
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  padding-block: clamp(90px, 12vw, 160px) calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: radial-gradient(70% 60% at 50% 0%, rgba(255, 181, 71, .1), transparent 70%);
}
.footer-big {
  font-family: var(--font-display); font-weight: 300; font-size: var(--fs-3xl); line-height: .98; letter-spacing: -.03em;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144; max-width: 14ch; text-wrap: balance;
}
.footer-big em { color: var(--tungsten); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line); }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 22px; }
.socials a { text-decoration: none; color: var(--paper-dim); }
.socials a:hover { color: var(--tungsten-soft); }
.email-item { color: var(--paper-dim); user-select: all; }
.copy { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* reveal on scroll where the browser supports scroll timelines; content is visible otherwise */
@supports (animation-timeline: view()) {
  .service, .process-list li, .faq-list details, .about-copy, .portrait {
    animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%;
  }
  @keyframes rise { from { opacity: .15; transform: translateY(36px); } }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .process-list li::before { right: 0; }
}
@media (max-width: 860px) {
  :root { --floor: 84px; }
  .scene {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding-block: 96px calc(var(--floor) + 48px);
  }
  .lamp-stage { width: min(230px, 62vw); margin: 0 0 10px; align-self: start; }
  .lamp-stage::after { content: ""; position: absolute; left: -10px; right: -20px; bottom: 8px; height: 1px; background: var(--line-strong); }
  html:not(.was-lit) .scene { align-content: center; }
  html:not(.was-lit) .brief { display: none; }
  html:not(.was-lit) .lamp-stage { width: min(280px, 72vw); justify-self: center; margin-left: -40px; }
  .chalk-1 { top: 14%; left: 8%; }
  .chalk-2 { top: 74%; left: 10%; }
  .chalk-3 { top: 10%; right: 6%; font-size: 3rem; }
  .about-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 420px; }
  .brand-role { display: none; }
  .was-lit .sound-btn { display: none; }
}
@media (max-width: 560px) {
  .grid-2, .facts { grid-template-columns: minmax(0, 1fr); }
  .service-grid, .process-list { grid-template-columns: minmax(0, 1fr); }
  .nav .btn-sm { display: none; }
  .form-step-count { display: none; }
  .steps button { font-size: 9.5px; letter-spacing: .06em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}


/* ============================================================ v2 additions */

/* ----- neon sign on the wall */
.neon {
  position: absolute; z-index: 2; top: 116px; left: var(--gutter-l); margin: 0;
  font-family: var(--font-neon); font-size: clamp(2rem, 3.3vw, 3.1rem); line-height: 1; letter-spacing: .02em;
  color: rgba(255, 111, 142, .16); transform: rotate(-5deg); transform-origin: left center;
  padding: 14px 22px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .04);
  background: rgba(255, 255, 255, .015); pointer-events: none; white-space: nowrap;
}
.neon::before, .neon::after {
  content: ""; position: absolute; top: -90px; width: 1px; height: 90px; background: rgba(242, 232, 213, .14);
}
.neon::before { left: 22%; }
.neon::after { right: 22%; }
.is-on .neon { color: #ffe3ea; animation: neon-on 1.4s .55s steps(1, end) both; text-shadow: 0 0 4px #fff, 0 0 10px var(--neon), 0 0 22px var(--neon), 0 0 44px var(--neon), 0 0 80px rgba(255, 111, 142, .6); }
.is-on .neon-flaky { animation: neon-flaky 7s 2.5s infinite; }
@keyframes neon-on { 0% { opacity: .2; } 12% { opacity: 1; } 18% { opacity: .2; } 30% { opacity: 1; } 36% { opacity: .35; } 48%, 100% { opacity: 1; } }
@keyframes neon-flaky { 0%, 91%, 93%, 95%, 100% { opacity: 1; } 92%, 94% { opacity: .25; } }

/* ----- polaroid pinned to the brief */
.polaroid {
  position: absolute; z-index: 3; top: -26px; right: -18px; width: 132px; padding: 9px 9px 0; border: 0; cursor: pointer;
  background: #f6f1e6; border-radius: 3px; transform: rotate(7deg); transform-origin: 50% 0;
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .8), 0 2px 4px rgba(0, 0, 0, .3);
  transition: transform .5s var(--ease-out), box-shadow .5s;
  animation: sway 6s ease-in-out infinite;
}
.polaroid:hover, .polaroid:focus-visible { animation-play-state: paused; transform: rotate(1deg) translateY(-4px) scale(1.04); box-shadow: 0 28px 40px -14px rgba(0, 0, 0, .9); }
@keyframes sway { 0%, 100% { transform: rotate(7deg); } 50% { transform: rotate(4.5deg); } }
.tape {
  position: absolute; top: -12px; left: 50%; width: 64px; height: 22px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(255, 228, 170, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  clip-path: polygon(3% 0, 97% 6%, 100% 100%, 0 94%);
}
.pol-photo { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #1c1610; }
.pol-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05) sepia(.12); }
.pol-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 30% 20%, rgba(255, 210, 140, .25), transparent 60%); mix-blend-mode: soft-light; }
.pol-fallback {
  position: absolute; inset: 0; display: none; place-items: center;
  background: radial-gradient(80% 70% at 30% 20%, rgba(255, 196, 110, .55), transparent 70%), #20190f;
  font-family: var(--font-display); font-size: 3rem; font-weight: 300; color: var(--paper); font-variation-settings: "SOFT" 100, "WONK" 1;
}
.pol-fallback i { color: var(--tungsten); }
.no-photo .pol-fallback { display: grid; }
.pol-caption { display: block; padding: 6px 2px 9px; font-family: var(--font-hand); font-size: 1.12rem; line-height: 1; color: #2a2118; text-align: center; }
.flash { position: fixed; inset: 0; z-index: 70; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }

/* ----- torch hover: a small pool of lamp light follows the pointer */
.service, .watch-mat { --mx: -400px; --my: -400px; }
.service { background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 181, 71, .09), transparent 70%); }

/* ----- the four watches */
.clocks-head { max-width: 900px; }
.you-line { font-family: var(--font-mono); font-size: 12.5px; color: var(--tungsten-soft); letter-spacing: .02em; min-height: 1.5em; }
.watch-mat {
  position: relative; border-radius: 22px; padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 48px) clamp(22px, 3vw, 36px);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 196, 110, .12), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #1d1812, var(--mat) 60%);
  border: 1px solid rgba(255, 200, 120, .1);
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .18), inset 0 0 0 7px rgba(255, 220, 160, .06), 0 40px 80px -50px #000;
}
.watch-mat::before { /* stitching around the mat */
  content: ""; position: absolute; inset: 12px; border-radius: 14px; border: 1.5px dashed rgba(255, 210, 150, .14); pointer-events: none;
}
.watch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.watch-card { --ws: clamp(150px, 16vw, 210px); display: grid; justify-items: center; gap: 16px; min-width: 0; }
.watch {
  position: relative; width: var(--ws); height: var(--ws); margin-block: calc(var(--ws) * .42);
  padding: 0; border: 0; background: none; cursor: pointer; perspective: 900px;
  transform: rotate(var(--rot, 0deg)); transition: transform .4s var(--ease-out);
}
.watch:focus-visible { outline-offset: 10px; border-radius: 50%; }
.watch-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .25s ease-out; }
.watch-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.5, -.25, .3, 1.3); }
.watch.flipped .watch-flip { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.face.back { transform: rotateY(180deg); }
.face svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .55)); }
.strap {
  position: absolute; left: 50%; width: 38%; height: 58%; transform: translateX(-50%); z-index: 0;
  -webkit-mask-image: linear-gradient(var(--fade-dir, 180deg), #000 55%, transparent);
          mask-image: linear-gradient(var(--fade-dir, 180deg), #000 55%, transparent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}
.strap.top { bottom: 72%; --fade-dir: 0deg; border-radius: 6px 6px 0 0; }
.strap.bottom { top: 72%; border-radius: 0 0 6px 6px; }
.back .strap { background: #2a2420 !important; }
.back .strap::after { display: none; }
.crystal {
  position: absolute; inset: 12%; z-index: 2; border-radius: 50%; pointer-events: none;
  background: radial-gradient(60% 60% at var(--gx, 30%) var(--gy, 25%), rgba(255, 255, 255, .22), transparent 55%),
              linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 40%);
  mix-blend-mode: screen; transition: opacity .3s;
}

/* straps, one per country */
.w-in .strap { background: linear-gradient(90deg, #ff9933 0 33.3%, #f4efe3 33.3% 66.6%, #138808 66.6%); }
.w-in .strap::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 3px); }
.w-ae .strap { background: repeating-linear-gradient(180deg, #e9c675 0 9px, #b8872f 9px 11px, #f5dc9a 11px 20px, #9a6b1f 20px 22px), #d8b05a; }
.w-ae .strap::after { content: ""; position: absolute; inset: 0 30%; background: repeating-linear-gradient(180deg, #fbe7b5 0 14px, #8a5f1a 14px 16px); }
.w-rs .strap { background: radial-gradient(circle at 30% 30%, #2c3f66, #182641 70%); }
.w-rs .strap::after { content: ""; position: absolute; inset: 0 7px; border-left: 1.5px dashed rgba(242, 232, 213, .5); border-right: 1.5px dashed rgba(242, 232, 213, .5); }
.w-us .strap { background: repeating-linear-gradient(45deg, #2e4a73 0 2px, #3d5f8f 2px 4px), #34557f; }
.w-us .strap::after { content: ""; position: absolute; inset: 0 6px; border-left: 1.5px dashed #e8913a; border-right: 1.5px dashed #e8913a; }

/* watch svg parts */
.wsvg text { text-anchor: middle; dominant-baseline: central; }
.wsvg .dev { font-family: "Noto Sans Devanagari", "Mangal", sans-serif; font-weight: 600; }
.wsvg .ar { font-family: "Noto Sans Arabic", "Geeza Pro", "Segoe UI", sans-serif; font-weight: 600; }
.wsvg .mono { font-family: var(--font-mono); }
.wsvg .sans { font-family: var(--font-body); font-weight: 600; }
.wsvg .serif { font-family: var(--font-display); }
.dial-veil { opacity: 0; transition: opacity .6s; }
.lume, .lume-stroke { transition: fill .6s, stroke .6s, filter .6s; }

/* info under each watch */
.w-info { display: grid; gap: 6px; width: 100%; max-width: 240px; text-align: center; justify-items: center; }
.w-city { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.1; font-variation-settings: "SOFT" 100; }
.w-city span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.w-you { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--lily); color: #0f2414; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; }
.w-time { font-family: var(--font-mono); font-size: 1.55rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; transition: color .5s, text-shadow .5s; }
.w-time small { font-size: .55em; color: var(--muted); margin-left: 3px; }
.w-time .w-ss { font-size: .6em; color: var(--tungsten); }
.w-meta { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--paper-dim); }
.w-sky { width: 12px; height: 12px; border-radius: 50%; background: #ffd36b; box-shadow: 0 0 10px #ffb547; flex: none; }
.w-sky.moon { background: transparent; box-shadow: inset -4px -1px 0 0 #dfe6f5; }
.w-bar { position: relative; width: 100%; height: 12px; margin-top: 6px; border-radius: 3px; background: rgba(255, 255, 255, .05); }
.w-bar span { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.w-bar .b-office { border: 1px solid rgba(242, 232, 213, .4); background: transparent; }
.w-bar .b-me { background: rgba(255, 181, 71, .28); }
.w-bar .b-overlap { background: var(--tungsten); box-shadow: 0 0 10px rgba(255, 181, 71, .6); top: 3px; bottom: 3px; }
.w-bar .b-now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--lily); border-radius: 2px; box-shadow: 0 0 6px var(--lily); }
.w-ticks { display: flex; justify-content: space-between; width: 100%; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); }
.w-status { font-size: 13px; color: var(--paper-dim); line-height: 1.4; min-height: 2.8em; }
.w-status b { color: var(--paper); font-weight: 600; }

.legend { list-style: none; margin: clamp(26px, 3vw, 40px) 0 0; padding: 18px 0 0; border-top: 1px dashed rgba(255, 210, 150, .14); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 12.5px; color: var(--paper-dim); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 22px; height: 10px; border-radius: 2px; }
.lg-office { border: 1px solid rgba(242, 232, 213, .4); }
.lg-me { background: rgba(255, 181, 71, .28); }
.lg-overlap { background: var(--tungsten); }
.lg-now { width: 2px !important; height: 16px !important; background: var(--lily); }
.lume-tip { margin-top: 18px; text-align: center; font-family: var(--font-hand); font-size: 1.35rem; color: var(--paper-dim); }

/* lights off: the watch section rises above the darkness and the lume glows */
.was-lit.is-off .clocks { position: relative; z-index: 41; background: #020304; }
.is-off .watch-mat { background: #050607; border-color: rgba(201, 255, 224, .08); }
.is-off .watch-mat::before { border-color: rgba(201, 255, 224, .06); }
.is-off .dial-veil { opacity: .93; }
.is-off .lume { fill: var(--lume) !important; filter: drop-shadow(0 0 2px #7dffbe) drop-shadow(0 0 6px rgba(93, 255, 168, .55)); }
.is-off .lume-stroke { stroke: var(--lume) !important; filter: drop-shadow(0 0 2px #7dffbe) drop-shadow(0 0 6px rgba(93, 255, 168, .55)); }
.is-off .case-veil { opacity: .8; }
.case-veil { opacity: 0; transition: opacity .6s; }
.is-off .strap { filter: brightness(.18); }
.is-off .crystal { opacity: .15; }
.is-off .w-time { color: var(--lume); text-shadow: 0 0 10px rgba(93, 255, 168, .6); }
.is-off .w-time .w-ss { color: var(--lume); }
.is-off .clocks .section-head, .is-off .w-info > :not(.w-time), .is-off .legend, .is-off .lume-tip { opacity: .35; transition: opacity .6s; }
.is-off .lume-tip { opacity: .8; color: var(--lume); }

/* ----- frog hopping across the process */
.process .container { position: relative; }
.hopper { position: relative; height: 0; }
.hopper svg {
  position: absolute; left: 0; top: -44px; width: 50px; height: 40px; overflow: visible;
  transform: translate(var(--hx, -6px), var(--hy, 0px)) rotate(var(--hr, 0deg)); transform-origin: 50% 100%;
}
.hopper .f-body, .hopper .f-leg { fill: var(--lily); }
.hopper .f-belly { fill: #c9e7a6; }
.process-list li::after {
  width: 30px; height: 11px; top: -6px; left: -6px; border-radius: 50%;
  background: #2f6b3b; box-shadow: none; transition: background .3s, box-shadow .3s;
  clip-path: polygon(0 0, 44% 0, 50% 50%, 56% 0, 100% 0, 100% 100%, 0 100%);
}
.process-list li.here::after { background: var(--lily); box-shadow: 0 0 18px rgba(124, 196, 110, .7); }

@media (max-width: 1100px) {
  .watch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .watch-card { --ws: clamp(150px, 26vw, 210px); }
  .hopper { display: none; }
}
@media (max-width: 860px) {
  .neon { top: 104px; left: auto; right: var(--gutter-r); font-size: 1.35rem; padding: 10px 12px; display: grid; justify-items: end; gap: 2px; transform: rotate(4deg); transform-origin: right center; }
  .neon::before, .neon::after { display: none; }
  html:not(.was-lit) .neon { display: none; }
  .polaroid { width: 96px; top: -20px; right: -8px; padding: 6px 6px 0; }
  .pol-caption { font-size: .9rem; padding: 4px 1px 6px; }
  .brief-head { padding-right: 92px; }
  .brief-title { padding-right: 0; }
}
@media (max-width: 560px) {
  .watch-grid { gap: 4px 10px; }
  .watch-card { --ws: min(36vw, 150px); }
  .w-time { font-size: 1.2rem; }
  .w-city { font-size: 1.1rem; }
  .w-status { font-size: 12px; }
  .watch-mat { padding-inline: 10px; }
}

/* ----- the frog wears specs, like Puneet */
.specs-lens { fill: rgba(220, 240, 255, .1); stroke: #17130f; stroke-width: 3.4; }
.specs-arm { fill: none; stroke: #17130f; stroke-width: 3.2; stroke-linecap: round; }
.specs-glint { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.6; stroke-linecap: round; transition: opacity .4s; }
.is-off .frog .specs-glint { opacity: .25; }
.is-off .frog .specs-lens, .is-off .frog .specs-arm { stroke: #3a3f36; }
.specs { transform-box: view-box; }
.frog.adjust .specs { animation: specs-push .5s var(--ease-out); }
@keyframes specs-push { 30% { transform: translateY(-4px); } 60% { transform: translateY(1px); } }
