/* ============================================================
   HIVE 702 — DUAL-THEME DESIGN SYSTEM (shared)
   Theme tokens scoped to [data-theme]. "corporate" default;
   "arcade" unlocked by the Konami code (persists via storage).
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap');

:root{
  --step--1: clamp(0.75rem, 0.71rem + 0.18vw, 0.85rem);
  --step-0:  clamp(0.95rem, 0.90rem + 0.25vw, 1.10rem);
  --step-1:  clamp(1.10rem, 1.00rem + 0.50vw, 1.45rem);
  --step-2:  clamp(1.40rem, 1.15rem + 1.20vw, 2.20rem);
  --h1:      clamp(2.30rem, 1.40rem + 3.55vw, 5.00rem);
  --h-page:  clamp(2.10rem, 1.30rem + 3.10vw, 4.20rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
  --edge: clamp(1.4rem, 4.5vw, 6rem);
  --maxw: 1680px;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --hex: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* ---------- CORPORATE (default) ---------- */
[data-theme="corporate"]{
  --bg:        #0f0f0f;
  --bg-deep:   #090909;
  --surface:   rgba(22,22,22,0.72);
  --surface-2: rgba(30,30,30,0.85);
  --text:      #ffffff;
  --text-soft: #ededed;
  --muted:     #a0a0a0;
  --faint:     #6a6a6a;
  --primary:   #F7931E;
  --accent:    #E85D04;
  --line:      rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);

  --hex-line:  247,147,30;
  --mote:      247,147,30;
  --glow:      232,93,4;
  --bg-canvas: #0b0b0b;

  --btn-grad:  linear-gradient(135deg, #F7931E 0%, #E85D04 100%);
  --halo: 0 0 0 1px rgba(247,147,30,0.0), 0 14px 40px -12px rgba(232,93,4,0.55);
}

/* ---------- ARCADE (Konami-unlocked) — late-90s warez/8-bit ---------- */
[data-theme="arcade"]{
  --bg:        #0a0e0a;
  --bg-deep:   #060806;
  --surface:   rgba(2,16,6,0.74);
  --surface-2: rgba(4,22,10,0.9);
  --text:      #00ff41;
  --text-soft: #9dffb4;
  --muted:     #36b35a;
  --faint:     #1d7038;
  --primary:   #00ff41;
  --accent:    #00ffff;
  --acid:      #ff00ff;
  --amber:     #ffff00;
  --line:      rgba(0,255,65,0.20);
  --line-strong: rgba(0,255,65,0.42);

  --hex-line:  0,255,65;
  --mote:      0,255,255;
  --glow:      0,255,65;
  --bg-canvas: #0a0e0a;

  --btn-grad:  linear-gradient(180deg, #00ff41 0%, #00cc34 100%);
  --halo: 0 0 0 1px rgba(0,255,65,0.0), 0 0 18px -2px rgba(0,255,65,0.5);
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
html,body{ min-height:100%; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .6s var(--ease), color .6s var(--ease);
}
a{ color: inherit; text-decoration: none; }
::selection{ background: var(--primary); color:#0b0b0b; }

/* ===================== BACKGROUND ===================== */
#hive{ position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.veil{ position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.veil--vignette{
  background:
    radial-gradient(120% 90% at 80% 14%, rgba(247,147,30,0.12), transparent 48%),
    radial-gradient(140% 120% at 12% 105%, rgba(232,93,4,0.10), transparent 52%),
    radial-gradient(100% 100% at 50% 50%, transparent 46%, rgba(0,0,0,0.42) 100%);
}
[data-theme="arcade"] .veil--vignette{
  background:
    radial-gradient(120% 90% at 50% 12%, rgba(0,255,65,0.06), transparent 46%),
    radial-gradient(100% 100% at 50% 50%, transparent 30%, rgba(0,0,0,0.72) 100%);
}
.veil--floor{
  background:
    linear-gradient(to right, rgba(9,9,9,0.86) 0%, rgba(9,9,9,0.55) 34%, rgba(9,9,9,0) 62%),
    linear-gradient(to bottom, transparent 46%, rgba(7,7,7,0.78) 100%);
}
/* uniform darkening for content-heavy inner pages */
.veil--page{
  background:
    radial-gradient(125% 80% at 50% -10%, rgba(247,147,30,0.07), transparent 55%),
    linear-gradient(to bottom, rgba(10,10,10,0.62), rgba(8,8,8,0.80));
}
[data-theme="arcade"] .veil--page{
  background:
    radial-gradient(125% 80% at 50% -10%, rgba(0,255,65,0.06), transparent 55%),
    linear-gradient(to bottom, rgba(6,10,6,0.74), rgba(4,7,4,0.88));
}
.veil--scan{ opacity:0; }
[data-theme="arcade"] .veil--scan{
  opacity:1;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.32) 2px 4px);
  mix-blend-mode: multiply;
}

