/* =========================================================
   AURA Projects — index styles
   Four vibrant, non-neon themes via [data-theme] on <html>
   ========================================================= */

/* ---------- Theme tokens ----------
   Crimson Ember is the single, permanent site theme: it lives on :root so it
   applies everywhere even if a stray data-theme is present. The theme switcher
   and the localStorage loader have been removed. The other [data-theme] blocks
   below are kept only so old links/screenshots don't break; nothing sets them. */
[data-theme="amber"] {
  --bg:        #0d0b09;
  --bg-2:      #15110d;
  --surface:   #1b1611;
  --surface-2: #221a13;
  --text:      #f7efe6;
  --text-dim:  #b6a692;
  --border:    rgba(255, 180, 110, 0.14);
  --accent:    #ff7a18;
  --accent-2:  #ffb347;
  --accent-ink:#1a0e03;
  --glow:      rgba(255, 122, 24, 0.45);
  --grid:      rgba(255, 150, 70, 0.06);
}

[data-theme="blue"] {
  --bg:        #060a14;
  --bg-2:      #0a1120;
  --surface:   #0e1626;
  --surface-2: #121d31;
  --text:      #eaf2ff;
  --text-dim:  #94a8c8;
  --border:    rgba(90, 155, 255, 0.16);
  --accent:    #2f7bff;
  --accent-2:  #46d6ff;
  --accent-ink:#ffffff;
  --glow:      rgba(47, 123, 255, 0.46);
  --grid:      rgba(90, 160, 255, 0.07);
}

[data-theme="crimson"] {
  --bg:        #0a0608;
  --bg-2:      #120709;
  --surface:   #190a0d;
  --surface-2: #210c10;
  --text:      #f8ecec;
  --text-dim:  #c0a0a3;
  --border:    rgba(255, 80, 110, 0.16);
  --accent:    #ff2d4d;
  --accent-2:  #ff7a8a;
  --accent-ink:#1a0306;
  --glow:      rgba(255, 45, 77, 0.42);
  --grid:      rgba(255, 70, 100, 0.06);
}

/* Crimson Ember — the permanent theme (crimson × amber blend): accent stays
   crimson, second accent is amber-gold, so every gradient (buttons, .grad,
   .hot) flows red → gold. Lives on :root so it is the default everywhere. */
:root,
[data-theme="ember"] {
  --bg:        #0c0705;
  --bg-2:      #150b07;
  --surface:   #1e0f0a;
  --surface-2: #27140d;
  --text:      #fbefe6;
  --text-dim:  #ccab98;
  --border:    rgba(255, 125, 75, 0.16);
  --accent:    #ff2d4d;
  --accent-2:  #ffab3d;
  --accent-ink:#1c0702;
  --glow:      rgba(255, 90, 50, 0.42);
  --grid:      rgba(255, 120, 70, 0.06);
}

/* ---------- Calm soft-dark cinematic themes ---------- */

/* Serene Teal — clear water / morning lab */
[data-theme="teal"] {
  --bg:        #081513;
  --bg-2:      #0c1d1a;
  --surface:   #102420;
  --surface-2: #142b27;
  --text:      #eafaf5;
  --text-dim:  #9cc4bb;
  --border:    rgba(120, 220, 200, 0.16);
  --accent:    #2fb8a6;
  --accent-2:  #6fe3d6;
  --accent-ink:#03110e;
  --glow:      rgba(47, 184, 166, 0.34);
  --grid:      rgba(110, 220, 200, 0.05);
}

/* Dawn — blush rose + soft gold, night-before-sunrise */
[data-theme="dawn"] {
  --bg:        #140d12;
  --bg-2:      #1b1117;
  --surface:   #22151c;
  --surface-2: #2a1a22;
  --text:      #fceef0;
  --text-dim:  #cba8b0;
  --border:    rgba(255, 180, 190, 0.15);
  --accent:    #f5879b;
  --accent-2:  #ffcf9e;
  --accent-ink:#2a0b12;
  --glow:      rgba(245, 135, 155, 0.30);
  --grid:      rgba(255, 180, 160, 0.05);
}

/* Misty Blue — moonlight silver, quiet premium night */
[data-theme="mist"] {
  --bg:        #0b1018;
  --bg-2:      #121a24;
  --surface:   #18212e;
  --surface-2: #1d2836;
  --text:      #eef4fb;
  --text-dim:  #a7b6c8;
  --border:    rgba(170, 195, 230, 0.15);
  --accent:    #7fa8d8;
  --accent-2:  #cfe0f2;
  --accent-ink:#0a121d;
  --glow:      rgba(127, 168, 216, 0.32);
  --grid:      rgba(170, 200, 235, 0.05);
}

/* Sage — muted green + warm sand, grounded calm */
[data-theme="sage"] {
  --bg:        #10130d;
  --bg-2:      #161a12;
  --surface:   #1c2017;
  --surface-2: #22271b;
  --text:      #f3f1e6;
  --text-dim:  #b8bca0;
  --border:    rgba(190, 200, 150, 0.15);
  --accent:    #9bb586;
  --accent-2:  #e3cfa3;
  --accent-ink:#0d1208;
  --glow:      rgba(155, 181, 134, 0.30);
  --grid:      rgba(190, 200, 150, 0.05);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* overflow-x: clip on the root stops the page from being wider than the phone.
   Some position:fixed layers (nav, loader, world, cursor) are anchored to the
   viewport and aren't contained by body's clip, so without clipping at <html>
   the layout viewport inflates — letting users pinch-zoom out and throwing the
   loader/sections off-centre on mobile. `clip` (not `hidden`) avoids making
   <html> a scroll container, so sticky elements keep working. */
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: clip;
  transition: background .6s ease, color .6s ease;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: "Sora", sans-serif; line-height: 1.05; letter-spacing: -0.02em; }
section { position: relative; }
::selection { background: var(--accent); color: var(--accent-ink); }
main { position: relative; z-index: 1; }
.footer { position: relative; z-index: 1; }

/* ---------- Global evolving background ---------- */
.world { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% -8%, color-mix(in srgb, var(--accent) 16%, var(--bg-2)), transparent 60%),
    radial-gradient(100% 70% at 50% 108%, color-mix(in srgb, var(--accent-2) 12%, var(--bg-2)), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2)); }
.world-glow { position: absolute; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  border-radius: 50%; filter: blur(46px); opacity: .5;
  background: radial-gradient(circle, var(--glow), transparent 64%);
  left: 50%; top: 34%; transform: translate(-50%, -50%);
  will-change: transform; transition: background .6s ease;
  animation: worldFloat 20s ease-in-out infinite alternate; }
@keyframes worldFloat {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-44%, -60%) scale(1.12); }
}
.world-glow-2 { width: 48vw; height: 48vw; max-width: 560px; max-height: 560px; opacity: .4;
  background: radial-gradient(circle, var(--accent-2), transparent 66%);
  left: 30%; top: 60%; mix-blend-mode: screen; }
.world-grid { position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .6;
  mask-image: radial-gradient(ellipse 100% 60% at 50% var(--gridY, 30%), #000 0%, transparent 75%); }
.world-noise { position: absolute; inset: 0; opacity: .025;
  background-image: radial-gradient(var(--text) .6px, transparent .6px); background-size: 3px 3px; }

/* ---------- Journey path (one continuous descent) ---------- */
.journey { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.journey-svg { position: absolute; top: 0; left: 4vw; width: 90px; height: 100vh; overflow: visible; }
.journey-base { fill: none; stroke: var(--border); stroke-width: 2; }
.journey-draw { fill: none; stroke: url(#solidGrad); stroke-width: 3; stroke-linecap: round;
  filter: drop-shadow(0 0 8px var(--glow)); }
.journey-core { fill: var(--accent-2); filter: drop-shadow(0 0 14px var(--glow)); }
@media (max-width: 1100px) { .journey { display: none; } }

/* ---------- Image placeholders (swap for Nano Banana renders) ---------- */
.ph { position: relative; overflow: hidden; border-radius: 14px; background: var(--surface-2);
  border: 1px dashed var(--border); display: grid; place-items: center; }
.ph::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 20%, color-mix(in srgb, var(--accent) 16%, transparent) 50%, transparent 80%);
  transform: translateX(-100%); animation: shimmer 2.6s linear infinite; }
.ph::after { content: attr(data-label); position: relative; font-family: "JetBrains Mono"; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Cursor ---------- */
/* Five switchable cursor designs, chosen via the picker (data-cursor-style on <html>).
   Each design is a group of nodes positioned in JS via transform; only the active group shows. */
#cursorFx { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
.cfx { display: none; position: absolute; inset: 0; }
html[data-cursor-style="ring"] .cfx--ring,
html[data-cursor-style="ember"] .cfx--ember,
html[data-cursor-style="reticle"] .cfx--reticle,
html[data-cursor-style="label"] .cfx--label,
html[data-cursor-style="comet"] .cfx--comet { display: block; }

/* 01 — Ring + dot (blend-difference keeps it visible over any photo) */
.cfx--ring { mix-blend-mode: difference; }
.cfx-ring { position: absolute; top: 0; left: 0; width: 38px; height: 38px; border: 1.5px solid #fff; border-radius: 50%; transition: width .25s, height .25s, background .25s; }
.cfx-dot { position: absolute; top: 0; left: 0; width: 5px; height: 5px; background: #fff; border-radius: 50%; transition: opacity .2s; }
.cfx--ring.hovering .cfx-ring { width: 64px; height: 64px; background: rgba(255,255,255,.14); }

/* 02 — Ember glow (theme-accent dot + halo, faint dark edge so it reads over bright imagery) */
.cfx-ember { position: absolute; top: 0; left: 0; width: 11px; height: 11px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 18px 6px var(--glow), 0 0 2px 1px rgba(0,0,0,.45); transition: box-shadow .25s, width .2s, height .2s; }
.cfx-ember-ring { position: absolute; top: 0; left: 0; width: 0; height: 0; border: 1px solid var(--accent-2); border-radius: 50%; opacity: 0; transition: width .28s, height .28s, opacity .28s; }
.cfx--ember.hovering .cfx-ember { box-shadow: 0 0 30px 11px var(--glow), 0 0 2px 1px rgba(0,0,0,.45); }
.cfx--ember.hovering .cfx-ember-ring { width: 60px; height: 60px; opacity: 1; }

/* 03 — Reticle (engineering crosshair; snappy, turns accent on hover) */
.cfx--reticle { filter: drop-shadow(0 0 2px rgba(0,0,0,.55)); }
.cfx-ret { position: absolute; top: 0; left: 0; transition: transform .16s; }
.cfx-ret-h { position: absolute; left: -13px; top: -.75px; width: 26px; height: 1.5px; background: #fff; transition: background .16s; }
.cfx-ret-v { position: absolute; left: -.75px; top: -13px; width: 1.5px; height: 26px; background: #fff; transition: background .16s; }
.cfx-ret-ring { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; transition: border-color .16s; }
.cfx--reticle.hovering .cfx-ret-h, .cfx--reticle.hovering .cfx-ret-v { background: var(--accent); }
.cfx--reticle.hovering .cfx-ret-ring { border-color: var(--accent); }

/* 04 — Magnetic label (ring snaps onto targets and reads a word) */
.cfx-label-ring { position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1.5px solid #fff; border-radius: 100px; color: var(--accent-ink); font-family: "Space Grotesk"; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; filter: drop-shadow(0 0 2px rgba(0,0,0,.5)); transition: width .22s, height .22s, background .22s, border-color .22s; }
.cfx--label.hovering .cfx-label-ring { width: 66px; height: 34px; background: var(--accent); border-color: var(--accent); }
.cfx--label.hovering .cfx-dot { opacity: 0; }

/* 05 — Comet trail (sizes/colours/opacity set per node in JS) */
.cfx-comet-dot { position: absolute; top: 0; left: 0; border-radius: 50%; }

/* On hover-capable devices, hide the real OS cursor so only the custom one shows (pages that build the cursor rig) */
@media (hover: hover) { body.home, body.home *, body.about-body, body.about-body * { cursor: none !important; } }
@media (hover: none) { #cursorFx, .cursor-switch { display: none; } }

/* Cursor picker control (mirrors the theme switcher, stacked above it) */
.cursor-switch { position: fixed; right: 22px; bottom: 80px; z-index: 900; }
.cursor-toggle {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  padding: 11px 16px; border-radius: 100px; font-family: "JetBrains Mono"; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 10px 40px rgba(0,0,0,.35);
  transition: transform .25s; backdrop-filter: blur(8px);
}
.cursor-toggle:hover { transform: translateY(-2px); }
.cursor-toggle-dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--glow); }
.cursor-menu {
  position: absolute; right: 0; bottom: 58px; width: 220px; padding: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); display: grid; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97); transform-origin: bottom right;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.cursor-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.cursor-menu-title { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); padding: 6px 8px; }
.cursor-opt {
  display: flex; align-items: center; gap: 11px; width: 100%;
  background: transparent; border: none; color: var(--text); font-family: "Space Grotesk"; font-size: 14px;
  padding: 10px 8px; border-radius: 10px; text-align: left; transition: background .2s;
}
.cursor-opt:hover { background: var(--surface-2); }
.cursor-opt.active { background: var(--surface-2); outline: 1px solid var(--border); }
.cursor-opt i.ci { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--border); position: relative; }
.cursor-opt i.ci::after { content: ""; position: absolute; inset: 0; margin: auto; }
.ci-ring::after { width: 11px; height: 11px; border: 1.5px solid var(--text); border-radius: 50%; }
.ci-ember::after { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 6px var(--glow); }
.ci-reticle::after { width: 13px; height: 13px; background: linear-gradient(var(--text),var(--text)) center/1.5px 13px no-repeat, linear-gradient(var(--text),var(--text)) center/13px 1.5px no-repeat; }
.ci-label::after { width: 15px; height: 9px; border: 1.5px solid var(--text); border-radius: 100px; }
.ci-comet::after { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 5px 0 0 -1px var(--accent-2), 9px 0 0 -2px var(--accent-2); }
@media (max-width: 600px) { .cursor-switch { right: 14px; bottom: 70px; } }

/* ---------- Loader (boot sequence) ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000; overflow: hidden;
  background:
    radial-gradient(60% 46% at 50% 44%, color-mix(in srgb, var(--glow) 34%, transparent), transparent 70%),
    var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  transition: opacity .6s ease, visibility .6s;
}
.loader::before { content: ""; position: absolute; inset: 0; opacity: .4; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 45%, #000 20%, transparent 75%); }
.loader.done { opacity: 0; visibility: hidden; }
/* Failsafe. The loader is a full-screen z-index:10000 overlay and ONLY js/main.js
   ever adds .done — so if main.js 404s, throws, or is blocked, the whole site is
   replaced by a permanent "Igniting the core… 00%" screen. This CSS clears it on
   its own after 6s, no JavaScript involved. Normal boot finishes in ~1.4s, so this
   never fires in practice; it only stops a broken script from hiding the site.
   Scoped to :not(.done) on purpose — a running animation outranks normal
   declarations in the cascade, so applying it to .loader unconditionally kept
   the overlay at opacity 1 and beat .done, freezing the loader on every visit.
   With :not(.done) the selector stops matching the moment main.js succeeds and
   the animation is dropped, leaving the normal fade to run. */
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader:not(.done) { animation: loader-failsafe 1ms linear 6s forwards; }
.loader-frame span { position: absolute; width: 26px; height: 26px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); opacity: .7; }
.loader-frame span:nth-child(1) { top: clamp(18px, 4vw, 42px); left: clamp(18px, 4vw, 42px); border-right: none; border-bottom: none; }
.loader-frame span:nth-child(2) { top: clamp(18px, 4vw, 42px); right: clamp(18px, 4vw, 42px); border-left: none; border-bottom: none; }
.loader-frame span:nth-child(3) { bottom: clamp(18px, 4vw, 42px); left: clamp(18px, 4vw, 42px); border-right: none; border-top: none; }
.loader-frame span:nth-child(4) { bottom: clamp(18px, 4vw, 42px); right: clamp(18px, 4vw, 42px); border-left: none; border-top: none; }
.loader-mark { position: relative; display: flex; align-items: center; gap: 16px; }
.loader-mark svg { overflow: visible; }
/* Boot mascot. The old triangle was drawn stroke-by-stroke; a raster mark
   cannot do that, so it breathes and glows instead. */
.loader-mark-img { display: block; width: 76px; height: 76px; object-fit: contain;
  filter: drop-shadow(0 0 16px var(--glow)); animation: markBreathe 2.2s ease-in-out infinite; }
@keyframes markBreathe { 0%, 100% { transform: scale(1); opacity: .88; } 50% { transform: scale(1.06); opacity: 1; } }
.loader.ignite .loader-mark-img { animation: none; transform: scale(1); filter: drop-shadow(0 0 30px var(--glow)); }
@media (prefers-reduced-motion: reduce) { .loader-mark-img { animation: none; } }
.loader-tri { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linejoin: round;
  stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.4s ease forwards infinite alternate;
  filter: drop-shadow(0 0 10px var(--glow)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader-tri-echo { fill: none; stroke: color-mix(in srgb, var(--accent-2) 42%, transparent); stroke-width: 1.5; stroke-linejoin: round;
  transform-origin: 50% 60%; animation: echoPulse 2.2s ease-in-out infinite; }
@keyframes echoPulse { 0%, 100% { transform: scale(1.1); opacity: .25; } 50% { transform: scale(1.22); opacity: .65; } }
.loader-core { fill: var(--accent-2); opacity: .4; filter: drop-shadow(0 0 8px var(--accent-2)); animation: corePulse 1.4s ease-in-out infinite; }
@keyframes corePulse { 50% { opacity: 1; } }
.loader-name { font-family: "Sora"; font-weight: 800; font-size: 32px; letter-spacing: .16em;
  background: linear-gradient(100deg, var(--text) 40%, var(--accent-2) 50%, var(--text) 60%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: nameSheen 2.6s linear infinite; }
@keyframes nameSheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.loader-bar { width: min(320px, 72vw); height: 3px; background: var(--border); border-radius: 4px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--glow); }
.loader-meta { width: min(320px, 72vw); display: flex; justify-content: space-between; align-items: baseline; }
.loader-tag { font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim); }
.loader-pct { font-family: "JetBrains Mono"; font-weight: 500; font-size: 12px; letter-spacing: .14em; color: var(--accent); }
/* 100% ignition pop, triggered by JS right before the fade-out */
.loader.ignite .loader-tri { animation: none; stroke-dashoffset: 0; filter: drop-shadow(0 0 22px var(--glow)); }
.loader.ignite .loader-core { animation: none; opacity: 1; }
.loader.ignite .loader-mark { animation: ignitePop .4s ease; }
@keyframes ignitePop { 45% { transform: scale(1.07); } }

/* ---------- Theme switch ---------- */
.theme-switch { position: fixed; right: 22px; bottom: 22px; z-index: 900; }
.theme-toggle {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  padding: 11px 16px; border-radius: 100px; font-family: "JetBrains Mono"; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 10px 40px rgba(0,0,0,.35);
  transition: transform .25s; backdrop-filter: blur(8px);
}
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle-dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--glow); }
.theme-menu {
  position: absolute; right: 0; bottom: 58px; width: 220px; padding: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); display: grid; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97); transform-origin: bottom right;
  transition: opacity .25s, transform .25s, visibility .25s;
}
.theme-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.theme-menu-title { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); padding: 6px 8px; }
.theme-opt {
  display: flex; align-items: center; gap: 11px; width: 100%; cursor: pointer;
  background: transparent; border: none; color: var(--text); font-family: "Space Grotesk"; font-size: 14px;
  padding: 10px 8px; border-radius: 10px; text-align: left; transition: background .2s;
}
.theme-opt:hover { background: var(--surface-2); }
.theme-opt i { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; }
.theme-opt.active { background: var(--surface-2); outline: 1px solid var(--border); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px clamp(20px, 5vw, 64px); transition: padding .4s, background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { padding-top: 12px; padding-bottom: 12px; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); border-color: var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Sora"; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand svg { fill: var(--accent); filter: drop-shadow(0 0 8px var(--glow)); }
/* Mascot mark. It is a full-colour raster, so it keeps the glow but not the
   accent fill the old triangle used. Sizing comes from the width/height
   attributes on each <img>, which vary from 20px to 46px. */
.brand-mark { display: block; flex: none; object-fit: contain; filter: drop-shadow(0 0 8px var(--glow)); }
.brand b { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { font-size: 14px; color: var(--text-dim); padding: 8px 14px; border-radius: 100px; transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center; min-width: 172px;
  font-size: 14px; font-weight: 600; padding: 11px 20px; border-radius: 100px; white-space: nowrap;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  box-shadow: 0 8px 26px var(--glow); transition: transform .25s, box-shadow .25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--glow); }

/* decorative typewriter cursor (nav profile name + Start a Project CTA) */
.tw-cursor::after { content: "|"; display: inline-block; margin-left: 2px; animation: twBlink 1s step-end infinite; }
@keyframes twBlink { 50%, 100% { opacity: 0; } }
.nav-dash {
  font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: border-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.nav-dash:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 28px -16px var(--glow); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-wa { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 100px;
  border: 1px solid #25D366; background: var(--surface); color: #25D366;
  font-size: 14px; font-weight: 600;
  transition: color .25s, background .25s, border-color .25s, transform .25s, box-shadow .25s; }
.nav-wa svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.nav-wa:hover { background: color-mix(in srgb, #25D366 12%, var(--surface)); transform: translateY(-2px); box-shadow: 0 10px 28px -16px rgba(37,211,102,.4); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- navbar auth (Log in button ↔ signed-in profile chip) ---------- */
.nav-auth { position: relative; display: flex; align-items: center; }
.nav-auth [hidden] { display: none !important; }
.nav-login { font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 100px; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: border-color .25s, background .25s, transform .25s; }
.nav-login:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.nav-user-btn { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
  font-family: "Space Grotesk"; transition: border-color .25s, transform .25s, box-shadow .25s; }
.nav-user-btn:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 28px -16px var(--glow); }
.nav-user-av { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  font-family: "Sora"; font-weight: 700; font-size: 13px; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px var(--glow); }
.nav-user-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-user-name { font-size: 14px; font-weight: 600; max-width: 132px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user-caret { width: 15px; height: 15px; color: var(--text-dim); transition: transform .25s; }
.nav-user-btn[aria-expanded="true"] .nav-user-caret { transform: rotate(180deg); color: var(--accent); }

.nav-user-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 7px;
  box-shadow: 0 28px 60px -26px #000; display: flex; flex-direction: column; gap: 2px;
  animation: navMenuIn .2s ease both; }
@keyframes navMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-user-head { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.nav-user-head strong { font-family: "Sora"; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user-head em { font-style: normal; font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user-menu a, .nav-user-logout { display: flex; align-items: center; text-align: left; width: 100%; font-family: "Space Grotesk";
  font-size: 14px; color: var(--text); padding: 10px 12px; border-radius: 9px; background: none; border: none; cursor: pointer; transition: background .2s, color .2s; }
.nav-user-menu a:hover { background: var(--surface-2); color: var(--accent); }
.nav-user-logout { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; color: #ff9a9a; }
.nav-user-logout:hover { background: color-mix(in srgb, #ff5a5a 14%, var(--surface)); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Space Grotesk"; font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: 100px;
  cursor: pointer; border: 1px solid transparent; transition: transform .25s, box-shadow .25s, background .25s, color .25s; will-change: transform; }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 10px 30px var(--glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px var(--glow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 120px clamp(20px, 5vw, 64px) 80px; }
.hero-grid { position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%); }
.hero-glow { position: absolute; z-index: 0; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px;
  right: -10vw; top: -16vw; background: radial-gradient(circle, var(--glow), transparent 62%); filter: blur(20px); opacity: .8; }
.hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; width: 100%; }
.hero-copy { max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: "JetBrains Mono"; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); padding: 8px 15px; border: 1px solid var(--border);
  border-radius: 100px; background: var(--surface); margin-bottom: 28px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero-title { font-weight: 800; font-size: clamp(2.7rem, 8vw, 6rem); margin-bottom: 26px; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title em { font-style: normal; color: var(--accent); }
.grad { background: linear-gradient(110deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-dim); max-width: 600px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-stats { display: flex; gap: clamp(24px, 5vw, 56px); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: "Sora"; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--text); }
.hero-stats span { font-family: "JetBrains Mono"; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }

/* ---------- One-glance hero board (resting frame of the title film) ---------- */
.hero-board { width: min(92vw, 880px); margin-top: 8px; border: 1px solid var(--border); border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 52%, transparent); backdrop-filter: blur(12px);
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .05); overflow: hidden; }
.hero-board .hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 18px 8px 15px; }
.hero-board .hero-stats div { align-items: center; gap: 3px; padding: 0 8px; }
.hero-board .hero-stats div + div { border-left: 1px solid var(--border); }
.hero-board .hero-stats b { font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1; }
.hero-board .hero-stats span { font-size: 9.5px; letter-spacing: .16em; text-align: center; }
.hero-paths { display: flex; flex-wrap: wrap; border-top: 1px dashed var(--border); }
.hero-paths a { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 13px 12px;
  font-family: "JetBrains Mono"; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none; white-space: nowrap; transition: color .2s, background .2s; }
.hero-paths a + a { border-left: 1px solid var(--border); }
.hero-paths a b { font-weight: 400; color: var(--accent); transition: transform .2s; }
.hero-paths a:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.hero-paths a:hover b { transform: translateX(3px); }
@media (max-width: 700px) {
  .hero-board .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .hero-board .hero-stats div:nth-child(3) { border-left: none; }
  .hero-paths a { flex: 1 1 50%; }
  .hero-paths a:nth-child(3) { border-left: none; }
}
@media (max-height: 760px) {
  .beat-final { row-gap: 14px; }
  .beat-final .film-headline { font-size: clamp(2rem, 6vw, 3.8rem); }
  .beat-final .hero-actions { margin: 2px 0 0; }
  .hero-board .hero-stats { padding: 12px 8px 10px; }
  .hero-paths a { padding: 10px 12px; }
}
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-dim);
  font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 12px; background: var(--accent); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { transform: translateY(-12px); } 100% { transform: translateY(40px); } }

/* ---------- Scroll cue: terminal typewriter prompt (bottom center) ----------
   Lives in the #scrollHint wrapper so the film timeline fades it on first
   scroll; the typing loop and click-to-scroll live in main.js. It is a real
   <button>, so it reads as clickable and works from the keyboard. */
.scroll-cues { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; pointer-events: none; }
.scroll-cues > * { pointer-events: auto; cursor: pointer; }
.cue-type { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px; padding: 11px 20px;
  font-family: "JetBrains Mono"; font-size: 13px; letter-spacing: .08em;
  color: var(--accent-2); white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 0 var(--glow), 0 10px 30px rgba(0, 0, 0, .45);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
  animation: cuePulse 2.8s ease-in-out infinite; }
.cue-type:hover, .cue-type:focus-visible {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 85%, transparent);
  color: var(--text); animation: none; outline: none;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 0 22px var(--glow), 0 12px 34px rgba(0, 0, 0, .5); }
.cue-type:active { transform: translateX(-50%) translateY(0); }
.cue-type b { color: var(--accent); font-weight: 700; }
/* Reserve the full phrase width ("scroll to begin" = 15 chars, plus the
   .08em letter-spacing each char adds) so the pill never resizes while typing. */
.cue-type #cueTypeText { display: inline-block; min-width: calc(15ch + 1.2em); text-align: left; }
.cue-caret { width: 8px; height: 15px; background: var(--accent); animation: cueBlink 1s steps(1) infinite; }
@keyframes cueBlink { 50% { opacity: 0; } }
@keyframes cuePulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow), 0 10px 30px rgba(0, 0, 0, .45); }
  70% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent), 0 10px 30px rgba(0, 0, 0, .45); }
}
@media (max-width: 720px) {
  .cue-type { bottom: 22px; font-size: 11px; padding: 9px 16px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .cue-type { animation: none; }
}

/* ---------- The Forge ---------- */
.forge { height: 300vh; }
.forge-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.forge-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.forge-rings span { position: absolute; border: 1px solid var(--border); border-radius: 50%; }
.forge-rings span:nth-child(1) { width: 380px; height: 380px; }
.forge-rings span:nth-child(2) { width: 600px; height: 600px; }
.forge-rings span:nth-child(3) { width: 860px; height: 860px; }
.forge-canvas { position: relative; width: min(78vw, 560px); aspect-ratio: 1; }
.forge-canvas::before { content: ""; position: absolute; inset: 8%; background: radial-gradient(circle, var(--glow), transparent 68%); filter: blur(26px); opacity: .55; }
.forge-svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.forge-svg .build { opacity: 0; }
.forge-svg .build path, .forge-svg .build rect, .forge-svg .build circle, .forge-svg .build polygon {
  fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--glow)); }
