/* Arrowrock.AI — "Built to hold."
   Granite, bone, and two working colors: rust = leaking, teal = holding. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #0b0d0e;
  --bg-2: #111416;
  --bg-3: #171b1e;
  --line: rgba(236, 232, 223, .11);
  --line-2: rgba(236, 232, 223, .22);
  --text: #ece8df;
  --text-2: #b6b2a8;
  --text-3: #8a877f;
  --paper: #ece8df;
  --ink: #0b0d0e;
  --rust: #e0662f;
  --rust-dim: rgba(224, 102, 47, .14);
  --teal: #5fd4c4;
  --teal-dim: rgba(95, 212, 196, .12);

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 400 17px/1.55 var(--body);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
p, li, dd { text-wrap: pretty; } /* no one-word last lines */
h3 { text-wrap: balance; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { color: var(--ink); background: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: 10px; left: -999px; z-index: 100;
  padding: 10px 14px; color: var(--ink); background: var(--teal);
  font: 700 13px/1 var(--mono);
}
.skip-link:focus { left: 10px; }

.shell { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type primitives ---------- */
.mono, .eyebrow, .tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); }
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6;
}
.display {
  font-family: var(--display);
  font-stretch: 72%;
  font-weight: 820;
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
/* condensed caps squeeze the word spaces too; give words a little air */
.display, .leak-card h3, .stage h3, .step h3, .deal h3, .teardown-summary b, .why-facts dd { word-spacing: .06em; }
.h2 { font-size: clamp(40px, 6.4vw, 92px); }
.lede { max-width: 60ch; color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.teal { color: var(--teal); }
.nw { white-space: nowrap; }
.rust { color: var(--rust); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 1px solid var(--paper);
  color: var(--ink); background: var(--paper);
  font: 700 15px/1 var(--body); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--teal); border-color: var(--teal); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav.is-scrolled {
  background: rgba(11, 13, 14, .82);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.nav .shell { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font: 800 19px/1 var(--display); font-stretch: 88%; letter-spacing: .02em; text-transform: uppercase;
}
.brand img { width: 26px; height: 26px; }
.brand span span { color: var(--text-3); font-weight: 500; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--text-2); text-decoration: none; white-space: nowrap;
  font: 500 14px/1 var(--body);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-phone {
  color: var(--text-2); text-decoration: none; white-space: nowrap; font: 500 13px/1 var(--mono); letter-spacing: .02em;
}
.nav-phone:hover { color: var(--teal); }
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-phone { margin-left: auto; }
}
@media (max-width: 520px) {
  :root { --nav-h: 60px; }
  .nav .shell { gap: 10px; }
  .brand { font-size: 16px; }
  .nav .btn-sm { padding: 0 12px; }
  .nav-phone { font-size: 0; }
  .nav-phone::before {
    content: ""; display: block; width: 20px; height: 20px;
    background: currentColor;
    -webkit-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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
            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='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}
@media (max-width: 379px) { /* smallest phones: the hero already has a call button */
  .nav-phone { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .check-body .nav-phone { display: revert; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: max(680px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before { /* topo contour field on the copy side */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/assets/img/topo.svg") left -120px center / 1100px auto no-repeat;
  opacity: .5;
}
.hero-media {
  position: absolute; z-index: -2;
  top: 0; right: 0; bottom: 0;
  width: min(60%, 900px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 22%);
          mask-composite: intersect;
}
.hero-media picture, .hero-media img, .hero-media canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media img { object-fit: cover; object-position: 30% 62%; filter: brightness(.58) contrast(1.12); }
.hero-media::after { /* keep the nav legible over the photo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 14, .9) 0, rgba(11, 13, 14, 0) 24%);
  pointer-events: none;
}
.hero-media canvas { pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-media canvas.is-live { opacity: 1; }
.hero-credit {
  position: absolute; right: 14px; bottom: 50%; z-index: 2;
  transform: rotate(90deg) translateX(50%); transform-origin: right bottom;
  color: var(--text-3); font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
}

.hero-copy {
  position: relative;
  padding: calc(var(--nav-h) + 40px) 0 64px;
  max-width: 960px;
}
.status-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 10px;
  border: 1px solid var(--line-2);
  background: rgba(11, 13, 14, .5);
  color: var(--text-2);
  font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
@media (max-width: 520px) {
  .status-chip .chip-long { display: none; }
}
.pulse {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none;
}
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--teal); opacity: 0;
}
/* only things that are actually live get to ping */
.status-chip .pulse::after, .log-head .pulse::after { animation: ping 2.4s var(--ease) infinite; }
.pulse.is-rust { background: var(--rust); }
.pulse.is-rust::after { border-color: var(--rust); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(2.1); opacity: 0; } }

.hero h1 {
  margin: 26px 0 24px;
  font-size: clamp(46px, 6.9vw, 108px);
}
.hero h1 .line { display: block; }
.hero h1 .teal { text-shadow: 0 0 40px rgba(95, 212, 196, .25); }
.hero .lede { max-width: 52ch; color: var(--text-2); }
.hero .lede strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 18px; color: var(--text-3); font: 400 13px/1.5 var(--mono); }

/* live log */
.log {
  position: absolute; right: var(--gutter); bottom: 40px; z-index: 3;
  width: min(440px, 40vw);
  border: 1px solid var(--line-2);
  background: rgba(8, 10, 11, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font: 400 12px/1.5 var(--mono);
}
.log-head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
}
.log-head .sim { margin-left: auto; padding: 3px 6px; border: 1px solid var(--line-2); font-size: 9.5px; }
.log ol { height: calc(5 * 1.5em + 20px); overflow: hidden; padding: 10px 12px; display: flex; flex-direction: column; justify-content: flex-end; }
.log li { display: grid; grid-template-columns: 7.5ch 1fr auto; gap: 10px; white-space: nowrap; animation: log-in .5s var(--ease); }
.log li time { color: var(--text-3); }
.log li span { overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.log li b { color: var(--teal); font-weight: 500; }
.log li.is-leak b { color: var(--rust); }
@keyframes log-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* entrance: each headline line rises out of a slot */
.hero h1 .line { animation: rise .9s var(--ease) both; }
.hero h1 .line:nth-child(2) { animation-delay: .12s; }
.hero h1 .line:nth-child(3) { animation-delay: .24s; }
.hero .lede, .hero-ctas, .hero-note { animation: fade-up .9s var(--ease) .35s both; }
/* starts half-emerged: a fully hidden headline would hold back Largest Contentful Paint by ~1s */
@keyframes rise { from { clip-path: inset(45% -10% -60% -10%); transform: translateY(.2em); } to { clip-path: inset(-60% -10% -60% -10%); transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .log { display: none; }
}
@media (max-width: 860px) {
  .hero { align-items: flex-end; min-height: max(640px, 100svh); }
  .hero-media {
    width: 100%; left: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 78%);
            mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 78%);
  }
  .hero-media img { object-position: 30% 55%; opacity: .6; }
  .hero-copy { padding: 34svh 0 64px; }
  .hero-credit { display: none; }
}

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(96px, 12vw, 168px); border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
/* skip rendering sections until they're near the screen; keeps the first load light on phones */
.section, .why, .footer { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
.section-head { display: grid; gap: 22px; max-width: 900px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .eyebrow .num { color: var(--teal); }
.section-head .eyebrow::before { display: none; }
.tag { color: var(--text-3); font-size: 11px; letter-spacing: .1em; }

/* reveal */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
.leak-grid > .is-in:nth-child(3n+2) { transition-delay: .08s; }
.leak-grid > .is-in:nth-child(3n) { transition-delay: .16s; }
/* big headings rise out of a slot as their block comes in, like water level coming up */
.js-reveal [data-reveal] .h2, .js-reveal [data-reveal] .final-title {
  clip-path: inset(100% -5% -15% -5%); transform: translateY(.35em);
  transition: clip-path 1.1s var(--ease) .1s, transform 1.1s var(--ease) .1s;
}
.js-reveal [data-reveal].is-in .h2, .js-reveal [data-reveal].is-in .final-title { clip-path: inset(-15% -5% -15% -5%); transform: none; }

/* 01 leaks */
.leak-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.leak-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  min-height: 300px; padding: 28px;
  background: var(--bg);
  overflow: hidden;
  transition: background .3s var(--ease);
}
.leak-card:hover { background: #0f1112; }
.leak-tag { display: inline-flex; align-items: center; gap: 9px; color: var(--rust); }
.leak-card h3 {
  margin-top: 26px;
  font: 800 clamp(26px, 2.4vw, 34px)/1 var(--display); font-stretch: 78%; text-transform: uppercase; letter-spacing: 0;
}
.leak-card p:not(.tag):not(.leak-cost) { color: var(--text-2); font-size: 16px; }
.leak-cost { margin-top: auto; padding-top: 6px; color: var(--rust); font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* 02 calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border: 1px solid var(--line-2); background: var(--bg); }
.calc-inputs { padding: clamp(24px, 3.4vw, 44px); border-right: 1px solid var(--line-2); display: grid; gap: 36px; }
.calc fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 26px; }
.calc legend { margin-bottom: 4px; padding: 0; }
.field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 10px 16px; }
.field label { color: var(--text); font-size: 15.5px; font-weight: 500; }
.field label small { color: var(--text-3); font-size: 13px; font-weight: 400; }
.field output { color: var(--teal); font: 600 15px/1 var(--mono); }
.field input { grid-column: 1 / -1; }

input[type="range"] {
  --pct: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(90deg, var(--teal) var(--pct), var(--line-2) var(--pct));
}
input[type="range"]::-moz-range-track { height: 4px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 4px; background: var(--teal); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -9px;
  border: 2px solid var(--bg); border-radius: 50%;
  background: var(--paper); box-shadow: 0 0 0 1px var(--paper);
  transition: transform .15s var(--ease), background .15s;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border: 2px solid var(--bg); border-radius: 50%; background: var(--paper);
}
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb { transform: scale(1.15); background: var(--teal); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-runnable-track { box-shadow: 0 0 0 4px var(--teal-dim); }
input[type="range"]:focus-visible::-moz-range-track { box-shadow: 0 0 0 4px var(--teal-dim); }

.calc-result { display: grid; grid-template-columns: 76px 1fr; gap: clamp(20px, 3vw, 40px); padding: clamp(24px, 3.4vw, 44px); background: linear-gradient(180deg, rgba(224, 102, 47, .06), transparent 60%); }
.gauge { position: relative; min-height: 360px; border: 1px solid var(--line-2); background: repeating-linear-gradient(0deg, transparent 0 23px, var(--line) 23px 24px); overflow: hidden; }
.gauge canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gauge-ticks { position: absolute; inset: 0; pointer-events: none; }
.gauge-ticks span {
  position: absolute; right: 6px; bottom: calc(var(--at) * 100%);
  transform: translateY(50%);
  color: var(--text-3); font: 500 9.5px/1 var(--mono);
}
.gauge-ticks span::after { content: ""; position: absolute; right: -6px; top: 50%; width: 4px; height: 1px; background: var(--text-3); }
.calc-numbers { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.calc-total {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px;
  color: var(--rust);
  font: 850 clamp(56px, 6.6vw, 104px)/.9 var(--display); font-stretch: 70%;
  font-variant-numeric: tabular-nums;
}
.calc-total small { color: var(--text-3); font: 500 14px/1 var(--mono); }
.calc-hours { color: var(--text); font-size: 18px; }
.calc-hours span { font-weight: 700; }
.calc-math { display: grid; gap: 10px; margin: 8px 0 0; padding: 16px 0; border-block: 1px solid var(--line); }
.calc-math div { display: grid; grid-template-columns: 9ch 1fr; gap: 12px; }
.calc-math dt { color: var(--text-3); font: 500 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.calc-math dd { margin: 0; color: var(--text-2); font: 400 13px/1.6 var(--mono); }
.calc-fine { color: var(--text-3); font-size: 14px; }
.calc-numbers .btn { align-self: flex-start; margin-top: auto; }

/* 03 teardown */
.example-badge {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  padding: 9px 14px; border: 1px dashed var(--line-2);
  color: var(--text-2); font: 500 12px/1.4 var(--mono); letter-spacing: .04em;
}
.example-badge span { color: var(--teal); }
.toggle { /* stays in reach while the stages scroll past */
  position: sticky; top: calc(var(--nav-h) + 10px); z-index: 5;
  display: inline-flex; border: 1px solid var(--line-2); margin-bottom: 28px;
  background: rgba(11, 13, 14, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.toggle button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border: 0; background: transparent; color: var(--text-3);
  font: 600 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.toggle button + button { border-left: 1px solid var(--line-2); }
.toggle button[aria-pressed="true"] { color: var(--text); background: var(--bg-3); }
.toggle button:not([aria-pressed="true"]) .pulse { background: var(--text-3); }

.pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: stage; }
.stage {
  --accent: var(--rust);
  position: relative; display: flex; flex-direction: column; gap: 12px;
  min-height: 250px; padding: 26px 26px 22px;
  background: var(--bg);
  transition: background .4s var(--ease);
}
.stage.is-holding { --accent: var(--teal); animation: take-hold 1s var(--ease); }
@keyframes take-hold { from { background: rgba(95, 212, 196, .12); } to { background: var(--bg); } }
/* the line across the top of each stage: a weak rust trickle while leaking,
   then a surge of teal light runs through when it's plugged (teardown.js chains the stages) */
.stage::before, .stage::after { content: ""; position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.stage::before { height: 2px; background: linear-gradient(90deg, rgba(224, 102, 47, .6), rgba(224, 102, 47, .12)); }
.stage::after {
  height: 2px; background: var(--teal); box-shadow: 0 0 14px rgba(95, 212, 196, .6);
  transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease);
}
.stage.is-holding::after { transform: scaleX(1); transform-origin: left; transition: transform var(--surge) cubic-bezier(.45, 0, .25, 1); }
.stage.is-holding::before { /* the bright head riding the front of the surge */
  top: -4px; height: 10px;
  background: radial-gradient(closest-side, #e6fffb, rgba(95, 212, 196, .7) 45%, transparent) no-repeat;
  background-size: 120px 10px;
  animation: surge var(--surge) cubic-bezier(.45, 0, .25, 1) both;
}
@keyframes surge { 0% { background-position: -120px 0; opacity: 1; } 85% { opacity: 1; } 100% { background-position: calc(100% + 60px) 0; opacity: 0; } }
.pipeline { --surge: .3s; }
.stage-num { color: var(--accent); font: 600 12px/1 var(--mono); letter-spacing: .1em; transition: color .4s; }
.stage h3 { font: 800 24px/1.05 var(--display); font-stretch: 80%; text-transform: uppercase; }
.stage p:not(.stage-num):not(.stage-tag) { color: var(--text-2); font-size: 15.5px; }
.stage-tag {
  margin-top: auto; align-self: flex-start;
  padding: 6px 9px; border: 1px solid var(--accent);
  color: var(--accent); font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  transition: color .4s, border-color .4s;
}
/* each stage flips on its own (teardown.js staggers them); the summary follows the whole teardown */
.stage:not(.is-holding) .is-after, .stage.is-holding .is-before,
[data-state="before"] .teardown-summary .is-after, [data-state="after"] .teardown-summary .is-before { display: none; }
.teardown-summary { margin-top: 24px; color: var(--text-2); font-size: 18px; }
.teardown-summary b { font: 800 22px/1.2 var(--display); font-stretch: 80%; text-transform: uppercase; margin-right: 8px; }

.also { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 22px; }
.also ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.also li { padding-top: 18px; border-top: 1px solid var(--line-2); }
.also h3 { margin-bottom: 8px; font: 700 18px/1.2 var(--body); }
.also p { color: var(--text-2); font-size: 15.5px; }

/* 04 how it works */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.steps::before { /* the line the work flows along */
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px;
  background: linear-gradient(90deg, var(--teal), rgba(95, 212, 196, .15));
  transform-origin: left;
}
.js-reveal .steps[data-reveal] { opacity: 1; transform: none; }
.js-reveal .steps::before { transform: scaleX(0); transition: transform 1.6s linear .2s; }
.js-reveal .steps.is-in::before { transform: scaleX(1); }
.step { --d: 0s; position: relative; padding-top: 34px; display: grid; align-content: start; gap: 14px; }
.steps > .step:nth-child(2) { --d: .4s; }
.steps > .step:nth-child(3) { --d: .8s; }
.steps > .step:nth-child(4) { --d: 1.2s; }
.js-reveal .steps > .step.is-in { transition-delay: calc(var(--d) + .1s); }
.js-reveal .step .pulse { background: var(--line-2); }
.js-reveal .step.is-in .pulse { animation: ignite .8s var(--ease) both; animation-delay: calc(var(--d) + .2s); }
@keyframes ignite {
  0% { background: var(--line-2); box-shadow: 0 0 0 0 rgba(95, 212, 196, .8); }
  35% { background: #e6fffb; }
  100% { background: var(--teal); box-shadow: 0 0 0 14px rgba(95, 212, 196, 0); }
}
.step-status { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font: 600 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.step-status .pulse { position: absolute; top: 0; left: 0; }
.step h3 { font: 800 clamp(30px, 3vw, 42px)/.95 var(--display); font-stretch: 74%; text-transform: uppercase; }
.step p:not(.step-status) { color: var(--text-2); font-size: 16px; }

/* 05 security */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split .section-head { margin-bottom: 0; }
.checks { display: grid; gap: 14px; margin-top: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font: 700 15px/1.6 var(--mono); }
.checks b { color: var(--text); font-weight: 650; }
.perm { border: 1px solid var(--line-2); background: var(--bg-2); font: 400 13px/1.4 var(--mono); }
.perm-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2);
  color: var(--text-3); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
}
.perm-head .sim, .log-head .sim { margin-left: auto; padding: 3px 6px; border: 1px solid var(--line-2); font-size: 9.5px; }
.perm table { width: 100%; border-collapse: collapse; }
.perm th { padding: 10px 16px; color: var(--text-3); font-weight: 500; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--line); }
.perm th:last-child, .perm td:last-child { text-align: right; }
.perm td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.perm td.yes { color: var(--teal); }
.perm td.no { color: var(--text-3); }
.perm td.no::before { content: "✕ "; color: var(--rust); }
.perm td.yes::before { content: "✓ "; }
.perm-foot { padding: 14px 16px; color: var(--text); font: 600 13px/1.4 var(--mono); }
/* the access map runs like an audit: each row gets checked, then stamped */
.perm tbody tr { --r: 0; }
.perm tbody tr:nth-child(2) { --r: 1; }
.perm tbody tr:nth-child(3) { --r: 2; }
.perm tbody tr:nth-child(4) { --r: 3; }
.perm tbody tr:nth-child(5) { --r: 4; }
.perm tbody tr:nth-child(6) { --r: 5; }
.perm tbody tr:nth-child(7) { --r: 6; }
.js-reveal .perm.is-in tbody tr { animation: audit-ok .8s var(--ease) both; animation-delay: calc(.4s + var(--r) * .17s); }
.js-reveal .perm.is-in tbody tr:has(.no) { animation-name: audit-deny; }
.js-reveal .perm.is-in td:last-child { transform-origin: right center; animation: stamp .5s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(.52s + var(--r) * .17s); }
.js-reveal .perm.is-in .perm-foot { animation: fade-up .7s var(--ease) both; animation-delay: 1.8s; }
@keyframes audit-ok { 0% { background: transparent; } 25% { background: rgba(95, 212, 196, .13); } 100% { background: transparent; } }
@keyframes audit-deny { 0% { background: transparent; } 25% { background: rgba(224, 102, 47, .13); } 100% { background: transparent; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.7); } to { opacity: 1; transform: none; } }

/* 06 the deal */
.deal { border-top: 1px solid var(--line-2); counter-reset: deal; }
.deal li {
  counter-increment: deal;
  display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 32px; align-items: baseline;
  padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line-2);
}
.deal li::before { content: "0" counter(deal); color: var(--teal); font: 600 13px/1 var(--mono); letter-spacing: .1em; }
.deal h3 { font: 800 clamp(28px, 3.6vw, 52px)/1 var(--display); font-stretch: 74%; text-transform: uppercase; }
.deal p { color: var(--text-2); font-size: 17px; }

/* 07 founder */
.founder { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.founder-photo { position: relative; }
.founder-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: contrast(1.04) saturate(.9); }
.founder-photo::after { /* registration corners */
  content: ""; position: absolute; inset: -10px;
  background:
    linear-gradient(var(--teal), var(--teal)) top left / 22px 1px no-repeat,
    linear-gradient(var(--teal), var(--teal)) top left / 1px 22px no-repeat,
    linear-gradient(var(--teal), var(--teal)) bottom right / 22px 1px no-repeat,
    linear-gradient(var(--teal), var(--teal)) bottom right / 1px 22px no-repeat;
  pointer-events: none;
}
.founder-photo figcaption { margin-top: 18px; }
.founder-copy { display: grid; gap: 22px; }
.founder-copy .eyebrow .num { color: var(--teal); }
.founder-copy .eyebrow::before { display: none; }
.founder-copy > p:not(.eyebrow):not(.lede):not(.founder-more) { color: var(--text-2); max-width: 60ch; }
.contact-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.contact-list a {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--line-2); text-decoration: none; font: 500 15px/1 var(--mono);
  transition: border-color .2s, color .2s;
}
.contact-list a:hover { border-color: var(--teal); color: var(--teal); }
.contact-list .tag { color: var(--text-3); }
.founder-more a { color: var(--text-2); font-size: 15px; text-underline-offset: 4px; }
.founder-more a:hover { color: var(--teal); }

/* why arrowrock */
.why { position: relative; min-height: max(760px, 104vh); display: flex; align-items: flex-start; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.why picture, .why > picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.why img { object-fit: cover; object-position: 50% 78%; filter: brightness(.66) contrast(1.08); }
.why::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 13, 14, .92) 0%, rgba(11, 13, 14, .7) 34%, rgba(11, 13, 14, 0) 62%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 14, 0) 14%);
}
.why-copy { display: grid; gap: 22px; padding-block: clamp(96px, 10vw, 140px) 48px; }
.why-copy .h2 { font-size: clamp(64px, 11vw, 176px); }
.why-copy .lede { max-width: 58ch; color: var(--text); }
.why-facts { display: flex; flex-wrap: wrap; gap: 14px 48px; margin: 10px 0 0; }
.why-facts div { display: grid; gap: 6px; }
.why-facts dt { color: var(--text-3); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.why-facts dd { margin: 0; font: 800 34px/1 var(--display); font-stretch: 74%; text-transform: uppercase; }
.why-credit {
  position: absolute; right: var(--gutter); bottom: 24px;
  color: var(--text-3); font: 500 10px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-align: right;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 681px) {
    .why > picture img { scale: 1.14; animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { translate: 0 -6%; } to { translate: 0 6%; } }
  }
}

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--nav-h) + 40px); margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font: 600 clamp(18px, 1.6vw, 21px)/1.3 var(--body); transition: color .2s; }
.faq-item summary:hover h3 { color: var(--teal); }
.faq-item summary::after { /* a plus that becomes a minus */
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--teal), var(--teal)) center / 14px 2px no-repeat,
    linear-gradient(var(--teal), var(--teal)) center / 2px 14px no-repeat;
  transition: background-size .35s var(--ease);
}
.faq-item[open] summary::after { background-size: 14px 2px, 2px 0; }
.faq-item p { max-width: 64ch; padding: 0 40px 26px 0; color: var(--text-2); }
/* smooth open where the browser supports animating details */
:root { interpolate-size: allow-keywords; }
.faq-item::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.faq-item[open]::details-content { height: auto; }

