/* ── OneQue ─────────────────────────────────────────────────────────
   Palette: cold concrete + graphite. Signal blue marks the control
   plane and every actionable thing; amber marks tenant clusters.
   Colour is doing work in the diagram, so it is kept scarce elsewhere.
   ------------------------------------------------------------------ */

:root {
  --paper:    #ECEDEF;
  --panel:    #FFFFFF;
  --ink:      #151C24;
  --ink-2:    #5B6672;
  --ink-3:    #8A939D;
  --line:     #D3D8DE;
  --line-2:   #E3E6EA;
  --signal:   #1B47E0;
  --signal-d: #12339F;
  --signal-w: #E8ECFD;
  --amber:    #B5730A;
  --amber-w:  #FBF0DC;
  --slate:    #465565;

  --measure: 66ch;
  --pad: clamp(20px, 5vw, 56px);
  --maxw: 1140px;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal-d); }

:focus-visible {
  outline: 2.5px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

/* ── top bar ─────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(236,237,239,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; align-items: center; gap: 24px;
  min-height: 68px; flex-wrap: wrap;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand-mark { display: block; width: 26px; height: 26px; color: var(--signal); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-img { display: block; height: 30px; width: auto; }
.brand-word {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 112, "wght" 680;
  font-size: 21px; letter-spacing: -.015em;
}

.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tab {
  appearance: none; border: 0; background: transparent;
  font-family: var(--f-body); font-size: 15.5px; font-weight: 500;
  color: var(--ink-2); cursor: pointer;
  padding: 9px 14px; border-radius: 3px;
  border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.tab[aria-selected="true"] {
  color: var(--ink); border-bottom-color: var(--signal); background: transparent;
}

/* ── layout scaffolding ──────────────────────────────────────────── */

.panel { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.panel[hidden] { display: none; }

.section { padding: 52px 0; }
.rule { height: 1px; background: var(--line); }

.page-head { padding: 64px 0 40px; }

/* ── type ────────────────────────────────────────────────────────── */

h1 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 108, "wght" 700;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.03;
  letter-spacing: -.026em;
  margin: 0 0 18px;
  max-width: 16ch;
}

h2 {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 104, "wght" 640;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.14; letter-spacing: -.018em;
  margin: 0 0 16px;
}

h3.sub {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 620;
  font-size: 19px; letter-spacing: -.01em;
  margin: 44px 0 18px; color: var(--slate);
}

h4 { font-size: 16.5px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.005em; }

p { margin: 0 0 14px; max-width: var(--measure); }

.kicker {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 96, "wght" 620;
  font-size: 15px; color: var(--signal);
  letter-spacing: .01em; margin: 0 0 14px;
}

.lede { font-size: clamp(17px, 2vw, 20px); color: var(--slate); line-height: 1.5; max-width: 58ch; }
.body-lead { font-size: 18px; color: var(--slate); max-width: 62ch; }

/* ── buttons ─────────────────────────────────────────────────────── */

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.btn {
  display: inline-block;
  font-family: var(--f-body); font-size: 16px; font-weight: 500;
  padding: 12px 22px; border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--panel); color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink-3); color: var(--ink); }

