/* ==========================================================================
   SQUARED STUDIO — styles.css
   Identity system v1.0
   Base unit: 8px · Grid cell: 48px · Corners: none.
   ========================================================================== */

:root {
  /* ---- Brand palette ---- */
  --blueprint:         #0D1E33;
  --blueprint-2:       #122842;
  --blueprint-3:       #17304D;
  --vellum:       #EDF2F5;
  --vellum-2:     #DCE4EA;
  --vellum-3:     #C9D4DD;
  --signal:      #FF5A1F;
  --signal-deep: #D9430C;
  --slate:         #8A9BB0;

  /* ---- Semantic (dark default) ---- */
  --bg:          var(--blueprint);
  --bg-2:        var(--blueprint-2);
  --bg-3:        var(--blueprint-3);
  --fg:          var(--vellum);
  --fg-2:        var(--vellum-2);
  --muted:       var(--slate);
  --line:        rgba(237, 242, 245, 0.14);
  --line-strong: rgba(237, 242, 245, 0.34);
  --grid:        rgba(140, 185, 235, 0.11);

  /* ---- Type ---- */
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- Layout ---- */
  --unit:   8px;
  --cell:   48px;
  --gutter: clamp(20px, 4vw, 56px);
  --max:    1360px;
  --nav-h:  72px;
  --ease:   cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:          var(--vellum);
  --bg-2:        #FFFFFF;
  --bg-3:        var(--vellum-2);
  --fg:          var(--blueprint);
  --fg-2:        #1E3048;
  --muted:       #58697D;
  --line:        rgba(13, 30, 51, 0.14);
  --line-strong: rgba(13, 30, 51, 0.34);
  --grid:        rgba(31, 78, 140, 0.13);
  color-scheme: light;
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background .45s var(--ease), color .45s var(--ease);
}

/* The grid is always there. We just don't hide it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: center top;
}

::selection { background: var(--signal); color: var(--blueprint); }

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ==========================================================================
   Brand primitives
   ========================================================================== */

/* The mark: a square, squared. */
.mark { width: 28px; height: 28px; flex: none; }
.mark .m-base { fill: currentColor; }
.mark .m-exp  { fill: var(--signal); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.wordmark {
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.02em;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1;
}
.wordmark small {
  display: block;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: .26em;
  font-size: 8.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* Buttons: no radius. A tiny exponent lives on every button. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--fg);
  color: var(--fg);
  background: transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 9px;
  height: 9px;
  background: var(--signal);
  transition: transform .3s var(--ease);
}
.btn:hover::after { transform: scale(1.7); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--signal); border-color: var(--signal); color: var(--blueprint); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn-sm { padding: 11px 16px; font-size: 11px; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
.nav-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav-links a::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--signal);
  transform: translateY(-50%) scale(0);
  transition: transform .25s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a:hover::before,
.nav-links a[aria-current="page"]::before { transform: translateY(-50%) scale(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--fg); }
.theme-toggle i {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--fg);
  transition: transform .4s var(--ease), background .3s;
}
:root[data-theme="light"] .theme-toggle i {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--fg);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  place-items: center;
  cursor: pointer;
}
.menu-btn i {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--fg);
  box-shadow: 0 -5px 0 var(--fg), 0 5px 0 var(--fg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  z-index: 1;
  min-height: min(calc(100svh - var(--nav-h)), 1080px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
#grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px var(--gutter) 48px;
  pointer-events: none;
}
.hero-inner a, .hero-inner button { pointer-events: auto; }

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--signal);
  flex: none;
}
.eyebrow .sep { opacity: .4; }

.giant {
  position: relative;
  display: inline-block;
  margin: 28px 0 0;
  font-size: clamp(56px, 12.9vw, 186px);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.04em;
  line-height: .84;
  text-transform: uppercase;
  white-space: nowrap;
}
.giant .exp {
  position: absolute;
  top: -.02em;
  right: -.24em;
  width: .19em;
  height: .19em;
  background: var(--signal);
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-top: clamp(28px, 4vw, 56px);
}
.hero-studio {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: .04em;
  line-height: .95;
  text-transform: uppercase;
}
.hero-studio span { color: var(--signal); }
.lede {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 54ch;
}
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-meta {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  pointer-events: none;
}
.hero-meta .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Ticker
   ========================================================================== */

