/* ==========================================================================
   Aperi · home.css — one-pager sections. Tokens and components: base.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(32px, 6vh, 88px));
  padding-bottom: clamp(64px, 8vw, 112px);
  overflow: hidden;
}
.hero .bg-grid { height: 900px; }
.hero__glow {
  width: min(1100px, 120vw);
  height: 720px;
  left: 50%;
  top: 280px;
  translate: -50% 0;
  opacity: 0.9;
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__eyebrow { margin-bottom: clamp(24px, 3vw, 36px); white-space: nowrap; }
.hero__title { max-width: 14ch; }
.hero__line { display: block; }
.hero__lead {
  max-width: 44rem;
  margin-top: clamp(20px, 2.4vw, 32px);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(32px, 3.4vw, 44px);
}
/* --text-2, not --text-3: the line sits on the brightest part of the glow */
.hero__meta { margin-top: 20px; color: var(--text-2); }
@media (max-width: 560px) {
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
}
@media (max-width: 400px) {
  .hero__eyebrow { font-size: 11px; letter-spacing: 0.04em; padding-inline: 11px 12px; }
  .hero__meta { font-size: 12px; letter-spacing: 0; white-space: nowrap; }
}

/* Phones: the header CTA steps aside while the hero CTA is on screen (site.js) */
@media (max-width: 560px) {
  .nav .nav__actions .btn--primary {
    transition: transform var(--spring-ui-ms) var(--spring-ui), background-color 200ms var(--ease-out),
      box-shadow 300ms var(--ease-out), opacity 200ms var(--ease-out), visibility 0s;
  }
  .nav[data-hero-cta] .nav__actions .btn--primary {
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms;
  }
}

/* --------------------------------------------------------------------------
   Console (illustrative example run, typed by site.js)
   -------------------------------------------------------------------------- */
