/* ─────────────────────────────────────────────────────────────────────────
   CLYUS OS — Frutiger-Aero webcore × liquid glass, built as a system.
   Every control is an OS control: menu bar, windows, gel buttons, dock,
   wizard, dialog. No decoration images on the shell — the only imagery is
   the delivered work. See DIRECTION.md.
   ───────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Anybody";
  src: url("/fonts/Anybody-VF.woff2") format("woff2-variations"), url("/fonts/Anybody-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}

:root {
  --sky-0: #0b3fd6; --sky-1: #1f63ea; --sky-2: #3f8cf5; --sky-3: #8ec9ff; --sky-4: #dff3ff;
  --ink: #0a2a6b; --ink-2: #21447f; --ink-mute: #4b6797;
  --glass-a: rgba(255,255,255,.64); --glass-b: rgba(255,255,255,.34);
  --glass-line: rgba(255,255,255,.78);
  --glass-shadow: 0 30px 70px -28px rgba(6,40,120,.55), 0 2px 8px rgba(6,40,120,.10);
  --chrome-hi: #ffffff; --chrome-1: #e6f0ff; --chrome-2: #93b5e6; --chrome-3: #3f6fa8; --chrome-4: #1e3a6e;
  --lime: #62e34b; --lime-deep: #2fae1f; --lime-ink: #0d3d05;
  --r-s: 10px; --r-m: 16px; --r-l: 22px; --r-pill: 999px;
  --font-display: "Anybody", "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  --font-body: "Trebuchet MS", "Segoe UI", Tahoma, Verdana, sans-serif;
  --font-mono: Consolas, "Lucida Console", Menlo, "Courier New", monospace;
  --ease: cubic-bezier(.2, .9, .25, 1.04);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
  --bar-h: 32px; --dock-h: 58px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --mx: 50; --my: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--sky-2);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--bar-h);
  padding-bottom: calc(var(--dock-h) + 24px);
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--ink); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -60px; left: 12px; z-index: 300; padding: 10px 16px; background: #fff; color: var(--ink); border-radius: var(--r-pill); font: 600 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.skip:focus { top: calc(var(--bar-h) + 10px); }

/* ── Sky — fixed ground with drifting cloud fields ─────────────────────── */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) 30%, var(--sky-2) 62%, var(--sky-3) 92%, var(--sky-4) 100%); }
.cloud { position: absolute; border-radius: 50%; will-change: transform;
  background: radial-gradient(closest-side, rgba(255,255,255,.72), rgba(255,255,255,.28) 55%, rgba(255,255,255,0) 100%); }
.cloud.a { width: 70vw; height: 34vh; left: -12vw; top: 46vh; animation: drift 90s ease-in-out infinite alternate; }
.cloud.b { width: 58vw; height: 28vh; right: -14vw; top: 60vh; animation: drift 120s ease-in-out infinite alternate-reverse; }
.cloud.c { width: 90vw; height: 26vh; left: 8vw; bottom: -8vh; animation: drift 150s ease-in-out infinite alternate; opacity: .9; }
.cloud.d { width: 40vw; height: 18vh; left: 30vw; top: 22vh; animation: drift 110s ease-in-out infinite alternate-reverse; opacity: .35; }
@keyframes drift { from { transform: translate3d(-4vw, 0, 0); } to { transform: translate3d(6vw, -2vh, 0); } }
.sky .haze { position: absolute; inset: auto 0 0 0; height: 22vh; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.28)); }

/* ── Bubbles — refract what sits behind them ───────────────────────────── */
.bubble { position: absolute; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255,255,255,.55);
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.95) 0 5%, rgba(255,255,255,.35) 11%, rgba(255,255,255,.04) 30%),
    radial-gradient(circle at 70% 78%, rgba(255,255,255,.35) 0 8%, rgba(255,255,255,0) 30%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 60%, rgba(255,255,255,.28) 88%, rgba(255,255,255,.55) 100%);
  box-shadow: inset 0 0 24px rgba(255,255,255,.35), inset 10px 10px 30px rgba(180,220,255,.28), 0 14px 34px -10px rgba(0,60,160,.28);
  -webkit-backdrop-filter: blur(1.5px) saturate(1.35) brightness(1.05); backdrop-filter: blur(1.5px) saturate(1.35) brightness(1.05);
  animation: float var(--dur, 26s) ease-in-out infinite alternate; }
