/* Auto-generated bundle — fonts + colors_and_type + styles + styles-theme */
/* --- design-system/fonts/fonts.css --- */
/* Auto-generated by scripts/build-assets.mjs — do not edit by hand */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('design-system/fonts/files/jetbrains-mono-400-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('design-system/fonts/files/jetbrains-mono-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('design-system/fonts/files/jetbrains-mono-500-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('design-system/fonts/files/jetbrains-mono-500-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('design-system/fonts/files/jetbrains-mono-600-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('design-system/fonts/files/jetbrains-mono-600-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('design-system/fonts/files/poppins-300-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('design-system/fonts/files/poppins-300-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('design-system/fonts/files/poppins-400-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('design-system/fonts/files/poppins-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('design-system/fonts/files/poppins-500-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('design-system/fonts/files/poppins-500-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('design-system/fonts/files/poppins-600-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('design-system/fonts/files/poppins-600-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('design-system/fonts/files/poppins-700-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('design-system/fonts/files/poppins-700-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('design-system/fonts/files/poppins-800-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('design-system/fonts/files/poppins-800-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('design-system/fonts/files/space-grotesk-300-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('design-system/fonts/files/space-grotesk-300-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('design-system/fonts/files/space-grotesk-400-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('design-system/fonts/files/space-grotesk-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('design-system/fonts/files/space-grotesk-500-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('design-system/fonts/files/space-grotesk-500-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('design-system/fonts/files/space-grotesk-600-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('design-system/fonts/files/space-grotesk-600-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url('design-system/fonts/files/space-grotesk-700-latin-ext.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url('design-system/fonts/files/space-grotesk-700-latin.woff2') format('woff2');
}

/* --- design-system/colors_and_type.css --- */
/* =========================================================================
   Arcaidea — Core design tokens (color + type)
   --------------------------------------------------------------------------
   Brand foundations from the Arcaidea brand summary.
   Pair this file with fonts/fonts.css for typefaces.
   ========================================================================= */

:root {
  /* ---------- Brand colors — cores ---------- */
  --arc-ink:            #1A1F2B;   /* near-black, primary type + ink strokes */
  --arc-cream:          #FAFCFF;   /* warm-off-white, primary surface         */
  --arc-paper:          #FFFFFF;   /* pure white, rare; used for elevated UI  */
  --arc-stone:          #EDEEF2;   /* warmer neutral, subtle dividers         */
  --arc-mist:           #C0C4D0;   /* stronger divider / muted control bg     */
  --arc-graphite:       #414550;   /* secondary ink                           */
  --arc-slate:          #898E9A;   /* tertiary / captions                     */
  --arc-whisper:        #AFB4C3;   /* disabled / placeholder                  */

  /* ---------- Brand colors — signature gradient stops ---------- */
  /* Warm arc (violet → magenta → red) */
  --arc-warm-0:         #4406F2;
  --arc-warm-1:         #6B07C6;
  --arc-warm-2:         #AA0A82;
  --arc-warm-3:         #D10C57;
  --arc-warm-4:         #E00D47;

  /* Cool arc (violet → blue → cyan) */
  --arc-cool-0:         #4406F2;
  --arc-cool-1:         #3F16F1;
  --arc-cool-2:         #2574EE;
  --arc-cool-3:         #12B9EB;
  --arc-cool-4:         #06E4EA;
  --arc-cool-5:         #02F5EA;

  /* Semantic single-color picks pulled from the gradients */
  --arc-violet:         #4406F2;   /* shared start of both arcs — "the spark" */
  --arc-magenta:        #D10C57;
  --arc-crimson:        #E30D43;
  --arc-blue:           #2574EE;
  --arc-cyan:           #12B9EB;
  --arc-aqua:           #06E4EA;

  /* Signature gradients (reuse these, don't invent new ones) */
  --arc-gradient-warm:  linear-gradient(90deg, #4406F2 0%, #6B07C6 22%, #AA0A82 59%, #D10C57 86%, #E00D47 100%);
  --arc-gradient-cool:  linear-gradient(90deg, #4406F2 0%, #3F16F1 6%, #2574EE 41%, #12B9EB 69%, #06E4EA 90%, #02F5EA 100%);
  --arc-gradient-dual:  linear-gradient(90deg, #4406F2 0%, #2574EE 35%, #12B9EB 55%, #AA0A82 75%, #E00D47 100%);
  --arc-gradient-spark: radial-gradient(140% 100% at 0% 50%, #4406F2 0%, #2574EE 35%, #12B9EB 60%, transparent 85%);

  /* ---------- Semantic / system colors ---------- */
  --arc-ok:             #2E9960;   /* detections confirmed                    */
  --arc-ok-weak:        #E3F3EB;
  --arc-warn:           #D9881F;   /* attention needed                        */
  --arc-warn-weak:      #FAEFDC;
  --arc-alert:          #E30D43;   /* derived from brand warm                 */
  --arc-alert-weak:     #FCE0E7;
  --arc-info:           #2574EE;   /* derived from brand cool                 */
  --arc-info-weak:      #DDEAFC;

  /* ---------- Product-suite accents ---------- */
  --arc-cerbi:          #B2ED00;
  --arc-klio:           #1AE0B1;
  --arc-argo:           #2261FF;
  --arc-pegasus:        #F94D2B;
  --arc-zeus:           #02F5EA;

  /* ---------- Foreground tokens ---------- */
  --fg-1:               var(--arc-ink);
  --fg-2:               var(--arc-graphite);
  --fg-3:               var(--arc-slate);
  --fg-4:               var(--arc-whisper);
  --fg-brand:           var(--arc-violet);
  --fg-on-brand:        var(--arc-paper);
  --fg-on-dark:         var(--arc-cream);

  /* ---------- Background tokens ---------- */
  --bg-1:               var(--arc-cream);  /* canvas                       */
  --bg-2:               var(--arc-paper);  /* raised card                  */
  --bg-3:               var(--arc-stone);  /* sunken / alt                 */
  --bg-dark:            var(--arc-ink);
  --bg-brand:           var(--arc-violet);

  /* ---------- Borders ---------- */
  --border-1:           rgba(26,31,43,0.08);  /* default hairline         */
  --border-2:           rgba(26,31,43,0.14);  /* stronger                 */
  --border-focus:       var(--arc-violet);

  /* ---------- Shadows (soft + low-contrast, matching the cream surface) -- */
  --shadow-xs:  0 1px 2px rgba(26,31,43,0.04);
  --shadow-sm:  0 2px 6px rgba(26,31,43,0.06), 0 1px 2px rgba(26,31,43,0.04);
  --shadow-md:  0 8px 20px rgba(26,31,43,0.08), 0 2px 4px rgba(26,31,43,0.04);
  --shadow-lg:  0 20px 40px rgba(26,31,43,0.12), 0 6px 12px rgba(26,31,43,0.06);
  --shadow-glow-violet: 0 0 0 4px rgba(68,6,242,0.18);
  --shadow-glow-cyan:   0 0 0 4px rgba(18,185,235,0.22);

  /* ---------- Corner radii ---------- */
  /* The Arcaidea wave logo uses long, elongated loops — radii are generous */
  --radius-xs:          4px;
  --radius-sm:          8px;
  --radius-md:          14px;
  --radius-lg:          20px;
  --radius-xl:          28px;
  --radius-pill:        999px;    /* capsule — primary button, tags        */

  /* ---------- Spacing (4px baseline) ---------- */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ---------- Motion ---------- */
  --ease-smooth:        cubic-bezier(.22,.61,.36,1);   /* default, organic  */
  --ease-enter:         cubic-bezier(.2,.9,.3,1);
  --ease-exit:          cubic-bezier(.4,0,.8,.3);
  --dur-1:              120ms;
  --dur-2:              220ms;
  --dur-3:              360ms;
  --dur-4:              560ms;

  /* ---------- Type: families ---------- */
  --font-display:       'Poppins', 'Space Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:          'Poppins', 'Space Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono:          'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* ---------- Type: scale ---------- */
  --fs-xxs:  11px;
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-md:   16px;
  --fs-lg:   18px;
  --fs-xl:   22px;
  --fs-2xl:  28px;
  --fs-3xl:  36px;
  --fs-4xl:  48px;
  --fs-5xl:  64px;
  --fs-6xl:  84px;
  --fs-7xl:  112px;

  --lh-tight:  1.05;
  --lh-snug:   1.18;
  --lh-normal: 1.35;
  --lh-loose:  1.55;

  --tracking-tight:  -0.02em;
  --tracking-snug:   -0.01em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.08em;
  --tracking-widest:  0.16em;
}

/* =========================================================================
   Base reset + body
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
  text-rendering: optimizeLegibility;
}

/* =========================================================================
   Semantic type roles
   --------------------------------------------------------------------------
   Use these as class names or as mixins in component CSS.
   ========================================================================= */

.arc-display, h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, var(--fs-6xl));
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 500;
  color: var(--fg-1);
  text-wrap: pretty;
}

.arc-headline, h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, var(--fs-4xl));
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
  font-weight: 500;
  color: var(--fg-1);
  text-wrap: pretty;
}

.arc-title, h3 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
  font-weight: 500;
  color: var(--fg-1);
}

.arc-subtitle, h4 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  font-weight: 500;
  color: var(--fg-1);
}

.arc-body, p {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--fg-2);
  text-wrap: pretty;
}

.arc-body-lg {
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
  color: var(--fg-2);
}

.arc-body-sm, small {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--fg-3);
}

.arc-caption {
  font-size: var(--fs-xs);
  line-height: var(--lh-normal);
  color: var(--fg-3);
}

.arc-eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--fg-3);
}

.arc-overline {
  font-size: var(--fs-xxs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--fg-3);
}

.arc-mono, code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0;
}

/* =========================================================================
   Brand utility classes
   ========================================================================= */

.arc-gradient-text-warm {
  background: var(--arc-gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.arc-gradient-text-cool {
  background: var(--arc-gradient-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.arc-gradient-text-dual {
  background: var(--arc-gradient-dual);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.arc-bg-cream   { background: var(--bg-1); }
.arc-bg-paper   { background: var(--bg-2); }
.arc-bg-dark    { background: var(--bg-dark); color: var(--fg-on-dark); }

/* =========================================================================
   Focus ring — thin violet outline with offset
   ========================================================================= */

:focus-visible {
  outline: 2px solid var(--arc-violet);
  outline-offset: 2px;
  border-radius: 2px;
}

/* =========================================================================
   Selection
   ========================================================================= */

::selection {
  background: var(--arc-violet);
  color: var(--arc-paper);
}

/* --- styles.css --- */
/* =========================================================================
   Arcaidea — site styles (built on design-system/colors_and_type.css)
   ========================================================================= */

/* design-system/colors_and_type.css is linked from HTML (parallel load, no @import chain). */

/* ---------- Layout primitives ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 900px) {
  .container { padding: 0 var(--space-10); }
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: rgba(246, 243, 238, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-1);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--fg-1);
}
.nav-logo img { height: 28px; display: block; }
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 980px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0;
  transition: color var(--dur-2) var(--ease-smooth);
}
.nav-links a:hover { color: var(--fg-1); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 44px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-smooth),
              box-shadow var(--dur-2) var(--ease-smooth),
              background var(--dur-2) var(--ease-smooth),
              color var(--dur-2) var(--ease-smooth);
  white-space: nowrap;
}
.btn-primary {
  background: var(--arc-ink);
  color: var(--fg-on-dark);
}
.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary .arrow { transition: transform var(--dur-2) var(--ease-smooth); }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-secondary {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--border-2);
}
.btn-secondary:hover { background: var(--bg-2); }

.btn-lg { height: 52px; padding: 0 var(--space-6); font-size: var(--fs-md); }

/* ---------- Status strip (the only retained "terminal" motif, toned down) ---------- */
.status-strip {
  height: 28px;
  background: var(--arc-ink);
  color: var(--arc-cream);
  font-family: var(--font-mono);
  font-size: var(--fs-xxs);
  letter-spacing: var(--tracking-wider);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.status-strip[hidden] { display: none !important; }
.status-strip .container { flex: 1; }
.status-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  white-space: nowrap;
  width: 100%;
}
.status-strip-left {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-width: 0;
  overflow: hidden;
}
.status-pill { display: inline-flex; align-items: center; gap: 8px; }
.status-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--arc-cool-4);
  box-shadow: 0 0 8px rgba(18,185,235,0.7);
  animation: pulse 2.4s infinite var(--ease-smooth);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}
.status-sep { color: var(--arc-slate); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-20);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-8);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.hero-eyebrow .arc-eyebrow { color: var(--fg-2); }
.hero-eyebrow .tick {
  width: 28px; height: 1px; background: var(--fg-3);
}
.hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-8);
  font-weight: 500;
}
.hero h1 .accent {
  background: var(--arc-gradient-dual);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.hero-lede {
  max-width: 56ch;
  font-size: var(--fs-lg);
  color: var(--fg-2);
  margin: 0 0 var(--space-10);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-3) var(--space-6);
  align-items: baseline;
  border-top: 1px solid var(--border-1);
  padding-top: var(--space-6);
  margin-top: var(--space-8);
  max-width: 480px;
}
.hero-meta .k { color: var(--fg-4); }
.hero-meta .v { color: var(--fg-2); }

/* Hero visual — the wave mark in a soft gradient field */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--arc-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Cheap static gradient field (no blur/blend — keeps the live panels fast) */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 70% at 15% 12%, rgba(37,116,238,0.40), transparent 60%),
    radial-gradient(80% 70% at 90% 95%, rgba(209,12,87,0.34), transparent 60%);
  pointer-events: none;
}

/* Hero video — auto-cycling LIVE product panels (vector, crisp at any size) */
.hero-visual .hero-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hv-stage {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease-smooth);
}
.hv-stage.active { opacity: 1; visibility: visible; }
.hv-stage .wt-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--hv-scale, 0.5));
}