/* ===================== NAV ===================== */
.nav{
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 var(--edge);
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck{
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}
.brand{ display:flex; align-items:center; gap:.7rem; }
.brand .mark{ width: 38px; height: 42px; filter: drop-shadow(0 4px 14px rgba(232,93,4,0.45)); }
.brand .wordmark{ display:flex; flex-direction:column; line-height:1; }
.brand .name{ font-weight: 800; letter-spacing: .24em; font-size: .98rem; display:flex; gap:.18em; }
.brand .name b{ color: var(--primary); font-weight:800; }
.brand .tag{ font-family: var(--font-mono); font-size: .56rem; letter-spacing: .42em; color: var(--faint); margin-top: .42em; text-transform: uppercase; }

.nav-links{ display:flex; align-items:center; gap: clamp(.6rem, 1.6vw, 2rem); }
.nav-links a{
  position: relative; font-size: .92rem; font-weight: 500; color: var(--muted);
  padding: .35rem 0; transition: color .25s var(--ease);
}
.nav-links a:hover{ color: var(--text); }
.nav-links a.active{ color: var(--primary); }
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-2px; height:1.5px; width:0;
  background: var(--primary); transition: width .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-cta{ display:flex; align-items:center; gap:1rem; }

/* hamburger (mobile only) */
.nav-toggle{ display:none; width:44px; height:44px; flex-direction:column; align-items:center; justify-content:center; gap:5px; background:transparent; border:0; cursor:pointer; padding:8px; margin-left:.3rem; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--text); border-radius:2px; transition:transform .3s var(--ease), opacity .2s var(--ease); }
.nav.open .nav-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2){ opacity:0; }
.nav.open .nav-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ===================== BUTTONS ===================== */
.btn{
  --pad-y: .82rem; --pad-x: 1.55rem;
  position: relative; display:inline-flex; align-items:center; gap:.6rem;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-sans); font-size: .9rem; font-weight: 600; letter-spacing:.01em;
  cursor: pointer; border: none; background: none; color: var(--text);
  clip-path: var(--hex);
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
  white-space: nowrap;
}
.btn--primary{ background: var(--btn-grad); color:#120a02; box-shadow: var(--halo); }
.btn--primary:hover{ transform: translateY(-2px); filter: brightness(1.07); }
[data-theme="arcade"] .btn--primary{ color:#120018; }
.btn--ghost{ color: var(--text-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover{ box-shadow: inset 0 0 0 1px var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn--sm{ --pad-y:.62rem; --pad-x:1.1rem; font-size:.82rem; }
.btn:disabled{ opacity:.4; cursor:not-allowed; filter:none; transform:none; }

/* ===================== SHARED TYPE BITS ===================== */
.eyebrow{
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing:.34em; text-transform: uppercase; color: var(--primary);
  display:flex; align-items:center; gap:.9rem; margin-bottom: 1.4rem;
}
.eyebrow::before{
  content:""; width: clamp(28px,5vw,56px); height:1px; background: var(--primary); box-shadow: 0 0 8px var(--primary);
}
.orange{
  background: linear-gradient(180deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 42px rgba(247,147,30,0.30);
}

/* ===================== HERO (home) ===================== */
.stage{ position: relative; height: 100svh; display: flex; flex-direction: column; isolation: isolate; overflow: hidden; }
.hero{ flex: 1; display: grid; grid-template-rows: 1fr auto; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: calc(var(--nav-h) + 1rem) var(--edge) clamp(3.4rem, 8vh, 5.5rem); }
.hero-top{ align-self: start; padding-top: clamp(1rem, 4vh, 3rem); }
.status{
  display:inline-flex; align-items:center; gap:.7rem;
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing:.18em; text-transform: uppercase; color: var(--muted);
  padding:.5rem .9rem; box-shadow: inset 0 0 0 1px var(--line);
  background: color-mix(in srgb, var(--bg) 40%, transparent); backdrop-filter: blur(6px);
  clip-path: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);
}
.status .dot{ width:7px; height:7px; border-radius:50%; background: var(--primary); box-shadow: 0 0 10px 1px var(--primary); animation: blip 2.4s var(--ease) infinite; }
@keyframes blip{ 0%,100%{opacity:1} 50%{opacity:.25} }
.hero-content{ align-self: end; max-width: 64ch; }
.hero h1{ font-size: var(--h1); font-weight: 800; line-height: 0.98; letter-spacing: -0.025em; text-wrap: balance; margin-bottom: 1.6rem; }
.hero h1 .vuln{ background: linear-gradient(180deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip:text; -webkit-text-fill-color: transparent; text-shadow: 0 0 42px rgba(247,147,30,0.35); }
.hero .sub{ font-size: var(--step-1); color: var(--muted); max-width: 52ch; margin-bottom: 2.4rem; line-height: 1.45; }
.hero .sub b{ color: var(--text-soft); font-weight:600; }
.hero-actions{ display:flex; flex-wrap:wrap; gap: 1rem; align-items:center; }
.cue{
  position:absolute; right: var(--edge); bottom: clamp(2.2rem,5vh,4rem);
  display:flex; flex-direction:column; align-items:center; gap:.7rem;
  font-family: var(--font-mono); font-size:.6rem; letter-spacing:.3em; color: var(--faint); text-transform: uppercase; writing-mode: vertical-rl;
}
.cue .rail{ width:1px; height:54px; background: linear-gradient(var(--faint), transparent); position:relative; }
.cue .rail::after{ content:""; position:absolute; top:0; left:-1.5px; width:4px; height:14px; border-radius:4px; background: var(--primary); box-shadow:0 0 8px var(--primary); animation: drop 2.6s var(--ease) infinite; }
@keyframes drop{ 0%{transform:translateY(0);opacity:0} 20%{opacity:1} 80%{opacity:1} 100%{transform:translateY(40px);opacity:0} }

/* ===================== HERO BG SWITCHER ===================== */
.bg-switcher{
  position:absolute; right: var(--edge); bottom: clamp(2.2rem,5vh,4rem); z-index: 6;
  display:flex; flex-direction:column; align-items:flex-end; gap:.15rem;
}
.bg-switcher .bgsw-head{
  font-family: var(--font-mono); font-size:.56rem; letter-spacing:.3em; text-transform:uppercase;
  color: var(--faint); margin-bottom:.5rem;
}
.bgsw-item{
  display:flex; align-items:center; gap:.6rem; background:none; border:none; cursor:pointer;
  font-family: var(--font-mono); color: var(--muted); padding:.32rem .1rem; text-align:right;
  transition: color .25s var(--ease); white-space:nowrap;
}
.bgsw-item .bgsw-num{ font-size:.6rem; color: var(--faint); width:1em; }
.bgsw-item .bgsw-name{ font-size:.72rem; letter-spacing:.08em; }
.bgsw-item .bgsw-dot{
  order:3; width:9px; height:10px; flex:0 0 auto;
  clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  box-shadow: inset 0 0 0 1px var(--line-strong); transition: all .25s var(--ease);
}
.bgsw-item:hover{ color: var(--text); }
.bgsw-item:hover .bgsw-dot{ box-shadow: inset 0 0 0 1px var(--primary); }
.bgsw-item.active{ color: var(--primary); }
.bgsw-item.active .bgsw-num{ color: var(--primary); }
.bgsw-item.active .bgsw-dot{ background: var(--primary); box-shadow: 0 0 8px var(--primary); }
@media (max-width: 880px){ .bg-switcher{ display:none; } }

/* ===================== INNER PAGE SHELL ===================== */
.page{
  position: relative; z-index: 1; width:100%; max-width: var(--maxw); margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(2.4rem,7vh,5rem)) var(--edge) clamp(3rem,7vh,5rem);
}
.page-head{ max-width: 64ch; }
.page-title{ font-size: var(--h-page); font-weight: 800; line-height: 1.02; letter-spacing:-0.02em; text-wrap:balance; }
.page-lead{ font-size: var(--step-1); color: var(--muted); max-width: 56ch; margin-top: 1.4rem; line-height:1.5; }
.section{ position:relative; z-index:1; width:100%; max-width: var(--maxw); margin: 0 auto; padding: clamp(1rem,3vh,2.5rem) var(--edge) clamp(3rem,7vh,5rem); }

/* center stage (blog / simple pages) */
.center-stage{
  position:relative; z-index:1; min-height: calc(100svh - var(--nav-h));
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  padding: calc(var(--nav-h) + 2rem) var(--edge) 3rem; gap: 1.4rem;
}

/* ===================== HEX MOTIF MARKER ===================== */
.hexmark{
  --s: 52px; width:var(--s); height:calc(var(--s) * 1.1); flex:0 0 auto;
  display:grid; place-items:center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 22%, transparent), transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--primary) 55%, transparent);
  font-family: var(--font-mono); font-weight:600; color: var(--primary); font-size: 1rem;
}

/* ===================== APPROACH PHILOSOPHY CARDS ===================== */
.lede-quote{
  font-size: var(--step-2); font-weight: 700; line-height: 1.18; letter-spacing:-0.01em;
  max-width: 24ch; text-wrap:balance; margin-bottom: clamp(2.4rem,6vh,4rem);
}
.phi-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.9rem, 1.6vw, 1.4rem); }
.phi-card{
  position: relative; overflow:hidden;
  padding: clamp(1.6rem, 2.6vw, 2.6rem);
  background: var(--surface); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--hex);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.phi-card::after{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:0;
  background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 55%);
  transition: opacity .35s var(--ease);
}
.phi-card:hover{ transform: translateY(-5px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 60%, transparent), 0 24px 50px -28px rgba(232,93,4,0.7); }
.phi-card:hover::after{ opacity:1; }
.phi-top{ display:flex; align-items:center; gap:1rem; margin-bottom: 1.3rem; }
.phi-num{ font-family: var(--font-mono); font-size:.74rem; letter-spacing:.2em; color: var(--faint); }
.phi-card h3{ font-size: clamp(1.25rem,1.6vw,1.6rem); font-weight: 700; margin-bottom:.7rem; letter-spacing:-0.01em; }
.phi-card p{ color: var(--muted); font-size: var(--step-0); line-height:1.55; max-width: 42ch; }

