/* =========================================================================
   W Systems shared design system ("Signal flow")
   Owned by the foundation builder. Inner pages build on this file; add page
   specific rules to assets/css/<page>.css instead of editing it.

   CLASS INDEX
   Layout
     .wrap              centered column, max 1320px, side gutters
     .wrap--narrow      narrower column (about 980px) for prose
     .section           vertical rhythm block with top hairline. Add data-node="03 REACH"
                        (and a .sec-label inside) to get a node on the signal line
     .section--paper    the occasional light section (ink text on paper)
     .section--tight    smaller vertical padding
     .split             asymmetric two column grid (7/5). .split--rev swaps sides
     .grid-2 .grid-3    even grids that collapse to one column on small screens
     .stack             vertical rhythm for children (--gap to tune)
     .prose             readable long text block (max 64ch, spaced paragraphs)
   Type
     .display           expanded uppercase Archivo headline base
     .h-hero .h-xl .h-lg .h-md   display sizes, largest to smallest
     .lede              larger intro paragraph
     .mono              mono label type. .muted dims text. .accent colors text orange
     .sec-label         numbered section label: <p class="sec-label"><span>02</span>Solutions</p>
     .tag               small hairline mono chip
   Controls
     .btn               base button. Modifiers: .btn--primary (orange) .btn--ghost (hairline)
                        .btn--ink (dark, for use on orange) .btn--sm .btn--arrow
     .link-arrow        inline mono link with an arrow
   Media
     .frame             bezel photo frame. <figure class="frame" style="--ar:4/3"><img ...>
                        <figcaption class="frame-cap">..</figcaption></figure>
                        Modifiers: .frame--wide (16/9) .frame--tall (3/4)
   Components
     .page-hero         compact inner page hero. Children: .crumbs (mono breadcrumb),
                        .page-hero-grid, .page-hero-copy, .page-hero-media. Use .h-xl on the h1
     .rack .panel       rack panel list for solutions (see index.html)
     .spec-list         dl of hairline separated label / value rows
     .faq               accordion built on <details class="faq-item"><summary>..</summary><div class="faq-a">
     .cta-band          the one orange block per page. Children: .cta-inner .cta-actions
     .ticker            platform marquee (see index.html). Needs data-ticker
     .field .field-row  form field wrapper (label, input, select, textarea inside .field)
     .form-note         small mono note under a button
     .lightbox          dialog base styles used by site.js for a[data-lightbox]
   Chrome
     .site-header .brand .site-nav .menu-btn .header-cta   (header)
     .site-footer .footer-grid .footer-tag                  (footer)
     .skip-link .sr-only                                    (accessibility)
   Motion hooks
     [data-reveal]      fade and rise on scroll. data-reveal="2" adds a stagger step.
     [data-stagger]     on a parent: reveals its children one after another
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #0A0B0D;
  --panel: #121419;
  --panel-2: #1A1D23;
  --line: #2A2E36;
  --text: #EFEAE2;
  --muted: #9BA1AA;
  --signal: #F26A1B;
  --signal-hot: #FF8B45;
  --cable: #7B6CF6;
  --paper: #F1ECE4;

  --f-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --sec-pad: clamp(64px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --line-x: max(16px, calc(50% - 690px));
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.menu-lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
summary { cursor: pointer; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cable); outline-offset: 3px; }

/* faint blueprint grid behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(239, 234, 226, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(239, 234, 226, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 85%);
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 300;
  background: var(--signal); color: var(--ink);
  font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 18px; border-radius: 2px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 980px; }
main { position: relative; display: block; }

.section { position: relative; padding-block: var(--sec-pad); border-top: 1px solid var(--line); }
.section--tight { padding-block: calc(var(--sec-pad) * .6); }
.section--paper {
  background: var(--paper); color: var(--ink);
  --text: #0A0B0D; --muted: #4A4F58; --line: #CFC8BC; --panel: #E8E2D8; --signal: #B0420A;
  border-top-color: transparent;
}
.section--paper .btn--ghost { color: var(--ink); }

.split { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.grid-2, .grid-3 { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stack > * + * { margin-top: var(--gap, 1.1em); }
.prose { max-width: 64ch; }
.prose > * + * { margin-top: 1.1em; }
.prose a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }

/* signal line in the left gutter (desktop only) */
.signal { display: none; }
@media (min-width: 1100px) {
  main .wrap { padding-left: max(var(--gut), 64px); }
  .signal {
    display: block; position: absolute; top: 0; bottom: 0; left: var(--line-x);
    width: 2px; background: var(--line); pointer-events: none; z-index: 2;
  }
  .signal-fill {
    position: absolute; inset: 0; background: var(--signal);
    transform-origin: top; transform: scaleY(var(--p, 1));
    box-shadow: 0 0 14px rgba(242, 106, 27, .55);
  }
  .signal-fill::after {
    content: ""; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px;
    margin-left: -4.5px; border-radius: 50%; background: var(--signal-hot);
    box-shadow: 0 0 12px 3px rgba(255, 139, 69, .7);
  }
  .section[data-node]::before {
    content: ""; position: absolute; z-index: 3; left: var(--line-x); top: calc(var(--sec-pad) + 4px);
    width: 12px; height: 12px; margin-left: -5px; border-radius: 50%;
    background: var(--ink); border: 2px solid var(--signal);
  }
  .section--paper[data-node]::before { background: var(--paper); }
}
@media (prefers-reduced-motion: reduce) { .signal-fill { transform: none; } }

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.display em, .accent { color: var(--signal); font-style: normal; }
.h-hero { font-size: clamp(2.6rem, 7.5vw, 7rem); }
.h-xl { font-size: clamp(1.8rem, 5vw, 4.4rem); }
.h-lg { font-size: clamp(1.5rem, 3.3vw, 2.9rem); line-height: 1; }
.h-md { font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.05; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--muted); max-width: 58ch; }
.mono, .tag, .sec-label {
  font-family: var(--f-mono); font-size: 12px; line-height: 1.4;
  text-transform: uppercase; letter-spacing: .14em; font-weight: 500;
}
.muted { color: var(--muted); }
.tag { display: inline-block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); }