.forge-scan { position: absolute; left: 0; right: 0; height: 24%; top: -30%;
  background: linear-gradient(var(--accent), transparent); opacity: .0; mix-blend-mode: screen; pointer-events: none; }
.forge-hud { position: absolute; left: clamp(20px, 5vw, 64px); bottom: clamp(40px, 9vh, 90px); z-index: 3;
  max-width: 320px; padding: 22px; background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--border); border-radius: 18px; backdrop-filter: blur(10px); }
.hud-step { font-family: "JetBrains Mono"; font-size: 12px; letter-spacing: .1em; color: var(--text-dim); }
.hud-step b { color: var(--accent); font-size: 16px; }
.hud-name { font-size: 1.7rem; font-weight: 700; margin: 8px 0 10px; }
.hud-desc { font-size: .95rem; color: var(--text-dim); margin-bottom: 16px; }
.hud-specs { display: grid; gap: 8px; }
.hud-specs div { display: flex; justify-content: space-between; font-family: "JetBrains Mono"; font-size: 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.hud-specs span { color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; }
.hud-specs b { color: var(--text); }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; overflow: hidden; background: color-mix(in srgb, var(--bg-2) 55%, transparent); backdrop-filter: blur(4px); }
.marquee-track { display: flex; gap: 28px; align-items: center; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: "Sora"; font-weight: 700; font-size: clamp(1.3rem, 3vw, 2rem); color: var(--text); white-space: nowrap; }
.marquee-track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
/* Unified field: no opaque section backgrounds, the page is one continuous space */
.section-alt { background: transparent; max-width: none; }
.section-alt > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.section-head { max-width: 720px; margin: 0 auto clamp(48px, 7vh, 80px); text-align: center; }
.kicker { font-family: "JetBrains Mono"; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); }
.section-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin: 16px 0 18px; }
.section-lead { font-size: 1.1rem; color: var(--text-dim); }

/* ---------- Domains ---------- */
.domains-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.domain-card { position: relative; padding: 30px 26px 34px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; transition: transform .4s, border-color .4s; }
.domain-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx,50%) var(--my,0%), var(--glow), transparent 45%);
  opacity: 0; transition: opacity .4s; pointer-events: none; }
.domain-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.domain-card:hover::after { opacity: .22; }
.domain-no { font-family: "JetBrains Mono"; font-size: 13px; color: var(--accent); }
.domain-card h3 { font-size: 1.25rem; margin: 14px 0 10px; }
.domain-card p { font-size: .95rem; color: var(--text-dim); }

/* ---------- Process: the signal-trace flow (ported from Aura 4.0, recolored) ---------- */
.flow { position: relative; max-width: 1080px; margin: 0 auto; padding: 20px 12px 60px;
  display: flex; flex-direction: column; gap: clamp(48px, 8vh, 86px); }
.trace-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; pointer-events: none; }
.trace-track { fill: none; stroke: var(--border); stroke-width: 1.5px; }
.trace-draw { fill: none; stroke: var(--accent); stroke-width: 1.6px; filter: drop-shadow(0 0 6px var(--glow)); }
.trace-head { fill: var(--accent-2); filter: drop-shadow(0 0 10px var(--glow)); }

/* ---------- Domains reel: scroll-scrubbed photo transitions ---------- */
.reel { position: relative; height: 580vh; }
.reel-stage { position: relative; height: 100vh; width: 100%; overflow: hidden; }
.reel-head { position: absolute; top: clamp(88px, 13vh, 130px); left: clamp(20px, 6vw, 90px); z-index: 4; }
.reel-head h2 { font-size: clamp(1.25rem, 2.2vw, 1.8rem); margin-top: 6px; opacity: .8; }
.reel-slide { position: absolute; inset: 0; }
.reel-media { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.reel-media .ph, .reel-img { position: absolute; inset: 0; width: 100%; height: 100%; border: none; border-radius: 0; }
.reel-img { object-fit: cover; display: block; }
.reel-scrim { position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent), color-mix(in srgb, var(--bg) 28%, transparent) 46%, transparent 72%),
    linear-gradient(0deg, color-mix(in srgb, var(--bg) 88%, transparent), transparent 52%); }
.reel-copy { position: absolute; left: clamp(20px, 6vw, 90px); bottom: clamp(64px, 13vh, 140px); z-index: 3; max-width: 600px; }
.reel-index { font-family: "JetBrains Mono"; font-size: 13px; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
.reel-index b { font-family: "Sora"; font-size: 2.2rem; color: var(--text); margin-right: 8px; }
.reel-name { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin-bottom: 16px; }
.reel-desc { font-size: 1.05rem; color: var(--text-dim); max-width: 480px; margin-bottom: 18px; }
.reel-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.reel-tags span { font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--border); border-radius: 100px; padding: 6px 12px; }
.reel-nav { position: absolute; right: clamp(20px, 5vw, 60px); top: 50%; transform: translateY(-50%); z-index: 4;
  display: flex; flex-direction: column; gap: 12px; list-style: none; }
.reel-nav li { display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); opacity: .45; transition: opacity .3s, color .3s; }
.reel-nav li::after { content: ""; width: 22px; height: 2px; background: var(--border); transition: width .3s, background .3s; }
.reel-nav li.active { opacity: 1; color: var(--text); }
.reel-nav li.active::after { width: 42px; background: var(--accent); box-shadow: 0 0 8px var(--glow); }

/* Prev/Next controls for the domains reel, docked under the index rail */
.reel-arrows { position: absolute; right: clamp(20px, 5vw, 60px); bottom: clamp(48px, 9vh, 90px); z-index: 4; display: flex; gap: 10px; }
.reel-arrow { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 78%, transparent); color: var(--text); cursor: pointer; backdrop-filter: blur(6px);
  transition: border-color .25s, color .25s, transform .25s, box-shadow .25s, opacity .25s; }
.reel-arrow svg { width: 18px; height: 18px; }
.reel-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 26px -14px var(--glow); }
.reel-arrow:disabled { opacity: .32; cursor: default; }

/* reduced-motion / no-JS: stack the domains as readable panels */
.reel.no-anim { height: auto; }
.reel.no-anim .reel-stage { height: auto; }
.reel.no-anim .reel-slide { position: relative; opacity: 1 !important; visibility: visible !important; }
.reel.no-anim .reel-media { position: relative; aspect-ratio: 16 / 9; }
.reel.no-anim .reel-copy { position: relative; left: auto; bottom: auto; padding: 22px clamp(20px,6vw,90px) 48px; max-width: none; }
.reel.no-anim .reel-nav, .reel.no-anim .reel-head, .reel.no-anim .reel-arrows { display: none; }
/* Phones keep the prev/next arrows (same function as desktop); only the
   right-hand name rail is dropped — it would sit on top of the slide copy. */
@media (max-width: 760px) { .reel-nav { display: none; } }

/* The 10th domain — Custom Projects — is the headline path, so it gets accent treatment */
.reel-slide-custom .reel-media { background: radial-gradient(120% 120% at 70% 20%, color-mix(in srgb, var(--accent) 40%, var(--bg)), var(--bg) 70%); }
.reel-slide-custom .reel-scrim { background:
  linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent), color-mix(in srgb, var(--bg) 36%, transparent) 48%, transparent 76%),
  linear-gradient(0deg, color-mix(in srgb, var(--bg) 90%, transparent), transparent 54%); }
.reel-flag { font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.reel-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.reel-cta .btn { font-size: 14px; }

.station { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 104px 1fr; align-items: center; }
.station-node { grid-column: 2; grid-row: 1; justify-self: center;
  width: 58px; height: 58px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--border); display: grid; place-items: center;
  font-family: "JetBrains Mono"; font-size: 14px; letter-spacing: .1em; color: var(--text-dim);
  transition: border-color .45s ease, color .45s ease, box-shadow .45s ease; }
.station.lit .station-node { border-color: var(--accent); color: var(--accent-2);
  box-shadow: 0 0 22px var(--glow), inset 0 0 12px color-mix(in srgb, var(--accent) 18%, transparent); }