@keyframes float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(var(--dx, 40px), var(--dy, -60px), 0) scale(1.04); } }

/* ── Glass ─────────────────────────────────────────────────────────────── */
.glass {
  background: linear-gradient(180deg, var(--glass-a), var(--glass-b));
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(20,60,140,.08), var(--glass-shadow);
  border-radius: var(--r-l);
}
.glass--deep { background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.14)); }
.glass--solid { background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.66)); }

/* ── Type ──────────────────────────────────────────────────────────────── */
.display { font-family: var(--font-display); font-variation-settings: "wdth" 112, "wght" 760; line-height: .95; letter-spacing: -.005em; text-transform: uppercase; }
.display--wide { font-variation-settings: "wdth" 130, "wght" 800; }
.display--n { font-variation-settings: "wdth" 100, "wght" 700; }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: #fff; display: flex; align-items: flex-start; gap: 12px; line-height: 1.7; text-shadow: 0 1px 2px rgba(6,40,120,.5); }
.eyebrow::before { content: ""; flex: none; width: 26px; height: 1px; margin-top: .8em; background: rgba(255,255,255,.85); }
.eyebrow--ink { color: var(--ink-2); text-shadow: none; } .eyebrow--ink::before { background: var(--ink-2); }
.tnum { font-variant-numeric: tabular-nums; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; max-width: 60ch; }

/* Chrome text — clipped metallic gradient, mouse-driven sheen, bevel via stacked pseudo copies */
.chrome-wrap { position: relative; display: inline-block; isolation: isolate; }
.chrome-wrap::before, .chrome-wrap::after { content: attr(data-text); position: absolute; inset: 0; z-index: -1; pointer-events: none;
  font: inherit; font-variation-settings: inherit; letter-spacing: inherit; text-transform: inherit; line-height: inherit; }
.chrome-wrap::before { color: rgba(5, 30, 90, .42); transform: translateY(.06em); filter: blur(10px); }
.chrome-wrap::after  { color: rgba(15, 45, 110, .85); transform: translateY(.028em); }
.chrome {
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 26%, #a3c3ec 43%, #3d6ca8 50%, #f2f8ff 53.5%, #b9d0ee 70%, #ffffff 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chrome-sheen { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.85) 49%, rgba(255,255,255,0) 60%);
  background-size: 260% 100%; background-position: calc((100 - var(--mx)) * 1%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position .25s linear; }
@media (prefers-reduced-motion: no-preference) {
  .idle .chrome-sheen { animation: sheen 7s ease-in-out infinite; }
}
@keyframes sheen { 0%, 20% { background-position: 120% 0; } 60%, 100% { background-position: -20% 0; } }

/* ── Gel buttons ───────────────────────────────────────────────────────── */
.gel { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.45em; border-radius: var(--r-pill); overflow: hidden; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #86c2ff 0%, #3a86f7 46%, #1d62e2 52%, #2f80f8 100%);
  border: 1px solid rgba(9, 50, 140, .6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -3px 8px rgba(0,30,110,.35), 0 10px 22px -8px rgba(10,50,150,.6), 0 1px 0 rgba(255,255,255,.35);
  text-shadow: 0 1px 0 rgba(0,30,110,.55);
  transition: transform .18s var(--ease), box-shadow .18s, filter .18s; }
.gel::before { content: ""; position: absolute; left: 5%; right: 5%; top: 5%; height: 46%; border-radius: var(--r-pill); pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.06)); }
.gel::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 34%; left: -50%; pointer-events: none;
  background: linear-gradient(105deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0)); transform: skewX(-18deg); transition: left .55s var(--ease-soft); }
