/* The Unwired — production stylesheet.
   Tokens first, then chrome, then page blocks, then media queries.
   Border radius is 0 everywhere. No shadows. Structure is drawn with 1px
   hairlines. Two typefaces. One green for eyebrows and chapter numerals. */

/* ---------------------------------------------------------------- tokens */
:root {
  --cut:        #0B0C0B;
  --panel:      #161814;
  --panel-hi:   #101210;
  --forest:     #0F5C4A;
  --signal:     #2E8B6E;
  --label:      #4FBF9B;
  --hairline:   #24261F;
  --hairline-hi:#2E3129;
  --hairline-lo:#171914;
  --rail:       #1A1C17;
  --bone:       #F2F1ED;
  --body:       #D6D7D1;
  --muted:      #8A8F84;
  --quiet:      #7C8177;
  --dim:        #3A3D35;
  --dim-2:      #32352E;
  --error:      #C46A5A;
  --chip-border:#1E3B33;

  --sans: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1120px;
  --gutter: 32px;
  --nav-h: 72px;

  /* driven by the one shared breathing clock in ambient.js */
  --breath: #2E8B6E;

  /* how far the hero mark over-scales at the top of the pin. Read by
     site.js, tuned down on narrow viewports so the lockup is never clipped. */
  --mark-peak: 0.62;
}

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

html {
  scroll-behavior: smooth;
  /* the nav is sticky and 72px tall: without this every in-page anchor
     lands its target underneath the bar */
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--cut);
  color: var(--bone);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--label); text-decoration: none; }
a:hover { color: var(--bone); }

h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }

button { font-family: var(--sans); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--label);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  background: var(--panel);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 18px;
  border: 1px solid var(--hairline);
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- layout */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.sec { padding: 100px 0; }
.sec--close { padding: 110px 0; }
.sec--cta { padding: 0 0 100px; }
.sec--cta-top { padding: 100px 0; }
.sec--rule { border-top: 1px solid var(--hairline); }
.sec--rule-b { border-bottom: 1px solid var(--hairline); }
.sec--flush { padding: 0; }
.sec--page-hero { padding: 88px 0 80px; border-bottom: 1px solid var(--hairline); }

/* ------------------------------------------------------------- type roles */
.mono { font-family: var(--mono); }

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

.chapter--tight { gap: 13px; }

.chapter {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.chapter__num {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--label);
}
.chapter__rule {
  width: 44px;
  height: 1px;
  background: var(--hairline-hi);
  display: block;
  flex: 0 0 auto;
}
.chapter__rule--short {
  width: 22px;
  background: var(--breath);
}
.chapter__label {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}

.sec-head { margin-bottom: 52px; max-width: 680px; }
.sec-head--tight { margin-bottom: 48px; max-width: 640px; }
.sec-head--tighter { margin-bottom: 44px; max-width: 680px; }
.sec-head--notes { margin-bottom: 40px; max-width: 640px; }
.sec-head--pricing { margin-bottom: 32px; max-width: 640px; }

