/* 'corePHP' - Living Core design system
   DNA: dark-cinematic-single-voltage / living-core / particle-assemble
   Do not edit by hand; this is the shared system for every page. */

/* ------------------------------------------------------------------ *
 *  Tokens
 * ------------------------------------------------------------------ */
:root {
  --base:      #0b0a0c;
  --elevated:  #1c1a1a;
  --card:      #231f20;
  --ink:       #f5f3f1;
  --secondary: #a9b4bd;
  --slate:     #5d6d7e;
  --red:       #e4262c;
  --red-bright:#ff474d;
  --red-dim:   rgba(228,38,44,.14);
  --paper:     #f1ece6;   /* humanity contrast beat */
  --paper-ink: #1a1614;
  --paper-sec: #5a5450;
  --hair:      rgba(255,255,255,.10);
  --hair-strong: rgba(255,255,255,.18);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  /* Label voice: a techy, non-mono face (mono labels are an AI-build tell) */
  --font-mono: "Oxanium", system-ui, sans-serif;
  /* True code/terminal uses the SYSTEM monospace, not a loaded webfont */
  --font-code: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --maxw: 1240px;
  --rail: 46px;               /* left chapter rail width on desktop */

  --z-bg: 0; --z-content: 10; --z-rail: 60; --z-nav: 100;
  --z-menu: 300; --z-terminal: 400; --z-cursor: 500;
}

/* ------------------------------------------------------------------ *
 *  Reset (Tailwind Play preflight is disabled per-page to stop it
 *  flattening h1..h6 after our CSS; keep a small honest reset here)
 * ------------------------------------------------------------------ */
/* Base element resets live in @layer base so Tailwind utilities always win
   (unlayered CSS beats layered CSS regardless of specificity). */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--base);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  h1,h2,h3,h4,h5,h6 { margin: 0; font-family: var(--font-display); line-height: 1; font-weight: 800; }
  p { margin: 0; }
  a { color: inherit; text-decoration: none; }
  img, svg, canvas, video { display: block; max-width: 100%; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  ul { margin: 0; padding: 0; list-style: none; }
}

/* Keyboard focus is always visible */
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 1px; }

/* Skip link (animates transform, never a layout property) */
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 999;
  background: var(--red); color: #fff; padding: 12px 18px;
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em;
  transform: translateY(-180%); transition: transform 180ms var(--ease-out);
}
.skip:focus { transform: none; }

/* ------------------------------------------------------------------ *
 *  Typography scale
 * ------------------------------------------------------------------ */
.mono { font-family: var(--font-mono); }
/* Genuine code + terminal keep a true (system) monospace for alignment */
.code-build, .code-build *, .terminal-bar, .terminal-out, .terminal-in, .terminal-in input, .aiout, .commit .hash { font-family: var(--font-code); }
.eyebrow-mono {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--secondary);
}
.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: .96;
  text-transform: uppercase;
}
/* Balanced, reduced headline scale (one harmonious set across the site) */
.t-hero   { font-size: clamp(2.2rem, 4.8vw, 4.4rem); }
.t-1      { font-size: clamp(1.85rem, 3.6vw, 3.2rem); }
.t-2      { font-size: clamp(1.6rem, 2.8vw, 2.5rem); }
.t-3      { font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.05; }
.lead     { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--secondary); max-width: 42ch; }
.body-narrow { max-width: 64ch; }
.measure  { max-width: 40ch; }

/* ------------------------------------------------------------------ *
 *  Wordmark  ('corePHP' with the required single quotes as red device)
 * ------------------------------------------------------------------ */
.wordmark {
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%;
  text-transform: none; letter-spacing: -0.01em; font-size: 1.35rem;
  color: var(--ink); display: inline-flex; align-items: baseline; line-height: 1;
}
.wordmark .q { color: var(--red); }
.wordmark .core { color: var(--ink); }
.wordmark .php { color: var(--ink); }
.wordmark--lg { font-size: clamp(2rem, 6vw, 4rem); }

/* ------------------------------------------------------------------ *
 *  Layout helpers
 * ------------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 64px); }
/* Fixed nav must never cover a heading jumped to via an in-page anchor */
[id] { scroll-margin-top: 92px; }
.chapter { position: relative; padding-block: clamp(72px, 12vh, 150px); }
.chapter--tight { padding-block: clamp(52px, 8vh, 96px); }
.chapter-index {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em;
  color: var(--red); margin-bottom: 1.4rem; display: inline-flex; gap: .6rem; align-items: center;
}
.chapter-index .n { color: var(--red); }
.chapter-index .lbl { color: var(--secondary); text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; }

/* Recurring thin red rule signature */
.redrule { height: 1px; background: linear-gradient(90deg, var(--red), transparent 62%); border: 0; }
.redrule--full { background: var(--red); opacity: .5; }

/* Light humanity beat */
.human { background: var(--paper); color: var(--paper-ink); }
.human .lead { color: var(--paper-sec); }
.human .eyebrow-mono { color: var(--paper-sec); }
.human .chapter-index .lbl { color: var(--paper-sec); }

/* Faint structural texture: thin scanlines, no overlay blend so blacks stay deep */
.scan::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.016) 0 1px, transparent 1px 5px);
  opacity: .5;
}

/* ------------------------------------------------------------------ *
 *  Buttons
 * ------------------------------------------------------------------ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em;
  padding: 15px 26px; min-height: 48px; border-radius: 999px; overflow: hidden;
  transition: transform 160ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
  will-change: transform;
}
.btn .btn-label { position: relative; z-index: 2; }
.btn .btn-flood {
  position: absolute; z-index: 1; width: 26px; height: 26px; border-radius: 999px;
  background: var(--red);
  left: var(--fx, 50%); top: var(--fy, 50%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 380ms var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary .btn-flood { background: #fff; }
.btn-primary:hover .btn-flood { transform: translate(-50%, -50%) scale(28); }
.btn-primary:hover { color: var(--red); }
.btn-ghost { border: 1px solid var(--hair-strong); color: var(--ink); }
.btn-ghost .btn-flood { background: var(--red); }
.btn-ghost:hover .btn-flood { transform: translate(-50%, -50%) scale(28); }
.btn-ghost:hover { color: #fff; border-color: var(--red); }
.human .btn-ghost { border-color: rgba(0,0,0,.18); color: var(--paper-ink); }
.human .btn-ghost:hover { color: #fff; }
.btn-arrow i { width: 1em; height: 1em; }

/* Estimate pill in nav - quiet glow-pulse */
.btn-estimate { background: var(--red); color: #fff; box-shadow: 0 0 0 rgba(228,38,44,.0); }
@media (hover: hover) { .btn-estimate { animation: glowpulse 3.4s var(--ease-in-out) infinite; } }
@keyframes glowpulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(228,38,44,.32); }
  50%     { box-shadow: 0 0 26px 3px rgba(228,38,44,.45); }
}

/* ------------------------------------------------------------------ *
 *  Navigation bar
 * ------------------------------------------------------------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 48px);
  background: linear-gradient(to bottom, rgba(11,10,12,.88), rgba(11,10,12,.0));
  backdrop-filter: blur(9px);
  border-bottom: 1px solid transparent;
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.nav.scrolled {
  background: rgba(9,8,10,.92); border-bottom-color: var(--hair);
  padding-block: 11px; box-shadow: 0 1px 0 rgba(0,0,0,.4);
}
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-links { display: none; gap: 26px; align-items: center; }
.nav-links a {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .05em; color: var(--secondary);
  position: relative; padding: 6px 0; transition: color 200ms var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after, .nav-links a:hover::after { transform: scaleX(1); }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 4px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.menu-toggle .bars { width: 26px; height: 12px; position: relative; }
.menu-toggle .bars span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--ink); transition: transform 260ms var(--ease-out), opacity 200ms; }
.menu-toggle .bars span:nth-child(1){ top: 0; } .menu-toggle .bars span:nth-child(2){ top: 10px; }
@media (min-width: 1080px){ .nav-links { display: flex; } }

/* Compact nav bar on phones: the wordmark, the red CTA, the theme switch
   and the menu trigger have to coexist without colliding. */
@media (max-width: 720px) {
  .nav { padding-inline: 16px; }
  .nav-right { gap: 10px; }
  .nav .btn-estimate { padding: 9px 15px; }
  .nav .btn-estimate .btn-label { font-size: .78rem; letter-spacing: .01em; }
  .menu-toggle { gap: 0; padding-inline: 2px; }
  .menu-toggle .mlbl { display: none; }
}