/* ===================== SERVICE CARDS ===================== */
.svc-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: clamp(0.8rem,1.4vw,1.15rem); }
.svc-card{
  position:relative; overflow:hidden;
  padding: clamp(1.4rem,2vw,1.9rem) clamp(1.4rem,2vw,1.8rem);
  background: var(--surface); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: var(--hex);
  display:flex; flex-direction:column; gap:.7rem; min-height: 188px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.svc-card .num{ font-family: var(--font-mono); font-size:.72rem; letter-spacing:.2em; color: var(--faint); }
.svc-card h3{ font-size: clamp(1.15rem,1.5vw,1.45rem); font-weight: 700; letter-spacing:-0.01em; line-height:1.1; }
.svc-card p{ color: var(--muted); font-size:.92rem; line-height:1.5; margin-top:auto; }
.svc-card .edge{ position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--btn-grad); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.svc-card:hover{ transform: translateY(-5px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 55%, transparent), 0 22px 46px -28px rgba(232,93,4,0.7); }
.svc-card:hover .edge{ transform: scaleY(1); }
.svc-card:hover h3{ color: var(--primary); }

/* ===================== WHO WE ARE ===================== */
.editorial{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,5rem); align-items:start; }
.editorial .pull{ font-size: clamp(1.7rem,2.6vw,2.6rem); font-weight: 700; line-height:1.16; letter-spacing:-0.015em; text-wrap:balance; position: sticky; top: calc(var(--nav-h) + 2rem); }
.editorial .pull .orange{ display:inline; }
.narrative p{ color: var(--text-soft); font-size: var(--step-1); line-height: 1.62; margin-bottom: 1.3rem; }
.narrative p:first-child{ color: var(--text); }
.narrative p b{ color: var(--primary); font-weight: 600; }
.facts{ display:flex; flex-wrap:wrap; gap: clamp(1.6rem,5vw,4rem); margin-top: clamp(2.6rem,6vh,4.2rem); padding-top: clamp(2rem,5vh,3rem); border-top: 1px solid var(--line); }
.fact{ display:flex; flex-direction:column; gap:.5rem; }
.fact .k{ font-size: clamp(2rem,3.2vw,3.2rem); font-weight: 800; letter-spacing:-0.03em; line-height:1; }
.fact .l{ font-family: var(--font-mono); font-size: var(--step--1); letter-spacing:.18em; text-transform:uppercase; color: var(--muted); }

/* ===================== BLOG ===================== */
.soon-mark{ --s: 96px; font-size: 1.6rem; }
.soon-title{ font-size: clamp(2.6rem,7vw,6rem); font-weight: 800; letter-spacing:-0.03em; line-height:.95; }
.soon-line{ font-family: var(--font-mono); font-size: var(--step-0); color: var(--muted); letter-spacing:.04em; max-width: 46ch; }
.soon-meta{ font-family: var(--font-mono); font-size:.72rem; letter-spacing:.24em; text-transform:uppercase; color: var(--faint); display:flex; align-items:center; gap:.8rem; }
.soon-meta .ln{ width:36px; height:1px; background: var(--line-strong); }

/* ===================== CONTACT SCHEDULER ===================== */
.contact-grid{ display:grid; grid-template-columns: 1.35fr 0.85fr; gap: clamp(1.6rem,3vw,3rem); align-items:start; }
.sched{ background: var(--surface); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--hex); padding: clamp(1.5rem,2.5vw,2.4rem); }
.sched-step{ margin-bottom: 1.9rem; }
.sched-step:last-child{ margin-bottom:0; }
.step-label{ font-family: var(--font-mono); font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; color: var(--faint); display:flex; align-items:center; gap:.7rem; margin-bottom: 1rem; }
.step-label .n{ display:inline-grid; place-items:center; width:1.5rem; height:1.5rem; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary); font-size:.7rem; }

.mtype-list{ display:flex; flex-direction:column; gap:.7rem; }
.mtype{
  display:flex; align-items:center; gap:1rem; text-align:left; width:100%;
  padding: 1rem 1.1rem; background: color-mix(in srgb, var(--bg) 35%, transparent);
  box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--hex); cursor:pointer; color: inherit;
  transition: box-shadow .25s var(--ease), transform .2s var(--ease), background .25s var(--ease);
}
.mtype:hover{ transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-strong); }
.mtype[aria-pressed="true"]{ box-shadow: inset 0 0 0 1.5px var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.mtype .dur{ font-family: var(--font-mono); font-weight:600; font-size:1rem; color: var(--primary); min-width: 3.4rem; }
.mtype .mt-body{ display:flex; flex-direction:column; gap:.15rem; }
.mtype .mt-name{ font-weight:600; font-size: var(--step-0); }
.mtype .mt-desc{ font-size:.84rem; color: var(--muted); }
.mtype .mt-check{ margin-left:auto; width:1.1rem; height:1.1rem; border-radius:50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); display:grid; place-items:center; transition: all .2s var(--ease); }
.mtype[aria-pressed="true"] .mt-check{ box-shadow: inset 0 0 0 1.5px var(--primary); background: var(--primary); }
.mtype[aria-pressed="true"] .mt-check::after{ content:""; width:.42rem; height:.42rem; border-radius:50%; background:#120a02; }

.chip-row{ display:flex; flex-wrap:wrap; gap:.55rem; }
.chip{
  font-family: var(--font-mono); font-size:.82rem; letter-spacing:.02em;
  padding:.6rem .9rem; background: color-mix(in srgb, var(--bg) 35%, transparent);
  box-shadow: inset 0 0 0 1px var(--line); cursor:pointer; color: var(--text-soft);
  clip-path: polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);
  transition: all .2s var(--ease); display:flex; flex-direction:column; align-items:center; gap:.15rem; min-width: 4.4rem;
}
.chip .d-dow{ font-size:.66rem; color: var(--muted); letter-spacing:.12em; text-transform:uppercase; }
.chip:hover{ box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); }
.chip[aria-pressed="true"]{ box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.chip:disabled{ opacity:.3; cursor:not-allowed; }

.sched-disabled{ opacity:.4; pointer-events:none; filter: grayscale(.3); transition: opacity .3s var(--ease); }

.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap:.7rem; }
.field{ display:flex; flex-direction:column; gap:.4rem; margin-bottom:.7rem; }
.field label{ font-family: var(--font-mono); font-size:.66rem; letter-spacing:.16em; text-transform:uppercase; color: var(--faint); }
.field input{
  font-family: var(--font-sans); font-size:.95rem; color: var(--text);
  background: color-mix(in srgb, var(--bg) 45%, transparent); border:none;
  box-shadow: inset 0 0 0 1px var(--line); padding:.7rem .85rem;
  clip-path: polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);
  transition: box-shadow .2s var(--ease);
}
.field input:focus{ outline:none; box-shadow: inset 0 0 0 1.5px var(--primary); }
.field input::placeholder{ color: var(--faint); }

