/* =========================================================
   Aethos — landing page
   Modern editorial SaaS. Dark ink/navy, electric teal, warm amber.
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --ink-900: #060b16;
  --ink-850: #08101f;
  --ink-800: #0a1424;
  --ink-700: #0e1a2e;
  --ink-600: #132340;

  --teal: #2ee6c5;
  --teal-deep: #12a892;
  --amber: #ffb35c;
  --blue: #7fb2ff;

  --text: #e9eff8;
  --text-soft: #c3d0e2;
  --muted: #93a5bf;
  --muted-dim: #6f819a;

  --line: rgba(150, 178, 214, 0.14);
  --line-strong: rgba(150, 178, 214, 0.26);
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);

  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-editorial: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --shell: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --radius: 16px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(46, 230, 197, 0.28); color: #fff; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  /* fixed, not absolute: an absolutely positioned skip link anchors to the
     document, so it stays off-screen when the page is already scrolled. */
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -130%);
  z-index: 200;
  background: var(--teal);
  color: #04241f;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0 0 10px 10px;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); outline-offset: 0; }

/* ---------- page texture ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(46, 230, 197, 0.09), transparent 42%),
    radial-gradient(circle at 82% 6%, rgba(255, 179, 92, 0.07), transparent 40%),
    radial-gradient(circle at 60% 88%, rgba(127, 178, 255, 0.06), transparent 46%);
}

/* ---------- shell ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { position: relative; z-index: 2; }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 22, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header.is-stuck::before { opacity: 1; }

.nav-shell {
  position: relative;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* wordmark — the supplied Aethos logo, keyed off its fabric background */
.wordmark {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0;
}
.wordmark__img {
  display: block;
  width: auto;
  height: auto;
  transition: transform 0.45s var(--ease-out), filter 0.45s var(--ease-out);
}
.wordmark--header .wordmark__img {
  height: clamp(30px, 3.6vw, 38px);
  filter: drop-shadow(0 6px 18px rgba(4, 10, 26, 0.75));
}
.wordmark--footer .wordmark__img {
  height: auto;
  width: clamp(196px, 24vw, 252px);
  margin-bottom: 1.15rem;
  opacity: 0.94;
}
.wordmark:hover .wordmark__img,
.wordmark:focus-visible .wordmark__img {
  transform: translateY(-1px) scale(1.015);
  filter: drop-shadow(0 8px 22px rgba(78, 140, 255, 0.35));
}

/* nav */
.site-nav { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 2rem); }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.6vw, 1.6rem);
}
.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.2rem;
  font-size: 0.935rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.25s var(--ease);
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0.2rem; right: 0.2rem; bottom: 0.24rem;
  height: 1.5px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.site-nav__list a:hover,
.site-nav__list a.is-active { color: var(--text); }
.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after,
.site-nav__list a.is-active::after { transform: scaleX(1); }

/* nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.85rem 0.5rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav-toggle:hover { background: var(--surface-2); border-color: var(--line-strong); }
.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.32s var(--ease-out), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --btn-pad: 0.72rem 1.3rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: var(--btn-pad);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--lg { --btn-pad: 0.95rem 1.7rem; font-size: 1rem; }
.btn--sm { --btn-pad: 0.56rem 1.05rem; font-size: 0.875rem; }

.btn__arrow {
  width: 19px; height: 19px;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* The teal fill makes a teal focus ring hard to see; use a near-white ring. */
.btn--primary:focus-visible {
  outline-color: #eafffb;
  outline-width: 3px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--teal) 0%, #48e9d4 44%, #7defcb 100%);
  color: #032620;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 10px 30px -12px rgba(46, 230, 197, 0.72);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 18px 40px -14px rgba(46, 230, 197, 0.85);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--surface-2);
  border-color: rgba(46, 230, 197, 0.5);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 179, 92, 0.45);
  color: var(--amber);
}
.btn--outline:hover {
  background: rgba(255, 179, 92, 0.1);
  border-color: var(--amber);
  transform: translateY(-2px);
}

/* ---------- copy email address ---------- */
/* Without JavaScript the button cannot copy anything, and the address is
   already printed as selectable text, so it is removed rather than left dead. */