.console {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin-top: clamp(40px, 5vh, 64px);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(20, 26, 21, 0.82), rgba(10, 13, 11, 0.9));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 40px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 80px -20px var(--green-a16);
  text-align: left;
  overflow: hidden;
}
/* Faint scanlines: the one overt "terminal" texture on the page */
.console::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.console__bar {
  /* Equal side columns keep the title on the window's true centre */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding-inline: 18px;
  border-bottom: 1px solid var(--line);
}
.console__lights { display: flex; gap: 7px; }
.console__lights i { width: 11px; height: 11px; border-radius: 50%; background: rgba(214, 255, 216, 0.12); }
.console__title { text-align: center; font-size: var(--fs-mono-sm); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console__tag { justify-self: end; }
.console__tag {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  color: var(--text-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.console__body {
  padding: clamp(20px, 3vw, 32px) clamp(18px, 3.4vw, 36px) clamp(24px, 3.4vw, 36px);
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.68rem + 0.3vw, 0.875rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.console__cmd {
  color: var(--text);
  margin-bottom: 18px;
  padding-left: calc(1ch + 10px);
  text-indent: calc(-1ch - 10px);
}
.console__flag { white-space: nowrap; }
.console__prompt { color: var(--green); margin-right: 10px; }
.console__arg { color: var(--green-hi); }
.console__lines { display: grid; gap: 10px; }
.console__lines li {
  display: grid;
  grid-template-columns: 3.4em minmax(9em, 13em) 1fr;
  align-items: baseline;
  gap: 0 1.2em;
}
.console__state {
  justify-self: stretch;
  text-align: center;
  padding: 1px 0.55em;
  border-radius: 5px;
  font-size: 0.86em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.console__state--ok { color: var(--green); background: var(--green-a10); }
.console__state--fix { color: var(--amber); background: rgba(255, 197, 110, 0.1); }
.console__state--run { color: var(--green-ink); background: var(--green); }
.console__key {
  color: var(--text-2);
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  white-space: nowrap;
  overflow: hidden;
}
.console__key::after {
  content: "";
  flex: 1;
  min-width: 1em;
  border-bottom: 1px dotted rgba(214, 255, 216, 0.16);
  transform: translateY(-0.25em);
}
.console__val { color: var(--text); }
.console__cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.18em;
  background: var(--green);
  animation: cursor-blink 1.05s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
.motion-paused .console__cursor { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .console__cursor { animation: none; }
}

/* Typing states (only when site.js runs the sequence) */
.console[data-typing] .console__lines li { opacity: 0; transform: translateY(6px); transition: opacity 260ms var(--ease-out), transform var(--spring-ui-ms) var(--spring-ui); }
.console[data-typing] .console__lines li.is-typed { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .console__bar { grid-template-columns: auto 1fr; }
  .console__title { text-align: left; }
  .console__tag { display: none; }
  .console__lines { gap: 12px; }
  .console__lines li { grid-template-columns: 3.4em 1fr; row-gap: 3px; }
  .console__key::after { display: none; }
  .console__val { grid-column: 2; color: var(--text-2); }
  .console__key { color: var(--text); }
}

/* --------------------------------------------------------------------------
   Categories ticker
   -------------------------------------------------------------------------- */
.ticker {
  position: relative;
  display: flex;
  align-items: center;
  border-block: 1px solid var(--line);
  background: rgba(10, 13, 11, 0.6);
  height: 68px;
  overflow: hidden;
}
.ticker__label {
  position: relative;
  z-index: 2;
  flex: none;
  height: 100%;
  display: flex;
  align-items: center;
  padding-inline: var(--gutter) 28px;
  background: var(--bg);
  box-shadow: 24px 0 24px 0 var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.ticker__viewport {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 90%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 0;
}
.ticker__track li {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text-2);
  white-space: nowrap;
}
.ticker__track li::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--green);
  opacity: 0.7;
  transform: rotate(45deg);
}
.ticker[data-running] .ticker__track { animation: ticker 48s linear infinite; }
.ticker[data-running]:hover .ticker__track,
.motion-paused .ticker[data-running] .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker[data-running] .ticker__track { animation: none; }
}

/* Pause control for the page's looping motion (site.js). Only shown while
   something actually moves. */
.ticker__pause {
  position: relative;
  z-index: 2;
  flex: none;
  display: none;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-inline: 12px var(--gutter);
  border-radius: 50%;
  color: var(--text-3);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-2), -24px 0 24px 0 var(--bg);
  transition: color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.ticker[data-running] .ticker__pause { display: grid; }
.ticker__pause:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3), -24px 0 24px 0 var(--bg); }
.ticker__icon { grid-area: 1 / 1; width: 14px; height: 14px; }
.ticker__icon--play, .ticker__pause[aria-pressed="true"] .ticker__icon--pause { display: none; }
.ticker__pause[aria-pressed="true"] .ticker__icon--play { display: block; }

/* No JS or reduced motion: a static, wrapped list. The diamond leads each
   item, so a wrapped line never ends on a stray separator. */
html:not(.js) .ticker, .ticker[data-static] {
  height: auto;
  flex-direction: column;
  gap: 16px;
  padding: 32px var(--gutter);
}
html:not(.js) .ticker__label, .ticker[data-static] .ticker__label { height: auto; padding: 0; background: none; box-shadow: none; }
html:not(.js) .ticker__viewport, .ticker[data-static] .ticker__viewport { -webkit-mask-image: none; mask-image: none; width: 100%; max-width: 50rem; }
html:not(.js) .ticker__track, .ticker[data-static] .ticker__track { flex-wrap: wrap; justify-content: center; width: auto; gap: 12px 28px; }
html:not(.js) .ticker__track li, .ticker[data-static] .ticker__track li { gap: 12px; padding-right: 0; }
html:not(.js) .ticker__track li::after, .ticker[data-static] .ticker__track li::after { order: -1; }
.ticker[data-static] [data-clone] { display: none; }
@media (max-width: 640px) {
  .ticker { height: 56px; }
  .ticker__label { padding-right: 18px; font-size: var(--fs-mono-sm); }
  .ticker__track li { font-size: 0.9375rem; gap: 20px; padding-right: 20px; }
  .ticker__pause { width: 30px; height: 30px; margin-left: 8px; }
  html:not(.js) .ticker__track, .ticker[data-static] .ticker__track { gap: 10px 20px; }
  html:not(.js) .ticker__track li, .ticker[data-static] .ticker__track li { gap: 10px; padding-right: 0; }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}