/* Hero right column: video + stage legend below it */
.hero-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.hero-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-1);
}
.hs-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-3) var(--space-4);
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--border-1);
  transition: background var(--dur-2) var(--ease-smooth), border-color var(--dur-2) var(--ease-smooth);
}
.hs-item .hs-k {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--fg-4);
  transition: color var(--dur-2) var(--ease-smooth);
}
.hs-item .hs-v {
  font-size: var(--fs-sm);
  color: var(--fg-3);
  transition: color var(--dur-2) var(--ease-smooth);
}
.hs-item.active {
  border-left-color: #29C5F6;
  background: var(--bg-2);
}
.hs-item.active .hs-k { color: #29C5F6; }
.hs-item.active .hs-v { color: var(--fg-1); }

/* 1080p desktop — hero fits above the fold with breathing room between copy and visual */
@media (min-width: 1200px) and (max-height: 1100px) {
  .hero {
    padding: var(--space-12) 0 var(--space-10);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: var(--space-20);
    align-items: start;
  }
  .hero-eyebrow {
    margin-bottom: var(--space-4);
  }
  .hero h1 {
    font-size: clamp(38px, 3.4vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.022em;
    margin-bottom: var(--space-5);
  }
  .hero-lede {
    font-size: var(--fs-md);
    margin-bottom: var(--space-6);
  }
  .hero-ctas .btn-lg {
    height: 48px;
    font-size: var(--fs-sm);
  }
  .hero-visual {
    aspect-ratio: 16 / 11;
  }
  .hero-col {
    gap: var(--space-4);
  }
  .hs-item {
    grid-template-columns: 84px 1fr;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
  }
  .hs-item .hs-v {
    font-size: var(--fs-xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hv-stage { transition: none; }
}

/* =========================================================================
   Product window panel (used in the hero video) — dark "app screenshot"
   ========================================================================= */
.wt-panel {
  --wp-bg:   #0C0E13;
  --wp-bg2:  #12161D;
  --wp-line: rgba(255,255,255,0.09);
  --wp-line2: rgba(255,255,255,0.16);
  --wp-fg:   #EAEDF2;
  --wp-dim:  rgba(234,237,242,0.5);
  --wp-dim2: rgba(234,237,242,0.32);
  --wp-cyan: #2FB8F0;
  --wp-red:  #FF5B7A;
  --wp-green: #34D19A;
  width: 820px;
  height: 660px;
  flex-shrink: 0;
  background: var(--wp-bg);
  border: 1px solid var(--wp-line);
  border-radius: 18px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.4);
  color: var(--wp-fg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-display);
}
.wp-bar { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--wp-line); flex-shrink: 0; }
.wp-lights { display: flex; gap: 8px; }
.wp-lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.wp-lights i:nth-child(1) { background: #FF5F57; }
.wp-lights i:nth-child(2) { background: #FEBC2E; }
.wp-lights i:nth-child(3) { background: #28C840; }
.wp-route { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp-dim); }
.wp-route b { color: var(--wp-fg); font-weight: 500; }
.wp-time { margin-left: auto; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--wp-cyan); }
.wp-body { flex: 1; padding: 22px; overflow: hidden; min-height: 0; }
.wp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; height: 100%; }
.wp-chathead { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--wp-line); margin-bottom: 16px; }
.wp-chathead .wp-avatar + span { display: flex; flex-direction: column; flex: 1; }
.wp-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--wp-cyan); color: #04222E; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.wp-chatname { font-weight: 500; font-size: 16px; display: block; }
.wp-chatsub { font-family: var(--font-mono); font-size: 12px; color: var(--wp-dim); display: block; margin-top: 2px; }
.wp-live { margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--wp-cyan); border: 1px solid var(--wp-cyan); border-radius: 999px; padding: 3px 10px; }
.wp-live.linked, .wp-live.active { border-color: var(--wp-line2); }
.wp-chat { display: flex; flex-direction: column; gap: 6px; }
.wp-day { align-self: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp-dim2); background: var(--wp-bg2); border-radius: 999px; padding: 3px 12px; margin-bottom: 6px; }
.wp-sender { font-family: var(--font-mono); font-size: 12px; color: var(--wp-cyan); margin-top: 8px; display: block; }
.wp-msg { max-width: 90%; padding: 12px 15px; border-radius: 14px; font-size: 14.5px; line-height: 1.42; }
.wp-msg.in { background: var(--wp-bg2); border: 1px solid var(--wp-line); color: var(--wp-fg); border-top-left-radius: 5px; }
.wp-msg.out { background: var(--wp-cyan); color: #052430; margin-left: auto; border-top-right-radius: 5px; font-weight: 500; }
.wp-stamp { font-family: var(--font-mono); font-size: 11px; color: var(--wp-dim); margin: 2px 0; }
.wp-stamp.r { text-align: right; }
.wp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wp-actions span { font-family: var(--font-mono); font-size: 12px; color: var(--wp-cyan); border: 1px solid var(--wp-line2); background: rgba(47,184,240,0.08); border-radius: 8px; padding: 7px 14px; }
.wp-label { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp-dim); margin-bottom: 14px; }
.wp-label .meta { color: var(--wp-cyan); }
.wp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wp-tile { border: 1px solid var(--wp-line); border-radius: 12px; padding: 14px 16px; }
.wp-tile .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp-dim); margin-bottom: 7px; }
.wp-tile .v { font-size: 17px; font-weight: 500; }
.wp-tile .v.big { font-size: 26px; }
.wp-rows { border: 1px solid var(--wp-line); border-radius: 12px; overflow: hidden; }
.wp-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--wp-line); font-family: var(--font-mono); font-size: 13px; }
.wp-row:first-child { border-top: 0; }
.wp-row .tag { color: var(--wp-cyan); }
.wp-row .desc { color: var(--wp-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-row .t { color: var(--wp-dim); }
.wp-row.hot { background: rgba(47,184,240,0.1); }
.wp-rule { border: 1px solid var(--wp-line); border-radius: 12px; padding: 13px 16px; margin-bottom: 10px; }
.wp-rule.policy { border-color: rgba(255,150,90,0.4); background: rgba(255,150,90,0.06); }
.wp-rule .rk { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--wp-cyan); }
.wp-rule.policy .rk { color: #FF9F66; }
.wp-rule .rt { font-size: 15px; font-weight: 500; margin: 3px 0 4px; }
.wp-rule .rs { font-family: var(--font-mono); font-size: 12px; color: var(--wp-dim); }
.wp-result { border: 1px solid var(--wp-line2); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.wp-result .badge { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; border-radius: 999px; padding: 3px 10px; }
.wp-badge-crit { color: var(--wp-red); border: 1px solid rgba(255,91,122,0.5); }
.wp-id { font-family: var(--font-mono); font-size: 12px; color: var(--wp-cyan); border: 1px solid var(--wp-line2); border-radius: 7px; padding: 3px 9px; }
.wp-steps { display: flex; flex-direction: column; gap: 9px; }
.wp-step { display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 10px; padding: 9px 12px; }
.wp-step.cur { border-color: var(--wp-line2); background: rgba(47,184,240,0.08); }
.wp-step .ic { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wp-step.ok .ic { background: var(--wp-cyan); color: #052430; }
.wp-step.cur .ic { border: 2px solid var(--wp-cyan); color: var(--wp-cyan); }
.wp-step.pend .ic { border: 2px solid var(--wp-line2); }
.wp-step .st { flex: 1; font-size: 14px; font-weight: 500; }
.wp-step .sd { font-family: var(--font-mono); font-size: 12px; color: var(--wp-dim); }
.wp-step .ic svg { width: 13px; height: 13px; }
.wp-banner { border: 1px solid rgba(47,184,240,0.4); border-radius: 14px; background: linear-gradient(120deg, rgba(47,184,240,0.12), rgba(43,123,243,0.06)); padding: 18px 20px; display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.wp-banner .chk { width: 52px; height: 52px; border-radius: 50%; background: var(--wp-cyan); color: #052430; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wp-banner .chk svg { width: 26px; height: 26px; }
.wp-banner > span:nth-child(2) { display: flex; flex-direction: column; }
.wp-banner .bt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp-dim); display: block; }
.wp-banner .bh { font-size: 20px; font-weight: 600; margin: 2px 0; display: block; }
.wp-banner .bs { font-size: 13px; color: var(--wp-dim); line-height: 1.4; display: block; }
.wp-pct { margin-left: auto; font-size: 38px; font-weight: 600; color: var(--wp-cyan); }
.wp-rollup { border: 1px solid var(--wp-line); border-radius: 12px; padding: 16px; }
.wp-roll { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--wp-line); font-size: 14px; }
.wp-roll:first-of-type { border-top: 0; }
.wp-roll .rt2 { font-family: var(--font-mono); font-size: 12px; color: var(--wp-cyan); }
.wp-roll .rtx { font-weight: 500; }
.wp-files { display: flex; flex-direction: column; }
.wp-file { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 13px 4px; border-top: 1px solid var(--wp-line); }
.wp-file:first-child { border-top: 0; }
.wp-file .fi { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--wp-line2); display: flex; align-items: center; justify-content: center; color: var(--wp-cyan); }
.wp-file .fi svg { width: 16px; height: 16px; }
.wp-file .fn { font-size: 14.5px; font-weight: 500; }
.wp-file .fm { font-family: var(--font-mono); font-size: 12px; color: var(--wp-dim); }
.wp-chip { font-family: var(--font-mono); font-size: 11px; border-radius: 999px; padding: 4px 11px; color: var(--wp-cyan); border: 1px solid var(--wp-line2); }
.wp-chip.ok { color: var(--wp-green); border-color: rgba(52,209,154,0.4); }
.hero-visual .visual-tag {
  position: absolute;
  left: var(--space-6);
  bottom: var(--space-6);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--arc-cream);
  letter-spacing: var(--tracking-wide);
}
.hero-visual .visual-tag .label { color: rgba(246,243,238,0.6); }

/* Marquee */
.marquee {
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  background: var(--bg-1);
  overflow: hidden;
  padding: var(--space-5) 0;
}
.marquee[hidden] { display: none !important; }
.marquee-track {
  display: flex;
  gap: var(--space-16);
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
}
.marquee-item .dot { color: var(--fg-4); font-size: 0.7em; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section primitive ---------- */
.section {
  padding: var(--space-24) 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-16);
    align-items: end;
  }
}
.section-head h2 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 64px);
  letter-spacing: -0.02em;
}
.section-head .lede {
  font-size: var(--fs-lg);
  color: var(--fg-2);
  margin: 0;
  max-width: 48ch;
}
.section-eyebrow {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section-eyebrow .num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
}
.section-eyebrow .sep {
  flex: 1;
  height: 1px;
  background: var(--border-1);
  align-self: center;
  max-width: 200px;
}