html:not(.js) .copy-email { display: none; }

.copy-email { white-space: normal; text-align: left; min-height: 44px; }
.copy-email__icon { width: 18px; height: 18px; flex: none; }
.copy-email__icon-check { display: none; }
.copy-email__label { transition: color 0.25s var(--ease); }

.copy-email.is-copied {
  border-color: rgba(46, 230, 197, 0.55);
  background: rgba(46, 230, 197, 0.09);
  color: var(--teal);
}
.copy-email.is-copied .copy-email__icon-copy { display: none; }
.copy-email.is-copied .copy-email__icon-check { display: inline; }

.copy-email.is-failed {
  border-color: rgba(255, 179, 92, 0.6);
  background: rgba(255, 179, 92, 0.1);
  color: var(--amber);
}

@media (prefers-reduced-motion: reduce) {
  .copy-email { transition: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -22rem; left: 50%;
  width: min(1400px, 170vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 34% 42%, rgba(46, 230, 197, 0.16), transparent 46%),
    radial-gradient(circle at 66% 38%, rgba(255, 179, 92, 0.11), transparent 44%),
    radial-gradient(circle at 50% 60%, rgba(127, 178, 255, 0.09), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  /* minmax(0, 1fr), not 1fr: the inline SVG reports a wide intrinsic width,
     which otherwise sets the track's automatic minimum and pushes the hero
     wider than the viewport. */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.hero__grid > * { min-width: 0; }

/* --- brand mark above the hero copy ------------------------------------
   The supplied logo, presented as a masthead: the full lockup with its
   tagline at a size the tagline can still be read at, a soft blue glow
   behind it, and a hairline that draws itself in on load — the same
   teal-to-amber gradient the nav underline uses. */
.hero__brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  margin-bottom: clamp(1.75rem, 4.5vw, 3.25rem);
}
.hero__brand::before {
  content: "";
  position: absolute;
  left: -14%;
  top: 50%;
  width: min(620px, 82vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(
    circle at 42% 50%,
    rgba(78, 140, 255, 0.3),
    rgba(46, 230, 197, 0.1) 46%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}
.hero__lockup {
  display: block;
  width: clamp(230px, 30vw, 392px);
  height: auto;
  filter: drop-shadow(0 18px 38px rgba(4, 12, 34, 0.85));
}
.hero__brand-rule {
  flex: 1 1 auto;
  max-width: 22rem;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), rgba(255, 179, 92, 0.55), transparent);
  transform-origin: left center;
  animation: brand-rule 1.15s var(--ease-out) 0.3s both;
}
@keyframes brand-rule {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
/* On a narrow screen the lockup fills the line, so the hairline would only
   be a stub; drop it rather than leave a stray tick beside the logo. The
   lockup itself gets more room so the tagline under the wordmark stays
   readable on a phone. */
@media (max-width: 600px) {
  .hero__brand-rule { display: none; }
  .hero__lockup { width: min(100%, 306px); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.42rem 0.95rem 0.42rem 0.7rem;
  margin-bottom: 1.5rem;
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(46, 230, 197, 0.5);
  animation: pulse 2.8s var(--ease) infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 230, 197, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(46, 230, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 197, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.1vw, 4.15rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: #fff;
  margin-bottom: 1.4rem;
}
.hero__title em {
  display: block;
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--teal) 8%, #9df3e2 42%, var(--amber) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

.hero__lede {
  font-size: clamp(1.02rem, 1.55vw, 1.14rem);
  line-height: 1.72;
  color: var(--text-soft);
  max-width: 34rem;
  margin-bottom: 1rem;
}
.hero__lede strong { color: var(--text); font-weight: 600; }
.hero__lede--tight { margin-bottom: 0; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 2.5rem;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}
.hero__fact dt {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 0.3rem;
}
.hero__fact dd {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.45;
}

/* ---------- hero diagram ---------- */
/* The inline SVG's own text gives it an intrinsic min-content width wider than
   a phone viewport, which used to stretch the single-column hero grid and clip
   the headline against .hero's overflow:hidden. min-width:0 lets the track
   shrink and the diagram scale down instead. */
.diagram { margin: 0; min-width: 0; }
.diagram__frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 22% 20%, rgba(46, 230, 197, 0.07), transparent 58%),
    linear-gradient(160deg, rgba(19, 35, 64, 0.72), rgba(6, 11, 22, 0.85));
  padding: clamp(0.75rem, 2vw, 1.35rem);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}
.diagram__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 42%, rgba(255, 255, 255, 0.045) 50%, transparent 58%);
  transform: translateX(-100%);
  animation: sweep 9s var(--ease) 1.4s infinite;
  pointer-events: none;
}
@keyframes sweep {
  0%   { transform: translateX(-100%); }
  45%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.diagram__svg { width: 100%; height: auto; }

.diagram__grid { stroke-dasharray: 2 7; }

/* scattered field */
.field__item { animation: drift 9s var(--ease) var(--d) infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}

/* lanes draw themselves */
.lane {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 2.1s var(--ease-out) forwards;
}
.lane:nth-child(1) { animation-delay: 0.35s; }
.lane:nth-child(2) { animation-delay: 0.5s; }
.lane:nth-child(3) { animation-delay: 0.65s; }
.lane:nth-child(4) { animation-delay: 0.8s; }
.lane:nth-child(5) { animation-delay: 0.95s; }
.lane:nth-child(6) { animation-delay: 1.1s; }
.lane:nth-child(7) { animation-delay: 1.25s; }
.lane:nth-child(8) { animation-delay: 1.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* outcomes arrive */
.outcome {
  animation: arrive 0.9s var(--ease-out) both;
  animation-delay: calc(1.5s + var(--i) * 0.22s);
}
@keyframes arrive {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* diagram tags */
.diagram__tag {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-dim);
  pointer-events: none;
  white-space: nowrap;
}
.diagram__tag--a { left: 3%;  bottom: 5%; }
.diagram__tag--b { left: 44%; bottom: 5%; transform: translateX(-50%); }
.diagram__tag--c { right: 3%; bottom: 5%; color: rgba(46, 230, 197, 0.75); }

/* ---------- trust strip ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip__item {
  padding: clamp(1.3rem, 2.6vw, 1.9rem) clamp(1rem, 2.4vw, 1.9rem);
  border-left: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
  align-content: start;
}
.strip__item:first-child { border-left: 0; padding-left: 0; }
.strip__k {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.005em;
}
.strip__v {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.section--raised {
  background: linear-gradient(180deg, transparent, rgba(19, 35, 64, 0.35) 18%, rgba(19, 35, 64, 0.35) 82%, transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: end;
}
.section__head--split .section__lede { max-width: 30rem; }

.section__label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
}
.section__label::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1.5px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 0.7rem;
  opacity: 0.7;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.1vw, 3rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.032em;
  color: #fff;
  text-wrap: balance;
}
.section__lede {
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.72;
  color: var(--muted);
  margin-top: 1.1rem;
  max-width: 40rem;
}
.section__note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.4rem 1.6rem;
  border-left: 2px solid rgba(46, 230, 197, 0.55);
  background: linear-gradient(90deg, rgba(46, 230, 197, 0.06), transparent 70%);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 52rem;
}
.section__note strong { color: #fff; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(19, 35, 64, 0.55), rgba(8, 16, 31, 0.75));
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 197, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 230, 197, 0.3);
  box-shadow: 0 30px 60px -40px rgba(46, 230, 197, 0.55);
}
.step:hover::before { opacity: 1; }

.step__index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted-dim);
  margin-bottom: 1.1rem;
}
.step__art { width: 76px; height: 76px; margin-bottom: 1.2rem; opacity: 0.95; }
.step__art svg { width: 100%; height: 100%; }
.step__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 0.7rem;
}
.step__body {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 1.1rem;
}
.ticks { display: grid; gap: 0.5rem; }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.48em;
  width: 12px; height: 7px;
  border-left: 1.6px solid var(--teal);
  border-bottom: 1.6px solid var(--teal);
  transform: rotate(-45deg) translateY(-2px);
}

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
.feature {
  position: relative;
  padding: clamp(1.5rem, 2.8vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    transform 0.4s var(--ease-out);
}
.feature:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.feature__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 1.15rem;
  color: var(--teal);
  background: linear-gradient(150deg, rgba(46, 230, 197, 0.16), rgba(46, 230, 197, 0.04));
  border: 1px solid rgba(46, 230, 197, 0.24);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature__title {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: #fff;
  margin-bottom: 0.6rem;
}
.feature__body {
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--muted);
}
.feature__aside {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--amber);
}

/* ---------- use cases ---------- */
.usecases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.usecase {
  position: relative;
  padding: clamp(1.7rem, 3.2vw, 2.6rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(19, 35, 64, 0.6), rgba(8, 16, 31, 0.8));
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease-out);
}
.usecase::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--teal), rgba(46, 230, 197, 0));
}
.usecase--alt::before { background: linear-gradient(180deg, var(--amber), rgba(255, 179, 92, 0)); }
.usecase:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.usecase__role {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}
.usecase--alt .usecase__role { color: var(--amber); }
.usecase__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.028em;
  color: #fff;
  margin-bottom: 0.9rem;
  text-wrap: balance;
}
.usecase__body {
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--text-soft);
  margin-bottom: 1.4rem;
  max-width: 36rem;
}
.usecase__list { display: grid; gap: 0.6rem; max-width: 34rem; }
.usecase__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}
.usecase__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-deep);
}
.usecase--alt .usecase__list li::before { background: rgba(255, 179, 92, 0.75); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 35, 64, 0.5), rgba(6, 11, 22, 0.9));
  overflow: hidden;
  text-align: center;
}
.cta__glow {
  position: absolute;
  left: 50%; top: 50%;
  width: min(1000px, 130vw);
  aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 40% 50%, rgba(46, 230, 197, 0.16), transparent 55%),
    radial-gradient(ellipse at 62% 46%, rgba(255, 179, 92, 0.12), transparent 52%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; }
