/* Wildcats AI Studio — landing page
   Design language taken from the Hai Phong print piece: navy ground,
   crimson as a scarce accent, mono labels, big tabular numerals.
   "Case file", not "SaaS brochure". */

/* ---------------------------------------------------------------- tokens */
:root {
  --navy:        #04044A;
  --navy-deep:   #02022E;
  --navy-panel:  #0A0A5E;
  --navy-line:   rgba(255, 255, 255, .13);
  --navy-line-2: rgba(255, 255, 255, .07);

  --crimson:      #FF414D;
  --crimson-deep: #EF335D;
  --crimson-dim:  rgba(255, 65, 77, .13);

  --paper:      #FFFFFF;
  --paper-2:    #F4F5FB;
  --paper-line: rgba(4, 4, 74, .14);

  --on-navy:     #FFFFFF;
  --on-navy-2:   rgba(255, 255, 255, .72);
  --on-navy-3:   rgba(255, 255, 255, .50);
  --on-paper:    #06063A;
  --on-paper-2:  rgba(6, 6, 58, .74);
  --on-paper-3:  rgba(6, 6, 58, .52);

  --amber:   #F0A830;
  --sky:     #4FC3F7;

  --sans: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --gut:   clamp(18px, 4vw, 40px);
  --maxw:  1180px;
  --rad:   4px;

  --sect-y: clamp(64px, 9vw, 128px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--crimson); color: #fff; }

/* ------------------------------------------------------------- utilities */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--crimson);
  flex: none;
}
.on-paper .eyebrow { color: var(--crimson-deep); }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.022em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(33px, 5.1vw, 62px); line-height: 1.1; font-weight: 900; letter-spacing: -.032em; }
h2 { font-size: clamp(27px, 3.6vw, 44px); line-height: 1.16; letter-spacing: -.028em; }
h3 { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.3; }
h4 { font-size: 16px; line-height: 1.3; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(17px, 1.7vw, 20.5px); line-height: 1.55; color: var(--on-navy-2); max-width: 62ch; }
.on-paper .lede { color: var(--on-paper-2); }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono { font-family: var(--mono); }

/* section shells */
section { padding: var(--sect-y) 0; position: relative; }
.on-paper { background: var(--paper); color: var(--on-paper); }
.on-paper h1, .on-paper h2, .on-paper h3 { color: var(--on-paper); }
.on-panel { background: var(--navy-deep); }

.sect-head { max-width: 68ch; margin-bottom: clamp(36px, 5vw, 60px); }
.sect-head .lede { margin-top: 20px; }

/* hairline rules */
.rule { height: 1px; background: var(--navy-line); border: 0; margin: 0; }
.on-paper .rule { background: var(--paper-line); }

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(4, 4, 74, .82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--navy-line-2);
  transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--navy-line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; text-decoration: none; }
.brand svg { width: 23px; color: var(--crimson); flex: none; }
.brand-txt { font-weight: 800; font-size: 16.5px; letter-spacing: -.02em; white-space: nowrap; }
.brand-txt em { font-style: normal; color: var(--crimson); }

.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; text-decoration: none;
  color: var(--on-navy-2); transition: color .18s; white-space: nowrap;
}
.nav-links a:hover { color: var(--on-navy); }

