/* ============================================================
   Panevex — factory control-room design system
   Shared across every generated page. One dark background.
   ============================================================ */

@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg, video { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; }
  :focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
}

@layer base {
  :root {
    /* ---- Base surface (site-wide) ---- */
    --bg:        oklch(0.16 0.035 256);
    --bg-2:      oklch(0.195 0.040 256);
    --surface:   oklch(0.235 0.042 256);
    --surface-2: oklch(0.275 0.044 256);
    --line:      oklch(0.34 0.030 256);
    --line-soft: oklch(0.275 0.028 256);

    --ink:   oklch(0.97 0.012 250);
    --ink-2: oklch(0.815 0.020 250);
    --muted: oklch(0.705 0.022 250);

    /* ---- Brand accents ---- */
    --primary:   oklch(0.70 0.155 245);
    --primary-2: oklch(0.62 0.175 250);
    --gold:      oklch(0.83 0.150 84);
    --danger:    oklch(0.66 0.20 25);

    /* ---- Accent, remapped per product page ---- */
    --accent:      var(--primary);
    --accent-2:    var(--primary-2);
    --accent-ink:  oklch(0.16 0.03 256);
    --accent-soft: color-mix(in oklch, var(--accent) 16%, transparent);

    /* ---- Type ---- */
    --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
    --font-body:    "Archivo", ui-sans-serif, system-ui, sans-serif;
    --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

    /* ---- Fluid scale ---- */
    --step--1: clamp(0.80rem, 0.77rem + 0.12vw, 0.86rem);
    --step-0:  clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem);
    --step-1:  clamp(1.18rem, 1.10rem + 0.35vw, 1.42rem);
    --step-2:  clamp(1.42rem, 1.28rem + 0.65vw, 1.90rem);
    --step-3:  clamp(1.75rem, 1.50rem + 1.15vw, 2.60rem);
    --step-4:  clamp(2.10rem, 1.65rem + 2.10vw, 3.60rem);
    --step-5:  clamp(2.55rem, 1.85rem + 3.30vw, 5.20rem);

    /* ---- Spacing / radii ---- */
    --gutter: clamp(1.15rem, 0.6rem + 2.6vw, 2.75rem);
    --r-sm: 8px; --r-md: 12px; --r-lg: 14px; --r-xl: 18px;
    --shadow: 0 1px 0 oklch(0.5 0.03 256 / 0.05) inset, 0 18px 40px -24px oklch(0.05 0.02 256 / 0.9);
    --shadow-lg: 0 40px 80px -40px oklch(0.03 0.02 256 / 0.95);
    --maxw: 1200px; --maxw-wide: 1320px;

    /* ---- z-index scale ---- */
    --z-base: 1; --z-raised: 10; --z-nav: 100; --z-dropdown: 200;
    --z-backdrop: 900; --z-modal: 1000; --z-toast: 1100;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
  }

  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
  }

  /* Shared control-room backdrop: photon glow + faint cell-grid.
     Cell-grid is thematically literal (a solar cell IS a grid). */
  body::before {
    content: "";
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: none;
    opacity: 0.9;
  }
  body::after {
    content: "";
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: none;
    background-size: 62px 62px;
    -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
            mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  }
  main, header, footer { position: relative; z-index: var(--z-base); }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
    font-weight: 800;
  }
  h1 { font-size: var(--step-5); letter-spacing: -0.028em; }
  h2 { font-size: var(--step-4); }
  h3 { font-size: var(--step-2); letter-spacing: -0.018em; }
  h4 { font-size: var(--step-1); letter-spacing: -0.012em; font-weight: 700; }
  p { text-wrap: pretty; }
  strong { color: var(--ink); font-weight: 600; }
}