/* the A mark signs off the closing section */
.cta__mark {
  display: block;
  width: clamp(48px, 6vw, 62px);
  height: auto;
  margin: 0 auto 1.15rem;
  filter: drop-shadow(0 10px 26px rgba(78, 140, 255, 0.35));
}
.cta .section__label::before { display: none; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.034em;
  color: #fff;
  max-width: 30rem;
  margin: 0 auto 1.2rem;
  text-wrap: balance;
}
.cta__body {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 38rem;
  margin: 0 auto;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin: 2.2rem 0 1.4rem;
}
.cta__fineprint {
  font-size: 0.84rem;
  color: var(--muted-dim);
  max-width: 34rem;
  margin: 0 auto;
  line-height: 1.6;
}
.cta__mail {
  color: var(--teal);
  border-bottom: 1px solid color-mix(in srgb, var(--teal) 45%, transparent);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
  word-break: break-word;
}
.cta__mail:hover,
.cta__mail:focus-visible { color: var(--text); border-bottom-color: currentColor; }
/* On the compose page the address in the fineprint is not a link (the
   reader is already on the email page), so it needs its own emphasis. */
.cta__fineprint strong { color: var(--text-soft); font-weight: 600; word-break: break-word; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); }
.section__head--sticky { margin-bottom: 0; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.3rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color 0.25s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--teal); }
.faq__item[open] .faq__q { color: #fff; }

.faq__mark {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
  margin-top: 0.15rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    transform 0.4s var(--ease-out);
}
.faq__mark::before,
.faq__mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 1.6px;
  background: var(--teal);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out), opacity 0.25s var(--ease);
}
.faq__mark::after { transform: translate(-50%, -50%) rotate(90deg); }
/* Open state must read as a minus. Rotate only the vertical bar away —
   rotating the whole circle would leave a vertical stroke showing. */