.sec-label { display: flex; align-items: center; gap: 14px; color: var(--muted); margin-bottom: clamp(28px, 4vw, 52px); }
.sec-label span { color: var(--signal); }
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Buttons ---------- */
:root {
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E");
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  padding: 1.05em 1.5em; border: 1px solid transparent; border-radius: 2px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn--arrow::after, .link-arrow::after {
  content: ""; width: 1.15em; height: 1.15em; background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.btn--arrow:hover::after, .link-arrow:hover::after { transform: translateX(4px); }
.btn--primary { background: var(--signal); color: var(--ink); }
.btn--primary:hover { background: var(--signal-hot); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn--ink { background: var(--ink); color: var(--text); }
.btn--ink:hover { background: #000; transform: translateY(-1px); }
.btn--sm { padding: .85em 1.1em; font-size: 11px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .7em;
  font: 500 12px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); padding-bottom: 4px; border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s;
}
.link-arrow:hover { color: var(--signal); border-color: var(--signal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 11, 13, .88);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.is-scrolled { background: rgba(10, 11, 13, .97); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: var(--header-h); }
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-w { width: 52px; height: auto; overflow: visible; }
.brand-w path { fill: none; stroke: var(--signal); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.brand-word {
  font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125;
  font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .js .brand-w path { stroke-dasharray: 1 2; stroke-dashoffset: 1.1; animation: w-draw 1.1s var(--ease) .15s forwards; }
}
@keyframes w-draw { to { stroke-dashoffset: 0; } }

.site-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.site-nav a.nav-link {
  position: relative; display: inline-block; padding: 8px 0;
  font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.site-nav a.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a.nav-link:hover, .site-nav a.nav-link[aria-current="page"] { color: var(--text); }
.site-nav a.nav-link:hover::after, .site-nav a.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-extra { display: none; }
.nav-idx { display: none; }

.header-cta { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.header-phone { font: 500 13px/1 var(--f-mono); letter-spacing: .06em; color: var(--text); white-space: nowrap; transition: color .2s; }
.header-phone:hover { color: var(--signal); }
.menu-btn { display: none; }

@media (min-width: 980px) { .site-nav { margin-left: auto; } .header-cta { margin-left: 0; } }
@media (max-width: 1099px) and (min-width: 980px) { .header-phone { display: none; } }

@media (max-width: 979px) {
  .header-cta { display: none; }
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  /* no JS: nav stays a simple row under the logo */
  .site-nav { order: 3; flex-basis: 100%; padding-bottom: 12px; }
  .site-nav ul { flex-wrap: wrap; gap: 4px 22px; }
  .nav-extra { display: block; }

  .js .header-inner { flex-wrap: nowrap; }
  .js .menu-btn {
    position: relative; z-index: 2; margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 2px;
  }
  .menu-btn-bars, .menu-btn-bars::before, .menu-btn-bars::after {
    display: block; width: 20px; height: 2px; background: var(--text); transition: transform .3s var(--ease), background .2s;
  }
  .menu-btn-bars { position: relative; }
  .menu-btn-bars::before, .menu-btn-bars::after { content: ""; position: absolute; left: 0; }
  .menu-btn-bars::before { top: -6px; }
  .menu-btn-bars::after { top: 6px; }
  .menu-open .menu-btn-bars { background: transparent; }
  .menu-open .menu-btn-bars::before { transform: translateY(6px) rotate(45deg); background: var(--signal); }
  .menu-open .menu-btn-bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--signal); }

  .js .site-nav {
    position: fixed; inset: 0; z-index: 1; padding: calc(var(--header-h) + 20px) var(--gut) 32px;
    background: var(--ink) radial-gradient(ellipse 80% 50% at 80% 100%, rgba(242, 106, 27, .16), transparent 70%);
    overflow-y: auto; display: flex; flex-direction: column; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .js .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav li { border-bottom: 1px solid var(--line); }
  .js .site-nav a.nav-link {
    display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 18px 0;
    font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125;
    font-weight: 800; font-size: clamp(1.8rem, 8vw, 3rem); letter-spacing: -.02em; line-height: 1; color: var(--text);
  }
  .js .site-nav a.nav-link::after { display: none; }
  .js .site-nav a.nav-link[aria-current="page"] { color: var(--signal); }
  .js .nav-idx { display: inline; font: 500 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--signal); }
  .js .nav-extra { display: block; border-bottom: 0 !important; padding-top: 24px; }
  .nav-extra .nav-phone { display: block; font: 500 20px/1.2 var(--f-mono); margin-bottom: 18px; }
  .nav-extra .btn { width: 100%; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 88px);
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 106, 27, .13), transparent 70%);
}
.hero-grid { position: relative; display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.hero-copy { container-type: inline-size; }
.hero-kicker { color: var(--muted); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.hero-title { font-size: clamp(1.9rem, 10cqw, 5rem); line-height: .94; }
.hero-title .ln { display: block; }
.hero-sub { margin-top: clamp(18px, 2.4vw, 30px); max-width: 44ch; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 36px); }
.hero-meta { margin-top: 26px; color: var(--muted); }
.hero-meta a { color: var(--text); }
.hero-meta a:hover { color: var(--signal); }

/* video wall */
.hero-wall { min-width: 0; }
.wall-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 10px; font-size: 11px; }
.wall-top .live { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.wall-top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.wall {
  --g: 4px; --bz: 4px; --step: calc(2 * var(--bz) + var(--g));
  position: relative; padding: 10px; background: #060708; border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 40px 90px -40px rgba(242, 106, 27, .35), 0 30px 60px -30px #000, inset 0 0 0 1px rgba(255, 255, 255, .03);
}
.wall-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: var(--g); aspect-ratio: 4 / 3;
}
@media (min-width: 600px) { .wall-grid { aspect-ratio: 16 / 10; } }
.tile { position: relative; padding: calc(var(--bz) - 1px); background: #0B0C0F; border: 1px solid #23262D; min-width: 0; min-height: 0; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.screen::after { /* scanlines and gloss */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 35%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .55);
}
.layer { position: absolute; inset: 0; overflow: hidden; }
.slice {
  position: absolute; max-width: none; object-fit: cover; object-position: center 45%;
  width: calc(300% + 2 * var(--step)); height: calc(300% + 2 * var(--step));
  left: calc(var(--c) * (-100% - var(--step)));
  top: calc(var(--r) * (-100% - var(--step)));
}
@media (max-width: 599px) { .wall { --bz: 3px; --g: 3px; padding: 7px; } }
@media (prefers-reduced-motion: no-preference) {
  .js .screen { animation: tile-boot .95s linear backwards; animation-delay: calc(var(--i) * 75ms + 200ms); }
  .js .screen::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 36%; z-index: 4; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .28), transparent);
    animation: tile-scan .8s ease-in backwards; animation-delay: calc(var(--i) * 75ms + 300ms);
  }
  .layer.is-in { animation: wipe .6s var(--ease) both; }
  .screen.is-flash::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 36%; z-index: 4; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(255, 190, 140, .3), transparent);
    animation: tile-scan .6s ease-in both;
  }
}
@keyframes tile-boot {
  0% { opacity: 0; filter: brightness(3) contrast(1.4); }
  14% { opacity: 1; }
  22% { opacity: .12; }
  34% { opacity: 1; filter: brightness(1.9); }
  46% { opacity: .35; }
  62% { opacity: 1; filter: brightness(1.2); }
  100% { opacity: 1; filter: none; }
}
@keyframes tile-scan { from { transform: translateY(-110%); } to { transform: translateY(300%); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.matrix {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 14px;
  padding: 8px; background: linear-gradient(180deg, #181b21, #101216); border: 1px solid var(--line); border-radius: 3px;
}
.matrix button { grid-column: span 2; }
.matrix button:nth-child(n+4) { grid-column: span 3; }
@media (min-width: 640px) {
  .matrix { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .matrix button, .matrix button:nth-child(n+4) { grid-column: auto; }
}
.matrix button {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  padding: 10px 10px 11px; background: #0D0F12; border: 1px solid #262A31; border-radius: 2px;
  font: 500 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s; text-align: left;
}
@media (min-width: 900px) { .matrix button { padding: 12px 12px 13px; font-size: 11px; letter-spacing: .1em; } }
.matrix button .led { width: 6px; height: 6px; border-radius: 50%; background: #3a3128; transition: background .2s, box-shadow .2s; }
.matrix button .num { opacity: .6; }
.matrix button:hover { color: var(--text); border-color: #3a3f48; }
.matrix button[aria-pressed="true"] {
  color: var(--text); border-color: var(--signal); background: #17120E;
  box-shadow: inset 0 0 22px rgba(242, 106, 27, .18), 0 0 18px -6px rgba(242, 106, 27, .6);
}
.matrix button[aria-pressed="true"] .led { background: var(--signal-hot); box-shadow: 0 0 9px 2px rgba(255, 139, 69, .8); }
.readout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: 12px;
  font: 500 12px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--signal);
}
.readout .mode { color: var(--muted); }
.caption { margin-top: 6px; min-height: 3.2em; font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (min-width: 1000px) { .caption { min-height: 0; } }

/* ---------- Photo frame (bezel) ---------- */
.frame {
  position: relative; padding: 6px; background: #050607; border: 1px solid var(--line); border-radius: 2px;
  box-shadow: 0 30px 60px -34px #000;
}
.frame > img { width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; background: var(--panel); }
.frame--wide { --ar: 16 / 9; }
.frame--tall { --ar: 3 / 4; }
.frame::after { /* gradient and fine grain */
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, .05) 40%, rgba(10, 11, 13, .55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-blend-mode: normal, overlay; opacity: .55;
}
.frame-cap {
  position: absolute; z-index: 2; left: 18px; bottom: 14px; right: 18px;
  font: 500 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text);
}
.frame-cap::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); vertical-align: 1px; }

/* ---------- Rack panels ---------- */
.rack { display: grid; gap: 10px; }
.panel {
  position: relative; display: grid; align-items: center; min-height: 112px; overflow: hidden;
  padding: 18px 56px 18px 52px; gap: 6px 24px; grid-template-columns: minmax(0, 1fr) 40px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #1D2027, #13151A);
  border: 1px solid var(--line); border-radius: 2px;
  transition: border-color .3s, background-color .3s;
}
.panel::before, .panel::after { /* rack ears with screw holes */
  content: ""; position: absolute; top: 0; bottom: 0; width: 34px; z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle at 50% 20px, #040405 0 4px, #3a3f48 4.5px 6px, transparent 6.5px),
    radial-gradient(circle at 50% calc(100% - 20px), #040405 0 4px, #3a3f48 4.5px 6px, transparent 6.5px),
    #16181E;
}
.panel::before { left: 0; border-right: 1px solid var(--line); }
.panel::after { right: 0; border-left: 1px solid var(--line); }
.panel-port { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.panel-port .led { width: 8px; height: 8px; border-radius: 50%; background: #4a3424; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); transition: background .25s, box-shadow .25s; }
.panel-main { position: relative; z-index: 2; min-width: 0; }
.panel-name { font-size: clamp(1.45rem, 3.4vw, 2.7rem); line-height: 1; transition: transform .35s var(--ease), color .25s; }
.panel-desc { margin-top: 10px; max-width: 54ch; font-size: 15px; line-height: 1.5; color: var(--muted); }
.panel-arrow {
  position: relative; z-index: 2; justify-self: end; width: 34px; height: 34px; color: var(--muted);
  transition: color .25s, transform .35s var(--ease);
}
.panel-arrow svg { width: 100%; height: 100%; }
.panel-photo { display: none; }
.panel-name, .panel-desc { display: block; }
@media (min-width: 900px) {
  .panel { grid-template-columns: 200px minmax(0, 1fr) 44px; min-height: 124px; padding-block: 0; }
  .panel-port { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 12px; }
  .panel-main { padding-block: 22px; display: grid; align-content: center; }
  .panel-desc { margin-top: 0; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(8px); transition: max-height .4s var(--ease), opacity .3s, transform .4s var(--ease), margin .3s; }
  .panel:hover .panel-desc, .panel:focus-visible .panel-desc, .panel:focus-within .panel-desc { max-height: 5em; opacity: 1; transform: none; margin-top: 10px; }
  .panel-photo {
    display: block; position: absolute; z-index: 1; top: 0; bottom: 0; right: 34px; width: 38%; pointer-events: none;
    opacity: 0; transform: translateX(48px); transition: opacity .4s, transform .5s var(--ease);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%);
  }
  .panel-photo img { width: 100%; height: 100%; object-fit: cover; }
  .panel:hover .panel-photo, .panel:focus-visible .panel-photo { opacity: .9; transform: none; }
}
.panel:hover, .panel:focus-visible { border-color: var(--signal); }
.panel:hover .led, .panel:focus-visible .led { background: var(--signal); box-shadow: 0 0 10px 2px rgba(242, 106, 27, .8); }
.panel:hover .panel-name, .panel:focus-visible .panel-name { color: var(--signal-hot); }
.panel:hover .panel-arrow, .panel:focus-visible .panel-arrow { color: var(--signal); transform: translateX(6px); }
.panel:focus-visible { outline-offset: 4px; }

/* ---------- Radar ---------- */
.radar-grid { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .radar-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.radar { width: 100%; height: auto; overflow: visible; }
@media (max-width: 899px) { .radar { margin-inline: calc(var(--gut) * -.6); width: calc(100% + var(--gut) * 1.2); max-width: none; } }
.rd-ring { fill: none; stroke: var(--line); stroke-width: 1.2; }
.rd-ring--out { stroke-dasharray: 3 6; }
.rd-axis { stroke: var(--line); stroke-width: 1; opacity: .6; }
.rd-fill { fill: rgba(242, 106, 27, .04); }
.rd-tick, .rd-city, .rd-ring-label { font-family: var(--f-mono); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.rd-city { font-size: 13px; fill: var(--text); }
.rd-ring-label, .rd-tick { font-size: 11px; fill: var(--muted); }
.rd-dot { fill: var(--text); }
.rd-dot--in { fill: var(--signal-hot); }
.rd-home { fill: var(--signal); }
.rd-home-ring { fill: none; stroke: var(--signal); stroke-width: 1.5; transform-origin: 320px 320px; }
.rd-sweep-wedge { fill: url(#rd-grad); }
.rd-sweep-line { stroke: var(--signal); stroke-width: 1.5; }
.rd-label-home { font-size: 13px; fill: var(--signal-hot); }
@media (max-width: 640px) {
  .rd-city, .rd-label-home { font-size: 17px; }
  .rd-ring-label, .rd-tick { font-size: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .rd-sweep { transform-origin: 320px 320px; animation: rd-spin 9s linear infinite; }
  .rd-home-ring { animation: rd-ping 2.6s ease-out infinite; }
}
@keyframes rd-spin { to { transform: rotate(360deg); } }
@keyframes rd-ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

.spec-list { border-top: 1px solid var(--line); }
.spec-list > div { display: grid; gap: 4px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .spec-list > div { grid-template-columns: 150px minmax(0, 1fr); } }
.spec-list dt { font: 500 12px/1.5 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal); padding-top: 3px; }
.spec-list dd { color: var(--text); }

.stat { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding: 20px; border: 1px solid var(--signal); border-radius: 2px; background: rgba(242, 106, 27, .06); }
.stat-num { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--signal-hot); }
.stat-text { flex: 1 1 220px; color: var(--text); }

.city-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-top: 24px; border-top: 1px solid var(--line); }
.city-list li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font: 500 11px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.city-list li span:last-child { color: var(--text); }

/* ---------- Selected work grid ---------- */
.work-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-grid a { position: relative; display: block; overflow: hidden; }
.work-grid .frame { height: 100%; }
.work-grid .frame > img { height: 100%; transition: transform .8s var(--ease); }
.work-grid a:hover .frame > img { transform: scale(1.04); }
.work-grid .frame { overflow: hidden; }
.work-grid a:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .work-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 250px; }
  .work-grid a:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 3; }
  .work-grid a:nth-child(2) { grid-column: 6 / 10; grid-row: 1; }
  .work-grid a:nth-child(6) { grid-column: 10 / 13; grid-row: 1; }
  .work-grid a:nth-child(3) { grid-column: 6 / 9; grid-row: 2; }
  .work-grid a:nth-child(4) { grid-column: 9 / 11; grid-row: 2; }
  .work-grid a:nth-child(5) { grid-column: 11 / 13; grid-row: 2; }
  .work-grid a:first-child { grid-column: 1 / 6; }
}
.work-grid .frame > img { aspect-ratio: auto; }
@media (max-width: 899px) { .work-grid a:last-child { grid-column: 1 / -1; } .work-grid a .frame > img { aspect-ratio: 4 / 3; } .work-grid a:first-child .frame > img { aspect-ratio: 16 / 10; } }

/* ---------- Ticker ---------- */
.ticker-wrap { border-block: 1px solid var(--line); background: var(--panel); padding-block: 22px; overflow: hidden; }
.ticker-label { margin-bottom: 14px; color: var(--muted); }
.ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; flex-wrap: wrap; gap: 6px 0; width: max-content; max-width: 100%; }
.ticker-group { display: flex; flex-wrap: wrap; flex: none; }
.ticker-item {
  display: inline-flex; align-items: center; flex: none; gap: 28px; padding-right: 28px;
  font: 500 clamp(18px, 2.4vw, 28px)/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text);
}
.ticker-item::after { content: ""; width: 7px; height: 7px; background: var(--signal); transform: rotate(45deg); }
.js .ticker-track { flex-wrap: nowrap; width: max-content; max-width: none; }
.js .ticker-group { flex-wrap: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .js .ticker.is-live .ticker-track { animation: tick var(--dur, 60s) linear infinite; }
  .js .ticker.is-live:hover .ticker-track { animation-play-state: paused; }
}
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .js .ticker-track { flex-wrap: wrap; width: auto; } .js .ticker-group { flex-wrap: wrap; } .ticker { -webkit-mask-image: none; mask-image: none; } }