.station-card { grid-row: 1; max-width: 430px; padding: 24px 26px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px;
  transition: border-color .5s ease, transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease, background .5s ease; }
.station[data-side="left"] .station-card { grid-column: 1; justify-self: end; text-align: right; }
.station[data-side="right"] .station-card { grid-column: 3; justify-self: start; }
/* The card powers on as the signal reaches its node: lift, accent glow, brighter edge, faint tint */
.station.lit .station-card {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  transform: translateY(-6px);
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  box-shadow: 0 16px 44px rgba(0,0,0,.42), 0 0 26px color-mix(in srgb, var(--accent) 20%, transparent);
}
.station.lit .station-step { animation: stepPulse .5s ease; }
@keyframes stepPulse { 0% { filter: brightness(1); } 40% { filter: brightness(1.9); } 100% { filter: brightness(1); } }
@keyframes nodePing { 0% { transform: scale(.65); opacity: .85; } 100% { transform: scale(2); opacity: 0; } }

/* Mobile pipeline: a punchier "signal powers on" as each node lights up while
   you scroll the single-column timeline (node + line on the left, card right). */
@media (max-width: 980px) {
  .station-node { position: relative;
    transition: transform .45s cubic-bezier(.22,1,.36,1), border-color .45s ease, color .45s ease, box-shadow .45s ease; }
  .station-node::after { content: ""; position: absolute; inset: -3px; border-radius: 50%;
    border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
  .station.lit .station-node { transform: scale(1.12); }
  .station.lit .station-node::after { animation: nodePing .8s ease-out; }
  .station-card { border-left: 2px solid var(--border); transition: border-color .5s ease, transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease, background .5s ease; }
  .station.lit .station-card { border-left-color: var(--accent); transform: translateY(-3px); }
  /* brighter, thicker signal line + larger travelling head on phones */
  .trace-draw { stroke-width: 2.4px; }
  .trace-head { r: 5; }
}

/* ---------- Start Building: full-screen panel with expanding cards ---------- */
.spanel { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 48px); isolation: isolate; }

/* subtle reactive background — only cheap GPU transforms move with the mouse (--mxr/--myr, -1..1),
   so the custom cursor never stutters. No per-frame gradient/mask repaints. */
.spanel-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); }
.spanel-glow { position: absolute; border-radius: 50%; filter: blur(82px); opacity: .32; will-change: transform; transition: transform .5s ease-out; }
.spanel-glow.g1 { width: 42vw; height: 42vw; left: -8vw; top: -10vw; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%); transform: translate3d(calc(var(--mxr, 0) * 14px), calc(var(--myr, 0) * 14px), 0); }
.spanel-glow.g2 { width: 36vw; height: 36vw; right: -6vw; bottom: -8vw; background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 70%); transform: translate3d(calc(var(--mxr, 0) * -18px), calc(var(--myr, 0) * -18px), 0); }
.spanel-glow.g3 { width: 26vw; height: 26vw; left: 44%; top: 36%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 72%); transform: translate3d(calc(var(--mxr, 0) * 10px), calc(var(--myr, 0) * -12px), 0); }
/* faint static engineering grid (centred mask, no cursor-follow so it never repaints) */
.spanel-grid { position: absolute; inset: 0; opacity: .3;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(75% 65% at 50% 45%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 45%, #000 25%, transparent 80%); }

/* generated image background */
.spanel-imgbg { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .5s; }
.spanel-imgbg img { width: 100%; height: 100%; object-fit: cover; }
.spanel-imgbg-scrim { position: absolute; inset: 0; background:
  radial-gradient(90% 80% at 50% 48%, color-mix(in srgb, var(--bg) 50%, transparent), transparent 80%),
  linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, transparent), color-mix(in srgb, var(--bg) 58%, transparent)); }
.spanel[data-startbg="image"] .spanel-fx { opacity: 0; }
.spanel[data-startbg="image"] .spanel-imgbg { opacity: 1; }

/* background toggle control */
.spanel-bgtoggle { position: absolute; top: clamp(80px, 11vh, 120px); right: clamp(20px, 5vw, 40px); z-index: 5;
  display: inline-flex; align-items: center; gap: 9px; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  padding: 9px 14px; border-radius: 100px; font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 10px 40px rgba(0,0,0,.35); backdrop-filter: blur(8px); transition: transform .25s; cursor: pointer; }
.spanel-bgtoggle:hover { transform: translateY(-2px); }
.spanel-bgdot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }

.spanel-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; display: flex; flex-direction: column; align-items: center; }
.spanel-head { text-align: center; max-width: 680px; margin-bottom: clamp(28px, 5vh, 48px); }
.spanel-head .kicker { display: inline-block; margin-bottom: 14px; }
.spanel-title { font-family: "Sora"; font-weight: 800; letter-spacing: -.03em; line-height: 1.04; font-size: clamp(2.2rem, 5.5vw, 4rem); margin-bottom: 14px; }
.spanel-lead { color: var(--text-dim); font-size: 1.05rem; line-height: 1.6; }

/* the expanding panels */
.scards { display: flex; gap: 14px; width: 100%; height: clamp(360px, 56vh, 480px); }
.scard { position: relative; flex: 1 1 0; min-width: 56px; overflow: hidden; border-radius: 20px; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 64%, transparent); border: 1px solid var(--border); backdrop-filter: blur(10px);
  transition: flex-grow .55s cubic-bezier(.22,1,.36,1), border-color .4s, box-shadow .4s, background .4s; }
.scard.is-active { flex-grow: 4.2; border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: 0 26px 64px rgba(0,0,0,.5), 0 0 40px color-mix(in srgb, var(--accent) 18%, transparent); }
/* per-panel image (drop images/start/{guidance,store,ai,custom}.png) — falls back to the tint if absent */
.scard-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.scard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.scard:hover .scard-media img, .scard.is-active .scard-media img { transform: scale(1.05); }
.scard-scrim { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, transparent) 0%, transparent 20%, color-mix(in srgb, var(--bg) 72%, transparent) 58%, color-mix(in srgb, var(--bg) 96%, transparent) 100%); }
/* a touch more darkening behind the open panel's copy so text stays legible over any photo */
.scard.is-active .scard-scrim { background:
  linear-gradient(180deg, color-mix(in srgb, var(--bg) 34%, transparent) 0%, transparent 18%, color-mix(in srgb, var(--bg) 80%, transparent) 54%, var(--bg) 100%); }
.scard-ico { position: absolute; top: 24px; left: 24px; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; z-index: 2;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); border: 1px solid var(--border); color: var(--accent); flex-shrink: 0; }
.scard-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* compact vertical label, hidden once the panel opens */
.scard-label { position: absolute; left: 28px; bottom: 26px; z-index: 2; writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: "Sora"; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; white-space: nowrap; color: var(--text);
  transition: opacity .3s; }
.scard.is-active .scard-label { opacity: 0; }
/* expanded detail */
.scard-detail { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
  opacity: 0; transform: translateY(14px); transition: opacity .4s .08s, transform .45s .08s; pointer-events: none;
  text-shadow: 0 1px 14px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.55); }
.scard.is-active .scard-detail { opacity: 1; transform: none; pointer-events: auto; }
.scard-step { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.scard-detail h3 { font-size: clamp(1.3rem, 1.7vw, 1.7rem); line-height: 1.14; }
.scard-detail p { color: color-mix(in srgb, var(--text) 90%, transparent); font-size: .95rem; line-height: 1.5; max-width: 40ch; }
.scard-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; color: var(--text);
  font-family: "Space Grotesk"; }
.scard-cta b { transition: transform .25s; }
.scard.is-active .scard-cta:hover { color: var(--accent); }
.scard.is-active .scard-cta:hover b { transform: translateX(5px); }
.scard-cta-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  padding: 11px 18px; border-radius: 100px; box-shadow: 0 8px 24px var(--glow); }
.scard.is-active .scard-cta-primary:hover { color: var(--accent-ink); }
/* the custom panel is the headline path */
.scard-feature { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.scard-feature .scard-ico { background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); }

@media (max-width: 760px) {
  /* Pinned vertical accordion: the section pins and the active card expands one
     at a time as you scroll (driven by the #start ScrollTrigger in main.js).
     Keep min-height:100vh so the pin holds the head + accordion on screen. */
  .spanel { min-height: 100vh; padding-top: clamp(78px, 11vh, 110px); padding-bottom: 20px; }
  .spanel-head { margin-bottom: clamp(16px, 3vh, 28px); }
  .scards { flex-direction: column; height: clamp(360px, 56vh, 520px); gap: 9px; }
  .scard { flex: 1 1 0; min-width: 0; min-height: 0; }
  .scard.is-active { flex-grow: 5; }
  .scard-ico { top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 10px; }
  .scard-ico svg { width: 20px; height: 20px; }
  .scard-label { writing-mode: horizontal-tb; transform: none; left: 62px; top: 24px; bottom: auto; font-size: 1rem; }
  .scard-detail { padding: 18px; }
  .scard-detail p { max-width: none; }
  .spanel-bgtoggle { top: auto; bottom: 14px; right: 14px; }
}

/* ---------- Process: three ways to start ---------- */
.entry-ways { display: flex; align-items: stretch; justify-content: center; gap: 14px; flex-wrap: wrap;
  max-width: 1000px; margin: 0 auto 28px; padding: 0 clamp(20px, 5vw, 40px); }
.entry-way { flex: 1 1 220px; min-width: 200px; display: flex; flex-direction: column; gap: 5px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.entry-way-link:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.32); }
.entry-tag { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
.entry-way b { font-size: 1.05rem; color: var(--text); }
.entry-way p { font-size: .85rem; color: var(--text-dim); line-height: 1.5; }
.entry-or { align-self: center; font-family: "JetBrains Mono"; font-size: 11px; text-transform: uppercase; letter-spacing: .15em; color: var(--text-dim); opacity: .65; }
@media (max-width: 760px) {
  /* keep the three "start with" cards side by side, compacted to fit a phone */
  .entry-ways { flex-wrap: nowrap; gap: 8px; padding: 0 16px; margin-bottom: 22px; }
  .entry-or { display: none; }
  .entry-way { flex: 1 1 0; min-width: 0; padding: 13px 11px; gap: 4px; border-radius: 12px; }
  .entry-tag { font-size: 8.5px; letter-spacing: .12em; }
  .entry-way b { font-size: .84rem; line-height: 1.2; }
  .entry-way p { font-size: .7rem; line-height: 1.4; }
}
.station-step { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: .26em; color: var(--accent); margin-bottom: 10px; }
.station-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.station-desc { color: var(--text-dim); font-size: .95rem; line-height: 1.55; margin-bottom: 14px; }
.station-checks { display: flex; flex-direction: column; gap: 6px; list-style: none; }
.station[data-side="left"] .station-checks { align-items: flex-end; }
.station-checks li { font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .05em; color: var(--text-dim); }
.station-checks li::before { content: "+ "; color: var(--accent); }

/* ---------- What you get: the delivery manifest (ported from Aura 4.0, recolored) ---------- */
.manifest-wrap { display: grid; grid-template-columns: 264px minmax(0, 720px); gap: 28px;
  justify-content: center; align-items: start; }

/* folded-in value props (the old "Why AURA") */
.manifest-rail { position: sticky; top: 110px; padding: 26px 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; }
.rail-tag { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: .24em; color: var(--accent); margin-bottom: 18px; }
.rail-list { list-style: none; display: grid; gap: 16px; }
.rail-list li { display: grid; gap: 3px; padding-bottom: 15px; border-bottom: 1px dashed var(--border); }
.rail-list li:last-child { border-bottom: none; padding-bottom: 0; }
.rail-list b { font-family: "Sora"; font-size: .98rem; font-weight: 600; }
.rail-list span { font-size: .85rem; color: var(--text-dim); line-height: 1.5; }

/* the signed manifest sheet */
.manifest-sheet { position: relative; background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-radius: 16px; }
.sheet-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 15px 26px; border-bottom: 1px dashed color-mix(in srgb, var(--text) 12%, transparent);
  font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: .2em; color: var(--text-dim); }
.manifest-list { position: relative; z-index: 1; list-style: none; padding: 26px 30px 10px; }
.m-item { display: grid; grid-template-columns: 24px 1fr; gap: 18px; align-items: start;
  padding: 13px 0; border-bottom: 1px dashed var(--border); }
.m-item:last-child { border-bottom: none; }
.m-check { width: 22px; height: 22px; margin-top: 2px; position: relative; background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  transition: border-color .4s ease, box-shadow .4s ease; }
.m-check::after { content: ""; position: absolute; left: 6px; top: 2px; width: 7px; height: 12px;
  border-right: 2.5px solid var(--accent-2); border-bottom: 2.5px solid var(--accent-2);
  transform: rotate(45deg) scale(0); transform-origin: center;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.m-item.stamped .m-check { border-color: var(--accent); box-shadow: 0 0 12px var(--glow); }
.m-item.stamped .m-check::after { transform: rotate(45deg) scale(1); }
.m-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.m-body h4 { font-family: "Sora"; font-size: 1rem; font-weight: 600; letter-spacing: .01em; }
.m-body p { color: var(--text-dim); font-size: .88rem; }

.stamp-zone { display: flex; justify-content: center; padding: 34px 20px 50px; }
.stamp { display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  border: 3px solid var(--accent); border-radius: 8px; color: var(--accent); padding: 16px 34px 14px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 30px var(--glow);
  transform: rotate(-6deg); }
.stamp-top { font-family: "Sora"; font-weight: 800; font-size: 1.05rem; letter-spacing: .3em; }
.stamp-main { font-family: "Sora"; font-weight: 800; font-size: 2.3rem; letter-spacing: .12em; line-height: 1; }
.stamp-sub { font-family: "JetBrains Mono"; font-size: 9px; letter-spacing: .3em; margin-top: 7px; color: var(--accent-2); }

/* ---------- FAQ ---------- */
/* ===== "Your account" block (home page) ===== */
.acct-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.acct-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px 24px; }
.acct-card h3 { font-family: "Sora"; font-weight: 700; font-size: 1.08rem; margin-bottom: 10px; }
.acct-card p { color: var(--text-dim); font-size: .95rem; line-height: 1.6; }
.acct-note { max-width: 720px; margin: 26px auto 0; text-align: center; color: var(--text-dim);
  font-size: .92rem; line-height: 1.7; }
.acct-note b { color: var(--text); font-weight: 600; }
.acct-note a { color: var(--accent); }
.acct-note a:hover { opacity: .8; }
.acct-cta { display: flex; justify-content: center; margin-top: 26px; }
@media (max-width: 900px) { .acct-grid { grid-template-columns: 1fr; } }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer;
  background: none; border: none; color: var(--text); font-family: "Sora"; font-weight: 600; font-size: 1.05rem; text-align: left; padding: 22px 24px; }
.faq-q i { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .3s; }
.faq-q i::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-q i::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item.open .faq-q i::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 24px 24px; color: var(--text-dim); font-family: "Space Grotesk"; }

/* ---------- Contact ---------- */
.contact { padding: clamp(90px, 14vh, 170px) clamp(20px, 5vw, 64px); text-align: center; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 120%, var(--glow), transparent 60%); opacity: .7; }
.contact-inner { position: relative; max-width: 1180px; margin: 0 auto; }

/* ---------- Work order form (ported from Aura 4.0, recolored) ---------- */
.transmit-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; text-align: left; }
.console, .consult-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); font-family: "JetBrains Mono"; font-size: 11px;
  letter-spacing: .18em; color: var(--text-dim); }
.console-bar-soft { background: color-mix(in srgb, var(--accent-2) 9%, var(--surface-2)); }
.console-dots { display: inline-flex; gap: 6px; }
.console-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.console-dots i:nth-child(1) { background: color-mix(in srgb, var(--accent) 70%, transparent); }
.console-bar .tx-node { margin-left: auto; color: var(--accent); }

.form-intro { padding: 18px 24px; border-bottom: 1px dashed var(--border); font-family: "JetBrains Mono"; font-size: 12px;
  line-height: 1.7; color: var(--text-dim); }
.form-intro p { margin: 0; }

#projectRequestForm, #consultForm { padding: 24px clamp(18px, 3vw, 28px) 28px; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-family: "JetBrains Mono"; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.required { color: var(--accent); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font-family: "Space Grotesk"; font-size: 15px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px;
  transition: border-color .25s, box-shadow .25s, background .25s; }
.form-group textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.form-group select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.form-group input::placeholder, .form-group textarea::placeholder { color: color-mix(in srgb, var(--text-dim) 70%, transparent); }
.form-group input.invalid, .form-group select.invalid, .form-group textarea.invalid {
  border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.help-text { display: block; margin-top: 7px; font-size: 12px; color: color-mix(in srgb, var(--text-dim) 80%, transparent); }

.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-option { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 13px 15px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; transition: border-color .25s, background .25s; }
.radio-option span { font-size: 14px; }
.radio-option input { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.radio-option:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }

.conditional-field[hidden] { display: none; }
.btn-block { width: 100%; margin-top: 6px; }
.form-note { margin-top: 14px; font-size: 12px; color: var(--text-dim); text-align: center; line-height: 1.5; }

/* form success state */
.form-success { padding: 40px clamp(20px, 4vw, 36px) 44px; text-align: center; }
.form-success[hidden] { display: none; }
.success-mark svg { width: 64px; height: 64px; margin: 0 auto 18px; display: block; }
.success-mark circle { stroke: var(--accent); stroke-width: 2; }
.success-mark path { stroke: var(--accent-2); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { color: var(--text-dim); max-width: 360px; margin: 0 auto 22px; }
.form-success #successReset { margin-top: 10px; }

/* =========================================================
   Form wizard (stepped request / consult) — motion-driven
   ========================================================= */

/* ----- progress rail ----- */
.wz-progress { margin-bottom: 26px; }
.wz-prog-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wz-count { font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.wz-count b { color: var(--accent-2); }
.wz-momentum { font-family: "Space Grotesk"; font-weight: 600; font-size: 13px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px; opacity: 0; transform: translateY(4px); }
.wz-momentum.show { animation: wzPop .45s cubic-bezier(.2,.9,.3,1.3) forwards; }
.wz-momentum::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--glow); }
@keyframes wzPop { to { opacity: 1; transform: none; } }

.wz-track { position: relative; display: flex; }
/* the base rail + the animated glowing fill sit behind the nodes */
.wz-track::before, .wz-fill { content: ""; position: absolute; top: 15px; left: 14px; right: 14px; height: 3px; border-radius: 3px; }
.wz-track::before { background: var(--border); }
.wz-fill { right: auto; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--glow); transition: width .55s cubic-bezier(.5,.05,.2,1); }
.wz-seg { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; z-index: 1; }
.wz-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; position: relative;
  font-family: "JetBrains Mono"; font-size: 12px; font-weight: 700; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--border);
  transition: color .3s, background .3s, border-color .3s, transform .35s cubic-bezier(.2,.9,.3,1.4); }