.lang {
  display: flex; font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  border: 1px solid var(--navy-line); border-radius: 100px; overflow: hidden; flex: none;
}
.lang a { padding: 5px 11px; text-decoration: none; color: var(--on-navy-3); transition: .18s; }
.lang a[aria-current] { background: var(--crimson); color: #fff; }
.lang a:not([aria-current]):hover { color: var(--on-navy); background: rgba(255,255,255,.06); }

.nav-cta {
  flex: none; font-size: 14px; font-weight: 700; text-decoration: none;
  padding: 9px 17px; border-radius: 100px; background: var(--crimson); color: #fff;
  transition: transform .18s, background .18s;
}
.nav-cta:hover { background: #ff5b65; transform: translateY(-1px); }

.nav-burger { display: none; }

/* ----------------------------------------------------------------- hero */
.hero { padding-top: clamp(52px, 7vw, 92px); padding-bottom: clamp(56px, 7vw, 100px); overflow: hidden; }
.hero-grid {
  display: grid; gap: clamp(36px, 5vw, 68px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
.hero h1 { margin-bottom: 26px; }
.hero h1 .strike {
  color: var(--on-navy-3); text-decoration: line-through;
  text-decoration-thickness: .055em; text-decoration-color: var(--crimson);
}
.hero h1 .hit { color: var(--crimson); white-space: nowrap; }
.hero h1 .strike { white-space: nowrap; }
.hero-sub { max-width: 46ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15.5px; font-weight: 700; text-decoration: none;
  padding: 14px 24px; border-radius: 100px; border: 1px solid transparent;
  transition: transform .18s, background .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn { white-space: nowrap; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: #ff5b65; }
.btn-ghost { border-color: var(--navy-line); color: var(--on-navy); }
.btn-ghost:hover { border-color: var(--on-navy-3); background: rgba(255,255,255,.05); }
.on-paper .btn-ghost { border-color: var(--paper-line); color: var(--on-paper); }
.on-paper .btn-ghost:hover { border-color: var(--on-paper-3); background: rgba(4,4,74,.04); }

/* hero ledger card */
.ledger {
  border: 1px solid var(--navy-line); border-radius: 8px;
  background: linear-gradient(170deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  padding: clamp(22px, 2.6vw, 32px);
  position: relative; overflow: hidden;
}
.ledger::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 90% 0%, rgba(255,65,77,.14), transparent 62%);
}
.ledger-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-navy-3); padding-bottom: 14px; border-bottom: 1px solid var(--navy-line);
}
.ledger-row { padding: 20px 0; border-bottom: 1px dashed var(--navy-line-2); }
.ledger-row:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.ledger-k {
  font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--on-navy-3); margin-bottom: 7px;
}
.ledger-v { font-size: clamp(31px, 4vw, 44px); font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.ledger-v.was { color: var(--on-navy-3); position: relative; display: inline-block; }
.ledger-v.was::after {
  content: ""; position: absolute; left: -2%; top: 52%; width: 104%; height: .055em;
  min-height: 2px; background: var(--crimson); border-radius: 2px;
  transform-origin: left center;
}
.ledger-v.now { color: var(--crimson); }
.ledger-why {
  display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0;
  font-size: 13.5px; color: var(--on-navy-2); line-height: 1.45;
}
.ledger-why svg { width: 15px; flex: none; margin-top: 3px; color: var(--crimson); }
.ledger-foot {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--navy-line);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--on-navy-3);
}
.ledger-foot b { color: var(--on-navy); font-size: 17px; font-weight: 700; }

/* ------------------------------------------------------- evidence strip */
.strip { border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); padding: 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-cell {
  padding: clamp(24px, 3vw, 38px) clamp(14px, 2vw, 28px);
  border-right: 1px solid var(--navy-line-2);
}
.strip-cell:last-child { border-right: 0; }
.strip-n {
  font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; letter-spacing: -.035em;
  line-height: 1; margin-bottom: 9px;
}
.strip-n em { font-style: normal; color: var(--on-navy-3); font-weight: 700; font-size: .62em; letter-spacing: -.01em; }
.strip-cell:first-child .strip-n, .strip-cell:nth-child(3) .strip-n { color: var(--on-navy); }
.strip-l { font-size: 13.5px; color: var(--on-navy-2); line-height: 1.4; }

/* ---------------------------------------------------------- scatter plot */
.scatter-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(34px, 4.6vw, 64px); align-items: center; }
.scatter {
  position: relative; aspect-ratio: 1 / .82; min-height: 300px;
  border: 1px solid var(--navy-line); border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 34px 100%;
  overflow: hidden;
}
.chip {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: clamp(10.5px, 1.05vw, 12.5px); font-weight: 500;
  padding: 7px 13px; border-radius: 100px; white-space: nowrap;
  background: var(--navy-panel); border: 1px solid var(--navy-line);
  color: var(--on-navy-2);
  animation: chipfloat 7s ease-in-out infinite;
}
@keyframes chipfloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, calc(-50% - 7px)); }
}
.scatter-q {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: clamp(120px, 17vw, 210px); font-weight: 900; line-height: 1;
  color: rgba(255, 65, 77, .13); pointer-events: none; user-select: none;
}
.scatter-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 13px 18px;
  border-top: 1px solid var(--navy-line); background: rgba(2,2,46,.72);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-navy-3); text-align: center;
}

/* questions */
.qlist { counter-reset: q; margin-top: 26px; }
.qrow {
  display: flex; gap: 18px; align-items: baseline;
  padding: 17px 0; border-bottom: 1px solid var(--navy-line-2);
}
.qrow:first-child { border-top: 1px solid var(--navy-line-2); }
.qrow-n { font-family: var(--mono); font-size: 12px; color: var(--crimson); flex: none; width: 26px; }
.qrow-t { font-size: clamp(16px, 1.65vw, 19px); font-weight: 600; line-height: 1.35; }