/* ------------------------------------------------------------------ *
 *  Fullscreen kinetic overlay menu
 * ------------------------------------------------------------------ */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  width: 100vw; height: 100vh; height: 100dvh;
  background: rgba(15,12,15,.97); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: clamp(80px,12vh,120px) clamp(24px,6vw,80px) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 340ms var(--ease-out), transform 340ms var(--ease-out), visibility 0s linear 340ms;
}
.menu.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-close { position: absolute; top: 22px; right: clamp(20px,5vw,48px); min-height:44px; min-width:44px; font-family: var(--font-mono); letter-spacing:.1em; text-transform:uppercase; font-size:.78rem; color:var(--ink); }
.menu-list { display: flex; flex-direction: column; gap: clamp(4px, 1.4vh, 14px); margin-top: auto; margin-bottom: auto; }
.menu-list li { position: relative; }
.menu-list a {
  display: inline-flex; align-items: baseline; gap: 1rem;
  font-family: var(--font-display); font-weight: 800; font-stretch:125%; text-transform: uppercase;
  /* Scaled back from 11vw/8rem now that the approved menu carries eleven
     destinations plus the byCORE group. Still a statement, now readable
     without a long scroll. */
  font-size: clamp(2.1rem, 7.5vw, 5.5rem); line-height: .96; letter-spacing: -0.02em;
  color: var(--ink); transition: color 220ms var(--ease-out), transform 300ms var(--ease-out);
}
.menu-list a .idx { font-family: var(--font-mono); font-size: .8rem; color: var(--red); letter-spacing:.1em; align-self:flex-start; }
@media (hover:hover){ .menu-list a:hover { color: var(--red); transform: translateX(14px); } }
.menu-foot { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--font-mono); font-size: .78rem; color: var(--secondary); }
.menu-foot a { color: var(--secondary); } .menu-foot a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ *
 *  Scroll progress rail (left edge, red, chapter markers)
 * ------------------------------------------------------------------ */
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: var(--z-rail); pointer-events: none; display: none; }
.rail-line { position: absolute; left: 23px; top: 0; bottom: 0; width: 1px; background: var(--hair); }
.rail-fill { position: absolute; left: 23px; top: 0; width: 1px; background: var(--red); height: 0; box-shadow: 0 0 10px var(--red); }
.rail-marks { position: absolute; inset: 0; }
.rail-mark { position: absolute; left: 19px; width: 9px; height: 9px; border: 1px solid var(--slate); background: var(--base); transform: rotate(45deg); pointer-events: auto; }
.rail-mark.active { background: var(--red); border-color: var(--red); box-shadow: 0 0 10px var(--red); }
.rail-mark .rail-tip {
  position: absolute; left: 20px; top: -4px; transform: rotate(-45deg);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--secondary); white-space: nowrap; opacity: 0; transition: opacity 200ms var(--ease-out);
}
.rail-mark:hover .rail-tip { opacity: 1; }
@media (min-width: 1100px){ .rail { display: block; } body.has-rail { } }

/* ------------------------------------------------------------------ *
 *  Hero + Living Core canvas
 * ------------------------------------------------------------------ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: clamp(88px, 11vh, 96px); padding-bottom: 40px; }
.core-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: var(--z-bg); }

/* Real WebGL Living Core: a fixed particle backdrop that persists across the
   dark chapters, with a scroll-driven scrim so content stays legible. */
#webgl-core { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; display: none; }
.core-scrim { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: none; background: rgba(15,12,15, var(--core-scrim, 0)); }
.webgl-on #webgl-core, .webgl-on .core-scrim { display: block; }
.webgl-on { background: var(--base); }   /* deep-black root shows through the transparent WebGL canvas */
.webgl-on body { background: transparent; }
.webgl-on .hero .core-canvas, .webgl-on .hero .core-bloom { display: none; }
.core-bloom {
  position: absolute; z-index: 1; left: 58%; top: 50%; transform: translate(-50%,-50%);
  width: min(80vw, 720px); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(228,38,44,.30), rgba(228,38,44,.06) 42%, transparent 66%);
  filter: blur(6px);
}
.hero-inner { position: relative; z-index: var(--z-content); width: 100%; }
.hero h1 { font-variation-settings: "wght" 800, "wdth" 118; }
.hero .kicker { color: var(--red); }
.hero-sub { margin-top: 1.6rem; }
/* keep hero copy crisp where it overlaps the bright WebGL core */
/* The shape-morph core is a large background formation; keep hero copy crisp
   over it with a layered shadow. Copy sits in the left ~58% so it stays clear. */
.webgl-on .hero h1, .webgl-on .hero .chapter-index, .webgl-on .hero .lead, .webgl-on .hero-sub { text-shadow: 0 2px 26px rgba(8,6,8,.78), 0 0 70px rgba(8,6,8,.5); }
@media (min-width: 980px) {
  .webgl-on .hero-inner > .chapter-index,
  .webgl-on .hero-inner > h1,
  .webgl-on .hero-inner > .hero-sub,
  .webgl-on .hero-inner > .hero-cta { width: min(100%, 58ch); }
}
.hero-cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* text-scramble helper: keeps layout height while decrypting */
.scramble { display: inline-block; }

/* ------------------------------------------------------------------ *
 *  Stat counters
 * ------------------------------------------------------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (min-width: 780px){ .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { position: relative; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-stretch:112%; font-size: clamp(2.4rem, 5vw, 4rem); line-height: .95; color: var(--ink); }
.stat .num .suf { color: var(--red); }
.stat .lab { margin-top: .5rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); line-height: 1.4; }
.stat-condense { position: absolute; inset: -8px -8px auto -8px; height: 90px; pointer-events:none; }

/* ------------------------------------------------------------------ *
 *  Glass panels + cards (sharp corners, light-based depth, 3d tilt)
 * ------------------------------------------------------------------ */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--hair); border-radius: 2px;
  backdrop-filter: blur(8px);
}
.tilt { transform-style: preserve-3d; transition: transform 240ms var(--ease-out); will-change: transform; }
.tilt .tilt-inner { transform: translateZ(24px); }

/* ------------------------------------------------------------------ *
 *  Services constellation
 * ------------------------------------------------------------------ */
