/* Concept: a studio built after dark. Every app is an episode in the same series: poster-dense,
   forest green, sand and electric purple, with manga craft in the details. See the
   maximal-anime-direction skill. */
@property --ry { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --face { syntax: '<number>'; inherits: false; initial-value: 1; }
@property --sx { syntax: '<number>'; inherits: false; initial-value: 0; }
:root {
  --bg: #0B1A12;
  --bg-2: #1F3D2B;
  --fg: #E8DCC4;
  --fg-2: #BDB39E;
  --fg-3: #A7A58F;
  --glass: rgba(232, 220, 196, 0.06);
  --glass-2: rgba(232, 220, 196, 0.11);
  --line: rgba(232, 220, 196, 0.14);
  --line-2: rgba(232, 220, 196, 0.28);
  --hi: rgba(232, 220, 196, 0.32);
  --brand: #8B5CF6;
  --p1: #8B5CF6;
  --p2: #E8DCC4;
  --p3: #5FCB8A;
  --p4: #B9A2FF;
  --accent: #B9A2FF;
  --act: #7442EE;
  --act-ink: #ffffff;
  --accent-ink: #ffffff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  /* alt panels flip the scheme: sand paper on the night page */
  --alt-bg: #EFE5D0; --alt-fg: #13261B; --alt-fg-2: #3A4F40; --alt-fg-3: #4A5A45;
  --alt-line: rgba(19, 38, 27, 0.14); --alt-line-2: rgba(19, 38, 27, 0.28); --alt-glass: rgba(19, 38, 27, 0.05); --alt-accent: #5B2FD0; --alt-ink-mix: 32%;
  --font-d: "Archivo", Arial, sans-serif;
  --font-n: "Cormorant Garamond", Georgia, serif;
  --font-b: "Archivo", Arial, sans-serif;
  --font-m: "IBM Plex Mono", Consolas, monospace;
  --font-j: "Noto Sans JP", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 22px;
  --r-s: 12px;
  --ink-mix: 68%;
  /* motion */
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms; --dur-4: 600ms; --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  /* layers */
  --z-content: 1; --z-tags: 8; --z-dock: 30; --z-progress: 40; --z-cursor: 50; --z-boot: 60; --z-skip: 100;
  /* rhythm */
  --space-section: clamp(56px, 7vw, 96px); --space-block: clamp(20px, 3vw, 40px);
  /* ring */
  --ring-scale: 1;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #E8DCC4; --bg-2: #F3EBDA; --fg: #13261B; --fg-2: #3A4F40; --fg-3: #56664F;
    --glass: rgba(255, 252, 244, 0.5); --glass-2: rgba(255, 252, 244, 0.75);
    --line: rgba(19, 38, 27, 0.12); --line-2: rgba(19, 38, 27, 0.26); --hi: rgba(255, 255, 255, 0.9);
    --p1: #6D3FE0; --p2: #1F3D2B; --p3: #2E7D4F; --p4: #8B5CF6;
    --accent: #5B2FD0; --act: #6D3FE0; --shadow: 0 30px 70px rgba(31, 61, 43, 0.18);
    --alt-bg: #1F3D2B; --alt-fg: #E8DCC4; --alt-fg-2: #C9BFA8; --alt-fg-3: #B3B09A;
    --alt-line: rgba(232, 220, 196, 0.16); --alt-line-2: rgba(232, 220, 196, 0.3); --alt-glass: rgba(232, 220, 196, 0.07); --alt-accent: #C4B1FF; --alt-ink-mix: 40%;
    --ink-mix: 32%;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #E8DCC4; --bg-2: #F3EBDA; --fg: #13261B; --fg-2: #3A4F40; --fg-3: #56664F;
  --glass: rgba(255, 252, 244, 0.5); --glass-2: rgba(255, 252, 244, 0.75);
  --line: rgba(19, 38, 27, 0.12); --line-2: rgba(19, 38, 27, 0.26); --hi: rgba(255, 255, 255, 0.9);
  --p1: #6D3FE0; --p2: #1F3D2B; --p3: #2E7D4F; --p4: #8B5CF6;
  --accent: #5B2FD0; --act: #6D3FE0; --shadow: 0 30px 70px rgba(31, 61, 43, 0.18);
  --alt-bg: #1F3D2B; --alt-fg: #E8DCC4; --alt-fg-2: #C9BFA8; --alt-fg-3: #B3B09A;
  --alt-line: rgba(232, 220, 196, 0.16); --alt-line-2: rgba(232, 220, 196, 0.3); --alt-glass: rgba(232, 220, 196, 0.07); --alt-accent: #C4B1FF; --alt-ink-mix: 40%;
  --ink-mix: 32%;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-b); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img, svg { max-width: 100%; }
.mono { font-family: var(--font-m); font-variant-numeric: tabular-nums; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
/* app ink: an exhibit colour pulled toward the foreground so it reads AA on glass in both themes */
.exhibit, .ring-card, .dock-links a, .contact-card { --app-ink: color-mix(in srgb, var(--app, var(--accent)) var(--ink-mix), var(--fg)); }
.name { font-family: var(--font-n); font-style: italic; font-weight: 600; letter-spacing: 0; text-transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- background layers ---------- */
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.field.on { opacity: 1; }
.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .18; transform: translateZ(0); }
.o1 { width: 56vmax; height: 56vmax; left: -18vmax; top: -22vmax; background: var(--p1); }
.o2 { width: 48vmax; height: 48vmax; right: -16vmax; top: 18vh; background: var(--p3); }
.o3 { width: 40vmax; height: 40vmax; left: 30vw; bottom: -24vmax; background: var(--p4); }
:root[data-theme="light"] .orb { opacity: .26; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .orb { opacity: .26; } }
.grain { position: absolute; inset: -50%; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); opacity: .03; }
body > :not(.field):not(.atmos):not(.cursor):not(.boot):not(.progress):not(.dock):not(.skip):not(dialog) { position: relative; z-index: 1; }

/* ---------- cursor + progress + boot ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 1.5px solid var(--fg); box-shadow: 0 0 0 1px var(--bg); opacity: 0; will-change: transform; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .3s; }
.cursor i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--room, var(--hi)); transition: background .5s; }
body.has-cursor .cursor { opacity: 1; }
.cursor.hot { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--room, var(--fg)); }
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 40; transform-origin: 0 50%; transform: scaleX(0); background: var(--room, linear-gradient(90deg, var(--p1), var(--p2), var(--p3))); pointer-events: none; }

.boot { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; gap: 22px; background: var(--bg); transition: opacity .6s ease, visibility .6s; }
.boot.off { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-core { position: relative; width: 84px; height: 84px; margin: 0 auto; }
.boot-core i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--p1); opacity: .9; animation: bootring 1.4s var(--ease) infinite; }
.boot-core i:nth-child(2) { border-color: var(--p2); animation-delay: .25s; }
.boot-core i:nth-child(3) { border-color: var(--p3); animation-delay: .5s; }
@keyframes bootring { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.1); opacity: 0; } }
.boot p { margin: 0; font-size: 12px; letter-spacing: .28em; color: var(--fg-2); text-align: center; }

/* ---------- glass ---------- */
.glass {
  position: relative; isolation: isolate;
  /* large panels: a translucent surface instead of a live backdrop blur, which would re-blur the animated field every frame */
  background: linear-gradient(135deg, color-mix(in srgb, var(--bg-2) 86%, transparent), color-mix(in srgb, var(--bg-2) 72%, transparent));
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow), inset 0 1px 0 var(--hi);
}
.dock.glass { background: linear-gradient(135deg, var(--glass-2), var(--glass)); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.glass::before { /* pointer light */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .14), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.glass:hover::before { opacity: 1; }
.glass::after { /* prism edge; never intercepts input */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: conic-gradient(from calc(var(--ang, 0) * 1deg) at 50% 50%, var(--p1), var(--p2), var(--p3), var(--p4), var(--p1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .35;
}

/* ---------- dock ---------- */
.dock { position: fixed; top: max(14px, env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; max-width: calc(100vw - 32px); }
.dock::before, .dock::after { border-radius: 999px; }
.dock-brand { display: inline-flex; align-items: center; height: 38px; padding: 0 16px 2px 14px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 19px; line-height: 1; white-space: nowrap; }
.dock-links { display: flex; gap: 2px; }
.dock-links a, .dock-mail { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--fg-2); transition: background .2s, color .2s; white-space: nowrap; }
.dock-links a:hover, .dock-mail:hover { background: var(--glass-2); color: var(--fg); }
.dock-links a.on { background: var(--glass-2); color: var(--app-ink, var(--fg)); }
.dock-mail { color: var(--act-ink); background: var(--act); font-weight: 600; }
.dock-mail:hover { background: var(--act); color: var(--act-ink); box-shadow: 0 8px 26px -8px var(--brand); }
.dock-theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.dock-theme .sun { width: 14px; height: 14px; border-radius: 50%; background: var(--fg); box-shadow: inset -5px -3px 0 0 var(--bg); transition: box-shadow .3s, transform .4s var(--ease); }
:root[data-theme="light"] .dock-theme .sun { box-shadow: inset 0 0 0 0 var(--bg); transform: rotate(40deg); }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg-2) 70%, transparent); color: var(--fg); transition: transform .25s var(--ease), border-color .2s, background .2s, box-shadow .25s, color .2s; will-change: transform; user-select: none; -webkit-user-select: none; }
.btn:hover { border-color: var(--brand); box-shadow: 0 10px 30px -10px var(--brand); }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--act); color: var(--act-ink); border-color: transparent; box-shadow: 0 10px 28px -10px var(--brand), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn.primary:hover { box-shadow: 0 16px 40px -8px var(--brand), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn .lbl { position: relative; z-index: 1; }
.btn .ripple { position: absolute; border-radius: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: rgba(255, 255, 255, .55); transform: scale(0); opacity: .8; pointer-events: none; animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(30); opacity: 0; } }
.btn.running { pointer-events: none; }
.btn.running .lbl::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; vertical-align: -2px; animation: spin 1s linear infinite; }
.btn.done { background: var(--fg); color: var(--bg-2); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- hero ---------- */
.hero { overflow-x: clip; padding: clamp(116px, 15vh, 160px) max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 48px; align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--fg-2); }
.eyebrow .name { font-size: 26px; color: var(--fg); }
.eyebrow .mono { font-size: 11px; letter-spacing: .22em; padding-left: 12px; border-left: 1px solid var(--line-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--p1); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--p1) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
h1 { font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(34px, min(calc((100vw - 32px) / 4.3), 17svh), 120px); line-height: .86; letter-spacing: -.01em; margin: 0 0 22px; }
h1 .line { display: block; }
h1 .line > * { display: inline; padding-right: .08em; overflow-wrap: anywhere; }
h1 em { font-style: italic; font-weight: 900; background: linear-gradient(100deg, var(--brand) 0%, var(--p4) 55%, var(--brand) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--fg-2); max-width: 46ch; margin: 0 0 14px; text-wrap: pretty; }
.telemetry { margin: 0 0 24px; font-size: 11px; letter-spacing: .14em; color: var(--fg-3); min-height: 16px; }
.telemetry b { color: var(--accent); font-weight: 500; }
.hero-hint { margin: 22px 0 0; font-size: 12px; letter-spacing: .06em; color: var(--fg-3); }
.key { display: inline-block; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--fg-2); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* vitrine ring */
.vitrine { position: relative; height: clamp(360px, 46vw, 460px); perspective: 1300px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.vitrine.drag { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-10deg) rotateY(calc(var(--ry, 0) * 1deg)); will-change: transform; }
/* ring phones: see "ring phones" in the maximal layer */

.strip { grid-column: 1 / -1; list-style: none; margin: 10px 0 0; padding: 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.strip li { padding: 14px 18px; border-radius: 16px; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.strip b { font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: 44px; line-height: .9; color: var(--accent); }
.strip span { font-size: 12.5px; color: var(--fg-3); }

/* ---------- exhibits ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.exhibit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; align-items: center; padding: var(--space-section) 0; scroll-margin-top: 90px; }
.exhibit:nth-child(even) .stage { order: 2; }
.stage { display: grid; place-items: center; perspective: 1400px; min-width: 0; padding-bottom: 24px; }
.panel { padding: clamp(24px, 3.2vw, 40px); min-width: 0; }
.kicker { display: block; font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--app-ink, var(--accent)); margin-bottom: 14px; }
.panel h2 { font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(48px, 6vw, 84px); letter-spacing: -.005em; line-height: .86; margin: 0 0 6px; }
.panel .lede { font-size: clamp(16px, 1.5vw, 18px); margin-bottom: 20px; color: var(--fg); font-weight: 500; }
.steps { list-style: none; counter-reset: s; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.steps li { counter-increment: s; position: relative; display: grid; gap: 1px; padding: 8px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--glass); min-width: 0; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-m); font-size: 9.5px; letter-spacing: .1em; color: var(--fg-3); }
.steps b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.steps span { display: block; font-size: 11.5px; color: var(--fg-3); }
.steps li.on { background: color-mix(in srgb, var(--app) 14%, transparent); border-color: color-mix(in srgb, var(--app) 55%, transparent); transform: translateY(-2px); }
.steps li.on::before, .steps li.on span { color: var(--app-ink); }
.steps li.done { border-color: color-mix(in srgb, var(--app) 35%, transparent); }
.steps li.done::before { content: "✓"; color: var(--app-ink); }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hint { font-size: 12.5px; color: var(--fg-3); }
.chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-family: var(--font-m); font-size: 11px; padding: 5px 9px; border-radius: 7px; border: 1px solid var(--line); color: var(--fg-3); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts div { display: grid; padding: 10px 0 0; border-top: 1px solid var(--line); min-width: 0; }
.facts dd { margin: 0; font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(30px, 3vw, 40px); line-height: 1; }
.facts dt { font-size: 11px; color: var(--fg-3); margin-top: 2px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(44px) rotateX(8deg); transform-origin: 50% 100%; }
.reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }

/* ---------- devices ---------- */
.tilt { transform-style: preserve-3d; transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)); transition: transform .12s linear; will-change: transform; }
.tilt.settle { transition: transform .9s var(--ease); }