/* ---------- Loop section (4 capability cards) ---------- */
.loop {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 720px) { .loop { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .loop { grid-template-columns: repeat(4, 1fr); } }

.loop-card {
  background: var(--bg-1);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-height: 320px;
}
.loop-card .num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wider);
}
.loop-card .title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0;
}
.loop-card .desc {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  line-height: var(--lh-normal);
  margin: 0;
}
.loop-card .icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  color: var(--fg-1);
  margin-top: auto;
}

/* ---------- Module deep-dive ---------- */
.modules {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}
.module {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .module {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
  .module.reverse .module-media { order: 2; }
}
.module-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-3);
}
.module-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.module-media .media-tag {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  padding: 6px 12px;
  background: rgba(10,10,15,0.6);
  color: var(--arc-cream);
  font-family: var(--font-mono);
  font-size: var(--fs-xxs);
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.module-body .module-eyebrow {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.module-body .module-eyebrow .num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
}
.module-body .module-eyebrow .pill {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  text-transform: lowercase;
  letter-spacing: 0;
  color: var(--fg-1);
  background: var(--bg-3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}
.module-body h3 {
  font-size: clamp(32px, 3.4vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-6);
  font-weight: 500;
}
.module-body p {
  font-size: var(--fs-md);
  color: var(--fg-2);
  margin: 0 0 var(--space-8);
  max-width: 56ch;
}
.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.module-tags li {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  color: var(--fg-2);
  padding: 6px 14px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-pill);
  background: var(--bg-2);
}

/* ---------- Engineering ---------- */
.engineering {
  background: var(--arc-ink);
  color: var(--fg-on-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-20) var(--space-12);
  position: relative;
  overflow: hidden;
}
.engineering::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 90% 10%, rgba(37,116,238,0.35), transparent 60%),
    radial-gradient(50% 50% at 10% 100%, rgba(209,12,87,0.28), transparent 60%);
  pointer-events: none;
}
.engineering-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}
@media (min-width: 900px) {
  .engineering-inner { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
}
.engineering h2 {
  color: var(--fg-on-dark);
  font-size: clamp(32px, 3.6vw, 52px);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-6);
}
.engineering .arc-eyebrow { color: rgba(246,243,238,0.6); margin-bottom: var(--space-6); display: block; }
.engineering p {
  color: rgba(246,243,238,0.78);
  font-size: var(--fs-md);
  margin: 0;
  max-width: 52ch;
}
.layers {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(246,243,238,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.layer {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-6);
  background: var(--arc-ink);
}
.layer .layer-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: rgba(246,243,238,0.4);
  letter-spacing: var(--tracking-wide);
}
.layer .layer-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--fg-on-dark);
  font-weight: 500;
}
.layer .layer-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: rgba(246,243,238,0.5);
  letter-spacing: var(--tracking-wide);
}