/* ---------- Statements (accountability) ---------- */
.statement-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .statement-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.statement-head { color: var(--signal); margin-bottom: 18px; }
.statement-big { font-size: clamp(1.6rem, 3.8vw, 3.4rem); }
.statement-body { margin-top: 20px; max-width: 52ch; color: var(--muted); }
.vision-line { margin-top: clamp(36px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 14px 40px; }
@media (min-width: 900px) { .vision-line { grid-template-columns: 200px minmax(0, 1fr); } }
.vision-line p:last-child { max-width: 68ch; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; list-style: none;
  font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 700;
  font-size: clamp(1.05rem, 2.1vw, 1.55rem); line-height: 1.15; text-transform: uppercase; letter-spacing: -.01em;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 22px; height: 22px;
  background:
    linear-gradient(var(--signal), var(--signal)) center / 100% 2px no-repeat,
    linear-gradient(var(--signal), var(--signal)) center / 2px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item summary:hover { color: var(--signal-hot); }
.faq-a { padding: 0 0 28px; max-width: 70ch; color: var(--muted); }
.faq-a > * + * { margin-top: .8em; }
.faq-a a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .faq-item[open] .faq-a { animation: faq-in .4s var(--ease); } }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--signal); color: var(--ink); padding-block: clamp(56px, 8vw, 112px); overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.cta-inner { position: relative; display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .cta-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.cta-band .h-xl { color: var(--ink); }
.cta-band p { max-width: 46ch; margin-top: 18px; font-size: 19px; line-height: 1.5; }
.cta-actions { display: grid; gap: 14px; }
.cta-actions .cta-line {
  display: block; padding: 18px 0; border-bottom: 2px solid var(--ink);
  font: 500 clamp(18px, 2.4vw, 26px)/1.2 var(--f-mono); letter-spacing: .02em; overflow-wrap: anywhere;
}
.cta-actions .cta-line:first-child { border-top: 2px solid var(--ink); }
.cta-actions .cta-line small { display: block; margin-bottom: 6px; font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.cta-actions a.cta-line { transition: padding-left .25s var(--ease); }
.cta-actions a.cta-line:hover { padding-left: 12px; }
.cta-actions .btn { justify-self: start; margin-top: 8px; }
.cta-band :focus-visible { outline-color: var(--ink); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(36px, 6vw, 88px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -30% auto auto -10%; width: 60%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 106, 27, .1), transparent 70%);
}
.page-hero-grid { position: relative; display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 900px) { .page-hero-grid--photo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.page-hero-copy > * + * { margin-top: clamp(16px, 2vw, 26px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 0; margin-bottom: clamp(22px, 3vw, 40px); font: 500 11px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--signal); }
.crumbs a:hover { color: var(--signal); }
.crumbs [aria-current="page"] { color: var(--text); }
.page-hero-media { min-width: 0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font: 500 11px/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 14px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 2px; font-size: 16px; line-height: 1.4;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--signal) 50%), linear-gradient(135deg, var(--signal) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3d424c; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cable); box-shadow: 0 0 0 3px rgba(123, 108, 246, .3); background: var(--panel-2); }
.field-row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
form .field + .field, form .field-row + .field, form .field + .field-row, form .field-row + .field-row { margin-top: 18px; }
.form-note { margin-top: 14px; font: 500 11px/1.6 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink); padding: clamp(56px, 8vw, 112px) 0 28px; }
.footer-tag { font-size: clamp(1.9rem, 5.6vw, 5rem); line-height: .94; }
.footer-grid { display: grid; gap: 40px; margin-top: clamp(40px, 6vw, 80px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr .8fr 1fr; } }
.footer-col h2 { font: 500 11px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--signal); margin-bottom: 18px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--text); transition: color .2s; }
.footer-col a:hover { color: var(--signal); }
.footer-col p { color: var(--muted); font-size: 16px; }
.footer-col .mono-link { font: 500 15px/1.5 var(--f-mono); letter-spacing: .02em; overflow-wrap: anywhere; }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: clamp(40px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 40px); background: rgba(5, 6, 7, .94);
}
.lightbox.is-open { display: flex; }
.lightbox-figure { max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.lightbox-img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; margin-inline: auto; object-fit: contain; border: 1px solid var(--line); background: #000; }
.lightbox-cap { font: 500 12px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.lightbox-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 2px; color: var(--text);
  font: 500 18px/1 var(--f-mono); transition: border-color .2s, color .2s;
}
.lightbox-btn:hover { border-color: var(--signal); color: var(--signal); }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; } }

/* ---------- Reveal ---------- */
[data-reveal] { --d: 0ms; }
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease) var(--d), transform .6s var(--ease) var(--d); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media print { .signal, body::before { display: none; } }
