/* Layout: James-style single long scroll of chaptered sections over a night palette; pill nav floats at the bottom */
:root {
  color-scheme: dark;
  --bg: #0D0C11;
  --bg-2: #121118;
  --panel: #18171F;
  --panel-2: #211F2A;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #F6F2EA;
  --ink-2: #ABA6B3;
  --ink-3: #6F6A7A;
  --sun: #F5B942;
  --sun-2: #FFD889;
  --sky: #74B7FF;
  --mint: #62D5A8;
  --coral: #FF7A5C;
  --lilac: #ACA0FF;
  --rose: #FF8FB1;

  --f-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 56px), env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 90; background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
::selection { background: var(--sun); color: #1A1306; }
:focus-visible { outline: 2px solid var(--sun-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
section { position: relative; }

/* section heads, James-style: kicker, big bold headline with a marker-highlighted phrase, short sub */
.sec-head { display: grid; gap: 14px; max-width: 860px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.kicker { font-family: var(--f-body); font-size: 0.96rem; line-height: 1; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.sec-head h2, .h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.3rem, 5.6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.035em; }
.sec-head p.sub { color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 56ch; }
.hl { --hlc: rgba(245,185,66,.42); background-image: linear-gradient(var(--hlc), var(--hlc)); background-repeat: no-repeat; background-size: calc(var(--hlp, 1) * 100%) 46%; background-position: 0 92%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; border-radius: .2em; transition: background-size .9s var(--ease); }
.hl.b-sun { --hlc: rgba(245,185,66,.42); } .hl.b-sky { --hlc: rgba(116,183,255,.42); } .hl.b-mint { --hlc: rgba(98,213,168,.38); } .hl.b-coral { --hlc: rgba(255,122,92,.42); } .hl.b-lilac { --hlc: rgba(172,160,255,.42); }
.hand { font-family: var(--f-body); font-weight: 600; }

/* torn paper edges between sections */
.torn::before, .torn-bot::after { content: ""; position: absolute; left: 0; right: 0; height: 22px; z-index: 3; pointer-events: none; background: var(--bg-2);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 22' preserveAspectRatio='none'><path d='M0 22 L0 9 L40 13 L75 6 L120 12 L160 4 L210 11 L250 7 L300 14 L345 5 L390 10 L440 3 L480 12 L530 8 L575 14 L620 6 L670 11 L710 4 L760 12 L800 7 L850 13 L900 5 L940 10 L990 3 L1035 12 L1080 6 L1130 11 L1170 5 L1200 9 L1200 22 Z' fill='black'/></svg>") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 22' preserveAspectRatio='none'><path d='M0 22 L0 9 L40 13 L75 6 L120 12 L160 4 L210 11 L250 7 L300 14 L345 5 L390 10 L440 3 L480 12 L530 8 L575 14 L620 6 L670 11 L710 4 L760 12 L800 7 L850 13 L900 5 L940 10 L990 3 L1035 12 L1080 6 L1130 11 L1170 5 L1200 9 L1200 22 Z' fill='black'/></svg>") center / 100% 100% no-repeat; }
.torn::before { top: -21px; }
.torn-bot::after { bottom: -21px; transform: scaleY(-1); }
.tone-2 { background: var(--bg-2); }
.tone-2.torn::before, .tone-2.torn-bot::after { background: var(--bg-2); }
.tone-1.torn::before, .tone-1.torn-bot::after { background: var(--bg); }
.tone-1 { background: var(--bg); }

/* ---------- floating chrome ---------- */
.chrome { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: max(14px, env(safe-area-inset-left, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); z-index: 60; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.chrome > * { pointer-events: auto; }
.me-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: radial-gradient(circle at 30% 25%, #3A2E1A, #17151C 70%); display: grid; place-items: center; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: -0.04em; color: var(--sun-2); box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .2s var(--ease-out); }
.chrome-r { display: flex; gap: 8px; }
.round { height: 46px; min-width: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(24,23,31,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .3s, background-color .3s; }
.round:hover { border-color: var(--sun); }
.round.icon { padding: 0; width: 46px; }
.round svg { width: 18px; height: 18px; }
.round .eq { display: inline-flex; gap: 2px; align-items: end; height: 14px; }
.round .eq i { width: 3px; background: var(--sun); border-radius: 2px; height: 14px; transform: scaleY(.29); transform-origin: 50% 100%; }
.round.playing .eq i { animation: eqb 0.9s ease-in-out infinite; }
.round .eq i:nth-child(2) { animation-delay: -.3s; } .round .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eqb { 0%, 100% { transform: scaleY(.29); } 50% { transform: scaleY(1); } }

/* bottom pill nav */
.dock { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: rgba(24,23,31,.78); border: 1px solid var(--line-2); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 18px 50px rgba(0,0,0,.5); max-width: calc(100vw - 24px); }
.dock a { position: relative; z-index: 1; text-decoration: none; padding: 11px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: color .3s; display: inline-flex; align-items: center; gap: 6px; }
.dock a.on { color: var(--ink); }
.dock a.cv { background: var(--sun); color: #1A1306; margin-left: 4px; }
.dock a.cv:hover { background: var(--sun-2); }
.dock .ind { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: rgba(255,255,255,.09); transition: transform .25s var(--ease-out), opacity .2s; opacity: 0; }
.dock .ind.on { opacity: 1; }
@media (max-width: 560px) { .dock a { padding: 10px 11px; font-size: 13px; } .dock a[data-k="home"] { display: none; } }

/* ---------- HERO: Dubai night ---------- */
.valley { height: 150vh; height: 150svh; }
/* the story slides up over the hero like a sheet */
.story { position: relative; z-index: 5; margin-top: -50vh; margin-top: -50svh; border-radius: 32px 32px 0 0; box-shadow: 0 -24px 60px rgba(0,0,0,.55); background: var(--bg); }
.story::after { content: ""; position: absolute; left: 50%; top: 12px; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: rgba(255,255,255,.14); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #070816; }
.scene { position: absolute; inset: 0; }
.scene .ly { position: absolute; inset: -4%; will-change: transform; transform-origin: 62% 70%; }
.scene .ly svg { width: 100%; height: 100%; display: block; }
.hero-copy { position: absolute; z-index: 5; left: var(--gutter); top: calc(clamp(84px, 13vh, 130px) + env(safe-area-inset-top, 0px)); max-width: min(640px, calc(100vw - 32px)); pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hey { font-family: var(--f-body); font-size: 1.02rem; color: #E7DFD3; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.hey svg { width: 28px; height: 28px; transform-origin: 70% 80%; animation: wave 2.6s ease-in-out .6s 2; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
.hero-copy h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 0.96; letter-spacing: -0.04em; margin-top: 10px; text-shadow: 0 4px 40px rgba(0,0,0,.55); }
.strike { position: relative; display: inline-block; }
.strike svg { position: absolute; left: -4%; width: 108%; top: 50%; height: 0.5em; transform: translateY(-40%); overflow: visible; pointer-events: none; }
.hero-copy .sub { margin-top: 16px; font-size: clamp(1rem, 1.4vw, 1.15rem); color: #D9D2C6; max-width: 40ch; text-shadow: 0 2px 20px rgba(0,0,0,.7); }
.hint-place { position: absolute; z-index: 6; font-family: var(--f-body); font-size: 0.81rem; color: #EADFCB; pointer-events: none; display: flex; gap: 6px; align-items: center; transform: rotate(-4deg); font-weight: 500; }
.cue { position: absolute; z-index: 6; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; font-family: var(--f-body); font-size: 0.78rem; color: #E7DFD3; pointer-events: none; font-weight: 500; }
.cue i { width: 22px; height: 34px; border-radius: 12px; border: 2px solid rgba(231,223,211,.7); position: relative; }
.cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: #E7DFD3; animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.fade-out { position: absolute; inset: 0; z-index: 7; background: var(--bg); opacity: 0; pointer-events: none; }

/* place pins */
.places { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.pin { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; border: 0; background: none; padding: 0; cursor: pointer; display: grid; justify-items: center; gap: 6px; }
.pin .chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(16,15,22,.82); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 22px rgba(0,0,0,.45); transition: transform .2s var(--ease-out), border-color .2s; }
.pin .tile { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 10px; color: #120F08; background: var(--c, var(--sun)); }
.pin .yr { font-weight: 500; color: var(--ink-2); font-size: 12px; }
.pin .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--sun)); box-shadow: 0 0 0 4px rgba(0,0,0,.35), 0 0 18px var(--c, var(--sun)); position: relative; }
.pin .dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c, var(--sun)); animation: pinp 2.4s infinite; opacity: 0; }
@keyframes pinp { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.pin.on .chip { transform: translateY(-3px) scale(1.05); border-color: var(--c, var(--sun)); }

/* place sheet */
.sheet { position: absolute; z-index: 8; right: var(--gutter-r); top: 50%; width: min(400px, calc(100vw - 32px)); transform: translate(30px, -50%); opacity: 0; pointer-events: none; transition: transform .28s var(--ease-out), opacity .2s; background: rgba(20,19,27,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line-2); border-radius: 24px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6); display: grid; gap: 12px; max-height: 76vh; overflow: auto; }
.sheet.on { transform: translate(0, -50%); opacity: 1; pointer-events: auto; }
.sheet .s-top { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.sheet .s-top .tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; color: #120F08; background: var(--c, var(--sun)); }
.sheet .s-top em { margin-left: auto; font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.sheet h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.05; }
.sheet .role { color: var(--c, var(--sun)); font-weight: 600; font-size: 14px; }
.sheet .lead { color: var(--ink-2); }
.sheet ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sheet li { padding-left: 18px; position: relative; color: var(--ink-2); font-size: 15px; }
.sheet li::before { content: "→"; position: absolute; left: 0; color: var(--c, var(--sun)); }
.sheet .nums { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet .nums span { padding: 8px 12px; border-radius: 12px; background: var(--panel-2); font-size: 13px; color: var(--ink-2); }
.sheet .nums b { display: block; font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); }
.sheet .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; font-size: 18px; line-height: 1; }
.sheet .go { font-weight: 700; color: var(--sun-2); text-decoration: none; }
@media (max-width: 760px) { .sheet { top: auto; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); right: 16px; left: 16px; width: auto; transform: translateY(30px); max-height: 56vh; } .sheet.on { transform: none; } }

/* ---------- STORY ---------- */
.story { padding-block: clamp(110px, 16vw, 200px); }
.tell-box { position: relative; max-width: 980px; }
@media (min-width: 1021px) { .tell-box { max-width: min(980px, 66%); } }
.tell { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.16; letter-spacing: -0.03em; }
.tell .w { color: var(--ink-3); transition: color .35s; }
.tell .w.lit { color: var(--ink); }
.doodles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.doodles path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.notes-free { position: absolute; inset: 0; pointer-events: none; }
.stk { position: absolute; width: 210px; padding: 16px 16px 18px; font-family: var(--f-body); font-size: 0.87rem; line-height: 1.1; color: #1D1A12; box-shadow: 0 16px 34px rgba(0,0,0,.45); cursor: grab; pointer-events: auto; touch-action: none; user-select: none; border-radius: 3px; font-weight: 500; }
.stk:active { cursor: grabbing; }
.stk::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgba(255,255,255,.35); transform: rotate(-3deg); }
.stk small { display: block; font-family: var(--f-body); font-size: 12px; font-weight: 600; margin-top: 8px; opacity: .65; }
.stk .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.stk .chips span { font-family: var(--f-body); font-size: 11px; font-weight: 700; padding: 4px 7px; border-radius: 6px; background: rgba(0,0,0,.12); }
.move-hint { font-family: var(--f-body); font-size: 0.81rem; color: var(--ink-2); position: absolute; transform: rotate(-5deg); font-weight: 500; }
@media (max-width: 1020px) { .notes-free { position: relative; display: flex; flex-wrap: wrap; gap: 18px; margin-top: 48px; } .stk { position: relative; left: auto !important; top: auto !important; } .move-hint { position: relative; left: auto !important; top: auto !important; width: 100%; } }

/* ---------- JOURNEY ---------- */
.journey { background: var(--bg-2); }
.j-track { position: relative; }
.j-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.mapview { position: absolute; inset: 0; perspective: 1400px; perspective-origin: 50% 40%; background: #0A0C14; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.world > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 60%; will-change: transform; }
.mk { position: absolute; transform: translate(-50%, -100%); border: 0; background: none; padding: 0; cursor: pointer; display: grid; justify-items: center; gap: 4px; }
.mk .nm { padding: 6px 12px; border-radius: 999px; background: rgba(13,12,17,.88); border: 1px solid var(--c); font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--ink); transition: transform .22s var(--ease-out), background-color .2s; transform-origin: 50% 100%; }
.mk .pinhead { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); box-shadow: 0 6px 18px rgba(0,0,0,.6); display: grid; place-items: center; }
.mk .pinhead::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0D0C11; }
.mk.on .nm { background: var(--c); color: #120F08; transform: scale(1.12); }
.mk.seen .pinhead { box-shadow: 0 0 0 6px rgba(255,255,255,.06), 0 0 24px var(--c); }
.j-head { position: absolute; z-index: 5; left: 0; right: 0; top: calc(clamp(72px, 12vh, 120px) + env(safe-area-inset-top, 0px)); pointer-events: none; }
.j-head .sec-head { pointer-events: auto; }
.j-fade { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(90% 60% at 50% 34%, rgba(10,12,20,.92), rgba(10,12,20,.55) 70%, rgba(10,12,20,.8)); }
.j-start { position: absolute; z-index: 6; left: 50%; top: 58%; transform: translate(-50%, -50%); }
.btn-glass { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; background: rgba(36,34,46,.85); border: 1px solid var(--line-2); box-shadow: 0 0 0 6px rgba(255,255,255,.04), 0 20px 50px rgba(0,0,0,.5); font-weight: 700; font-size: 1.05rem; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .2s var(--ease-out), border-color .2s; text-decoration: none; }
.jcard { position: absolute; z-index: 6; left: var(--gutter); bottom: calc(110px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100vw - 32px)); background: rgba(22,21,29,.94); border: 1px solid var(--line-2); border-radius: 24px; padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transform: translateY(16px); transition: opacity .2s, transform .28s var(--ease-out); pointer-events: none; max-height: calc(100svh - 230px); overflow: auto; }
.jcard.on { opacity: 1; transform: none; pointer-events: auto; }
.jc-top { display: flex; align-items: center; gap: 10px; }
.jc-top .tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 12px; color: #120F08; background: var(--c); }
.jc-top b { font-size: 14px; } .jc-top .where { color: var(--ink-3); font-size: 13px; display: block; }
.jc-top em { margin-left: auto; font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.jcard h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1.08; margin-top: 14px; }
.jcard .txt { color: var(--ink-2); margin-top: 8px; font-size: 15.5px; }
.jcard .more { display: none; margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.jcard.open .more { display: block; }
.jc-more { margin-top: 12px; border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.jc-nums { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jc-nums span { padding: 8px 12px; border-radius: 12px; background: var(--panel-2); font-size: 12.5px; color: var(--ink-2); }
.jc-nums b { display: block; font-family: var(--f-display); font-size: 1.2rem; color: var(--ink); }
.jc-gal { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.jc-gal img { width: 140px; height: 96px; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.jc-link { display: inline-block; margin-top: 12px; color: var(--sun-2); font-weight: 700; text-decoration: none; }
.jcar { position: absolute; z-index: 7; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(22,21,29,.9); border: 1px solid var(--line-2); opacity: 0; pointer-events: none; transition: opacity .3s; }
.jcar.on { opacity: 1; pointer-events: auto; }
.jcar button { white-space: nowrap; border: 0; background: var(--panel-2); color: var(--ink); height: 42px; min-width: 42px; border-radius: 999px; cursor: pointer; font-weight: 700; padding: 0 14px; }
.jcar button.nx { background: var(--sun); color: #1A1306; }
.jcar span { white-space: nowrap; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); padding: 0 8px; }
.mapctl { position: absolute; z-index: 7; right: var(--gutter-r); bottom: calc(110px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; opacity: 0; transition: opacity .3s; }
.mapctl.on { opacity: 1; }
.mapctl .grp { display: grid; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
.mapctl button { width: 42px; height: 42px; border: 0; background: rgba(22,21,29,.9); color: var(--ink); cursor: pointer; font-size: 18px; }
.mapctl .grp button + button { border-top: 1px solid var(--line-2); }
.mapctl .solo { border-radius: 14px; border: 1px solid var(--line-2); }
.compass { position: absolute; z-index: 7; right: var(--gutter-r); top: calc(86px + env(safe-area-inset-top, 0px)); width: 52px; height: 52px; border-radius: 50%; background: rgba(22,21,29,.9); border: 1px solid var(--line-2); display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.compass.on { opacity: 1; }
.compass svg { width: 40px; height: 40px; transition: transform .2s linear; }
.jtl { position: absolute; z-index: 7; left: 50%; top: calc(26px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 999px; background: rgba(22,21,29,.9); border: 1px solid var(--line-2); opacity: 0; pointer-events: none; transition: opacity .3s; }
.jtl.on { opacity: 1; pointer-events: auto; }
.jtl ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.jtl li button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: transform .3s, background-color .3s; }
.jtl li button.on { background: var(--sun); transform: scale(1.4); }
.jtl li button.seen { background: var(--ink-3); }
.jtl .yr { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; min-width: 92px; text-align: right; }
@media (max-width: 760px) {
  .jcard { left: 16px; right: 16px; width: auto; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); max-height: 44svh; }
  .jcar { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .mapctl { display: none; }
  .jtl .yr { display: none; }
}

/* ---------- WORK: box of cards ---------- */
.work { background: var(--bg); }
.work .wrap.top { padding-top: clamp(100px, 13vw, 160px); }
.box-track { position: relative; height: 300vh; }
.box-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; perspective: 1600px; }
.box3 { position: relative; width: min(1100px, 92vw); height: min(560px, 62vh); transform-style: preserve-3d; }
.crate { position: absolute; left: 50%; bottom: 0; width: 420px; height: 210px; margin-left: -210px; transform-style: preserve-3d; transform: rotateX(16deg); }
.crate .face { position: absolute; border-radius: 6px; background: linear-gradient(180deg, #3B2F22, #2A2219); border: 1px solid rgba(255,216,137,.18); }
.crate .front { inset: 0; transform: translateZ(110px); background: linear-gradient(180deg, #4A3A28, #33291D); display: grid; place-items: center; }
.crate .front span { font-family: var(--f-body); font-size: 1.2rem; color: var(--sun-2); transform: rotate(-3deg); font-weight: 500; }
.crate .back { inset: 0; transform: translateZ(-110px); }
.crate .lid { left: 0; right: 0; height: 220px; top: 0; transform-origin: 50% 0; transform: translateZ(-110px) rotateX(90deg); background: linear-gradient(180deg, #55432E, #3A2E20); }
.box-shadow { position: absolute; left: 50%; bottom: -30px; width: 560px; height: 60px; margin-left: -280px; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }
.wk { position: absolute; left: 50%; bottom: 60px; width: 230px; height: 320px; margin-left: -115px; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d; perspective: 1000px; }
.wk .face2 { position: absolute; inset: 0; border-radius: 20px; padding: 18px; display: grid; align-content: space-between; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .5s var(--ease-out); text-align: left; box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.wk .fr { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); }
.wk .bk { background: linear-gradient(160deg, #2B2416, #1E1A12); border: 1px solid rgba(245,185,66,.3); transform: rotateY(180deg); }
.wk.flip .fr { transform: rotateY(-180deg); } .wk.flip .bk { transform: rotateY(0); }
.wk-top { display: flex; justify-content: space-between; align-items: center; }
.wk-top .tile { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 12px; color: #120F08; background: var(--c); }
.wk-top em { font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.wk-hand { font-family: var(--f-body); font-size: 0.96rem; color: var(--ink-2); line-height: 1; font-weight: 500; }
.wk-big { font-family: var(--f-display); font-weight: 800; font-size: 3.2rem; letter-spacing: -0.04em; line-height: 1; color: var(--c); margin-top: 6px; }
.wk-mid { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1.05; letter-spacing: -0.02em; margin-top: 6px; }
.wk-sub { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.wk .bk p.k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sun); }
.wk .bk ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.wk .bk li { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.wk .bk li b { color: var(--ink); }
.wk .go { font-weight: 700; color: var(--sun-2); font-size: 14px; }
.wk .soon { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.pick { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); font-family: var(--f-body); font-size: 0.9rem; color: var(--ink-2); opacity: 0; font-weight: 500; }
@media (max-width: 860px) {
  .box-track { height: auto; }
  .box-stage { position: relative; height: auto; display: block; overflow: visible; perspective: none; padding-block: 40px 120px; }
  .box3 { width: 100%; max-width: 100%; height: auto; display: flex; gap: 14px; overflow-x: auto; padding: 10px var(--gutter) 20px; scroll-snap-type: x mandatory; }
  .crate, .box-shadow, .pick { display: none; }
  .wk { position: relative; left: auto; bottom: auto; margin: 0; flex: none; scroll-snap-align: center; transform: none !important; }
}

/* ---------- BRANDS ---------- */
.brand-sec { background: var(--bg-2); padding-block: clamp(90px, 11vw, 140px); }
.brand-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: end; }
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.svc > div { border-radius: 22px; padding: 24px; min-height: 230px; display: grid; align-content: space-between; gap: 18px; background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.svc > div::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: .22; }
.svc h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; }
.svc p { color: var(--ink-2); font-size: 15px; }
.svc .n { font-family: var(--f-body); font-size: 0.9rem; color: var(--c); font-weight: 500; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } }
.btn-sun { display: inline-flex; align-items: center; gap: 8px; padding: 15px 24px; border-radius: 999px; background: var(--sun); color: #1A1306; font-weight: 700; text-decoration: none; transition: transform .2s var(--ease-out), background-color .2s; }

/* ---------- STACK: gift ---------- */
.stack { background: var(--bg); }
.stack-track { height: 260vh; position: relative; }
.stack-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; padding-top: calc(clamp(80px, 11vh, 120px) + env(safe-area-inset-top, 0px)); }
.gift-stage { position: relative; }
.gift { position: absolute; left: 50%; top: 50%; width: 150px; height: 130px; margin: -40px 0 0 -75px; }
.gift .gb { position: absolute; inset: 30px 0 0; border-radius: 10px; background: linear-gradient(180deg, #E0A436, #B57A1C); box-shadow: inset 0 -10px 20px rgba(0,0,0,.25), 0 24px 50px rgba(0,0,0,.5); }
.gift .gb::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 22px; margin-left: -11px; background: var(--coral); }
.gift .gl { position: absolute; left: -10px; right: -10px; top: 6px; height: 34px; border-radius: 8px; background: linear-gradient(180deg, #F2BB4E, #CF8F27); box-shadow: 0 8px 20px rgba(0,0,0,.35); transform-origin: 50% 100%; }
.gift .gl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 22px; margin-left: -11px; background: var(--coral); }
.gift .bow { position: absolute; left: 50%; top: -22px; width: 70px; height: 34px; margin-left: -35px; }
.gift .bow::before, .gift .bow::after { content: ""; position: absolute; top: 4px; width: 32px; height: 26px; border: 7px solid var(--coral); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.gift .bow::before { left: 0; transform: rotate(-18deg); } .gift .bow::after { right: 0; transform: rotate(18deg); }
.beam { position: absolute; left: 50%; top: 50%; width: 260px; height: 100vh; margin-left: -130px; transform-origin: 50% 0; background: linear-gradient(180deg, rgba(245,185,66,.35), transparent 70%); clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%); transform: translateY(-100%) rotate(180deg); opacity: 0; filter: blur(6px); }
.burst { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; box-shadow: 0 0 120px 60px rgba(245,185,66,.25); opacity: 0; }
.confetti i { position: absolute; left: 50%; top: 50%; width: 8px; height: 12px; border-radius: 2px; opacity: 0; }
.ring { position: absolute; inset: 0; }
.tool { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.2); opacity: 0; border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 6px; cursor: default; }
.tool .ti { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(180deg, #FBF8F2, #E9E4DA); box-shadow: 0 12px 26px rgba(0,0,0,.45), inset 0 1px 0 #fff; transition: transform .35s var(--spring), box-shadow .3s; }
.tool .ti svg { width: 30px; height: 30px; fill: var(--c, #141218); }
.tool:hover .ti, .tool:focus-visible .ti { box-shadow: 0 16px 30px rgba(0,0,0,.5), 0 0 0 3px color-mix(in srgb, var(--c) 55%, transparent); }
.tool .tn { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tool:hover .ti, .tool:focus-visible .ti { transform: scale(1.15) rotate(-6deg); }
.gift-cap { position: absolute; left: 50%; top: calc(50% + 120px); transform: translateX(-50%); width: min(420px, 86vw); text-align: center; color: var(--ink-2); font-size: 15px; min-height: 3em; }
.gift-cap b { color: var(--ink); display: block; font-family: var(--f-display); font-size: 1.15rem; }
@media (max-width: 760px) { .tool .ti { width: 46px; height: 46px; border-radius: 14px; } .tool .ti svg { width: 24px; height: 24px; } .tool .tn { display: none; } .tool .tn { font-size: 11px; } }

/* ---------- PROCESS ---------- */
.process { background: var(--bg-2); padding-block: clamp(100px, 13vw, 170px); }
.proc { position: relative; margin-top: 70px; height: 420px; }
.proc svg.line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pnode { position: absolute; width: 170px; transform: translate(-50%, 0); display: grid; gap: 6px; justify-items: center; text-align: center; }
.pnode .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--bg-2); border: 3px solid var(--c, var(--mint)); box-shadow: 0 0 0 6px rgba(98,213,168,.08); }
.pnode b { font-family: var(--f-display); font-size: 1.05rem; line-height: 1.15; }
.pnode span { color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.pnode.up .dot { order: 3; }
.pnode.up b { order: 1; } .pnode.up span:not(.dot) { order: 2; }
@media (max-width: 960px) {
  .proc { height: auto; display: grid; gap: 22px; padding-left: 34px; }
  .proc svg.line { display: none; }
  .proc::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--mint), var(--sky)); border-radius: 2px; }
  .pnode { position: relative; left: auto !important; top: auto !important; transform: none; width: auto; justify-items: start; text-align: left; }
  .pnode .dot { position: absolute; left: -34px; top: 2px; }
}

/* ---------- LIFE board ---------- */
.life { background: var(--bg); padding-block: clamp(100px, 13vw, 170px); }
.board { position: relative; height: 760px; margin-top: 50px; border-radius: 28px; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0) 0 0 / 22px 22px, var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.bi { position: absolute; cursor: grab; touch-action: none; user-select: none; box-shadow: 0 18px 40px rgba(0,0,0,.5); transition: box-shadow .3s; }
.bi:active { cursor: grabbing; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.bi.card { border-radius: 20px; background: var(--panel); border: 1px solid var(--line-2); padding: 18px; }
.bi h4 { margin: 0 0 8px; font-family: var(--f-display); font-size: 1.05rem; }
.bi ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.bi li { color: var(--ink-2); font-size: 14.5px; padding-left: 16px; position: relative; }
.bi li::before { content: "•"; position: absolute; left: 0; color: var(--sun); }
.polaroid { background: #F3EEE4; padding: 12px 12px 14px; border-radius: 4px; width: 230px; }
.polaroid .ph { aspect-ratio: 1; border-radius: 2px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #3B2F1F, #14121A); font-family: var(--f-display); font-weight: 800; font-size: 4rem; color: var(--sun-2); letter-spacing: -0.05em; position: relative; overflow: hidden; }
.polaroid .ph .bars { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 3px; justify-content: center; align-items: end; height: 36px; }
.polaroid .ph .bars i { width: 4px; border-radius: 2px; background: var(--sun); opacity: .7; animation: eqb 1.2s ease-in-out infinite; }
.polaroid { width: 260px; }
.polaroid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.polaroid p { font-family: var(--f-body); font-size: 0.84rem; color: #2A2620; text-align: center; margin-top: 8px; font-weight: 500; }
.pass { width: 330px; border-radius: 18px; overflow: hidden; background: #F4F0E8; color: #1E1B16; }
.pass .top { background: linear-gradient(90deg, #B5121B, #8E0E15); color: #fff; padding: 10px 16px; display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; }
.pass .mid { display: flex; justify-content: space-between; align-items: center; padding: 16px; }
.pass .mid b { font-family: var(--f-display); font-size: 2rem; display: block; line-height: 1; }
.pass .mid small { font-size: 12px; color: #6A645A; }
.pass .bot { display: flex; justify-content: space-between; padding: 0 16px 14px; font-size: 12px; color: #6A645A; border-top: 2px dashed #D9D2C4; padding-top: 10px; }
.pass .bot b { display: block; color: #1E1B16; font-size: 14px; }
.music { width: 300px; }
.music .row { display: flex; align-items: center; gap: 14px; }
.music .disc { width: 64px; height: 64px; border-radius: 50%; background: repeating-radial-gradient(circle, #1A1920 0 2px, #26242E 2px 4px); position: relative; animation: spin 6s linear infinite; animation-play-state: paused; }
.music.playing .disc { animation-play-state: running; }
.music .disc::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: var(--sun); }
@keyframes spin { to { transform: rotate(360deg); } }
.music a, .music button { display: inline-flex; margin-top: 12px; color: var(--sun-2); font-weight: 700; text-decoration: none; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; }
.stk2 { width: 220px; padding: 16px; font-family: var(--f-body); font-size: 0.9rem; line-height: 1.1; color: #1D1A12; border-radius: 3px; font-weight: 500; }
.board-hint { position: absolute; right: 26px; bottom: 20px; font-family: var(--f-body); font-size: 0.81rem; color: var(--ink-3); pointer-events: none; font-weight: 500; }
@media (max-width: 860px) { .board { height: auto; display: flex; flex-wrap: wrap; gap: 18px; padding: 24px; justify-content: center; } .bi { position: relative; left: auto !important; top: auto !important; } .board-hint { position: relative; right: auto; bottom: auto; width: 100%; text-align: center; } .pass, .music { width: 100%; max-width: 340px; } }

/* ---------- NOTES wall ---------- */
.notes { background: var(--bg-2); padding-block: clamp(100px, 13vw, 170px); }
.wall { position: relative; margin-top: 44px; min-height: 360px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.nt { border-radius: 4px; padding: 16px 16px 18px; color: #1D1A12; box-shadow: 0 16px 30px rgba(0,0,0,.4); transform: rotate(var(--r, 0deg)); display: grid; gap: 10px; align-content: start; position: relative; transition: transform .4s var(--spring); }
.nt::before { content: ""; position: absolute; top: -8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--coral); box-shadow: 0 3px 6px rgba(0,0,0,.4); }
.nt p { font-family: var(--f-body); font-size: 0.87rem; line-height: 1.12; overflow-wrap: anywhere; font-weight: 500; }
.nt .who { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.nt .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: rgba(0,0,0,.14); flex: none; }
.nt .who b { display: block; font-size: 14px; }
.nt .who span { opacity: .7; }
.wall-empty { display: grid; place-items: center; min-height: 160px; border: 1px dashed var(--line-2); border-radius: 20px; padding: 30px; text-align: center; color: var(--ink-2); }
.wall-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-2); background: none; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-ghost:hover { border-color: var(--sun); }
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(5,5,8,.7); backdrop-filter: blur(6px); padding: 16px; }
.modal[hidden] { display: none; }
.mbox { width: min(460px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 26px; padding: 24px; display: grid; gap: 14px; position: relative; }
.mbox h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.02em; }
.mbox label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mbox label em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.mbox input, .mbox textarea { font: inherit; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; }
.mbox textarea { min-height: 96px; resize: vertical; font-family: var(--f-body); font-size: 0.81rem; font-weight: 500; }
.mbox .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mbox .avrow { display: flex; align-items: center; gap: 12px; }
.mbox .avbig { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #1D1A12; }
.mbox .err { color: var(--coral); font-size: 14px; min-height: 1.2em; }
.mbox .x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; font-size: 18px; }
.colors { display: flex; gap: 8px; }
.colors button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.colors button[aria-pressed="true"] { border-color: var(--ink); }

/* ---------- HELLO ---------- */
.hello { position: relative; overflow: hidden; padding-top: clamp(120px, 16vw, 200px); padding-bottom: calc(clamp(160px, 18vw, 240px) + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, var(--bg) 0%, #120F1E 40%, #2A1B2E 75%, #4A2A2A 100%); text-align: center; }
.hello h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 7vw, 6rem); line-height: .96; letter-spacing: -0.04em; max-width: 12em; margin-inline: auto; }
.hello p.sub { color: var(--ink-2); margin-top: 18px; font-size: 1.15rem; }
.keys-hint { margin-top: 34px; font-family: var(--f-body); font-size: 0.84rem; color: var(--ink-2); display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; font-weight: 500; }
kbd { font-family: var(--f-mono); font-size: 13px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); }
.keys { margin-top: 40px; display: flex; justify-content: center; gap: clamp(12px, 3vw, 36px); flex-wrap: wrap; }
.kw { display: grid; justify-items: center; gap: 12px; width: 170px; }
.key { width: 96px; height: 96px; border-radius: 22px; display: grid; place-items: center; text-decoration: none; cursor: pointer; border: 0; padding: 0; position: relative; background: linear-gradient(180deg, #2C2A36, #1B1A22); box-shadow: 0 10px 0 #0B0A0F, 0 18px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); transition: transform .12s, box-shadow .12s; }
.key .cap { font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; color: var(--c, var(--sun)); }
.key.down, .key:active { transform: translateY(8px); box-shadow: 0 2px 0 #0B0A0F, 0 8px 20px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12); }
.knote { font-size: 14px; color: var(--ink-2); line-height: 1.35; min-height: 2.7em; }
.knote b { color: var(--ink); display: block; font-size: 15px; }
.dunes { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 16vw, 220px); pointer-events: none; }
.dunes svg { width: 100%; height: 100%; }
.foot { position: absolute; left: 0; right: 0; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 2; font-family: var(--f-mono); font-size: 12px; color: rgba(246,242,234,.55); }

@media (prefers-reduced-motion: reduce) {
  /* gentler, not zero: colour and opacity still fade; movement and loops stop */
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-property: opacity, color, background-color, border-color, box-shadow !important; transition-duration: .15s !important; }
}

/* ---------- studio hero ---------- */
.stage { background: #0A090D; }
.hero-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.5) 28%, rgba(0,0,0,.22) 48%, rgba(0,0,0,0) 64%), radial-gradient(60% 62% at 14% 30%, rgba(0,0,0,.35), rgba(0,0,0,0) 70%), linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 80%, rgba(0,0,0,.45)); }
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); max-width: 11em; }
.hero-copy h1 { font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; }
.underline { position: relative; display: inline-block; }
.underline svg { position: absolute; left: -1%; width: 102%; bottom: -0.16em; height: 0.26em; overflow: visible; pointer-events: none; }
.hero-copy .sub { max-width: 38ch; color: #E6E0D6; }
.places { overflow: hidden; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.leaders path { fill: none; stroke-width: 1.2; stroke-dasharray: 2 4; opacity: .35; transition: opacity .3s, stroke-width .3s; }
.leaders path.hot { opacity: .95; stroke-width: 2; stroke-dasharray: none; }
.fader { position: absolute; left: 0; top: 0; width: 0; height: 0; border: 0; padding: 0; background: none; cursor: pointer; pointer-events: auto; }
.fader::before { content: ""; position: absolute; left: -22px; top: -26px; width: 44px; height: 44px; }
.fader .cap { position: absolute; left: -13px; top: -7px; width: 26px; height: 14px; border-radius: 4px; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.06)); border: 1px solid color-mix(in srgb, var(--c) 70%, white); box-shadow: 0 0 0 3px rgba(0,0,0,.25), 0 0 14px color-mix(in srgb, var(--c) 70%, transparent); transition: transform .22s var(--ease-out), box-shadow .2s, background-color .2s; box-shadow: 0 0 0 3px rgba(0,0,0,.25), 0 0 8px color-mix(in srgb, var(--c) 50%, transparent); }
.fader .cap::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 20px var(--c); opacity: 0; animation: capPulse 3.2s ease-in-out infinite; pointer-events: none; }
.fader:nth-of-type(2) .cap::after { animation-delay: -.4s; } .fader:nth-of-type(3) .cap::after { animation-delay: -.8s; } .fader:nth-of-type(4) .cap::after { animation-delay: -1.2s; } .fader:nth-of-type(5) .cap::after { animation-delay: -1.6s; } .fader:nth-of-type(6) .cap::after { animation-delay: -2s; } .fader:nth-of-type(7) .cap::after { animation-delay: -2.4s; }
@keyframes capPulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.fader.hot .cap::after, .fader.on .cap::after, .fader:focus-visible .cap::after { animation: none; opacity: 0; }
.fader.hot .cap, .fader.on .cap, .fader:focus-visible .cap { transform: translateY(-16px); background: var(--c); animation: none; box-shadow: 0 0 0 4px rgba(0,0,0,.3), 0 0 26px var(--c), 0 16px 0 -5px color-mix(in srgb, var(--c) 40%, transparent); }
.fader .lbl { position: absolute; left: 0; bottom: 26px; transform: translate(-50%, 6px); white-space: nowrap; padding: 7px 12px; border-radius: 12px; background: rgba(16,15,22,.92); border: 1px solid var(--c); display: grid; gap: 1px; text-align: left; opacity: 0; pointer-events: none; transition: opacity .25s, transform .22s var(--ease-out); }
.fader .lbl b { font-size: 13px; } .fader .lbl em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-2); }
.fader.hot .lbl, .fader:focus-visible .lbl { opacity: 1; transform: translate(-50%, -6px); }
.scribble { --cw: 66px; position: absolute; left: 0; top: 0; display: flex; padding: 6px 8px; background: linear-gradient(180deg, #EFE3C2, #E2D3AC); border-radius: 2px; box-shadow: 0 10px 24px rgba(0,0,0,.55), inset 0 0 0 1px rgba(0,0,0,.05); pointer-events: auto; transform-origin: 50% 50%; }
.scribble::before, .scribble::after { content: ""; position: absolute; top: 0; bottom: 0; width: 10px; background: inherit; }
.scribble::before { left: -6px; clip-path: polygon(100% 0, 0 8%, 60% 22%, 0 38%, 70% 52%, 0 70%, 50% 86%, 100% 100%); }
.scribble::after { right: -6px; clip-path: polygon(0 0, 100% 10%, 40% 25%, 100% 42%, 30% 58%, 100% 74%, 40% 90%, 0 100%); }
.scribble .cell { min-width: var(--cw); padding: 0 9px; height: 34px; border: 0; background: none; padding: 0 2px; cursor: pointer; display: grid; place-items: center; position: relative; font-family: var(--f-body); font-weight: 700; font-size: 14px; line-height: 1; color: #22201A; letter-spacing: .01em; transition: background-color .25s; }
.scribble .cell + .cell { border-left: 1.5px solid rgba(34,32,26,.25); }
.scribble .cell i { position: absolute; top: 1px; left: 4px; font-style: normal; font-family: var(--f-mono); font-size: 8.5px; font-weight: 500; color: rgba(34,32,26,.55); }
.scribble .cell span { transform: rotate(-2deg); white-space: nowrap; }
.scribble .cell::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 3px; height: 3px; border-radius: 2px; background: var(--c); opacity: 0; transition: opacity .25s; }
.scribble .cell.hot, .scribble .cell.on { background: rgba(0,0,0,.06); }
.scribble .cell.hot::after, .scribble .cell.on::after { opacity: 1; }
.cue { left: auto; right: var(--gutter-r); transform: none; }
.hint-place { white-space: nowrap; }
@media (max-width: 760px) {
  .scribble { --cw: 34px; padding: 4px 5px; max-width: calc(100vw - 24px); }
  .scribble .cell { font-size: 14px; height: 30px; padding: 0 6px; }
  .scribble .cell i { font-size: 7px; left: 2px; }
  .cue { display: none; }
  .hero-scrim { background: linear-gradient(180deg, rgba(8,7,12,.86), rgba(8,7,12,.62) 42%, rgba(8,7,12,.15) 60%, rgba(8,7,12,0) 66%, rgba(8,7,12,.4)); }
}

/* ---------- tools grid ---------- */
.stack { padding-block: clamp(100px, 13vw, 170px); }
.stack .sec-head { margin-bottom: clamp(32px, 5vw, 52px); }
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tool2 { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.tool2 .ti { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(180deg, #FBF8F2, #E9E4DA); }
.tool2 .ti svg { width: 26px; height: 26px; }
.tool2 b { display: block; font-size: 1rem; }
.tool2 em { font-style: normal; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
@media (max-width: 900px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tools { grid-template-columns: 1fr; } }

/* logos (see assets/logos.js) */
.tile.has-logo { background: #17161F !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); color: transparent; padding: 6px; box-sizing: border-box; overflow: hidden; }
.tile.has-logo img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; display: block; }
.tile.has-logo.lg-UX { padding: 0; background: transparent !important; box-shadow: none; }
.tile.has-logo.lg-UX img { object-fit: cover; border-radius: inherit; }
.tile.has-logo.lg-HD { padding: 7px 4px; }
.mk .nm { display: inline-flex; align-items: center; gap: 6px; }
.mk-logo { height: 1.2em; width: auto; max-width: 3.2em; object-fit: contain; display: block; }

/* hover motion only on devices that really hover; press feedback everywhere */
@media (hover: hover) and (pointer: fine) {
  .me-btn:hover { transform: scale(1.04); }
  .pin:hover .chip { transform: translateY(-3px) scale(1.05); border-color: var(--c, var(--sun)); }
  .btn-glass:hover { transform: scale(1.03); border-color: var(--sun); }
  .btn-sun:hover { transform: scale(1.03); background: var(--sun-2); }
  .nt:hover { transform: rotate(0deg) scale(1.03); z-index: 2; }
}
.btn-sun:active, .btn-glass:active, .btn-ghost:active, .round:active, .me-btn:active, .dock a:active { transform: scale(.97); transition-duration: .14s; }
.btn-ghost { transition: transform .2s var(--ease-out), border-color .2s; }

/* journey timeline pill clears the top buttons on phones */
@media (max-width: 860px) { .jtl { top: calc(80px + env(safe-area-inset-top, 0px)); } .compass { display: none; } }

/* ---------- calmer tone: no handwriting, tape, tilt or sticky notes ---------- */
.kicker { font-family: var(--f-body); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--sun); line-height: 1.3; }
.hey { font-size: 1.05rem; font-weight: 500; }
.hey svg { animation: none; }
.hint-place, .move-hint, .crate .front span, .scribble .cell span { transform: none !important; }
.hint-place, .cue { font-size: 13px; font-weight: 500; color: rgba(231,223,211,.75); }

/* story: a quiet column of facts instead of sticky notes */
.facts { position: absolute; inset: auto; left: 70%; top: 110px; width: min(320px, 27vw); height: auto; display: grid; align-content: start; align-items: start; pointer-events: auto; }
.fact { border-top: 1px solid var(--line-2); padding: 18px 0 20px; display: grid; gap: 6px; }
.fact:last-child { border-bottom: 1px solid var(--line-2); }
.fact b { font-size: 1.05rem; font-weight: 650; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }
.fact > span { color: var(--ink-2); font-size: 14px; }
.fact .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fact .chips span { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
@media (max-width: 1020px) { .facts { position: relative; left: auto; top: auto; width: 100%; max-width: 560px; margin-top: 48px; } }

/* hero channel strip: a console label, not masking tape */
.scribble { background: rgba(14,13,19,.86); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.scribble::before, .scribble::after { display: none; }
.scribble .cell { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #E9E3D8; }
.scribble .cell + .cell { border-left-color: rgba(255,255,255,.12); }
.scribble .cell i { color: rgba(233,227,216,.45); }
.scribble .cell.hot, .scribble .cell.on { background: rgba(255,255,255,.08); }

/* B-side: an ordered grid, nothing to drag */
.board { height: auto; margin-top: 50px; display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; padding: 0; background: none; border: 0; border-radius: 0; overflow: visible; }
.bi { position: relative; left: auto; top: auto; transform: none; cursor: auto; touch-action: auto; user-select: auto; box-shadow: none; }
.bi:active { cursor: auto; box-shadow: none; }
.bi.card { border-radius: 20px; padding: 22px; }
.music { width: auto; }
.photo { grid-row: span 2; margin: 0; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); display: grid; grid-template-rows: 1fr auto; }
.photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.photo figcaption { padding: 12px 16px 14px; font-size: 14px; color: var(--ink-2); }
.quote { grid-column: span 2; margin: 0; border-radius: 20px; padding: 26px 28px; background: var(--panel); border: 1px solid var(--line-2); }
.quote p { font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 650; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); max-width: 30ch; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr 1fr; display: grid; padding: 0; } .photo { grid-row: auto; grid-column: span 2; } .photo img { min-height: 0; aspect-ratio: 4 / 3; height: auto; } .quote { grid-column: span 2; } }
@media (max-width: 560px) { .board { grid-template-columns: 1fr; } .photo, .quote { grid-column: auto; } }

/* guestbook: quiet cards with a colour accent */
.nt { background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-top: 3px solid var(--nc, var(--sun)); border-radius: 16px; transform: none; box-shadow: none; padding: 18px 18px 16px; transition: transform .2s var(--ease-out), border-color .2s; }
.nt::before { display: none; }
.nt p { font-size: 1rem; font-weight: 500; line-height: 1.5; color: var(--ink); }
.nt .av { background: var(--nc, var(--sun)); color: #14121A; }
.nt .who span { color: var(--ink-3); opacity: 1; }
@media (hover: hover) and (pointer: fine) { .nt:hover { transform: translateY(-2px); } }
/* phones: the headphones sit under the intro text, so the "Me" pin would hide behind it */
@media (max-width: 760px) { .me-pin { display: none; } }
/* story on desktop: a real two-column layout, facts aligned with the kicker and kept in view while the text lights up */
@media (min-width: 1021px) {
  .story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); column-gap: clamp(48px, 7vw, 120px); align-items: start; }
  .story .wrap > .kicker { grid-column: 1; grid-row: 1; }
  .story .wrap > .tell-box { grid-column: 1; grid-row: 2; max-width: none; }
  .story .facts { position: sticky; top: 120px; left: auto; width: auto; grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}
/* B-side: the playlist is the one warm, inviting card */
.bi.card.music { background: radial-gradient(120% 90% at 100% 0%, rgba(245,185,66,.22), rgba(245,185,66,0) 60%), var(--panel); border-color: rgba(245,185,66,.45); display: grid; align-content: space-between; gap: 18px; }
.music h4 { color: var(--sun); font-size: 14px; font-weight: 600; }
.music .row b { font-size: 1.35rem; letter-spacing: -0.02em; }
.music .disc { width: 84px; height: 84px; animation-play-state: running; animation-duration: 8s; }
.music .disc::after { inset: 31px; }
.music a.btn-sun { margin-top: 0; justify-self: start; background: var(--sun); color: #1A1306; padding: 12px 18px; font-size: 14px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .music .disc { animation: none; } }