.faq__item[open] .faq__mark {
  background: rgba(46, 230, 197, 0.14);
  border-color: rgba(46, 230, 197, 0.5);
  transform: scale(1.06);
}
.faq__item[open] .faq__mark::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.faq__a {
  padding: 0 2.6rem 1.5rem 0.25rem;
  animation: faqIn 0.42s var(--ease-out) both;
}
.faq__a p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 44rem;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  background: var(--ink-900);
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.footer__brand { max-width: 30rem; }
.wordmark--footer { margin-bottom: 0.4rem; }
.footer__tagline {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--muted);
}
.footer__head {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 1rem;
}
.footer__col ul { display: grid; gap: 0.55rem; }
.footer__col a {
  font-size: 0.93rem;
  color: var(--text-soft);
  transition: color 0.25s var(--ease), padding-left 0.3s var(--ease-out);
  display: inline-block;
}
.footer__col a:hover { color: var(--teal); padding-left: 4px; }
.footer__col--note p {
  font-size: 0.93rem;
  line-height: 1.72;
  color: var(--muted);
  max-width: 32rem;
}

.footer__base {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}
.footer__base p { font-size: 0.83rem; color: var(--muted-dim); }
.footer__legal { max-width: 30rem; line-height: 1.6; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background: rgba(10, 20, 36, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
    /* Four destinations plus the button: keep the panel scrollable rather
       than taller than a short landscape phone viewport. */
    max-height: calc(100dvh - var(--nav-h) - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    transform-origin: top center;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), transform 0.32s var(--ease-out),
      visibility 0.28s var(--ease);
  }
  .site-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a {
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
  }
  .site-nav__list a::after { display: none; }
  .site-nav__list a:hover,
  .site-nav__list a:focus-visible { background: var(--surface-2); }
  /* Comfortable touch targets in the mobile panel. */
  .site-nav .btn { --btn-pad: 0.9rem 1.3rem; width: 100%; margin-top: 0.35rem; }
  .site-nav__list a { min-height: 48px; display: flex; align-items: center; }
  .nav-toggle { --toggle-pad: 0.72rem 1rem 0.72rem 0.85rem; min-height: 44px; padding: var(--toggle-pad); }

  .strip__item {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-right: 0;
  }
  .strip__item:first-child { border-top: 0; }

  .diagram__tag--b { display: none; }
  .faq__grid { gap: 2rem; }
  .faq__a { padding-right: 0.5rem; }
}

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:last-child { grid-column: span 2; }
  .features { grid-template-columns: repeat(2, 1fr); }
  /* Lead card runs full width, then two tidy rows of two. */
  .feature--wide { grid-column: span 2; }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.5fr 1fr; }
  .footer__col--note { grid-column: span 2; }
}