/* ------------------------------------------------------------ what we build */
.builds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--navy-line-2); border: 1px solid var(--navy-line-2); border-radius: 8px; overflow: hidden; }
.build {
  background: var(--navy); padding: clamp(24px, 2.6vw, 32px);
  display: flex; flex-direction: column; gap: 12px;
  transition: background .2s;
}
.build:hover { background: var(--navy-panel); }
.build-i { display: block; width: 28px; height: 28px; color: var(--crimson); }
.build-i svg { width: 28px; height: 28px; }
.build h4 { font-size: 17px; font-weight: 800; }
.build p { font-size: 14.5px; color: var(--on-navy-2); line-height: 1.5; }
.build-meta {
  margin-top: auto; padding-top: 12px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy-3);
  border-top: 1px solid var(--navy-line-2);
}

/* --------------------------------------------------------- findings table */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  padding: 6px 12px; border-radius: 100px; border: 1px solid var(--paper-line);
  color: var(--on-paper-2);
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.tag.happened::before  { background: var(--crimson-deep); }
.tag.chance::before    { background: var(--amber); }
.tag.estimate::before  { background: var(--on-paper-3); }

.findings { width: 100%; border-collapse: collapse; font-size: 15px; }
.findings thead th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--on-paper-3); font-weight: 500; text-align: left;
  padding: 0 14px 12px 0; border-bottom: 1px solid var(--on-paper);
}
.findings thead th:last-child, .findings tbody td:last-child { padding-right: 0; }
.findings tbody td { padding: 17px 14px 17px 0; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.findings tbody tr:hover td { background: var(--paper-2); }
.findings { table-layout: fixed; }
.findings th:nth-child(1), .findings td:nth-child(1) { width: 56%; }
.findings th:nth-child(2), .findings td:nth-child(2) { width: 26%; }
.findings th:nth-child(3), .findings td:nth-child(3) { width: 18%; }
.f-what { font-weight: 600; line-height: 1.4; }
.f-num {
  font-family: var(--mono); font-weight: 500;
  color: var(--crimson-deep); font-size: 15.5px;
}
.f-tag {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--on-paper-2);
}
.f-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.f-tag.happened::before { background: var(--crimson-deep); }
.f-tag.chance::before   { background: var(--amber); }
.f-tag.estimate::before { background: var(--on-paper-3); }

.callout {
  margin-top: 38px; padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--paper-line); border-left: 3px solid var(--crimson-deep);
  border-radius: var(--rad); background: var(--paper-2);
}
.callout h3 { margin-bottom: 10px; font-size: clamp(19px, 2.2vw, 24px); }
.callout p { font-size: 15.5px; color: var(--on-paper-2); max-width: 74ch; }

/* ------------------------------------------------------------- timeline */
.months { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(34px, 4.6vw, 64px); align-items: center; }

.chart { border: 1px solid var(--navy-line); border-radius: 8px; padding: clamp(20px, 2.4vw, 28px); background: rgba(255,255,255,.022); }
.chart-head {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-navy-3); margin-bottom: 22px;
}
.bars { display: flex; align-items: flex-end; gap: clamp(6px, 1.2vw, 14px); height: 200px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 8px; }
.bar-v { font-family: var(--mono); font-size: 12.5px; color: var(--on-navy-2); }
.bar {
  width: 100%; border-radius: 3px 3px 0 0; background: rgba(255,255,255,.17);
  transition: height 1.1s cubic-bezier(.22,1,.36,1);
  height: 0;
}
.bar.hot { background: linear-gradient(180deg, var(--crimson), var(--crimson-deep)); }
.bar-l { font-family: var(--mono); font-size: 11px; color: var(--on-navy-3); }
.chart-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--navy-line-2); font-size: 13.5px; color: var(--on-navy-2); }
.chart-note b { color: var(--crimson); font-weight: 700; }

.phase { padding: 20px 0; border-bottom: 1px solid var(--navy-line-2); display: grid; grid-template-columns: 78px 1fr; gap: 20px; align-items: baseline; }
.phase:first-of-type { border-top: 1px solid var(--navy-line-2); }
.phase-k { font-family: var(--mono); font-size: 12px; color: var(--crimson); letter-spacing: .06em; }
.phase-t { display: block; font-weight: 700; font-size: 16.5px; margin-bottom: 5px; }
.phase-d { display: block; font-size: 14.5px; color: var(--on-navy-2); line-height: 1.5; }