/* ---------- Industries ---------- */
.industries {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 720px) { .industries { grid-template-columns: repeat(3, 1fr); } }

.industry-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-2) var(--ease-smooth),
              box-shadow var(--dur-2) var(--ease-smooth);
}
.industry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.industry-card-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}
.industry-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--dur-4) var(--ease-smooth);
}
.industry-card:hover .industry-card-media img { transform: scale(1.04); }

.industry-card-body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}
.industry-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-xxs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
}
.industry-card-meta .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--arc-ok);
}
.industry-card-meta .status .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--arc-ok);
  box-shadow: 0 0 6px rgba(46,153,96,0.5);
}
.industry-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.industry-card p {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  margin: 0;
  flex: 1;
}
.industry-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fg-1);
  margin-top: var(--space-2);
}
.industry-card-link .arrow {
  transition: transform var(--dur-2) var(--ease-smooth);
}
.industry-card:hover .industry-card-link .arrow { transform: translateX(4px); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  padding: var(--space-16) var(--space-12);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-12);
  }
}
.cta-band h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  margin: 0;
}
.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: flex-start;
}
@media (min-width: 900px) {
  .cta-band .actions { justify-content: flex-end; }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--arc-ink);
  color: var(--fg-on-dark);
  padding: var(--space-24) 0 var(--space-10);
  margin-top: var(--space-24);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-20);
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--space-16);
  }
}
.footer-brand img { height: 32px; }
.footer-brand p {
  color: rgba(246,243,238,0.65);
  margin: var(--space-6) 0 0;
  max-width: 36ch;
  font-size: var(--fs-md);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: rgba(246,243,238,0.5);
  margin: 0 0 var(--space-5);
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  color: var(--fg-on-dark);
  text-decoration: none;
  font-size: var(--fs-md);
  transition: opacity var(--dur-2) var(--ease-smooth);
}
.footer-col a:hover { opacity: 0.7; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(246,243,238,0.12);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: rgba(246,243,238,0.5);
  letter-spacing: var(--tracking-wide);
}
.footer-base a {
  color: rgba(246,243,238,0.7);
  text-decoration: none;
  margin-left: var(--space-6);
}
.footer-base a:hover { color: var(--fg-on-dark); }