.btn-primary {
  background: var(--signal); border-color: var(--signal); color: #fff;
}
.btn-primary:hover { background: var(--signal-d); border-color: var(--signal-d); color: #fff; }

.btn-block { width: 100%; padding: 14px 22px; font-size: 16.5px; }

/* ── hero ────────────────────────────────────────────────────────── */

.hero {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 56px; align-items: center;
  padding: 76px 0 64px;
}
.hero-text { min-width: 0; }
.hero-figure { min-width: 0; }

/* stacked rack rows, drawn once on load */
.dc-stack {
  display: grid; gap: 14px;
  padding: 26px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 5px;
}
.dc-row {
  display: block; height: 34px; border-radius: 3px;
  background:
    repeating-linear-gradient(90deg,
      var(--line-2) 0 8px, transparent 8px 16px);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.dc-row::after {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: 6px; background: var(--signal);
}
.dc-row:nth-child(2)::after { background: var(--amber); }
.dc-row:nth-child(3)::after { background: var(--slate); }

.hero-note { font-size: 14.5px; color: var(--ink-3); margin: 14px 0 0; }

/* ── diagram ─────────────────────────────────────────────────────── */

.diagram-wrap { margin: 32px 0 0; }
.diagram {
  display: block; width: 100%; height: auto;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 5px;
  padding: 10px 6px;
}
.diagram-wrap figcaption {
  font-size: 14.5px; color: var(--ink-3);
  margin-top: 12px; max-width: 64ch;
}

.diagram .band {
  font-family: var(--f-body); font-size: 12.5px; fill: var(--ink-3);
}
.diagram .node rect { stroke-width: 1.4; }
.diagram .node-title {
  font-family: var(--f-display); font-size: 17px;
  font-variation-settings: "wdth" 100, "wght" 620;
}
.diagram .node-sub { font-family: var(--f-body); font-size: 12.5px; }

.diagram .node-hub rect  { fill: var(--signal-w); stroke: var(--signal); }
.diagram .node-hub .node-title { fill: var(--signal-d); }
.diagram .node-hub .node-sub   { fill: var(--slate); }

.diagram .node-spoke rect { fill: #fff; stroke: var(--slate); }
.diagram .node-spoke .node-title { fill: var(--ink); }
.diagram .node-spoke .node-sub   { fill: var(--ink-3); }

.diagram .node-tenant rect { fill: var(--amber-w); stroke: var(--amber); }
.diagram .node-tenant text {
  font-family: var(--f-mono); font-size: 12px; fill: var(--amber);
}

.diagram .wire path { fill: none; stroke-width: 1.5; }
.diagram .wire-control path { stroke: var(--signal); }
.diagram .wire-tenant  path { stroke: var(--amber); stroke-dasharray: 3 3; }
.diagram .wire-label { font-family: var(--f-body); font-size: 12px; fill: var(--ink-3); }
.diagram .footnote   { font-family: var(--f-body); font-size: 13px; fill: var(--ink-2); }

/* one orchestrated page-load reveal, and nothing else moves */
@media (prefers-reduced-motion: no-preference) {
  .diagram .draw {
    stroke-dasharray: 460; stroke-dashoffset: 460;
    animation: draw .7s ease-out forwards;
  }
  .diagram .d1 { animation-delay: .30s } .diagram .d2 { animation-delay: .34s }
  .diagram .d3 { animation-delay: .38s } .diagram .d5 { animation-delay: .70s }
  .diagram .d6 { animation-delay: .74s } .diagram .d7 { animation-delay: .78s }

  .diagram .pop { opacity: 0; animation: pop .45s ease-out forwards; }
  .diagram .p1 { animation-delay: .05s } .diagram .p2 { animation-delay: .52s }
  .diagram .p3 { animation-delay: .56s } .diagram .p4 { animation-delay: .60s }
  .diagram .p5 { animation-delay: .95s } .diagram .p6 { animation-delay: .99s }
  .diagram .p7 { animation-delay: 1.03s }

  @keyframes draw { to { stroke-dashoffset: 0 } }
  @keyframes pop  { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
}

/* ── offerings list ──────────────────────────────────────────────── */

.legend { display: flex; gap: 20px; flex-wrap: wrap; margin: 0 0 8px; max-width: none; }
.key { font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; }
.key::before { content: ""; width: 9px; height: 9px; border-radius: 2px; }
.key-control::before { background: var(--signal); }
.key-spoke::before   { background: var(--slate); }
.key-tenant::before  { background: var(--amber); }

.offerings {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: 44px;
}
.offer { padding: 20px 0 20px 20px; border-top: 1px solid var(--line); position: relative; }
.offer::before {
  content: ""; position: absolute; left: 0; top: 26px;
  width: 9px; height: 9px; border-radius: 2px;
}
.lay-control::before { background: var(--signal); }
.lay-spoke::before   { background: var(--slate); }
.lay-tenant::before  { background: var(--amber); }

.offer h3 {
  font-family: var(--f-body); font-size: 16.5px; font-weight: 600;
  margin: 0 0 5px; letter-spacing: -.005em;
}
.offer p { font-size: 15.5px; color: var(--ink-2); margin: 0; max-width: 44ch; }

/* ── steps (a real sequence, so it is numbered) ──────────────────── */

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 26px 62px; margin: 0;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--signal-w); color: var(--signal-d);
  font-family: var(--f-display);
  font-variation-settings: "wdth" 100, "wght" 660;
  font-size: 15px;
}
.steps li::after {
  content: ""; position: absolute; left: 17px; top: 40px; bottom: 6px;
  width: 1px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

/* ── benefit / plain lists ───────────────────────────────────────── */

.benefits, .plain { list-style: none; margin: 0; padding: 0; }
.benefits {
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: 44px;
}
.benefits li, .plain li { padding: 18px 0; border-top: 1px solid var(--line-2); }
.plain li:first-child, .benefits li:first-child, .benefits li:nth-child(2) { border-top-color: var(--line); }
.benefits p, .plain p { font-size: 15.5px; color: var(--ink-2); margin: 0; max-width: 46ch; }

.mt { margin-top: 48px; }

/* ── code snippet ────────────────────────────────────────────────── */

.snippet { margin: 40px 0 8px; }
.snippet-cap { font-size: 14px; color: var(--ink-3); margin: 0 0 8px; }
.snippet pre {
  margin: 0; padding: 22px 24px; overflow-x: auto;
  background: var(--ink); border-radius: 5px;
  color: #D9E0E8;
}
.snippet code {
  font-family: var(--f-mono); font-size: 13.5px; line-height: 1.75;
  white-space: pre;
}

.cta-line { margin-top: 32px; font-size: 16.5px; }

/* ── investors ───────────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.split-b { position: sticky; top: 92px; }

.formcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--signal);
  border-radius: 5px;
  padding: 30px;
}
.form-title { font-size: 25px; margin-bottom: 8px; }
.form-intro { font-size: 15.5px; color: var(--ink-2); margin-bottom: 22px; }

.field { margin-bottom: 17px; }
.field label {
  display: block; font-size: 14.5px; font-weight: 500;
  margin-bottom: 6px; color: var(--ink);
}
.opt { color: var(--ink-3); font-weight: 400; }

.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 16px; color: var(--ink);
  padding: 11px 13px; background: #FAFBFC;
  border: 1px solid var(--line); border-radius: 3px;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  background: #fff; border-color: var(--signal);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #B3261E; }

.err { font-size: 14px; color: #B3261E; margin: 6px 0 0; }

.form-status { font-size: 14.5px; margin: 14px 0 0; color: var(--ink-2); }
.form-status.ok { color: var(--signal-d); }
.form-status.bad { color: #B3261E; }

/* ── about ───────────────────────────────────────────────────────── */

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.person h2 { margin-bottom: 4px; }
.person .role {
  font-size: 14.5px; color: var(--signal); margin-bottom: 12px; font-weight: 500;
}
.person p { color: var(--ink-2); max-width: 46ch; }

.contact { margin: 0; display: grid; gap: 14px; }
.contact div { display: flex; gap: 16px; align-items: baseline; }
.contact dt { width: 72px; flex: none; color: var(--ink-3); font-size: 14.5px; }
.contact dd { margin: 0; font-size: 17px; }

/* ── footer ──────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line); margin-top: 40px; background: #E4E6E9; }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 36px var(--pad) 48px; }
.foot-brand {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 112, "wght" 680;
  font-size: 19px; margin: 0 0 8px;
}
.foot-line { font-size: 14.5px; color: var(--ink-2); margin: 0 0 5px; }

/* ── responsive ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 52px 0 44px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-b { position: static; }
  .offerings, .benefits, .people { grid-template-columns: 1fr; }
  .benefits li:nth-child(2) { border-top-color: var(--line-2); }
  .diagram-wrap { overflow-x: auto; }
  .diagram { min-width: 720px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .topbar-inner { min-height: 0; padding-top: 12px; padding-bottom: 8px; }
  .tabs { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .tab { padding: 8px 11px; font-size: 15px; white-space: nowrap; }
  h1 { max-width: none; }
  .page-head { padding: 44px 0 28px; }
  .section { padding: 40px 0; }
  .formcard { padding: 22px; }
}