.wz-seg.is-active .wz-dot { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); transform: scale(1.12); }
.wz-seg.is-active .wz-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); animation: wzRing 1.8s ease-out infinite; }
@keyframes wzRing { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.wz-seg.is-done .wz-dot { color: var(--accent-2); background: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); cursor: pointer; }
.wz-seg.is-done { cursor: pointer; }
.wz-seg-label { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); text-align: center; transition: color .3s; }
.wz-seg.is-active .wz-seg-label { color: var(--text); }
.wz-seg.is-done .wz-seg-label { color: color-mix(in srgb, var(--text-dim) 80%, var(--accent)); }

/* ----- step panels + injected head ----- */
.wz-step[hidden] { display: none; }
.wz-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.wz-head-no { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  font-family: "Sora"; font-weight: 800; font-size: 17px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--accent) 10%, transparent); }
.wz-review .wz-head-no { color: var(--accent-2); font-size: 20px; }
.wz-head-title { font-family: "Sora"; font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.1; margin: 0; }
.wz-step-lead { font-family: "Space Grotesk"; font-size: 14.5px; color: var(--text-dim); line-height: 1.6; margin: 0 0 22px; }

/* directional slide of the panel + staggered rise of its contents */
.wz-step.wz-play { animation: wzPanelFwd .5s cubic-bezier(.2,.75,.25,1) both; }
.wz-step.wz-play[data-dir="back"] { animation-name: wzPanelBack; }
@keyframes wzPanelFwd  { from { transform: translateX(34px); } to { transform: none; } }
@keyframes wzPanelBack { from { transform: translateX(-34px); } to { transform: none; } }
.wz-step.wz-play > * { opacity: 0; animation: wzRise .5s cubic-bezier(.2,.7,.2,1) forwards; }
.wz-step.wz-play > *:nth-child(1) { animation-delay: .05s; }
.wz-step.wz-play > *:nth-child(2) { animation-delay: .11s; }
.wz-step.wz-play > *:nth-child(3) { animation-delay: .17s; }
.wz-step.wz-play > *:nth-child(4) { animation-delay: .23s; }
.wz-step.wz-play > *:nth-child(5) { animation-delay: .29s; }
.wz-step.wz-play > *:nth-child(6) { animation-delay: .35s; }
.wz-step.wz-play > *:nth-child(7) { animation-delay: .41s; }
.wz-step.wz-play > *:nth-child(n+8) { animation-delay: .47s; }
@keyframes wzRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ----- nav ----- */
.wz-nav { display: flex; gap: 12px; margin-top: 26px; }
.wz-nav .wz-back { flex: 0 0 auto; }
.wz-nav .wz-next { flex: 1; position: relative; overflow: hidden; }
.wz-nav [hidden] { display: none; }
.wz-next span { position: relative; z-index: 1; }
/* shimmer sweep across the primary button */
.wz-next::after { content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; z-index: 0;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, #fff 30%, transparent), transparent); transform: skewX(-18deg); }
.wz-next.is-ready::after { animation: wzSweep 2.2s ease-in-out infinite; }
@keyframes wzSweep { 0% { left: -60%; } 55%, 100% { left: 160%; } }
/* when the step is valid, the button breathes to invite the click */
.wz-next.is-ready { animation: wzReady 1.9s ease-in-out infinite; }
@keyframes wzReady {
  0%, 100% { box-shadow: 0 10px 30px var(--glow), 0 0 0 0 color-mix(in srgb, var(--accent) 36%, transparent); }
  50%      { box-shadow: 0 10px 30px var(--glow), 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); }
}
.wz-hint { margin-top: 12px; text-align: center; font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .04em; color: color-mix(in srgb, var(--text-dim) 75%, transparent); }
.wz-hint kbd { font-family: inherit; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--text-dim); }

/* ----- identity chip (signed-in) ----- */
.wz-identity { display: grid; gap: 6px; padding: 17px 19px; margin-bottom: 24px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface-2)), var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border)); border-radius: 15px;
  animation: wzRise .5s cubic-bezier(.2,.7,.2,1) both; }
.wz-identity[hidden] { display: none; }
.wz-identity::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 120px;
  background: radial-gradient(120px 80px at 100% 0, var(--glow), transparent 70%); opacity: .5; pointer-events: none; }
.wz-chip-tag { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
.wz-chip-body { display: grid; gap: 3px; }
.wz-chip-name { font-family: "Sora"; font-weight: 700; font-size: 1.08rem; color: var(--text); }
.wz-chip-line, .wz-chip-acad { font-family: "Space Grotesk"; font-size: 13px; color: var(--text-dim); }
.wz-chip-edit { position: absolute; top: 15px; right: 15px; cursor: pointer; z-index: 1;
  font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  background: color-mix(in srgb, var(--surface) 60%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 100px; padding: 6px 14px; transition: background .2s, border-color .2s, transform .2s; }
.wz-chip-edit:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); transform: translateY(-1px); }

/* ----- review ----- */
.wz-review-list { display: grid; gap: 1px; margin-bottom: 24px; background: var(--border); border: 1px solid var(--border); border-radius: 15px; overflow: hidden; }
.wz-review-list:empty { display: none; }
.wz-rev-row { display: grid; grid-template-columns: 190px 1fr; gap: 14px; padding: 13px 17px; background: var(--surface-2);
  opacity: 0; animation: wzRise .42s cubic-bezier(.2,.7,.2,1) forwards; }
.wz-rev-row:nth-child(1){animation-delay:.04s}.wz-rev-row:nth-child(2){animation-delay:.08s}.wz-rev-row:nth-child(3){animation-delay:.12s}
.wz-rev-row:nth-child(4){animation-delay:.16s}.wz-rev-row:nth-child(5){animation-delay:.2s}.wz-rev-row:nth-child(6){animation-delay:.24s}
.wz-rev-row:nth-child(7){animation-delay:.28s}.wz-rev-row:nth-child(n+8){animation-delay:.32s}
.wz-rev-row:hover { background: color-mix(in srgb, var(--accent) 7%, var(--surface-2)); }
.wz-rev-k { font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.wz-rev-v { font-family: "Space Grotesk"; font-size: 14px; color: var(--text); word-break: break-word; }

/* ----- enrich the shared success state with a radiating pulse ----- */
.form-success .success-mark { position: relative; }
.form-success .success-mark::before { content: ""; position: absolute; top: 0; left: 50%; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); animation: wzBurst 1.6s ease-out .2s 2; }
@keyframes wzBurst { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .wz-step.wz-play, .wz-step.wz-play > *, .wz-identity, .wz-rev-row, .wz-momentum { animation: none !important; opacity: 1 !important; transform: none !important; }
  .wz-next.is-ready, .wz-next.is-ready::after, .wz-seg.is-active .wz-dot::after, .form-success .success-mark::before { animation: none !important; }
  .wz-fill { transition: none; }
}
@media (max-width: 560px) {
  .wz-seg-label { display: none; }
  .wz-rev-row { grid-template-columns: 1fr; gap: 3px; }
  .wz-head-no { width: 38px; height: 38px; font-size: 15px; }
}

/* ----- reassuring "promise strip" that replaces the old terminal intro ----- */
.wz-promise { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 16px 24px; border-bottom: 1px dashed var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent); }
.wz-promise-item { display: inline-flex; align-items: center; gap: 9px; font-family: "Space Grotesk"; font-size: 13px; color: var(--text-dim);
  opacity: 0; animation: wzRise .5s cubic-bezier(.2,.7,.2,1) forwards; }
.wz-promise-item:nth-child(1) { animation-delay: .06s; }
.wz-promise-item:nth-child(2) { animation-delay: .16s; }
.wz-promise-item:nth-child(3) { animation-delay: .26s; }
.wz-promise-item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px var(--glow); flex: 0 0 auto; }
.wz-promise-item b { color: var(--text); font-weight: 600; }
.req-head { animation: reqRise .55s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .wz-promise-item { animation: none; opacity: 1; } .req-head { animation: none; } }

/* ---------- Request page (request.html) ---------- */
.req-body { min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(60% 50% at 50% -5%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--bg); }
.req-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(20px, 5vw, 56px); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.req-nav-links { display: flex; align-items: center; gap: 8px; }
.req-nav-links a { font-size: 14px; color: var(--text-dim); padding: 8px 13px; border-radius: 100px; transition: color .25s, background .25s, border-color .25s; }
.req-nav-links a:hover { color: var(--text); background: var(--surface); }
.req-back { border: 1px solid var(--border); }
.req-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: clamp(36px, 6vh, 72px) clamp(20px, 5vw, 40px) 56px; }
/* request page now uses the shared fixed .nav — clear its height so content isn't hidden under it */
.req-body .req-main { padding-top: clamp(96px, 6vh + 56px, 124px); }
.req-head { text-align: center; max-width: 640px; margin: 0 auto clamp(28px, 5vh, 44px); }
.req-head .section-title { margin-bottom: 14px; }
.req-console { max-width: 760px; margin: 0 auto; }
.req-auth-note { margin: 0; padding: 13px 24px; font-size: 13px; font-family: "Space Grotesk"; color: var(--text);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface-2)); border-bottom: 1px dashed var(--border); }
.req-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 22px clamp(20px, 5vw, 56px); border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }
.req-foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.req-foot-links a { color: var(--text-dim); transition: color .25s; }
.req-foot-links a:hover { color: var(--accent); }
@media (max-width: 600px) { .req-nav-links a:not(.req-back) { display: none; } }

/* ---- request page: two-column layout + life ---- */
.req-layout { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.req-layout .req-console { max-width: none; margin: 0; }
.req-rail { position: sticky; top: 104px; display: grid; gap: 14px; }
.req-rail-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; }
.req-rail-tag { display: block; font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.req-steps { list-style: none; display: grid; gap: 14px; }
.req-steps li { position: relative; padding-left: 16px; display: grid; gap: 2px; }
.req-steps li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.req-steps b { font-family: "Sora"; font-weight: 600; font-size: .95rem; color: var(--text); }
.req-steps span { font-size: .84rem; color: var(--text-dim); line-height: 1.5; }
.req-rail-assure { display: flex; gap: 12px; align-items: flex-start; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.req-assure-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); animation: reqPulse 2s infinite; }
@keyframes reqPulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 8%, transparent); } }
.req-rail-assure p { font-size: .9rem; color: var(--text-dim); line-height: 1.55; margin: 0; }
.req-rail-assure b { color: var(--text); }
.req-rail-contact { display: grid; gap: 10px; }
.req-rail-contact a { font-family: "Space Grotesk"; font-weight: 600; font-size: .92rem; color: var(--accent); transition: transform .2s, color .2s; }
.req-rail-contact a:hover { color: var(--accent-2); transform: translateX(3px); }

/* animated scan line across the console title bar */
.console-bar { position: relative; overflow: hidden; }
.console-scan { position: absolute; top: 0; left: -40%; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--accent) 22%, transparent), transparent); animation: consoleScan 4.5s linear infinite; }
@keyframes consoleScan { 0% { transform: translateX(0); } 100% { transform: translateX(360%); } }

/* gentle reveal on load */
.req-console, .req-rail { animation: reqRise .6s cubic-bezier(.2,.7,.2,1) both; }
.req-rail { animation-delay: .08s; }
@keyframes reqRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 920px) {
  .req-layout { grid-template-columns: 1fr; max-width: 760px; }
  .req-rail { position: static; order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .console-scan { display: none; }
  .req-console, .req-rail { animation: none; }
}

/* consultation panel */
.consult-panel { position: sticky; top: 96px; }
.consult-body { padding: 26px clamp(18px, 3vw, 28px) 28px; }
.consult-body h3 { font-size: 1.6rem; line-height: 1.15; margin-bottom: 12px; }
.consult-sub { color: var(--text-dim); font-size: .95rem; margin-bottom: 22px; }
.consult-list { list-style: none; display: grid; gap: 14px; margin-bottom: 24px; }
.consult-list li { display: grid; gap: 2px; padding-left: 22px; position: relative; }
.consult-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.consult-list b { font-family: "Sora"; font-size: .98rem; font-weight: 600; }
.consult-list span { font-size: .86rem; color: var(--text-dim); }
.consult-contact { display: grid; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--border);
  font-family: "JetBrains Mono"; font-size: 13px; }
.consult-contact a { color: var(--text-dim); transition: color .25s; }
.consult-contact a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px clamp(20px, 5vw, 64px) 28px; background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1240px; margin: 0 auto 40px; }
.footer-brand p { color: var(--text-dim); margin-top: 16px; max-width: 320px; font-size: .95rem; }
.footer-col h4 { font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: var(--text); font-size: .95rem; transition: color .25s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; max-width: 1240px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--border); font-family: "JetBrains Mono"; font-size: 12px; color: var(--text-dim); }
.footer-legal a { color: var(--text-dim); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Cinematic film (pinned title sequence) ----------
   Height = scrub distance. Sized so the timeline's read-holds (the plateaus
   where a title card sits fully visible between dissolves) get real scroll
   room without speeding up the transitions themselves. */
.film { position: relative; height: 480vh; }
.film-stage { position: relative; height: 100vh; width: 100%; overflow: hidden; display: grid; place-items: center; }
/* Optional hero background (drop a still at images/hero-bg.jpg or swap to a <video>; stays dark under the text) */
.film-bg { position: absolute; inset: 0; z-index: 0; background-image: var(--hero-bg, none);
  background-size: cover; background-position: center; will-change: transform; }
.film-bg::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 100% at 50% 42%, rgba(0,0,0,.28), color-mix(in srgb, var(--bg) 70%, transparent) 100%),
    linear-gradient(0deg, var(--bg), transparent 26%); }
.film-bg video, .film-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Fullscreen hero video: fills the entire first screen edge to edge (letterbox
   bars removed). Brighter than before but still sitting under the text. */
.film-bg-video { opacity: .45; }
[data-hero="image"] .film-bg-video { display: none; }
[data-hero="video"] .film-bg-img { display: none; }

/* Hero background toggle (preview chooser, bottom-left) */
.hero-toggle { position: fixed; left: 22px; bottom: 22px; z-index: 900; display: flex; align-items: center; gap: 9px;
  cursor: pointer; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  padding: 11px 16px; border-radius: 100px; font-family: "JetBrains Mono"; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; box-shadow: 0 10px 40px rgba(0,0,0,.35); backdrop-filter: blur(8px); transition: transform .25s; }
.hero-toggle:hover { transform: translateY(-2px); }
.hero-toggle-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
@media (max-width: 600px) { .hero-toggle { left: 14px; bottom: 14px; padding: 9px 12px; font-size: 11px; } }
.beat { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; padding: 0 6vw; z-index: 2; }
.beat-line { font-family: "JetBrains Mono"; letter-spacing: .32em; text-transform: uppercase; font-size: clamp(1rem, 2.4vw, 1.55rem); color: var(--text); }
.beat-giant { font-family: "Sora"; font-weight: 800; letter-spacing: -.035em; line-height: .9; font-size: clamp(3.2rem, 15vw, 12.5rem); }
.beat-giant .ink { color: var(--text); }
.beat-giant .hot { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.beat-mid { font-family: "Sora"; font-weight: 700; line-height: 1.12; font-size: clamp(1.5rem, 5vw, 3.2rem); max-width: 18ch; color: var(--text); text-transform: uppercase; }
/* the emphasis carries the full crimson→amber theme gradient, same as the giant title cards */
.beat-mid em { font-style: normal; background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.blurable { filter: blur(var(--b, 0px)); will-change: filter, transform; }

.beat-final { row-gap: 22px; }
.film-headline { font-family: "Sora"; font-weight: 800; font-size: clamp(2.4rem, 7vw, 5.2rem); line-height: 1.02; letter-spacing: -.03em; max-width: 16ch; }
.film-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-dim); max-width: 600px; }
.beat-final .hero-actions { margin: 6px 0 4px; justify-content: center; }
.beat-final .hero-stats { justify-content: center; }

.film-aura { position: absolute; width: 70vmin; height: 70vmin; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, var(--glow), transparent 62%); filter: blur(22px); }
.film-sweep { position: absolute; top: -12%; bottom: -12%; left: 35%; width: 30%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--accent-2) 78%, transparent), transparent); filter: blur(28px); mix-blend-mode: screen; }
.film-vignette { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 50%, transparent 42%, rgba(0,0,0,.5) 100%); }
.film-grain { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: radial-gradient(var(--text) .5px, transparent .5px); background-size: 3px 3px; }
.film .scroll-hint { z-index: 7; } /* rests ON the bottom letterbox bar */

/* ---------- Anamorphic treatment: letterbox bars + lens flare ----------
   The whole title sequence plays inside cinema bars; they retract when the
   final frame lands. One horizontal flare streak sweeps on each beat change.
   Deliberately the ONLY chrome — the cinematic feel comes from restraint. */