.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  background: var(--bg);
}
.ticker-track {
  display: inline-flex;
  animation: ticker 48s linear infinite;
  will-change: transform;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 0 16px 0 32px;
}
.ticker-track span::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--signal);
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  position: relative;
  z-index: 1;
  padding: clamp(88px, 10vw, 168px) 0;
  border-bottom: 1px solid var(--line);
}
.section.alt { background: var(--bg-2); }

.sec-head {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: clamp(44px, 6vw, 88px);
}
.sec-num {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-num b {
  font-family: var(--sans);
  font-size: 44px;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--fg);
}
.sec-num b sup {
  font-size: .4em;
  color: var(--signal);
  vertical-align: top;
  margin-left: 2px;
}

.title {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(38px, 5.2vw, 80px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .96;
  max-width: 16ch;
}
.title em { font-style: normal; color: var(--signal); }
.sec-intro {
  margin-top: 24px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}

/* ==========================================================================
   Line 01 — Products
   Two audience groups. Each group: who it's for on the left, instruments on
   the right. Same card template everywhere.
   ========================================================================== */

.line {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1px;
  background: var(--line);
}
.group-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--bg);
}
.for {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signal);
}
.for::before { content: ""; width: 8px; height: 8px; background: var(--signal); flex: none; }
.group-head h3 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.02;
  text-wrap: balance;
}
.group-head > p { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 38ch; }
.compat {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.8;
  color: var(--fg-2);
  max-width: 46ch;
}
.compat b { color: var(--signal); font-weight: 500; }

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  background: var(--bg);
  transition: background .3s var(--ease);
}
.product:hover { background: var(--bg-2); }
.product::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background: var(--signal);
  transform: scale(0);
  transition: transform .3s var(--ease);
}
.product:hover::after { transform: scale(1); }

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.status { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; background: var(--signal); }
.status.concept::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.status.beta::before { animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.viz {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.product:hover .viz { background: var(--bg-3); }

.product h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
}
.product .pitch { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 40ch; }

.specs {
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.specs > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.5;
}
.specs dt { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.specs dd { margin: 0; color: var(--fg-2); }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
}
.product-link::after { content: "→"; transition: transform .25s var(--ease); }
.product:hover .product-link::after { transform: translateX(6px); }

/* Flagship: text left, big visual right */
.flagship {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px 40px;
}
.flagship > .product-top { grid-column: 1 / -1; }
.flagship > .viz { grid-column: 2; grid-row: 2; min-height: 380px; }
.flagship > .body { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; }
.flagship > .body .product-link { margin-top: auto; padding-top: 22px; }
.flagship h3 { font-size: 40px; }

/* Availability */
.availability {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  background: var(--bg);
}
.availability p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 56ch; }
.availability .btn { flex: none; }

/* --- Gauge: menu bar readout --- */
.vbar {
  width: 100%;
  max-width: 250px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.vbar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  white-space: nowrap;
}
.vbar-top .mark { width: 12px; height: 12px; }
.vbar-top .live {
  width: 6px;
  height: 6px;
  margin-left: auto;
  background: var(--signal);
  animation: blink 1.6s steps(1) infinite;
}
.vbar-drop { margin-top: 6px; border: 1px solid var(--line); background: var(--bg); }
.vbar-drop .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-top: 1px solid var(--line);
}
.vbar-drop .row:first-child { border-top: 0; }
.vbar-drop .row span { color: var(--muted); }
.vbar-drop .row b { color: var(--fg); font-weight: 500; }

/* --- Gauge Watch: glance tiles --- */
.vwatch { display: grid; grid-template-columns: repeat(2, 86px); gap: 6px; }
.vwatch .tile {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  animation: tile 6s steps(1) infinite;
}
.vwatch .tile:nth-child(2) { animation-delay: 1.5s; }
.vwatch .tile:nth-child(4) { animation-delay: 3s; }
.vwatch .tile:nth-child(3) { animation-delay: 4.5s; }
.vwatch .tile span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.vwatch .tile b {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vwatch .tile b i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  margin-left: 5px;
  color: var(--muted);
}
@keyframes tile {
  0%, 24.9% { border-color: var(--signal); }
  25%, 100% { border-color: var(--line-strong); }
}