.constellation { position: relative; }
.constellation-canvas { position: absolute; inset: 0; z-index: 0; }
.node-list { position: relative; z-index: 2; display: grid; gap: 14px; }
.node {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 22px clamp(18px,3vw,30px); background: rgba(28,26,26,.62); border: 1px solid var(--hair);
  border-radius: 2px; transition: border-color 240ms var(--ease-out), background 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.node .node-idx { font-family: var(--font-mono); font-size: .78rem; color: var(--red); }
.node .node-title { font-family: var(--font-display); font-weight: 800; font-stretch:110%; text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -0.01em; }
.node .node-desc { font-family: var(--font-mono); font-size: .76rem; color: var(--secondary); letter-spacing: .02em; }
.node .node-go { color: var(--secondary); transition: transform 220ms var(--ease-out), color 220ms; }
@media (hover:hover){
  .node:hover { border-color: var(--red); background: rgba(40,20,22,.6); transform: translateX(6px); }
  .node:hover .node-go { color: var(--red); transform: translateX(4px); }
}
@media (max-width: 620px){ .node { grid-template-columns: auto 1fr; } .node .node-go { display: none; } }

/* ------------------------------------------------------------------ *
 *  "We build it, YOU own it" handoff
 * ------------------------------------------------------------------ */
.handoff { position: relative; }
.handoff-stage { position: relative; display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 900px){ .handoff-stage { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.code-build {
  font-family: var(--font-mono); font-size: clamp(.72rem,1.1vw,.85rem); line-height: 1.75;
  background: #0e0c0e; border: 1px solid var(--hair); border-radius: 2px; padding: 22px;
  color: var(--secondary); min-height: 300px; overflow: hidden; position: relative;
}
.code-build .ln { display: block; white-space: pre-wrap; }
.code-build .k { color: var(--red-bright); } .code-build .s { color: #8fd6b6; } .code-build .c { color: #5d6d7e; }
.code-cursor { display:inline-block; width:8px; height:1.1em; background: var(--red); vertical-align:-2px; }

/* Live handover terminal (self-types + runs) */
.terminal-build { background: #0b0a0c; border: 1px solid var(--hair); border-radius: 5px; overflow: hidden; box-shadow: 0 26px 64px rgba(0,0,0,.5); }
.tb-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; border-bottom: 1px solid var(--hair); background: #141017; }
.tb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--slate); opacity: .55; }
.tb-dot:first-child { background: var(--red); opacity: .8; }
.tb-title { margin-left: 8px; font-family: var(--font-code); font-size: .7rem; letter-spacing: .05em; color: var(--secondary); }
.tb-body { margin: 0; padding: 20px 22px; min-height: 300px; font-family: var(--font-code); font-size: clamp(.74rem, 1.1vw, .86rem); line-height: 1.9; color: var(--secondary); white-space: pre-wrap; word-break: break-word; }
.tb-body .p { color: #6b7b8c; }
.tb-body .cmd { color: var(--red-bright); }
.tb-body .ok { color: #7fd6ac; }
.tb-body .mut { color: #6b7b8c; }
.tb-body .yours { color: #ffffff; font-weight: 700; letter-spacing: .01em; }
.tb-cur { display: inline-block; width: 8px; height: 1.05em; background: var(--red); vertical-align: -2px; animation: tbblink 1s steps(1) infinite; }
@keyframes tbblink { 50% { opacity: 0; } }
.terminal-build, .tb-body { color: var(--secondary); }   /* terminal stays dark in both themes */

/* OWNED wax seal, stamped onto the manifest */
.seal { position: absolute; right: clamp(8px, 2.5vw, 24px); bottom: clamp(8px, 2.2vw, 20px); width: clamp(94px, 12vw, 130px); height: clamp(94px, 12vw, 130px); pointer-events: none; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal-o { fill: none; stroke: var(--red); stroke-width: 2.2; }
.seal-i { fill: none; stroke: var(--red); stroke-width: 1; opacity: .55; }
/* seal text is SVG graphic text sized in viewBox units via the font-size attribute (not body text) */
.seal-arc { fill: var(--red); font-family: var(--font-mono); letter-spacing: 1.4px; font-weight: 600; }
.seal-word { fill: var(--red); font-family: var(--font-display); font-weight: 800; letter-spacing: .5px; }
.seal-sub { fill: var(--red); font-family: var(--font-mono); letter-spacing: 3.4px; }
.js .seal { opacity: 0; transform: rotate(-18deg) scale(1.9); transition: opacity .16s var(--ease-out), transform .5s cubic-bezier(.2, 1.55, .35, 1); }
.js .seal.in { opacity: 1; transform: rotate(-13deg) scale(1); }
.handoff-caption {
  grid-column: 1 / -1; text-align: center; margin-top: 30px;
  font-family: var(--font-display); font-weight: 800; font-stretch: 106%; text-transform: uppercase;
  font-size: clamp(1.2rem, 2.4vw, 2rem); letter-spacing: -0.01em; line-height: 1.02;
}
.handoff-caption .accent { color: var(--red); }

/* Ownership manifest: the tangible receipt of everything handed over */
.manifest { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--hair); border-radius: 2px; padding: clamp(20px,3vw,30px); overflow: hidden; }
.manifest::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--red), transparent 70%); }
.manifest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--hair); padding-bottom: 14px; margin-bottom: 18px; }
.manifest-head .t { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; text-transform: uppercase; font-size: clamp(1rem,1.6vw,1.25rem); letter-spacing: -0.01em; }
.manifest-head .n { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); text-align: right; }
.manifest-list { display: grid; gap: 12px; }
.manifest-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; font-family: var(--font-mono); font-size: .86rem; line-height: 1.4; color: var(--ink); }
.js .manifest-item { opacity: 0; transform: translateX(-10px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.js .manifest-item.in { opacity: 1; transform: none; }
.manifest-item .chk { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border: 1px solid var(--red); border-radius: 3px; color: var(--red); background: var(--red-dim); }
.manifest-item .chk i, .manifest-item .chk svg { width: 14px; height: 14px; }
.manifest-item .muted { color: var(--secondary); }
.manifest-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.manifest-date { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; color: var(--secondary); }
.stamp { font-family: var(--font-display); font-weight: 800; font-stretch: 106%; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(1rem,1.8vw,1.3rem); color: var(--red); border: 2px solid var(--red); border-radius: 4px; padding: 9px 16px; transform: rotate(-5deg); }
.js .stamp { opacity: 0; transform: rotate(-5deg) scale(.55); transition: opacity .25s var(--ease-out), transform .55s cubic-bezier(.18,1.5,.4,1); }
.js .stamp.in { opacity: 1; transform: rotate(-5deg) scale(1); }

/* ------------------------------------------------------------------ *
 *  People / team particle portraits
 * ------------------------------------------------------------------ */
.team-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
@media (min-width: 720px){ .team-grid { grid-template-columns: repeat(4,1fr); } }
.person { position: relative; }
.portrait {
  aspect-ratio: 3/4; border: 1px solid rgba(0,0,0,.14); border-radius: 2px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #2a2526, #171516);
  position: relative;
}
.human .portrait { border-color: rgba(0,0,0,.14); }
.portrait-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
  opacity: 1; filter: saturate(1.04) contrast(1.02);  /* visible by default (no-JS safe) */
  transition: opacity 700ms var(--ease-out);
}
/* Only when JS arms the morph do we hide the photo behind the assembling dots */
.portrait.armed .portrait-img { opacity: 0; }
.portrait.armed .portrait-img.show { opacity: 1; }
.portrait-cv { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; transition: opacity 700ms var(--ease-out); }
.portrait-cv.hide { opacity: 0; }
.person .p-name { margin-top: .8rem; font-family: var(--font-display); font-weight: 800; font-stretch:108%; text-transform: uppercase; font-size: 1.05rem; letter-spacing: -0.01em; }
.person .p-role { font-family: var(--font-mono); font-size: .72rem; color: var(--paper-sec); letter-spacing: .04em; }

/* Live "watching over" ticker */
.ticker { overflow: hidden; border-block: 1px solid rgba(0,0,0,.12); }
.ticker-track { display: inline-flex; gap: 40px; white-space: nowrap; padding-block: 14px; font-family: var(--font-mono); font-size: .8rem; color: var(--paper-sec); will-change: transform; animation: marquee 38s linear infinite; }
.ticker-track .up { color: var(--red); }
.ticker-static { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-block: 16px; font-family: var(--font-mono); font-size: .8rem; color: var(--paper-sec); }
.ticker-static .up { color: var(--red); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ *
 *  Client roster marquee (typographic, honest text not fake logos)
 * ------------------------------------------------------------------ */
.roster { overflow: hidden; border-block: 1px solid var(--hair); padding-block: clamp(24px,4vw,40px); }
.roster-track { display: inline-flex; align-items: center; gap: clamp(48px,7vw,110px); white-space: nowrap; will-change: transform; animation: marquee 40s linear infinite; }
.roster:hover .roster-track { animation-play-state: paused; }
/* Real client logos, forced to one flat tone to blend with the design */
.client-logo {
  height: clamp(34px, 3.8vw, 52px); width: auto; flex: none;
  filter: brightness(0) invert(1); opacity: .46;
  transition: opacity 240ms var(--ease-out);
}
@media (hover: hover) { .client-logo:hover { opacity: .95; } }
.work-logos-label { margin-top: clamp(40px, 6vw, 72px); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--secondary); }

/* ------------------------------------------------------------------ *
 *  Selected work: real project screenshots in browser frames
 * ------------------------------------------------------------------ */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--hair); border-radius: 9px; background: #17151680;
  text-decoration: none; color: var(--ink);
  transition: transform 320ms var(--ease-out), border-color 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