@layer components {
  /* ---------- Layout ---------- */
  .wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
  .wrap-wide { width: min(100% - 2 * var(--gutter), var(--maxw-wide)); margin-inline: auto; }
  .section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
  .section-tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
  .section--alt { background: none; border-block: 1px solid var(--line-soft); }
  .stack > * + * { margin-top: var(--flow, 1rem); }
  .lead { font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; }
  .measure { max-width: 68ch; }

  /* ---------- Kicker / eyebrow (used sparingly, mono = instrument label) ---------- */
  .kicker {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-family: var(--font-mono); font-size: var(--step--1);
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent);
  }
  .kicker::before {
    content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7;
  }
  .kicker--plain::before { display: none; }

  .section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
  .section-head .lead { margin-top: 1.1rem; }

  /* ---------- Buttons ---------- */
  .btn {
    --btn-bg: var(--accent);
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    font-family: var(--font-display); font-weight: 600; font-size: var(--step-0);
    line-height: 1; letter-spacing: -0.01em;
    padding: 0.85em 1.35em; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    white-space: nowrap;
  }
  .btn svg { width: 1.05em; height: 1.05em; }
  .btn--primary { background: var(--btn-bg); color: var(--accent-ink); box-shadow: none; }
  .btn--primary:hover { transform: translateY(-2px); box-shadow: none; }
  .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .btn--ghost:hover { border-color: var(--accent); color: var(--ink); background: color-mix(in oklch, var(--accent) 8%, var(--bg)); }
  .btn--lg { padding: 1em 1.6em; font-size: var(--step-1); }

  .arrow-link {
    display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--accent);
    font-family: var(--font-display);
  }
  .arrow-link svg { width: 0.95em; height: 0.95em; transition: transform .25s var(--ease); }
  .arrow-link:hover svg { transform: translateX(4px); }

  /* ---------- Header / nav ---------- */
  .site-header {
    position: sticky; top: 0; z-index: var(--z-nav);
    background: color-mix(in oklch, var(--bg) 78%, var(--bg));
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), background .3s var(--ease);
  }
  .site-header[data-scrolled="true"] { border-bottom-color: var(--line-soft); background: color-mix(in oklch, var(--bg) 90%, var(--bg)); }
  .nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
  .brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--ink); }
  .brand .mark { width: 28px; height: 28px; flex: none; }
  .nav-links { display: flex; align-items: center; gap: 0.35rem; margin-inline: auto; }
  .nav-links > li { position: relative; }
  .nav-link {
    display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.5rem 0.75rem; border-radius: 8px;
    color: var(--ink-2); font-weight: 500; font-size: var(--step--1); letter-spacing: 0.01em;
    transition: color .2s, background .2s;
  }
  .nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); background: var(--surface); }
  .nav-link[aria-expanded] svg { width: 0.7em; height: 0.7em; transition: transform .25s var(--ease); }
  .nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

  .mega {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
    width: min(560px, 86vw); background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--r-xl); padding: 0.75rem; box-shadow: none;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem;
    opacity: 0; visibility: hidden; pointer-events: none; z-index: var(--z-dropdown);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav-item:hover .mega, .nav-item:focus-within .mega, .mega[data-open="true"] { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
  .mega a { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.8rem; padding: 0.7rem 0.8rem; border-radius: var(--r-md); transition: background .2s; }
  .mega a:hover { background: var(--surface); }
  .mega .mi { grid-column: 1; grid-row: 1 / span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); align-self: start; }
  .mega .mi svg { width: 18px; height: 18px; }
  .mega .mt { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 0.95rem; }
  .mega .md { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
  .nav-cta { display: flex; align-items: center; gap: 0.6rem; }
  .nav-toggle { display: none; }

  @media (max-width: 940px) {
    .nav-links, .nav-cta .btn--ghost { display: none; }
    .nav-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
    .mobile-panel { position: fixed; inset: 68px 0 0; z-index: var(--z-dropdown); background: var(--bg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; overflow-y: auto; padding: 1.5rem var(--gutter) 3rem; }
    .mobile-panel[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
    .mobile-panel a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
    .mobile-panel .mgroup { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; color: var(--muted); margin-top: 1.5rem; }
    .mobile-panel .btn { width: 100%; margin-top: 1.5rem; }
  }
  @media (min-width: 941px) { .mobile-panel { display: none; } }

  /* ---------- Hero ---------- */
  .hero { padding-block: clamp(3rem, 2rem + 6vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5rem); }
  .hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
  @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
  .hero h1 { margin-top: 1.2rem; }
  .hero .lead { margin-top: 1.4rem; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
  .hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
  .hero-trust .ht { display: grid; gap: 0.15rem; }
  .hero-trust .htn { font-family: var(--font-mono); font-size: var(--step-2); color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
  .hero-trust .htl { font-size: 0.8rem; color: var(--muted); }

  /* ---------- Cards & panels ---------- */
  .panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: none; }
  .grid { display: grid; gap: clamp(0.9rem, 2vw, 1.4rem); }
  .grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

  .feature { padding: clamp(1.3rem, 2.4vw, 1.8rem); display: grid; gap: 0.7rem; align-content: start; transition: transform .3s var(--ease), border-color .3s var(--ease); }
  .feature:hover { transform: translateY(-3px); border-color: color-mix(in oklch, var(--accent) 45%, var(--line)); }
  .feature .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
  .feature .ic svg { width: 21px; height: 21px; }
  .feature h3 { font-size: var(--step-1); }
  .feature p { color: var(--ink-2); font-size: 0.96rem; }

  /* metric readout */
  .metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
  .metric { background: var(--bg-2); padding: clamp(1.3rem, 2.5vw, 1.9rem); }
  .metric .mv { font-family: var(--font-mono); font-size: var(--step-3); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
  .metric .mv .u { color: var(--accent); }
  .metric .ml { margin-top: 0.5rem; color: var(--muted); font-size: 0.86rem; }
  .metric .md2 { margin-top: 0.3rem; color: var(--ink-2); font-size: 0.9rem; }

  /* pill / tag */
  .tag { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-soft); padding: 0.35em 0.7em; border-radius: 999px; }
  .tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

  /* stat inline */
  .badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

  /* ---------- Split feature rows ---------- */
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
  .split--rev .split-media { order: -1; }
  @media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split-media { order: 0; } }
  .split-media { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-soft); background: var(--bg-2); box-shadow: none; }

  /* ---------- Steps / process ---------- */
  .steps { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
  .step { background: var(--bg-2); padding: clamp(1.3rem, 2.5vw, 1.9rem); display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.2rem; }
  .step .sn { grid-row: 1 / span 2; font-family: var(--font-mono); color: var(--accent); font-size: 1.1rem; font-weight: 600; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid color-mix(in oklch, var(--accent) 40%, var(--line)); border-radius: 10px; }
  .step h4 { font-size: var(--step-1); }
  .step p { color: var(--ink-2); font-size: 0.95rem; }

  /* ---------- Product ecosystem grid ---------- */
  .eco { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(0.9rem, 2vw, 1.3rem); }
  .eco-card { padding: 1.5rem; border-radius: var(--r-lg); border: 1px solid var(--line-soft); background: var(--surface); display: grid; gap: 0.7rem; align-content: start; position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .3s var(--ease); }
  .eco-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--pc, var(--accent)); opacity: 0.9; }
  .eco-card:hover { transform: translateY(-4px); border-color: color-mix(in oklch, var(--pc, var(--accent)) 55%, var(--line)); }
  .eco-card .en { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; }
  .eco-card .et { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pc, var(--accent)); }
  .eco-card p { color: var(--ink-2); font-size: 0.92rem; }

  /* ---------- Table ---------- */
  .table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
  table.spec { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
  table.spec th, table.spec td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
  table.spec thead th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); background: var(--bg-2); }
  table.spec tbody tr:last-child td { border-bottom: 0; }
  table.spec td:first-child { color: var(--ink); font-weight: 500; }
  table.spec .ok { color: var(--gold); }

  /* ---------- Pricing ---------- */
  .price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; align-items: start; }
  .price { padding: clamp(1.5rem, 3vw, 2.1rem); border-radius: var(--r-xl); border: 1px solid var(--line-soft); background: var(--surface); display: grid; gap: 1rem; }
  .price[data-featured="true"] { border-color: color-mix(in oklch, var(--accent) 60%, var(--line)); background: color-mix(in oklch, var(--accent) 10%, var(--surface)); box-shadow: none; }
  .price .pn { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
  .price .pp { font-family: var(--font-mono); font-size: var(--step-3); color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
  .price .pp small { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
  .price ul { display: grid; gap: 0.6rem; margin-top: 0.4rem; }
  .price li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; font-size: 0.92rem; color: var(--ink-2); }
  .price li svg { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }

  /* ---------- FAQ ---------- */
  .faq { border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
  .faq details { border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
  .faq details:last-child { border-bottom: 0; }
  .faq summary { cursor: pointer; padding: 1.15rem 1.3rem; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; list-style: none; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 1.4rem; transition: transform .25s var(--ease); }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq .fa { padding: 0 1.3rem 1.3rem; color: var(--ink-2); max-width: 70ch; }

  /* ---------- Logos / marquee ---------- */
  .cloud { display: flex; flex-wrap: wrap; gap: 0.7rem 0.7rem; }
  .cloud .chip { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); border: 1px solid var(--line-soft); background: var(--surface); padding: 0.5em 0.9em; border-radius: 999px; }

  /* ---------- Quote ---------- */
  .quote { border-left: 0; padding: clamp(1.6rem, 4vw, 2.8rem); border: 1px solid var(--line-soft); border-radius: var(--r-xl); background: none; }
  .quote blockquote { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }
  .quote .qby { margin-top: 1.3rem; display: flex; align-items: center; gap: 0.9rem; }
  .quote .qav { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; }
  .quote .qn { color: var(--ink); font-weight: 600; }
  .quote .qr { color: var(--muted); font-size: 0.86rem; }

  /* ---------- CTA band ---------- */
  .cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); border: 1px solid color-mix(in oklch, var(--accent) 30%, var(--line)); padding: clamp(2.2rem, 5vw, 4rem); background: color-mix(in oklch, var(--accent) 18%, var(--bg-2)); text-align: center; }
  .cta-band h2 { max-width: 20ch; margin-inline: auto; }
  .cta-band .lead { margin: 1rem auto 0; }
  .cta-band .hero-actions { justify-content: center; }

  /* ---------- Footer ---------- */
  .site-footer { border-top: 1px solid var(--line-soft); background: none; margin-top: 2rem; }
  .foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
  @media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
  .foot-brand { display: grid; gap: 1rem; align-content: start; max-width: 30ch; }
  .foot-col h5 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--muted); margin-bottom: 1rem; }
  .foot-col a { display: block; padding: 0.35rem 0; color: var(--ink-2); font-size: 0.92rem; }
  .foot-col a:hover { color: var(--ink); }
  .foot-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.5rem; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 0.84rem; }

  /* ---------- Forms ---------- */
  .field { display: grid; gap: 0.45rem; }
  .field label { font-size: 0.86rem; color: var(--ink-2); font-weight: 500; }
  .field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.8rem 0.95rem; color: var(--ink); transition: border-color .2s; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
  .field textarea { min-height: 130px; resize: vertical; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  @media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

  /* ---------- Timeline ---------- */
  .timeline { display: grid; gap: 0; }
  .tl-item { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding-bottom: 1.8rem; position: relative; }
  .tl-item::before { content: ""; position: absolute; left: 20px; top: 42px; bottom: -4px; width: 1px; background: var(--line); }
  .tl-item:last-child::before { display: none; }
  .tl-item .tlyr { font-family: var(--font-mono); font-weight: 600; color: var(--accent); font-size: 0.82rem; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid color-mix(in oklch, var(--accent) 40%, var(--line)); border-radius: 999px; background: var(--bg); z-index: 1; }
  .tl-item h4 { font-size: var(--step-1); }
  .tl-item p { color: var(--ink-2); font-size: 0.95rem; }

  /* ---------- Prose ---------- */
  .prose { max-width: 70ch; }
  .prose h2 { font-size: var(--step-3); margin-top: 2.5rem; }
  .prose h3 { margin-top: 2rem; }
  .prose p, .prose li { color: var(--ink-2); }
  .prose ul { display: grid; gap: 0.5rem; padding-left: 1.2rem; list-style: disc; margin-block: 1rem; }
  .prose p + p { margin-top: 1rem; }

  /* ---------- Callout ---------- */
  .callout { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.3rem 1.5rem; border-radius: var(--r-lg); border: 1px solid color-mix(in oklch, var(--accent) 30%, var(--line)); background: var(--accent-soft); }
  .callout .ic { color: var(--accent); }
  .callout p { color: var(--ink); }

  /* ---------- EL panel / process visuals ---------- */
  .el-cell { transition: opacity .3s; }
  @media (prefers-reduced-motion: no-preference) {
    .el-cell { animation: elpulse 4.4s ease-in-out infinite; animation-delay: var(--delay, 0s); }
    .el-crack { animation: elflicker 3.1s steps(2, jump-none) infinite; }
    .photon-scan { animation: scan 6s linear infinite; }
    .flux { stroke-dasharray: 6 8; animation: flux 2.4s linear infinite; }
  }
  @keyframes elpulse { 0%,100% { opacity: 0.72; } 50% { opacity: 1; } }
  @keyframes elflicker { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
  @keyframes scan { 0% { transform: translateY(-8%); opacity: 0; } 10%,90% { opacity: 0.9; } 100% { transform: translateY(108%); opacity: 0; } }
  @keyframes flux { to { stroke-dashoffset: -28; } }
  .figframe { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-soft); background: 120% 120% at 70%; box-shadow: none; }

  /* SVG media helpers */
  .media-svg { width: 100%; height: auto; display: block; }
  .figcap { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.75rem 1rem; border-top: 1px solid var(--line-soft); background: var(--bg-2); }
}