.svc {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: var(--card-pad);
}
/* Desktop: rows line up across the three cards (titles, lists, actions) */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1061px) {
    .svc { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 24px; }
  }
}
.svc__top { display: flex; align-items: center; }
.svc__tag { text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-mono-sm); }
.svc__art {
  margin: 4px -8px 0;
  aspect-ratio: 320 / 168;
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(141, 255, 144, 0.06), transparent 60%),
    rgba(5, 7, 6, 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.svc__art svg { width: 100%; height: 100%; }
/* align-content: start keeps title-to-copy spacing identical in every card,
   even when the subgrid row is stretched by a taller neighbour */
.svc__body { display: grid; gap: 10px; align-content: start; }
.svc__body .t-h3 { font-size: clamp(1.5rem, 1.3rem + 0.5vw, 1.75rem); }
.svc__list { padding-top: 20px; border-top: 1px solid var(--line); }
.svc__actions {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* SVG art: static at rest, a signal runs through it on hover */
.svc__art .art-path path { stroke: rgba(141, 255, 144, 0.22); stroke-width: 1.4; }
.svc__art .art-pulse path {
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 10 220;
  /* The dash waits just before the path start, so nothing shows during the
     stagger delay or between loops */
  stroke-dashoffset: 10;
  opacity: 0;
}
.svc__art .art-node { fill: var(--surface-3); stroke: rgba(214, 255, 216, 0.2); stroke-width: 1.2; }
.svc__art .art-node--hot { stroke: var(--green); fill: rgba(141, 255, 144, 0.08); }
.svc__art text { font-family: var(--font-mono); }
.svc__art .art-label { font-size: 10px; fill: var(--text-3); letter-spacing: 0.06em; }
.svc__art .art-label--hot { fill: var(--green); }
.svc__art .art-glyph { font-size: 11px; fill: var(--text-2); }
.svc__art .art-gridlines path { stroke: rgba(214, 255, 216, 0.06); stroke-width: 1; stroke-dasharray: 2 5; }
.svc__art .art-candles rect { fill: rgba(214, 255, 216, 0.14); transform-box: fill-box; transform-origin: 50% 100%; transition: fill 400ms var(--ease-out), transform var(--spring-smooth-ms) var(--spring-bounce); }
.svc__art .art-candles .art-candle--hot { fill: var(--green); }
.svc__art .art-trend { stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 0; opacity: 0.85; }
.svc__art .art-trend-dot { fill: var(--green); filter: drop-shadow(0 0 6px var(--green)); }
.svc__art .art-frame { fill: var(--surface-3); stroke: rgba(214, 255, 216, 0.16); stroke-width: 1.2; transform-box: fill-box; transform-origin: 50% 100%; transition: transform var(--spring-smooth-ms) var(--spring-bounce); }
.svc__art .art-frame--front { fill: #172019; stroke: rgba(141, 255, 144, 0.5); }
.svc__art .art-frame--back { opacity: 0.55; }
.svc__art .art-frame--mid { opacity: 0.8; }
.svc__art .art-frame-line { stroke: rgba(214, 255, 216, 0.22); stroke-width: 4; stroke-linecap: round; }
.svc__art .art-play { fill: rgba(141, 255, 144, 0.12); stroke: var(--green); stroke-width: 1.2; }
.svc__art .art-play-icon { fill: var(--green); }
.svc__art .art-badge rect { fill: var(--green); }
.svc__art .art-badge path { stroke: var(--green-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.svc__art .art-badge text { font-size: 11px; fill: var(--green-ink); font-weight: 600; }

.svc:hover .art-pulse path, .svc:focus-within .art-pulse path { opacity: 1; animation: art-signal 1.8s linear infinite; }
.svc:hover .art-pulse path:nth-child(2), .svc:focus-within .art-pulse path:nth-child(2) { animation-delay: 0.9s; }
.svc:hover .art-pulse path:nth-child(3), .svc:focus-within .art-pulse path:nth-child(3) { animation-delay: 1s; }
.svc:hover .art-pulse path:nth-child(4), .svc:focus-within .art-pulse path:nth-child(4) { animation-delay: 1.1s; }
@keyframes art-signal { from { stroke-dashoffset: 10; } to { stroke-dashoffset: -220; } }
.svc:hover .art-candles rect, .svc:focus-within .art-candles rect { transform: scaleY(1.08); }
.svc:hover .art-candles rect:not(.art-candle--hot), .svc:focus-within .art-candles rect:not(.art-candle--hot) { fill: rgba(214, 255, 216, 0.2); }
.svc:hover .art-frame--back, .svc:focus-within .art-frame--back { transform: translateX(-6px) rotate(-3deg); }
.svc:hover .art-frame--front, .svc:focus-within .art-frame--front { transform: translateX(6px) rotate(2deg); }

@media (max-width: 1060px) {
  .services__grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}
@media (min-width: 700px) and (max-width: 1060px) {
  /* Tablet: art beside the copy so three cards don't become a long tower */
  .services__grid { max-width: none; }
  .svc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas: "top top" "art body" "art list" "art actions";
    column-gap: 32px;
    row-gap: 20px;
  }
  .svc__top { grid-area: top; }
  /* The art panel runs the full height of the copy column: no dead corner */
  .svc__art { grid-area: art; margin: 0; align-self: stretch; aspect-ratio: auto; min-height: 200px; }
  .svc__body { grid-area: body; }
  .svc__list { grid-area: list; }
  .svc__actions { grid-area: actions; margin-top: 0; }
}
@media (max-width: 480px) {
  .svc { gap: 20px; }
  .svc__art { margin-inline: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc:hover .art-pulse path, .svc:focus-within .art-pulse path { animation: none; opacity: 0; }
  .svc__art * { transition: none !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Process: four steps joined by a line that fills as it comes into view
   -------------------------------------------------------------------------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  --marker: 44px;
}
.steps::before, .steps::after {
  content: "";
  position: absolute;
  left: calc(var(--marker) / 2);
  right: calc(25% - var(--marker));
  top: calc(var(--marker) / 2);
  height: 1px;
  background: var(--line-2);
  z-index: 0;
}
.steps::after {
  background: linear-gradient(90deg, var(--green), rgba(141, 255, 144, 0.25));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1600ms var(--ease-out) 200ms;
}
.steps.is-in::after, html:not(.js) .steps::after { transform: scaleX(1); }
/* Each step stacks above the line, so markers cover it even mid-reveal (when
   the step's own transform traps the marker's z-index) */
.step { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; }
.step__marker {
  width: var(--marker);
  height: var(--marker);
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 6px var(--bg);
  position: relative;
  z-index: 1;
}
.step__marker .t-mono { color: var(--green); font-size: var(--fs-mono); }
.step:first-child .step__marker { background: var(--green); box-shadow: 0 0 0 6px var(--bg), 0 0 24px -2px var(--green-a50); }
.step:first-child .step__marker .t-mono { color: var(--green-ink); }
.step .t-small { max-width: 28ch; }

@media (min-width: 601px) and (max-width: 900px) {
  /* Tablet: a 2 × 2 grid reads better than a long single column */
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
  .steps::before, .steps::after { display: none; }
  .step .t-small { max-width: 34ch; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  /* One connector per step, marker to marker, so the line ends at 04 */
  .steps::before, .steps::after { display: none; }
  .step:not(:last-child)::before, .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(var(--marker) / 2);
    top: var(--marker);
    bottom: 0;
    width: 1px;
    background: var(--line-2);
  }
  .step:not(:last-child)::after {
    background: linear-gradient(180deg, var(--green), var(--green-a28));
    transform: scaleY(0);
    transform-origin: center top;
    transition: transform 700ms var(--ease-out);
    transition-delay: calc(300ms + var(--reveal-i, 0) * 220ms);
  }
  .steps.is-in .step::after, html:not(.js) .step::after { transform: scaleY(1); }
  .step {
    grid-template-columns: var(--marker) 1fr;
    column-gap: 20px;
    row-gap: 6px;
    padding-bottom: 36px;
  }
  .step__marker { grid-row: span 2; margin-bottom: 0; }
  .step .t-h4 { padding-top: 10px; }
  .step .t-small { max-width: 40ch; }
}

/* Principles: a hairline spec list. The copy column starts on the same
   vertical as step 03 above, so the two blocks share one grid. */
.principles {
  --split: 16px; /* half the steps' column gap */
  margin-top: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--line);
}
.principle {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) calc(50% - var(--split));
  column-gap: 16px;
  align-items: baseline;
  padding-block: clamp(24px, 2.6vw, 32px);
  border-bottom: 1px solid var(--line);
}
.principle__icon {
  align-self: start;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--green);
}
.principle .t-small { grid-column: 3; max-width: 46ch; }
@media (min-width: 601px) and (max-width: 900px) {
  .principles { --split: 20px; }
}
@media (max-width: 600px) {
  .principle { grid-template-columns: 20px minmax(0, 1fr); row-gap: 8px; }
  .principle .t-small { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { overflow: hidden; padding-bottom: clamp(88px, 8vw, 128px); }
.contact__glow {
  width: 900px;
  height: 600px;
  left: 50%;
  top: 0;
  translate: -50% -10%;
  opacity: 0.55;
}
.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--card-gap);
  align-items: stretch;
}
/* Both cards share one anatomy: a mono top row, a title block, content, and
   the action pinned to the bottom edge, so the two footers line up. */
.contact__start, .contact__form-card, .contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact__start, .contact__form-card { padding: var(--card-pad); }
.contact__start {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(141, 255, 144, 0.1), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: inset 0 0 0 1px var(--green-a16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.contact__card-top { display: flex; justify-content: space-between; align-items: center; min-height: 18px; }
.contact__card-head { display: grid; gap: 10px; }
.contact__start-steps { display: grid; gap: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact__start-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--text);
}
.contact__start-steps .t-mono { color: var(--green); }
.contact__start-btn { align-self: stretch; margin-top: auto; }
.contact__direct {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 12px;
  margin-top: 36px;
  font-size: var(--fs-small);
}

.contact-form { flex: 1; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
/* No JavaScript means no Turnstile: show the email route instead of a form
   that can't succeed */
.contact-form__nojs { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.contact-form__nojs-btn { align-self: flex-start; margin-top: auto; }
html:not(.js) .contact-form, .js .contact-form__nojs { display: none; }
.contact-form__privacy { flex: 1 1 0; max-width: 48ch; }
.contact-form__status { font-size: var(--fs-small); color: var(--text-2); }
.contact-form__status:empty { display: none; }
.contact-form__status[data-tone="error"] { color: var(--danger); }
.contact-form__done {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 420px;
  text-align: center;
  outline: none;
}
.contact-form__check { width: 56px; height: 56px; color: var(--green); margin-bottom: 8px; }
.contact-form__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 700ms var(--ease-out) forwards; }
.contact-form__check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 500ms var(--ease-out) 450ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 960px) {
  .contact__grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form__foot { flex-direction: column-reverse; align-items: stretch; }
  .contact-form__foot .btn { width: 100%; }
  .contact-form__privacy { max-width: none; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-form__check circle, .contact-form__check path { animation: none; stroke-dashoffset: 0; }
  .steps::after, .step::after { transition: none; }
}