/* ------------------------------------------------------------ three edges */
.edges { display: grid; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); gap: clamp(20px, 2.4vw, 30px); }
.edge {
  border: 1px solid var(--navy-line); border-radius: 8px;
  padding: clamp(24px, 2.8vw, 34px); display: flex; flex-direction: column;
  background: linear-gradient(170deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.edge-n {
  font-family: var(--mono); font-size: 12px; color: var(--crimson);
  letter-spacing: .12em; margin-bottom: 16px;
}
.edge h3 { margin-bottom: 13px; }
.edge p { font-size: 15px; color: var(--on-navy-2); line-height: 1.55; }
.proof {
  /* pinned to the bottom so the three cards line their proof blocks up */
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--navy-line);
}
/* auto can collapse the gap to nothing when the body text is tall */
.edge > p:not(:last-child) { margin-bottom: 24px; }
.proof-l {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 8px; display: flex; align-items: center; gap: 7px;
}
.proof-l svg { width: 13px; flex: none; }
.proof p { font-size: 14px; color: var(--on-navy-2); }

/* ------------------------------------------------------------ how we work */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(246px, 1fr)); gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); border-radius: 8px; overflow: hidden; }
.step { background: var(--paper); padding: clamp(26px, 3vw, 36px); }
.step-n {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  color: var(--crimson-deep); margin-bottom: 16px;
}
.step h3 { margin-bottom: 11px; }
.step p { font-size: 15px; color: var(--on-paper-2); line-height: 1.55; }

/* --------------------------------------------------------------- costing */
.cost-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: stretch; }
.cost-card {
  border: 1px solid var(--navy-line); border-radius: 8px; padding: clamp(26px, 3vw, 38px);
  display: flex; flex-direction: column; justify-content: center;
}
.cost-card.hot { border-color: rgba(255,65,77,.4); background: linear-gradient(170deg, rgba(255,65,77,.1), rgba(255,65,77,.02)); }
.cost-k {
  font-family: var(--mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--on-navy-3); margin-bottom: 14px;
}
.cost-v { font-size: clamp(38px, 5.4vw, 64px); font-weight: 900; letter-spacing: -.04em; line-height: 1; margin-bottom: 12px; }
.cost-card.hot .cost-v { color: var(--crimson); }
.cost-d { font-size: 14.5px; color: var(--on-navy-2); line-height: 1.5; }

/* --------------------------------------------------------- what failed */
.fails { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(18px, 2.2vw, 26px); }
.fail {
  border: 1px solid var(--navy-line-2); border-radius: 8px; padding: clamp(20px, 2.4vw, 28px);
  background: rgba(255,255,255,.018);
}
.fail-k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 11px; display: flex; align-items: center; gap: 7px;
}
.fail-k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.fail h4 { margin-bottom: 8px; font-size: 16px; }
.fail p { font-size: 14px; color: var(--on-navy-2); line-height: 1.5; }