@media (hover: hover) { .work-card:hover { transform: translateY(-4px); border-color: var(--hair-strong); box-shadow: 0 26px 64px rgba(0,0,0,.5); } }
.work-frame { display: flex; flex-direction: column; background: #0e0c0e; }
.work-chrome { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--hair); }
.work-chrome .wd { width: 8px; height: 8px; border-radius: 50%; background: var(--slate); opacity: .6; }
.work-url { margin-left: 8px; font-family: var(--font-code); font-size: .68rem; color: var(--secondary); background: #1a1618; border-radius: 999px; padding: 3px 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-shot { aspect-ratio: 16 / 9.4; overflow: hidden; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; transition: transform 700ms var(--ease-out); }
@media (hover: hover) { .work-card:hover .work-shot img { transform: scale(1.035); } }
.work-meta { display: flex; flex-direction: column; gap: 11px; padding: clamp(16px, 2vw, 24px); flex: 1; }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-name { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; text-transform: uppercase; letter-spacing: -.01em; font-size: 1.15rem; line-height: 1; }
.work-tag { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); border: 1px solid var(--hair); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.work-desc { color: var(--secondary); font-size: .93rem; line-height: 1.5; margin: 0; }
.work-live { margin-top: auto; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .05em; color: var(--red-bright); display: inline-flex; align-items: center; gap: 6px; }
.work-live svg { width: 15px; height: 15px; }
.work-live--static { color: var(--secondary); }
div.work-card { cursor: default; }
/* feature card: full width, image beside copy on desktop */
.work-card--feature { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .work-card--feature { flex-direction: row; }
  .work-card--feature .work-frame { flex: 1.4; border-right: 1px solid var(--hair); }
  .work-card--feature .work-shot { flex: 1; aspect-ratio: auto; min-height: 320px; }
  .work-card--feature .work-meta { flex: 1; justify-content: center; padding: clamp(24px, 3vw, 44px); gap: 14px; }
  .work-card--feature .work-name { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
  .work-card--feature .work-desc { font-size: 1.06rem; max-width: 42ch; }
}
/* Enterprise / ERP spotlight framed screenshot */
.erp-shot { margin: 0; }
.erp-shot .work-frame { border: 1px solid var(--hair-strong); border-radius: 9px; overflow: hidden; box-shadow: 0 26px 64px rgba(0,0,0,.5); }
.erp-cap { margin-top: 16px; font-family: var(--font-code); font-size: .76rem; letter-spacing: .01em; color: var(--secondary); line-height: 1.55; }
/* coreERP margin-leak case study callout */
.erp-case { margin-top: clamp(30px, 4vw, 48px); padding: clamp(24px, 4vw, 42px); }
.erp-case-tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--secondary); margin-bottom: 20px; }
.erp-case-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 820px) { .erp-case-grid { grid-template-columns: 1.15fr 1fr; gap: clamp(34px, 5vw, 64px); align-items: start; } }
.erp-case-h { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.06; letter-spacing: -.01em; color: var(--ink); }
.erp-case-p { margin-top: 14px; color: var(--secondary); font-size: 1rem; line-height: 1.62; }
.erp-case-note { margin-top: 14px; color: var(--ink); font-size: .92rem; line-height: 1.55; }
.erp-case-cta { margin-top: 22px; }
.erp-stats { display: grid; }
.erp-stat { padding: 18px 0; border-top: 1px solid var(--hair); }
.erp-stat:first-child { padding-top: 0; border-top: 0; }
.erp-stat:last-child { padding-bottom: 0; }
.erp-stat-n { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: clamp(1.45rem, 2.6vw, 2.05rem); letter-spacing: -.01em; color: var(--ink); line-height: 1.12; }
.erp-stat-n .s { font-size: .5em; color: var(--secondary); font-weight: 700; }
.erp-stat-n .ar { color: var(--red-bright); font-weight: 700; }
.erp-stat-l { display: block; margin-top: 7px; color: var(--secondary); font-size: .85rem; line-height: 1.45; }
.work-more { display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(24px, 3vw, 36px); font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; color: var(--ink); }
.work-more svg { width: 16px; height: 16px; transition: transform 220ms var(--ease-out); }
@media (hover: hover) { .work-more:hover svg { transform: translateX(4px); } }

/* ------------------------------------------------------------------ *
 *  Testimonial reel
 * ------------------------------------------------------------------ */
.reel { position: relative; min-height: 220px; }
.reel-item { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); pointer-events: none; }
.reel-item.active { opacity: 1; transform: none; pointer-events: auto; }
.reel-quote { font-family: var(--font-display); font-weight: 800; font-stretch:104%; font-size: clamp(1.5rem,3.4vw,2.6rem); line-height: 1.08; letter-spacing: -0.015em; text-transform: none; }
.reel-attr { margin-top: 1.4rem; font-family: var(--font-mono); font-size: .78rem; color: var(--secondary); letter-spacing: .04em; }
.reel-dots { display: flex; gap: 10px; margin-top: 2rem; }
.reel-dot { width: 30px; height: 3px; background: var(--hair-strong); }
.reel-dot.active { background: var(--red); }

/* ------------------------------------------------------------------ *
 *  coreAssist heartbeat + plan slider
 * ------------------------------------------------------------------ */
.ekg-wrap { position: relative; border: 1px solid var(--hair); border-radius: 2px; background: #0e0c0e; overflow: hidden; }
.ekg { width: 100%; height: 120px; display: block; }
.ekg-path { fill: none; stroke: var(--red); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(228,38,44,.6)); }
.protect-row { display: grid; gap: 10px; margin-top: 22px; }
.protect {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--hair); border-radius: 2px; background: rgba(28,26,26,.5);
  transition: border-color 220ms var(--ease-out), background 220ms var(--ease-out);
}
.protect i { color: var(--red); }
.protect .p-txt { font-family: var(--font-mono); font-size: .82rem; color: var(--ink); }
.protect .p-tier { font-family: var(--font-mono); font-size: .7rem; color: var(--secondary); }
.protect[data-on="true"] { border-color: var(--red); background: rgba(40,20,22,.5); }
.protect[data-on="false"] { opacity: .4; }

.slider-head { display:flex; align-items:baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tier-price { font-family: var(--font-display); font-weight:800; font-stretch:112%; font-size: clamp(2rem,5vw,3.4rem); }
.tier-price .cur { color: var(--red); }
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 3px; background: var(--hair-strong);
  margin-block: 26px 8px; border-radius: 2px;
}
.range::-webkit-slider-thumb { -webkit-appearance:none; width: 22px; height: 22px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px rgba(228,38,44,.7); cursor: grab; border: 2px solid #fff; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--red); border: 2px solid #fff; cursor: grab; }
.range-ticks { display:flex; justify-content: space-between; font-family: var(--font-mono); font-size:.68rem; letter-spacing:.08em; color: var(--secondary); text-transform: uppercase; }
.range-ticks span.on { color: var(--red); }

/* ------------------------------------------------------------------ *
 *  Timeline (About - animated commit history)
 * ------------------------------------------------------------------ */
.commits { position: relative; padding-left: 34px; }
.commits::before { content:""; position:absolute; left: 7px; top: 4px; bottom: 4px; width: 1px; background: var(--hair); }
.commit { position: relative; padding-block: 20px; }
.commit::before { content:""; position:absolute; left: -34px; top: 26px; width: 15px; height: 15px; border:1px solid var(--slate); background: var(--base); transform: rotate(45deg); transition: background 300ms var(--ease-out), border-color 300ms; }
.commit.lit::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 12px var(--red); }
.commit .hash { font-family: var(--font-mono); font-size:.72rem; color: var(--red); letter-spacing:.06em; }
.commit .yr { font-family: var(--font-display); font-weight:800; font-stretch:110%; font-size: clamp(1.4rem,3vw,2.2rem); text-transform: uppercase; margin-top:.2rem; }
.commit .msg { color: var(--secondary); margin-top: .5rem; max-width: 56ch; }

/* ------------------------------------------------------------------ *
 *  AI toy (services)
 * ------------------------------------------------------------------ */
.aitoy { border:1px solid var(--hair); border-radius:2px; background:#0e0c0e; padding: clamp(18px,3vw,28px); }
.aitoy .chips { display:flex; flex-wrap:wrap; gap:10px; margin: 16px 0 20px; }
.aichip { font-family: var(--font-mono); font-size:.74rem; padding:9px 14px; border:1px solid var(--hair-strong); border-radius:999px; color: var(--secondary); transition: color 180ms, border-color 180ms, background 180ms; min-height: 40px; }
.aichip:hover, .aichip[aria-pressed="true"] { color:#fff; background: var(--red); border-color: var(--red); }
.aiout { font-family: var(--font-mono); font-size:.82rem; line-height:1.7; color: var(--ink); min-height: 84px; border-top:1px solid var(--hair); padding-top:16px; }
.aiout .tag { color: var(--red); }

/* ------------------------------------------------------------------ *
 *  Forms (contact)
 * ------------------------------------------------------------------ */
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-family: var(--font-mono); font-size:.76rem; letter-spacing:.08em; text-transform: uppercase; color: var(--secondary); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width:100%; background: #0e0c0e; border:1px solid var(--hair-strong); border-radius:2px; color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; padding: 14px 16px; min-height: 52px;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }
.field .hint { font-family: var(--font-mono); font-size:.72rem; color: var(--slate); }
.form-note { font-family: var(--font-mono); font-size:.74rem; color: var(--secondary); }

/* ------------------------------------------------------------------ *
 *  Terminal easter egg
 * ------------------------------------------------------------------ */
.terminal {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-terminal);
  height: min(60vh, 440px); background: rgba(9,8,9,.97); border-top: 1px solid var(--red);
  transform: translateY(101%); transition: transform 320ms var(--ease-out);
  display: flex; flex-direction: column; box-shadow: 0 -20px 60px rgba(0,0,0,.6);
}
.terminal.open { transform: none; }
.terminal-bar { display:flex; align-items:center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--hair); font-family: var(--font-mono); font-size:.74rem; color: var(--secondary); letter-spacing:.06em; }
.terminal-out { flex:1; overflow-y:auto; padding: 14px 16px; font-family: var(--font-mono); font-size:.82rem; line-height: 1.6; color: var(--ink); }
.terminal-out .line { white-space: pre-wrap; }
.terminal-out .prompt { color: var(--red); }
.terminal-out .muted { color: var(--secondary); }
.terminal-in { display:flex; gap:10px; align-items:center; padding: 12px 16px; border-top: 1px solid var(--hair); font-family: var(--font-mono); }
.terminal-in .prompt { color: var(--red); }
.terminal-in input { flex:1; background:none; border:0; color: var(--ink); font-family: var(--font-mono); font-size:.85rem; outline:none; }