.film-bars { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.film-bars i { position: absolute; left: 0; right: 0; height: 9vh; background: #000;
  box-shadow: 0 0 30px rgba(0, 0, 0, .8); }
.film-bars .bar-top { top: 0; transform-origin: center top; }
.film-bars .bar-bot { bottom: 0; transform-origin: center bottom; }
.film-flare { position: absolute; top: 50%; left: -30%; width: 60%; height: 2px; z-index: 1;
  pointer-events: none; opacity: 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 85%, #fff), transparent);
  box-shadow: 0 0 26px 5px var(--glow), 0 0 80px 20px color-mix(in srgb, var(--glow) 55%, transparent);
  filter: blur(.4px); }

/* ---------- Beat dressing: spark glint + power underline ---------- */
.beat-spark { position: relative; width: 12px; height: 12px; margin-bottom: 30px; display: grid; place-items: center; }
.beat-spark::after { content: ""; position: absolute; height: 1px; width: 120px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 80%, #fff), transparent); }
.beat-spark i { width: 8px; height: 8px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle, #fff, var(--accent) 45%, transparent 78%);
  box-shadow: 0 0 20px 5px var(--glow); animation: sparkPulse 1.8s ease-in-out infinite; }
@keyframes sparkPulse { 50% { transform: scale(1.45); opacity: .75; } }
.beat-underline { width: min(46vw, 520px); height: 4px; margin-top: clamp(18px, 3vh, 30px); border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 24px var(--glow);
  transform: scaleX(0); transform-origin: left center; }

/* ---------- Final frame: orbit rings, live gradient headline, beacon CTA ---------- */
.final-orbit { position: absolute; inset: 0; margin: auto; width: min(86vmin, 740px); height: min(86vmin, 740px);
  border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 26%, transparent);
  z-index: -1; animation: orbitSpin 70s linear infinite; }
.final-orbit::before { content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.final-orbit-2 { width: min(62vmin, 520px); height: min(62vmin, 520px);
  border-color: color-mix(in srgb, var(--text) 13%, transparent);
  animation-duration: 55s; animation-direction: reverse; }
.final-orbit-2::before { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); width: 6px; height: 6px; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.grad-live { background: linear-gradient(110deg, var(--accent), var(--accent-2) 50%, var(--accent));
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradPan 7s ease-in-out infinite; }
@keyframes gradPan { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.btn-beacon::after { content: ""; position: absolute; inset: -5px; border-radius: inherit;
  border: 1px solid var(--accent); opacity: 0; animation: beacon 2.6s ease-out infinite; pointer-events: none; }
@keyframes beacon { 0% { transform: scale(.94); opacity: .6; } 70% { transform: scale(1.12); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Hero board, richer ---------- */
.hero-board { position: relative; }
.hero-board::before { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent); opacity: .85; }
.stat-ic { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px;
  filter: drop-shadow(0 0 6px var(--glow)); }
.hero-board .hero-stats div { transition: transform .25s; }
.hero-board .hero-stats div:hover { transform: translateY(-3px); }
.hero-board .hero-stats b { background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 58%, var(--accent-2)));
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
/* When GSAP drives reveals, it controls inline styles directly — kill the CSS transition so scrubbing stays 1:1 with scroll */
.gsap-on [data-reveal] { transition: none; }

/* ---------- Lightweight layout (no GSAP: mobile / reduced-motion) ----------
   The film + forge sections are sized tall (500vh / 300vh) purely so the pinned
   scrub has room. Without GSAP the pin never runs, so collapse them to a normal
   one-screen section that rests on the final frame. The reel collapses via
   .reel.no-anim (added in JS). This also fixes reduced-motion desktop, which
   previously left a multi-screen empty gap. */
html:not(.gsap-on) .film { height: auto; }
html:not(.gsap-on) .film-stage { height: auto; min-height: 100vh; min-height: 100svh; }
html:not(.gsap-on) .forge { height: auto; }
html:not(.gsap-on) .forge-stage { height: auto; min-height: 100vh; }
html:not(.gsap-on) .film-sweep { display: none; }
html:not(.gsap-on) .film-aura { opacity: .5; }
/* the timeline never runs without GSAP, so drop the chrome it would have driven */
html:not(.gsap-on) .film-bars, html:not(.gsap-on) .film-flare { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
  .manifest-wrap { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .manifest-rail { position: static; }
  .station { grid-template-columns: 58px 1fr; column-gap: 18px; }
  .station-node { grid-column: 1; }
  .station[data-side="left"] .station-card,
  .station[data-side="right"] .station-card { grid-column: 2; justify-self: start; text-align: left; max-width: none; }
  .station[data-side="left"] .station-checks { align-items: flex-start; }
  .transmit-layout { grid-template-columns: 1fr; }
  .consult-panel { position: static; order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta, .nav-dash { display: none; }
  .nav-actions { margin-left: auto; margin-right: 4px; } /* keep the WhatsApp button hugging the burger */
  .nav-wa { width: 40px; height: 40px; padding: 0; border-radius: 50%; justify-content: center; }
  .nav-wa span { display: none; }
  .nav-burger { display: flex; }
  /* compact auth chip on mobile: avatar only, login stays a small button */
  .nav-user-name, .nav-user-caret { display: none; }
  .nav-user-btn { padding: 4px; }
  .nav-login { padding: 8px 14px; }
  .nav-links.mobile-open { display: flex; position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 4px;
    background: var(--bg); padding: 20px clamp(20px,5vw,64px); border-bottom: 1px solid var(--border); }
  .nav-links.mobile-open a { font-size: 17px; padding: 12px 14px; }
  .domains-grid { grid-template-columns: 1fr; }
  .form-row, .radio-group { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .forge-hud { left: 16px; right: 16px; max-width: none; }
  .forge { height: 260vh; }
  /* Mobile perf: keep the cinematic motion (scale/fade/slide) but drop the
     GPU-heavy animated blur — filter: blur() is the most expensive effect on
     phones and the main cause of jank in the scroll-scrubbed title sequence. */
  .blurable { filter: none !important; will-change: transform; }
  /* Trim the biggest always-composited blurs so scrolling stays smooth. */
  .spanel-glow { filter: blur(46px); opacity: .22; will-change: auto; }
  .film-aura { filter: blur(14px); }
  .marquee { backdrop-filter: none; }
  .reel-media, .film-bg { will-change: auto; }
  /* Freeze the big background glows: a 60vw blurred circle animating every
     frame is a constant compositing cost on phones. Static looks the same. */
  .world-glow { animation: none !important; filter: blur(36px); will-change: auto; }
  /* Slimmer letterbox bars on phones — 9vh each would crowd the short viewport */
  .film-bars i { height: 6vh; }
  /* Glass surfaces: backdrop-filter re-blurs whatever moves behind it on every
     scrolled frame — the single biggest remaining GPU cost on phones. Swap each
     one for a slightly more opaque flat fill; the look barely changes and
     scrolling stops stuttering. */
  .nav.scrolled { backdrop-filter: none; background: color-mix(in srgb, var(--bg) 93%, transparent); }
  .hero-board { backdrop-filter: none; background: color-mix(in srgb, var(--surface) 82%, transparent); }
  .reel-arrow { backdrop-filter: none; background: color-mix(in srgb, var(--surface) 92%, transparent); }
  .scard { backdrop-filter: none; background: color-mix(in srgb, var(--surface) 86%, transparent); }
  .spanel-bgtoggle, .forge-hud, .req-nav { backdrop-filter: none; }
  /* Keep the film grain texture, drop the blend: overlay-compositing a
     fullscreen dot layer into the playing video costs a full-frame pass. */
  .film-grain { mix-blend-mode: normal; opacity: .04; }
}
/* Small phones: the full ribbon (brand + WhatsApp + Log in/profile + burger)
   needs ~416px, so on narrow screens it would overlap. Compact the brand,
   gaps and padding so every control fits without touching down to ~340px. */
@media (max-width: 460px) {
  .nav { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .brand { font-size: 16px; gap: 7px; }
  .nav-actions { gap: 8px; }
  .nav-login { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   Auth pages — "AURA Access Terminal"
   ========================================================= */
.auth-body { height: 100vh; height: 100dvh; position: relative; overflow: hidden; background: var(--bg); }

/* --- living backdrop (behind everything) --- */
.auth-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.auth-bg .blob { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .5; }
.auth-bg .b1 { width: 52vw; height: 52vw; max-width: 620px; max-height: 620px; left: -10vw; top: -12vw;
  background: radial-gradient(circle, var(--glow), transparent 62%); will-change: transform; }
.auth-bg .b2 { width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; right: -8vw; bottom: -14vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 60%);
  opacity: .35; will-change: transform; }
/* motion (float + mouse parallax) is driven by js/auth.js so the layers can react to the cursor */
.auth-bg .grid { position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 58px 58px; mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 30%, transparent 100%); }
.auth-traces { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-traces path { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 1.4;
  stroke-dasharray: 14 320; filter: drop-shadow(0 0 5px var(--glow)); animation: traceFlow 6s linear infinite; }
.auth-traces path:nth-child(2) { animation-delay: 1.6s; stroke: color-mix(in srgb, var(--accent-2) 55%, transparent); }
.auth-traces path:nth-child(3) { animation-delay: 3.1s; }
.auth-traces .track { stroke: var(--border); stroke-dasharray: none; filter: none; animation: none; opacity: .5; }
@keyframes traceFlow { to { stroke-dashoffset: -334; } }

/* --- two-column shell --- */
.auth-shell { position: relative; z-index: 1; height: 100vh; height: 100dvh; display: grid; grid-template-columns: 1.08fr 1fr; }

/* --- left stage (console / brand) --- */
.auth-stage { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 0; overflow: hidden;
  padding: clamp(24px, 3.6vh, 60px) clamp(34px, 5vw, 70px); border-right: 1px solid var(--border);
  background: linear-gradient(160deg, color-mix(in srgb, var(--bg-2) 65%, transparent), transparent 70%); }
.auth-stage .brand { font-size: 22px; }
.stage-mid { max-width: 460px; }
.stage-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: "JetBrains Mono"; font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 14px; margin-bottom: 22px; }
.stage-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
.auth-headline { font-family: "Sora"; font-weight: 800; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 16px; }
.auth-headline .grad { background: linear-gradient(110deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-sub { color: var(--text-dim); font-size: 1.05rem; max-width: 400px; margin-bottom: 26px; }

/* sign-in perks (what you get with an account) */
.auth-perks { display: grid; gap: 20px; max-width: 420px; margin: 6px auto 0; }
.auth-perk { display: flex; gap: 14px; align-items: flex-start; }
.auth-perk-ic { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--accent); }
.auth-perk-ic svg { width: 18px; height: 18px; }
.auth-perk-copy { display: grid; gap: 3px; }
.auth-perk-copy b { font-family: "Sora"; font-weight: 600; font-size: .95rem; color: var(--text); }
.auth-perk-copy i { font-style: normal; font-size: .84rem; color: var(--text-dim); line-height: 1.5; }

.stage-foot { font-family: "JetBrains Mono"; font-size: 12px; letter-spacing: .08em; color: var(--text); }
.stage-foot span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-top: 4px; }

/* --- right card --- */
/* `margin:auto` on the card centres it but, unlike align-items:center, lets a
   tall card (sign-up now asks for phone + college too) scroll instead of
   having its top clipped off. */
.auth-main { display: flex; justify-content: center; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(18px, 3vh, 56px) clamp(20px, 5vw, 56px); position: relative; }
.auth-back { position: absolute; top: 22px; right: 24px; font-family: "JetBrains Mono"; font-size: 12px; letter-spacing: .08em;
  color: var(--text-dim); display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.auth-back:hover { color: var(--accent); }
.auth-card { width: 100%; max-width: 440px; margin: auto; flex: 0 0 auto; background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border); border-radius: 24px; padding: clamp(26px, 4vw, 38px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent); position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; }
.auth-card > h1 { font-family: "Sora"; font-weight: 800; font-size: 1.65rem; margin-bottom: 6px; }
.auth-card > .auth-lead { color: var(--text-dim); font-size: .95rem; margin-bottom: 24px; }

.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 100px; margin-bottom: 24px; }
.auth-tabs::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: 100px; box-shadow: 0 6px 18px var(--glow);
  transition: transform .35s cubic-bezier(.34,1.3,.5,1); }
.auth-card[data-mode="signup"] .auth-tabs::before { transform: translateX(100%); }
.auth-tab { position: relative; z-index: 1; font-family: "Space Grotesk"; font-weight: 600; font-size: 14px; color: var(--text-dim);
  background: transparent; border: none; padding: 11px; border-radius: 100px; cursor: pointer; transition: color .3s; }
.auth-tab.active { color: var(--accent-ink); }

/* provider buttons with logos */
.auth-providers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prov { display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
  border-radius: 12px; font-family: "Space Grotesk"; font-weight: 600; font-size: 14px; padding: 12px 14px;
  border: 1px solid var(--border); transition: transform .2s, box-shadow .2s, border-color .2s; }
.prov:hover { transform: translateY(-2px); }
.prov:disabled { opacity: .55; cursor: progress; transform: none; }
.prov svg { width: 18px; height: 18px; flex-shrink: 0; }
.prov-google { background: #fff; color: #1f1f1f; border-color: transparent; }
.prov-google:hover { box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.prov-github { background: #18181b; color: #fff; }
.prov-github:hover { border-color: var(--accent); box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.prov-github svg { fill: #fff; }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--text-dim);
  font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.auth-field { position: relative; margin-bottom: 14px; }
.auth-field .fi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px;
  color: var(--text-dim); pointer-events: none; }
.auth-card input, .auth-card select { width: 100%; font-family: "Space Grotesk"; font-size: 15px; color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 75%, transparent); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 15px 13px 44px; transition: border-color .25s, box-shadow .25s, background .25s; }
.auth-card input::placeholder { color: color-mix(in srgb, var(--text-dim) 75%, transparent); }
.auth-card input:focus, .auth-card select:focus { outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
/* native select: kill the OS chrome, draw our own caret. The explicit
   line-height is load-bearing — left at `normal` the browser sizes each select
   off its own content and the department/year pair ends up 3px apart. */
.auth-card select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px; line-height: 1.25;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; color: var(--text); }
/* nothing chosen yet: read as a placeholder, like the inputs beside it */
.auth-card select:has(option[value=""]:checked) { color: color-mix(in srgb, var(--text-dim) 75%, transparent); }
.auth-card select option { background: var(--surface); color: var(--text); }

/* two fields side by side (department + year); the children keep the shared
   .auth-field margins so the mobile overrides below still apply */
.auth-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-field:focus-within .fi { color: var(--accent); }
.pw-field input { padding-right: 50px; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer;
  color: var(--text-dim); padding: 6px; display: inline-flex; transition: color .25s; }
.pw-toggle:hover { color: var(--accent); }
.pw-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pw-toggle .eye-off { display: none; }
.pw-toggle.revealed .eye { display: none; }
.pw-toggle.revealed .eye-off { display: inline; }

.auth-row { display: flex; justify-content: flex-end; margin: -4px 0 16px; }
.auth-link { background: none; border: none; cursor: pointer; padding: 0; color: var(--accent);
  font-family: "Space Grotesk"; font-size: 13px; transition: opacity .2s; }
.auth-link:hover { opacity: .8; }

.auth-msg { display: none; align-items: flex-start; gap: 10px; padding: 12px 15px; border-radius: 12px; margin-bottom: 16px;
  font-size: .89rem; line-height: 1.45; border: 1px solid transparent; }
.auth-msg.show { display: flex; }
.auth-msg.error { color: #ffd7dd; background: color-mix(in srgb, #ff2d4d 16%, var(--surface)); border-color: color-mix(in srgb, #ff2d4d 40%, transparent); }
.auth-msg.success { color: #d7ffe6; background: color-mix(in srgb, #2ecc71 14%, var(--surface)); border-color: color-mix(in srgb, #2ecc71 38%, transparent); }
.auth-msg.info { color: var(--text); background: var(--surface-2); border-color: var(--border); }

.auth-submit { width: 100%; margin-top: 2px; }
.auth-submit[disabled] { opacity: .6; cursor: progress; }
.auth-foot { margin-top: 20px; text-align: center; font-size: .9rem; color: var(--text-dim); }
.auth-terms { margin-top: 16px; font-size: 11px; color: color-mix(in srgb, var(--text-dim) 80%, transparent); text-align: center; line-height: 1.5; }
.auth-card[data-mode="login"] .signup-only { display: none; }
/* "complete your profile" gate: signed in already, we only need the missing
   contact + academic details, so every credential control is put away. */
.auth-card[data-mode="complete"] .cred-only { display: none; }

/* dashboard placeholder */
.dash-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; }
.dash-card { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: clamp(28px, 5vw, 46px); text-align: center; position: relative; z-index: 1; }
.dash-badge { display: inline-flex; align-items: center; gap: 8px; font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); border: 1px solid var(--border); border-radius: 100px; padding: 7px 14px; margin-bottom: 22px; }
.dash-avatar { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  font-family: "Sora"; font-weight: 800; font-size: 1.9rem; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 30px var(--glow); }
.dash-card h1 { font-family: "Sora"; font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 8px; }
.dash-email { color: var(--text-dim); font-family: "JetBrains Mono"; font-size: .9rem; margin-bottom: 18px; word-break: break-all; }
.dash-verify { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; padding: 6px 13px; border-radius: 100px; margin-bottom: 26px; }
.dash-verify.ok { color: #aef0c6; background: color-mix(in srgb, #2ecc71 14%, var(--surface)); }
.dash-verify.no { color: #9aeee2; background: color-mix(in srgb, #1fb3a6 18%, var(--surface)); }
.dash-note { color: var(--text-dim); font-size: .96rem; line-height: 1.6; margin: 0 auto 28px; max-width: 420px; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-stage { display: none; }
  .auth-main { height: 100%; }
}
@media (max-width: 420px) {
  .auth-providers { grid-template-columns: 1fr; }
  .auth-duo { grid-template-columns: 1fr; }
}

/* keep the login screen to a single viewport (no scroll) on short screens */
@media (max-height: 860px) {
  .auth-stage { gap: 18px; }
  .stage-eyebrow { margin-bottom: 14px; padding: 6px 12px; }
  .auth-headline { margin-bottom: 10px; }
  .auth-sub { margin-bottom: 14px; }
  .auth-card { padding: 22px 26px; border-radius: 20px; }
  .auth-card > .auth-lead { margin-bottom: 16px; }
  .auth-tabs { margin-bottom: 16px; }
  .auth-tab { padding: 9px; }
  .prov { padding: 10px 12px; }
  .auth-divider { margin: 13px 0; }
  .auth-field { margin-bottom: 10px; }
  .auth-card input, .auth-card select { padding-top: 11px; padding-bottom: 11px; }
  .auth-row { margin: -2px 0 12px; }
  .auth-foot { margin-top: 13px; }
  .auth-terms { margin-top: 9px; }
}
@media (max-height: 700px) {
  .auth-sub { display: none; }
  .auth-headline { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
  .auth-perks { gap: 12px; }
  .auth-perk-copy i { display: none; }
  .auth-card > h1 { font-size: 1.4rem; }
  .auth-card > .auth-lead { margin-bottom: 12px; }
  .auth-msg { padding: 9px 12px; margin-bottom: 10px; }
  .auth-card input, .auth-card select { font-size: 14px; padding-top: 10px; padding-bottom: 10px; }
  .auth-terms { font-size: 10px; margin-top: 7px; }
}
@media (max-height: 580px) {
  .stage-eyebrow { display: none; }
  .auth-perks { display: none; }
  .auth-card { padding: 16px 20px; }
  .auth-card > .auth-lead { display: none; }
  .prov { padding: 8px 10px; font-size: 13px; }
  .auth-divider { margin: 10px 0; }
  .auth-field { margin-bottom: 8px; }
  .auth-foot { margin-top: 10px; }
}

/* =========================================================
   USER DASHBOARD  (app shell + overview + tracker + account)
   Redesigned: calmer than the landing page, product-grade,
   functional-first. All JS hooks (ids/classes) preserved.
   ========================================================= */
.dash-body { min-height: 100vh; }
/* the [hidden] attribute must beat class-level display:flex/grid below */
.dash-body [hidden] { display: none !important; }

/* ---------- dashboard legibility lift (scoped to dashboard pages only) ----------
   Lifts surfaces off the background so cards read as panels, strengthens borders,
   and brightens text. Theme-aware so the Settings theme switcher still works. */
/* html[...] beats the `:root .dash-body` default below (equal-specificity
   source-order bug meant the amber/brown `:root` block was overriding crimson) */
html[data-theme="crimson"] .dash-body {
  --surface:   #1f1014;
  --surface-2: #2a151b;
  --border:    rgba(255, 120, 140, 0.18);
  --text:      #fbf1f1;
  --text-dim:  #d3b6ba;
}
:root .dash-body, [data-theme="amber"] .dash-body {
  --surface:   #241d15;
  --surface-2: #2e2519;
  --border:    rgba(255, 255, 255, 0.16);
  --text:      #fbf3e9;
  --text-dim:  #cdbb9d;
}
[data-theme="blue"] .dash-body {
  --surface:   #15213a;
  --surface-2: #1b2a49;
  --border:    rgba(255, 255, 255, 0.16);
  --text:      #eef4ff;
  --text-dim:  #b4c6e4;
}
/* depth: a faint top highlight + soft drop shadow so panels feel raised */
.dash-body .dash-panel,
.dash-body .stat-card,
.dash-body .proj-card,
.dash-body .pf-group,
.dash-body .dash-empty {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 40px -28px rgba(0,0,0,.9);
}
/* dashboard: push the ambient glow into the corners and calm it right down */
.dash-body .world { background:
  radial-gradient(52% 42% at 0% 0%, color-mix(in srgb, var(--accent) 8%, var(--bg-2)), transparent 55%),
  radial-gradient(52% 42% at 100% 100%, color-mix(in srgb, var(--accent-2) 6%, var(--bg-2)), transparent 55%),
  linear-gradient(180deg, var(--bg), var(--bg-2)); }
.dash-body .world-glow { left: -8%; top: -10%; transform: none; width: 44vw; height: 44vw;
  opacity: .16; filter: blur(70px); animation: none; }
.dash-body .world-glow-2 { left: auto; top: auto; right: -8%; bottom: -10%; transform: none;
  width: 40vw; height: 40vw; opacity: .12; filter: blur(70px); animation: none; mix-blend-mode: normal; }

/* shared motion: views fade-rise in when shown */
@keyframes dashRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dash-view:not([hidden]) { animation: dashRise .4s ease both; }

/* boot splash */
.dash-boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--text-dim); position: relative; z-index: 1; }
.dash-boot .boot-mark { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linejoin: round; filter: drop-shadow(0 0 10px var(--glow));
  animation: bootPulse 1.4s ease-in-out infinite; }
@keyframes bootPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.dash-boot p { font-family: "JetBrains Mono"; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }

/* ---------- layout ---------- */
.dash-app { display: grid; grid-template-columns: 274px 1fr; min-height: 100vh; position: relative; z-index: 1; }
.dash-topbar { display: none; }

/* ---------- sidebar (heavy restyle) ---------- */
.dash-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
  padding: 24px 16px 20px; border-right: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 220px),
    color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); }
.dash-side-brand { padding: 4px 12px 18px; font-size: 18px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dash-link { display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: 13px; color: var(--text-dim);
  font-size: 14.5px; font-weight: 500; transition: color .22s, background .22s, transform .22s; position: relative; overflow: hidden; }
.dash-link svg { width: 19px; height: 19px; flex: none; transition: transform .22s; }
.dash-link:hover { color: var(--text); background: var(--surface); }
.dash-link:hover svg { transform: scale(1.08); }
.dash-link.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.dash-link.active::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--glow); }
.dash-link-count { margin-left: auto; font-style: normal; font-family: "JetBrains Mono"; font-size: 11px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text-dim); border-radius: 100px; padding: 1px 8px; min-width: 22px; text-align: center; }
.dash-link-count.hot { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-color: transparent; }

.dash-side-foot { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }

/* profile completion meter (sidebar) */
.prof-meter { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); transition: border-color .22s, transform .22s; }
.prof-meter:hover { border-color: var(--accent); transform: translateY(-2px); }
.prof-ring { --pct: 0; position: relative; width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--surface-2) 0); display: grid; place-items: center;
  transition: background .6s ease; }
.prof-ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.prof-ring-val { position: relative; z-index: 1; font-family: "JetBrains Mono"; font-size: 11px; font-weight: 500; color: var(--text); }
.prof-meter-meta { display: flex; flex-direction: column; min-width: 0; }
.prof-meter-meta strong { font-size: 13.5px; }
.prof-meter-meta em { font-style: normal; font-size: 11.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash-user { display: flex; align-items: center; gap: 11px; padding: 0 6px; }
.dash-user-meta { display: flex; flex-direction: column; min-width: 0; }
.dash-user-meta strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user-meta span { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-avatar.sm { width: 40px; height: 40px; font-size: 1.05rem; margin: 0; box-shadow: 0 0 16px var(--glow);
  display: grid; place-items: center; border-radius: 50%; font-family: "Sora"; font-weight: 800; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.dash-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; }

/* ---------- main ---------- */
.dash-main { padding: clamp(18px, 3vw, 34px) clamp(18px, 4vw, 54px) 80px; max-width: 1160px; min-width: 0; }

/* desktop utility bar */
.dash-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
  position: sticky; top: 0; z-index: 25; padding: 14px 0; background: linear-gradient(180deg, var(--bg) 72%, transparent); }
.dash-bar-title { display: flex; flex-direction: column; margin-right: auto; }
.dash-bar-eyebrow { font-family: "JetBrains Mono"; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.dash-bar-title h2 { font-family: "Sora"; font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.dash-bar-tools { display: flex; align-items: center; gap: 10px; }

.dash-search { display: flex; align-items: center; gap: 9px; padding: 0 14px; width: 230px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 100px; transition: border-color .2s, box-shadow .2s, width .2s; }
.dash-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); width: 260px; }
.dash-search svg { width: 17px; height: 17px; color: var(--text-dim); flex: none; }
.dash-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-family: "Space Grotesk"; font-size: 14px; padding: 10px 0; }
.dash-search input::placeholder { color: var(--text-dim); }
.dash-search input::-webkit-search-cancel-button { display: none; }
.dash-search-clear { background: none; border: none; color: var(--text-dim); font-size: 19px; line-height: 1; cursor: pointer; padding: 0 2px; }
.dash-search-clear:hover { color: var(--text); }

/* notification bell + dropdown */
.notif { position: relative; }
.notif-bell { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .2s, transform .2s; }
.notif-bell:hover { border-color: var(--accent); transform: translateY(-2px); }
.notif-bell svg { width: 19px; height: 19px; }
.notif-bell.ring svg { animation: bellRing .8s ease; transform-origin: top center; }
@keyframes bellRing { 0%,100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-11deg); } 60% { transform: rotate(7deg); } 80% { transform: rotate(-4deg); } }
.notif-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center;
  font-family: "JetBrains Mono"; font-size: 10.5px; font-weight: 500; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: 100px; box-shadow: 0 0 0 2px var(--bg); }