/* ------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(34px, 4.6vw, 64px); align-items: center; }
.card {
  border: 1px solid var(--navy-line); border-radius: 10px; overflow: hidden;
  background: linear-gradient(170deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
}
.card-top { padding: clamp(24px, 2.8vw, 32px); border-bottom: 1px solid var(--navy-line); }
.card-name { font-size: clamp(24px, 2.8vw, 31px); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.card-role { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--crimson); margin-top: 9px; }
.card-rows { padding: 8px clamp(24px, 2.8vw, 32px) clamp(20px, 2.4vw, 26px); }
.card-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 0;
  border-bottom: 1px solid var(--navy-line-2); text-decoration: none;
  font-size: 15px; transition: color .18s;
}
.card-row:last-child { border-bottom: 0; }
.card-row:hover { color: var(--crimson); }
.card-row svg { width: 17px; flex: none; color: var(--crimson); }
.card-row span:last-child { font-family: var(--mono); font-size: 14px; }

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--navy-line); padding: clamp(40px, 5vw, 62px) 0 clamp(30px, 4vw, 46px); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.foot-brand { max-width: 40ch; }
.foot-brand img { width: 168px; margin-bottom: 18px; }
.foot-brand p { font-size: 13.5px; color: var(--on-navy-3); line-height: 1.55; }
.foot-links { display: flex; gap: clamp(30px, 5vw, 64px); flex-wrap: wrap; }
.foot-col h5 {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--on-navy-3); margin: 0 0 14px; font-weight: 500;
}
.foot-col a { display: block; font-size: 14px; color: var(--on-navy-2); text-decoration: none; padding: 5px 0; transition: color .18s; }
.foot-col a:hover { color: var(--crimson); }
.foot-base {
  margin-top: clamp(34px, 4vw, 52px); padding-top: 22px; border-top: 1px solid var(--navy-line-2);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px; color: var(--on-navy-3);
}

/* --------------------------------------------------------------- reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .chip { animation: none !important; }
  .bar { transition: none !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero-grid, .scatter-wrap, .months, .contact-grid, .cost-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-cell:nth-child(2) { border-right: 0; }
  .strip-cell:nth-child(-n+2) { border-bottom: 1px solid var(--navy-line-2); }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-cell { border-right: 0; border-bottom: 1px solid var(--navy-line-2); }
  .strip-cell:last-child { border-bottom: 0; }
  .btn { width: 100%; justify-content: center; }
  .nav-cta { display: none; }
  .phase { grid-template-columns: 1fr; gap: 6px; }
  .findings thead { display: none; }
  .findings, .findings tbody, .findings tr, .findings td { display: block; width: 100%; }
  .findings tbody tr { padding: 18px 0; border-bottom: 1px solid var(--paper-line); }
  .findings tbody td { border: 0; padding: 0 0 8px; }
  .findings tbody td:last-child { padding-bottom: 0; }
  .f-what { max-width: none; }
  .scatter { min-height: 268px; aspect-ratio: auto; height: 268px; }
  .bars { height: 150px; }
}

/* ------------------------------------------------- pass 02 additions */
.cta-note {
  margin-top: 16px; font-size: 12px; letter-spacing: .04em;
  color: var(--on-navy-3);
}
.scatter-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.scatter-q {
  font-size: clamp(150px, 20vw, 250px);
  color: rgba(255, 65, 77, .17);
  text-shadow: 0 0 80px rgba(255, 65, 77, .18);
}
.chip { z-index: 2; box-shadow: 0 6px 22px rgba(2, 2, 40, .5); }

@media (max-width: 1080px) {
  .builds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .builds { grid-template-columns: 1fr; }
}

/* hub: the decision nothing reaches */
.scatter-q { display: none; }
.hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(112px, 15vw, 152px); aspect-ratio: 1;
  display: grid; place-items: center; z-index: 1;
}
.hub-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed rgba(255, 65, 77, .55);
  background: radial-gradient(circle, rgba(255,65,77,.13), transparent 68%);
  animation: hubpulse 4.5s ease-in-out infinite;
}
@keyframes hubpulse {
  0%, 100% { transform: scale(1);    opacity: .85; }
  50%      { transform: scale(1.055); opacity: 1; }
}
.hub-t {
  position: relative; font-family: var(--mono); font-size: clamp(10.5px, 1.1vw, 12px);
  letter-spacing: .16em; text-transform: uppercase; color: var(--crimson);
  text-align: center; padding: 0 10px; line-height: 1.3;
}

/* ------------------------------------------ pass 03: mobile corrections */

/* legend pills must not shatter into single words */
.tag { align-items: baseline; }
.tag b { white-space: nowrap; }

@media (max-width: 620px) {
  /* the fixed column widths are for the table layout only */
  .findings th:nth-child(1), .findings td:nth-child(1),
  .findings th:nth-child(2), .findings td:nth-child(2),
  .findings th:nth-child(3), .findings td:nth-child(3) { width: auto; }
  .findings { table-layout: auto; }
  .findings tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; }
  .findings tbody td.f-what { grid-column: 1 / -1; padding-bottom: 10px; }
  .findings tbody td:nth-child(2) { align-self: center; }
  .findings tbody td:nth-child(3) { text-align: right; align-self: center; }
  .f-num { font-size: 15px; }

  .tags { gap: 8px; }
  .tag { font-size: 11px; padding: 7px 11px; }
}

/* ---------------------------------------- sticky action bar, phones only */
.dock { display: none; }

@media (max-width: 760px) {
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: grid; grid-template-columns: 1fr auto;
    gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(2, 2, 46, .92);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid var(--navy-line);
    transform: translateY(110%);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
  }
  .dock.up { transform: none; }
  .dock a {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-size: 15px; font-weight: 700; text-decoration: none;
    padding: 13px 18px; border-radius: 100px; white-space: nowrap;
  }
  .dock a svg { width: 17px; height: 17px; flex: none; }
  .dock .dock-primary { background: var(--crimson); color: #fff; }
  .dock .dock-ghost {
    border: 1px solid var(--navy-line); color: var(--on-navy);
    padding-inline: 17px;
  }
  body { padding-bottom: 0; }
  main { padding-bottom: 8px; }
  footer { padding-bottom: 96px; }
}