h2.h-section,
.h-section {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.h-page {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 18ch;
}

.h-display {
  font-size: clamp(38px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.lede {
  margin-top: 24px;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

.sec-head p {
  margin-top: 16px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
}

.stack-note { margin-top: 20px; }
.after-block { margin-top: 28px; }

.note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 70ch;
}

/* --------------------------------------------------------------- buttons */
.btn {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-block;
  transition: background .2s ease-out, color .2s ease-out, border-color .2s ease-out;
}
.btn--solid { background: var(--forest); color: var(--bone); }
.btn--solid:hover { background: var(--signal); color: var(--bone); }
.btn--ghost { background: none; color: var(--bone); border-color: var(--hairline); }
.btn--ghost:hover { border-color: var(--bone); color: var(--bone); }

.btn-row {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.btn-row--left { gap: 14px; }

/* ------------------------------------------------------------- the lockup */
.lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
}
.lockup:hover { color: var(--bone); }
.mark {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 auto;
}
.mark__bar { display: block; height: 4px; }
.mark__bar--top { width: 24px; background: var(--bone); }
.mark__bar--bot { width: 14px; background: var(--forest); }
.wordmark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 11, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav__bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.nav__links {
  display: flex;
  gap: 24px;
  font-size: 13px;
}
.nav__links a { color: var(--quiet); transition: color .2s ease-out; }
.nav__links a:hover { color: var(--bone); }
.nav__links a[aria-current="page"] {
  color: var(--bone);
  border-bottom: 1px solid var(--bone);
  padding-bottom: 2px;
}
.nav__cta {
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 18px;
  border: 1px solid var(--bone);
  color: var(--bone);
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .2s ease-out, color .2s ease-out;
}
.nav__cta:hover { background: var(--bone); color: var(--cut); }
.nav__menu {
  display: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 9px 14px;
  border: 1px solid var(--hairline);
  color: var(--bone);
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
}

/* ---------------------------------------------------------- progress rail */
.rail {
  position: fixed;
  left: 26px;
  top: var(--nav-h);
  bottom: 0;
  width: 1px;
  background: var(--rail);
  z-index: 40;
  pointer-events: none;
}
.rail__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: var(--breath);
}
.rail-label {
  position: fixed;
  left: 16px;
  bottom: 22px;
  z-index: 40;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  background: var(--cut);
  padding: 7px 9px;
  opacity: 0;
  transition: opacity .3s ease-out;
}

/* -------------------------------------------------------- page transition */
/* Default is open (off to the right), so a JS failure or a blocked script
   can never leave a full-screen black panel over the page. */
.wipe {
  position: fixed;
  inset: 0;
  background: var(--cut);
  z-index: 300;
  transform: translateX(101%);
  pointer-events: none;
  border-right: 2px solid var(--signal);
}

/* ------------------------------------------------------------------ hero */
.hero-pin { height: 240vh; position: relative; }
.hero-sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-stage {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.hero-mark {
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-lockup { display: flex; align-items: center; }
.hero-lead {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
  flex: 0 0 auto;
}
.hero-lead span { height: 5px; width: 0; opacity: 0; display: block; }
.hero-lead__a { background: var(--bone); }
.hero-lead__b { background: var(--forest); }
.hero-word {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--quiet);
  white-space: nowrap;
}
.hero-mid {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  margin: 0 6px;
}

.hero-copy {
  margin-top: 40px;
  width: 100%;
  max-width: 900px;
  opacity: 0;
  transform: translateY(10px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 {
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 16ch;
}
.hero-copy h1 span { color: var(--quiet); }
.hero-copy p {
  margin-top: 24px;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}
.hero-copy .btn-row { justify-content: center; }

.hero-meta { position: absolute; inset: 0; pointer-events: none; }
.hero-meta span {
  position: absolute;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
}
.hero-meta__l { left: var(--gutter); top: 34px; color: var(--muted); }
.hero-meta__r { right: var(--gutter); bottom: 38px; color: var(--label); }

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue__track {
  width: 1px;
  height: 26px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
  display: block;
}
.scroll-cue__drip {
  position: absolute;
  left: 0;
  top: -26px;
  width: 1px;
  height: 26px;
  background: var(--signal);
  animation: cueDrip 1.8s ease-in-out infinite;
  display: block;
}
@keyframes cueDrip {
  0%   { top: -26px; }
  60%  { top: 26px; }
  100% { top: 26px; }
}

/* hero settled into a static block (reduced motion / no-JS fallback) */
.hero-pin.is-static { height: auto; }
.hero-pin.is-static .hero-sticky {
  position: static;
  height: auto;
  padding: 120px 0 180px;
}
.hero-pin.is-static .hero-copy { opacity: 1; transform: none; }
.hero-pin.is-static .hero-meta { opacity: 0; }
.hero-pin.is-static .scroll-cue { display: none; }

/* ------------------------------------------------------- hairline grids */
.grid {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: 1fr 1fr; }
.stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.cell {
  background: var(--cut);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cell__tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--label);
}
.cell__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cell__title--sm { font-size: 19px; }

/* the "what we won't do" pairs: tighter cell, quieter body */
.cell--limit { padding: 30px; gap: 10px; }
.cell--limit .cell__title { font-size: 17px; }
.cell--limit p { color: var(--quiet); line-height: 1.55; }
.cell p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

/* row cell: numeral / title / paragraph */
.row {
  background: var(--cut);
  padding: 32px 30px;
  display: grid;
  grid-template-columns: 40px 260px 1fr;
  gap: 28px;
  align-items: start;
}
.row__num {
  font-family: var(--mono);
  color: var(--forest);
  font-size: 13px;
  padding-top: 3px;
}
.row__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.row__title--sm { font-size: 19px; }
.row--tight { padding: 30px; }
.row p {
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ----------------------------------------------------------- cards (hover) */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--hairline);
  padding: 26px;
  background: var(--cut);
  transition: border-color .2s ease-out, transform .2s ease-out;
}
.card:hover { border-color: var(--bone); transform: translateY(-4px); }
.card h3 { margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ------------------------------------------------- 02 wired vs unwired */
.compare { background: var(--cut); padding: 40px 36px; }
.compare h3 {
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.compare--wired h3 { color: var(--muted); }
.compare--unwired h3 { color: var(--label); }
.compare ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.compare li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.5;
}
.compare li:last-child { border-bottom: 0; }
.compare--wired li { color: var(--muted); }
.compare--unwired li { color: var(--body); }

/* -------------------------------------------------------- 03 the agent run */
.run { background: var(--cut); display: flex; flex-direction: column; }
.run-step {
  padding: 26px 30px;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 20px;
  align-items: start;
  background: transparent;
  transition: background .3s ease-out;
}
.run-step:last-child { border-bottom: 0; }
.run-step__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  transition: color .3s ease-out;
}
.run-step__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--quiet);
  transition: color .3s ease-out;
}
.run-step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--quiet);
  transition: color .3s ease-out;
}
.run-step.is-on .run-step__num { color: var(--label); }
.run-step.is-on .run-step__title { color: var(--bone); }
.run-step.is-on p { color: var(--body); }
.run-step.is-current { background: var(--panel-hi); }

