/* ============================================================
   RozeAI — Corporate Site
   Palette: Ink #0D1424 · Paper #FFFFFF · Mist #F4F6F9
            Signal #E03A2F · Steel #5C6B82 · Line #E3E8EF
   Type:    Archivo (display) · IBM Plex Sans (body) · IBM Plex Mono (telemetry)
   ============================================================ */

:root {
  --ink: #0d1424;
  --ink-2: #141d33;
  --ink-3: #1c2742;
  --paper: #ffffff;
  --mist: #f4f6f9;
  --signal: #e53e2f;
  --signal-dark: #c33124;
  --steel: #5c6b82;
  --steel-light: #8b98ab;
  --line: #e3e8ef;
  --line-dark: rgba(255, 255, 255, 0.12);
  --max: 1200px;
  --radius: 6px;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--signal); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 34px; height: 1px; background: var(--signal); }

.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; max-width: 760px; }
.section-lead { font-size: 18px; color: var(--steel); max-width: 720px; margin-top: 18px; }
.center .section-title, .center .section-lead { margin-left: auto; margin-right: auto; }
.center { text-align: center; }

section { padding: 104px 0; }
section.tight { padding: 72px 0; }
.on-mist { background: var(--mist); }
.on-ink { background: var(--ink); color: #eef1f6; }
.on-ink .section-lead { color: var(--steel-light); }

/* ---------- Header ---------- */
.top-rule { height: 3px; background: linear-gradient(90deg, var(--signal), var(--signal-dark) 55%, var(--ink)); }

header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.logo { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.logo .ai { color: var(--signal); }
.logo .reg { font-size: 10px; vertical-align: super; color: var(--steel-light); font-weight: 400; margin-left: 1px; }

nav.primary { display: flex; gap: 34px; align-items: center; }
nav.primary a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav.primary a:hover { color: var(--signal); }
nav.primary a.active { border-color: var(--signal); color: var(--signal); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: #fff !important;
  padding: 11px 20px !important;
  border-radius: var(--radius);
  border: none !important;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--signal); color: #fff !important; }

.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: var(--radius);
  transition: all 0.18s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn .arrow { transition: transform 0.18s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: var(--signal-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.07); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Telemetry strip (signature) ---------- */
.telemetry {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 13px 0;
  color: var(--steel-light);
  overflow: hidden;
  white-space: nowrap;
}
.telemetry .tick { display: inline-flex; align-items: center; gap: 10px; margin-right: 56px; }
.telemetry .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); display: inline-block; }
.telemetry .dot.live { animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 78% -10%, #22304f 0%, var(--ink) 55%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
  pointer-events: none;
}
.hero-inner { position: relative; padding: 120px 0 96px; }
.hero h1 {
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 800;
  max-width: 860px;
  letter-spacing: -0.025em;
}
.hero h1 .accent { color: var(--signal); }
.hero p.sub { font-size: 19px; color: var(--steel-light); max-width: 620px; margin: 26px 0 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.ipo-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  border: 1px solid rgba(224, 58, 47, 0.5);
  background: rgba(224, 58, 47, 0.1);
  color: #ffb0a8;
  padding: 9px 18px;
  border-radius: 100px;
  margin-bottom: 34px;
}
.ipo-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: pulse 2.2s infinite; }
.ipo-chip strong { color: #fff; font-weight: 600; }

/* Waveform motif */
.waveform { position: absolute; right: -40px; bottom: -8px; width: 620px; opacity: 0.5; pointer-events: none; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--paper); padding: 38px 32px; }
.stat .num { font-family: var(--font-display); font-size: 42px; font-weight: 800; letter-spacing: -0.02em; }
.stat .num .unit { font-size: 22px; color: var(--signal); }
.stat .label { font-size: 14px; color: var(--steel); margin-top: 6px; }
.stat .mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-light); margin-bottom: 14px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 26px; margin-top: 56px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  background: var(--paper);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--steel-light); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(13, 20, 36, 0.08); }
.card .tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--signal); margin-bottom: 18px;
}
.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--steel); flex: 1; }
.card .more { margin-top: 22px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.card:hover .more { color: var(--signal); }

.card.dark { background: var(--ink-2); border-color: var(--line-dark); }
.card.dark h3 { color: #fff; }
.card.dark p { color: var(--steel-light); }
.card.dark:hover { border-color: rgba(255,255,255,0.3); }

.icon-box {
  width: 46px; height: 46px; border-radius: var(--radius);
  background: rgba(224, 58, 47, 0.09);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.icon-box svg { width: 24px; height: 24px; stroke: var(--signal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.on-ink .icon-box, .card.dark .icon-box { background: rgba(224, 58, 47, 0.16); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > .media { order: 2; }
.split .media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mist);
  position: relative;
}
.on-ink .split .media { border-color: var(--line-dark); background: var(--ink-2); }
.split .media svg.illus { width: 100%; height: 100%; }
.split h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; margin-bottom: 18px; }
.split p { color: var(--steel); margin-bottom: 16px; }
.on-ink .split p { color: var(--steel-light); }

.check-list { margin: 26px 0 8px; }
.check-list li { display: flex; gap: 14px; margin-bottom: 14px; font-size: 15.5px; }
.check-list li::before {
  content: ""; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px;
  background: var(--signal);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 64px; }
.timeline::before { content: ""; position: absolute; left: 130px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.t-row { display: grid; grid-template-columns: 100px 60px 1fr; margin-bottom: 44px; }
.t-year { font-family: var(--font-display); font-weight: 800; font-size: 26px; text-align: right; color: var(--ink); }
.t-node { position: relative; }
.t-node::before {
  content: ""; position: absolute; left: 24px; top: 9px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--signal);
}
.t-body li { margin-bottom: 12px; padding-left: 2px; color: var(--steel); font-size: 15.5px; }
.t-body li strong { color: var(--ink); font-weight: 600; }
.t-row.milestone .t-year { color: var(--signal); }

/* ---------- Case study block ---------- */
.case {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 44px;
}
.case .mono-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--signal); margin-bottom: 16px; }
.case h3 { color: #fff; font-size: 24px; margin-bottom: 14px; }
.case p { color: var(--steel-light); font-size: 15px; }
.case dl { margin-top: 26px; display: grid; gap: 14px; }
.case dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-light); }
.case dd { color: #e8ecf3; font-size: 15px; margin-top: 4px; }

/* ---------- Tables ---------- */
.compare { width: 100%; border-collapse: collapse; margin-top: 48px; font-size: 15px; }
.compare th, .compare td { padding: 18px 22px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 15px; }
.compare thead th.highlight { background: var(--signal); }
.compare td { color: var(--steel); }
.compare td strong { color: var(--ink); }
.compare tbody tr:nth-child(even) td { background: var(--mist); }

/* ---------- Logo / recognition band ---------- */
.recognition { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 56px; }
.recog {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center;
}
.recog .mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); }
.recog .name { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-top: 10px; }
.recog .by { font-size: 13px; color: var(--steel); margin-top: 6px; }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.office { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.office .flag { font-size: 26px; margin-bottom: 14px; }
.office h3 { font-size: 18px; margin-bottom: 4px; }
.office .role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal); margin-bottom: 14px; }
.office p { font-size: 14px; color: var(--steel); }