/* keyboard users must be able to see where they are */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--crimson); color: #fff; padding: 11px 18px;
  border-radius: 0 0 6px 6px; font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 0; }

/* --------------------------------------------------------------- the FAQ */
.qas {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(28px, 4vw, 56px);
  align-content: start;
}
.qa {
  border-bottom: 1px solid var(--paper-line);
  break-inside: avoid;
}
.qa:first-child, .qa:nth-child(2) { border-top: 1px solid var(--on-paper); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 21px 0;
  font-size: clamp(16px, 1.65vw, 18px); font-weight: 700; line-height: 1.4;
  color: var(--on-paper);
  transition: color .18s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--crimson-deep); }
.qa summary svg {
  width: 18px; height: 18px; flex: none; margin-top: 4px;
  color: var(--crimson-deep); transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.qa[open] summary svg { transform: rotate(180deg); }
.qa[open] summary { color: var(--crimson-deep); }
.qa-a { padding: 0 34px 24px 0; }
.qa-a p { font-size: 15.5px; line-height: 1.6; color: var(--on-paper-2); max-width: 58ch; }

@media (max-width: 860px) {
  .qas { grid-template-columns: 1fr; }
  .qa:nth-child(2) { border-top: 0; }
  .qa-a { padding-right: 8px; }
}

/* ------------------------------------------------------- statement band */
.band {
  background: var(--crimson);
  color: #fff;
  padding: clamp(52px, 6.5vw, 86px) 0;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(4, 4, 74, .3), transparent 62%),
    radial-gradient(60% 100% at 0% 100%, rgba(4, 4, 74, .22), transparent 60%);
}
.band-in {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(24px, 4vw, 56px); align-items: end;
}
.band-t {
  font-size: clamp(24px, 3.3vw, 41px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.028em;
  max-width: 24ch;
  margin: 0;
  text-wrap: balance;
}
.band-t span { color: rgba(255, 255, 255, .62); }
.band-t b { font-weight: 800; }
.band-n {
  margin: 0 0 9px;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(4, 4, 74, .78);
  display: flex; align-items: flex-start; gap: 11px;
  line-height: 1.5;
}
.band-n::before { content: ""; width: 26px; height: 2px; background: rgba(4,4,74,.55); flex: none; margin-top: 8px; }
@media (max-width: 860px) { .band-in { grid-template-columns: 1fr; align-items: start; } .band-n { margin: 22px 0 0; } }

/* ------------------------------------------------ split section headers */
.sect-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.sect-head--split .lede { margin: 0; padding-bottom: 5px; }
@media (max-width: 900px) {
  .sect-head--split { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .sect-head--split .lede { padding-bottom: 0; }
}

/* ------------------------------------------------ tablet + phone menu */
.burger {
  display: none;
  flex: none;
  width: 42px; height: 42px;
  margin-right: -9px;
  padding: 0;
  background: none;
  border: 1px solid var(--navy-line);
  border-radius: 100px;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 12px; width: 18px; height: 1.8px;
  background: var(--on-navy); border-radius: 2px;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .2s;
}
.burger span:first-child { top: 17px; }
.burger span:last-child  { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3px) rotate(-45deg); }

.menu { display: none; }

@media (max-width: 980px) {
  .burger { display: block; }
  .nav-in { gap: 14px; }
  .lang { margin-left: auto; }

  .menu {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 68px 0 0; z-index: 55;
    background: var(--navy);
    padding: clamp(20px, 5vw, 44px) var(--gut) calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    opacity: 0; transform: translateY(-10px);
    transition: opacity .28s ease, transform .28s cubic-bezier(.22,1,.36,1);
  }
  .menu[hidden] { display: none; }
  .menu.open { opacity: 1; transform: none; }

  .menu-links { display: flex; flex-direction: column; }
  .menu-links a {
    display: flex; align-items: baseline; gap: 16px;
    padding: 17px 0; border-bottom: 1px solid var(--navy-line-2);
    font-size: clamp(21px, 4.6vw, 28px); font-weight: 800; letter-spacing: -.026em;
    text-decoration: none; color: var(--on-navy);
    transition: color .18s;
  }
  .menu-links a:first-child { border-top: 1px solid var(--navy-line-2); }
  .menu-links a:last-child { color: var(--crimson); }
  .menu-links a:active { color: var(--crimson); }
  .menu-links a .mono { font-size: 11.5px; color: var(--crimson); letter-spacing: .12em; }

  .menu-foot { padding-top: 30px; }
  .menu-k {
    font-size: 11px; letter-spacing: .17em; text-transform: uppercase;
    color: var(--on-navy-3); margin: 0 0 14px;
  }
  .menu-foot .btn { width: 100%; justify-content: center; }
  .menu-mail {
    display: block; margin-top: 15px; text-align: center;
    font-family: var(--mono); font-size: 13.5px; color: var(--on-navy-2);
    text-decoration: none;
  }

  body.locked { overflow: hidden; }
}

@media (max-width: 620px) {
  .nav-cta { display: none; }
}

/* --------------------------------- hero ledger: the correction, in motion
   The static state IS the finished state. JS only adds the "before" state
   when motion is allowed, then plays forward — so no-JS and
   prefers-reduced-motion both land on the correct picture. */
.ledger[data-anim] .ledger-v.was::after { transform: scaleX(0); }
.ledger[data-anim] .ledger-why,
.ledger[data-anim] .ledger-row--now,
.ledger[data-anim] .ledger-foot { opacity: 0; transform: translateY(9px); }

.ledger[data-anim="run"] .ledger-v.was::after {
  transform: scaleX(1);
  transition: transform .62s cubic-bezier(.65, 0, .35, 1) .25s;
}
.ledger[data-anim="run"] .ledger-why,
.ledger[data-anim="run"] .ledger-row--now,
.ledger[data-anim="run"] .ledger-foot {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, 1, .36, 1);
}
.ledger[data-anim="run"] .ledger-why              { transition-delay: .90s; }
.ledger[data-anim="run"] .ledger-row--now { transition-delay: 1.20s; }
.ledger[data-anim="run"] .ledger-foot             { transition-delay: 1.55s; }