.summary{ font-family: var(--font-mono); font-size:.82rem; color: var(--muted); margin: 0 0 1rem; min-height:1.2em; }
.summary b{ color: var(--primary); font-weight:600; }

.confirm-panel{
  display:none; text-align:center; padding: clamp(2rem,4vw,3rem) clamp(1.5rem,3vw,2.5rem);
  background: var(--surface); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 40%, transparent), var(--halo); clip-path: var(--hex);
}
.confirm-panel.show{ display:block; animation: fadeUp .6s var(--ease) both; }
.confirm-panel .big{ font-size: clamp(1.5rem,2.4vw,2.2rem); font-weight:700; margin:.8rem 0; }
.confirm-panel .det{ color: var(--muted); font-size: var(--step-0); line-height:1.6; }
.confirm-panel .det b{ color: var(--text); font-weight:600; }

/* contact aside */
.aside-card{ background: var(--surface); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--hex); padding: clamp(1.5rem,2.4vw,2.2rem); }
.aside-card + .aside-card{ margin-top: 1rem; }
.aside-label{ font-family: var(--font-mono); font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; color: var(--faint); margin-bottom:.8rem; }
.aside-email{ font-size: clamp(1.1rem,1.6vw,1.45rem); font-weight:600; color: var(--text); letter-spacing:-0.01em; word-break: break-word; }
.aside-email:hover{ color: var(--primary); }
.aside-row{ display:flex; flex-direction:column; gap:.3rem; margin-top: 1.1rem; }
.aside-row:first-of-type{ margin-top:0; }
.aside-row .v{ font-weight:600; color: var(--text-soft); }
.aside-row .v small{ color: var(--muted); font-weight:400; }

/* ===================== FOOTER ===================== */
.site-footer{
  position: relative; z-index: 1; border-top: 1px solid var(--line);
  margin-top: clamp(2rem,6vh,4rem); padding: 1.8rem var(--edge) 2.4rem;
  max-width: var(--maxw); margin-left:auto; margin-right:auto;
  display:flex; flex-wrap:wrap; gap: 1rem 2rem; align-items:center; justify-content:space-between;
  font-family: var(--font-mono); font-size:.72rem; letter-spacing:.06em; color: var(--faint);
}
.site-footer a{ color: var(--muted); }
.site-footer a:hover{ color: var(--primary); }
.site-footer .konami{ display:flex; align-items:center; gap:.7rem; opacity:.85; }
.site-footer .konami .seq{ display:inline-flex; gap:.26rem; }
.site-footer .konami .seq span{ display:inline-grid; place-items:center; min-width:1.35em; padding:.12em .3em; box-shadow: inset 0 0 0 1px var(--line); border-radius:3px; color: var(--muted); }

/* ===================== TOAST ===================== */
.toast{
  position: fixed; left:50%; bottom: 2rem; transform: translate(-50%, 160%); z-index: 80;
  display:flex; align-items:center; gap:.8rem; padding:.9rem 1.3rem;
  font-family: var(--font-mono); font-size:.8rem; letter-spacing:.06em; color: var(--text);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong), var(--halo); backdrop-filter: blur(14px);
  clip-path: var(--hex); transition: transform .55s var(--ease);
}
.toast.show{ transform: translate(-50%, 0); }
.toast .k{ color: var(--primary); }

/* whisper (home) */
.whisper{
  position: absolute; left:50%; bottom: clamp(1rem,2.4vh,1.6rem); transform: translateX(-50%);
  z-index: 5; text-align:center; white-space: nowrap; display:flex; align-items:center; gap:.7rem;
  font-family: var(--font-mono); font-size:.62rem; letter-spacing:.12em; color: var(--faint); opacity:.8;
}
.whisper .seq{ display:inline-flex; gap:.28rem; flex-wrap:wrap; justify-content:center; }
.whisper .seq span{ display:inline-grid; place-items:center; min-width:1.4em; padding:.15em .35em; box-shadow: inset 0 0 0 1px var(--line); border-radius:3px; color: var(--muted); }