@layer utilities {
  .text-center { text-align: center; }
  .mx-auto { margin-inline: auto; }
  .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
  .flow-sm { --flow: 0.6rem; } .flow-lg { --flow: 1.6rem; }
  .accent-gold { --accent: var(--gold); --accent-2: var(--gold); --accent-ink: oklch(0.18 0.03 90); }
  .center-head { max-width: 62ch; margin-inline: auto; text-align: center; }
  .center-head .lead { margin-inline: auto; }
  .hidden { display: none; }

  /* reveal (enhances already-visible content) */
  .reveal { opacity: 1; }
  @media (prefers-reduced-motion: no-preference) {
    .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
    .js .reveal.in { opacity: 1; transform: none; }
    .js .reveal[data-d="1"] { transition-delay: .08s; }
    .js .reveal[data-d="2"] { transition-delay: .16s; }
    .js .reveal[data-d="3"] { transition-delay: .24s; }
  }
}

@layer components {
  /* standalone chip (used outside .cloud, e.g. pre-footer) */
  .chip { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); border: 1px solid var(--line-soft); background: var(--surface); padding: 0.5em 0.95em; border-radius: 999px; transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
  a.chip:hover { color: var(--ink); border-color: color-mix(in oklch, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
  a.chip[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
  .chip--pc { color: var(--ink); border-color: color-mix(in oklch, var(--pc, var(--accent)) 40%, var(--line-soft)); }
  a.chip--pc:hover { border-color: var(--pc, var(--accent)); }

  /* pre-footer strip */
  .prefoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem 2rem; }
  .prefoot-lead { display: grid; gap: 0.5rem; }
  .prefoot-tag { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); letter-spacing: -0.02em; color: var(--ink); }
  .prefoot-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
}

@layer components {
  /* default inline-icon sizing so stray icons never balloon; .media-svg & .mark override */
  svg:not(.media-svg):not(.mark) { width: 1.2em; height: 1.2em; }
  /* standalone icon chip (contact/demo/careers panels, callout) */
  .ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
  .ic svg { width: 21px; height: 21px; }
  .callout .ic { width: auto; height: auto; background: none; place-items: start; }
  .callout .ic svg { width: 22px; height: 22px; }
}