/* final */
.final { overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/assets/img/topo.svg") right -200px center / 1300px auto no-repeat;
  opacity: .6;
}
.final { isolation: isolate; }
.final-title { font-size: clamp(56px, 10.5vw, 168px); margin-bottom: clamp(36px, 5vw, 64px); }
.final-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; }
.final-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* footer */
.footer { padding: 56px 0 44px; border-top: 1px solid var(--line); background: #08090a; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.footer-tag { margin-top: 14px; color: var(--text-3); font-size: 15px; }
.footer-links { display: grid; gap: 10px; justify-items: end; align-content: start; }
.footer-links a { color: var(--text-2); text-decoration: none; font: 500 14px/1.4 var(--mono); }
.footer-links a:hover { color: var(--teal); }
.footer-area { margin-top: 10px; max-width: 80ch; color: var(--text-3); font: 400 13px/1.6 var(--mono); }
.footer-fine { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); color: var(--text-3); font: 400 12px/1.7 var(--mono); }
.footer-fine a { color: var(--text-2); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .leak-grid, .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before { display: none; }
  .steps > .step { --d: 0s; }
  .step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--teal); transform-origin: left; }
  .js-reveal .step::before { transform: scaleX(0); transition: transform .9s var(--ease) .15s; }
  .js-reveal .step.is-in::before { transform: scaleX(1); }
  .step-status .pulse { top: -4px; }
  .calc { grid-template-columns: 1fr; }
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .split, .founder, .faq { grid-template-columns: 1fr; }
  .faq .section-head { position: static; }
  .founder-photo { max-width: 460px; }
  .final-row { grid-template-columns: 1fr; }
  .final-ctas { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .deal li { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .leak-grid, .pipeline, .steps, .also ul { grid-template-columns: 1fr; }
  .leak-card { min-height: 0; padding: 24px 20px; }
  .leak-card h3 { margin-top: 18px; }
  .stage { min-height: 0; padding: 22px 20px; }
  .calc-result { grid-template-columns: 44px 1fr; }
  .field label small { display: block; margin-top: 2px; }
  .perm { font-size: 12px; }
  .perm-head { padding: 12px; gap: 8px; font-size: 9.5px; letter-spacing: .06em; }
  .perm th, .perm td { padding: 10px 12px; }
  .perm td:first-child { white-space: nowrap; }
  .perm-foot { padding: 12px; font-size: 12px; }
  .gauge { min-height: 280px; }
  .gauge-ticks { display: none; }
  .toggle { display: flex; }
  .toggle button { flex: 1; justify-content: center; padding: 0 10px; font-size: 11px; letter-spacing: .04em; }
  /* phones: the photo sits above the copy, so the dam itself stays in view */
  .faq-item p { padding-right: 0; }
  .why { display: block; min-height: 0; }
  .why::before { display: none; }
  .why picture { position: relative; inset: auto; display: block; height: auto; z-index: auto; }
  .why picture::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 14, 0) 34%),
      linear-gradient(180deg, rgba(11, 13, 14, .6) 0%, rgba(11, 13, 14, 0) 24%);
  }
  .why > picture img { position: static; height: auto; aspect-ratio: 1; object-position: 46% 72%; filter: brightness(.8) contrast(1.1); }
  .why-copy { position: relative; margin-top: -56px; padding-block: 0 72px; }
  .why-credit { top: 16px; bottom: auto; left: var(--gutter); right: auto; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-items: start; }
  .final-ctas .btn { flex: 1 1 100%; }
}

@media (max-width: 379px) {
  .hero h1 { font-size: 41px; } /* keeps "Your business is" on one line */
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
}