.ledger[data-anim="run"] .ledger-v.now {
  animation: hitpop .5s cubic-bezier(.22, 1, .36, 1) 1.20s both;
}
@keyframes hitpop {
  0%   { opacity: 0; transform: translateY(9px) scale(.96); }
  100% { opacity: 1; transform: none; }
}

/* footer: three columns, the contact one non-linked in its last row */
.foot-col span {
  display: block; font-size: 14px; color: var(--on-navy-3);
  padding: 5px 0;
}
.foot-links { flex: 1; justify-content: flex-end; }
@media (max-width: 760px) {
  .foot-links { justify-content: flex-start; gap: 28px 34px; }
  .foot-grid { gap: 30px; }
}

/* --------------------------------------------- who you are dealing with */
.who {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
}
.who-card {
  border: 1px solid var(--navy-line); border-radius: 8px;
  padding: clamp(22px, 2.6vw, 32px);
  background: linear-gradient(170deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}
.who-cap {
  font-size: 10.5px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 12px;
}
.who-name {
  font-size: clamp(18px, 2vw, 23px); font-weight: 800; letter-spacing: -.02em;
  line-height: 1.24; margin-bottom: 20px; padding-bottom: 18px;
  border-bottom: 1px solid var(--navy-line);
}
.who-row {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px;
  padding: 10px 0; align-items: baseline;
}
.who-row + .who-row { border-top: 1px solid var(--navy-line-2); }
.who-k {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--on-navy-3);
}
.who-v { font-size: 14.5px; line-height: 1.45; color: var(--on-navy-2); }
.who-note {
  margin-top: 22px; font-size: 12px; letter-spacing: .04em; color: var(--on-navy-3);
}

@media (max-width: 860px) {
  .who { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .who-row { grid-template-columns: 1fr; gap: 3px; }
  .who-row + .who-row { padding-top: 13px; }
}

/* ------------------------------------------------- iOS Safari hardening */

/* no grey flash on tap */
a, button, summary { -webkit-tap-highlight-color: transparent; }

/* where backdrop-filter is unsupported, the bar must still be opaque enough
   to read against the page scrolling underneath */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .nav  { background: rgba(4, 4, 74, .97); }
  .dock { background: rgba(2, 2, 46, .98); }
}

/* iOS: a fixed element pinned bottom:0 is measured against the layout
   viewport, which runs under the collapsing toolbar. dvh tracks the visible
   viewport instead, so the menu never hides its last link. */
@supports (height: 100dvh) {
  @media (max-width: 980px) {
    .menu { bottom: auto; height: calc(100dvh - 68px); }
  }
}

/* Safari renders summary as a list-item even when display is overridden */
.qa summary { list-style: none; }
.qa summary::marker { content: ""; }

/* momentum scrolling inside the overlay */
.menu { -webkit-overflow-scrolling: touch; }