.gel:hover { transform: translateY(-1px); filter: saturate(1.08) brightness(1.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -3px 8px rgba(0,30,110,.35), 0 14px 26px -8px rgba(10,50,150,.65); }
.gel:hover::after { left: 120%; }
.gel:active { transform: translateY(1px); box-shadow: inset 0 2px 6px rgba(0,30,110,.45), 0 4px 10px -6px rgba(10,50,150,.5); }
.gel--lime { color: var(--lime-ink); text-shadow: 0 1px 0 rgba(255,255,255,.55);
  background: linear-gradient(180deg, #c8ff9d 0%, #7cef5a 46%, #4fd436 52%, #6fe64f 100%); border-color: rgba(30, 110, 20, .55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -3px 8px rgba(20,90,10,.3), 0 10px 22px -8px rgba(30,120,20,.6); }
.gel--chrome { color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
  background: linear-gradient(180deg, #ffffff 0%, #dbe7f7 46%, #b8cbe6 52%, #e6eef9 100%); border-color: rgba(60, 90, 140, .45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), inset 0 -3px 8px rgba(40,70,130,.18), 0 10px 22px -10px rgba(10,50,150,.45); }
.gel--sm { padding: .62em 1.05em; font-size: 10.5px; letter-spacing: .14em; }
.gel .arrow { font-family: var(--font-body); font-weight: 700; }

/* ── Chips / pills ─────────────────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: .45em; padding: .35em .75em; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55)); border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px -2px rgba(6,40,120,.25); white-space: nowrap; }
.chip--chain { background: linear-gradient(180deg, #eaf3ff, #cfe2ff); border-color: rgba(120,160,220,.7); color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d9ffcb, var(--lime) 45%, var(--lime-deep) 100%);
  box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 0 10px rgba(98,227,75,.8); display: inline-block; }
.dot--amber { background: radial-gradient(circle at 35% 30%, #fff1c2, #ffc23a 45%, #c47b00 100%); box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 0 10px rgba(255,194,58,.7); }

/* ── Menu bar (top, pinned) ────────────────────────────────────────────── */
.menubar { position: fixed; top: 0; left: 0; right: 0; height: var(--bar-h); z-index: 120;
  display: flex; align-items: center; gap: 18px; padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.42));
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(255,255,255,.85); box-shadow: 0 1px 0 rgba(20,60,140,.08), 0 8px 24px -14px rgba(6,40,120,.35);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.menubar .brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.menubar nav { display: none; gap: 18px; }
.menubar nav a { padding: 4px 2px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.menubar nav a:hover, .menubar nav a[aria-current="true"] { color: var(--ink); border-color: var(--ink); }
.menubar .spacer { flex: 1; }
.menubar .status { display: inline-flex; align-items: center; gap: 8px; }
.menubar .hide-m { display: none; }
@media (min-width: 900px) { .menubar nav { display: inline-flex; } .menubar .hide-m { display: inline; } }

/* ── Dock (bottom, pinned) ─────────────────────────────────────────────── */
.dock { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 120;
  display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 6px; border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.4));
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.85); box-shadow: inset 0 1px 0 #fff, 0 22px 50px -18px rgba(6,40,120,.6);
  max-width: calc(100vw - 20px); }
.orb { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--font-display); font-variation-settings: "wdth" 125, "wght" 800; font-size: 17px; color: var(--ink);
  background: radial-gradient(circle at 32% 26%, #ffffff 0 12%, #dce9fb 30%, #8fb3e6 62%, #4a76b3 100%);
  border: 1px solid rgba(40,80,140,.5); box-shadow: inset 0 -6px 12px rgba(30,60,120,.35), inset 0 3px 6px rgba(255,255,255,.9), 0 8px 18px -6px rgba(10,50,150,.6);
  text-shadow: 0 1px 0 rgba(255,255,255,.7); transition: transform .2s var(--ease); }
.orb:hover { transform: scale(1.06) rotate(-6deg); }
.dock a.app { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  transition: background .2s, transform .2s var(--ease); }
.dock a.app:hover { background: rgba(255,255,255,.75); transform: translateY(-2px); }
.dock a.app .n { font-family: var(--font-display); font-variation-settings: "wdth" 110, "wght" 700; font-size: 11px; color: var(--chrome-3); }
.dock .sep { width: 1px; height: 26px; background: rgba(20,60,140,.15); margin: 0 4px; }
.dock .restore { display: none; }
.dock .restore.on { display: inline-flex; }
@media (max-width: 640px) { .dock a.app span.l { display: none; } .dock a.app { padding: 10px 12px; } .dock .sep { display: none; } }

/* ── Layout ────────────────────────────────────────────────────────────── */
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
section { position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 36px); }
.sec-head h2 { margin: 6px 0 0; max-width: 20ch; font-size: clamp(30px, 4.6vw, 62px); color: #fff; text-shadow: 0 2px 0 rgba(10,40,110,.35), 0 12px 30px rgba(6,40,120,.35); }
.sec-head h2.ink { color: var(--ink); text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.sec-head .aside { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #fff; text-align: right; max-width: 34ch; line-height: 1.7; text-shadow: 0 1px 2px rgba(6,40,120,.5); }
.sec-head .aside.ink { color: var(--ink-2); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(40px, 8vh, 96px) 0 clamp(36px, 6vw, 72px); overflow: visible; }
.hero .bubbles { position: absolute; inset: -40px 0 0; overflow: hidden; pointer-events: none; z-index: 0; border-radius: 0 0 var(--r-l) var(--r-l); }
.hero > :not(.bubbles) { position: relative; z-index: 1; }
.hero .mark { position: relative; z-index: 1; margin: 18px 0 0; font-size: clamp(64px, 17.5vw, 262px); line-height: .84; letter-spacing: -.01em; text-transform: uppercase;
  font-family: var(--font-display); font-variation-settings: "wdth" 150, "wght" 800; }
.hero .mark-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px 28px; }
.hero .rule { height: 1px; background: rgba(255,255,255,.75); align-self: end; margin-bottom: .16em; }
.hero .mark-line { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
.hero .discipline { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: #fff; padding-bottom: .5em; white-space: nowrap; text-shadow: 0 1px 2px rgba(6,40,120,.5); }
.hero .tag { margin-top: clamp(28px, 4vw, 56px); display: grid; gap: 28px; grid-template-columns: 1fr; align-items: end; }
.hero .tag h2 { margin: 0; font-size: clamp(30px, 4.4vw, 58px); color: #fff; text-shadow: 0 2px 0 rgba(10,40,110,.35), 0 14px 34px rgba(6,40,120,.35); max-width: 16ch; }
.hero .tag h2 span { display: block; }
.hero .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #fff; line-height: 1.9; max-width: 36ch; text-shadow: 0 1px 2px rgba(6,40,120,.5); }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
@media (min-width: 900px) { .hero .tag { grid-template-columns: 1fr auto; } .hero .meta { text-align: right; } }
@media (max-width: 640px) { .hero .mark-line { grid-template-columns: 1fr; } .hero .discipline { padding-bottom: 0; } .hero .rule { display: none; } }

/* ── Stats strip ───────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-radius: var(--r-l); overflow: hidden; }
.stats > div { padding: 18px 20px; border-right: 1px solid rgba(255,255,255,.55); border-bottom: 1px solid rgba(255,255,255,.55); }
.stats b { display: block; font-family: var(--font-display); font-variation-settings: "wdth" 120, "wght" 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; color: var(--ink); }
.stats span { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(5, 1fr); } .stats > div { border-bottom: 0; } .stats > div:last-child { border-right: 0; } }

/* ── Work windows ──────────────────────────────────────────────────────── */
.work { padding: clamp(40px, 6vw, 88px) 0; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.8vw, 26px); align-items: start; }
.win { grid-column: span 12; position: relative; display: flex; flex-direction: column; overflow: hidden;
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft), opacity .3s; }
.win:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(20,60,140,.08), 0 40px 80px -30px rgba(6,40,120,.65), 0 2px 8px rgba(6,40,120,.10); }
.win.is-min .win-body, .win.is-min .win-foot { display: none; }
.win.is-closed { display: none; }
@media (min-width: 760px) { .win { grid-column: span 6; } }
@media (min-width: 1100px) {
  .win { grid-column: span 4; }
  .win.span-8 { grid-column: span 8; } .win.span-6 { grid-column: span 6; }
  .win.lift { transform: translateY(-22px); } .win.lift:hover { transform: translateY(-26px); }
  .win.sink { transform: translateY(18px); } .win.sink:hover { transform: translateY(14px); }
}
.win-bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px 0 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.55)); border-bottom: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 0 rgba(20,60,140,.08); font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.lights { display: inline-flex; gap: 6px; }
.lights button { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 9px; line-height: 1; color: transparent;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 18%, #dbe7f7 40%, #8fb3e6 100%); border: 1px solid rgba(40,80,140,.5);
  box-shadow: inset 0 -2px 4px rgba(30,60,120,.35), inset 0 1px 2px rgba(255,255,255,.9); transition: transform .15s var(--ease), color .15s; }
.lights button:hover { color: var(--ink); transform: scale(1.12); }
.lights .x:hover { background: radial-gradient(circle at 35% 30%, #ffe0dc 0 18%, #ff8f83 40%, #d63f2f 100%); color: #5a0f08; }
.lights .m:hover { background: radial-gradient(circle at 35% 30%, #fff5cf 0 18%, #ffd35e 40%, #d99a00 100%); color: #5a3d00; }
.lights .z:hover { background: radial-gradient(circle at 35% 30%, #e6ffdd 0 18%, #8ff073 40%, #2fae1f 100%); color: #0d3d05; }
.win-bar .title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 700; }
.win-body { position: relative; background: #0f1a33; }
.win-body .media { position: relative; width: 100%; overflow: hidden; }
.win-body img, .win-body video { width: 100%; height: 100%; object-fit: cover; }
.win-body .media.contain img { object-fit: contain; }
.win-body .lens { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 22%), linear-gradient(0deg, rgba(10,30,80,.28), rgba(10,30,80,0) 30%); }
.win-foot { padding: 14px 16px 16px; display: grid; gap: 10px; }
.win-foot .name { margin: 0; font-family: var(--font-display); font-variation-settings: "wdth" 115, "wght" 760; font-size: clamp(22px, 2vw, 28px); line-height: 1; text-transform: uppercase; color: var(--ink); }
.win-foot .kicker { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.win-foot .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.win-foot .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.win-foot .status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.win-foot .actions { display: inline-flex; gap: 8px; }
.win.own .win-bar { background: linear-gradient(180deg, rgba(240,246,255,.95), rgba(224,236,255,.65)); }

/* ── Capabilities (control panel tiles) ────────────────────────────────── */
.caps { padding: clamp(40px, 6vw, 88px) 0; }
.tiles { display: grid; gap: clamp(14px, 1.8vw, 24px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile { padding: 22px 22px 24px; display: grid; gap: 14px; align-content: start; min-height: 240px; transition: transform .3s var(--ease-soft); }
.tile:hover { transform: translateY(-3px); }
.tile .num { width: 44px; height: 44px; border-radius: var(--r-s); display: grid; place-items: center; font-family: var(--font-display); font-variation-settings: "wdth" 120, "wght" 800; font-size: 15px; color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #d6e5fa 55%, #b3cbec); border: 1px solid rgba(60,90,140,.4); box-shadow: inset 0 1px 0 #fff, inset 0 -3px 6px rgba(40,70,130,.2), 0 6px 14px -6px rgba(10,50,150,.5); }
.tile h3 { margin: 4px 0 0; font-family: var(--font-display); font-variation-settings: "wdth" 112, "wght" 760; font-size: 22px; line-height: 1.05; text-transform: uppercase; color: var(--ink); }
.tile p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.tile .ex { margin-top: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); line-height: 1.8; }

/* ── Wizard (process) ──────────────────────────────────────────────────── */
.process { padding: clamp(40px, 6vw, 88px) 0; }
.wizard { max-width: 880px; margin-inline: auto; overflow: hidden; }
.wizard .win-bar .title { text-align: center; }
.wizard .steps { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .wizard .steps { grid-template-columns: 220px 1fr; } }
.wizard .side { padding: 20px; border-right: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.22); display: grid; gap: 4px; align-content: start; }
.wizard .side button { text-align: left; padding: 10px 12px; border-radius: var(--r-s); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); display: flex; gap: 10px; align-items: center; transition: background .2s, color .2s; }
.wizard .side button .n { font-family: var(--font-display); font-variation-settings: "wdth" 115, "wght" 760; color: var(--chrome-3); }
.wizard .side button[aria-selected="true"] { background: rgba(255,255,255,.85); color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 4px 10px -6px rgba(6,40,120,.4); }
.wizard .side button[aria-selected="true"] .n { color: var(--lime-deep); }
.wizard .pane { padding: clamp(20px, 3vw, 36px); display: none; gap: 14px; }
.wizard .pane.on { display: grid; }
.wizard .pane h3 { margin: 0; font-family: var(--font-display); font-variation-settings: "wdth" 115, "wght" 760; font-size: clamp(26px, 3vw, 40px); line-height: 1; text-transform: uppercase; color: var(--ink); }
.wizard .pane p { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.wizard .pane .fine { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); line-height: 1.8; }
.wizard .foot { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.3); }
.wizard .bar { flex: 1; height: 12px; border-radius: var(--r-pill); background: linear-gradient(180deg, #c8d8ef, #e9f1fb); border: 1px solid rgba(60,90,140,.35); box-shadow: inset 0 2px 4px rgba(20,50,110,.25); overflow: hidden; }
.wizard .bar i { display: block; height: 100%; width: 100%; transform: scaleX(.25); transform-origin: left; border-radius: var(--r-pill); transition: transform .5s var(--ease-soft);
  background: linear-gradient(180deg, #d4ffb8, #62e34b 50%, #3cc428 55%, #7ce860); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 12px rgba(98,227,75,.6); }
.wizard .foot .btns { display: inline-flex; gap: 8px; }

/* ── Contact dialog ────────────────────────────────────────────────────── */
.contact { padding: clamp(40px, 6vw, 88px) 0 clamp(30px, 5vw, 60px); }
.dialog { max-width: 640px; margin-inline: auto; overflow: hidden; }
.dialog .body { padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; text-align: center; justify-items: center; }
.dialog h2 { margin: 0; font-family: var(--font-display); font-variation-settings: "wdth" 120, "wght" 800; font-size: clamp(30px, 4vw, 52px); line-height: .95; text-transform: uppercase; color: var(--ink); }
.dialog p { margin: 0; font-size: 16.5px; color: var(--ink-2); max-width: 44ch; }
.dialog .fine { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); line-height: 1.8; }

/* ── Footer ────────────────────────────────────────────────────────────── */
footer { margin-top: 12px; padding: 14px 20px; border-radius: var(--r-pill); background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.62)); border: 1px solid rgba(255,255,255,.9); box-shadow: inset 0 1px 0 #fff, 0 10px 24px -14px rgba(6,40,120,.5); font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }

/* ── Detail overlay ────────────────────────────────────────────────────── */
.detail { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: clamp(10px, 4vh, 40px) 12px calc(var(--dock-h) + 20px); overflow: auto;
  background: rgba(10, 40, 120, .32); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.detail.on { display: flex; }
.detail .win { width: min(1120px, 100%); grid-column: auto; animation: pop .35s var(--ease); }
@keyframes pop { from { transform: translateY(18px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.detail .cols { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .detail .cols { grid-template-columns: 1fr 300px; } }
.detail .gal { display: grid; gap: 14px; padding: 16px; background: rgba(255,255,255,.18); }
.detail .gal figure { margin: 0; overflow: hidden; border-radius: var(--r-m); background: #0f1a33; box-shadow: 0 16px 40px -20px rgba(6,40,120,.6); }
.detail .gal figure.dark { background: #0b1226; padding: 8%; }
.detail .gal figure.dark img { object-fit: contain; }
.detail .gal figcaption { padding: 8px 12px 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); background: rgba(10,25,60,.85); }
.detail .gal video { width: 100%; }
.detail .facts { padding: 22px 20px 26px; display: grid; gap: 16px; align-content: start; border-left: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.3); }
.detail .facts h3 { margin: 0; font-family: var(--font-display); font-variation-settings: "wdth" 115, "wght" 760; font-size: 30px; line-height: 1; text-transform: uppercase; color: var(--ink); }
.detail .facts .kicker { margin: 0; color: var(--ink-2); font-size: 15px; }
.detail .facts dl { margin: 0; display: grid; gap: 10px; }
.detail .facts dt { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
.detail .facts dd { margin: 3px 0 0; font-size: 14.5px; color: var(--ink); }
.detail .facts .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.detail .facts p.blurb { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.detail .facts .actions { display: grid; gap: 8px; }
.detail .gal .lead { border-radius: var(--r-m); overflow: hidden; }

/* Standalone project page reuses .detail markup inline */
.page .detail-inline { padding: 24px 0 40px; }
.page .detail-inline .win { width: 100%; }
.page .back { display: inline-flex; margin-bottom: 18px; }

/* ── Boot ──────────────────────────────────────────────────────────────── */
/* While the boot dialog is up, the desktop under it is not visible — so it must not be paintable either (mirrors the camera shell's opacity-0 live layer). */
.booting main { visibility: hidden; }
.boot { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px;
  background: linear-gradient(180deg, var(--sky-0), var(--sky-2) 60%, var(--sky-3)); transition: opacity .6s ease, visibility .6s; }
.boot.off { opacity: 0; visibility: hidden; pointer-events: none; }
.boot .win { width: min(560px, 100%); grid-column: auto; }
.boot .con { padding: 22px 22px 18px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); min-height: 232px; display: grid; align-content: start; gap: 6px; }
.boot .con .ln { opacity: 0; transform: translateY(4px); }
.boot .con .ln.go { animation: ln .3s var(--ease-soft) forwards; }
@keyframes ln { to { opacity: 1; transform: none; } }
.boot .con .ln.ok::after { content: " OK"; color: var(--lime-deep); font-weight: 700; }
.boot .foot { display: flex; align-items: center; gap: 14px; padding: 12px 18px 14px; border-top: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.3); }
.boot .bar { flex: 1; height: 12px; border-radius: var(--r-pill); background: linear-gradient(180deg, #c8d8ef, #e9f1fb); border: 1px solid rgba(60,90,140,.35); box-shadow: inset 0 2px 4px rgba(20,50,110,.25); overflow: hidden; }
.boot .bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; border-radius: var(--r-pill); background: linear-gradient(180deg, #d4ffb8, #62e34b 50%, #3cc428 55%, #7ce860); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 12px rgba(98,227,75,.6); transition: transform .5s var(--ease-soft); }
.boot .enter { opacity: 0; pointer-events: none; transition: opacity .3s; }
.boot .enter.on { opacity: 1; pointer-events: auto; }
.boot .brandline { position: absolute; top: 24px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .4em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.boot .skipb { position: absolute; bottom: 24px; right: 24px; }

/* ── Reveal ────────────────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .08s; } .rv[data-d="2"] { transition-delay: .16s; } .rv[data-d="3"] { transition-delay: .24s; } .rv[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .cloud, .bubble { animation: none; }
}
@media (hover: none) { .win:hover, .tile:hover, .gel:hover, .orb:hover, .dock a.app:hover { transform: none; } }
@media print { .menubar, .dock, .boot, .sky { display: none; } body { background: #fff; color: #000; } }

/* Mobile: glass without the backdrop cost — the gradient carries the look; the blur is a desktop luxury */
@media (max-width: 900px) {
  .win.glass, .tile.glass, .stats.glass, .wizard.glass, .dialog.glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.62)); }
  .bubble { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