.notif-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 340px; max-width: 86vw;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 8px; box-shadow: 0 28px 60px -26px #000;
  animation: dashRise .22s ease both; }
.notif-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.notif-menu-head strong { font-family: "Sora"; font-size: 14px; }
.notif-menu-list { max-height: 340px; overflow-y: auto; }
.notif-menu-list .note { border-radius: 11px; }
.notif-menu-list .note + .note { border-top: 1px solid var(--border); }

/* ---------- headings ---------- */
.dash-head { margin-bottom: 26px; }
.dash-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.dash-eyebrow { font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.dash-head h1 { font-family: "Sora"; font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; }
.dash-lead { color: var(--text-dim); margin-top: 10px; max-width: 60ch; line-height: 1.6; }
.dash-muted { color: var(--text-dim); }
.ilink { color: var(--accent); font-weight: 600; }
.ilink.back { display: inline-block; margin-bottom: 18px; font-family: "JetBrains Mono"; font-size: 12px; letter-spacing: .08em; }

/* email verify banner */
.dash-alert { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; padding: 13px 18px; border-radius: 14px;
  background: color-mix(in srgb, #1fb3a6 14%, var(--surface)); border: 1px solid color-mix(in srgb, #1fb3a6 30%, transparent); color: #9aeee2; font-size: 14px; }
.dash-alert-btn { margin-left: auto; background: #6fe3d6; color: #06302b; border: none; border-radius: 100px; padding: 7px 16px; font-weight: 600; cursor: pointer; font-family: "Space Grotesk"; transition: transform .2s; }
.dash-alert-btn:hover { transform: translateY(-2px); }

/* ---------- overview stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 3px; transition: border-color .25s, transform .25s; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 0; transition: opacity .25s; }
.stat-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.stat-card:hover::after { opacity: 1; }
.stat-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; margin-bottom: 8px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.stat-ic svg { width: 20px; height: 20px; }
.stat-label { font-size: 12.5px; color: var(--text-dim); }
.stat-num { font-family: "Sora"; font-weight: 800; font-size: 2.1rem; line-height: 1.1; color: var(--text); }
.stat-foot { font-size: 11.5px; color: var(--text-dim); }
.stat-card.hot { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.stat-card.hot::after { opacity: 1; }
.stat-card.hot .stat-num { color: var(--accent); }

/* two-column panels */
.dash-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.dash-side-col { display: flex; flex-direction: column; gap: 16px; }
.dash-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; margin-bottom: 16px; }
.dash-side-col .dash-panel { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h2 { font-family: "Sora"; font-weight: 700; font-size: 1.08rem; }
.panel-link { font-size: 13px; color: var(--accent); font-weight: 600; transition: opacity .2s; }
.panel-link:hover { opacity: .75; }

/* overall progress ring */
.ring-panel { display: flex; flex-direction: column; }
.ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 0 4px; }
.big-ring { --pct: 0; position: relative; width: 150px; height: 150px; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--surface-2) 0); display: grid; place-items: center;
  transition: background .8s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 22px var(--glow)); }
.big-ring::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--surface); }
.big-ring-val { position: relative; z-index: 1; text-align: center; line-height: 1.1; }
.big-ring-val strong { font-family: "Sora"; font-weight: 800; font-size: 2rem; color: var(--text); }
.big-ring-val em { display: block; font-style: normal; font-family: "JetBrains Mono"; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-top: 2px; }
.ring-note { font-size: 12.5px; color: var(--text-dim); text-align: center; line-height: 1.5; }

/* profile completion card (overview) */
.prof-card { display: block; transition: border-color .25s, transform .25s; }
.prof-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.prof-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.prof-card-top strong { font-family: "Sora"; font-weight: 700; font-size: 1rem; }
.prof-card-top span { font-family: "JetBrains Mono"; font-size: 13px; color: var(--accent); }
.prof-card .track-bar { margin-bottom: 12px; }
.prof-card p { font-size: 12.5px; line-height: 1.5; }

/* recent activity */
.recent-list { display: flex; flex-direction: column; }
.recent-item { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 11px; transition: background .2s, transform .2s; }
.recent-item:hover { background: var(--surface-2); transform: translateX(3px); }
.recent-item + .recent-item { border-top: 1px solid var(--border); }
.recent-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-dim); flex: none; }
.recent-item .dot.live { background: var(--accent); box-shadow: 0 0 8px var(--glow); animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 var(--glow); } 50% { box-shadow: 0 0 0 5px transparent; } }
.recent-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.recent-body strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-body em { font-style: normal; font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* quick actions */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.quick-act { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface-2); transition: border-color .2s, transform .2s; }
.quick-act:hover { border-color: var(--accent); transform: translateY(-3px); }
.qa-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--accent) 16%, transparent); font-size: 18px; }
.quick-act strong { display: block; font-size: 14px; }
.quick-act em { font-style: normal; font-size: 12px; color: var(--text-dim); }

/* ---------- status badges ---------- */
.badge { display: inline-flex; align-items: center; font-family: "JetBrains Mono"; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; color: var(--text-dim); white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent); background: color-mix(in srgb, var(--text) 7%, transparent); }
.badge.lg { font-size: 12px; padding: 6px 14px; }
.badge.delivered { color: #aef0c6; background: color-mix(in srgb, #2ecc71 16%, var(--surface)); border-color: color-mix(in srgb, #2ecc71 34%, transparent); }
.badge.shipped, .badge.build { color: #bcd4ff; background: color-mix(in srgb, #4f8cff 16%, var(--surface)); border-color: color-mix(in srgb, #4f8cff 34%, transparent); }
.badge.quote { color: #9aeee2; background: color-mix(in srgb, #1fb3a6 18%, var(--surface)); border-color: color-mix(in srgb, #1fb3a6 38%, transparent); }
.badge.cancelled { color: #ffb4b4; background: color-mix(in srgb, #ff5a5a 14%, var(--surface)); }

/* ---------- projects toolbar ---------- */
.proj-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.proj-search { display: flex; align-items: center; gap: 9px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; transition: border-color .2s, box-shadow .2s; }
.proj-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.proj-search svg { width: 16px; height: 16px; color: var(--text-dim); flex: none; }
.proj-search input { background: none; border: none; outline: none; color: var(--text); font-family: "Space Grotesk"; font-size: 14px; padding: 9px 0; width: 150px; }
.proj-search input::-webkit-search-cancel-button { display: none; }
.proj-sort select { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 100px; padding: 9px 14px; font-family: "Space Grotesk"; font-size: 13.5px; cursor: pointer; transition: border-color .2s; }
.proj-sort select:hover { border-color: var(--accent); }

/* ---------- segmented filter ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); }
.seg-btn { border: none; background: transparent; color: var(--text-dim); font-family: "Space Grotesk"; font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 100px; cursor: pointer; transition: color .2s, background .2s; }
.seg-btn.active { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* ---------- project cards ---------- */
.proj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.proj-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, transform .25s, box-shadow .25s; overflow: hidden; }
.proj-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--accent), var(--accent-2)); transform: scaleY(0); transform-origin: top; transition: transform .3s; }
.proj-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 22px 46px -26px var(--glow); }
.proj-card:hover::before { transform: scaleY(1); }
.proj-card-top { display: flex; align-items: center; justify-content: space-between; }
.proj-card h3 { font-family: "Sora"; font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.proj-card-sub { color: var(--text-dim); font-size: 13px; line-height: 1.5; margin-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-card-foot { display: flex; justify-content: space-between; font-family: "JetBrains Mono"; font-size: 11px; color: var(--text-dim); margin-top: auto; }
.kind-tag { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--border); color: var(--text-dim); }
.kind-tag.custom { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.kind-tag.consultation { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 40%, transparent); }

/* progress bar */
.track-bar { height: 6px; border-radius: 100px; background: var(--surface-2); overflow: hidden; }
.track-bar span { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--glow); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.track-bar.lg { height: 9px; margin: 6px 0 28px; }

/* ---------- detail view ---------- */
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 6px; }
.detail-head h1 { font-family: "Sora"; font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 10px 0 6px; letter-spacing: -.02em; }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.steps { list-style: none; }
.step { display: flex; align-items: center; gap: 14px; padding: 9px 0; position: relative; color: var(--text-dim); }
.step:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 28px; bottom: -9px; width: 2px; background: var(--border); }
.step .step-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); flex: none; z-index: 1; transition: .3s; }
.step.done { color: var(--text); }
.step.done .step-dot { background: var(--accent); border-color: var(--accent); }
.step.done:not(:last-child)::before { background: var(--accent); }
.step.current { color: var(--text); font-weight: 600; }
.step.current .step-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 26%, transparent); }
.step-label { font-size: 14px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: baseline; }
.kv dt { font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.kv dd { font-size: 14px; }
.kv dd.warn { color: #9aeee2; }
.kv-note { font-family: "JetBrains Mono"; font-size: 10.5px; letter-spacing: .04em; color: var(--text-dim); }

.upd-list { display: flex; flex-direction: column; gap: 14px; }
.upd { border-left: 2px solid var(--accent); padding: 2px 0 2px 14px; }
.upd-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.upd-meta strong { font-size: 13px; }
.upd-meta span { font-family: "JetBrains Mono"; font-size: 11px; color: var(--text-dim); }
.upd p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

/* ---------- profile form ---------- */
.profile-form { max-width: 780px; }
.pf-group { border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; margin-bottom: 16px; background: var(--surface); }
.pf-group legend { font-family: "Sora"; font-weight: 700; font-size: 1rem; padding: 0 10px; }
.pf-group legend em { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--text-dim); }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.pf-field { display: flex; flex-direction: column; gap: 7px; }
.pf-field.full { grid-column: 1 / -1; }
.pf-field span { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.pf-field span em { font-style: normal; font-size: 11.5px; opacity: .8; }
.pf-field.req span::after { content: " *"; color: var(--accent); }
.pf-field input, .pf-field textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px;
  color: var(--text); font-family: "Space Grotesk"; font-size: 14.5px; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.pf-field input:focus, .pf-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.pf-field input[readonly] { color: var(--text-dim); cursor: not-allowed; opacity: .8; }
.profile-bar { display: flex; align-items: center; justify-content: flex-end; gap: 18px; position: sticky; bottom: 0;
  padding: 14px 0; background: linear-gradient(0deg, var(--bg) 70%, transparent); }
.profile-msg { font-size: 13.5px; margin-right: auto; }
.profile-msg.ok { color: #aef0c6; }
.profile-msg.err { color: #ffb4b4; }

/* ---------- empty states ---------- */
.dash-empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--border); border-radius: 20px; background: var(--surface); }
.dash-empty .empty-mark { font-size: 38px; margin-bottom: 14px; }
.dash-empty h3 { font-family: "Sora"; font-weight: 700; font-size: 1.25rem; margin-bottom: 8px; }
.dash-empty p { color: var(--text-dim); max-width: 46ch; margin: 0 auto 18px; line-height: 1.6; }

/* ---------- skeleton loaders ---------- */
@keyframes skelShimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.skel-row, .skel-card { border-radius: 14px; border: 1px solid var(--border);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%; animation: skelShimmer 1.4s linear infinite; }
.skel-row { height: 56px; margin-bottom: 10px; }
.skel-card { height: 168px; }
.proj-list .skel-card { height: 188px; }

/* burger */
.dash-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); flex-direction: column; gap: 4px; align-items: center; justify-content: center; cursor: pointer; }
.dash-burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- responsive ---------- */
/* minmax(0,1fr), not 1fr: a plain 1fr track refuses to shrink below its
   content's min-content width, so one long nowrap project title forced the
   whole panel wider than the phone screen (clipped, unreachable). minmax(0,…)
   lets the track compress and the text-overflow ellipses actually engage. */