/* --- WeatherStudio: reflectivity grid with a sweep --- */
.vradar {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-auto-rows: 1fr;
  gap: 2px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.vradar i {
  display: block;
  background: rgb(255 90 31 / var(--a, 0));
  transition: background .7s linear;
}
.vradar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(50% - .5px), var(--line-strong) calc(50% - .5px), var(--line-strong) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(to bottom, transparent calc(50% - .5px), var(--line-strong) calc(50% - .5px), var(--line-strong) calc(50% + .5px), transparent calc(50% + .5px));
}
.vradar::after {
  content: "";
  position: absolute;
  inset: -50%;
  pointer-events: none;
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--fg) 22%, transparent), transparent 70deg);
  animation: sweep 5s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.vradar .hud {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: var(--bg);
}

/* ==========================================================================
   Studio
   ========================================================================== */

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.statement {
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.18;
  max-width: 24ch;
}
.statement em { font-style: normal; color: var(--signal); }
.statement + .statement { margin-top: 1em; }
.body-copy {
  margin-top: 32px;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
}
.body-copy + .body-copy { margin-top: 1em; }
.body-copy strong { color: var(--fg); font-weight: 600; }

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}
.principles li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 240px;
  padding: 24px;
  background: var(--bg);
  transition: background .3s var(--ease);
}
.principles li:hover { background: var(--bg-2); }
.principles .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}
.principles .n b {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.03em;
  color: var(--fg);
}
.principles h4 {
  margin: auto 0 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.principles p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: clamp(48px, 6vw, 96px) 0 0;
}
.modes > div {
  padding: 28px;
  background: var(--bg);
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
}
.modes dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signal);
}
.modes dd { margin: 0; }
.modes dd b {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.modes dd p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* --- Perfect squares strip --- */
.squares-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: clamp(48px, 6vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
}
.sq {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: none;
}
.sq .cells {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(var(--n), 8px);
}
.sq .cells i { display: block; width: 8px; height: 8px; background: var(--fg); opacity: .85; }
.sq .cells i.s { background: var(--signal); opacity: 1; }
.sq span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
}
.sq span b { color: var(--fg); font-weight: 600; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.big-link {
  position: relative;
  display: inline-block;
  font-size: clamp(26px, 4.2vw, 64px);
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: -.035em;
  line-height: 1;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.big-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background: var(--signal);
  transform: scaleX(.12);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.big-link:hover::after { transform: scaleX(1); }
.contact-note { margin-top: 28px; color: var(--muted); max-width: 44ch; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0 48px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.footer-links a:hover { color: var(--fg); }
.footer .legal {
  flex-basis: 100%;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: none;
  line-height: 1.7;
  color: var(--muted);
  max-width: 80ch;
}

/* ==========================================================================
   Brand page
   ========================================================================== */

.page-head {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 9vw, 140px) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}
.page-head .title { max-width: 14ch; }
.page-head .meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-head .meta b { color: var(--fg); font-weight: 500; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.spec-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec {
  position: relative;
  min-height: 260px;
  padding: 24px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.spec.on-paper { background: var(--vellum); color: var(--blueprint); }
.spec.on-ink   { background: var(--blueprint);   color: var(--vellum); }
.spec.on-signal{ background: var(--signal); color: var(--blueprint); }
.spec.on-signal .mark .m-exp { fill: var(--blueprint); }
.spec .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .7;
  display: flex;
  justify-content: space-between;
}
.spec .stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 0;
}
.spec .stage .mark { width: 96px; height: 96px; }
.spec .stage .mark.sm { width: 48px; height: 48px; }
.spec .stage .mark.xs { width: 16px; height: 16px; }

.construct {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.construct .g { stroke: var(--line-strong); stroke-width: .5; }
.construct .dim { stroke: var(--signal); stroke-width: .6; }
.construct text {
  font-family: var(--mono);
  font-size: 4.2px;
  fill: var(--muted);
  letter-spacing: .1em;
}

.lockup-big {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
}
.lockup-big .mark { width: clamp(56px, 8vw, 120px); height: clamp(56px, 8vw, 120px); }
.lockup-big .wordmark { font-size: clamp(36px, 6.5vw, 100px); }
.lockup-big .wordmark small { font-size: clamp(11px, 1.8vw, 26px); margin-top: 8px; letter-spacing: .3em; }

.lockup-stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.lockup-stacked .mark { width: 64px; height: 64px; }
.lockup-stacked .wordmark { font-size: 34px; }

.swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.swatch {
  min-height: 220px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.swatch .name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.swatch .vals {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.swatch .use { font-size: 13px; line-height: 1.45; opacity: .8; max-width: 30ch; }

.type-specimen {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.type-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--bg);
}
.type-row .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}
.type-row .sample {
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.type-row .sample.body {
  font-size: 18px;
  line-height: 1.55;
  white-space: normal;
  max-width: 60ch;
  letter-spacing: 0;
}
.type-row .sample.code {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  white-space: pre;
}

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.rules > div {
  padding: 28px;
  background: var(--bg);
}
.rules h4 {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.rules h4.do { color: var(--signal); }
.rules h4.dont { color: var(--muted); }
.rules ul { margin: 0; padding: 0; list-style: none; }
.rules li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.5;
}
.rules li::before { content: "■ "; color: var(--signal); font-size: 9px; vertical-align: 2px; margin-right: 6px; }
.rules h4.dont + ul li::before { content: "□ "; color: var(--muted); }

.downloads {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.downloads a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 180px;
  padding: 20px;
  background: var(--bg);
  text-decoration: none;
  transition: background .25s var(--ease);
}
.downloads a:hover { background: var(--bg-2); }
.downloads a .mark { width: 40px; height: 40px; }
.downloads a .file {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.downloads a .file b { display: block; color: var(--fg); font-weight: 500; margin-bottom: 4px; }

.voice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.voice > div { padding: 28px; background: var(--bg); }
.voice .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signal);
}
.voice .say {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.voice .not {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}

.pname { display: flex; flex-direction: column; gap: 16px; }
.pname .mark { width: 28px; height: 28px; }
.pname b {
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
}
.pname small { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 28ch; }
.copyblock {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  line-height: 1.8;
  color: var(--fg-2);
  border-left: 2px solid var(--signal);
  padding-left: 16px;
  max-width: 52ch;
}

/* ==========================================================================
   Motion
   ========================================================================== */

.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.pending { opacity: 0; transform: translateY(22px); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; }
  .ticker-track, .vwatch .tile, .vbar-top .live, .vradar::after, .status.beta::before { animation: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav-links a { display: block; padding: 14px 0 14px 18px; border-top: 1px solid var(--line); }
  .nav-links a::before { left: 0; }
  .nav.open .nav-links { display: flex; }
  .menu-btn { display: grid; }
  .nav-cta { display: none; }

  .hero-row { grid-template-columns: 1fr; }
  .group { grid-template-columns: 1fr; }
  .flagship { grid-template-columns: 1fr; }
  .flagship > .viz, .flagship > .body { grid-column: auto; grid-row: auto; }
  .flagship > .viz { min-height: 300px; }
  .availability { flex-direction: column; align-items: flex-start; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .studio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .spec-grid, .spec-grid.cols-3 { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voice { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .type-row { grid-template-columns: 1fr; gap: 12px; }
  .hero-meta .wrap span:nth-child(2) { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .pair { grid-template-columns: 1fr; }
  .product { padding: 24px; }
  .viz { min-height: 220px; }
  .group-head { padding: 24px; }
  .principles { grid-template-columns: 1fr; }
  .principles li { min-height: 0; gap: 28px; }
  .modes > div { grid-template-columns: 1fr; gap: 10px; }
  .swatches { grid-template-columns: 1fr; }
  .downloads { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 64px; }
  .giant { font-size: clamp(48px, 13vw, 120px); }
  .hero-meta .wrap span:nth-child(3) { display: none; }
  .squares-strip { justify-content: flex-start; gap: 32px; }
  .wordmark small { display: none; }
}
