/* Atlas AI Solutions: the Contour look (Nov 2026 rebrand).
   One stylesheet for every page. Slate ink on warm stone, a serif for the
   voice, a quiet sans for everything else, and contour lines as the only
   decoration. The old site.css stays for the legacy /samples and
   /agent-demos pages and is not used by any page in the navigation. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/newsreader.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter.woff2) format("woff2");
}

:root {
  --ink: #1F2A2E;
  --ink-soft: #46535A;
  --stone: #F6F4EF;
  --stone-deep: #ECE8DF;
  --paper: #FFFFFF;
  --rule: #D9D3C7;
  --edge: #8A8477;      /* the outline of a field or quiet button: 3:1 or better on white and stone */
  --bronze: #75664B;
  --on-ink: #F6F4EF;
  --on-ink-soft: #B9C0BD;
  --bad: #9C3B24;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --section: clamp(72px, 10vw, 132px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--bronze); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible, footer :focus-visible { outline-color: var(--on-ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.14; }
h3 { font-size: 1.4rem; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---- Labels and buttons ------------------------------------------------- */
.label {
  font: 600 0.75rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 1.4rem;
}
.on-ink .label { color: var(--on-ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.35em;
  font: 500 1rem/1.2 var(--sans);
  text-decoration: none;
  border: 1px solid var(--ink); border-radius: 3px;
  background: var(--ink); color: var(--on-ink);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: #2B3A40; border-color: #2B3A40; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--edge); }
.btn-quiet:hover { background: transparent; border-color: var(--ink); }
.on-ink .btn { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.on-ink .btn:hover { background: #fff; border-color: #fff; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arrow { transition: none; } }

/* ---- Header -------------------------------------------------------------- */
header.site { position: relative; z-index: 5; }
header.site nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand-name { font: 400 1.6rem/1 var(--serif); letter-spacing: -0.01em; }
.brand-sub { font: 600 0.76rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); padding-top: 4px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); }
.nav-links a:not(.btn) { font-size: 0.97rem; text-decoration: none; padding-block: 12px; }
.nav-links a:not(.btn)[aria-current="page"] { text-decoration: underline; }
.nav-links .btn { min-height: 44px; padding: 0.55em 1.1em; font-size: 0.95rem; }
/* Phones: the wordmark stacks under "Atlas" so the full name still shows. */
@media (max-width: 640px) {
  .brand { display: inline-grid; grid-template-columns: auto auto; column-gap: 10px; row-gap: 3px; }
  .brand img { width: 36px; height: 36px; grid-row: 1 / 3; align-self: center; }
  .brand-name { font-size: 1.42rem; align-self: end; }
  .brand-sub { font-size: 0.58rem; letter-spacing: 0.16em; padding-top: 0; align-self: start; }
  .nav-links { gap: 14px; }
  .nav-links a.hide-s { display: none; }
  .nav-links .btn { padding-inline: 0.9em; }
}

/* ---- Hero ---------------------------------------------------------------- */
/* The hero's map runs up behind the header, so there is no seam under the nav. */
.hero { position: relative; overflow: hidden; margin-top: -96px; padding-top: 96px !important; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url(/img/contour-hero.svg) right -6vw top / cover no-repeat;
  -webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 78%), linear-gradient(#000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(100deg, transparent 18%, #000 78%), linear-gradient(#000 70%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 11vw, 150px) clamp(72px, 11vw, 150px); }
.hero h1 { max-width: 15.5ch; }
.hero h1 span { display: block; }
.hero h1 .second { color: var(--bronze); }
.hero .lede { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--ink-soft); max-width: 35em; margin: 1.8rem 0 2.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 720px) {
  .hero::before {
    opacity: .5; background-position: right -40vw top;
    -webkit-mask-image: linear-gradient(transparent 30%, #000 75%, transparent);
    mask-image: linear-gradient(transparent 30%, #000 75%, transparent);
  }
}

/* A smaller top for inside pages, with the same map run up behind the header, quieter */
.page-top { position: relative; overflow: hidden; margin-top: -96px; padding-top: 96px !important; }
.page-top::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url(/img/contour-hero.svg) right -6vw top / cover no-repeat;
  opacity: .6;
  -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 95%), linear-gradient(#000 40%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(100deg, transparent 45%, #000 95%), linear-gradient(#000 40%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}
.page-top .wrap { position: relative; z-index: 1; }
@media (max-width: 720px) { .page-top::before { opacity: .35; } }
.page-top .wrap { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.page-top h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 18ch; }
.page-top .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; margin-top: 1.4rem; }

/* ---- Sections ------------------------------------------------------------ */
section { padding-block: var(--section); }
.ruled { border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.split > .side { position: sticky; top: 32px; }
.split .side p { color: var(--ink-soft); margin-top: 1.2rem; max-width: 26em; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split > .side { position: static; }
}

/* The dark band */
.on-ink { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.on-ink::before {
  content: ""; position: absolute; inset: 0;
  background: url(/img/contour-band.svg) center / cover no-repeat;
  opacity: .55; pointer-events: none;
}
.on-ink .wrap { position: relative; }
.statement { font: 400 clamp(1.7rem, 3.3vw, 2.7rem)/1.22 var(--serif); letter-spacing: -0.012em; max-width: 24em; margin: 0; text-wrap: balance; }
.statement + p { color: var(--on-ink-soft); max-width: 38em; margin-top: 1.6rem; font-size: 1.1rem; }

/* The closing band on inside pages */
.closing .statement + p { margin-bottom: 2.2rem; }
.on-ink .btn-quiet { background: transparent; color: var(--on-ink); border-color: rgba(246, 244, 239, .45); }
.on-ink .btn-quiet:hover { background: transparent; border-color: var(--on-ink); }

/* Three principles */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.cols > div { border-top: 1px solid var(--ink); padding-top: 22px; }
.cols h3 { margin-bottom: 0.7rem; }
.cols p { color: var(--ink-soft); }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; gap: 36px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 0 12px; padding: 26px 0 28px; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 400 1.9rem/1.1 var(--serif); color: var(--bronze); font-variant-numeric: lining-nums; }
.steps h3 { margin-bottom: 0.45rem; }
.steps p { color: var(--ink-soft); max-width: 40em; }
@media (max-width: 520px) { .steps li { grid-template-columns: 3rem minmax(0, 1fr); } .steps li::before { font-size: 1.5rem; } }

/* The climb: five contour lines beside the steps, one per step. Without
   JavaScript, or on one-column layouts, every line is drawn in ink. */
.climb { width: min(100%, 340px); height: auto; margin-top: clamp(28px, 4vw, 48px); overflow: visible; }
.climb path { fill: none; vector-effect: non-scaling-stroke; }
.climb-mid path { stroke: var(--rule); stroke-width: 1; }
.climb-ring path { stroke: var(--ink); stroke-width: 1.4; transition: stroke .35s ease, stroke-width .35s ease; }
.climb-ring text {
  font: 600 10.5px/1 var(--sans); letter-spacing: 0.08em; fill: var(--bronze);
  stroke: var(--stone); stroke-width: 7px; paint-order: stroke; stroke-linejoin: round;
  transition: fill .35s ease;
}
.climb.is-live .climb-ring path { stroke: #B9B1A1; stroke-width: 1; }
.climb.is-live .climb-ring.is-on path { stroke: var(--ink); stroke-width: 1.4; }
.climb.is-live .climb-ring.is-now path { stroke-width: 2; }
.climb.is-live .climb-ring.is-now text { fill: var(--ink); }
.steps li::before { transition: color .35s ease; }
.steps.is-live li.is-now::before { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .climb-ring path, .climb-ring text, .steps li::before { transition: none; } }
@media (max-width: 860px) { .climb { width: 200px; margin-top: 24px; } }

/* The five steps as one row on the home page; the full version is /how-we-work */
.path { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.path li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 18px; }
.path li::before { content: counter(step, decimal-leading-zero); display: block; font: 400 1.5rem/1.1 var(--serif); color: var(--bronze); font-variant-numeric: lining-nums; margin-bottom: 10px; }
.path span { font: 400 1.22rem/1.25 var(--serif); letter-spacing: -0.01em; display: block; text-wrap: balance; }
.path-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(32px, 4.5vw, 52px); }
.path-foot p { margin: 0; color: var(--ink-soft); max-width: 34em; }
@media (max-width: 860px) {
  .path { grid-template-columns: 1fr; gap: 0; }
  .path li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: baseline; border-top: 1px solid var(--rule); padding: 16px 0; }
  .path li:last-child { border-bottom: 1px solid var(--rule); }
  .path li::before { margin-bottom: 0; }
}

/* The quieter second paragraph under a large statement */
.cost-note { color: var(--ink-soft); max-width: 38em; }

/* The short numbered list beside the form on /start */
.steps-s li { grid-template-columns: 3rem minmax(0, 1fr); padding: 18px 0 20px; }
.steps-s li::before { font-size: 1.45rem; }
.split .side .steps-s p { margin-top: 0; color: var(--ink-soft); }
.split .side .side-link { margin-top: 1.4rem; font-size: 0.97rem; }
.side-link a { display: inline-block; padding-block: 4px; }

/* On one column, the form comes before the notes beside it */
@media (max-width: 860px) { .form-first > .side { order: 2; } }

/* Questions and answers */
.qa { margin: 0; }
.qa > div { padding: 26px 0 28px; border-top: 1px solid var(--rule); }
.qa > div:last-child { border-bottom: 1px solid var(--rule); }
.qa dt { font: 400 1.4rem/1.25 var(--serif); letter-spacing: -0.012em; }
.qa dd { margin: 0.5rem 0 0; color: var(--ink-soft); max-width: 40em; }
.qa dd a { white-space: nowrap; }

/* Plain lists with a rule above each item */
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { padding: 18px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); }
.lines li:last-child { border-bottom: 1px solid var(--rule); }
.lines li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--bronze); border-radius: 50%; margin-top: 0.62em; }
.lines strong { font-weight: 600; }
.lines span { color: var(--ink-soft); }

.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); }
.fit h3 { margin-bottom: 1rem; }
@media (max-width: 720px) { .fit { grid-template-columns: 1fr; } }