/* ------------------------------------------ cost: the scale contrast */
.scale {
  margin-top: clamp(26px, 3.2vw, 40px);
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(26px, 3.6vw, 52px);
  padding-top: clamp(26px, 3.2vw, 40px);
  border-top: 1px solid var(--navy-line);
  align-items: center;
}
.scale-l h3 { margin-bottom: 12px; }
.scale-l p { font-size: 15.5px; line-height: 1.6; color: var(--on-navy-2); }
.scale-bars { display: flex; flex-direction: column; gap: 14px; }
.scale-row { display: grid; grid-template-columns: 164px minmax(0, 1fr) 72px; gap: 14px; align-items: center; }
.scale-k { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--on-navy-3); }
.scale-bar {
  height: 11px; border-radius: 3px; background: rgba(255, 255, 255, .22);
  min-width: 4px; display: block;
}
.scale-bar.hot { background: linear-gradient(90deg, var(--crimson), var(--crimson-deep)); }
.scale-v { font-size: 12.5px; color: var(--on-navy-2); text-align: right; }
.scale-note {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--navy-line-2);
  font-size: 13px; line-height: 1.55; color: var(--on-navy-3);
}

@media (max-width: 900px) { .scale { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .scale-row { grid-template-columns: 1fr; gap: 5px; }
  .scale-v { text-align: left; }
}

/* ======================================================================
   PRINT
   A prospect prints this to carry into a meeting. On paper it should read
   like a document, not a screenshot of a dark website: ink on white, no
   navigation, no decoration, and no section split across a page break.
   ====================================================================== */
@media print {
  :root {
    --navy: #fff; --navy-deep: #fff; --navy-panel: #fff;
    --navy-line: rgba(0, 0, 0, .25); --navy-line-2: rgba(0, 0, 0, .12);
    --on-navy: #000; --on-navy-2: #222; --on-navy-3: #555;
    --crimson: #C0142A; --crimson-deep: #C0142A;
    --paper: #fff; --paper-2: #fff; --paper-line: rgba(0, 0, 0, .25);
    --on-paper: #000; --on-paper-2: #222; --on-paper-3: #555;
    --sect-y: 18pt;
  }

  @page { margin: 14mm 13mm; }

  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 10.5pt; line-height: 1.45; }

  /* chrome that means nothing on paper */
  .nav, .menu, .burger, .dock, .skip, .hero-cta, .cta-note,
  .scatter, .band::before, .ledger::after { display: none !important; }

  /* the page is generated dark; force every panel flat */
  .ledger, .chart, .edge, .who-card, .build, .fail, .cost-card, .callout {
    background: none !important;
    border: 1pt solid rgba(0, 0, 0, .3) !important;
  }
  .band { background: none !important; border-top: 2pt solid #C0142A;
          border-bottom: 2pt solid #C0142A; }
  .band-t span { color: #555 !important; }
  .band-n { color: #555 !important; }

  section { padding: 14pt 0 !important; }
  /* keep the units atomic, but let long sections flow across pages -
     forcing whole sections onto one page each cost five blank half-pages */
  .build, .edge, .fail, .who-card, .step, .qa, .strip-cell,
  .ledger, .chart, .cost-card, .callout, .scale, .phase, .qrow {
    break-inside: avoid;
  }
  h1 { font-size: 26pt; }
  h2 { font-size: 16pt; break-after: avoid; }
  h3, h4 { break-after: avoid; }
  .sect-head { break-after: avoid; }
  .wrap { max-width: none; padding: 0; }

  /* grids collapse to something a page can hold */
  .hero-grid, .scatter-wrap, .months, .contact-grid, .cost-grid,
  .sect-head--split, .scale, .band-in { display: block !important; }
  .builds, .edges, .fails, .who, .steps, .qas {
    display: grid !important; grid-template-columns: 1fr 1fr !important;
  }
  .strip-grid { grid-template-columns: repeat(4, 1fr) !important; }

  /* the evidence table is the reason to print at all */
  .findings { break-inside: auto; }
  .findings tr { break-inside: avoid; }
  .findings thead { display: table-header-group; }

  /* every answer visible on paper, collapsed or not */
  .qa[open] .qa-a, .qa .qa-a { display: block !important; }
  .qa summary svg { display: none; }

  /* reveals must never leave the page blank */
  .rv { opacity: 1 !important; transform: none !important; }
  .bar { height: auto !important; }

  /* let the reader find us again */
  .foot-base::after {
    content: " · wildcats.global · +84 822 949 898";
    color: #555;
  }
  a[href^="http"]::after { content: ""; }
}