.log {
  background: var(--panel);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
}
.log__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
  gap: 16px;
}
.log__head span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.log__status.is-live { color: var(--label); }
.log__status.is-stop { color: var(--bone); }
.log__body {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.log__line {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s ease-out, transform .25s ease-out;
}
.log__line.is-in { opacity: 1; transform: none; }
.log__line--ok { color: var(--label); }
.log__line--hand { color: var(--bone); }

/* ---------------------------------------------------------- 07 timeline */
.timeline { display: flex; flex-direction: column; }
.tl-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}
.tl-row--3 { grid-template-columns: 110px 1fr 1fr; }
.tl-row:last-child { border-bottom: 1px solid var(--hairline); }
.tl-row__week {
  font-family: var(--mono);
  color: var(--label);
  font-size: 14px;
  padding-top: 2px;
}
.tl-row--3 .tl-row__week { color: var(--breath); }
.tl-row h3 { margin-bottom: 6px; font-size: 18px; font-weight: 700; }
.tl-row p {
  color: var(--body);
  font-size: 15px;
  line-height: 1.55;
  max-width: 60ch;
}
.tl-row__give span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--quiet);
}
.tl-row__give p {
  margin-top: 8px;
  color: var(--quiet);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ------------------------------------------------------------ 08 you own it */
.own-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 44px;
}
.own-cols p { color: var(--body); font-size: 18px; line-height: 1.6; }
.own-cards { margin-top: 52px; }
.own-accent { color: var(--label); }
.own-cards .cell { padding: 30px; gap: 8px; }