.plain-price { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.3 var(--serif); max-width: 26em; margin: 0 0 1.2rem; text-wrap: balance; }

/* ---- The form ------------------------------------------------------------ */
.form-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: clamp(22px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.f { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.f.wide { grid-column: 1 / -1; }
.f label, .f legend { font: 500 0.92rem/1.3 var(--sans); padding: 0; }
.f .opt { color: var(--ink-soft); font-weight: 400; }
.f input[type="text"], .f input[type="email"], .f input[type="tel"], .f textarea {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: var(--stone); border: 1px solid var(--edge); border-radius: 3px;
  padding: 12px 14px; min-height: 48px;
}
.f textarea { min-height: 132px; resize: vertical; }
.f input:hover, .f textarea:hover { border-color: var(--ink-soft); }
.f input:focus-visible, .f textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; background: var(--paper); }
.f.is-bad input, .f.is-bad textarea { border-color: var(--bad); }
.f-msg { font-size: 0.86rem; color: var(--bad); }
.f-msg:empty { display: none; }
.f-msg a { color: inherit; font-weight: 600; text-decoration-color: currentColor; }
.form-card > form > .f-msg { margin: 14px 0 0; font-size: 0.95rem; }
fieldset.f { border: 0; margin: 0; padding: 0; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.choice label {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1px solid var(--edge); border-radius: 3px; background: var(--stone);
  padding: 13px 14px; min-height: 52px; font-weight: 400; font-size: 1rem;
}
.choice input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--ink-soft); border-radius: 50%; background: var(--paper); }
.choice input:checked { border: 5px solid var(--ink); }
.choice label:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 620px) { .form-grid, .choice { grid-template-columns: 1fr; } }
.reassure { background: var(--stone); border-left: 2px solid var(--bronze); padding: 14px 16px; color: var(--ink-soft); font-size: 0.98rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.form-foot p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; max-width: 30em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.is-sending .btn { opacity: .6; pointer-events: none; }
.sent h2, .sent h3 { font-size: 1.9rem; margin-bottom: 0.8rem; }
.sent p { color: var(--ink-soft); max-width: 34em; }
.sent .note { margin-top: 1rem; font-size: 0.88rem; }
[hidden] { display: none !important; }

/* ---- About --------------------------------------------------------------- */
.about-mark { width: 96px; height: 96px; display: block; }
.prose { max-width: 40em; }
.facts { list-style: none; margin: 1.6rem 0 0; padding: 0; max-width: 20em; font-size: 0.92rem; color: var(--ink-soft); }
.facts li { padding: 9px 0; border-top: 1px solid var(--rule); }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.prose p { color: var(--ink-soft); font-size: 1.1rem; }
.prose p.lead { font: 400 1.55rem/1.35 var(--serif); color: var(--ink); }
.aside { font: 400 clamp(1.25rem, 2vw, 1.5rem)/1.4 var(--serif); max-width: 34em; margin-top: clamp(40px, 6vw, 72px); padding-left: 22px; border-left: 2px solid var(--bronze); }

/* ---- Legal pages --------------------------------------------------------- */
.doc { max-width: 46em; }
.doc h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); margin-bottom: 0.6rem; }
.doc h2 { font-size: 1.55rem; margin: 2.6rem 0 0.8rem; scroll-margin-top: 24px; }
.doc h3 { font-size: 1.2rem; margin: 1.8rem 0 0.5rem; }
.doc p, .doc li { color: var(--ink-soft); }
.doc .updated { font-size: 0.9rem; color: var(--ink-soft); }
.doc .intro { font-size: 1.12rem; color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }
.doc .toc { border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); padding: 20px 24px; margin: 2rem 0; }
.doc .toc-h { font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze); margin-bottom: 0.8rem; }
.doc .toc ol { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 0.96rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--rule); }
.doc strong { color: var(--ink); }