/* ---------- Investor banner ---------- */
.ir-banner {
  background: linear-gradient(115deg, var(--ink) 30%, var(--ink-3));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  color: #fff;
}
.ir-banner h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.ir-banner p { color: var(--steel-light); }
.ticker-box {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px;
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.03);
}
.ticker-box .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: 13px; }
.ticker-box .row:last-child { border-bottom: none; }
.ticker-box .k { color: var(--steel-light); letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.ticker-box .v { color: #fff; }
.ticker-box .v.signal { color: var(--signal); font-weight: 700; }

/* ---------- CTA ---------- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(30px, 4vw, 46px); max-width: 780px; margin: 0 auto 20px; }
.cta-final p { color: var(--steel-light); max-width: 560px; margin: 0 auto 40px; }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: var(--steel-light); padding: 72px 0 0; font-size: 14px; }
.f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.f-grid h4 { color: #fff; font-size: 14px; letter-spacing: 0.04em; margin-bottom: 20px; }
.f-grid a { display: block; margin-bottom: 11px; transition: color 0.15s; }
.f-grid a:hover { color: #fff; }
.f-brand .logo { color: #fff; margin-bottom: 18px; }
.f-brand p { max-width: 300px; font-size: 13.5px; }
.f-legal { border-top: 1px solid var(--line-dark); padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 12.5px; }
.f-legal .links { display: flex; gap: 24px; }
.f-legal a:hover { color: #fff; }
.disclaimer { border-top: 1px solid var(--line-dark); padding: 26px 0; font-size: 11.5px; line-height: 1.7; color: #6b7891; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: radial-gradient(900px 420px at 85% -20%, #22304f 0%, var(--ink) 60%); color: #fff; padding: 92px 0 72px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; max-width: 820px; letter-spacing: -0.02em; }
.page-hero p { font-size: 18px; color: var(--steel-light); max-width: 640px; margin-top: 20px; }
.crumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel-light); margin-bottom: 28px; }
.crumb a:hover { color: #fff; }
.crumb .sep { margin: 0 10px; color: var(--signal); }

/* ---------- Forms ---------- */
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(224, 58, 47, 0.12);
}
.form-note { font-size: 13px; color: var(--steel); }

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .recognition { grid-template-columns: 1fr 1fr; }
  .offices { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > .media { order: 0; }
  .ir-banner { grid-template-columns: 1fr; padding: 40px; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
/* Nav collapses earlier than content: 6 items + CTA crowd below ~940px */
@media (max-width: 940px) {
  nav.primary {
    display: none;
    position: absolute; top: 77px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 28px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(13,20,36,0.1);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav.primary.open { display: flex; }
  .menu-btn { display: block; }
}
@media (max-width: 700px) {
  section { padding: 72px 0; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .recognition, .offices { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .timeline::before { left: 86px; }
  .t-row { grid-template-columns: 64px 44px 1fr; }
  .t-year { font-size: 20px; }
  .t-node::before { left: 15px; }
  .hero-inner { padding: 84px 0 72px; }
  .waveform { display: none; }
  .f-grid { grid-template-columns: 1fr; }
  .case { padding: 30px 24px; }
}

/* ---------- Dropdown navigation ---------- */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 7px; }
.nav-item > a .chev { font-size: 9px; color: var(--steel-light); transition: transform 0.15s; }
nav.primary .sub {
  position: absolute; top: calc(100% + 14px); left: -18px;
  min-width: 240px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--signal);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 22px 44px rgba(13,20,36,0.12);
  padding: 12px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
}
nav.primary .sub::before { content: ""; position: absolute; top: -17px; left: 0; right: 0; height: 17px; }
.nav-item:hover .sub, .nav-item:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav-item:hover > a .chev { transform: rotate(180deg); }
nav.primary .sub a {
  display: block; padding: 10px 22px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  border-bottom: none !important; border-left: 2px solid transparent;
}
nav.primary .sub a:hover { background: var(--mist); color: var(--signal); border-left-color: var(--signal); }
nav.primary .sub .sub-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--steel-light);
  padding: 8px 22px 6px;
}
@media (max-width: 940px) {
  .nav-item { width: 100%; }
  nav.primary .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: none; box-shadow: none; padding: 4px 0 4px 14px; min-width: 0;
  }
  nav.primary .sub::before { display: none; }
  .nav-item > a .chev { display: none; }
}

/* ---------- Newsroom list ---------- */
.news-list { margin-top: 56px; border-top: 1px solid var(--line); }
.news-item {
  display: grid; grid-template-columns: 170px 1fr auto; gap: 32px;
  padding: 30px 6px; border-bottom: 1px solid var(--line); align-items: baseline;
  transition: background 0.15s;
}
.news-item:hover { background: var(--mist); }
.news-item .date { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; color: var(--steel); }
.news-item .cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--signal); display:block; margin-bottom: 7px; }
.news-item h3 { font-size: 19px; font-weight: 700; }
.news-item p { font-size: 14.5px; color: var(--steel); margin-top: 7px; max-width: 640px; }
@media (max-width: 700px) { .news-item { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Spec table ---------- */
.spec { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 15px; }
.spec th, .spec td { padding: 15px 20px; border-bottom: 1px solid var(--line); text-align: left; }
.spec th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); font-weight: 500; width: 240px; }
.spec td { color: var(--ink); }