/* ---------- Problem grid ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}
@media (min-width: 720px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }

.problem-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.problem-card .num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wider);
}
.problem-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0;
}
.problem-card p {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  margin: 0;
}

/* ---------- Handoff chain ---------- */
.handoff-chain {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding: var(--space-8);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
}
.handoff-chain-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}
.handoff-chain-sub {
  font-size: var(--fs-sm);
  color: var(--fg-2);
}
.handoff-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  counter-reset: handoff;
}
@media (min-width: 640px) {
  .handoff-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .handoff-steps { grid-template-columns: repeat(5, 1fr); }
}
.handoff-steps li {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  background: var(--bg-2);
}
.handoff-steps .step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
}
.handoff-step-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--fg-1);
}
.handoff-step-title .manual {
  font-family: var(--font-mono);
  font-size: var(--fs-xxs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: #E30D43;
  border: 1px solid color-mix(in srgb, #E30D43 45%, transparent);
  background: color-mix(in srgb, #E30D43 10%, transparent);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}
.handoff-steps p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--fg-2);
  line-height: var(--lh-normal);
}

/* ---------- WhatsApp task card preview ---------- */
.wa-card {
  margin-top: var(--space-8);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  max-width: 420px;
}
.wa-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-1);
  background: var(--bg-1);
}
.wa-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #25D366;
  color: transparent;
  font-size: 0;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.wa-mark::before {
  content: '';
  width: 62%;
  height: 62%;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38c1.45.79 3.08 1.2 4.79 1.2h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2zm5.8 14.16c-.24.68-1.42 1.31-1.96 1.36-.5.05-.97.24-3.27-.68-2.76-1.09-4.5-3.92-4.64-4.1-.14-.18-1.11-1.48-1.11-2.82 0-1.34.7-2 .95-2.27.25-.27.54-.34.72-.34.18 0 .36 0 .52.01.17.01.39-.06.61.47.24.56.81 1.94.88 2.08.07.14.12.31.02.49-.09.18-.14.29-.27.45-.14.16-.29.36-.41.48-.14.14-.28.29-.12.57.16.27.71 1.17 1.53 1.9 1.05.93 1.93 1.22 2.21 1.36.27.14.43.12.59-.07.16-.18.68-.79.86-1.06.18-.27.36-.22.61-.13.25.09 1.6.75 1.87.89.27.14.45.2.52.32.07.12.07.68-.17 1.36z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38c1.45.79 3.08 1.2 4.79 1.2h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2zm5.8 14.16c-.24.68-1.42 1.31-1.96 1.36-.5.05-.97.24-3.27-.68-2.76-1.09-4.5-3.92-4.64-4.1-.14-.18-1.11-1.48-1.11-2.82 0-1.34.7-2 .95-2.27.25-.27.54-.34.72-.34.18 0 .36 0 .52.01.17.01.39-.06.61.47.24.56.81 1.94.88 2.08.07.14.12.31.02.49-.09.18-.14.29-.27.45-.14.16-.29.36-.41.48-.14.14-.28.29-.12.57.16.27.71 1.17 1.53 1.9 1.05.93 1.93 1.22 2.21 1.36.27.14.43.12.59-.07.16-.18.68-.79.86-1.06.18-.27.36-.22.61-.13.25.09 1.6.75 1.87.89.27.14.45.2.52.32.07.12.07.68-.17 1.36z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wa-meta { display: flex; flex-direction: column; gap: 2px; }
.wa-from { font-size: var(--fs-sm); font-weight: 500; color: var(--fg-1); }
.wa-tag { font-family: var(--font-mono); font-size: var(--fs-xxs); color: var(--fg-3); letter-spacing: var(--tracking-wide); }
.wa-card-body { padding: var(--space-5); }
.wa-msg { margin: 0 0 var(--space-4); font-size: var(--fs-sm); color: var(--fg-1); line-height: var(--lh-normal); }
.wa-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.wa-steps li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--fg-2);
}
.wa-steps li span {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--fg-1);
  font-family: var(--font-mono);
  font-size: var(--fs-xxs);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}