/* ===================== ANIMATION ===================== */
.fade-up{ opacity:0; transform: translateY(26px); }
.ready .fade-up{ animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, 0ms); }
.reveal{ opacity:0; transform: translateY(30px); }
.reveal.in{ animation: fadeUp .85s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes fadeUp{ to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .fade-up, .reveal{ opacity:1 !important; transform:none !important; animation:none !important; }
  .status .dot, .cue .rail::after{ animation:none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px){
  .editorial{ grid-template-columns: 1fr; gap: 1.6rem; }
  .editorial .pull{ position: static; }
  .contact-grid{ grid-template-columns: 1fr; }
  .phi-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 880px){
  .nav-toggle{ display:flex; }
  .brand{ margin-right:auto; }
  .brand .tag{ display:none; }
  .cue{ display:none; }
  /* nav links become a slide-down panel toggled by the hamburger */
  .nav-links{
    position:fixed; top:var(--nav-h); left:0; right:0;
    flex-direction:column; align-items:stretch; gap:0;
    padding:.4rem var(--edge) 1.2rem;
    background:color-mix(in srgb, var(--bg) 96%, transparent);
    -webkit-backdrop-filter:blur(16px) saturate(1.1); backdrop-filter:blur(16px) saturate(1.1);
    border-bottom:1px solid var(--line);
    transform:translateY(-12px); opacity:0; pointer-events:none;
    transition:opacity .25s var(--ease), transform .25s var(--ease);
    z-index:49;
  }
  .nav.open .nav-links{ transform:none; opacity:1; pointer-events:auto; }
  .nav-links a{ padding:.95rem .2rem; font-size:1.05rem; border-bottom:1px solid var(--line); }
  .nav-links a:last-child{ border-bottom:0; }
  .nav-links a::after{ display:none; }
}
@media (max-width: 700px){
  /* let the hero grow with its content instead of clipping at 100svh */
  .stage{ height:auto; min-height:100svh; overflow:visible; }
  .hero{ padding-bottom: clamp(2rem,5vh,3rem); }
  .hero h1{ font-size: clamp(2.1rem, 9vw, 3.1rem); margin-bottom:1.1rem; }
  .hero .sub{ font-size:1rem; margin-bottom:1.5rem; }
  .hero-top{ padding-top:.5rem; }
  .status{ font-size:.6rem; padding:.4rem .7rem; }
  .hero-actions{ width:100%; }
  .hero-actions .btn{ flex:1 1 auto; justify-content:center; }
  /* arcade command line keeps tight to the buttons on mobile */
  [data-theme="arcade"] .cmdline{ margin-bottom:1rem; font-size:.82rem; }
  /* greetz box must NOT cover the CTAs — drop it into normal flow, full width */
  [data-theme="arcade"] .arcade-footer{
    position:static; right:auto; bottom:auto; z-index:auto;
    max-width:none; width:auto; margin:1.5rem var(--edge) 2rem;
    font-size:.7rem;
  }
}
@media (max-width: 560px){
  .nav-cta .btn{ --pad-x:1rem; font-size:.78rem; }
  .brand .name{ font-size:.86rem; }
  .field-row{ grid-template-columns: 1fr; }
  .site-footer{ flex-direction:column; align-items:flex-start; }
}

/* ============================================================
   ARCADE THEME SKIN — late-90s warez-scene / 8-bit
   (everything below applies only under [data-theme="arcade"])
   ============================================================ */
.arcade-only{ display:none !important; }
[data-theme="arcade"] .arcade-only{ display:block !important; }
[data-theme="arcade"] .corp-only{ display:none !important; }

/* pixelated hero canvas */
[data-theme="arcade"] #hive{ image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---- TYPE ---- */
[data-theme="arcade"] body{ font-family:"IBM Plex Mono", monospace; }
[data-theme="arcade"] .hero h1,
[data-theme="arcade"] .page-title,
[data-theme="arcade"] .soon-title,
[data-theme="arcade"] .lede-quote,
[data-theme="arcade"] .editorial .pull,
[data-theme="arcade"] .fact .k,
[data-theme="arcade"] .confirm-panel .big{
  font-family:"VT323", monospace !important;
  font-weight:400 !important; letter-spacing:.01em; line-height:1.02;
  text-shadow:0 0 10px rgba(0,255,65,.55), 0 0 2px rgba(0,255,65,.9);
}
[data-theme="arcade"] .eyebrow,
[data-theme="arcade"] .status,
[data-theme="arcade"] .nav-links a,
[data-theme="arcade"] .step-label,
[data-theme="arcade"] .aside-label,
[data-theme="arcade"] .bgsw-item,
[data-theme="arcade"] .svc-card .num,
[data-theme="arcade"] .phi-num,
[data-theme="arcade"] .field label{
  font-family:"Share Tech Mono", monospace !important;
}
[data-theme="arcade"] .hero h1 .vuln,
[data-theme="arcade"] .orange{
  -webkit-text-fill-color: currentColor; background:none; color:var(--accent);
  text-shadow:0 0 10px rgba(0,255,255,.6);
}

/* ---- neon glow + sharp corners ---- */
[data-theme="arcade"] .btn,
[data-theme="arcade"] .phi-card,
[data-theme="arcade"] .svc-card,
[data-theme="arcade"] .sched,
[data-theme="arcade"] .aside-card,
[data-theme="arcade"] .mtype,
[data-theme="arcade"] .chip,
[data-theme="arcade"] .status,
[data-theme="arcade"] .toast,
[data-theme="arcade"] .confirm-panel,
[data-theme="arcade"] .field input,
[data-theme="arcade"] .hexmark,
[data-theme="arcade"] .step-label .n{
  clip-path:none !important; border-radius:0 !important;
}
[data-theme="arcade"] .muted, [data-theme="arcade"] .page-lead,
[data-theme="arcade"] .hero .sub, [data-theme="arcade"] .svc-card p,
[data-theme="arcade"] .phi-card p{ color:var(--muted); }

/* ---- NAV (terminal/bracket) ---- */
[data-theme="arcade"] .nav.is-stuck{ background:rgba(6,10,6,.85); border-bottom-color:var(--line-strong); }
[data-theme="arcade"] .nav-links a{ color:var(--muted); letter-spacing:.02em; }
[data-theme="arcade"] .nav-links a:hover,
[data-theme="arcade"] .nav-links a.active{ color:var(--primary); text-shadow:0 0 8px rgba(0,255,65,.7); }
[data-theme="arcade"] .nav-links a::after{ display:none; }
[data-theme="arcade"] .brand .name{ font-family:"VT323",monospace; letter-spacing:.12em; }
[data-theme="arcade"] .brand .name b{ color:var(--accent); }
[data-theme="arcade"] .brand .tag{ color:var(--faint); }

/* ---- BUTTONS (terminal) ---- */
[data-theme="arcade"] .btn{
  background:transparent !important; color:var(--primary) !important;
  box-shadow: inset 0 0 0 1px var(--primary), 0 0 10px rgba(0,255,65,.35) !important;
  text-shadow:0 0 6px rgba(0,255,65,.6);
  font-family:"Share Tech Mono", monospace; letter-spacing:.04em;
}
[data-theme="arcade"] .btn:hover{ background:rgba(0,255,65,.12) !important; transform:none; filter:none; box-shadow: inset 0 0 0 1px var(--primary), 0 0 16px rgba(0,255,65,.6) !important; }
[data-theme="arcade"] .btn--ghost{ color:var(--accent) !important; box-shadow: inset 0 0 0 1px var(--accent), 0 0 10px rgba(0,255,255,.3) !important; text-shadow:0 0 6px rgba(0,255,255,.6); }

/* ---- blinking block cursor ---- */
@keyframes blk{ 0%,49%{opacity:1} 50%,100%{opacity:0} }
[data-theme="arcade"] .cl-cur,
[data-theme="arcade"] .blink-cur{
  display:inline-block; width:.55em; height:1.05em; margin-left:.12em; vertical-align:-0.16em;
  background:var(--primary); box-shadow:0 0 8px var(--primary); animation:blk 1s steps(1) infinite;
}

/* ---- hero command line ---- */
[data-theme="arcade"] .cmdline{
  font-family:"Share Tech Mono", monospace; font-size:var(--step-0);
  color:var(--text-soft); margin: 0 0 1.6rem; letter-spacing:.01em;
  text-shadow:0 0 6px rgba(0,255,65,.4); word-break:break-word;
}
[data-theme="arcade"] .cmdline .cl-prompt{ color:var(--accent); text-shadow:0 0 6px rgba(0,255,255,.5); }

/* ---- CRT flicker + roll ---- */
.crt-flicker{ position:fixed; inset:0; z-index:60; pointer-events:none; }
[data-theme="arcade"] .crt-flicker{
  background:
    linear-gradient(rgba(0,255,65,0.025), rgba(0,255,65,0.0) 60%),
    radial-gradient(120% 120% at 50% 50%, transparent 60%, rgba(0,255,65,0.05));
  animation: crtFlick .14s steps(2,end) infinite;
}
[data-theme="arcade"] .crt-flicker::after{
  content:""; position:absolute; left:0; right:0; height:18%;
  background:linear-gradient(rgba(255,255,255,0.04), rgba(255,255,255,0));
  animation: crtRoll 7s linear infinite;
}
@keyframes crtFlick{ 0%{opacity:.85} 50%{opacity:1} 100%{opacity:.9} }
@keyframes crtRoll{ 0%{top:-20%} 100%{top:120%} }
@media (prefers-reduced-motion: reduce){ [data-theme="arcade"] .crt-flicker{ animation:none; } [data-theme="arcade"] .crt-flicker::after{ animation:none; display:none; } }

/* ---- arcade .nfo footer (greetz) ---- */
[data-theme="arcade"] .whisper{ display:none; }
.arcade-footer{
  position:fixed; right:14px; bottom:14px; z-index:58; max-width:min(380px,48vw);
  padding:.7rem .85rem; background:rgba(2,8,4,.86);
  box-shadow: inset 0 0 0 1px var(--primary), 0 0 16px rgba(0,255,65,.22);
  font-family:"Share Tech Mono", monospace; font-size:.66rem; line-height:1.55; color:var(--muted);
}
.arcade-footer .greetz{ color:var(--primary); text-shadow:0 0 6px rgba(0,255,65,.5); margin-bottom:.35rem; }
.arcade-footer .greetz b{ color:var(--accent); font-weight:400; }
.arcade-footer .af-row{ display:flex; justify-content:space-between; gap:.6rem; flex-wrap:wrap; border-top:1px dashed var(--line-strong); margin-top:.4rem; padding-top:.4rem; }
.arcade-footer .visitors b{ color:var(--amber); text-shadow:0 0 6px rgba(255,255,0,.5); }
.arcade-footer .powered{ color:var(--faint); font-style:italic; }
.arcade-footer .konami-hint{ color:var(--text-soft); letter-spacing:.16em; margin-top:.4rem; }
[data-theme="arcade"] .arcade-footer{ display:block; }

/* ---- cards / inputs neon ---- */
[data-theme="arcade"] .phi-card, [data-theme="arcade"] .svc-card,
[data-theme="arcade"] .sched, [data-theme="arcade"] .aside-card,
[data-theme="arcade"] .confirm-panel{
  background:rgba(2,16,6,.6); box-shadow: inset 0 0 0 1px var(--line-strong);
}
[data-theme="arcade"] .phi-card:hover, [data-theme="arcade"] .svc-card:hover{
  transform:none; box-shadow: inset 0 0 0 1px var(--primary), 0 0 16px rgba(0,255,65,.3);
}
[data-theme="arcade"] .svc-card:hover h3, [data-theme="arcade"] .phi-card h3{ color:var(--primary); text-shadow:0 0 8px rgba(0,255,65,.5); }
[data-theme="arcade"] .svc-card .edge{ background:var(--primary); }
[data-theme="arcade"] .hexmark{ background:rgba(0,255,65,.1); box-shadow: inset 0 0 0 1px var(--primary); color:var(--primary); }
[data-theme="arcade"] .mtype[aria-pressed="true"], [data-theme="arcade"] .chip[aria-pressed="true"]{
  box-shadow: inset 0 0 0 1px var(--primary), 0 0 12px rgba(0,255,65,.4); background:rgba(0,255,65,.1);
}
[data-theme="arcade"] .mtype .dur{ color:var(--accent); }
[data-theme="arcade"] .field input:focus{ box-shadow: inset 0 0 0 1px var(--primary), 0 0 12px rgba(0,255,65,.4); }
[data-theme="arcade"] .aside-email:hover{ color:var(--accent); }
[data-theme="arcade"] ::selection{ background:var(--primary); color:#031007; }

/* ---- status / switcher ---- */
[data-theme="arcade"] .status{ box-shadow: inset 0 0 0 1px var(--line-strong); color:var(--muted); }
[data-theme="arcade"] .status .dot{ background:var(--primary); box-shadow:0 0 8px var(--primary); border-radius:0; }
[data-theme="arcade"] .bgsw-item.active{ color:var(--primary); }
[data-theme="arcade"] .bgsw-item.active .bgsw-dot{ background:var(--primary); box-shadow:0 0 8px var(--primary); clip-path:none; }
[data-theme="arcade"] .bg-switcher .bgsw-head{ color:var(--faint); }

/* ---- toast ---- */
[data-theme="arcade"] .toast{ background:rgba(2,12,5,.92); box-shadow: inset 0 0 0 1px var(--primary), 0 0 18px rgba(0,255,65,.3); }
[data-theme="arcade"] .toast .k{ color:var(--accent); }

/* ---- arcade hero sizing + layout fixes (VT323 runs tall/wide) ---- */
[data-theme="arcade"] .hero h1{ font-size: clamp(1.8rem, 1rem + 2.4vw, 2.9rem); line-height:1.18; margin-bottom:2.2rem; }
[data-theme="arcade"] .hero .sub{ margin-bottom:1.1rem; }
[data-theme="arcade"] .page-title{ line-height:0.95; }
[data-theme="arcade"] .soon-title{ line-height:0.9; }
[data-theme="arcade"] .lede-quote,[data-theme="arcade"] .editorial .pull{ line-height:1.0; }
[data-theme="arcade"] .bg-switcher{ bottom: 172px; }

/* ===================== MOBILE: visible + tappable Konami ===================== */
.whisper, .site-footer .konami, .arcade-footer, .konami-hint{ cursor:pointer; -webkit-tap-highlight-color: rgba(247,147,30,.18); }
@media (max-width: 700px){
  .whisper{
    position:static; left:auto; bottom:auto; transform:none;
    margin:.4rem auto calc(1.25rem + env(safe-area-inset-bottom));
    white-space: normal; flex-wrap: wrap; justify-content:center; text-align:center;
    width: min(92%, 40rem); font-size:.64rem; line-height:1.6; gap:.4rem;
  }
  /* arrows are keyboard-only — replace with a tap hint on touch screens */
  .whisper .seq, .site-footer .konami .seq{ display:none; }
  .whisper::after, .site-footer .konami::after{
    content:"⟶ tap 3× to unlock arcade"; color:var(--primary); opacity:.95;
    letter-spacing:.08em; font-weight:600;
  }
  [data-theme="arcade"] .site-footer .konami::after{ content:"⟶ tap 3× to exit arcade"; }
  .konami-hint::after{ content:" · tap 3×"; opacity:.85; }
}

/* ============================================================
   BLOG / FIELD WORKBOOK READER  (blog-post.html + rendered .md)
   Theme-aware via var() tokens -> renders in corporate AND arcade.
   ============================================================ */
.post-wrap{ max-width: 880px; margin:0 auto; padding: calc(var(--nav-h) + 2.2rem) var(--edge) 5rem; }
.post-back{ display:inline-block; font-family:var(--font-mono); font-size:.8rem; letter-spacing:.06em;
  color:var(--muted); text-decoration:none; margin-bottom:1.6rem; }
.post-back:hover{ color:var(--primary); }
.loading-line{ font-family:var(--font-mono); color:var(--faint); }

.post-head{ border-bottom:1px solid var(--line); padding-bottom:1.7rem; margin-bottom:2.4rem; }
.post-head .eyebrow{ font-family:var(--font-mono); font-size:.72rem; letter-spacing:.18em;
  text-transform:uppercase; color:var(--primary); margin-bottom:.6rem; }
.post-title{ font-size:clamp(2rem,1.3rem + 3vw,3.3rem); line-height:1.05; letter-spacing:-.022em;
  margin:.2rem 0 .7rem; color:var(--text); }
.post-sub{ font-size:1.15rem; color:var(--muted); line-height:1.45; max-width:62ch; }
.pmeta{ display:flex; flex-wrap:wrap; gap:.55rem; margin-top:1.2rem; }
.pchip{ font-family:var(--font-mono); font-size:.72rem; letter-spacing:.03em; color:var(--text-soft);
  padding:.32rem .62rem; box-shadow:inset 0 0 0 1px var(--line-strong); border-radius:4px; }
.pchip b{ color:var(--primary); font-weight:600; }
.ptags{ margin-top:.9rem; display:flex; gap:.7rem; flex-wrap:wrap; }
.ptag{ font-family:var(--font-mono); font-size:.7rem; color:var(--faint); }

/* ---- rendered markdown prose ---- */
.prose{ color:var(--text-soft); font-size:1.03rem; line-height:1.72; }
.prose > *:first-child{ margin-top:0; }
.prose h2{ font-size:1.6rem; margin:2.8rem 0 1rem; padding-top:1.4rem; border-top:1px solid var(--line);
  color:var(--text); letter-spacing:-.012em; }
.prose h3{ font-size:1.24rem; margin:2.1rem 0 .8rem; color:var(--text); }
.prose h4{ font-size:1.02rem; margin:1.6rem 0 .6rem; color:var(--text-soft); }
.prose p{ margin:0 0 1.1rem; }
.prose a{ color:var(--primary); text-decoration:underline; text-underline-offset:3px;
  text-decoration-thickness:1px; text-decoration-color:rgba(255,255,255,.25); }
.prose a:hover{ text-decoration-color:var(--primary); }
.prose ul,.prose ol{ margin:0 0 1.1rem; padding-left:1.4rem; }
.prose li{ margin:.35rem 0; }
.prose li::marker{ color:var(--primary); }
.prose strong{ color:var(--text); font-weight:650; }
.prose em{ color:var(--text-soft); }
.prose hr{ border:0; border-top:1px solid var(--line); margin:2.6rem 0; }
.prose blockquote{ border-left:3px solid var(--line-strong); margin:0 0 1.1rem;
  padding:.2rem 0 .2rem 1.1rem; color:var(--muted); }
.prose code{ font-family:var(--font-mono); font-size:.86em; background:var(--surface-2);
  padding:.12em .42em; border-radius:4px; color:var(--text-soft); }
.prose pre{ background:var(--bg-deep); border:1px solid var(--line-strong); border-radius:8px;
  padding:1rem 1.1rem; overflow:auto; margin:0 0 1.3rem; }
.prose pre code{ background:none; padding:0; font-size:.82rem; line-height:1.62; color:var(--text-soft); }
.prose table{ width:100%; border-collapse:collapse; margin:0 0 1.4rem; font-size:.92rem;
  display:block; overflow-x:auto; }
.prose th,.prose td{ border:1px solid var(--line-strong); padding:.55rem .72rem; text-align:left; vertical-align:top; }
.prose th{ background:var(--surface-2); color:var(--text); font-family:var(--font-mono);
  font-size:.76rem; letter-spacing:.03em; text-transform:uppercase; }
.prose img{ max-width:100%; border-radius:8px; border:1px solid var(--line); margin:.4rem 0 1.2rem; }

/* ---- Obsidian-style callouts ---- */
.callout{ --cc: var(--primary); margin:1.5rem 0; padding:.9rem 1.1rem; border-left:3px solid var(--cc);
  border-radius:6px; background: color-mix(in srgb, var(--cc) 9%, transparent);
  box-shadow: inset 0 0 0 1px var(--line); }
.callout-title{ font-family:var(--font-mono); font-weight:600; font-size:.9rem; letter-spacing:.02em;
  color:var(--cc); margin-bottom:.5rem; }
.callout-body{ color:var(--text-soft); }
.callout-body > *:last-child{ margin-bottom:0; }
.callout-body pre{ background:rgba(0,0,0,.35); }
details.callout > summary{ cursor:pointer; list-style:none; }
details.callout > summary::-webkit-details-marker{ display:none; }
details.callout > summary.callout-title::after{ content:" \25B8"; color:var(--cc); }
details.callout[open] > summary.callout-title::after{ content:" \25BE"; }
details.callout:not([open]) > summary.callout-title{ margin-bottom:0; }
.callout-question,.callout-todo{ --cc:#818cf8; }
.callout-hint,.callout-tip{ --cc:#facc15; }
.callout-success{ --cc:#34d399; }
.callout-warning,.callout-caution{ --cc:#fbbf24; }
.callout-danger,.callout-failure,.callout-bug{ --cc:#fb7185; }
.callout-note,.callout-info,.callout-abstract{ --cc:#7dd3fc; }
.callout-example{ --cc:#c084fc; }
.callout-quote{ --cc:var(--muted); }

.post-foot{ display:flex; gap:.8rem; flex-wrap:wrap; margin-top:3.2rem; padding-top:1.7rem;
  border-top:1px solid var(--line); }

/* arcade: retro headings on the workbook too */
[data-theme="arcade"] .post-title,
[data-theme="arcade"] .prose h2,
[data-theme="arcade"] .prose h3{ font-family:"VT323", monospace; font-weight:400;
  letter-spacing:.01em; text-shadow:0 0 8px rgba(0,255,65,.4); }

@media (max-width:700px){
  .post-wrap{ padding-top: calc(var(--nav-h) + 1.1rem); }
  .prose{ font-size:1rem; }
  .post-foot .btn{ flex:1 1 auto; justify-content:center; }
}

/* ---- blog index (post cards) ---- */
.blog-index .post-list{ max-width: 980px; margin: 2.4rem auto 0; display:grid; gap:1.2rem; }
.post-card{ display:block; padding:1.6rem 1.7rem; border-radius:12px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover{ transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 18px 44px -22px rgba(0,0,0,.8); }
.pc-series{ font-family:var(--font-mono); font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--primary); }
.pc-title{ font-size:1.5rem; line-height:1.12; margin:.6rem 0 .55rem; color:var(--text); letter-spacing:-.01em; }
.pc-sub{ color:var(--muted); line-height:1.55; max-width:64ch; }
.pc-sub code{ font-family:var(--font-mono); font-size:.85em; color:var(--text-soft); }
.pc-meta{ display:flex; flex-wrap:wrap; gap:.5rem; margin:1.1rem 0 .9rem; }
.pc-meta span{ font-family:var(--font-mono); font-size:.7rem; letter-spacing:.03em; color:var(--text-soft);
  padding:.28rem .55rem; box-shadow:inset 0 0 0 1px var(--line-strong); border-radius:4px; }
.pc-go{ font-family:var(--font-mono); font-size:.82rem; letter-spacing:.04em; color:var(--primary); }
[data-theme="arcade"] .pc-title{ font-family:"VT323",monospace; font-weight:400; text-shadow:0 0 8px rgba(0,255,65,.4); }

/* ============================================================
   STORE (store.html) — product grid + cart drawer
   ============================================================ */
.store-grid{ max-width:1100px; margin:2.4rem auto 0; display:grid;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:1.4rem; }
.prod-card{ display:flex; flex-direction:column; border-radius:14px; overflow:hidden;
  background:var(--surface); box-shadow:inset 0 0 0 1px var(--line);
  transition:transform .25s var(--ease), box-shadow .3s var(--ease); }
.prod-card:hover{ transform:translateY(-3px);
  box-shadow:inset 0 0 0 1px var(--line-strong), 0 18px 44px -22px rgba(0,0,0,.8); }
.prod-img{ background:linear-gradient(160deg, var(--surface-2), var(--bg-deep)); }
.prod-img img{ display:block; width:100%; height:auto; }
.prod-body{ padding:1.3rem 1.4rem 1.4rem; display:flex; flex-direction:column; flex:1; }
.prod-name{ font-size:1.18rem; line-height:1.2; color:var(--text); margin-bottom:.5rem; }
.prod-blurb{ color:var(--muted); font-size:.92rem; line-height:1.5; margin-bottom:.9rem; }
.prod-specs{ list-style:none; margin:0 0 1.1rem; padding:0; display:grid; gap:.32rem; }
.prod-specs li{ font-family:var(--font-mono); font-size:.76rem; color:var(--text-soft);
  padding-left:1rem; position:relative; }
.prod-specs li::before{ content:"▸"; position:absolute; left:0; color:var(--primary); }
.prod-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:.8rem; }
.prod-price{ font-family:var(--font-mono); font-size:1.1rem; font-weight:600; color:var(--primary); }
.store-note{ text-align:center; color:var(--muted); margin:2.4rem auto 0; font-size:.9rem; }
.store-note a{ color:var(--primary); }
[data-theme="arcade"] .prod-name{ font-family:"VT323",monospace; font-weight:400; text-shadow:0 0 8px rgba(0,255,65,.4); }

/* cart fab + drawer */
.cart-fab{ position:fixed; right:18px; bottom:18px; z-index:55; display:inline-flex; align-items:center; gap:.5rem;
  font-family:var(--font-mono); font-size:.82rem; letter-spacing:.04em; color:var(--text);
  padding:.7rem 1.1rem; cursor:pointer; border:0; background:var(--surface-2);
  box-shadow:inset 0 0 0 1px var(--line-strong), 0 10px 30px -12px rgba(0,0,0,.8); border-radius:999px; }
.cart-count{ display:inline-grid; place-items:center; min-width:1.4em; height:1.4em; padding:0 .35em;
  background:var(--primary); color:#0b0b0b; border-radius:999px; font-weight:700; font-size:.74rem; }
.cart{ position:fixed; top:0; right:0; bottom:0; width:min(380px,92vw); z-index:60;
  display:flex; flex-direction:column; background:var(--bg-deep);
  box-shadow:-20px 0 60px -20px rgba(0,0,0,.9), inset 1px 0 0 var(--line-strong); }
.cart-head{ display:flex; align-items:center; justify-content:space-between; padding:1.2rem 1.3rem;
  font-family:var(--font-mono); letter-spacing:.04em; color:var(--text); border-bottom:1px solid var(--line); }
.cart-x{ background:none; border:0; color:var(--muted); font-size:1.5rem; cursor:pointer; line-height:1; }
.cart-body{ flex:1; overflow:auto; padding:1rem 1.3rem; }
.cart-empty{ color:var(--faint); font-family:var(--font-mono); font-size:.85rem; }
.cart-row{ display:grid; grid-template-columns:1fr auto auto; gap:.7rem; align-items:center;
  padding:.7rem 0; border-bottom:1px solid var(--line); }
.cr-name{ font-size:.86rem; color:var(--text-soft); }
.cr-qty{ display:inline-flex; align-items:center; gap:.5rem; font-family:var(--font-mono); color:var(--text); }
.cr-qty button{ width:1.7em; height:1.7em; border:0; cursor:pointer; border-radius:4px;
  background:var(--surface-2); color:var(--text); box-shadow:inset 0 0 0 1px var(--line-strong); }
.cr-price{ font-family:var(--font-mono); font-size:.82rem; color:var(--primary); }
.cart-foot{ padding:1.2rem 1.3rem; border-top:1px solid var(--line); }
.cart-total{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:.9rem;
  font-family:var(--font-mono); color:var(--text); }
.cart-total b{ color:var(--primary); font-size:1.2rem; }
.cart-foot .btn{ width:100%; justify-content:center; }
.cart-msg{ margin-top:.7rem; min-height:1.1em; font-family:var(--font-mono); font-size:.78rem; color:var(--muted); }

/* ensure the [hidden] attribute always wins over component display rules */
[hidden]{ display:none !important; }

/* ---- blog index: a "series" (box build guide + daily breakdowns) ---- */
.series{ display:block; }
.series .post-card{ display:block; }
.series-days{ list-style:none; margin:.7rem 0 0; padding:0 0 0 .2rem; display:grid; gap:.45rem; }
.series-days li a{ display:flex; align-items:baseline; gap:.7rem; padding:.7rem 1rem;
  border-radius:9px; background:var(--surface); box-shadow:inset 0 0 0 1px var(--line);
  color:var(--text-soft); font-size:.95rem; line-height:1.3;
  transition:transform .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease); }
.series-days li a:hover{ transform:translateX(3px); color:var(--text);
  box-shadow:inset 0 0 0 1px var(--line-strong); }
.series-days b{ font-family:var(--font-mono); font-size:.7rem; letter-spacing:.07em;
  text-transform:uppercase; color:var(--primary); min-width:3.4em; flex:0 0 auto; }
.series-days .sd-t{ flex:1 1 auto; }
.series-days code{ font-family:var(--font-mono); font-size:.85em; color:var(--text); }
.sd-tag{ flex:0 0 auto; font-family:var(--font-mono); font-size:.64rem; letter-spacing:.04em;
  color:var(--faint); padding:.2rem .5rem; box-shadow:inset 0 0 0 1px var(--line-strong); border-radius:5px; }
@media (max-width:560px){ .series-days .sd-tag{ display:none; } }

/* ===== The Hive LV (companion site) specifics ===== */
.lv-topics{ display:flex; flex-wrap:wrap; gap:.55rem; justify-content:center; max-width:780px; margin:1.6rem auto 0; }
.lv-topics span{ font-family:var(--font-mono); font-size:.74rem; letter-spacing:.03em; color:var(--text-soft);
  padding:.42rem .75rem; box-shadow:inset 0 0 0 1px var(--line-strong); border-radius:6px; }
.lv-cross{ margin:1.6rem auto 0; color:var(--muted); font-size:.95rem; }
.lv-cross a{ color:var(--primary); }
[data-theme="arcade"] .lv-topics span{ font-family:"Share Tech Mono", monospace; }
/* smooth-scroll offset so anchored sections clear the fixed nav */
#train, #contact{ scroll-margin-top: calc(var(--nav-h) + 1.2rem); }

/* ===== weekly class banner (homepage hero) - stacked, centered, wide ===== */
.class-banner{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:.35rem;
  width:100%; max-width:min(1120px, 95vw); margin:0 auto .5rem; padding:0; background:none; box-shadow:none; }
.cb-line{ margin:0; }
.cb-key{ font-family:var(--font-mono); font-size:1rem; letter-spacing:.06em; text-transform:uppercase; color:var(--primary); }
.cb-box{ font-weight:700; font-size:1.4rem; color:var(--text); letter-spacing:.03em; }
.cb-conceptline{ color:var(--muted); font-size:1.15rem; line-height:1.4; }
.cb-blurb{ color:var(--muted); }
.cb-countline{ display:flex; align-items:baseline; justify-content:center; gap:.8rem; flex-wrap:wrap; margin-top:.3rem; }
.cb-count{ font-family:var(--font-mono); font-weight:600; color:var(--primary); letter-spacing:.015em;
  font-size:clamp(1.9rem, 1.2rem + 2.4vw, 2.85rem); line-height:1;
  text-shadow:0 0 26px rgba(var(--glow),0.45), 0 0 2px rgba(var(--glow),0.6); }
.cb-count.cb-live{ animation:blip 1.4s var(--ease) infinite; }
.cb-when{ font-family:var(--font-mono); font-size:.85rem; letter-spacing:.04em; color:var(--faint); }
.cb-addr{ font-family:var(--font-mono); font-size:1rem; letter-spacing:.03em; color:var(--faint); }
[data-theme="arcade"] .cb-box,[data-theme="arcade"] .cb-count{ font-family:"Share Tech Mono",monospace; }
@media (max-width:920px){ .cb-conceptline{ font-size:.95rem; } .cb-box{ font-size:1.2rem; } .cb-addr{ font-size:.86rem; } .cb-key{ font-size:.85rem; } }