@media (min-width: 900px) {
  .section__head--split {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
  /* 6 tracks, always fully filled: 4+2 then 2+2+2. */
  .features { grid-template-columns: repeat(6, 1fr); }
  .feature { grid-column: span 2; }
  .feature--wide { grid-column: span 4; }

  .faq__grid { grid-template-columns: 0.92fr 1.08fr; align-items: start; }
  .section__head--sticky { position: sticky; top: calc(var(--nav-h) + 2.5rem); }

  .footer__grid { grid-template-columns: 1.6fr 0.8fr 1.1fr; }
  .footer__col--note { grid-column: auto; }
}

@media (min-width: 1040px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:last-child { grid-column: auto; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal { opacity: 1; transform: none; }
  .lane { stroke-dashoffset: 0 !important; }
  .outcome { opacity: 1; transform: none; }
  .field__item { transform: none; }
  .diagram__frame::after { display: none; }
  .eyebrow__dot { animation: none; }
  /* the hairline stays drawn, it just does not draw itself */
  .hero__brand-rule { animation: none; }
}

/* =========================================================
   Multi-page additions
   Same tokens, same language — new building blocks shared by
   the interior pages (How it works, Who it helps, About).
   ========================================================= */

/* ---------- current page in the nav ---------- */
.site-nav__list a[aria-current="page"],
.site-nav__list a[aria-current="page"]:hover { color: #fff; }
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- interior page hero ---------- */
.page-hero {
  position: relative;
  padding: clamp(2.75rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.page-hero__glow {
  position: absolute;
  top: -26rem; left: 50%;
  width: min(1200px, 150vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 38% 44%, rgba(46, 230, 197, 0.13), transparent 46%),
    radial-gradient(circle at 68% 40%, rgba(255, 179, 92, 0.09), transparent 44%);
  pointer-events: none;
  z-index: 0;
}
.page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.page-hero__grid > * { min-width: 0; }
.page-hero__copy { max-width: 42rem; }

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 1.15rem;
}
/* Inline padding only: it grows the tap target past the 24px minimum without
   changing the line box, so the breadcrumb row keeps its rhythm. */
.crumbs a {
  color: var(--muted);
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}
.crumbs a:hover, .crumbs a:focus-visible { color: var(--teal); }
.crumbs__sep { opacity: 0.5; }

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.034em;
  color: #fff;
  text-wrap: balance;
}
.page-hero__title em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--teal) 8%, #9df3e2 42%, var(--amber) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.page-hero__lede {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.72;
  color: var(--text-soft);
  margin-top: 1.35rem;
  max-width: 40rem;
}
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Short connectors draw themselves over a shorter run than the hero lanes. */
.lane--short { stroke-dasharray: 110; stroke-dashoffset: 110; }

/* ---------- motif: the page's own artwork plate ---------- */
/* Shares the hero diagram's frame so the interior pages read as the
   same family rather than a second visual language. */
.motif { margin: 0; min-width: 0; }
.motif__svg { width: 100%; height: auto; }
.motif__caption {
  margin-top: 0.9rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted-dim);
  max-width: 34rem;
}