/* ---------- Natural language query card ---------- */
.query-card {
  margin-top: var(--space-8);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: var(--arc-ink);
  color: var(--fg-on-dark);
  padding: var(--space-6) var(--space-8);
  max-width: 480px;
  position: relative;
  overflow: hidden;
}
.query-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 100% 0%, rgba(37,116,238,0.3), transparent 60%);
  pointer-events: none;
}
.query-label {
  position: relative;
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xxs);
  color: rgba(246,243,238,0.55);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.query-card .query-text {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 300;
  color: rgba(246, 243, 238, 0.82);
  letter-spacing: -0.01em;
}

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card {
  background: var(--bg-1);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 280px;
}
.why-card .num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wider);
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0;
}
.why-card p {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  margin: 0;
}

/* ---------- Positioning ---------- */
.positioning {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  padding: var(--space-16) var(--space-12);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  background: var(--bg-2);
}
@media (min-width: 900px) {
  .positioning {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-16);
    align-items: start;
  }
}
.positioning-head h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  margin: var(--space-3) 0 var(--space-5);
  font-weight: 500;
}
.positioning-head p {
  font-size: var(--fs-md);
  color: var(--fg-2);
  margin: 0;
  max-width: 52ch;
}
.not-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.not-list li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  background: var(--bg-1);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--fg-1);
  font-weight: 500;
  position: relative;
}
.not-list li::before {
  content: '✕';
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--arc-crimson);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--arc-alert-weak);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Industries: 6-up variant ---------- */
.industries-6 {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .industries-6 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .industries-6 { grid-template-columns: repeat(3, 1fr); } }

/* For the use-cases section: cards with no media (compact text-only) */
.industries-6 .industry-card-media { display: none; }
.industries-6 .industry-card-body { padding: var(--space-8); min-height: 200px; }

/* ---------- Timeline (Connect / Configure / Run) ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  position: relative;
}
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(3, 1fr); } }

.timeline-step {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}
.timeline-step .t-week {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wider);
  padding: 4px 10px;
  background: var(--bg-3);
  border-radius: var(--radius-pill);
  align-self: flex-start;
}
.timeline-step h3 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0;
}
.timeline-step p {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  margin: 0;
}

/* ---------- Storyline (one workflow, one incident, one report) ---------- */
.story-head { margin-bottom: var(--space-12); }

.storyline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}
.story-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-6);
  position: relative;
  padding-bottom: var(--space-12);
}
.story-step::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 60px;
  bottom: -4px;
  width: 2px;
  background: linear-gradient(var(--border-2), var(--border-1));
}
.story-step:last-child { padding-bottom: 0; }
.story-step:last-child::before { display: none; }

.story-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.story-node span {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--fg-1);
  letter-spacing: var(--tracking-wide);
}

.story-body { padding-top: var(--space-2); }
.story-time {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
}
.story-stage {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}
.story-body h3 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg-1);
  margin: var(--space-1) 0 var(--space-3);
}
.story-body p {
  font-size: var(--fs-md);
  color: var(--fg-2);
  margin: 0;
  max-width: 52ch;
}
.story-visual {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

/* Event chips (step 1) */
.event-chips {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}
.event-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 16px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  font-size: var(--fs-sm);
  color: var(--fg-1);
}
.event-chip .chip-time {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
}

/* Incoming WhatsApp message (step 1) */
.wa-bubble {
  max-width: 360px;
  border: 1px solid var(--border-1);
  border-left: 3px solid #25D366;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  padding: var(--space-4) var(--space-5);
}
.wa-bubble-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.wa-bubble-head .wa-mark {
  width: 22px;
  height: 22px;
  font-size: 0;
}
.wa-bubble-name {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fg-1);
}
.wa-bubble-time {
  font-family: var(--font-mono);
  font-size: var(--fs-xxs);
  color: var(--fg-3);
  margin-left: auto;
}
.wa-bubble-text {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--fg-1);
  line-height: var(--lh-normal);
}

/* Incident card (step 2) */
.incident-card {
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5) var(--space-6);
  max-width: 380px;
}
.incident-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.incident-id {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
}
.incident-prio {
  font-family: var(--font-mono);
  font-size: var(--fs-xxs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--arc-crimson);
  background: var(--arc-alert-weak);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.incident-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--fg-1);
  margin: 0 0 4px;
}
.incident-sub {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  margin: 0;
}

/* SOP match (step 3) */
.sop-match {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: 12px 18px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-pill);
  background: var(--bg-2);
}
.sop-check {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--arc-ok-weak);
  color: var(--arc-ok);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sop-text {
  font-size: var(--fs-sm);
  color: var(--fg-2);
}
.sop-text strong { color: var(--fg-1); font-weight: 500; }

/* Report row (step 5) */
.report-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-2);
  letter-spacing: var(--tracking-wide);
}
.report-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--arc-ok);
  font-weight: 500;
}
.report-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--arc-ok);
  box-shadow: 0 0 6px rgba(46,153,96,0.5);
}
.report-cell { color: var(--fg-3); }
.report-by { color: var(--fg-2); }

/* ---------- Solutions grid ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 900px) { .solutions-grid { grid-template-columns: repeat(3, 1fr); } }

.solution-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform var(--dur-2) var(--ease-smooth),
              box-shadow var(--dur-2) var(--ease-smooth);
}
.solution-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.solution-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-xxs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
}
.solution-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0;
}
.solution-inputs {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
  line-height: var(--lh-normal);
  margin: 0;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-1);
}
.solution-card > p:not(.solution-inputs) {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  margin: 0;
}
.solution-card .industry-card-link {
  margin-top: auto;
  padding-top: var(--space-2);
}
.solution-card:hover .industry-card-link .arrow { transform: translateX(4px); }

/* =========================================================================
   Solution detail pages
   ========================================================================= */
