/* ============================================================
   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; }

/* ===================== 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-links{ display:none; }
  .brand .tag{ display:none; }
  .cue{ display:none; }
}
@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; }