/* ---------------------------------------------------------------- CTA band */
.cta {
  background: var(--panel);
  border: 1px solid var(--hairline);
  padding: 64px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta div { max-width: 520px; }
.cta p {
  margin-top: 12px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

/* --------------------------------------------------------------- industries */
.ind-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 56px 0;
  border-bottom: 1px solid var(--hairline);
}
.ind-row__num { font-family: var(--mono); font-size: 12px; color: var(--forest); }
.ind-row h2 {
  margin: 10px 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.ind-row__fit {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--quiet);
}
.ind-row > div:last-child > p {
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
  max-width: 62ch;
}
.specifics {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.specifics li {
  color: var(--quiet);
  font-size: 14.5px;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.specifics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--quiet);
}

.say-no {
  max-width: 760px;
  border-left: 2px solid var(--forest);
  padding-left: 26px;
}
.say-no p { color: var(--body); font-size: 18px; line-height: 1.6; }

/* --------------------------------------------------------------------- work */
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--breath);
  border: 1px solid var(--chip-border);
  padding: 6px 10px;
  align-self: flex-start;
}
.case {
  border: 1px solid var(--hairline);
  background: var(--panel);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.case__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.case__intro h2 { font-size: 28px; letter-spacing: -0.02em; }
.case__intro p { color: var(--body); font-size: 16px; line-height: 1.6; }
.case__table { align-self: start; }
.case__table .kv {
  background: var(--cut);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
}
.case__table .kv span:first-child {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--quiet);
}
.case__table .kv span:last-child { font-size: 15px; color: var(--body); }

.note-row {
  background: var(--cut);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: baseline;
  transition: background .2s ease-out;
}
.note-row:hover { background: var(--panel-hi); }
.note-row__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--quiet);
}
.note-row h3 { margin-bottom: 6px; font-size: 18px; font-weight: 700; }
.note-row p {
  color: var(--quiet);
  font-size: 15px;
  line-height: 1.55;
  max-width: 64ch;
}
.coming {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.pricing-panel {
  border: 1px solid var(--hairline);
  background: var(--panel);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  max-width: 760px;
}
.pricing-panel p {
  color: var(--body);
  font-size: 16px;
  line-height: 1.6;
  max-width: 60ch;
}

/* ------------------------------------------------------------------ footer */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0;
  background: var(--cut);
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy {
  color: var(--muted);
  font-size: 13px;
  font-family: var(--mono);
}
.footer__links { display: flex; gap: 24px; font-size: 13px; flex-wrap: wrap; }
.footer__links a { color: var(--quiet); transition: color .2s ease-out; }
.footer__links a:hover { color: var(--bone); }

/* ------------------------------------------------------------------- modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 11, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.modal.is-open { display: flex; }
.modal__panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
}
.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 8px;
}
.modal__head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.modal__close {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
}
.modal__close:hover { color: var(--bone); }
.modal__intro {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  background: var(--cut);
  border: 1px solid var(--hairline);
  color: var(--bone);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { border-color: var(--label); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  width: 100%;
  border: none;
  font-family: var(--mono);
  font-size: 14px;
  padding: 14px 26px;
  background: var(--forest);
  color: var(--bone);
  cursor: pointer;
  transition: background .2s ease-out;
}
.submit:hover { background: var(--signal); }
.form-status {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 16px;
  display: none;
  color: var(--label);
}
.form-status.is-shown { display: block; }
.form-status.is-error { color: var(--error); }
.modal__foot {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------------------------------------ reveal + sweep */
.pre-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease-out, transform .45s ease-out;
}
.pre-reveal.is-revealed { opacity: 1; transform: none; }