.page-hero {
  padding: var(--space-20) 0 var(--space-16);
  border-bottom: 1px solid var(--border-1);
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--fg-3);
  text-decoration: none;
}
.breadcrumb a { color: var(--fg-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg-1); }
.breadcrumb .here { color: var(--fg-1); }
.page-hero h1 {
  font-size: clamp(40px, 5.5vw, 80px);
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 var(--space-6);
  max-width: 18ch;
}
.page-hero .lede {
  font-size: var(--fs-lg);
  color: var(--fg-2);
  margin: 0;
  max-width: 64ch;
}
.page-hero .hero-ctas { margin-top: var(--space-10); }

/* Prose column (multi-paragraph body in a section head) */
.section-prose p {
  font-size: var(--fs-lg);
  color: var(--fg-2);
  margin: 0 0 var(--space-5);
  max-width: 58ch;
}
.section-prose p:last-child { margin-bottom: 0; }

/* Feature grid (What you get / What changes) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 760px) { .feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.feature-item {
  background: var(--bg-1);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.feature-item .num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wider);
}
.feature-item h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0;
}
.feature-item p {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  margin: 0;
}

/* Transformation pairs */
.transform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) { .transform-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .transform-grid { grid-template-columns: repeat(4, 1fr); } }
.transform-item {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.transform-item h4 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.transform-item h4 .to {
  color: var(--fg-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}
.transform-item p {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  margin: 0;
}

/* Trustee / commercial callout band on cream */
.callout {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  background: var(--bg-2);
  padding: var(--space-16) var(--space-12);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 900px) { .callout { grid-template-columns: 1.2fr 1fr; gap: var(--space-16); } }
@media (max-width: 560px) {
  .callout { padding: var(--space-10) var(--space-6); }
  .callout .btn { white-space: normal; max-width: 100%; height: auto; min-height: 48px; padding: 12px 18px; }
}
.callout h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  margin: var(--space-3) 0 0;
  font-weight: 500;
}
.callout .callout-body p {
  font-size: var(--fs-md);
  color: var(--fg-2);
  margin: 0 0 var(--space-6);
  max-width: 52ch;
}

/* CTA sub-line under the final CTA band */
.cta-sub {
  margin: var(--space-5) 0 0;
  font-size: var(--fs-sm);
  color: var(--fg-3);
  max-width: 60ch;
}

/* =========================================================================
   Legal / long-form pages
   ========================================================================= */
.legal {
  max-width: 760px;
  margin: 0 auto;
}
.legal-section { margin-bottom: var(--space-12); }
.legal h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0 0 var(--space-5);
  scroll-margin-top: 120px;
}
.legal h2 .legal-num {
  font-family: var(--font-mono);
  font-size: 0.6em;
  color: var(--fg-3);
  margin-right: var(--space-3);
  letter-spacing: var(--tracking-wide);
}
.legal h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: var(--space-8) 0 var(--space-3);
}
.legal p {
  font-size: var(--fs-md);
  color: var(--fg-2);
  line-height: var(--lh-loose);
  margin: 0 0 var(--space-5);
}
.legal ul {
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.legal ul li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--fs-md);
  color: var(--fg-2);
  line-height: var(--lh-normal);
}
.legal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--arc-gradient-dual);
}
.legal a { color: var(--fg-1); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--arc-violet); }
.legal strong { color: var(--fg-1); font-weight: 500; }

/* TOC chips under the legal hero */
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
}
.legal-toc a {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--fg-2);
  padding: 8px 16px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-pill);
  background: var(--bg-2);
  text-decoration: none;
  transition: background var(--dur-2) var(--ease-smooth), color var(--dur-2) var(--ease-smooth);
}
.legal-toc a:hover { background: var(--bg-3); color: var(--fg-1); }

.page-hero .legal-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-3);
  letter-spacing: var(--tracking-wide);
  margin: var(--space-5) 0 0;
}

/* =========================================================================
   Module data-flow visuals (lanes → one highway of data)
   ========================================================================= */
.module-media.viz {
  background: var(--arc-ink);
}
.module-media.viz svg {
  width: 100%;
  height: 100%;
  display: block;
}
.viz .flow {
  stroke-dasharray: 4 13;
  animation: flowDash 2.8s linear infinite;
}
@keyframes flowDash {
  to { stroke-dashoffset: -170; }
}
.viz .flow-rev { animation-name: flowDashRev; }
@keyframes flowDashRev {
  to { stroke-dashoffset: 170; }
}
.viz .lane-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  fill: rgba(246, 243, 238, 0.62);
}
.viz .lane-label.dim { fill: rgba(246, 243, 238, 0.3); }
.viz .node-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: rgba(246, 243, 238, 0.5);
}
.viz .src-dot { fill: var(--arc-cream); }
@media (prefers-reduced-motion: reduce) {
  .viz .flow { animation: none; }
}

/* Hero spotlight variant — ink background, light type */
.hero.hero-spotlight { background: var(--arc-ink); }
.hero.hero-spotlight h1 { color: var(--fg-on-dark); }
.hero.hero-spotlight h1 .accent { color: transparent; }
.hero.hero-spotlight .hero-lede { color: rgba(246,243,238,0.78); }
.hero.hero-spotlight .hero-eyebrow .arc-eyebrow { color: rgba(246,243,238,0.6); }
.hero.hero-spotlight .hero-eyebrow .tick { background: rgba(246,243,238,0.4); }
.hero.hero-spotlight .hero-meta { border-top-color: rgba(246,243,238,0.14); }
.hero.hero-spotlight .hero-meta .k { color: rgba(246,243,238,0.45); }
.hero.hero-spotlight .hero-meta .v { color: rgba(246,243,238,0.85); }
.hero.hero-spotlight .btn-primary { background: var(--arc-cream); color: var(--arc-ink); }
.hero.hero-spotlight .btn-secondary { color: var(--fg-on-dark); border-color: rgba(246,243,238,0.3); }
.hero.hero-spotlight .btn-secondary:hover { background: rgba(246,243,238,0.1); }

/* ---------- Nav action group (toggle + CTA on inner pages) ---------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ---------- Small screens / phones ---------- */
@media (max-width: 560px) {
  .status-strip-left { gap: var(--space-4); }
  #status-strip .theme-toggle .tt-label { display: none; }
  #status-strip .theme-toggle { padding: 0 9px; }
}
@media (max-width: 480px) {
  .nav-logo img { height: 22px; }
  .nav-inner { gap: var(--space-3); }
  .nav-actions { gap: var(--space-2); }
  .nav-inner .btn {
    height: 40px;
    padding: 0 14px;
    font-size: var(--fs-xs);
    white-space: nowrap;
  }
  .theme-toggle.nav-theme-toggle { height: 40px; width: 40px; }
}

/* ---------- Tweaks panel host adjustments ---------- */
[data-tweaks-host] { z-index: 999; }