/* ---- 404 ----------------------------------------------------------------- */
.lost { min-height: 52vh; display: grid; align-content: center; }
.lost.page-top .wrap { padding-block: clamp(64px, 9vw, 120px); }

/* ---- Footer -------------------------------------------------------------- */
footer.site { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
footer.site::before { content: ""; position: absolute; inset: 0; background: url(/img/contour-band.svg) center bottom / cover no-repeat; opacity: .4; pointer-events: none; }
footer.site .wrap { position: relative; padding-block: 56px 40px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; align-items: flex-start; }
.foot-top .brand-sub { color: var(--on-ink-soft); }
.foot-line { font: 400 1.3rem/1.35 var(--serif); max-width: 20em; margin-top: 18px; color: var(--on-ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 0; }
.foot-links a { display: inline-block; padding-block: 8px; text-decoration: none; color: var(--on-ink); font-size: 0.97rem; }

.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(246, 244, 239, .18); font-size: 0.88rem; color: var(--on-ink-soft); }
.foot-bottom a { color: var(--on-ink-soft); display: inline-block; padding-block: 5px; }

/* ---- Feedback and motion -------------------------------------------------
   Quiet on purpose: things answer when touched, and the page settles into
   place once. Everything here is skipped when the device asks for reduced
   motion, and nothing is hidden without JavaScript. */
a, button, label { -webkit-tap-highlight-color: transparent; }

/* Pressing */
.btn { transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:not(.btn-quiet):hover { box-shadow: 0 6px 18px -10px rgba(31, 42, 46, .55); }
.on-ink .btn:not(.btn-quiet):hover { box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .7); }
a { transition: text-decoration-color .18s ease, opacity .12s ease; }
a:not(.btn):active { opacity: .6; }
.brand { transition: opacity .15s ease; }
.brand:hover img { transform: rotate(-8deg); }
.brand img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }

/* Menu and footer links: the underline draws in from the left */
.nav-links a:not(.btn), .foot-links a {
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 0 1px no-repeat;
  transition: background-size .28s cubic-bezier(.2, .7, .2, 1), opacity .12s ease;
}
.foot-links a { background-position: 0 calc(100% - 6px); }
.nav-links a:not(.btn):hover, .nav-links a:not(.btn):focus-visible, .foot-links a:hover, .foot-links a:focus-visible { background-size: 100% 1px; }
.nav-links a:not(.btn)[aria-current="page"] { background-size: 0 1px; }

/* Form: fields and choices answer straight away */
.f input, .f textarea { transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.f input:focus-visible, .f textarea:focus-visible { box-shadow: 0 0 0 4px rgba(31, 42, 46, .08); }
.choice label { transition: border-color .15s ease, background-color .15s ease, transform .1s ease; }
.choice label:active { transform: scale(.985); }
.choice input { transition: border-width .14s ease, border-color .14s ease; }
.f-msg:not(:empty) { animation: nudge .3s ease both; }
.reassure:not([hidden]), .sent:not([hidden]) { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
form.is-sending .btn { opacity: .75; pointer-events: none; }
form.is-sending .btn .dots::after { content: ""; animation: dots 1.2s steps(4, end) infinite; }
.sent:focus, .sent:focus-visible { outline: none; }
.sent-mark { width: 44px; height: 44px; margin-bottom: 18px; }
.sent-mark circle { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.sent-mark path { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; }
.sent:not([hidden]) .sent-mark path { animation: tick .5s .25s ease-out forwards; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes nudge { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@keyframes tick { to { stroke-dashoffset: 0; } }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@keyframes map-late { from { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* The top of each page settles in once, on load */
  .hero .label, .hero h1 span, .hero .lede, .hero .actions,
  .page-top .label, .page-top h1, .page-top .lede { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 span:first-child, .page-top h1 { animation-delay: .06s; }
  .hero h1 .second, .page-top .lede { animation-delay: .16s; }
  .hero .lede { animation-delay: .28s; }
  .hero .actions { animation-delay: .38s; }
  /* The maps draw themselves outward from the summit (atlas.js). Until the
     script has put the drawable lines in place the still picture is held
     back; if the script never arrives, the picture fades in on its own. */
  html:not(.no-js) .hero:not(.map-live):not(.map-still)::before,
  html:not(.no-js) .page-top:not(.map-live):not(.map-still)::before,
  html:not(.no-js) .on-ink:not(.map-live):not(.map-still)::before { animation: map-late .8s 3s both; }
  html:not(.no-js) main:has(> .closing:last-child) + footer.site:not(.map-live):not(.map-still)::before { animation: map-late .8s 3s both; }

  /* Scroll reveal: atlas.js adds .rv only to blocks that start below the fold */
  .rv { opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.2, .7, .2, 1), transform .55s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
  .rv.in { opacity: 1; transform: none; }

  /* The climb's lines come in from the outside ring to the summit */
  .climb.draw .climb-mid, .climb.draw .climb-ring { opacity: 0; transition: opacity .7s ease; }
  .climb.draw.drawn .climb-mid, .climb.draw.drawn .climb-ring { opacity: 1; }
  .climb.draw .climb-ring[data-ring="1"] { transition-delay: .05s; }
  .climb.draw .climb-ring[data-ring="2"] { transition-delay: .17s; }
  .climb.draw .climb-ring[data-ring="3"] { transition-delay: .29s; }
  .climb.draw .climb-ring[data-ring="4"] { transition-delay: .41s; }
  .climb.draw .climb-ring[data-ring="5"] { transition-delay: .53s; }
  .climb.draw .climb-mid { transition-delay: .6s; }

  /* A short cross-fade between pages, with the header held still */
  @view-transition { navigation: auto; }
  header.site { view-transition-name: site-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .btn, .brand img, .choice label { transition: none; }
  .btn:active, .choice label:active { transform: none; }
  .sent-mark path { stroke-dashoffset: 0; }
}
@media print { .rv { opacity: 1 !important; transform: none !important; } }

/* The drawable copy of a map: same picture, same place and same fade as the
   ::before it replaces, but made of real lines the script can draw. */
.map-live::before { display: none; }
.map { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > .map {
  -webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 78%), linear-gradient(#000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(100deg, transparent 18%, #000 78%), linear-gradient(#000 70%, transparent);
  mask-composite: intersect;
}
.hero > .map svg, .page-top > .map svg { transform: translateX(6vw); }
.page-top > .map {
  opacity: .6;
  -webkit-mask-image: linear-gradient(100deg, transparent 45%, #000 95%), linear-gradient(#000 40%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(100deg, transparent 45%, #000 95%), linear-gradient(#000 40%, transparent);
  mask-composite: intersect;
}
.on-ink > .map, footer.site > .map { opacity: .55; }
/* A dark closing band runs straight into the footer: overlap them by a pixel so no hairline of page shows between. */
main:has(> .closing:last-child) + footer.site { margin-top: -1px; }
@media (max-width: 720px) {
  .hero > .map { opacity: .5; -webkit-mask-image: linear-gradient(transparent 30%, #000 75%, transparent); mask-image: linear-gradient(transparent 30%, #000 75%, transparent); -webkit-mask-composite: source-over; mask-composite: add; }
  .hero > .map svg { transform: translateX(40vw); }
  .page-top > .map { opacity: .35; }
}