.sweeping { position: relative; overflow: hidden; }
.sweeping::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  opacity: .9;
  background: linear-gradient(90deg,
    rgba(46, 139, 110, 0) 0%,
    rgba(46, 139, 110, 0.14) 45%,
    rgba(46, 139, 110, 0) 100%);
  transform: translateX(-100%);
  animation: sweep .85s cubic-bezier(.22, .61, .36, 1) forwards;
}
@keyframes sweep {
  to { transform: translateX(100%); }
}

/* elements riding the one shared breathing clock */
.breathe { color: var(--breath); }
.breathe-bg { background: var(--breath); }

/* ----------------------------------------------------------- media queries */
@media (max-width: 1000px) {
  .rail, .rail-label { display: none; }
}

@media (max-width: 940px) {
  .nav__menu { display: inline-block; }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cut);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 20px 16px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    padding: 13px 0;
    font-size: 15px;
    border-top: 1px solid var(--hairline-lo);
  }
  .nav__cta { display: none; }
  .nav__links .nav__cta-mobile {
    display: block;
    width: 100%;
    text-align: left;
    padding: 13px 0;
    margin: 0;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--bone);
    background: none;
    border: 0;
    border-top: 1px solid var(--hairline-lo);
    cursor: pointer;
  }
}
@media (min-width: 941px) {
  .nav__links .nav__cta-mobile { display: none; }
}

@media (max-width: 860px) {
  .grid--3,
  .grid--2,
  .cards,
  .own-cols,
  .case,
  .ind-row,
  .row,
  .tl-row,
  .tl-row--3,
  .note-row,
  .case__table .kv {
    grid-template-columns: 1fr;
  }
  .cards { gap: 20px; }
  .own-cols { gap: 24px; }
  .case { gap: 32px; }
  .ind-row { gap: 20px; }
  .row { gap: 12px; }
  .tl-row, .tl-row--3 { gap: 12px; }
  .note-row { gap: 10px; }
  .case__table .kv { gap: 6px; }
  .run-step { grid-template-columns: 30px 1fr; }
  .cta { padding: 48px 36px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --mark-peak: 0.45; }
  .sec, .sec--close, .sec--cta-top { padding: 64px 0; }
  .sec--cta { padding: 0 0 64px; }
  .sec--page-hero { padding: 64px 0 56px; }
  .cta { padding: 36px 24px; }
  .case { padding: 36px 24px; }
  .pricing-panel { padding: 32px 24px; }
  .modal__panel { padding: 28px 22px; }
  .cell { padding: 26px 22px; }
  .row { padding: 26px 22px; }
  .compare { padding: 30px 24px; }
  .run-step { padding: 22px 22px; }
  .log { padding: 24px 22px; }
  .note-row { padding: 24px 22px; }
  .ind-row { padding: 40px 0; }
  .hero-word { font-size: 30px; }
  .hero-meta { display: none; }
  .hero-copy { margin-top: 28px; }
  .hero-copy h1 { font-size: clamp(28px, 8vw, 34px); max-width: 22ch; }
  .footer .wrap { justify-content: flex-start; }
  .h-page { font-size: clamp(28px, 8vw, 34px); max-width: 24ch; }
  .h-display { font-size: clamp(30px, 9vw, 38px); }
}

@media (max-width: 420px) {
  :root { --mark-peak: 0.18; }
  .hero-word { font-size: 26px; }
  .btn { padding: 13px 20px; font-size: 13px; }
  .scroll-cue { left: 20px; }
}

/* short viewports: the hero has to fit without clipping */
@media (max-height: 620px) {
  .hero-copy { margin-top: 22px; }
  .hero-copy .btn-row { margin-top: 22px; }
  .hero-copy p { margin-top: 16px; font-size: 15px; }
  .hero-copy .eyebrow { margin-bottom: 14px; }
  .scroll-cue { display: none; }
}

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .pre-reveal { opacity: 1; transform: none; }
  .scroll-cue { display: none; }
  .wipe { display: none; }
  .card:hover { transform: none; }
}