/* phone: titanium frame, raised screen, island, side keys, glare */
.phone { --frame-a: #3b4150; --frame-b: #14171f; --frame-c: #2a2f3b; --edge: rgba(255, 255, 255, .22); position: relative; width: min(300px, 80vw); aspect-ratio: 9 / 19.4; border-radius: 52px; padding: 11px; background: linear-gradient(145deg, var(--frame-a) 0%, var(--frame-b) 35%, var(--frame-c) 65%, var(--frame-b) 100%); box-shadow: 0 1px 0 0 var(--edge) inset, 0 -1px 0 0 rgba(0, 0, 0, .6) inset, 0 0 0 1px rgba(0, 0, 0, .7), 0 30px 60px -18px rgba(0, 0, 0, .75), 0 60px 120px -40px rgba(0, 0, 0, .6), 0 0 90px -34px var(--app); }
.phone.light { --frame-a: #f4f5f8; --frame-b: #b9bfcc; --frame-c: #e3e6ee; --edge: rgba(255, 255, 255, .95); }
.phone .screen { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; position: relative; box-shadow: 0 0 0 2px #000, 0 0 0 3px rgba(255, 255, 255, .06); }
.phone .side { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--frame-c), var(--frame-b)); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .6); }
.phone .mute { left: -3px; top: 16%; height: 24px; }
.phone .vol1 { left: -3px; top: 23%; height: 46px; }
.phone .vol2 { left: -3px; top: 31.5%; height: 46px; }
.phone .pow { right: -3px; top: 26%; height: 72px; background: linear-gradient(270deg, var(--frame-c), var(--frame-b)); }
.phone .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(112deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .05) 22%, transparent 36%, transparent 68%, rgba(255, 255, 255, .04) 86%, rgba(255, 255, 255, .10) 100%); }
.sbar { position: absolute; left: 0; right: 0; top: 0; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px 0 28px; z-index: 5; color: #fff; pointer-events: none; }
.sbar .t { font-size: 13.5px; font-weight: 600; letter-spacing: .01em; }
.sbar .island { position: absolute; left: 50%; top: 11px; width: 96px; height: 28px; margin-left: -48px; border-radius: 16px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .04) inset; }
.sbar .island::after { content: ""; position: absolute; right: 12px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #233 0%, #050608 60%); box-shadow: 0 0 0 1px #111; }
.sbar .ic { display: flex; align-items: center; gap: 5px; fill: currentColor; }
.sbar.dark { color: #1F2328; }
.homebar { position: absolute; left: 50%; bottom: 8px; width: 112px; height: 5px; margin-left: -56px; border-radius: 3px; background: rgba(255, 255, 255, .85); z-index: 5; pointer-events: none; }
.homebar.dark { background: rgba(0, 0, 0, .8); }

/* laptop: thin lid, camera, deck, floor reflection */
.laptop { position: relative; width: 100%; max-width: 600px; }
.laptop .lid { position: relative; border-radius: 16px 16px 4px 4px; padding: 10px 10px 12px; background: linear-gradient(180deg, #1b1f28, #0b0e14); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 0 0 1px rgba(0, 0, 0, .8), 0 30px 60px -18px rgba(0, 0, 0, .75), 0 0 100px -36px var(--app); }
.laptop .cam { position: absolute; left: 50%; top: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #345, #000 70%); box-shadow: 0 0 0 1px #000; }
.laptop .screen { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; position: relative; box-shadow: 0 0 0 1px #000; }
.laptop .base { position: relative; height: 16px; margin: 0 -4%; border-radius: 3px 3px 12px 12px; background: linear-gradient(180deg, #2f3542 0%, #1a1f28 40%, #0e1118 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 14px 28px -10px rgba(0, 0, 0, .8); }
.laptop .hinge { position: absolute; left: 50%; top: 0; width: 34%; height: 2px; margin-left: -17%; background: #05070a; }
.laptop .notch { position: absolute; left: 50%; top: 5px; width: 14%; height: 6px; margin-left: -7%; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #0b0e14, #1a1f28); }
.laptop .reflect { position: absolute; left: 0; right: 0; top: 100%; height: 60px; margin-top: 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--app) 14%, transparent), transparent 80%); -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); filter: blur(6px); pointer-events: none; }

/* ======== STRIKEDECK screen ======== */
.sd { background: radial-gradient(120% 70% at 50% -10%, #0c2630 0%, #070a12 60%); color: #dfe6f5; font-family: var(--font-m); font-size: 10px; display: flex; flex-direction: column; container-type: inline-size; }
.sd-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sd-logo { font-family: var(--font-d); font-weight: 800; font-size: 11px; color: #00F5D4; letter-spacing: .12em; }
.sd-tabs { display: flex; gap: 2px; min-width: 0; overflow: hidden; }
.sd-tabs i { font-style: normal; padding: 3px 7px; border-radius: 6px; color: #8b97b3; white-space: nowrap; }
.sd-tabs i.on { background: rgba(0, 245, 212, .14); color: #00F5D4; }
.sd-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); white-space: nowrap; color: #8b97b3; }
.sd-live u { width: 6px; height: 6px; border-radius: 50%; background: #F59E0B; text-decoration: none; }
.sd-live.on u { background: #10B981; box-shadow: 0 0 8px #10B981; }
.sd-live.on { color: #10B981; }
.sd-tiles { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 7px 10px 0; }
.sd-tiles div { padding: 5px 9px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); min-width: 0; }
.sd-tiles small { display: block; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: #8b97b3; }
.sd-tiles b { font-size: 13px; font-weight: 600; color: #fff; transition: color .3s; }
.sd-tiles b.up { color: #10B981; } .sd-tiles b.dn { color: #F43F5E; }
.sd-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; padding: 7px 10px 8px; flex: 1; min-height: 0; }
.sd-chain { border-collapse: collapse; width: 100%; font-size: 9.5px; align-self: start; }
.sd-chain th { font-weight: 500; color: #8b97b3; text-align: center; padding: 2px 0 6px; font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; }
.sd-chain td { text-align: center; padding: 4px 3px; border-top: 1px solid rgba(255, 255, 255, .06); }
.sd-chain td:first-child, .sd-chain td:last-child { width: 28%; }
.sd-chain td i { display: block; height: 7px; border-radius: 3px; width: var(--w); transition: width .6s var(--ease); }
.sd-chain td:first-child i { margin-left: auto; background: linear-gradient(270deg, #00F5D4, rgba(0, 245, 212, .2)); }
.sd-chain td:last-child i { background: linear-gradient(90deg, #EC4899, rgba(236, 72, 153, .2)); }
.sd-chain tr.atm td { background: rgba(255, 255, 255, .05); color: #fff; font-weight: 600; }
.sd-side { display: grid; gap: 6px; align-content: start; min-width: 0; }
.sd-side > div { padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.sd-side small { display: block; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: #8b97b3; margin-bottom: 3px; }
.gauge { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #EC4899, #F59E0B, #10B981); position: relative; margin: 4px 0; }
.gauge i { position: absolute; top: -3px; left: var(--p); width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #070a12; transition: left .6s var(--ease); }
.sd-pcr { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; }
.sd-pcr small { grid-column: 1; margin: 0; }
.sd-pcr .gauge { grid-column: 1 / -1; }
.sd-pcr b { grid-column: 2; grid-row: 1; font-size: 13px; color: #fff; }
.sd-votes ul { list-style: none; margin: 0 0 3px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 9px; }
.sd-votes li { display: flex; align-items: center; gap: 6px; color: #8b97b3; }
.sd-votes li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3a4357; }
.sd-votes li.yes { color: #dfe6f5; } .sd-votes li.yes::before { background: #10B981; box-shadow: 0 0 6px #10B981; }
.sd-votes b { display: block; font-size: 10px; color: #F59E0B; }
.sd-votes b.go { color: #00F5D4; }
.modes { display: flex; gap: 3px; margin-bottom: 5px; }
.modes i { font-style: normal; font-size: 8px; padding: 2px 5px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .12); color: #8b97b3; }
.modes i.on { border-color: #A855F7; color: #c99bff; background: rgba(168, 85, 247, .14); }
.gate { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 6px; font-size: 9px; color: #c8d0e2; }
.kill { margin-top: 4px; width: 100%; border: 1px solid #F43F5E; color: #ff7a90; background: rgba(244, 63, 94, .1); border-radius: 6px; padding: 6px; font-family: var(--font-m); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; min-height: 22px; transition: background .2s; }
.kill:hover { background: rgba(244, 63, 94, .25); }
.sd.halt .sd-body { filter: saturate(.3) brightness(.7); }
.sd-toast { position: absolute; left: 10px; width: calc(57% - 14px); bottom: 10px; padding: 8px 10px; border-radius: 8px; background: #11172a; border: 1px solid rgba(0, 245, 212, .4); color: #dfe6f5; font-size: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: slidein .35s var(--ease); }
.sd-toast.bad { border-color: #F43F5E; }
@container (max-width: 430px) { .sd-body { grid-template-columns: 1fr; } .sd-toast { width: auto; right: 10px; } .sd-tiles { grid-template-columns: repeat(2, 1fr); } .sd-tabs i:nth-child(n+4) { display: none; } .sd-side { grid-template-columns: 1fr 1fr; } .sd-side .sd-mode { grid-column: 1 / -1; } }

/* ======== MIKAZUKI screen ======== */
.mz { background: radial-gradient(90% 60% at 50% 30%, color-mix(in srgb, var(--world) 10%, #000), #000 70%); color: #E0E0E0; display: flex; flex-direction: column; align-items: center; padding: 62px 14px 28px; gap: 10px; }
.mz-kanji { text-align: center; line-height: 1; }
.mz-kanji b { display: block; font-size: 22px; font-weight: 500; color: var(--world); text-shadow: 0 0 18px var(--world); }
.mz-kanji small { display: block; font-family: var(--font-m); font-size: 9px; letter-spacing: .35em; color: #888; margin-top: 6px; }
.mz-core { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.orbit { position: absolute; inset: 0; animation: spin 36s linear infinite; }
.orbit i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--c); transform: rotate(calc(var(--k) * 36deg)) translateY(-90px); opacity: .9; box-shadow: 0 0 8px var(--c); }
@keyframes spin { to { transform: rotate(360deg); } }
.rings i { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; border: 1px solid var(--world); opacity: 0; }
.mz.listening .rings i { animation: ringout 1.4s ease-out infinite; }
.mz.listening .rings i:nth-child(2) { animation-delay: .45s; } .mz.listening .rings i:nth-child(3) { animation-delay: .9s; }
@keyframes ringout { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(2.1); opacity: 0; } }
.crescent { position: relative; width: 80px; height: 80px; border-radius: 50%; border: 0; background: transparent; box-shadow: 18px -10px 0 0 var(--world), 0 0 40px color-mix(in srgb, var(--world) 60%, transparent); transition: box-shadow .5s var(--ease), transform .3s var(--ease); }
.crescent:hover { transform: scale(1.05); }
.crescent:active { transform: scale(.95); }
.mz.thinking .crescent { animation: breathe 1.2s ease-in-out infinite; }
.mz.speaking .crescent { box-shadow: 0 0 0 0 var(--world), 0 0 60px var(--world); background: var(--world); }
@keyframes breathe { 50% { transform: scale(.92); } }
.mz-status { display: flex; gap: 10px; font-size: 9px; letter-spacing: .14em; color: #888; }
.mz-status span { display: inline-flex; align-items: center; gap: 5px; }
.mz-status u { width: 6px; height: 6px; border-radius: 50%; background: var(--world); text-decoration: none; box-shadow: 0 0 6px var(--world); }
.mz-cap { margin: 0; font-size: 12px; color: #cfcfcf; text-align: center; min-height: 36px; text-wrap: balance; }
.mz-stream { list-style: none; margin: 0; padding: 0; width: 100%; font-size: 9.5px; color: #9a9a9a; display: grid; gap: 3px; min-height: 64px; align-content: start; }
.mz-stream li { padding: 3px 8px; border-left: 2px solid color-mix(in srgb, var(--world) 60%, transparent); background: rgba(255, 255, 255, .03); animation: slidein .4s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-stream li.ok { color: var(--world); }
@keyframes slidein { from { opacity: 0; transform: translateX(-8px); } }
.mz-crews { margin-top: auto; display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.mz-crews button { border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .04); color: #bbb; font-family: var(--font-m); font-size: 8.5px; letter-spacing: .08em; padding: 4px 7px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; min-height: 26px; transition: border-color .2s, background .2s; }
.mz-crews button:hover { background: rgba(255, 255, 255, .1); }
.mz-crews button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.mz-crews button.on { border-color: var(--c); color: #fff; }

/* ======== SRI HARI screen ======== */
.sh { background: #f8fafc; color: #0f172a; display: flex; flex-direction: column; font-size: 12px; }
.sh-bar { padding: 58px 16px 10px; background: linear-gradient(135deg, #1e40af 0%, #2563eb 40%, #7c3aed 100%); color: #fff; display: flex; justify-content: space-between; align-items: end; }
.sh-bar b { font-size: 16px; font-weight: 800; letter-spacing: -.03em; }
.sh-bar span { font-size: 10.5px; opacity: .85; }
.sh-tabs { display: flex; gap: 4px; padding: 10px 12px 0; }
.sh-tabs button { padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #64748b; background: #fff; border: 1px solid #e2e8f0; display: inline-flex; align-items: center; gap: 5px; min-height: 28px; }
.sh-tabs button.on { color: #fff; background: #2563eb; border-color: #2563eb; }
.sh-tabs u { text-decoration: none; background: #dc2626; color: #fff; font-size: 9px; padding: 0 5px; border-radius: 999px; }
.sh-view { display: none; padding: 12px 12px 30px; gap: 8px; flex-direction: column; }
.sh-view.on { display: flex; }
.sh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sh-stats div { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px; text-align: center; }
.sh-stats b { display: block; font-size: 17px; font-weight: 800; color: #1e40af; }
.sh-stats small { font-size: 9.5px; color: #64748b; }
.sh-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; display: grid; gap: 6px; transition: box-shadow .4s; }
.sh-card.flash { box-shadow: 0 0 0 2px #2563eb, 0 10px 24px -10px #2563eb; }
.sh-card.done { border-color: #a7f3d0; background: #ecfdf5; }
.sh-vh { display: flex; justify-content: space-between; align-items: center; }
.sh-vh b { font-size: 12.5px; font-weight: 600; }
.sh-vh span { font-size: 11px; font-weight: 700; color: #1e40af; }
.sh-card.done .sh-vh span { color: #059669; }
.bar { height: 7px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, #2563eb, #7c3aed); transition: width .8s var(--ease); }
.sh-card.done .bar i { background: #059669; }
.sh-card small { font-size: 10px; color: #64748b; }
.sh-doc { position: relative; height: 110px; border-radius: 12px; background: repeating-linear-gradient(0deg, #fff 0 10px, #f1f5f9 10px 12px); border: 1px solid #e2e8f0; overflow: hidden; display: grid; place-items: end start; padding: 8px; }
.sh-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, #2563eb, transparent); opacity: 0; }
.sh.scanning .sh-scan { opacity: 1; animation: scan 1.1s linear infinite; }
@keyframes scan { from { top: 0; } to { top: 100%; } }
.sh-doctype { font-size: 10px; font-weight: 600; background: #dbeafe; color: #1e40af; padding: 3px 8px; border-radius: 999px; }
.sh-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 10px; min-height: 60px; align-content: start; }
.sh-fields li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 7px; animation: slidein .4s var(--ease); }
.sh-fields li span { color: #64748b; } .sh-fields li b { font-weight: 600; text-align: right; }
.sh-fields li.hi { color: #059669; font-weight: 600; }
.sh-match { padding: 9px 10px; border-radius: 10px; background: #ede9fe; border: 1px solid #c4b5fd; display: grid; gap: 2px; animation: slidein .4s var(--ease); }
.sh-match small { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #7c3aed; }
.sh-match b { font-size: 13px; }
.sh-match span { font-size: 10px; color: #475569; }
.sh-btn { border: 0; border-radius: 10px; padding: 10px; background: #2563eb; color: #fff; font-weight: 700; font-size: 12px; min-height: 40px; }
.sh-btn:active { transform: scale(.98); }
.sh-empty { margin: 20px 0; text-align: center; color: #94a3b8; font-size: 11.5px; }

/* ======== SHOPCONNECT screen ======== */
.sc { background: #F7F7F5; color: #1F2328; font-size: 12px; display: flex; flex-direction: column; }
.sc-sim { padding: 54px 14px 6px; font-family: var(--font-m); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: #B54708; background: #FEF0C7; text-align: center; }
.sc-view { display: none; padding: 12px; flex-direction: column; gap: 8px; flex: 1; min-height: 0; overflow: hidden; }
.sc-view.on { display: flex; }
.sc-brand { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sc-sub { font-size: 11px; color: #0F766E; font-weight: 600; margin-top: -6px; }
.sc-roles { display: grid; gap: 6px; }
.sc-roles button { text-align: left; padding: 9px 11px; border-radius: 10px; border: 1px solid #ECEDEB; background: #fff; display: grid; gap: 1px; min-height: 44px; transition: border-color .2s, transform .2s; }
.sc-roles button:hover { border-color: #0F766E; transform: translateX(2px); }
.sc-roles b { font-size: 12.5px; font-weight: 700; } .sc-roles span { font-size: 10px; color: #6B7280; }
.sc-head { display: flex; justify-content: space-between; align-items: baseline; }
.sc-head b { font-size: 14px; } .sc-head span { font-size: 10px; color: #6B7280; }
.sc-shop, .sc-inv, .sc-order, .sc-gate { background: #fff; border: 1px solid #ECEDEB; border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.sc-shop b { font-size: 12.5px; } .sc-shop small { font-size: 10px; color: #6B7280; }
.sc-shop button, .sc-order button { margin-top: 5px; border: 0; border-radius: 8px; padding: 7px; background: #0F766E; color: #fff; font-weight: 700; font-size: 11px; min-height: 32px; transition: filter .2s; }
.sc-shop button:hover, .sc-order button:hover { filter: brightness(1.1); }
.sc-inv { grid-template-columns: 1fr auto; align-items: center; } .sc-inv b { font-weight: 600; font-size: 11px; }
.sc-inv.restricted { border-color: #FDE8E6; background: #FFFBFB; color: #B42318; }
.sc-order { border-left: 4px solid #0F766E; animation: slidein .4s var(--ease); } .sc-order b { font-size: 12.5px; } .sc-order span { font-size: 10.5px; color: #6B7280; }
.sc-gate { grid-template-columns: 1fr auto; font-size: 9px; } .sc-gate b { color: #B42318; }
.sc-timeline { list-style: none; margin: auto 0 0; padding: 8px 12px 0; display: flex; justify-content: space-between; gap: 4px; font-family: var(--font-m); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; color: #9CA3AF; }
.sc-timeline li { flex: 1; text-align: center; padding-top: 10px; position: relative; }
.sc-timeline li::before { content: ""; position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #D1D5DB; transition: background .3s, box-shadow .3s; }
.sc-timeline li::after { content: ""; position: absolute; left: calc(50% + 5px); right: calc(-50% + 5px); top: 3px; height: 1px; background: #D1D5DB; }
.sc-timeline li:last-child::after { display: none; }
.sc-timeline li.on { color: #0F766E; font-weight: 600; } .sc-timeline li.on::before { background: #0F766E; box-shadow: 0 0 0 3px #D9F0ED; }
.sc-timeline li.done::before { background: #0F766E; } .sc-timeline li.done::after { background: #0F766E; }
.sc-tabs { display: flex; padding: 8px 10px 26px; gap: 4px; border-top: 1px solid #ECEDEB; margin-top: 8px; background: #fff; }
.sc-tabs button { flex: 1; text-align: center; font-size: 10px; padding: 7px 2px; border-radius: 8px; color: #6B7280; border: 0; background: transparent; min-height: 30px; }
.sc-tabs button.on { background: #D9F0ED; color: #0F766E; font-weight: 700; }

/* ======== TOOLKIT screen ======== */
.tk { background: #F7F2E7; color: #1E2120; font-size: 11px; display: flex; flex-direction: column; container-type: inline-size; }
.tk-top { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #14291E; color: #FCFAF5; }
.tk-top b { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: .08em; font-size: 13px; }
.tk-top small { font-family: var(--font-m); font-size: 8.5px; color: #E3D3AE; letter-spacing: .08em; text-transform: uppercase; }
.tk-top span { margin-left: auto; font-size: 10px; color: #8DB39A; }
.tk-body { display: grid; grid-template-columns: 1fr 1.2fr; grid-template-rows: auto 1fr; gap: 8px; padding: 10px 12px 12px; flex: 1; min-height: 0; }
.tk-gate { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tk-gate li { padding: 7px 9px; border-radius: 8px; background: #FCFAF5; border: 1px solid #E2D6BE; display: grid; gap: 1px; min-width: 0; }
.tk-gate b { font-size: 10.5px; color: #22452F; display: flex; align-items: center; gap: 5px; }
.tk-gate b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #C9CCCA; flex: none; }
.tk-gate li.done b::before { background: #2E6B47; }
.tk-gate li.now { border-color: #D2BA86; background: #FBF5E6; } .tk-gate li.now b::before { background: #BFA167; box-shadow: 0 0 0 3px #E3D3AE; }
.tk-gate li.pulse b::before { animation: gatepulse 1s ease-in-out 3; }
@keyframes gatepulse { 50% { box-shadow: 0 0 0 6px #E3D3AE; } }
.tk-gate span { font-size: 9px; color: #4A504D; }
.tk-term { margin: 0; padding: 9px 10px; border-radius: 8px; background: #1E2120; color: #DDE9E0; font-size: 9.5px; line-height: 1.6; white-space: pre-wrap; overflow: hidden; align-self: stretch; min-height: 0; }
.tk-term .ok { color: #8DB39A; } .tk-term .warn { color: #E3D3AE; } .tk-term .dim { color: #7C827F; }
.tk-brand { display: grid; gap: 6px; align-content: start; min-width: 0; }
.tk-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tk-logos svg { width: 100%; height: auto; border-radius: 8px; display: block; }
.tk-logos svg.wide { grid-column: 1 / -1; }
.tk-swatches { display: flex; gap: 4px; }
.tk-swatches i { flex: 1; height: 14px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .08); }
@container (max-width: 430px) { .tk-body { grid-template-columns: 1fr; } .tk-gate { grid-template-columns: repeat(2, 1fr); } .tk-top span { display: none; } .tk-brand { display: none; } }

/* ---------- contact ---------- */
.contact { padding: clamp(40px, 7vw, 90px) 0 60px; perspective: 1400px; }
.contact-card { padding: clamp(28px, 4vw, 48px); text-align: center; max-width: 820px; margin: 0 auto; }
.contact-card h2 { font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(56px, 9vw, 128px); line-height: .84; margin: 0 0 26px; text-wrap: balance; }
.mail { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.mail code { padding: 12px 16px; border-radius: 999px; border: 1px dashed var(--line-2); font-size: 14px; user-select: all; }

.foot { max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) max(32px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--fg-3); }
.foot .name { font-size: 16px; color: var(--fg-2); }
.foot-links { display: flex; gap: 18px; }
.foot-links a { display: inline-block; padding-block: 4px; }
.foot-links a:hover { color: var(--fg); }

/* ---------- faq ---------- */
.faq { padding: clamp(24px, 5vw, 60px) 0 0; }
.faq-h { font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(40px, 5vw, 64px); line-height: .9; margin: 0 0 18px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.faq details { padding: 0; border-radius: var(--r-s); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-m); color: var(--fg-3); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--fg-2); font-size: 14.5px; max-width: 60ch; }
.faq details p a { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- maximal layer: poster, manga craft, episodes (see maximal-anime-direction) ---------- */
.jp { font-family: var(--font-j); font-style: normal; }
.hero { position: relative; isolation: isolate; }
/* manga speed lines: one static paint */
.burst { position: absolute; left: 72%; top: 44%; width: min(1600px, 200vw); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 3deg, color-mix(in srgb, var(--fg) 9%, transparent) 0deg .6deg, transparent .6deg 3.6deg);
  -webkit-mask: radial-gradient(closest-side, transparent 18%, #000 34%, transparent 70%); mask: radial-gradient(closest-side, transparent 18%, #000 34%, transparent 70%); }
.mega { position: absolute; left: -1vw; bottom: -2vw; z-index: -1; pointer-events: none; white-space: nowrap; font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(140px, 24vw, 380px); line-height: .78; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--fg) 13%, transparent); }
.v-jp { position: absolute; right: -58px; top: 150px; z-index: 2; writing-mode: vertical-rl; font-family: var(--font-j); font-weight: 700; font-size: 13px; letter-spacing: .55em; color: var(--fg-3); pointer-events: none; }
.v-jp b { color: var(--accent); font-weight: 900; }
.marks { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); right: 44px; top: 92px; display: flex; justify-content: space-between; font-family: var(--font-m); font-size: 11px; letter-spacing: .22em; color: var(--fg-3); pointer-events: none; }
.vitrine .sticker { position: absolute; left: 2%; top: 0; z-index: 4; width: 112px; height: 112px; pointer-events: none; transform: rotate(-14deg); filter: drop-shadow(0 14px 22px color-mix(in srgb, var(--brand) 55%, transparent)); }
.sticker svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sticker .spin { transform-origin: 60px 60px; animation: spin 18s linear infinite; }
.sticker text { font-family: var(--font-m); font-size: 9.5px; font-weight: 600; letter-spacing: .2em; fill: #fff; }
.sticker .core { font-family: var(--font-d); font-weight: 900; font-stretch: 62%; font-size: 30px; letter-spacing: 0; }

/* eyecatch: two crossed bands between the hero and episode 01 */
.eyecatch { position: relative; z-index: 1; height: clamp(120px, 14vw, 170px); margin: 18px 0 0; overflow: hidden; pointer-events: none; }
.band { position: absolute; left: -5%; right: -5%; top: 50%; display: flex; overflow: hidden; border-block: 1px solid rgba(0, 0, 0, .18); }
.band.a { background: var(--act); color: #fff; transform: translateY(-62%) rotate(-3deg); z-index: 2; box-shadow: 0 18px 40px -16px var(--brand); }
.band.b { background: var(--fg); color: var(--bg); transform: translateY(-38%) rotate(2.2deg); }
.band .track { display: flex; flex: none; width: max-content; animation: tick 46s linear infinite; }
.band.b .track { animation-direction: reverse; animation-duration: 60s; }
.band span { flex: none; padding: 12px 18px; white-space: nowrap; font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(22px, 3vw, 36px); line-height: 1; letter-spacing: .02em; }
.band span .jp { font-weight: 900; letter-spacing: .12em; font-size: .78em; vertical-align: .08em; }
.band span i { display: inline-block; width: .6em; height: .6em; margin: 0 .5em; vertical-align: .1em; background: currentColor; opacity: .55;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
@keyframes tick { to { transform: translateX(-50%); } }

/* episodes */
.ep { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.ep b { font-family: var(--font-m); font-weight: 600; font-size: 12px; letter-spacing: .2em; padding: 6px 9px 5px; border-radius: 6px; background: var(--fg); color: var(--bg); }
.ep i { font-style: normal; font-family: var(--font-j); font-weight: 700; font-size: 13px; letter-spacing: .32em; color: var(--fg-3); }
.jp-sub { font-family: var(--font-j); font-weight: 700; font-size: 14px; letter-spacing: .38em; color: var(--accent); margin: 0 0 18px; }
.stage { position: relative; isolation: isolate; }
.stage::before { content: attr(data-ep); position: absolute; left: -2%; top: -6%; z-index: -1; pointer-events: none; font-family: var(--font-d); font-weight: 900; font-stretch: 62%; font-size: clamp(160px, 22vw, 300px); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--app, var(--brand)) 42%, transparent); }
.stage::after { content: ""; position: absolute; inset: 4% 0 14%; z-index: -2; pointer-events: none; opacity: .55;
  background: radial-gradient(color-mix(in srgb, var(--app, var(--brand)) 70%, transparent) 1.3px, transparent 1.8px) 0 0 / 10px 10px;
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent); mask: radial-gradient(closest-side, #000 20%, transparent); }
.exhibit:nth-child(even) .stage::before { left: auto; right: -2%; }

/* alt panels flip the scheme: sand paper on the night page, forest on the sand page */
.panel.alt { --bg-2: var(--alt-bg); --fg: var(--alt-fg); --fg-2: var(--alt-fg-2); --fg-3: var(--alt-fg-3); --line: var(--alt-line); --line-2: var(--alt-line-2); --glass: var(--alt-glass); --glass-2: var(--alt-glass); --accent: var(--alt-accent); --ink-mix: var(--alt-ink-mix);
  --app-ink: color-mix(in srgb, var(--app, var(--accent)) var(--ink-mix), var(--fg));
  color: var(--fg); background: var(--bg-2); }
.panel.alt .btn:not(.primary) { background: transparent; }
.panel.alt .btn.done, .contact-card .btn.done { background: var(--fg); color: var(--bg-2); }
.panel.alt .ep b { background: var(--fg); color: var(--bg-2); }

/* next-episode card: electric purple title card with speed lines */
.contact-card { --bg-2: #4A2A9E; --fg: #ffffff; --fg-2: rgba(255, 255, 255, .86); --fg-3: rgba(255, 255, 255, .8); --line: rgba(255, 255, 255, .22); --line-2: rgba(255, 255, 255, .5); --act: #E8DCC4; --act-ink: #13261B; --app-ink: #ffffff;
  color: #fff; overflow: hidden; border-color: transparent;
  background: repeating-conic-gradient(from 0deg at 50% 125%, rgba(255, 255, 255, .07) 0deg 1deg, transparent 1deg 5deg), linear-gradient(150deg, #7442EE, #4A2A9E); }
.contact-card .kicker .jp { letter-spacing: .3em; margin-right: .6em; }
.contact-card .btn:not(.primary) { background: transparent; color: #fff; }
.contact-card .btn.primary { box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .5); }

.faq-k { display: block; font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 10px; }
.faq-k .jp { letter-spacing: .3em; margin-right: .6em; color: var(--accent); }
.fin { display: block; width: 100%; text-align: center; font-family: var(--font-j); font-weight: 900; font-size: clamp(40px, 7vw, 84px); letter-spacing: .4em; padding-left: .4em; color: color-mix(in srgb, var(--fg) 16%, transparent); margin: 20px 0 6px; }


/* ring phones: each app as a real handset with its own live-looking screen */
.ring-card { position: absolute; left: -78px; top: -176px; width: 156px; height: 352px; display: flex; flex-direction: column; align-items: center; gap: 12px; transform: rotateY(calc(var(--i) * 72deg)) translateZ(var(--rz, 290px)); backface-visibility: hidden; -webkit-backface-visibility: hidden; color: var(--fg); }
.rp { position: relative; display: block; width: var(--rpw); height: var(--rph); flex: none; border-radius: 30px; padding: 6px;
  background: linear-gradient(145deg, #4a5160 0%, #171a22 34%, #2c313d 64%, #14171f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .75), 0 26px 44px -18px rgba(0, 0, 0, .85); transition: box-shadow .4s, transform .4s var(--ease); }
.rp::before { content: ""; position: absolute; right: -2px; top: 26%; width: 2px; height: 46px; border-radius: 2px; background: #2c313d; }
.ring-card.front .rp { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 1px rgba(0, 0, 0, .75), 0 30px 50px -18px rgba(0, 0, 0, .85), 0 0 70px -12px var(--app); transform: translateY(-4px); }
.rp-screen { position: absolute; inset: 6px; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 30px 11px 12px; font-family: var(--font-b); font-size: 9.5px; line-height: 1.25; box-shadow: 0 0 0 1.5px #000; }
.rp-island { position: absolute; left: 50%; top: 12px; width: 46px; height: 14px; margin-left: -23px; border-radius: 8px; background: #000; z-index: 3; }
.rp-glare { position: absolute; inset: 0; border-radius: inherit; z-index: 4; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .05) 22%, transparent 36%, transparent 74%, rgba(255, 255, 255, .06) 100%); }
.rp-sb { position: absolute; left: 0; right: 0; top: 0; height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 0 16px; font-size: 8.5px; }
.rp-sb b { font-weight: 600; }
.rp-sb i { width: 16px; height: 7px; border-radius: 2px; border: 1px solid currentColor; opacity: .7; }
.rp-h { font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .72; font-family: var(--font-m); }
.rp-big { font-family: var(--font-m); font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.rp-big small { font-size: 12px; opacity: .6; }
.rp-up { color: #34D399; font-family: var(--font-m); font-size: 9px; }
.rp-spark { width: 100%; height: 34px; }
.rp-row { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); font-family: var(--font-m); }
.rp-row u { text-decoration: none; opacity: .7; }
.rp-pill { margin-top: auto; align-self: flex-start; padding: 4px 8px; border-radius: 999px; font-family: var(--font-m); font-size: 8.5px; letter-spacing: .1em; }
.rp-sd { background: radial-gradient(120% 70% at 50% 0%, #0d2b2b, #05070d 72%); color: #E6FFFB; }
.rp-sd .rp-pill { background: rgba(0, 245, 212, .14); color: #00F5D4; border: 1px solid rgba(0, 245, 212, .4); }
.rp-mz { background: radial-gradient(90% 60% at 50% 34%, #0f2a0f, #000 70%); color: #E0E0E0; align-items: center; text-align: center; }
.rp-moon { width: 74px; height: 74px; margin: 22px 0 6px; border-radius: 50%; box-shadow: 18px -9px 0 0 #39FF14, 0 0 40px rgba(57, 255, 20, .45); flex: none; }
.rp-kanji { font-family: var(--font-j); font-weight: 900; font-size: 17px; letter-spacing: .2em; color: #39FF14; }
.rp-wave { display: flex; gap: 3px; align-items: center; height: 26px; margin-top: 4px; }
.rp-wave i { width: 3px; border-radius: 2px; background: #39FF14; height: 30%; }
.rp-wave i:nth-child(2) { height: 60%; } .rp-wave i:nth-child(3) { height: 90%; } .rp-wave i:nth-child(4) { height: 55%; } .rp-wave i:nth-child(5) { height: 80%; } .rp-wave i:nth-child(6) { height: 40%; }
.rp-cap { margin-top: auto; font-size: 9.5px; opacity: .8; font-style: italic; }
.rp-sh { background: linear-gradient(180deg, #1e40af 0 34%, #EEF2FF 34%); color: #fff; }
.rp-sh .rp-h { margin-bottom: 18px; }
.rp-doc { display: grid; gap: 2px; padding: 8px 9px; border-radius: 10px; background: #fff; color: #0F172A; box-shadow: 0 6px 14px -8px rgba(30, 64, 175, .45); }
.rp-doc b { font-family: var(--font-m); font-size: 9.5px; }
.rp-doc u { text-decoration: none; color: #15803D; font-size: 8.5px; }
.rp-doc.dim u { color: #64748B; }
.rp-sc { background: #F7F7F5; color: #111827; }
.rp-sc .rp-sb, .rp-tk .rp-sb { color: #111827; }
.rp-sc .rp-h { font-family: var(--font-b); font-size: 15px; font-weight: 700; letter-spacing: -.01em; text-transform: none; opacity: 1; margin-bottom: 2px; }
.rp-ord { display: grid; gap: 4px; padding: 8px 9px; border-radius: 10px; background: #fff; border: 1px solid #E5E7EB; border-left: 3px solid #0F766E; }
.rp-ord b { font-size: 9.5px; }
.rp-ord u { text-decoration: none; justify-self: start; padding: 2px 6px; border-radius: 999px; font-size: 8px; background: #F3F4F6; color: #374151; }
.rp-ord u.ok { background: #D1FAE5; color: #065F46; } .rp-ord u.go { background: #CCFBF1; color: #115E59; }
.rp-tk { background: #F7F2E7; color: #1E2120; }
.rp-tk .rp-h { font-family: Georgia, serif; font-size: 13px; letter-spacing: .04em; text-transform: none; opacity: 1; color: #22452F; }
.rp-gate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 2px 0 4px; }
.rp-gate i { height: 6px; border-radius: 3px; background: #E2D6BE; }
.rp-gate i.d { background: #2E6B47; } .rp-gate i.n { background: #BFA167; }
.rp-tk .rp-row { background: #FCFAF5; border: 1px solid #E2D6BE; }
.rp-tk .rp-pill { background: #14291E; color: #E3D3AE; }
.ring-tag { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ring-sub { font-size: 11px; color: var(--fg-3); }
.ring-card.front .ring-name { color: var(--app-ink); }

/* x-ray: the build view (layers outlined, components tagged), after the reference board */
.xtags { position: absolute; inset: 0; z-index: 8; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.xtags li { position: absolute; left: clamp(70px, var(--x), calc(100% - 70px)); top: var(--y); padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--c); color: #0B1A12; font-family: var(--font-m); font-size: 11px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; box-shadow: 0 8px 20px -8px var(--c), 0 0 0 1px rgba(0, 0, 0, .15); opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .2s, transform .32s var(--ease); transition-delay: calc(var(--d, 0) * 55ms); }
.xtags li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #0B1A12; vertical-align: 1px; }
.xray .xtags li { opacity: 1; transform: translate(-50%, -50%); }
.xray .screen > *, .xray .screen > * > *, .xray .bd-screen.comp > *, .xray .bd-screen.comp > * > * { outline: 1px dashed var(--xc, #22D3EE); outline-offset: -1px; }
.xray .screen > :nth-child(4n+2), .xray .bd-screen.comp > :nth-child(4n+2) { --xc: #FACC15; }
.xray .screen > :nth-child(4n+3), .xray .bd-screen.comp > :nth-child(4n+3) { --xc: #F472B6; }
.xray .screen > :nth-child(4n+4), .xray .bd-screen.comp > :nth-child(4n+4) { --xc: #A3E635; }
.xray .screen::after { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; background: linear-gradient(rgba(34, 211, 238, .07) 1px, transparent 1px) 0 0 / 100% 8px, linear-gradient(90deg, rgba(34, 211, 238, .07) 1px, transparent 1px) 0 0 / 8px 100%; }
[data-xray][aria-pressed="true"] { border-color: #22D3EE; box-shadow: 0 0 0 1px #22D3EE, 0 10px 30px -10px #22D3EE; }

/* the build board: a design canvas with four frames of one screen */
.board { padding: clamp(64px, 9vw, 120px) 0 clamp(24px, 4vw, 48px); }
.board-head { max-width: 640px; margin: 0 0 28px; }
.board-head h2 { font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(48px, 6vw, 84px); line-height: .86; margin: 0 0 14px; }
.board-head .lede { color: var(--fg-2); font-size: clamp(16px, 1.5vw, 18px); }
.board-canvas { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); padding: clamp(22px, 3vw, 40px); border-radius: var(--r); border: 1px solid var(--line);
  background: radial-gradient(color-mix(in srgb, var(--fg) 13%, transparent) 1px, transparent 1.4px) 0 0 / 18px 18px, linear-gradient(180deg, #0f1013, #08090b);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06); }
.bd-col { position: relative; display: grid; justify-items: center; gap: 8px; min-width: 0; }
.bd-label { justify-self: start; font-family: var(--font-m); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #C9CDD6; }
.bd-label b { color: #B9A2FF; margin-right: 6px; }
.bd-size { justify-self: stretch; text-align: center; font-size: 10px; color: #60A5FA; border-top: 1px solid rgba(96, 165, 250, .5); padding-top: 4px; }
.bd-phone { position: relative; width: 100%; max-width: 240px; aspect-ratio: 9 / 19.5; border-radius: 34px; padding: 7px; background: linear-gradient(145deg, #4a5160, #171a22 34%, #2c313d 64%, #14171f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px #000, 0 30px 50px -22px rgba(0, 0, 0, .9); }
.bd-phone::before { content: ""; position: absolute; left: 50%; top: 14px; width: 30%; height: 15px; margin-left: -15%; border-radius: 9px; background: #000; z-index: 3; }
.bd-screen { position: relative; height: 100%; border-radius: 27px; overflow: hidden; display: flex; flex-direction: column; gap: 9px; padding: 38px 12px 12px; font-family: var(--font-b); font-size: 10.5px; line-height: 1.3; background: #FAFAF7; color: #0F1A14; }
.bd-top { display: flex; align-items: center; justify-content: space-between; }
.bd-top b { font-weight: 800; font-size: 14px; letter-spacing: -.01em; }
.bd-mode { padding: 3px 7px; border-radius: 999px; font-family: var(--font-m); font-size: 8.5px; letter-spacing: .1em; background: #EDE9FE; color: #5B21B6; }
.bd-hero { display: grid; gap: 1px; padding: 10px; border-radius: 14px; background: #0F1A14; color: #F1EDE3; }
.bd-hero small { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; font-family: var(--font-m); }
.bd-hero b { font-family: var(--font-m); font-size: 20px; letter-spacing: -.02em; }
.bd-up { font-family: var(--font-m); font-size: 9px; color: #6EE7B7; }
.bd-hero svg { width: 100%; height: 30px; color: #A78BFA; margin-top: 4px; }
.bd-cards { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6px; }
.bd-cards div { display: grid; gap: 2px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid #E7E2D6; }
.bd-cards small, .bd-gate small { font-size: 8.5px; color: #5C6B60; text-transform: uppercase; letter-spacing: .08em; }
.bd-cards b { font-size: 11px; }
.bd-gate { display: grid; gap: 4px; padding: 9px; border-radius: 12px; background: #fff; border: 1px solid #E7E2D6; }
.bd-bar { height: 6px; border-radius: 3px; background: #EEE8DA; overflow: hidden; }
.bd-bar i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, #6D3FE0, #8B5CF6); }
.bd-gate span { font-size: 9px; color: #3A4F40; }
.bd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bd-list li { display: flex; justify-content: space-between; padding: 7px 9px; border-radius: 10px; background: #fff; border: 1px solid #E7E2D6; font-family: var(--font-m); font-size: 9.5px; }
.bd-list span { color: #15803D; } .bd-list span.dn { color: #B91C1C; }
.bd-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 4px 2px; border-top: 1px solid #E7E2D6; }
.bd-tabs i { width: 16px; height: 16px; border-radius: 5px; background: #D9D3C4; }
.bd-tabs i.on { background: #6D3FE0; }
/* pass 01: the brief, written on stickies */
.bd-screen.brief { background: #1A1C21; gap: 10px; padding-top: 44px; }
.note { margin: 0; padding: 10px 11px; border-radius: 6px; color: #1B1B1B; font-size: 10.5px; line-height: 1.35; box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .8); transform: rotate(var(--r, -1deg)); }
.note b { display: block; font-family: var(--font-m); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 3px; opacity: .7; }
.note.n1 { background: #FDE68A; --r: -1.5deg; } .note.n2 { background: #A7F3D0; --r: 1deg; } .note.n3 { background: #C4B5FD; --r: -.6deg; } .note.n4 { background: #FBCFE8; --r: 1.4deg; }
/* pass 02: wireframe, every element a grey block */
.bd-screen.wire { background: #F4F4F2; }
.bd-screen.wire, .bd-screen.wire * { color: transparent !important; border-color: #D4D4D0 !important; }
.bd-screen.wire .bd-hero, .bd-screen.wire .bd-mode, .bd-screen.wire .bd-tabs i { background: #DCDCD8; }
.bd-screen.wire b, .bd-screen.wire small, .bd-screen.wire span:not(.bd-mode) { background: #E3E3DF; border-radius: 3px; }
.bd-screen.wire .bd-bar i { background: #C9C9C5; }
.bd-screen.wire svg path { stroke: #C9C9C5; }
/* pass 03: components, outlined and tagged */
.bd-screen.comp > *, .bd-screen.comp > * > * { outline: 1px dashed var(--xc, #22D3EE); outline-offset: -1px; }
.bd-screen.comp > :nth-child(4n+2) { --xc: #FACC15; } .bd-screen.comp > :nth-child(4n+3) { --xc: #F472B6; } .bd-screen.comp > :nth-child(4n+4) { --xc: #A3E635; }
.bd-tags li { font-size: 10px; padding: 4px 8px 4px 7px; opacity: 1; transform: translate(-50%, -50%); }
.bd-ok { position: absolute; right: 2%; top: 8%; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #F59E0B; color: #1B1B1B; font-weight: 800; font-size: 14px; box-shadow: 0 6px 16px -6px #F59E0B; }
.board.xray .bd-col:not(:nth-child(3)) { opacity: .45; transition: opacity .3s; }
@media (max-width: 1000px) {
  .board-canvas { grid-template-columns: repeat(4, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .bd-col { scroll-snap-align: center; }
}


/* ---------- trust layer: skip link, motion control, status, plain words, contact ---------- */
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--act); color: var(--act-ink); font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.dock-motion, .dock-theme { flex: none; }
.dock-motion { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.dock-motion span { width: 10px; height: 12px; border-inline: 3px solid var(--fg); }
.dock-motion[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-left: 10px solid var(--fg); border-block: 6px solid transparent; margin-left: 3px; }
.still .band .track, .still .sticker .spin, .still .pulse { animation-play-state: paused; }
.still .field { opacity: .55; }

.status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-m); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1px solid currentColor; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-built { color: #6EE7A8; } .st-proto { color: #FCD34D; } .st-dev { color: var(--fg-2); }
:root[data-theme="light"] .st-built, .panel.alt .st-built { color: #146C3C; }
:root[data-theme="light"] .st-proto, .panel.alt .st-proto { color: #6E4700; }
:root[data-theme="light"] .panel.alt .st-built { color: #6EE7A8; }
:root[data-theme="light"] .panel.alt .st-proto { color: #FCD34D; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .st-built { color: #146C3C; } :root:not([data-theme="dark"]) .st-proto { color: #6E4700; }
  :root:not([data-theme="dark"]) .panel.alt .st-built { color: #6EE7A8; } :root:not([data-theme="dark"]) .panel.alt .st-proto { color: #FCD34D; }
}
.st-note { font-family: var(--font-m); font-size: 11px; letter-spacing: .04em; color: var(--fg-3); }
.plain { margin: -8px 0 18px; font-size: 15px; line-height: 1.5; color: var(--fg-2); max-width: 54ch; }
.plain b { color: var(--fg); font-weight: 600; }
.disclaimer { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.5; color: var(--fg-3); }
.pilot { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-2); }
.pilot a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.legend { grid-column: 1 / -1; display: grid; gap: 8px; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: var(--r-s); }
.legend-k { margin: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); }
.legend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-2); }
.legend-n { margin: 0; font-size: 13.5px; color: var(--fg-2); }

.contact-lede { margin: -8px auto 18px; max-width: 46ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--fg-2); }
.offers { list-style: none; margin: 0 auto 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 760px; text-align: left; }
.offers li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.offers b { font-size: 15px; color: #fff; }
.offers span { font-size: 13px; color: rgba(255, 255, 255, .86); }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }


/* ---------- UX pass: ring depth, hero hint, mobile work menu, case links, contact meta ---------- */
.ring { transform: rotateX(-8deg) rotateY(calc(var(--ry, 0) * 1deg)) scale(var(--ring-scale)); }
.ring-card:focus-visible { outline: none; }
.ring-card:focus-visible .rp { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent), 0 30px 50px -18px rgba(0, 0, 0, .85); }
@media (min-width: 1100px) { :root { --ring-scale: 1.16; } .vitrine { height: clamp(460px, 40vw, 540px); } }
.hero-hint { letter-spacing: .04em; text-transform: none; }
.hero-hint .k-drag, .hero-hint .k-swipe { color: var(--fg-2); }
.k-swipe { display: none; }
@media (hover: none) { .hero-hint .k-drag { display: none; } .hero-hint .k-swipe { display: inline; } }

.dock-work { position: static; display: none; }
.dock-work-btn { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); font-weight: 600; font-size: 13.5px; }
.dock-work-btn[aria-expanded="true"] { background: var(--glass-2); }
.dock-work-menu { position: absolute; left: 6px; right: 6px; top: calc(100% + 8px); z-index: var(--z-dock); margin: 0; padding: 6px; list-style: none; min-width: 220px; border-radius: 16px; display: grid; gap: 2px; background: var(--bg-2); }
.dock-work-menu[hidden] { display: none; }
.dock-work-menu a { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.dock-work-menu a:hover, .dock-work-menu a:focus-visible { background: var(--glass-2); }
.dock-work-menu b { font-family: var(--font-m); font-size: 11px; letter-spacing: .14em; color: var(--accent); min-width: 44px; }
@media (max-width: 760px) {
  .dock-work { display: block; }
  .dock { gap: 4px; }
  .dock-brand { font-size: 16px; padding: 0 12px 2px 11px; }
  .dock-work-btn, .dock-mail { padding: 0 11px; }
}
@media (max-width: 360px) { .dock { gap: 3px; padding: 5px; } .dock-mail .long { display: none; } .dock-brand { font-size: 14px; padding: 0 9px 2px; } .dock-motion, .dock-theme { width: 34px; height: 34px; } .dock-work-btn, .dock-mail { padding: 0 10px; } }

.case-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 16px; font-weight: 600; font-size: 14.5px; color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); padding-bottom: 2px; transition: gap var(--dur-2) var(--ease-out), border-color var(--dur-2); }
.case-link:hover { gap: 10px; border-color: var(--accent); }
.contact-meta { margin: 18px 0 0; font-size: 11.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .82); }

/* consistent interaction states */
.btn:focus-visible, .dock-work-btn:focus-visible, .dock-theme:focus-visible, .dock-motion:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn[aria-busy="true"] { cursor: progress; }
.faq summary:hover { color: var(--accent); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-s); }


/* fuller app screens: recent feed, basket, rider route */
.sh-recent { display: grid; gap: 4px; margin-top: 2px; }
.sh-recent small { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.sh-recent p { margin: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 6px 9px; background: #fff; border: 1px solid #e2e8f0; border-radius: 9px; font-size: 10.5px; }
.sh-recent b { font-weight: 600; } .sh-recent span { color: #1e40af; font-size: 10px; text-align: right; } .sh-recent i { font-style: normal; color: #94a3b8; font-size: 9.5px; }
.sc-basket { display: grid; gap: 4px; padding: 9px 10px; border-radius: 10px; background: #fff; border: 1px dashed #0F766E; }
.sc-basket small { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #0F766E; font-weight: 600; }
.sc-basket p { margin: 0; display: flex; justify-content: space-between; font-size: 11px; }
.sc-basket p.tot { padding-top: 4px; border-top: 1px solid #ECEDEB; font-weight: 700; }
.sc-route { position: relative; height: 120px; border-radius: 12px; overflow: hidden; border: 1px solid #ECEDEB;
  background: linear-gradient(90deg, rgba(15, 118, 110, .06) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(rgba(15, 118, 110, .06) 1px, transparent 1px) 0 0 / 18px 18px, #EEF6F4; }
.sc-route::before { content: ""; position: absolute; left: 22px; top: 24px; width: 70%; height: 64px; border: 2.5px dashed #0F766E; border-left: 0; border-bottom: 0; border-radius: 0 40px 0 0; }
.sc-route i { position: absolute; width: 12px; height: 12px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.sc-route i.a { left: 16px; top: 18px; background: #0F766E; } .sc-route i.b { left: calc(22px + 70% - 6px); top: 82px; background: #B54708; }
.sc-route span { position: absolute; font-size: 9.5px; font-weight: 600; background: #fff; padding: 2px 6px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.sc-route .p1 { left: 34px; top: 34px; } .sc-route .p2 { right: 10px; bottom: 8px; }


/* ---------- turntable: phones with real bodies on a lit, turning dial ---------- */
.ring { --rz: 290px; --floor-y: 136px; top: 44%; }
.spot { top: 44%; }
.ring-card { --rpw: 156px; --rph: 302px; transform-style: preserve-3d; opacity: clamp(0, calc(var(--face, 1) * 14), 1); }
.rp { transform-style: preserve-3d; }
.rp-edge { position: absolute; left: 50%; top: 0; width: var(--rpw); height: var(--rph); margin-left: calc(var(--rpw) / -2); border-radius: 30px; pointer-events: none;
  background: linear-gradient(90deg, #15181e, #3b414e 18%, #23272f 50%, #3b414e 82%, #15181e); box-shadow: 0 0 0 1px rgba(0, 0, 0, .65); transform: translateZ(-9px); }
.rp-shade { position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; background: #04070a; opacity: 0; will-change: opacity; }
.ring-card.front .rp { transform: none; }
/* only the front phone carries a caption */
.ring-tag { margin-top: 2px; padding: 4px 10px 5px; gap: 0; border-radius: 12px; background: color-mix(in srgb, var(--bg-2) 82%, transparent); border: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.ring-card.front .ring-tag { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--app) 45%, var(--line)); }
.ring-ep { font-size: 10px; letter-spacing: .2em; color: var(--accent); }
.ring-sub { white-space: nowrap; font-size: 10.5px; margin-top: 0; }
.ring-tag .ring-name { font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: 22px; line-height: 1.05; letter-spacing: .01em; }
/* the dial: lies in the floor plane inside the ring, so it turns with the phones */
.dial { position: absolute; left: calc(var(--rz) * -1.3); top: calc(var(--rz) * -1.3); width: calc(var(--rz) * 2.6); height: calc(var(--rz) * 2.6); border-radius: 50%; pointer-events: none;
  transform: translateY(var(--floor-y)) rotateX(90deg);
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--brand) 30%, transparent), transparent 55%),
    repeating-radial-gradient(circle, transparent 0 34px, color-mix(in srgb, var(--fg) 9%, transparent) 34px 35px);
  -webkit-mask: radial-gradient(closest-side, #000 72%, transparent 100%); mask: radial-gradient(closest-side, #000 72%, transparent 100%); }
.dial::before { content: ""; position: absolute; inset: 7%; border-radius: 50%;
  background: repeating-conic-gradient(from -1deg, color-mix(in srgb, var(--fg) 26%, transparent) 0 .5deg, transparent .5deg 4deg);
  -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 89%, #000 96%, transparent 97%); mask: radial-gradient(closest-side, transparent 88%, #000 89%, #000 96%, transparent 97%); }
.dial::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--brand) 70%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--brand) 45%, transparent); }
.dial-mark { position: absolute; left: 50%; top: 50%; width: 44px; height: 20px; margin: -10px 0 0 -22px; display: grid; place-items: center; border-radius: 6px; font-family: var(--font-m); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--fg-2); border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 70%, transparent);
  transform: rotate(calc(var(--i) * -72deg)) translateY(calc(var(--rz) * 1.12)); transition: background var(--dur-3), color var(--dur-3), box-shadow var(--dur-3); }
.dial-mark.on { color: #fff; background: var(--act); border-color: transparent; box-shadow: 0 0 22px var(--brand); }
/* contact shadow and rim light under whichever phone is at the front */
.spot { position: absolute; left: 50%; top: 50%; width: 230px; height: 44px; margin: -22px 0 0 -115px; border-radius: 50%; pointer-events: none;
  transform: translateY(calc(var(--floor-y, 136px) * 1.32 * var(--ring-scale)));
  background: radial-gradient(closest-side, rgba(0, 0, 0, .62), rgba(0, 0, 0, .25) 55%, transparent), radial-gradient(closest-side, color-mix(in srgb, var(--brand) 45%, transparent), transparent 80%); }
/* arrows: a visible, keyboard- and touch-friendly way to turn the ring */
.ring-btn { position: absolute; top: 50%; z-index: 5; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--fg);
  background: color-mix(in srgb, var(--bg-2) 82%, transparent); box-shadow: var(--shadow); cursor: pointer; transition: background var(--dur-2), color var(--dur-2), border-color var(--dur-2), transform var(--dur-1) var(--ease-out); }
.ring-btn.prev { left: 0; } .ring-btn.next { right: 0; }
.ring-btn:hover { background: var(--act); color: #fff; border-color: transparent; }
.ring-btn:active { transform: scale(.92); }
.ring-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* explore button (showcase.css loads only on first click) */
.btn.explore { background: var(--fg); color: var(--bg); border-color: transparent; }
.btn.explore:hover { box-shadow: 0 12px 30px -10px var(--brand); }
.panel.alt .btn.explore { background: var(--fg); color: var(--bg-2); }


/* ---------- energy core: the source behind the turntable (transform/opacity only) ---------- */
.core { position: absolute; left: 50%; top: 44%; width: 0; height: 0; z-index: 0; pointer-events: none; }
.ring { z-index: 1; } .spot, .ring-btn, .vitrine .sticker { z-index: 2; }
.core i { position: absolute; left: 0; top: 0; display: block; border-radius: 50%; }
.core-halo { width: 620px; height: 620px; margin: -310px 0 0 -310px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .55), rgba(196, 181, 253, .45) 12%, rgba(139, 92, 246, .32) 30%, rgba(34, 211, 238, .12) 52%, transparent 72%); }
.core-rays { width: 760px; height: 760px; margin: -380px 0 0 -380px; will-change: transform;
  background: repeating-conic-gradient(from 0deg, rgba(196, 181, 253, .22) 0deg 1.2deg, transparent 1.2deg 9deg);
  -webkit-mask: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, .55) 40%, transparent 72%); mask: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, .55) 40%, transparent 72%);
  animation: coreSpin 40s linear infinite; }
.core-orb { width: 190px; height: 190px; margin: -95px 0 0 -95px; will-change: transform;
  background: radial-gradient(circle at 50% 50%, #fff 0 14%, #E9E3FF 24%, #A78BFA 46%, rgba(139, 92, 246, .55) 62%, transparent 72%);
  box-shadow: 0 0 70px 26px rgba(139, 92, 246, .6), 0 0 160px 80px rgba(124, 58, 237, .3), 0 0 40px 10px rgba(103, 232, 249, .25); animation: coreBreathe 4.2s ease-in-out infinite; }
.core-orb b { position: absolute; inset: 18%; border-radius: 50%; will-change: transform;
  background: conic-gradient(from 0deg, transparent 0 16%, rgba(255, 255, 255, .55) 22%, rgba(255, 255, 255, .85) 25%, rgba(255, 255, 255, .5) 29%, transparent 36% 54%, rgba(103, 232, 249, .5) 60%, rgba(103, 232, 249, .8) 64%, rgba(103, 232, 249, .45) 68%, transparent 75%); -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent); animation: coreSpin 3.2s linear infinite; }
.core-wave { width: 300px; height: 300px; margin: -150px 0 0 -150px; border: 2px solid rgba(196, 181, 253, .7); box-shadow: 0 0 24px rgba(139, 92, 246, .6), inset 0 0 24px rgba(139, 92, 246, .4);
  transform: translateY(calc(var(--floor-y, 136px) * .9)) scale(.2) scaleY(.26); opacity: 0; will-change: transform, opacity; animation: coreWave 4.5s cubic-bezier(.2, .8, .2, 1) infinite; }
.core-wave.w2 { animation-delay: 1.5s; } .core-wave.w3 { animation-delay: 3s; }
.core-beam { width: 120px; height: 980px; margin: -680px 0 0 -60px; border-radius: 60px;
  background: linear-gradient(180deg, transparent, rgba(196, 181, 253, .18) 22%, rgba(233, 227, 255, .7) 63%, rgba(167, 139, 250, .35) 76%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); mask: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
  animation: coreBeam 3.6s ease-in-out infinite; }
.core-spark { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: #E9E3FF; box-shadow: 0 0 10px 3px rgba(167, 139, 250, .9); opacity: 0; will-change: transform, opacity; animation: coreSpark 3.4s ease-out infinite; }
.core-spark.s1 { --x: -60px; animation-delay: 0s; } .core-spark.s2 { --x: 46px; animation-delay: .6s; } .core-spark.s3 { --x: -18px; animation-delay: 1.2s; }
.core-spark.s4 { --x: 78px; animation-delay: 1.8s; } .core-spark.s5 { --x: -92px; animation-delay: 2.4s; } .core-spark.s6 { --x: 20px; animation-delay: 3s; }
@keyframes coreSpin { to { transform: rotate(360deg); } }
@keyframes coreBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes coreWave { 0% { transform: translateY(calc(var(--floor-y, 136px) * .9)) scale(.2) scaleY(.26); opacity: .9; } 100% { transform: translateY(calc(var(--floor-y, 136px) * .9)) scale(2.3) scaleY(.26); opacity: 0; } }
@keyframes coreBeam { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes coreSpark { 0% { transform: translate(var(--x), 60px) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(calc(var(--x) * 1.4), -260px) scale(1); opacity: 0; } }
.still .core *, .still .core-orb b { animation-play-state: paused; }
@media (max-width: 760px) { .core { transform: scale(.72); } .core-spark.s5, .core-spark.s6, .core-wave.w3 { display: none; } }

/* ---------- real phones: titanium, bezel, lens, buttons, moving reflections ---------- */
.rp { padding: 4px; border-radius: 30px;
  background:
    linear-gradient(calc(105deg + var(--sx, 0) * 50deg), rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, .22) 74%, rgba(255, 255, 255, 0) 88%),
    linear-gradient(150deg, #7d838f 0%, #3a3f49 20%, #a9afb9 46%, #474c57 66%, #8c929d 86%, #5a606b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38), inset 0 0 0 2.5px rgba(10, 12, 16, .7), 0 0 0 1px rgba(0, 0, 0, .75),
    0 34px 44px -22px rgba(0, 0, 0, .95); }
.ring-card.front .rp { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42), inset 0 0 0 2.5px rgba(10, 12, 16, .7), 0 0 0 1px rgba(0, 0, 0, .75),
    0 36px 40px -22px rgba(0, 0, 0, .95), 0 0 46px -6px rgba(139, 92, 246, .7); }
.rp-screen { inset: 4px; border: 3.5px solid #020304; border-radius: 26px; box-shadow: none; padding: 27px 9px 10px; }
.rp-screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 18px rgba(0, 0, 0, .35); }
.rp::before { right: -2.5px; top: 30%; width: 3px; height: 50px; background: linear-gradient(90deg, #5a606b, #9aa0aa); }
.rp::after { content: ""; position: absolute; left: -2.5px; top: 21%; width: 3px; height: 22px; border-radius: 2px; background: linear-gradient(270deg, #5a606b, #9aa0aa); box-shadow: 0 34px 0 0 #7d838f, 0 66px 0 0 #7d838f; }
.rp-island { top: 11px; width: 50px; height: 15px; margin-left: -25px; border-radius: 9px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.rp-island::after { content: ""; position: absolute; right: 7px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #4b5c7a 0 20%, #11151d 55%, #000 70%); }
.rp-glare { background:
    linear-gradient(115deg, transparent 0%, transparent calc(28% + var(--sx, 0) * 30%), rgba(255, 255, 255, .16) calc(36% + var(--sx, 0) * 30%), transparent calc(46% + var(--sx, 0) * 30%), transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 18%); }
.rp-sb { top: 3px; padding: 6px 12px 0 15px; font-size: 8.5px; align-items: center; }
.rp-sic { display: flex; align-items: center; gap: 3px; }
.rp-sic svg { fill: currentColor; display: block; }
.rp-bat { position: relative; width: 19px; height: 9px; border: 1px solid currentColor; border-radius: 2.5px; padding: 1px; opacity: .9; }
.rp-bat::after { content: ""; position: absolute; right: -3px; top: 2.5px; width: 1.5px; height: 3px; border-radius: 0 1px 1px 0; background: currentColor; }
.rp-bat i { display: block; width: 78%; height: 100%; border-radius: 1px; background: currentColor; }
.rp-sb i { all: unset; }
.rp-edge { background: linear-gradient(90deg, #2a2e36, #8c929d 18%, #3e434d 50%, #8c929d 82%, #2a2e36); }


/* ---------- energy core on cream: deeper violets so the source reads on a light ground ---------- */
:root[data-theme="light"] .core-halo { background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(196, 181, 253, .75) 10%, rgba(139, 92, 246, .45) 26%, rgba(109, 40, 217, .18) 46%, transparent 70%); }
:root[data-theme="light"] .core-rays { background: repeating-conic-gradient(from 0deg, rgba(109, 40, 217, .26) 0deg 1.1deg, transparent 1.1deg 9deg); }
:root[data-theme="light"] .core-orb { background: radial-gradient(circle at 50% 50%, #fff 0 13%, #F1ECFF 20%, #A78BFA 40%, #7C3AED 56%, rgba(109, 40, 217, .4) 66%, transparent 72%);
  box-shadow: 0 0 60px 22px rgba(124, 58, 237, .45), 0 0 150px 70px rgba(139, 92, 246, .28), 0 0 30px 6px rgba(34, 211, 238, .25); }
:root[data-theme="light"] .core-wave { border-color: rgba(109, 40, 217, .75); box-shadow: 0 0 22px rgba(124, 58, 237, .45), inset 0 0 22px rgba(124, 58, 237, .3); }
:root[data-theme="light"] .core-beam { background: linear-gradient(180deg, transparent, rgba(167, 139, 250, .25) 22%, rgba(124, 58, 237, .45) 60%, rgba(109, 40, 217, .3) 76%, transparent); }
:root[data-theme="light"] .core-spark { background: #7C3AED; box-shadow: 0 0 10px 3px rgba(124, 58, 237, .65); }
:root[data-theme="light"] .dial-mark { background: color-mix(in srgb, var(--bg-2) 85%, transparent); }


/* ---------- power source v2: a defined reactor that reads around the front phone ---------- */
.core { transform-style: preserve-3d; }
/* cleaner, more saturated halo instead of a wash */
:root[data-theme="light"] .core-halo { width: 520px; height: 520px; margin: -260px 0 0 -260px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(167, 139, 250, .7) 14%, rgba(124, 58, 237, .42) 30%, rgba(109, 40, 217, .14) 52%, transparent 68%); }
:root[data-theme="light"] .core-rays { opacity: .7; }
/* the beam: soft pillar plus a tight bright core line */
:root[data-theme="light"] .core-beam { width: 150px; margin-left: -75px;
  background: linear-gradient(180deg, transparent, rgba(167, 139, 250, .22) 20%, rgba(124, 58, 237, .38) 62%, rgba(109, 40, 217, .25) 78%, transparent); }
.core-beam::after { content: ""; position: absolute; left: 50%; top: 8%; bottom: 20%; width: 6px; margin-left: -3px; border-radius: 3px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .95) 30%, #fff 62%, rgba(196, 181, 253, .9) 80%, transparent);
  box-shadow: 0 0 14px 4px rgba(139, 92, 246, .75), 0 0 34px 10px rgba(124, 58, 237, .35); }
/* orbits: comet arcs sweeping around the phones on two tilts */
.core-orbit { width: 470px; height: 470px; margin: -235px 0 0 -235px; will-change: transform;
  background: conic-gradient(from 0deg, transparent 0 48%, rgba(139, 92, 246, .15) 60%, rgba(124, 58, 237, .85) 88%, #fff 96%, transparent 97% 100%);
  -webkit-mask: radial-gradient(closest-side, transparent 95%, #000 96.5%, #000 99%, transparent 100%); mask: radial-gradient(closest-side, transparent 95%, #000 96.5%, #000 99%, transparent 100%);
  animation: orbitA 5.5s linear infinite; }
.core-orbit.o2 { width: 400px; height: 400px; margin: -200px 0 0 -200px; animation: orbitB 4s linear infinite;
  background: conic-gradient(from 0deg, transparent 0 52%, rgba(34, 211, 238, .12) 62%, rgba(14, 165, 233, .7) 88%, #fff 96%, transparent 97% 100%); }
@keyframes orbitA { from { transform: rotateX(74deg) rotateZ(0deg); } to { transform: rotateX(74deg) rotateZ(360deg); } }
@keyframes orbitB { from { transform: rotateY(32deg) rotateX(70deg) rotateZ(360deg); } to { transform: rotateY(32deg) rotateX(70deg) rotateZ(0deg); } }
/* energy rings rising up the beam */
.core-lift { width: 170px; height: 170px; margin: -85px 0 0 -85px; border: 2px solid rgba(124, 58, 237, .85); box-shadow: 0 0 16px rgba(139, 92, 246, .6), inset 0 0 12px rgba(139, 92, 246, .35);
  opacity: 0; will-change: transform, opacity; animation: coreLift 3.3s cubic-bezier(.4, 0, .6, 1) infinite; }
.core-lift.l2 { animation-delay: 1.1s; } .core-lift.l3 { animation-delay: 2.2s; }
@keyframes coreLift {
  0% { transform: translateY(150px) rotateX(78deg) scale(1.1); opacity: 0; }
  18% { opacity: .95; }
  100% { transform: translateY(-330px) rotateX(78deg) scale(.35); opacity: 0; } }
/* sparkle flare where the beam leaves the frame */
.core-flare { width: 130px; height: 130px; margin: -340px 0 0 -65px; border-radius: 0 !important; will-change: transform, opacity;
  background: linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, .95) 50%, transparent 54%), linear-gradient(0deg, transparent 46%, rgba(255, 255, 255, .95) 50%, transparent 54%),
    radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(167, 139, 250, .6) 22%, transparent 60%);
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 100%); mask: radial-gradient(closest-side, #000 30%, transparent 100%);
  animation: coreFlare 3.6s ease-in-out infinite; }
@keyframes coreFlare { 0%, 100% { transform: scale(.75) rotate(0deg); opacity: .75; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
.still .core-orbit, .still .core-lift, .still .core-flare { animation-play-state: paused; }
@media (max-width: 760px) { .core-orbit { width: 340px; height: 340px; margin: -170px 0 0 -170px; } .core-orbit.o2 { width: 290px; height: 290px; margin: -145px 0 0 -145px; } .core-flare { margin-top: -290px; } }
@media (prefers-reduced-motion: reduce) { .core-orbit { transform: rotateX(74deg); } .core-orbit.o2 { transform: rotateY(32deg) rotateX(70deg); } .core-lift { display: none; } }


/* power source: performance trims (fewer masked layers recomposited per frame) */
.core-rays { animation: none; will-change: auto; }
.core-lift.l3 { display: none; }
.core-lift { animation-duration: 3s; } .core-lift.l2 { animation-delay: 1.5s; }
.core-flare { -webkit-mask: none; mask: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(196, 181, 253, .7) 18%, rgba(139, 92, 246, .25) 42%, transparent 62%),
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, .9) 50%, transparent 53%) center / 100% 30% no-repeat,
    linear-gradient(0deg, transparent 47%, rgba(255, 255, 255, .9) 50%, transparent 53%) center / 30% 100% no-repeat; }

/* adaptive quality: when frames drop, decorative core motion pauses; glow, beam and orbits remain */
.lite .core-lift, .lite .core-spark, .lite .core-wave, .lite .core-flare, .lite .core-orb, .lite .core-orb b, .lite .core-beam { animation-play-state: paused; }


/* ---------- plasma core (WebGL). When it runs, the CSS layers step aside; they stay as the no-WebGL fallback ---------- */
.core-gl { position: absolute; left: -360px; top: -640px; width: 720px; height: 1000px; pointer-events: none; }
.core.gl > i { display: none; }
@media (max-width: 760px) { .core-gl { left: -300px; top: -540px; width: 600px; height: 840px; } }

/* ---------- services and process: what clients hire, how a project runs ---------- */
.hire { padding: clamp(64px, 9vw, 120px) 0 clamp(24px, 4vw, 48px); scroll-margin-top: 90px; }
.hire-head { max-width: 700px; margin: 0 0 28px; }
.hire-head h2, .hire-run h3 { font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: .88; text-wrap: balance; }
.hire-head h2 { font-size: clamp(46px, 6vw, 84px); margin: 0 0 14px; }
.hire-head .lede { color: var(--fg-2); font-size: clamp(16px, 1.5vw, 18px); max-width: 52ch; margin: 0; }
.hire-grid { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hire-grid > li { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2.4vw, 28px); min-width: 0; }
.hire-n { font-size: 11px; letter-spacing: .2em; color: var(--fg-3); }
.hire-grid h3 { font-family: var(--font-d); font-weight: 800; font-stretch: 62%; text-transform: uppercase; font-size: clamp(27px, 2.6vw, 34px); line-height: .95; margin: 0; }
.hire-grid p { margin: 0; color: var(--fg-2); font-size: 15px; }
.hire-for { margin: 0; display: grid; gap: 3px; padding-top: 12px; border-top: 1px solid var(--line); }
.hire-for dt, .hire-proof .mono, .hire-k { font-family: var(--font-m); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.hire-for dd { margin: 0; font-size: 14.5px; font-weight: 600; }
.hire-grid .hire-proof { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.hire-proof .case-link { margin: 0; min-height: 24px; }
.hire-run { scroll-margin-top: 90px; }
.hire .kicker .jp { letter-spacing: .3em; margin-right: .6em; }
.hire-run h3 { font-size: clamp(38px, 4.6vw, 64px); margin: 0 0 22px; }
.hire-steps { list-style: none; counter-reset: hs; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hire-steps li { counter-increment: hs; display: grid; align-content: start; gap: 6px; padding: 14px 14px 16px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--glass); min-width: 0; }
.hire-steps li::before { content: counter(hs, decimal-leading-zero); font-family: var(--font-d); font-weight: 900; font-stretch: 62%; font-size: 34px; line-height: 1; color: var(--accent); }
.hire-steps b { font-size: 16px; font-weight: 700; }
.hire-steps span { font-size: 14px; color: var(--fg-2); }
.hire-k { margin: 0 0 12px; }
.hire-ways { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 22px; }
.hire-ways li { display: grid; align-content: start; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.hire-ways b { font-size: 15.5px; font-weight: 700; }
.hire-ways span { font-size: 14px; color: var(--fg-2); }
@media (max-width: 1023px) { .hire-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hire-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hire-steps, .hire-ways { grid-template-columns: 1fr; } }

/* ---------- load speed ---------- */
/* arrows are a mask, so no symbol font is ever looked up */
.arr { display: inline-block; width: .95em; height: .75em; vertical-align: -.02em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M0 7h16.2l-5.6-5.6L12 0l8 8-8 8-1.4-1.4L16.2 9H0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M0 7h16.2l-5.6-5.6L12 0l8 8-8 8-1.4-1.4L16.2 9H0z'/%3E%3C/svg%3E") center / contain no-repeat; }
/* decorative Japanese waits for its own small font instead of pulling in a multi-megabyte system CJK font */
html:not(.jp-ok) [lang="ja"], html:not(.jp-ok) .rp-kanji { display: none; }
/* A-05: off-screen sections skip their rendering work, but only after the page has rendered once (app.js adds .cv).
   By then each section remembers its real height, so links such as /#shopconnect land in the right place.
   Applied from the first frame with a guessed height, this made deep links land a section too early. */
.exhibit, .board, .hire, .faq { contain-intrinsic-size: auto 1000px; }
.cv .exhibit, .cv .board, .cv .hire, .cv .faq { content-visibility: auto; }

/* ---------- responsive ---------- */
@media (max-height: 520px) and (orientation: landscape) { .marks { display: none; } .hero { padding-top: 84px; } .eyebrow { margin-bottom: 10px; } h1 { margin-bottom: 12px; } }
@media (max-width: 980px) { .dock-links { display: none; } .dock-work { display: block; } }
@media (max-width: 480px) { .xtags li { left: clamp(92px, var(--x), calc(100% - 92px)); font-size: 10px; padding: 4px 8px 4px 7px; } }
@media (min-width: 1001px) { h1 { font-size: clamp(58px, min(calc((min(100vw, 1180px) - 80px) / 8.6), 15svh), 120px); } }
@media (max-width: 420px) { .marks { display: none; } .eyebrow { flex-wrap: wrap; row-gap: 6px; } }
@media (max-width: 1320px) { .v-jp { display: none; } }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 110px; }
  .vitrine { height: clamp(470px, 62vw, 540px); }
  .exhibit { grid-template-columns: 1fr; gap: 28px; }
  .exhibit:nth-child(even) .stage { order: 0; }
}
@media (max-width: 760px) {
  .dock-links { display: none; }
  .v-jp, .marks span:nth-child(2) { display: none; }
  .vitrine .sticker { width: 84px; height: 84px; left: auto; right: 0; top: -6px; }
  .marks { right: 16px; }
  .o3 { display: none; }
  .orb { filter: blur(40px); }
  .ring { --rz: 210px; --floor-y: 112px; }
  .vitrine { height: 430px; }
  .ring-card { --rpw: 132px; --rph: 256px; left: -66px; top: -150px; width: 132px; height: 330px; }
  .rp-edge { border-radius: 26px; }
  .dial-mark { font-size: 10px; width: 38px; margin-left: -19px; }
  .ring-btn { width: 40px; height: 40px; margin-top: -20px; }
  .rp { border-radius: 26px; }
  .rp-screen { border-radius: 21px; }
  .laptop { max-width: 100%; }
  .laptop .base { margin: 0 -2%; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .strip li { padding: 10px 12px; gap: 8px; }
  .strip b { font-size: 20px; }
  .strip span { font-size: 11px; }
  .panel { padding: 22px 18px; }
  .steps li { padding: 7px 10px; }
  .facts dd { font-size: 20px; }
  .mail code { font-size: 13px; width: 100%; text-align: center; }
  .mail .btn { flex: 1; }
  .phone { width: min(290px, 84vw); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  .ring { transform: rotateX(-8deg) rotateY(calc(var(--ry, 0) * 1deg)) scale(var(--ring-scale)) !important; }
  .orbit { animation: none; }
  .band .track, .sticker .spin { animation: none !important; }
  .dock-motion { display: none; }
}

/* =====================================================================
   v1.2: a 3D, interactive profile (owner's direction, 15 Nov 2026)
   ===================================================================== */
@property --tx { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --ty { syntax: '<number>'; inherits: false; initial-value: 0; }

/* a faint engineering grid on the fixed atmosphere layer: static, paints once, sits behind everything */
.atmos::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(19, 38, 27, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 38, 27, .05) 1px, transparent 1px); background-size: 56px 56px; }

/* hero depth: the ring and its core lean toward the pointer (values are set by app.js, fine pointers only) */
.ring { transform: rotateX(calc(-8deg - var(--ty) * 6deg)) rotateY(calc(var(--ry, 0) * 1deg + var(--tx) * 9deg)) scale(var(--ring-scale)); }
.core { translate: calc(var(--tx) * -14px) calc(var(--ty) * -9px); }
.marks [data-ist-short] { font-variant-numeric: tabular-nums; }

/* an open answer no longer stretches its neighbour */
.faq-grid { align-items: start; }
.contact-meta { color: #fff; }
.contact-card .mail .btn { white-space: nowrap; }

/* world: live time zones beside a globe you can turn */
.world { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px 56px; align-items: center; padding: clamp(48px, 7vw, 96px) 0 clamp(16px, 3vw, 32px); scroll-margin-top: 90px; }
.world:not(.live) { grid-template-columns: minmax(0, 1fr); }
.world:not(.live) .world-globe, .world:not(.live) .world-key { display: none; }
.world-globe { display: grid; justify-items: center; gap: 4px; min-width: 0; }
.globe { display: block; width: min(100%, 460px); aspect-ratio: 1; border-radius: 50%; touch-action: pan-y; cursor: grab; outline-offset: 6px; }
.globe:active { cursor: grabbing; }
.globe:focus-visible { outline: 2px solid var(--accent); }
.world-globe::after { content: ""; order: 1; width: 52%; height: 20px; margin-top: -10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(19, 38, 27, .3), transparent); }
.world-hint { order: 2; margin: 6px 0 0; }
.world-copy { min-width: 0; }
.world-copy h2 { font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(46px, 6vw, 84px); line-height: .88; margin: 0 0 14px; text-wrap: balance; }
.world-copy .lede { max-width: 48ch; margin: 0 0 22px; color: var(--fg-2); font-size: clamp(16px, 1.5vw, 18px); }
.bridge { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--bg-2) 72%, transparent); }
.bridge[hidden] { display: none; }
.bridge > div { display: grid; align-content: start; gap: 4px; padding: 16px 16px 14px; border-right: 1px solid var(--line); min-width: 0; }
.bridge > div:last-child { border-right: 0; }
.bridge dt { font-family: var(--font-m); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); }
.bridge dd { margin: 0; overflow-wrap: anywhere; }
.bridge .t { font-family: var(--font-m); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.bridge .g { font-weight: 700; font-size: 17px; line-height: 1.25; }
.bridge .s { font-size: 13px; color: var(--fg-2); }
.world-key { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.world-key li { display: inline-flex; align-items: center; gap: 8px; }
.world-key li::before { content: ""; flex: none; width: 16px; height: 4px; border-radius: 2px; background: #8B5CF6; }
.world-key .k-in::before { width: 10px; height: 10px; border-radius: 50%; background: #10B981; }
.world-key .k-night::before { width: 10px; height: 10px; border-radius: 50%; background: #0B1630; }

/* footer: a proper close on deep forest */
.site-foot { margin-top: clamp(48px, 7vw, 96px); background: #13261B; color: #E8DCC4; }
.sf-in { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 6vw, 72px) max(16px, env(safe-area-inset-right, 0px)) max(28px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: clamp(32px, 4vw, 48px); }
.sf-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 56px; }
.sf-line { margin: 0; font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(44px, 6vw, 84px); line-height: .86; }
.sf-line em { font-style: italic; font-stretch: 100%; color: #B9A2FF; }
.sf-about { margin: 0; max-width: 34ch; font-size: 16px; line-height: 1.55; color: #C9BFA8; }
.sf-about .name { font-size: 22px; color: #E8DCC4; }
.sf-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 40px; padding-top: 32px; border-top: 1px solid rgba(232, 220, 196, .22); }
.sf-cols > div { display: grid; align-content: start; justify-items: start; gap: 2px; font-size: 15px; min-width: 0; }
.sf-k { margin: 0 0 8px; font-family: var(--font-m); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #B3B09A; }
.sf-cols a, .sf-cols span { padding: 4px 0; overflow-wrap: anywhere; }
.sf-cols a { color: #E8DCC4; border-bottom: 1px solid transparent; transition: color var(--dur-2), border-color var(--dur-2); }
.sf-cols a:hover { color: #fff; border-bottom-color: #B9A2FF; }
.sf-cols span { color: #C9BFA8; }
.sf-cols .mono { font-family: var(--font-m); font-size: 13.5px; font-variant-numeric: tabular-nums; color: #E8DCC4; }
.sf-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 20px; border-top: 1px solid rgba(232, 220, 196, .22); font-size: 13px; color: #B3B09A; }
.sf-base .name { font-size: 16px; color: #C9BFA8; }
.sf-fin { font-family: var(--font-j); font-weight: 700; letter-spacing: .4em; color: #C9BFA8; }
.site-foot a:focus-visible { outline: 2px solid #B9A2FF; outline-offset: 3px; border-radius: 4px; }

@media (max-width: 900px) { .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .world { grid-template-columns: minmax(0, 1fr); } .globe { width: min(86%, 380px); } }
@media (max-width: 760px) {
  .bridge { grid-template-columns: 1fr; }
  .bridge > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .bridge > div:last-child { border-bottom: 0; }
}
@media (max-width: 420px) { .sf-cols { grid-template-columns: 1fr; gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .ring { transform: rotateX(-8deg) rotateY(calc(var(--ry, 0) * 1deg)) scale(var(--ring-scale)) !important; } .core { translate: none; } }

/* ---------- scroll-driven 3D: each product's device swings through as it crosses the screen ----------
   Runs on the compositor from the scroll position (no JavaScript). Browsers without scroll timelines show the
   devices flat, as before. The individual rotate/translate properties stack with the pointer tilt on transform. */
@keyframes swing-a { 0% { rotate: y 24deg; translate: 0 36px; } 42%, 58% { rotate: y 0deg; translate: 0 0; } 100% { rotate: y -20deg; translate: 0 -28px; } }
@keyframes swing-b { 0% { rotate: y -24deg; translate: 0 36px; } 42%, 58% { rotate: y 0deg; translate: 0 0; } 100% { rotate: y 20deg; translate: 0 -28px; } }
@keyframes drift { from { translate: 0 70px; } to { translate: 0 -70px; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .exhibit .tilt { animation: swing-a linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .exhibit:nth-child(even) .tilt { animation-name: swing-b; }
    .stage::before { animation: drift linear both; animation-timeline: view(); }
    .still .exhibit .tilt, .still .stage::before { animation: none; }
  }
}

/* ---------- page transitions between the home page, the blog and the posts (browsers that support them) ---------- */
@view-transition { navigation: auto; }
.dock { view-transition-name: dock; }
::view-transition-old(root) { animation: vt-out 170ms var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 340ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px) scale(.99); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px) scale(.99); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* A-03: the focused ring phone lost its focus ring to the front-card shadow; an outline cannot be overridden that way */
.ring-card:focus-visible .rp { outline: 3px solid var(--accent); outline-offset: 5px; }

/* A-04: small labels inside the Sri Hari and ShopConnect demos, and the contact chips, were below AA contrast */
.sc-timeline { font-size: 9.5px; letter-spacing: 0; color: #4B5563; }
.sh-recent i { color: #475569; }
.sh-card.done .sh-vh span { color: #047857; }
.sh-empty { color: #475569; }
.offers span { color: #fff; }

/* =====================================================================
   v1.3: the world section is a window onto the night sky, so the Earth sits where it belongs.
   One dark panel on the cream page, like the build board. Colours inside it are set here, not by the theme.
   ===================================================================== */
.world {
  position: relative; isolation: isolate; overflow: hidden;
  margin-block: clamp(28px, 5vw, 64px) clamp(20px, 3vw, 40px); padding: clamp(32px, 5vw, 68px) clamp(18px, 4vw, 60px); border-radius: 36px;
  color: #EFE8D8; --fg-2: #BCC3D6; --fg-3: #9AA2B8; --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .22); --accent: #B9A2FF;
  background:
    radial-gradient(56% 78% at 22% 52%, rgba(64, 118, 255, .24), transparent 70%),
    radial-gradient(42% 52% at 92% 4%, rgba(139, 92, 246, .26), transparent 70%),
    linear-gradient(160deg, #0B1228, #05060F 58%, #020308);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .18), 0 44px 80px -44px rgba(8, 14, 36, .7);
}
/* stars: three static layers of dots whose tiles never line up */
.world::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .85;
  background-image:
    radial-gradient(1.3px 1.3px at 22px 34px, rgba(255, 255, 255, .95), transparent 100%),
    radial-gradient(1px 1px at 140px 96px, rgba(255, 255, 255, .7), transparent 100%),
    radial-gradient(1.6px 1.6px at 88px 170px, rgba(190, 205, 255, .9), transparent 100%),
    radial-gradient(1px 1px at 210px 40px, rgba(255, 236, 200, .75), transparent 100%),
    radial-gradient(.9px .9px at 60px 120px, rgba(255, 255, 255, .55), transparent 100%);
  background-size: 233px 197px, 311px 269px, 379px 331px, 173px 229px, 127px 149px;
}
.world .kicker { color: #B9A2FF; }
.world .bridge { background: rgba(255, 255, 255, .06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.world .bridge .t { color: #FFFFFF; }
.world-globe::after { content: none; }                       /* no floor in space, so no floor shadow */
.world .globe { background: radial-gradient(closest-side, transparent 83%, rgba(86, 150, 255, .34) 87.5%, rgba(86, 150, 255, .1) 94%, transparent 100%); }   /* the glow of the air around the planet */
.world-key .k-you::before { background: #B9A2FF; }
.world-key .k-in::before { background: #34D399; }
.world-key .k-night::before { box-shadow: 0 0 0 1px rgba(255, 255, 255, .55); }
@media (max-width: 760px) { .world { border-radius: 24px; padding: 26px 16px 28px; } }

/* =====================================================================
   v1.4 glass: every surface is one thicker, clearer sheet of glass, lit from the top-left like the devices.
   Still no backdrop blur on panels (it would re-blur the moving field every frame): the glass is built from
   a see-through tint, light caught in two corners, a bright lip, an inner glow for thickness, fine frost and a coloured shadow.
   ===================================================================== */
:root {
  --gl-a: 66%; --gl-b: 48%;                     /* how much of the surface colour the sheet keeps, near and far corner */
  --gl-bloom: .62;                              /* light caught in the top-left corner */
  --gl-lip: rgba(255, 255, 255, .96); --gl-edge: rgba(255, 255, 255, .74);
  --gl-glow: rgba(255, 255, 255, .36); --gl-shade: rgba(19, 38, 27, .10);
  --gl-spot: rgba(255, 255, 255, .62);          /* the light that follows the pointer */
  --gl-drop: 0 30px 60px -30px rgba(31, 61, 43, .42), 0 12px 26px -16px rgba(109, 63, 224, .24);
  --gl-frost: 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 type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
}
.glass {
  background:
    var(--gl-frost),
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, var(--gl-bloom)), transparent 52%),
    radial-gradient(90% 70% at 100% 100%, rgba(255, 255, 255, calc(var(--gl-bloom) * .42)), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--bg-2) var(--gl-a), transparent), color-mix(in srgb, var(--bg-2) var(--gl-b), transparent));
  border-color: var(--gl-edge);
  box-shadow: inset 0 1px 0 var(--gl-lip), inset 1px 0 0 color-mix(in srgb, var(--gl-lip) 58%, transparent), inset 0 -1px 0 var(--gl-shade), inset 0 0 30px var(--gl-glow), var(--gl-drop);
}
.glass::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--gl-spot), transparent 62%); }
.glass::after { opacity: .55; }
/* dark sheets: smoked glass. Less light caught, a dimmer lip, a deeper shadow */
.panel.alt, .contact-card, .world, .site-foot, .board-canvas {
  --gl-a: 92%; --gl-b: 80%; --gl-bloom: .16; --gl-lip: rgba(255, 255, 255, .36); --gl-edge: rgba(255, 255, 255, .2);
  --gl-glow: rgba(255, 255, 255, .06); --gl-shade: rgba(0, 0, 0, .4); --gl-spot: rgba(255, 255, 255, .16);
  --gl-drop: 0 34px 64px -30px rgba(10, 20, 14, .7), 0 12px 26px -16px rgba(109, 63, 224, .3);
}

/* glass tiles inside the sheets */
.strip li { background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .16)); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(19, 38, 27, .08), 0 8px 16px -12px rgba(31, 61, 43, .5); }
.steps li { background: linear-gradient(180deg, var(--glass-2), var(--glass)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--gl-lip) 70%, transparent), 0 8px 14px -12px rgba(19, 38, 27, .5); }
.offers li { background: radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, .24), transparent 60%), rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 24px -18px rgba(0, 0, 0, .6); }
.world .bridge { background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .13), transparent 55%), rgba(255, 255, 255, .05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 0 26px rgba(120, 160, 255, .08), 0 22px 40px -24px rgba(0, 0, 0, .8); }
.legend { background: linear-gradient(135deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .1)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }

/* buttons: a glass pill, and a gel finish on the main action */
.btn { background: linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 94%, transparent), color-mix(in srgb, var(--bg-2) 56%, transparent)); box-shadow: inset 0 1px 0 var(--gl-lip), inset 0 -1px 0 var(--gl-shade), 0 8px 18px -12px rgba(31, 61, 43, .55); }
.btn.primary { background-image: linear-gradient(180deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, 0) 46%, rgba(0, 0, 0, .12)); }

/* the build board and the footer: smoked glass with a lit top edge */
.board-canvas { box-shadow: inset 0 1px 0 var(--gl-lip), inset 0 0 44px rgba(255, 255, 255, .04), var(--gl-drop); }
.site-foot {
  border-radius: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0;
  background:
    radial-gradient(60% 120% at 6% 0%, rgba(139, 92, 246, .24), transparent 60%),
    radial-gradient(50% 100% at 100% 0%, rgba(95, 203, 138, .16), transparent 60%),
    linear-gradient(180deg, #183222, #0D1B13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 60px rgba(255, 255, 255, .03);
}
@media (prefers-reduced-transparency: reduce) { :root { --gl-a: 96%; --gl-b: 92%; } }

/* =====================================================================
   v1.5: the offer comes first. The services section now follows the hero, with a written list of what else can be built,
   and every footer links to the privacy policy and the terms.
   ===================================================================== */
.hire-more { margin: clamp(14px, 2vw, 22px) 0; padding: clamp(20px, 2.6vw, 30px); border-radius: var(--r); border: 1px dashed var(--line-2); background: linear-gradient(135deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .1)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); display: grid; gap: 10px; }
.hire-more h3 { margin: 0; font-family: var(--font-d); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(28px, 3.2vw, 40px); line-height: .92; }
.hire-more-n { margin: 0 0 6px; color: var(--fg-2); font-size: 14.5px; max-width: 60ch; }
.can { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 26px; }
.can > div { display: grid; align-content: start; gap: 6px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--line-2); }
.can dt { font-family: var(--font-m); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.can dd { margin: 0; font-size: 14.5px; color: var(--fg); }
@media (max-width: 900px) { .can { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .can { grid-template-columns: minmax(0, 1fr); } }
.sf-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.sf-legal { display: inline-flex; gap: 16px; }
.sf-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* v1.6: every profile in one row under the email, each with its mark and its name */
.socials-k { margin: 22px 0 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-2); }
.socials { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg); font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .25s var(--ease), background .2s, border-color .2s; }
.socials a:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .18); border-color: #fff; }
.socials svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