/* ------------------------------------------------------------------ *
 *  Custom cursor (red core)
 * ------------------------------------------------------------------ */
.cursor-core { position: fixed; top:0; left:0; z-index: var(--z-cursor); width: 10px; height: 10px; border-radius:50%; background: var(--red); box-shadow: 0 0 12px var(--red); pointer-events:none; transform: translate(-50%,-50%); mix-blend-mode: screen; transition: background 180ms var(--ease-out); }
.cursor-ring { position: fixed; top:0; left:0; z-index: var(--z-cursor); width: 34px; height: 34px; border:1px solid rgba(228,38,44,.6); border-radius:50%; pointer-events:none; transform: translate(-50%,-50%); transition: opacity 240ms var(--ease-out), border-color 240ms var(--ease-out); }
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button, body.cursor-on input, body.cursor-on textarea, body.cursor-on select, body.cursor-on .range { cursor: none; }
.cursor-core.hot { width: 6px; height: 6px; }
.cursor-ring.hot { width: 54px; height: 54px; border-color: var(--red); }

/* ------------------------------------------------------------------ *
 *  Footer
 * ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--hair); background: #100e10; }
.footer-top { display: grid; gap: 40px; grid-template-columns: 1fr; padding-block: clamp(48px,7vw,80px); }
@media (min-width: 820px){ .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { font-family: var(--font-mono); font-weight:400; font-size:.74rem; letter-spacing:.14em; text-transform:uppercase; color: var(--secondary); margin-bottom: 16px; }
.footer-links a { display:block; padding: 7px 0; color: var(--ink); font-size: .98rem; }
.footer-links a:hover { color: var(--red-bright); }
.footer-belief { color: var(--secondary); max-width: 34ch; margin-top: 14px; }
.footer-legal { border-top: 1px solid var(--hair); padding-block: 22px; font-family: var(--font-mono); font-size:.72rem; color: var(--secondary); letter-spacing: .03em; display:flex; flex-wrap:wrap; gap: 6px 10px; align-items:center; }

/* ------------------------------------------------------------------ *
 *  Reveal on scroll (progressive enhancement - visible by default)
 * ------------------------------------------------------------------ */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal-group] > * { opacity: 0; transform: translateY(20px); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
.js [data-reveal-group].in > * { opacity: 1; transform: none; }

/* stagger-center-out handled in JS via inline delay */

/* ------------------------------------------------------------------ *
 *  Reduced motion
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .ticker-track, .roster-track { animation: none !important; }
  .btn-estimate { animation: none !important; }
  .rail-fill { box-shadow: none; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  .cursor-core, .cursor-ring { display: none !important; }
  body.cursor-on { cursor: auto; }
}

/* ------------------------------------------------------------------ *
 *  Print
 * ------------------------------------------------------------------ */
@media print {
  .nav, .rail, .menu, .terminal, .cursor-core, .cursor-ring, .core-canvas, .core-bloom, .btn-estimate, .roster, .ticker { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .chapter { padding-block: 24px; }
}

/* ------------------------------------------------------------------ *
 *  coreDNA: chromatic specimen (the colorful, generative product inside
 *  the corePHP house). Red stays on the shared chrome; sections cycle an
 *  accent through coreDNA's palette to say "any style, no two alike".
 * ------------------------------------------------------------------ */
.a-lime   { --dna-accent: #b6f24a; }
.a-gold   { --dna-accent: #f5b33f; }
.a-teal   { --dna-accent: #46d6c0; }
.a-purple { --dna-accent: #8b5cf6; }
.a-coral  { --dna-accent: #f43f5e; }
.a-blue   { --dna-accent: #3b82f6; }

.dna-page .chapter-index, .dna-page .chapter-index .n { color: var(--dna-accent, var(--red)); }
.dna-page .redrule { background: linear-gradient(90deg, var(--dna-accent, var(--red)), transparent 62%); }
.dna-page .protect i { color: var(--dna-accent, var(--red)); }
.dna-page .protect[data-on="true"] { border-color: color-mix(in srgb, var(--dna-accent, var(--red)) 45%, var(--hair)); }
.dna-page .stat .num .suf, .dna-page .tier-price .cur, .dna-page .commit .hash { color: var(--dna-accent, var(--red)); }
.dna-page .commit.lit::before { background: var(--dna-accent, var(--red)); border-color: var(--dna-accent, var(--red)); box-shadow: 0 0 12px var(--dna-accent, var(--red)); }
.dna-page .eyebrow-mono { color: color-mix(in srgb, var(--dna-accent, var(--red)) 70%, var(--secondary)); }

/* Watch-it-build example specimens (each in its own colour) */
.dna-examples { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 680px) { .dna-examples { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dna-examples { grid-template-columns: repeat(3, 1fr); } }
.dna-ex { position: relative; border: 1px solid var(--hair); border-radius: 2px; background: rgba(28,26,26,.55); padding: 22px 22px 24px; overflow: hidden; transition: border-color .24s var(--ease-out), transform .24s var(--ease-out); }
.dna-ex::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--dna-accent); }
@media (hover: hover) { .dna-ex:hover { border-color: color-mix(in srgb, var(--dna-accent) 60%, transparent); transform: translateY(-4px); } }
.dna-ex-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dna-ex-name { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dna-accent); }
.dna-ex-plat { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); }
.dna-ex-hero { font-family: var(--font-display); font-weight: 800; font-stretch: 104%; text-transform: none; font-size: clamp(1.4rem, 2.3vw, 1.95rem); line-height: 1.04; letter-spacing: -0.015em; margin-top: 16px; }
.dna-ex-type { font-family: var(--font-mono); font-size: .72rem; color: var(--secondary); margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; }
.dna-ex-type::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dna-accent); }

/* Chromatic preview on the homepage coreDNA spotlight card */
.dna-tint .protect:nth-child(1) i { color: #b6f24a; }
.dna-tint .protect:nth-child(2) i { color: #f5b33f; }
.dna-tint .protect:nth-child(3) i { color: #46d6c0; }
.dna-tint .protect:nth-child(4) i { color: #8b5cf6; }
.dna-tint .protect:nth-child(1)[data-on="true"] { border-color: rgba(182,242,74,.4); }
.dna-tint .protect:nth-child(2)[data-on="true"] { border-color: rgba(245,179,63,.4); }
.dna-tint .protect:nth-child(3)[data-on="true"] { border-color: rgba(70,214,192,.4); }
.dna-tint .protect:nth-child(4)[data-on="true"] { border-color: rgba(139,92,246,.4); }

/* ------------------------------------------------------------------ *
 *  coreDNA "watch it build" demo: a prompt types out and a mini-site
 *  composes itself, each example in its own colour and type.
 * ------------------------------------------------------------------ */
.dnademo { margin: 6px 0 44px; --ex-accent: #f5b33f; }
.dnademo-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.dnachip { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .02em; padding: 9px 15px; min-height: 40px; border: 1px solid var(--hair-strong); border-radius: 999px; color: var(--secondary); transition: color .18s var(--ease-out), border-color .18s var(--ease-out), background .18s var(--ease-out); }
.dnachip:hover, .dnachip[aria-pressed="true"] { color: #fff; border-color: var(--ex-accent); background: color-mix(in srgb, var(--ex-accent) 22%, transparent); }
.dnademo-stage { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .dnademo-stage { grid-template-columns: .82fr 1.18fr; } }
.dnademo-prompt { border: 1px solid var(--hair); border-radius: 3px; background: #0e0c0e; padding: 20px; font-family: var(--font-code); font-size: .85rem; line-height: 1.7; color: var(--ink); min-height: 176px; }
.dnademo-prompt .k { color: var(--ex-accent); }
.dnademo-prompt .cur { display: inline-block; width: 8px; height: 1.05em; background: var(--ex-accent); vertical-align: -2px; animation: dnablink 1s steps(1) infinite; }
@keyframes dnablink { 50% { opacity: 0; } }
.dnademo-browser { border: 1px solid var(--hair-strong); border-radius: 7px; overflow: hidden; background: #141114; min-height: 300px; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.exb-chrome { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-bottom: 1px solid var(--hair); background: #0e0c0e; }
.exb-chrome .d { width: 9px; height: 9px; border-radius: 50%; background: var(--slate); }
.exb-url { margin-left: 10px; flex: 1; font-family: var(--font-code); font-size: .7rem; color: var(--secondary); background: #1a1618; border-radius: 999px; padding: 4px 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Live site preview: the real example site renders inside the frame, scaled to fit */
.exb-view { position: relative; flex: 1; min-height: 260px; overflow: hidden; background:
  radial-gradient(120% 80% at 82% 0%, color-mix(in srgb, var(--ex-accent) 12%, transparent), transparent 62%), #0e0c0e; }
@media (min-width: 900px) { .exb-view { min-height: 380px; } }
.exb-live-wrap { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .55s var(--ease-out); }
.js .dnademo .exb-live-wrap.in { opacity: 1; }
.exb-live { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; background: #141114; pointer-events: none; }
.exb-loading { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-code); font-size: .78rem; letter-spacing: .04em; color: var(--secondary); opacity: 1; transition: opacity .4s var(--ease-out); pointer-events: none; }
.exb-loading::before { content: ""; position: absolute; width: 34px; height: 34px; margin-top: -46px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ex-accent) 34%, transparent); border-top-color: var(--ex-accent); animation: exspin .8s linear infinite; }
.exb-loading.gone { opacity: 0; }
@keyframes exspin { to { transform: rotate(360deg); } }
.dnademo-foot { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }

/* coreDNA example cards -> link to the real live sites */
a.dna-ex { text-decoration: none; }
.dna-ex-live { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em; color: var(--dna-accent); }
a.dna-ex:hover .dna-ex-live { text-decoration: underline; }

/* ------------------------------------------------------------------ *
 *  Selected work: live embedded site previews (hover / in-view)
 * ------------------------------------------------------------------ */
.work-shot { position: relative; }
.work-live-embed { position: absolute; inset: 0; overflow: hidden; background: #141114; opacity: 0; transition: opacity .5s var(--ease-out); pointer-events: none; }
.work-card.is-playing .work-live-embed { opacity: 1; }
.work-live-frame { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; background: #141114; pointer-events: none; }
.work-livehint { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--secondary); }
.work-livehint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red-bright); }
@media (hover: hover) { .work-card[data-worklive]:hover .work-livehint::before { animation: livedot 1.4s var(--ease-in-out) infinite; } }
@keyframes livedot { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,71,77,.45); } 50% { box-shadow: 0 0 0 5px rgba(255,71,77,0); } }
/* Non-embeddable sites (framing blocked) still get gentle movement via a slow Ken Burns drift */
@media (prefers-reduced-motion: no-preference) {
  .work-card--pan .work-shot img { animation: workpan 22s var(--ease-in-out) infinite alternate; will-change: transform; }
}
@keyframes workpan { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.16) translateY(-6%); } }
.work-card--pan:hover .work-shot img { animation-play-state: paused; }

/* ------------------------------------------------------------------ *
 *  Enterprise & AI band: named, heavy-hitter engagements
 * ------------------------------------------------------------------ */
.ent-head { margin-bottom: clamp(20px, 3vw, 32px); }
.ent-h { margin-top: 10px; }
.ent-hero { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 44px); padding: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .ent-hero { grid-template-columns: 1.25fr .9fr; align-items: center; } }
/* Real FraudSniffr logo. It is brown + black on transparent, so on the dark card
   it sits on a white "brand chip"; on the light card it drops the chip and sits
   directly on the white surface. */
.fs-logo { display: inline-flex; background: #ffffff; border-radius: 9px; padding: 15px 20px; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.fs-logo img { height: clamp(46px, 5.4vw, 62px); width: auto; display: block; }
:root[data-theme="light"] .fs-logo { background: transparent; box-shadow: none; padding: 2px 0; }
.ent-kicker { margin-top: 18px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red-bright); }
.ent-hero-p { margin-top: 12px; color: var(--secondary); font-size: 1.02rem; line-height: 1.62; max-width: 54ch; }
.ent-hero-stat { border-top: 1px solid var(--hair); padding-top: 26px; }
@media (min-width: 900px) { .ent-hero-stat { border-top: 0; border-left: 1px solid var(--hair); padding: 8px 0 8px clamp(26px, 3vw, 42px); } }
.ent-big { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.ent-big-l { display: block; margin-top: 10px; color: var(--secondary); font-size: .98rem; line-height: 1.5; max-width: 30ch; }
.ent-mini { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.ent-mini-i { display: flex; flex-direction: column; gap: 3px; }
.ent-mini-i .n { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; color: var(--ink); }
.ent-mini-i .n .s { font-size: .62em; color: var(--secondary); font-weight: 700; margin-left: 1px; }
.ent-mini-i .n .ar { color: var(--red-bright); margin: 0 4px; }
.ent-mini-i .l { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); }
.ent-cards { margin-top: clamp(16px, 2vw, 24px); display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 760px) { .ent-cards { grid-template-columns: repeat(3, 1fr); } }
.ent-card { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 32px); }
.ent-logo { height: 58px; display: flex; align-items: center; margin-bottom: 2px; }
.ent-logo img { width: auto; max-width: 174px; max-height: 58px; opacity: .96; }
.ent-card .ent-kicker { margin-top: 22px; }
.ent-card-p { margin-top: 12px; color: var(--secondary); font-size: .98rem; line-height: 1.58; flex: 1; }
.ent-specs { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--hair); display: flex; gap: clamp(18px, 3vw, 34px); }
.ent-spec { display: flex; flex-direction: column; gap: 4px; }
.ent-spec .n { font-family: var(--font-display); font-weight: 800; font-stretch: 104%; font-size: 1.02rem; letter-spacing: -.01em; color: var(--ink); }
.ent-spec .l { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); }

/* ================================================================== *
 *  LIGHT THEME  (iPhone-style: manual toggle + time-based default).
 *  Dark stays the brand default; [data-theme="light"] remaps the tokens
 *  and the handful of hardcoded dark surfaces. Terminal + code blocks
 *  intentionally stay dark (that is what a terminal looks like).
 * ================================================================== */
:root[data-theme="light"] {
  --base:      #fbfcfd;   /* stark, cool near-white (no cream) */
  --elevated:  #ffffff;
  --card:      #ffffff;
  --ink:       #101215;   /* near-black for high contrast */
  --secondary: #565c64;   /* cool gray, not warm */
  --slate:     #838a93;
  --red:       #e4262c;
  --red-bright:#ff474d;
  --red-dim:   rgba(228,38,44,.09);
  --hair:      rgba(15,20,30,.12);
  --hair-strong: rgba(15,20,30,.20);
}
/* nav + fullscreen menu */
:root[data-theme="light"] .nav { background: linear-gradient(to bottom, rgba(251,252,253,.92), rgba(251,252,253,0)); }
:root[data-theme="light"] .nav.scrolled { background: rgba(253,254,255,.94); box-shadow: 0 1px 0 rgba(15,20,30,.08); }
:root[data-theme="light"] .menu { background: rgba(251,252,253,.98); }
/* glass panels + generic dark cards -> light */
:root[data-theme="light"] .glass,
:root[data-theme="light"] .manifest { background: #ffffff; box-shadow: 0 10px 30px rgba(15,20,30,.06); }
:root[data-theme="light"] .node { background: #ffffff; box-shadow: 0 4px 14px rgba(15,20,30,.045); }
:root[data-theme="light"] .node:hover { background: #ffffff; box-shadow: 0 8px 22px rgba(228,38,44,.12); }
:root[data-theme="light"] .dna-ex { background: #ffffff; box-shadow: 0 6px 18px rgba(15,20,30,.05); }
:root[data-theme="light"] .protect { background: #ffffff; }
:root[data-theme="light"] .protect[data-on="true"] { background: rgba(228,38,44,.06); }
:root[data-theme="light"] .aitoy { background: #ffffff; }
/* browser-frame surfaces (work cards, coreDNA demo) -> light chrome */
:root[data-theme="light"] .work-card { background: #ffffff; }
:root[data-theme="light"] .work-frame,
:root[data-theme="light"] .dnademo-browser { background: #ffffff; }
:root[data-theme="light"] .exb-chrome { background: #eef1f4; }
:root[data-theme="light"] .work-url,
:root[data-theme="light"] .exb-url { background: #e8ebf0; color: var(--secondary); }
:root[data-theme="light"] .exb-view,
:root[data-theme="light"] .exb-live,
:root[data-theme="light"] .work-live-embed,
:root[data-theme="light"] .work-live-frame { background: #ffffff; }
:root[data-theme="light"] .work-chrome .wd { opacity: .35; }
/* canvas portrait wells */
:root[data-theme="light"] .portrait { background: radial-gradient(120% 90% at 50% 20%, #eef1f4, #dce1e8); border-color: rgba(15,20,30,.14); }
/* scanline: flip the white lines to faint black so they neither vanish nor lift the light */
:root[data-theme="light"] .scan::before { background: repeating-linear-gradient(to bottom, rgba(0,0,0,.022) 0 1px, transparent 1px 5px); }
/* logos: KFC is red and stays; WHO/OCLC are white marks -> knock to ink on light */
:root[data-theme="light"] .ent-logo img[alt="World Health Organization"],
:root[data-theme="light"] .ent-logo img[alt="OCLC"] { filter: brightness(0); opacity: .82; }
:root[data-theme="light"] .client-logo { filter: brightness(0); opacity: .5; }
/* hero text-shadow was tuned for a dark field; drop it on light (note: .webgl-on
   is the <html> element itself, so it must not appear as a descendant here) */
:root[data-theme="light"] .hero h1,
:root[data-theme="light"] .hero .chapter-index,
:root[data-theme="light"] .hero .lead,
:root[data-theme="light"] .hero-sub { text-shadow: none; }
/* the .human contrast beat inverts to a dark panel so the light/dark rhythm survives */
:root[data-theme="light"] .human { background: #101318; color: #f6f8fa; }
:root[data-theme="light"] .human :is(h1,h2,h3,.display) { color: #f8fafc; }
:root[data-theme="light"] .human .lead,
:root[data-theme="light"] .human .eyebrow-mono,
:root[data-theme="light"] .human .chapter-index .lbl { color: #a6adb6; }
:root[data-theme="light"] .human .btn-ghost { border-color: rgba(255,255,255,.22); color: #f4f1ec; }
/* theme toggle control in the nav */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; color: var(--ink); border: 1px solid var(--hair); transition: border-color .2s var(--ease-out), color .2s var(--ease-out); }
.theme-toggle:hover { border-color: var(--red); color: var(--red); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: inline-flex; }
/* scroll scrim fades toward the LIGHT base in light mode (in dark it deepens the black) */
:root[data-theme="light"] .core-scrim { background: rgba(251,252,253, var(--core-scrim, 0)); }

/* ------------------------------------------------------------------ *
 *  Live operations readout (coreAssist): the network, right now.
 *  coreAssist is an always-dark section, so colors are fixed light.
 * ------------------------------------------------------------------ */
.livenet { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); padding: clamp(18px,2.4vw,26px) clamp(20px,3vw,30px); }
.livenet-head { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(14px,2vw,20px); }
.livenet-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
.livenet-lbl { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #98a2ab; }
.livenet-stats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px,2.4vw,26px); }
@media (min-width: 720px) { .livenet-stats { grid-template-columns: repeat(4, 1fr); } }
.livenet-stat { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.livenet-stat .n { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: clamp(1.5rem,3vw,2.15rem); line-height: 1; letter-spacing: -.01em; color: #f4f2f0; }
.livenet-stat .n .s { font-size: .48em; color: #98a2ab; font-weight: 700; margin-left: 4px; letter-spacing: .04em; }
.livenet-stat .l { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .05em; color: #98a2ab; }
@media (prefers-reduced-motion: no-preference) {
  .livenet-dot { animation: livepulse 1.9s var(--ease-in-out) infinite; }
  .livenet::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 38%; z-index: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(228,38,44,.07), transparent); animation: livescan 6.5s linear infinite; }
}
@keyframes livepulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(228,38,44,.55); } 50% { box-shadow: 0 0 0 7px rgba(228,38,44,0); } }
@keyframes livescan { 0% { left: -40%; } 100% { left: 130%; } }

/* ================================================================== *
 *  byCORE PRODUCT SYSTEM
 *  Services stay red (corePHP). Product/byCORE pages take the violet
 *  accent by remapping --red on body.bycore, so every existing red
 *  component renders in the product-brand colour with no new CSS.
 * ================================================================== */
:root { --violet: #8b6cf0; --violet-bright: #a78bfa; --violet-dim: rgba(139,108,240,.16); }
body.bycore { --red: #8b6cf0; --red-bright: #a78bfa; --red-dim: rgba(139,108,240,.18); }
:root[data-theme="light"] body.bycore, body.bycore { }
.wordmark .q { color: #e4262c; }   /* parent corePHP mark stays red everywhere */
.byline { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--violet-bright); }
.byline .by { color: var(--secondary); }

/* ---- Products mega-menu ---------------------------------------- */
.nav-drop { position: static; }
.nav-drop-btn { font-family: var(--font-body); font-size: .95rem; color: var(--secondary); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 0; }
.nav-drop-btn .car { font-size: .66em; color: var(--violet-bright); transition: transform .22s var(--ease-out); }
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { color: var(--ink); }
.nav-drop.open .nav-drop-btn .car { transform: rotate(180deg); }
.nav-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-nav); background: rgba(9,8,10,.98); backdrop-filter: blur(10px); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); box-shadow: 0 30px 60px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .26s var(--ease-out), transform .26s var(--ease-out), visibility 0s linear .26s; }
:root[data-theme="light"] .nav-mega { background: rgba(251,252,253,.98); }
.nav-drop.open .nav-mega, .nav-drop:focus-within .nav-mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) { .nav-drop:hover .nav-mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } .nav-drop:hover .nav-drop-btn .car { transform: rotate(180deg); } }
.nav-mega-inner { max-width: var(--maxw, 1240px); margin: 0 auto; padding: 24px clamp(20px,5vw,48px) 26px; }
.nav-mega-lbl { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--violet-bright); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.nav-mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mega-prod { position: relative; display: block; border: 1px solid var(--hair); border-radius: 10px; padding: 15px 17px; background: rgba(255,255,255,.02); text-decoration: none; transition: border-color .2s var(--ease-out), transform .2s var(--ease-out); }
.mega-prod::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 2px; border-radius: 2px; background: var(--violet); }
@media (hover: hover) { .mega-prod:hover { border-color: var(--violet); transform: translateY(-2px); } }
.mega-prod .pn { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); padding-left: 9px; }
.mega-prod .pn em { color: var(--violet-bright); font-style: normal; }
.mega-prod .po { font-size: .85rem; color: var(--secondary); margin-top: 4px; padding-left: 9px; line-height: 1.4; }
.mega-prod .pp { font-family: var(--font-mono); font-size: .68rem; color: var(--slate); margin-top: 9px; padding-left: 9px; }
.nav-mega-foot { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.nav-mega-foot a { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: var(--violet-bright); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.nav-mega-foot a:hover { text-decoration: underline; }
.nav-mega-foot .note { font-family: var(--font-mono); font-size: .68rem; color: var(--secondary); }
@media (max-width: 1079px) { .nav-mega { display: none; } }
.menu-list .m-sub { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--violet-bright); margin: 10px 0 2px; }
.menu-list .m-sub--svc { color: var(--red-bright); }
.menu-list .m-links { display: flex; flex-wrap: wrap; gap: 5px 16px; margin: 2px 0 6px; padding-left: 2px; }
.menu-list .m-links a { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: var(--secondary); text-transform: none; }
@media (hover: hover) { .menu-list .m-links a:hover { color: var(--red); transform: none; } }

/* ---- Services mega: Build / Grow / Run ------------------------- *
 *  Same shell as the byCORE products mega, red accent instead of
 *  violet, and a four track grid (three service columns + a helper
 *  panel) rather than three equal product cards.
 * ---------------------------------------------------------------- */
.nav-drop--svc .nav-drop-btn .car { color: var(--red-bright); }
.nav-mega--svc .nav-mega-grid { grid-template-columns: 1.04fr .88fr 1fr .9fr; gap: clamp(18px, 2.4vw, 34px); align-items: start; }
.mcol h4 { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red-bright); margin: 0 0 11px; }
.mcol .svc { display: block; font-family: var(--font-display); font-weight: 700; font-size: .97rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
@media (hover: hover) { .mcol .svc:hover { color: var(--red); } }
/* Fixed two-line sub block so every service in every column shares the
   same vertical slot. Without it the columns drift out of alignment. */
.mcol .sub { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px 11px; margin: 6px 0 16px; min-height: 2.9em; }
.mcol .sub:last-child { margin-bottom: 0; }
.mcol .sub a { font-family: var(--font-mono); font-size: .7rem; color: var(--secondary); text-decoration: none; }
@media (hover: hover) { .mcol .sub a:hover { color: var(--ink); } }
.mfeat { border: 1px solid var(--hair); border-radius: 10px; padding: 17px 18px; background: rgba(255,255,255,.025); display: flex; flex-direction: column; gap: 15px; align-self: start; }
:root[data-theme="light"] .mfeat { background: rgba(12,14,18,.03); }
.mfeat h4 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.mfeat p { font-size: .84rem; line-height: 1.45; color: var(--secondary); margin: 6px 0 0; }
.mfeat .go { margin-top: auto; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--red-bright); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mfeat .go:hover { text-decoration: underline; }
.mfeat .go i, .mfeat .go svg { width: 14px; height: 14px; }

/* ---- Interior service pages ------------------------------------ *
 *  Breadcrumb, benefit checklist, sibling-service rail, post list.
 *  Everything reads from the existing tokens so both themes and the
 *  byCORE accent remap keep working untouched.
 * ---------------------------------------------------------------- */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.crumb a { color: var(--slate); text-decoration: none; }
.crumb a:hover { color: var(--red); }
.crumb .sep { opacity: .55; }
.crumb .here { color: var(--red-bright); }

.ticks { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 11px; font-size: 1rem; line-height: 1.5; color: var(--secondary); }
.ticks li i, .ticks li svg { width: 17px; height: 17px; flex: none; color: var(--red); margin-top: 4px; }
.ticks li b { color: var(--ink); font-weight: 600; }

.rel { display: flex; flex-wrap: wrap; gap: 9px; }
.rel a { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .03em; color: var(--secondary); text-decoration: none; border: 1px solid var(--hair); border-radius: 999px; padding: 9px 15px; transition: color .2s var(--ease-out), border-color .2s var(--ease-out); }
@media (hover: hover) { .rel a:hover { color: var(--ink); border-color: var(--red); } }

.posts { display: grid; gap: 14px; }
.post { display: block; border: 1px solid var(--hair); border-radius: 12px; padding: clamp(18px,2.2vw,26px); background: var(--panel, rgba(255,255,255,.03)); }
.post .pmeta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.post .pmeta .cat { color: var(--red-bright); }
.post h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2.1vw, 1.5rem); letter-spacing: -.015em; line-height: 1.25; color: var(--ink); margin: 10px 0 0; }
.post p { font-size: .95rem; line-height: 1.55; color: var(--secondary); margin: 9px 0 0; }

/* ---- Two doors (homepage self-select) -------------------------- */
.twodoor { display: grid; gap: 16px; }
@media (min-width: 720px) { .twodoor { grid-template-columns: 1fr 1fr; } }
.door-card { position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--hair); border-radius: 14px; background: var(--panel, rgba(255,255,255,.03)); padding: clamp(22px,3vw,32px); text-decoration: none; transition: border-color .24s var(--ease-out), transform .24s var(--ease-out); }
.door-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.door-card.d-svc::before { background: #e4262c; } .door-card.d-prod::before { background: var(--violet); }
@media (hover: hover) { .door-card:hover { transform: translateY(-4px); } .door-card.d-svc:hover { border-color: #e4262c; } .door-card.d-prod:hover { border-color: var(--violet); } }
.door-card .d-lbl { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.door-card.d-svc .d-lbl { color: var(--red-bright); } .door-card.d-prod .d-lbl { color: var(--violet-bright); }
.door-card .d-h { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: clamp(1.5rem,2.8vw,2rem); line-height: 1.02; margin-top: 12px; color: var(--ink); }
.door-card .d-p { color: var(--secondary); margin-top: 10px; font-size: 1rem; line-height: 1.55; }
.door-card .d-go { margin-top: auto; padding-top: 18px; font-family: var(--font-mono); font-size: .8rem; display: inline-flex; align-items: center; gap: 7px; }
.door-card.d-svc .d-go { color: var(--red-bright); } .door-card.d-prod .d-go { color: var(--violet-bright); }

/* ---- byCORE suite band (products as proof) --------------------- */
.suite-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .suite-grid { grid-template-columns: repeat(3, 1fr); } }
.suite-card { position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--hair); border-radius: 14px; background: var(--panel, rgba(255,255,255,.03)); padding: clamp(22px,2.6vw,30px); text-decoration: none; transition: border-color .24s var(--ease-out), transform .24s var(--ease-out); }
.suite-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--violet); }
@media (hover: hover) { .suite-card:hover { transform: translateY(-4px); border-color: var(--violet); } }
.suite-card .s-nm { font-family: var(--font-display); font-weight: 800; font-stretch: 106%; font-size: clamp(1.4rem,2.4vw,1.8rem); color: var(--ink); }
.suite-card .s-nm em { color: var(--violet-bright); font-style: normal; }
.suite-card .s-tag { color: var(--secondary); margin-top: 8px; font-size: .98rem; line-height: 1.5; flex: 1; }
.suite-card .s-meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.suite-card .s-price { font-family: var(--font-mono); font-size: .74rem; color: var(--violet-bright); }
.suite-card .s-go { font-family: var(--font-mono); font-size: .74rem; color: var(--secondary); display: inline-flex; align-items: center; gap: 6px; }
.suite-lead .byline { margin-bottom: 12px; }

/* ---- Product page bits (byCORE lanes) -------------------------- */
.prod-hero { padding-top: clamp(120px, 16vh, 168px); }
.prod-kicker { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; color: var(--violet-bright); }
.prod-lede { max-width: 60ch; }
.feat-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat { border: 1px solid var(--hair); border-radius: 12px; background: var(--panel, rgba(255,255,255,.03)); padding: clamp(20px,2.4vw,28px); }
.feat .fi { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; color: var(--violet-bright); background: var(--violet-dim); border: 1px solid color-mix(in srgb, var(--violet) 40%, transparent); }
.feat .fi i, .feat .fi svg { width: 20px; height: 20px; }
.feat h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin-top: 16px; color: var(--ink); }
.feat p { color: var(--secondary); margin-top: 8px; font-size: .95rem; line-height: 1.55; }
.price-row { display: grid; gap: 16px; }
@media (min-width: 760px) { .price-row { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.price-card { border: 1px solid var(--hair); border-radius: 14px; background: var(--panel, rgba(255,255,255,.03)); padding: clamp(22px,2.6vw,30px); display: flex; flex-direction: column; }
.price-card.feature { border-color: var(--violet); box-shadow: 0 20px 50px rgba(139,108,240,.16); }
.price-card .pt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-bright); }
.price-card .pv { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem,4vw,2.6rem); line-height: 1; margin-top: 10px; color: var(--ink); }
.price-card .pv .u { font-size: .4em; color: var(--secondary); font-weight: 700; margin-left: 3px; }
.price-card .pd { color: var(--secondary); margin-top: 10px; font-size: .92rem; line-height: 1.5; flex: 1; }
.price-card .badge { align-self: flex-start; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--violet); border-radius: 999px; padding: 3px 9px; margin-bottom: 12px; }

/* ---- Real byCORE wordmark (SVG: gradient "by" + solid "CORE") ---- */
.bycore-wm { height: 1.05em; width: auto; display: inline-block; vertical-align: -0.14em; }
.bycore-wm text { font-family: "Archivo", system-ui, sans-serif; font-weight: 800; font-size: 24px; }
.bycore-wm .bw { font-style: italic; }
.bycore-wm .cw { fill: var(--ink); letter-spacing: 1px; }
.bycore-wm--lg { height: clamp(30px, 5vw, 46px); }

/* ---- Always-dark "beat" sections: light-on-dark in BOTH themes ---- */
.beat-dark { background: #100e10; color: #f4f2f0;
  --ink: #f4f2f0; --secondary: #9aa3ad; --slate: #6a7783;
  --hair: rgba(255,255,255,.12); --hair-strong: rgba(255,255,255,.2); --panel: rgba(255,255,255,.035); }
:root[data-theme="light"] .beat-dark .glass,
:root[data-theme="light"] .beat-dark .manifest,
:root[data-theme="light"] .beat-dark .node,
:root[data-theme="light"] .beat-dark .protect,
:root[data-theme="light"] .beat-dark .aitoy,
:root[data-theme="light"] .beat-dark .dna-ex,
:root[data-theme="light"] .beat-dark .price-card,
:root[data-theme="light"] .beat-dark .feat { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
:root[data-theme="light"] .beat-dark .manifest { box-shadow: none; }
:root[data-theme="light"] .beat-dark .exb-chrome { background: #0e0c0e; }