/* ---------- symptoms: where the week leaks ---------- */
.symptoms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.symptom {
  position: relative;
  padding: clamp(1.35rem, 2.4vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  gap: 0.55rem;
  align-content: start;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    transform 0.4s var(--ease-out);
}
.symptom:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.symptom__glyph { width: 30px; height: 30px; color: var(--amber); margin-bottom: 0.35rem; }
.symptom__glyph svg { width: 100%; height: 100%; }
.symptom__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
}
.symptom__body { font-size: 0.91rem; line-height: 1.65; color: var(--muted); }

/* ---------- the shift: carried in one head -> visible to the firm ---------- */
.shift {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: stretch;
}
.shift__col {
  padding: clamp(1.5rem, 3vw, 2.15rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(19, 35, 64, 0.5), rgba(8, 16, 31, 0.78));
}
.shift__col--after {
  border-color: rgba(46, 230, 197, 0.3);
  background: linear-gradient(160deg, rgba(46, 230, 197, 0.075), rgba(8, 16, 31, 0.82));
}
.shift__k {
  font-family: var(--font-display);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 1.1rem;
}
.shift__col--after .shift__k { color: var(--teal); }
.shift__list { display: grid; gap: 0.8rem; }
.shift__list li {
  position: relative;
  padding-left: 1.55rem;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--text-soft);
}
.shift__list li::before {
  content: "";
  position: absolute;
  left: 0.1rem; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 179, 92, 0.62);
}
.shift__col--after .shift__list li::before {
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 230, 197, 0.16);
}
.shift__arrow { display: grid; place-items: center; color: var(--teal); }
.shift__arrow svg { width: 26px; height: 26px; transform: rotate(90deg); opacity: 0.85; }

/* ---------- timeline: the first thirty days ---------- */
.timeline { display: grid; border-top: 1px solid var(--line); }
.timeline__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.4rem;
  padding: clamp(1.2rem, 2.4vw, 1.6rem) 0;
  border-bottom: 1px solid var(--line);
}
.timeline__k {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
  padding-top: 0.28rem;
}
.timeline__t {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: #fff;
  margin-bottom: 0.45rem;
}
.timeline__b { font-size: 0.95rem; line-height: 1.7; color: var(--muted); max-width: 46rem; }