/* --- styles-theme.css --- */
/* =========================================================================
   Arcaidea — TOGGLEABLE theme overrides
   Load AFTER styles.css. Dark styles apply only when <html data-theme="dark">.
   Light is the default (no attribute). The signature warm+cool gradients are
   intentionally left untouched in both themes.
   ========================================================================= */

html[data-theme="dark"] {
  /* ---------- Surfaces: canvas darkest, cards lifted ---------- */
  --bg-1:  #0E1219;
  --bg-2:  #171C28;
  --bg-3:  #232A3A;

  /* ---------- Foreground ramp ---------- */
  --fg-1:  #FAFCFF;
  --fg-2:  #C0C4D0;
  --fg-3:  #898E9A;
  --fg-4:  #5C6470;
  --fg-on-dark: #FAFCFF;

  /* ---------- Borders ---------- */
  --border-1: rgba(250, 252, 255, 0.10);
  --border-2: rgba(250, 252, 255, 0.18);

  /* ---------- Shadows: deeper on dark ---------- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.40);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.62), 0 8px 16px rgba(0, 0, 0, 0.45);

  /* ---------- Semantic status ---------- */
  --arc-ok:        #3FC07D;
  --arc-ok-weak:   rgba(63, 192, 125, 0.16);
  --arc-warn-weak: rgba(217, 136, 31, 0.18);
  --arc-alert-weak: rgba(224, 13, 71, 0.18);
  --arc-info-weak: rgba(37, 116, 238, 0.16);

  background: var(--bg-1);
}

/* Nav: translucent dark */
html[data-theme="dark"] .nav {
  background: rgba(14, 18, 25, 0.72);
  border-bottom: 1px solid var(--border-1);
}

/* Primary button: flip to a light capsule on dark */
html[data-theme="dark"] .btn-primary {
  background: var(--fg-1);
  color: var(--arc-ink);
}
html[data-theme="dark"] .btn-primary:hover {
  box-shadow: var(--shadow-md), var(--shadow-glow-violet);
}

/* Ink panels that now sit on a dark canvas need lift/separation */
html[data-theme="dark"] .engineering {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
}
html[data-theme="dark"] .query-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
}
html[data-theme="dark"] .query-card .query-label { color: var(--fg-3); }

/* Footer continues into the canvas — separate it with a hairline */
html[data-theme="dark"] footer.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border-1);
}
html[data-theme="dark"] footer.site-footer .footer-brand p,
html[data-theme="dark"] footer.site-footer .footer-col a,
html[data-theme="dark"] footer.site-footer .footer-base,
html[data-theme="dark"] footer.site-footer .footer-base a { color: var(--fg-2); }
html[data-theme="dark"] footer.site-footer .footer-col h4 { color: var(--fg-3); }
html[data-theme="dark"] footer.site-footer .footer-base { border-top-color: var(--border-1); }

/* CTA band: lift it a touch above the canvas */
html[data-theme="dark"] .cta-band { background: var(--bg-2); }

/* Page-hero divider on solution/legal pages reads on dark */
html[data-theme="dark"] .page-hero { border-bottom-color: var(--border-1); }

/* =========================================================================
   Theme toggle control (lives in the status strip on home, in the nav elsewhere)
   The strip is always ink, so the strip variant is styled for a dark surface.
   ========================================================================= */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  background: rgba(250, 252, 255, 0.08);
  border: 1px solid rgba(250, 252, 255, 0.18);
  color: var(--arc-cream);
  font-family: var(--font-mono);
  font-size: var(--fs-xxs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease-smooth), border-color var(--dur-2) var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { background: rgba(250, 252, 255, 0.16); }
.theme-toggle:active { transform: scale(0.97); }
.theme-toggle svg { width: 13px; height: 13px; display: block; flex-shrink: 0; }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
.theme-toggle .tt-label::after { content: "Dark"; }
html[data-theme="dark"] .theme-toggle .tt-label::after { content: "Light"; }

/* Nav variant — square icon button sized for touch, works on light + dark nav */
.theme-toggle.nav-theme-toggle {
  height: 44px;
  width: 44px;
  padding: 0;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--fg-1);
}
.theme-toggle.nav-theme-toggle:hover { background: var(--bg-2); }
.theme-toggle.nav-theme-toggle .tt-label { display: none; }
.theme-toggle.nav-theme-toggle svg { width: 18px; height: 18px; }

/* =========================================================================
   Old-school sliding light/dark switch (home status strip)
   ========================================================================= */
.theme-switch {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.theme-switch .ts-track {
  position: relative;
  width: 54px;
  height: 26px;
  border-radius: 999px;
  background: rgba(250, 252, 255, 0.10);
  border: 1px solid rgba(250, 252, 255, 0.22);
  transition: background var(--dur-2) var(--ease-smooth), border-color var(--dur-2) var(--ease-smooth);
}
.theme-switch:hover .ts-track { background: rgba(250, 252, 255, 0.16); }
.theme-switch .ts-track svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  z-index: 1;
  pointer-events: none;
  transition: color var(--dur-2) var(--ease-smooth);
}
.theme-switch .ts-sun { left: 6px; color: rgba(250, 252, 255, 0.85); }
.theme-switch .ts-moon { right: 6px; color: rgba(250, 252, 255, 0.4); }
html[data-theme="dark"] .theme-switch .ts-sun { color: rgba(250, 252, 255, 0.4); }
html[data-theme="dark"] .theme-switch .ts-moon { color: rgba(250, 252, 255, 0.85); }
.theme-switch .ts-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--arc-cream);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: transform var(--dur-2) var(--ease-smooth);
  z-index: 2;
}
html[data-theme="dark"] .theme-switch .ts-knob { transform: translateX(28px); }
.theme-switch:active .ts-knob { width: 22px; }
.theme-switch:focus-visible .ts-track { outline: 2px solid var(--arc-violet); outline-offset: 2px; }

/* Nav variant — theme-aware so it reads on the light or dark nav bar */
.theme-switch.nav-switch { padding: 9px 4px; }
.theme-switch.nav-switch .ts-track {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
}
.theme-switch.nav-switch:hover .ts-track { background: var(--bg-2); }
.theme-switch.nav-switch .ts-knob {
  background: var(--fg-1);
  box-shadow: var(--shadow-xs);
}
.theme-switch.nav-switch .ts-sun { color: var(--fg-2); }
.theme-switch.nav-switch .ts-moon { color: var(--fg-4); }
html[data-theme="dark"] .theme-switch.nav-switch .ts-sun { color: var(--fg-4); }
html[data-theme="dark"] .theme-switch.nav-switch .ts-moon { color: var(--fg-2); }
html[data-theme="dark"] .theme-switch.nav-switch .ts-knob { transform: translateX(28px); }