@media (max-width: 1040px) { .dash-cols, .detail-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 880px) {
  .dash-app { grid-template-columns: minmax(0, 1fr); }
  .dash-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); }
  .dash-burger { display: flex; }
  .dash-side { position: fixed; top: 0; left: 0; width: 286px; z-index: 50; transform: translateX(-100%); transition: transform .3s ease; background: var(--bg); }
  .dash-side.open { transform: translateX(0); box-shadow: 30px 0 60px -20px rgba(0,0,0,.6); }
  .dash-side-brand { display: none; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-bar { top: 56px; }
  .dash-bar-title { display: none; }
  .dash-bar-tools { width: 100%; }
  .dash-search { flex: 1; width: auto; }
  .dash-search:focus-within { width: auto; }
  .dash-bar-cta { display: none; }
  .notif-menu { width: 300px; }
}
@media (max-width: 540px) {
  .pf-grid { grid-template-columns: 1fr; }
  .dash-main { padding: 18px 16px 64px; }
  .dash-head.row { align-items: flex-start; }
  .proj-tools { width: 100%; }
  .proj-search { flex: 1; }
  .proj-search input { width: 100%; }
  .proj-sort { flex: 1; }
  .proj-sort select { width: 100%; }
  .seg { width: 100%; justify-content: space-between; }
  /* Phone-fit cards: the 2-up stat tiles kept desktop padding and numerals,
     which read as oversized and cramped at ~165px per tile. Tighten the
     chrome, not the content. */
  .stat-grid { gap: 10px; }
  .stat-card { padding: 14px; border-radius: 15px; gap: 2px; }
  .stat-ic { width: 32px; height: 32px; border-radius: 9px; margin-bottom: 6px; }
  .stat-ic svg { width: 18px; height: 18px; }
  .stat-num { font-size: 1.65rem; }
  .stat-label { font-size: 12px; }
  .stat-foot { font-size: 11px; }
  .dash-panel { padding: 16px; border-radius: 15px; }
  .dash-head { margin-bottom: 20px; }
  .recent-item { padding: 11px 4px; }
  .big-ring { width: 128px; height: 128px; }
  .big-ring-val strong { font-size: 1.7rem; }
  .deliv-head { flex-wrap: wrap; }
  /* long unbroken values (emails, file names) must wrap, not push the layout */
  .kv dd { overflow-wrap: anywhere; }
  .kv { column-gap: 12px; }
}

/* =========================================================
   DASHBOARD — Deliverables · Support · Settings
   ========================================================= */