/* ---------- principles ---------- */
.principles { display: grid; gap: 1.6rem; counter-reset: principle; }
.principle { position: relative; padding-left: 3.15rem; }
.principle::before {
  counter-increment: principle;
  content: counter(principle, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.1rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.principle__t {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.5rem;
}
.principle__b { font-size: 0.96rem; line-height: 1.72; color: var(--muted); max-width: 46rem; }

/* ---------- fit: worth your time, honestly not our work ---------- */
.fit { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
.fit__col {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.fit__col--no { border-style: dashed; background: transparent; }
.fit__k {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}
.fit__col--no .fit__k { color: var(--muted-dim); }
.fit__list { display: grid; gap: 0.9rem; }
.fit__list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.66;
  color: var(--text-soft);
}
.fit__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 12px; height: 7px;
  border-left: 1.6px solid var(--teal);
  border-bottom: 1.6px solid var(--teal);
  transform: rotate(-45deg) translateY(-2px);
}
.fit__col--no .fit__list li::before {
  border: 0;
  width: 11px; height: 1.6px;
  top: 0.85em;
  background: var(--muted-dim);
  transform: none;
}

/* ---------- next: cross-page hand-off ---------- */
.next { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
.next--spaced { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.next__card {
  position: relative;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: clamp(1.5rem, 2.8vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(19, 35, 64, 0.5), rgba(8, 16, 31, 0.78));
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.next__card:hover,
.next__card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(46, 230, 197, 0.34);
  box-shadow: 0 30px 60px -42px rgba(46, 230, 197, 0.7);
}
.next__k {
  font-family: var(--font-display);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.next__t {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.022em;
  color: #fff;
}
.next__b { font-size: 0.93rem; line-height: 1.65; color: var(--muted); }
.next__go {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--teal);
}
.next__go svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.next__card:hover .next__go svg,
.next__card:focus-visible .next__go svg { transform: translateX(4px); }

/* ---------- statement band ---------- */
.band {
  position: relative;
  padding: clamp(2.5rem, 5vw, 3.6rem) clamp(1.4rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(46, 230, 197, 0.22);
  background: linear-gradient(120deg, rgba(46, 230, 197, 0.08), rgba(255, 179, 92, 0.05) 62%, transparent);
  overflow: hidden;
  text-align: center;
}
.band__t {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.028em;
  color: #fff;
  max-width: 44rem;
  margin: 0 auto;
  text-wrap: balance;
}
.band__t em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
}
.band__b {
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--muted);
  max-width: 40rem;
  margin: 1.05rem auto 0;
}

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 2.5rem); align-items: start; }
.contact__card {
  padding: clamp(1.6rem, 3vw, 2.3rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 179, 92, 0.3);
  background: linear-gradient(160deg, rgba(255, 179, 92, 0.07), rgba(8, 16, 31, 0.82));
}
.contact__k {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.85rem;
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  word-break: break-word;
  transition: color 0.25s var(--ease);
}
.contact__mail:hover, .contact__mail:focus-visible { color: var(--teal); }
.contact__mail svg { width: 20px; height: 20px; flex: none; color: var(--amber); }
.contact__h {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 1.15rem;
}
.contact__actions { margin-top: 1.3rem; }
.contact__note {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted-dim);
  margin-top: 1.15rem;
  max-width: 26rem;
}
.contact__note em { font-style: normal; color: var(--text-soft); }
.contact__list { display: grid; gap: 1.05rem; }
.contact__list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--text-soft);
}
.contact__list li::before {
  content: "";
  position: absolute;
  left: 0.15rem; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-deep);
}
.contact__list strong { color: #fff; font-weight: 600; }

/* ---------- compose (email.html) ---------- */
/* The one page on the site with real inputs. Same tokens as the contact
   card, opened up into a form-shaped panel: it prepares a message and
   hands it to the visitor's own mail client, so the panel reads as a
   workbench rather than a sign-up box. */
.compose {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: start;
}

.compose__card {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(46, 230, 197, 0.26);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(46, 230, 197, 0.07), transparent 58%),
    linear-gradient(160deg, rgba(19, 35, 64, 0.72), rgba(8, 16, 31, 0.9));
  box-shadow: 0 40px 90px -55px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.compose__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.35rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.compose__glyph { width: 30px; height: 30px; flex: none; color: var(--teal); }
.compose__glyph svg { width: 100%; height: 100%; }
.compose__k {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.2rem;
}
.compose__h {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.compose__fields { display: grid; gap: 1.25rem; }
.compose__field { display: grid; gap: 0.5rem; min-width: 0; }

.compose__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.compose__hint {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted-dim);
}

.compose__input,
.compose__area {
  width: 100%;
  font: inherit;
  /* 1rem floor: anything smaller makes iOS Safari zoom on focus. */
  font-size: 1rem;
  color: var(--text);
  background: rgba(6, 11, 22, 0.62);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  min-height: 48px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.compose__input:hover,
.compose__area:hover { border-color: rgba(150, 178, 214, 0.38); }
.compose__input:focus,
.compose__area:focus {
  border-color: rgba(46, 230, 197, 0.7);
  background: rgba(6, 11, 22, 0.85);
}
/* The global :focus-visible outline is deliberately left in place, so the
   focus ring matches every other control on the site. */
.compose__input[readonly] {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
  cursor: default;
}
.compose__area {
  min-height: 11rem;
  line-height: 1.65;
  resize: vertical;
}
.compose__area::placeholder { color: var(--muted-dim); }

.compose__to { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: stretch; }
.compose__to .compose__input { flex: 1 1 15rem; }
.compose__to .copy-email { flex: 0 1 auto; }

.compose__sub {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted-dim);
  max-width: 34rem;
}
/* Same treatment as the contact note: <em> names a control, it does not
   italicise prose. */
.compose__sub em { font-style: normal; color: var(--text-soft); }

.compose__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.compose__note {
  margin-top: 1.3rem;
  padding: 1.1rem 1.25rem;
  border-left: 2px solid rgba(255, 179, 92, 0.55);
  background: linear-gradient(90deg, rgba(255, 179, 92, 0.07), transparent 72%);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}
.compose__note strong { color: var(--text); font-weight: 600; }
.compose__note em { font-style: normal; color: var(--text-soft); }

.compose__side { display: grid; gap: clamp(1.1rem, 2.4vw, 1.5rem); align-content: start; min-width: 0; }
.compose__side-h {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.compose__side-note {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted-dim);
  padding-top: clamp(1.1rem, 2.4vw, 1.5rem);
  border-top: 1px solid var(--line);
}
.compose__side-note strong { color: var(--text-soft); font-weight: 600; word-break: break-word; }

@media (min-width: 900px) {
  .compose { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  /* The guidance column trails the panel it explains. */
  .compose__side { position: sticky; top: calc(var(--nav-h) + 2.5rem); }
}

@media (max-width: 480px) {
  .compose__to .compose__input,
  .compose__to .copy-email { flex: 1 1 100%; }
}

@media print {
  .compose__card { border-color: #ccc; background: none; }
  .compose__input, .compose__area { background: #fff; color: #000; border-color: #ccc; }
  .compose__note { border-left-color: #999; background: none; color: #222; }
  .compose__side { position: static; }
}

/* ---------- multi-page responsive ---------- */
@media (min-width: 640px) {
  .symptoms { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .timeline__item { grid-template-columns: 11rem 1fr; }
}

@media (min-width: 820px) {
  .fit { grid-template-columns: 1fr 1fr; }
  .next { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .shift { grid-template-columns: 1fr auto 1fr; }
  .shift__arrow svg { transform: none; }
  .contact { grid-template-columns: 1.02fr 0.98fr; }
}

@media (min-width: 1040px) {
  /* Four short pain cards read best when they sit as one row; the measure is
     tight, so the padding and body size step down with the column count. */
  .symptoms { grid-template-columns: repeat(4, 1fr); }
  .symptom { padding: 1.4rem 1.25rem; }
  .symptom__body { font-size: 0.89rem; }
  .page-hero__grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

@media print {
  .site-header, .grain, .hero__glow, .cta__glow, .page-hero__glow, .skip-link { display: none; }
  .next, .motif, .diagram { display: none; }
  body { background: #fff; color: #000; }
  .section, .page-hero, .cta { padding: 1.5rem 0; }
  .section__title, .hero__title, .page-hero__title, .cta__title, .band__t, .step__title,
  .feature__title, .usecase__title, .principle__t, .timeline__t, .symptom__title { color: #000; }
  .section__lede, .section__note, .feature__body, .step__body, .usecase__body, .principle__b,
  .timeline__b, .symptom__body, .shift__list li, .fit__list li, .contact__list li { color: #222; }
  .shift__col, .fit__col, .contact__card, .step, .feature, .usecase, .symptom { border-color: #ccc; background: none; }
  a[href^="mailto"], .cta__mail { color: #000; }
  /* A copy button cannot do anything on paper; the address itself still prints. */
  .copy-email { display: none; }
}