/* ---------- Logo image ---------- */
.logo-img { display: flex; align-items: center; }
.logo-img img { height: 34px; width: auto; }
footer .logo-img img { height: 38px; }
@media (max-width: 700px) { .logo-img img { height: 28px; } }

/* ============================================================
   Mobile hardening
   ============================================================ */

/* Tables: horizontal scroll instead of viewport overflow */
@media (max-width: 760px) {
  .compare { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare thead, .compare tbody, .compare tr { min-width: 560px; display: table; width: 100%; table-layout: fixed; }
  /* Spec tables: stack label over value */
  .spec, .spec tbody { display: block; }
  .spec tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .spec th, .spec td { display: block; width: auto; border: none; padding: 0; }
  .spec th { margin-bottom: 5px; }
}

/* Telemetry ticker: allow horizontal scroll on small screens */
@media (max-width: 760px) {
  .telemetry { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .telemetry::-webkit-scrollbar { display: none; }
  .telemetry .tick { margin-right: 36px; }
}

/* Hero & interior heroes on small screens */
@media (max-width: 700px) {
  .page-hero { padding: 64px 0 52px; }
  .ipo-chip { flex-wrap: wrap; line-height: 1.7; font-size: 11px; padding: 8px 14px; }
  .hero p.sub { font-size: 17px; }
  .hero-actions .btn, .cta-final .btn { width: 100%; justify-content: center; }
  .split .media { min-height: 240px; }
  .split { gap: 32px; }
  .ir-banner { padding: 30px 22px; gap: 30px; }
  .ticker-box { padding: 22px 18px; }
  .stat { padding: 28px 24px; }
  .stat .num { font-size: 34px; }
  .card { padding: 28px 24px; }
  .wrap { padding: 0 20px; }
  .section-lead { font-size: 16.5px; }
  .news-item h3 { font-size: 17px; }
  .f-legal { flex-direction: column; align-items: flex-start; }
}

/* Prevent iOS zoom-on-focus: form controls must be >= 16px */
.field input, .field select, .field textarea { font-size: 16px; }

/* Guard against accidental horizontal scroll.
   overflow-x: clip (not hidden) — hidden creates a scroll container
   that breaks position: sticky on the header in Chrome/Safari. */
html, body { max-width: 100%; overflow-x: clip; }

/* SVG illustrations scale within their frames */
.split .media svg.illus { max-width: 100%; height: auto; }

/* Comfortable tap targets in nav and footer on touch devices */
@media (max-width: 940px) {
  nav.primary > a, .nav-item > a { padding: 10px 0; font-size: 16px; }
  nav.primary .sub a { padding: 12px 22px; font-size: 15px; }
  .nav-cta { margin-top: 6px; }
}
@media (max-width: 700px) {
  .f-grid a { padding: 4px 0; }
}

/* ============================================================
   Mobile spacing polish — tightened vertical rhythm on phones
   ============================================================ */
@media (max-width: 700px) {

  /* --- Type scale: desktop floors are too large at <=390px --- */
  .hero h1 { font-size: clamp(33px, 9.5vw, 46px); }
  .page-hero h1 { font-size: clamp(29px, 8.5vw, 42px); }
  .page-hero p { font-size: 16px; margin-top: 14px; }
  .hero p.sub { margin: 20px 0 30px; }
  .crumb { margin-bottom: 20px; }
  .eyebrow { margin-bottom: 14px; }
  .section-lead { margin-top: 12px; }

  /* --- Hero rhythm --- */
  .hero-inner { padding: 60px 0 52px; }
  .ipo-chip { margin-bottom: 26px; }
  .hero-actions { gap: 12px; }
  /* overrides the inline margin-top:56px on interior-page telemetry strips */
  .page-hero .telemetry { margin-top: 38px !important; }

  /* --- Section internals: close the desktop-scale gaps --- */
  section.tight { padding: 52px 0; }
  .card-grid { margin-top: 36px; gap: 16px; }
  .recognition, .offices { margin-top: 36px; gap: 16px; }
  .news-list { margin-top: 34px; }
  .news-item { padding: 22px 4px; }
  .split h2 { margin-bottom: 14px; }
  .check-list { margin: 20px 0 4px; }
  .check-list li { margin-bottom: 11px; }
  .cta-final p { margin: 0 auto 28px; }

  /* --- Timeline: 64px column can't fit "2015–18" at 20px --- */
  .timeline { margin-top: 38px; }
  .t-row { grid-template-columns: 74px 40px 1fr; margin-bottom: 30px; }
  .t-year { font-size: 16.5px; padding-top: 3px; letter-spacing: -0.01em; }
  .timeline::before { left: 93px; }
  .t-node::before { left: 12px; width: 11px; height: 11px; top: 6px; }
  .t-body li { font-size: 14.5px; margin-bottom: 9px; }

  /* --- Banners & tables --- */
  .ir-banner .btn { width: 100%; justify-content: center; }
  .split .btn { width: 100%; justify-content: center; }
  .ticker-box .row { gap: 16px; }
  .ticker-box .v { text-align: right; }
  .compare { margin-top: 30px; }
  .compare th, .compare td { padding: 13px 14px; font-size: 14px; }
  .spec { margin-top: 22px; }
  .case dl { margin-top: 20px; }

  /* --- Footer: 48px column gap is cavernous once stacked --- */
  footer.site { padding-top: 52px; }
  .f-grid { gap: 30px; padding-bottom: 36px; }
  .f-grid h4 { margin-bottom: 12px; }
  .f-grid a { margin-bottom: 4px; }
  .f-legal { padding: 20px 0; gap: 12px; }
  .disclaimer { padding: 20px 0; }
}

/* Very small phones (<=380px): one more notch down */
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 31px; }
  .page-hero h1 { font-size: 27px; }
  .stat .num { font-size: 30px; }
  .btn { padding: 14px 22px; font-size: 14.5px; }
  .card, .office, .stat { padding: 24px 20px; }
  .ir-banner { padding: 26px 18px; }
}

.code-sheet{max-width:920px}.code-sheet .card{padding:clamp(24px,4vw,52px)}.code-sheet h2{margin:34px 0 12px;color:var(--ink);font-size:22px}.code-sheet p,.code-sheet li{color:var(--steel);line-height:1.8}.code-sheet ul{padding-left:22px}