/* ---- deliverables & invoices ---- */
.deliv-card { margin-bottom: 16px; }
.deliv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.deliv-head h2 { font-family: "Sora"; font-weight: 700; font-size: 1.15rem; margin-top: 8px; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.file-item { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); transition: border-color .2s, transform .2s; }
.file-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.file-item.disabled { opacity: .55; cursor: default; }
.file-ic { font-size: 18px; flex: none; }
.file-name { font-size: 13.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-dl { font-family: "JetBrains Mono"; font-size: 10.5px; color: var(--accent); white-space: nowrap; }
.invoice-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.inv-label { display: block; font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2px; }
.inv-amt { font-family: "Sora"; font-weight: 800; font-size: 1.4rem; margin-right: 12px; }
.inv-note { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; max-width: 42ch; }

/* ---- support: tickets ---- */
.ticket-form .pf-field { margin-bottom: 12px; }
.ticket-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ticket-bar .profile-msg { margin-right: auto; }
.ticket { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: var(--surface-2); transition: border-color .2s; }
.ticket.open { border-color: var(--accent); }
.ticket-row { width: 100%; display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: none; border: none; cursor: pointer; color: var(--text); font-family: "Space Grotesk"; text-align: left; }
.ticket-row:hover { background: var(--surface); }
.ticket-subj { flex: 1; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-body { padding: 4px 15px 15px; }
.tmsg-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.tmsg { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; max-width: 86%; }
.tmsg.me { margin-left: auto; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.tmsg-by { font-family: "JetBrains Mono"; font-size: 10.5px; color: var(--text-dim); }
.tmsg p { font-size: 13.5px; margin-top: 3px; line-height: 1.5; }
.treply { display: flex; gap: 8px; }
.treply input { flex: 1; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; color: var(--text); font-family: "Space Grotesk"; font-size: 14px; }
.treply input:focus { outline: none; border-color: var(--accent); }
.treply .btn { padding: 10px 18px; }

/* ---- notifications ---- */
.note { width: 100%; display: flex; align-items: flex-start; gap: 11px; padding: 12px 10px; background: none; border: none; border-radius: 10px; cursor: pointer; text-align: left; color: var(--text); transition: background .2s; }
.note + .note { border-top: 1px solid var(--border); }
.note:hover { background: var(--surface-2); }
.note .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-dim); flex: none; margin-top: 5px; }
.note .dot.live { background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.note-body p { font-size: 13.5px; line-height: 1.5; }
.note-body em { font-style: normal; font-family: "JetBrains Mono"; font-size: 11px; color: var(--text-dim); }
.note.unread .note-body p { color: var(--text); font-weight: 500; }

/* ---- settings ---- */
.theme-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-family: "Space Grotesk"; font-size: 14px; cursor: pointer; transition: border-color .2s, transform .2s; }
.theme-chip:hover { transform: translateY(-2px); }
.theme-chip.active { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 26%, transparent); }
.theme-chip .sw { width: 16px; height: 16px; border-radius: 50%; }
.sw-crimson { background: linear-gradient(135deg, #ff2d4d, #ff7a8a); }
.sw-amber { background: linear-gradient(135deg, #ff7a18, #ffb347); }
.sw-blue { background: linear-gradient(135deg, #2f7bff, #46d6ff); }
.sw-teal { background: linear-gradient(135deg, #2fb8a6, #6fe3d6); }
.sw-dawn { background: linear-gradient(135deg, #f5879b, #ffcf9e); }
.sw-mist { background: linear-gradient(135deg, #7fa8d8, #cfe0f2); }
.sw-sage { background: linear-gradient(135deg, #9bb586, #e3cfa3); }
.pw-change .ticket-bar { margin-top: 6px; }
.dash-panel.danger { border-color: color-mix(in srgb, #ff5a5a 34%, var(--border)); }
.dash-panel.danger .panel-head h2 { color: #ff9a9a; }
.del-form .pf-field { max-width: 320px; margin-bottom: 14px; }
.btn-danger { background: color-mix(in srgb, #ff5a5a 18%, var(--surface)); color: #ffb4b4; border-color: color-mix(in srgb, #ff5a5a 40%, transparent); }
.btn-danger:hover { transform: translateY(-3px); background: #ff5a5a; color: #fff; }

/* ---------- cancel-request panel (project detail) ---------- */
.cancel-panel { border-color: color-mix(in srgb, #ff5a5a 24%, var(--border)); }
.cancel-panel .dash-muted { margin: 0 0 14px; max-width: 60ch; }
.cancel-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 14px; max-width: 460px; }
.cancel-form .pf-field select { width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px;
  padding: 12px 14px; color: var(--text); font-family: "Space Grotesk"; font-size: 14.5px; transition: border-color .2s, box-shadow .2s; }
.cancel-form .pf-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.cancel-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cancel-actions .profile-msg { margin-right: auto; }

/* ---- toast stack ---- */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 9000; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, 92vw); }
.toast { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; border-radius: 13px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); box-shadow: 0 20px 44px -20px #000; font-size: 13.5px; line-height: 1.45;
  animation: toastIn .32s cubic-bezier(.2,.8,.2,1) both; }
.toast.out { animation: toastOut .3s ease forwards; }
.toast-ic { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 700; margin-top: 1px; }
.toast.ok .toast-ic { background: color-mix(in srgb, #2ecc71 22%, var(--surface)); color: #aef0c6; }
.toast.err .toast-ic { background: color-mix(in srgb, #ff5a5a 22%, var(--surface)); color: #ffb4b4; }
.toast.info .toast-ic { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--accent); }
.toast-body strong { display: block; font-family: "Sora"; font-size: 13.5px; margin-bottom: 1px; }
.toast-body span { color: var(--text-dim); font-size: 12.5px; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px) scale(.96); } }
@media (prefers-reduced-motion: reduce) {
  .dash-view:not([hidden]), .toast, .notif-menu { animation: none; }
  .skel-row, .skel-card { animation: none; }
  .recent-item .dot.live { animation: none; }
}

/* =========================================================
   STORE  —  store.html (browse-and-buy catalog)
   Scoped to .store-body / .store. Reuses the theme variables.
   ========================================================= */
/* sticky-footer column: keeps the footer at the bottom and stops the
   short gateway view from producing a phantom scroll into empty space */
.store-body { min-height: 100vh; display: flex; flex-direction: column; }
.store-body > .store { flex: 1 0 auto; }
.store-body > .store-footer { flex-shrink: 0; }
/* the [hidden] attribute must win over display:grid/flex used below */
.store-body [hidden] { display: none !important; }
.store-nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); }
.nav-links a.active { color: var(--text); background: var(--surface); }

/* Wide, fluid container: the grid should use the screen, not float in it.
   width:100% matters — inside the flex-column body, margin:0 auto alone
   makes the main shrink-to-fit instead of stretching. */
.store { width: 100%; max-width: 1720px; margin: 0 auto; padding: 0 clamp(18px, 2.6vw, 44px) 32px; }

/* calmer hero backdrop (toned-down accent glow for this page) */
.store-body .world {
  background:
    radial-gradient(120% 60% at 50% -20%, color-mix(in srgb, var(--accent) 8%, var(--bg-2)), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.store-body .world-glow { opacity: .2; filter: blur(60px); top: 18%; }
.store-body .world-grid { opacity: .4; }

/* ---- hero ---- */
.store-hero { padding: 104px 0 22px; max-width: 700px; }
.store-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: "JetBrains Mono"; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.store-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.store-title { font-family: "Sora"; font-weight: 800; font-size: clamp(34px, 5vw, 54px); line-height: 1.04; letter-spacing: -.03em; }
.store-lead { margin-top: 14px; max-width: 600px; font-size: clamp(15px, 2vw, 17px); color: var(--text-dim); line-height: 1.6; }

/* ---- one unified toolbar: search + filters + sort ---- */
.store-controls { position: sticky; top: 64px; z-index: 30; padding: 12px 0; margin-top: 6px; background: linear-gradient(180deg, var(--bg) 78%, transparent); }
.store-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.store-search { position: relative; display: flex; align-items: center; gap: 10px; flex: 1 1 240px; min-width: 200px; padding: 0 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; transition: border-color .2s, box-shadow .2s; }
.store-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.store-search svg { color: var(--text-dim); flex: 0 0 auto; }
.store-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-family: "Space Grotesk"; font-size: 15px; padding: 11px 0; }
.store-search input::placeholder { color: var(--text-dim); }
.store-search-clear { background: none; border: none; color: var(--text-dim); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.store-search-clear:hover { color: var(--text); }

.store-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-drop { position: relative; }
.fb-drop > summary { list-style: none; cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 8px; font-family: "Space Grotesk"; font-size: 13.5px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 9px 16px; transition: border-color .2s, color .2s; }
.fb-drop > summary::-webkit-details-marker { display: none; }
.fb-drop > summary::after { content: "\25BE"; font-size: 11px; color: var(--text-dim); transition: transform .2s; }
.fb-drop[open] > summary,
.fb-drop.is-active > summary { border-color: var(--accent); color: var(--accent); }
.fb-drop[open] > summary::after { transform: rotate(180deg); color: var(--accent); }
.fb-drop:hover > summary { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.fb-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 210px; max-height: 320px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; box-shadow: 0 24px 50px -24px #000; }
.fb-panel label { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); padding: 6px 0; cursor: pointer; white-space: nowrap; }
.fb-panel input { accent-color: var(--accent); width: 15px; height: 15px; }

.store-sort { margin-left: auto; font-size: 13px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.store-sort select { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 100px; padding: 9px 14px; font-family: "Space Grotesk"; font-size: 14px; cursor: pointer; }

/* slim sub-line under the toolbar */
.store-subbar { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.store-count { font-family: "JetBrains Mono"; font-size: 13px; color: var(--text-dim); }
.filters-reset { background: none; border: none; color: var(--accent); font-family: "Space Grotesk"; font-size: 13px; cursor: pointer; margin-left: auto; }
.filters-reset:hover { text-decoration: underline; }

/* ---- layout: grid ---- */
.store-layout { display: block; margin-top: 18px; }

/* ---- grid + cards ----
   auto-fill + minmax keeps it responsive: ~6 columns on a 1700px screen,
   5 around 1400px, 4 on laptops, 2 on phones. */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 16px; }
.store-more { display: flex; margin: 26px auto 0; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s; }
.pcard:hover, .pcard:focus-visible { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 20px 44px -22px var(--glow); outline: none; }
.pcard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(120% 120% at 30% 10%, color-mix(in srgb, var(--accent) 30%, var(--surface-2)), var(--surface-2)); }
.thumb-ph span { font-family: "Sora"; font-weight: 800; font-size: 46px; letter-spacing: -.03em; color: color-mix(in srgb, var(--accent) 80%, var(--text)); opacity: .9; text-shadow: 0 6px 24px var(--glow); }
.card-badge { position: absolute; top: 12px; left: 12px; font-family: "JetBrains Mono"; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 7px; font-weight: 500; }
.badge-sale { background: #1c8a4a; color: #eafff2; }
.badge-new { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.badge-best { background: #caa24a; color: #2a1d04; }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 13px 14px 15px; }
.pcard-cat { font-family: "JetBrains Mono"; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-title { font-family: "Sora"; font-weight: 700; font-size: 15.5px; line-height: 1.28; margin: 6px 0 5px; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-summary { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-meta { display: flex; gap: 8px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.pcard-level { font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--border); }
.lvl-beginner { color: #7fd6a0; border-color: color-mix(in srgb, #7fd6a0 40%, transparent); }
.lvl-intermediate { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 42%, transparent); }
.lvl-advanced { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 46%, transparent); }
.pcard-time { font-family: "JetBrains Mono"; font-size: 11px; color: var(--text-dim); }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.pcard-prices { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.card-price { font-family: "Sora"; font-weight: 700; font-size: 18px; color: var(--text); }
.card-mrp { font-size: 12.5px; color: var(--text-dim); text-decoration: line-through; }
.card-off { font-size: 11px; color: #7fd6a0; font-weight: 600; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.thumb-ph span { font-size: 40px; }

/* phones: two compact columns instead of one huge card */
@media (max-width: 640px) {
  /* the wrapped toolbar is several rows tall on phones — pinning it would
     cover the cards, so it scrolls with the page instead */
  .store-controls { position: static; background: none; }
  .store-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard-body { padding: 10px 11px 12px; }
  .pcard-title { font-size: 13.5px; }
  .pcard-summary { display: none; }
  .pcard-meta { margin: 8px 0; }
  .card-price { font-size: 15.5px; }
  .btn-sm { padding: 7px 12px; font-size: 12px; }
  .thumb-ph span { font-size: 30px; }
}

.store-empty { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.store-empty p { margin-bottom: 16px; }

/* ---- testimonials ---- */
.store-testimonials { margin-top: 80px; }
.store-section-title { font-family: "Sora"; font-weight: 800; font-size: clamp(26px, 4vw, 40px); letter-spacing: -.02em; margin-bottom: 28px; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.testi { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; margin: 0; }
.testi-stars { color: var(--accent-2); letter-spacing: 2px; font-size: 15px; margin-bottom: 12px; }
.testi blockquote { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.testi figcaption { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: "Sora"; font-weight: 700; font-size: 14px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.testi-who { display: flex; flex-direction: column; }
.testi-who b { font-family: "Sora"; font-size: 14px; }
.testi-who small { color: var(--text-dim); font-size: 12px; }

/* ---- footer ---- */
.store-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 40px 26px; text-align: center; color: var(--text-dim); }
.store-footer-brand { display: inline-flex; align-items: center; gap: 9px; font-family: "Sora"; font-weight: 800; font-size: 18px; }
.store-footer-brand svg { fill: var(--accent); }
.store-footer-brand b { color: var(--accent); }
.store-footer p { font-size: 13.5px; margin-top: 8px; }
.store-footer a { color: var(--text-dim); border-bottom: 1px solid transparent; }
.store-footer a:hover { color: var(--accent); }

/* ---- detail modal ---- */
.detail-overlay { position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, #000 72%, transparent); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.detail-modal { position: relative; width: min(920px, 100%); max-height: 90vh; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: 22px; padding: 30px; box-shadow: 0 40px 120px -30px #000; }
.detail-close { position: absolute; top: 16px; right: 18px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; transition: .2s; }
.detail-close:hover { border-color: var(--accent); transform: rotate(90deg); }
.detail-grid { display: grid; grid-template-columns: 300px 1fr; gap: 26px; }
.detail-mediacol { display: flex; flex-direction: column; }
.detail-media { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }

/* AI-concept disclaimer caption shown beneath AI hero renders (complements the
   watermark baked into the image itself). Never shown for real build photos. */
.ai-note-line { display: flex; align-items: flex-start; gap: 7px; margin: 10px 2px 0;
  font-size: 11.5px; line-height: 1.4; color: var(--text-dim); }
.ai-note-line svg { flex-shrink: 0; margin-top: 1px; color: var(--accent); opacity: .85; }
.ai-note-line[hidden] { display: none; }
.detail-cat { font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.detail-name { font-family: "Sora"; font-weight: 800; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.1; letter-spacing: -.02em; margin: 8px 0 12px; }
.detail-summary { font-size: 15px; color: var(--text-dim); line-height: 1.55; }
.detail-pricerow { display: flex; align-items: baseline; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.detail-price { font-family: "Sora"; font-weight: 800; font-size: 30px; color: var(--text); }
.detail-mrp { font-size: 17px; color: var(--text-dim); text-decoration: line-through; }
.detail-off { font-size: 13px; color: #7fd6a0; font-weight: 600; }
.detail-quick { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-chip { font-size: 12.5px; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-dim); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-sections { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.detail-block { margin-bottom: 24px; }
.detail-block h4 { font-family: "Sora"; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.detail-block p { font-size: 14.5px; line-height: 1.7; color: var(--text-dim); }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.detail-got, .detail-comps { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.detail-got li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--text); line-height: 1.45; }
.detail-got svg { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.detail-comps li { font-size: 14px; color: var(--text-dim); padding-left: 16px; position: relative; line-height: 1.5; }
.detail-comps li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.detail-tag { font-family: "JetBrains Mono"; font-size: 11.5px; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); padding: 4px 10px; border-radius: 7px; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .store-controls { top: 60px; }
}
@media (max-width: 720px) {
  .store { padding: 0 16px 60px; }
  .store-hero { padding-top: 104px; }
  .detail-modal { padding: 22px 18px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media { aspect-ratio: 16 / 9; }
  .detail-cols { grid-template-columns: 1fr; gap: 18px; }
  .store-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}

/* =========================================================
   PROJECT PAGE  —  project.html?id=<slug>
   ========================================================= */
.project { max-width: 1180px; margin: 0 auto; padding: 0 26px 80px; }

/* loading / error states */
.pj-state { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; color: var(--text-dim); }
.pj-state h1 { font-family: "Sora"; font-weight: 800; font-size: 32px; color: var(--text); }
.pj-spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: pjspin .8s linear infinite; }
@keyframes pjspin { to { transform: rotate(360deg); } }

/* breadcrumb */
.pj-crumb { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 110px 0 22px; font-family: "JetBrains Mono"; font-size: 12px; color: var(--text-dim); }
.pj-crumb a { color: var(--text-dim); }
.pj-crumb a:hover { color: var(--accent); }
.pj-crumb b { color: var(--text); font-weight: 500; }

/* hero */
.pj-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.pj-media { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.pj-media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.pj-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pj-thumb { width: 72px; height: 56px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); cursor: pointer; padding: 0; }
.pj-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.pj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pj-hero-info { padding-top: 6px; }
.pj-title { font-family: "Sora"; font-weight: 800; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -.025em; margin: 8px 0 14px; }
.pj-summary { font-size: clamp(15px, 2vw, 18px); color: var(--text-dim); line-height: 1.6; }
.pj-quick { display: flex; gap: 9px; flex-wrap: wrap; margin: 18px 0; }
.pj-depts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.pj-depts-label { font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.pj-dept-chip { font-family: "JetBrains Mono"; font-size: 11.5px; color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent-2) 30%, var(--border)); padding: 3px 9px; border-radius: 6px; }

/* body: main + sidebar */
.pj-body { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 54px; align-items: start; }
.pj-block { margin-bottom: 38px; }
.pj-h2 { font-family: "Sora"; font-weight: 700; font-size: 22px; letter-spacing: -.01em; margin-bottom: 16px; }
.pj-text { font-size: 15.5px; line-height: 1.75; color: var(--text-dim); }

.pj-steps { list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.pj-steps li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--text); }
.pj-step-no { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: "Sora"; font-weight: 700; font-size: 14px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.pj-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.pj-chip { font-family: "Space Grotesk"; font-size: 13.5px; color: var(--text); background: var(--surface); border: 1px solid var(--border); padding: 8px 14px; border-radius: 100px; }
.pj-skill { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 32%, var(--border)); }

.pj-apps { margin: 0; padding-left: 20px; color: var(--text-dim); font-size: 15px; line-height: 1.7; }
.pj-apps li { margin-bottom: 6px; }
.pj-got li { font-size: 14.5px; }

/* sidebar */
.pj-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.pj-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.pj-buybox .detail-pricerow { margin: 0 0 16px; }
.pj-buybox-note { font-size: 12px; color: var(--text-dim); text-align: center; margin-top: 12px; font-family: "JetBrains Mono"; }
.pj-side-h { font-family: "Sora"; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.pj-specs { width: 100%; border-collapse: collapse; }
.pj-specs th, .pj-specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: top; }
.pj-specs th { color: var(--text-dim); font-weight: 500; width: 42%; }
.pj-specs td { color: var(--text); }
.pj-specs tr:last-child th, .pj-specs tr:last-child td { border-bottom: none; }

/* bill of materials table */
.pj-bom { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.pj-bom th, .pj-bom td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: top; white-space: nowrap; }
.pj-bom thead th { color: var(--text-dim); font-weight: 600; }
.pj-bom td:first-child, .pj-bom th:first-child { white-space: normal; }
.pj-bom td:nth-child(2) { text-align: center; color: var(--accent); font-weight: 600; }
.pj-bom tr:last-child td { border-bottom: none; }
/* feature / learning lists reuse the .pj-apps bullet styling */
.pj-feats li, .pj-learn li { line-height: 1.5; }

/* why AURA */
.pj-why { max-width: 1180px; margin: 20px auto 0; padding: 0 26px; }
.pj-why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pj-why-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.pj-why-card b { font-family: "Sora"; font-size: 15px; display: block; margin-bottom: 6px; }
.pj-why-card span { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }

/* related */
.pj-related { max-width: 1180px; margin: 70px auto 0; padding: 0 26px; }
.pj-related .pcard { text-decoration: none; }

/* final CTA */
.pj-cta { max-width: 1180px; margin: 80px auto 0; padding: 56px 30px; text-align: center; background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); border: 1px solid var(--border); border-radius: 24px; }
.pj-cta h2 { font-family: "Sora"; font-weight: 800; font-size: clamp(24px, 3.6vw, 36px); letter-spacing: -.02em; }
.pj-cta p { color: var(--text-dim); margin: 12px 0 26px; font-size: 16px; }
.pj-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* lightbox */
.pj-lightbox { position: fixed; inset: 0; z-index: 300; background: color-mix(in srgb, #000 86%, transparent); display: grid; place-items: center; padding: 40px; }
.pj-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 14px; }
.pj-lightbox .detail-close { top: 22px; right: 26px; }

@media (max-width: 980px) {
  .pj-hero { grid-template-columns: 1fr; gap: 24px; }
  .pj-body { grid-template-columns: 1fr; gap: 0; }
  .pj-side { position: static; flex-direction: column; margin-bottom: 38px; }
}
@media (max-width: 720px) {
  .project { padding: 0 16px 60px; }
  .pj-crumb { padding-top: 92px; }
  .pj-why, .pj-related, .pj-cta { padding-left: 16px; padding-right: 16px; }
}

/* =========================================================
   STORE — Shop by department (the "bin")
   ========================================================= */
.dept-section { margin: 30px 0 10px; }
.dept-head { max-width: 760px; margin-bottom: 24px; }
.dept-title { font-family: "Sora"; font-weight: 800; font-size: clamp(26px, 4vw, 40px); line-height: 1.05; letter-spacing: -.02em; margin: 6px 0 10px; }
.dept-lead { color: var(--text-dim); font-size: 15.5px; line-height: 1.6; }

.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.dept-card {
  position: relative; overflow: hidden; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px 20px 20px; border-radius: 18px;
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); color: var(--text);
  transition: transform .28s, border-color .28s, box-shadow .28s;
}
.dept-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
}
.dept-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); box-shadow: 0 26px 50px -26px var(--glow); }
.dept-card:hover::before { opacity: 1; }
.dept-ico {
  position: relative; width: 50px; height: 50px; border-radius: 14px; margin-bottom: 12px;
  display: grid; place-items: center; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
}
.dept-card:hover .dept-ico { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; box-shadow: 0 8px 22px var(--glow); }
.dept-name { position: relative; font-family: "Sora"; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.dept-short { position: relative; font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .12em; color: var(--text-dim); }
.dept-count { position: relative; margin-top: 10px; font-size: 13px; color: var(--text-dim); }
.dept-view { position: relative; margin-top: 12px; font-family: "Space Grotesk"; font-weight: 600; font-size: 13.5px; color: var(--accent); opacity: .85; transition: transform .25s, opacity .25s; }
.dept-card:hover .dept-view { transform: translateX(3px); opacity: 1; }
.dept-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent), 0 22px 46px -24px var(--glow); }
.dept-card.active::before { opacity: 1; }
.dept-card.active .dept-ico { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }

/* active-department pill in the results bar */
.dept-active-pill { display: inline-flex; align-items: center; gap: 8px; font-family: "Space Grotesk"; font-size: 13px; color: var(--text); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border)); padding: 6px 12px; border-radius: 100px; }
.dept-active-pill b { color: var(--accent); font-weight: 600; }
.dept-clear { background: none; border: none; color: var(--text-dim); font-family: "Space Grotesk"; font-size: 12.5px; cursor: pointer; padding: 0; }
.dept-clear:hover { color: var(--accent); }

@media (max-width: 720px) {
  .dept-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .dept-card { padding: 18px 16px; }
}

/* ===== Store gateway (opening branch / domain selector) ===== */
.store-gateway { padding: 8px 0 16px; position: relative; }

/* full-page background that fades to the hovered domain's photo.
   Sits above the ambient .world (both fixed z-index:0; this is later in the
   DOM) and below the page content (main is position:relative; z-index:1). */
.store-bgfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.store-bgfx.is-on { opacity: 1; }
/* two stacked layers cross-fade so domain→domain switches animate too */
.store-bgfx-img { position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity .55s ease, transform 7s ease; will-change: opacity, transform; }
.store-bgfx-img.show { opacity: 1; transform: scale(1); }
.store-bgfx-scrim { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,5,7,.94), rgba(8,5,7,.74) 58%, rgba(8,5,7,.62)),
    linear-gradient(0deg, rgba(8,5,7,.9), transparent 48%),
    radial-gradient(120% 90% at 78% 22%, transparent, rgba(8,5,7,.45) 72%); }
/* touch devices don't hover — no background swap there */
@media (hover: none) { .store-bgfx { display: none; } }
.gw-head { max-width: 760px; margin-bottom: 26px; }
.gw-title { font-family: "Sora"; font-weight: 800; font-size: clamp(28px, 4.6vw, 46px); line-height: 1.04; letter-spacing: -.025em; margin: 6px 0 12px; }
.gw-lead { color: var(--text-dim); font-size: clamp(14.5px, 1.6vw, 16.5px); line-height: 1.6; }

.gw-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gw-group { background: linear-gradient(165deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: 20px; padding: 22px 22px 24px; }
.gw-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.gw-step { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: "JetBrains Mono"; font-size: 12px; font-weight: 500; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 6px 16px var(--glow); }
.gw-group-head h3 { font-family: "Sora"; font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
.gw-optional { margin-left: auto; font-family: "JetBrains Mono"; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }

.gw-options { display: flex; flex-wrap: wrap; gap: 10px; }
.gw-opt {
  display: inline-flex; align-items: center; gap: 11px; text-align: left; cursor: pointer;
  padding: 11px 15px; border-radius: 13px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.gw-opt:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 14px 30px -20px var(--glow); }
.gw-opt-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border)); transition: color .2s, background .2s, border-color .2s; }
.gw-opt-text { display: flex; flex-direction: column; gap: 1px; }
.gw-opt-label { font-family: "Space Grotesk"; font-weight: 600; font-size: 14px; }
.gw-opt-count { font-family: "JetBrains Mono"; font-size: 10.5px; color: var(--text-dim); }
.gw-opt.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 26%, transparent), 0 16px 34px -22px var(--glow); }
.gw-opt.active .gw-opt-ico { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.gw-opt.active .gw-opt-count { color: color-mix(in srgb, var(--accent) 80%, var(--text-dim)); }

.gw-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.gw-selection { font-size: 14px; color: var(--text-dim); }
.gw-selection b { color: var(--text); font-weight: 600; }
.gw-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.gw-change { background: none; border: 1px solid var(--border); color: var(--text-dim); font-family: "Space Grotesk"; font-size: 13px; padding: 7px 14px; border-radius: 100px; cursor: pointer; transition: color .2s, border-color .2s; }
.gw-change:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }

@media (max-width: 760px) {
  .gw-groups { grid-template-columns: 1fr; }
  .gw-actions { flex-direction: column; align-items: stretch; }
  .gw-buttons { justify-content: stretch; }
  .gw-buttons .btn { flex: 1; justify-content: center; }
}

/* ---- Gateway = one-screen selector (body.store-gw, set by js/store.js) ----
   On roomy displays the branch/domain picker must sit inside the viewport with
   NO page scroll. We don't hard-lock overflow: short laptops where the picker
   genuinely can't fit are still allowed to scroll. The trick is to drop the
   footer + trailing padding that pushed the page just past the fold, then let
   the flex column (.store-body > .store is flex:1) fill exactly one screen. */
.store-body.store-gw .store-footer { display: none; }
.store-body.store-gw > .store { padding-bottom: 0; }
.store-body.store-gw .store-gateway { padding-bottom: 0; }
.store-body.store-gw .store-hero { padding-bottom: 10px; }

/* =========================================================
   Mobile perf pass 2 — glass surfaces defined later in this file.
   Same rule as the <=720px block up top: backdrop-filter re-blurs the
   moving page behind it every frame, so on phones each one becomes a
   slightly more opaque flat fill. Kept at the end of the file so these
   overrides win over the component rules above.
   ========================================================= */
@media (max-width: 720px) {
  .auth-card { backdrop-filter: none; background: color-mix(in srgb, var(--surface) 92%, transparent); }
  .dash-topbar { backdrop-filter: none; background: color-mix(in srgb, var(--bg) 96%, transparent); }
  .detail-overlay { backdrop-filter: none; background: color-mix(in srgb, #000 84%, transparent); }
}

/* =========================================================
   Power tools (#tools): AI Builder + Store live twin demos
   ========================================================= */
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.tool-panel { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; }

/* --- AI Builder demo console --- */
.ai-demo { flex: 1; padding: 24px; font-family: "JetBrains Mono"; min-height: 300px;
  display: flex; flex-direction: column; gap: 16px; }
.ai-prompt { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text); min-height: 26px; }
.ai-you { flex: none; font-size: 10px; letter-spacing: .18em; color: var(--accent-2);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; }
.ai-caret { flex: none; width: 8px; height: 15px; background: var(--accent); animation: twBlink 1s step-end infinite; }
.ai-thinking { display: none; align-items: center; gap: 6px; color: var(--text-dim); font-size: 12px; letter-spacing: .06em; }
.ai-thinking.show { display: inline-flex; }
.ai-thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: aiDot 1s ease-in-out infinite; }
.ai-thinking i:nth-child(2) { animation-delay: .16s; }
.ai-thinking i:nth-child(3) { animation-delay: .32s; }
.ai-thinking span { margin-left: 6px; }
@keyframes aiDot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.ai-card { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 14px; padding: 18px 20px; display: grid; gap: 8px; }
.ai-card.show { opacity: 1; transform: none; }
.ai-card-tag { font-size: 9.5px; letter-spacing: .22em; color: var(--accent-2); }
.ai-card b { font-family: "Sora"; font-size: 1.15rem; color: var(--text); line-height: 1.2; }
.ai-card p { font-family: "Space Grotesk"; font-size: .92rem; color: var(--text-dim); line-height: 1.5; }
.ai-card-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.ai-card-tags span { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 100px; padding: 4px 10px; }

/* --- Store demo: crossfading kit cards --- */
.kit-demo { position: relative; flex: 1; min-height: 300px; }
.kit-card { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.kit-card.on { opacity: 1; }
.kit-card img { width: 100%; height: 100%; object-fit: cover; }
.kit-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 18px; display: grid; gap: 2px;
  background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 94%, transparent), transparent); }
.kit-info b { font-family: "Sora"; font-size: 1.1rem; }
.kit-info span { font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: .05em; color: var(--text-dim); }
.kit-info em { font-style: normal; font-family: "Sora"; font-weight: 800; font-size: 1.15rem; color: var(--accent-2); margin-top: 4px; }
.kit-dots { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; gap: 7px; }
.kit-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: color-mix(in srgb, var(--text) 32%, transparent); transition: background .25s, transform .25s, box-shadow .25s; }
.kit-dots button.on { background: var(--accent); transform: scale(1.25); box-shadow: 0 0 8px var(--glow); }

/* --- shared panel footer --- */
.tool-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; border-top: 1px dashed var(--border); }
.tool-foot p { font-size: .9rem; color: var(--text-dim); line-height: 1.5; max-width: 36ch; }
.tool-foot .btn { flex: none; font-size: 14px; }

@media (max-width: 980px) {
  .tools-grid { grid-template-columns: 1fr; }
  .kit-demo, .ai-demo { min-height: 260px; }
}
@media (max-width: 720px) {
  .ai-demo { padding: 18px; }
  .tool-foot { flex-direction: column; align-items: flex-start; padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-caret, .ai-thinking i { animation: none; }
  .ai-card { transition: none; }
  .kit-card { transition: none; }
}

/* =========================================================
   Request-sent popup (shown after a catalog / project request)
   ========================================================= */
.reqsent-overlay { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px;
  background: color-mix(in srgb, #000 72%, transparent); backdrop-filter: blur(8px); overflow-y: auto; }
.reqsent-card { position: relative; width: min(460px, 100%); text-align: center; border-radius: 22px;
  border: 1px solid var(--border); background: var(--surface); padding: 42px clamp(22px, 5vw, 38px) 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.reqsent-card h3 { font-size: 1.45rem; margin: 0 0 10px; }
.reqsent-card p { color: var(--text-dim); line-height: 1.65; margin: 0 auto 24px; max-width: 360px; }
.reqsent-card p b { color: var(--text); white-space: nowrap; }
.reqsent-actions { display: flex; flex-direction: column; gap: 10px; }
.reqsent-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: none; border-radius: 50%;
  background: transparent; color: var(--text-dim); font-size: 22px; line-height: 1; cursor: pointer; }
.reqsent-close:hover { color: var(--text); }
@media (max-width: 720px) {
  /* same rule as the other overlays: no backdrop-filter on phones */
  .reqsent-overlay { backdrop-filter: none; background: color-mix(in srgb, #000 86%, transparent); }
}
