/* Retic Labs. Mobile first. No framework. */

/* Self-hosted variable fonts (SIL OFL, licenses in /assets/fonts). */
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1c1b19;
  --btn: #b5502e;
  --btn-hover: #c65a35;
  --amber: #e0a458;
  --orange: #e27a52; /* readable orange for text on dark, AA on --bg */
  --text: #ede6da;
  --muted: rgba(237, 230, 218, 0.64);
  --label: rgba(237, 230, 218, 0.74);
  --faint: rgba(237, 230, 218, 0.5);
  --line: rgba(237, 230, 218, 0.12);
  --line-strong: rgba(237, 230, 218, 0.22);
  --panel: rgba(24, 23, 21, 0.78);
  --panel-solid: #201f1c;
  --green: #6fbf73;
  --danger: #f08a6c;

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --col: 600px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(224, 164, 88, 0.35);
  color: var(--text);
}

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

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: 12px;
}

/* ---------- Mono label system ---------- */

.mono,
.label {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.label {
  font-size: 0.75rem;
  color: var(--label);
}

/* ---------- Background stack ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg) url("/assets/video/poster-sm.jpg") center / cover no-repeat;
  background-image: image-set(url("/assets/video/poster-sm.webp") type("image/webp"), url("/assets/video/poster-sm.jpg") type("image/jpeg"));
  pointer-events: none;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  display: none;
}

.bg-video.is-playing {
  opacity: 1;
}

.bg-tint {
  position: absolute;
  inset: 0;
  background: #7a4a22;
  mix-blend-mode: soft-light;
  opacity: 0.55;
}

.bg-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 27, 25, 0.35) 0%, rgba(28, 27, 25, 0) 30%, rgba(28, 27, 25, 0.5) 100%),
    rgba(28, 27, 25, 0.86);
}

.bg-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.16) 3px
  );
  opacity: 0.5;
}

.bg-grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Cursor light and reticle, desktop only, driven by app.js via transforms */
.bg-spot,
.reticle {
  display: none;
}

.bg-spot {
  position: absolute;
  left: 0;
  top: 0;
  width: 720px;
  height: 720px;
  margin: -360px 0 0 -360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 164, 88, 0.11) 0%, rgba(224, 164, 88, 0.04) 35%, rgba(224, 164, 88, 0) 70%);
  will-change: transform;
}

.reticle {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.reticle.is-on {
  opacity: 1;
}

.reticle-x,
.reticle-y {
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(224, 164, 88, 0.16);
  will-change: transform;
}

.reticle-x {
  width: 100%;
  height: 1px;
}

.reticle-y {
  width: 1px;
  height: 100%;
}

.reticle-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  will-change: transform;
}

.reticle-ring svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.reticle-ring .ring-spin {
  transform-origin: 22px 22px;
  animation: spin 12s linear infinite;
}

.reticle-read {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: rgba(224, 164, 88, 0.6);
  white-space: nowrap;
  will-change: transform;
}

@media (min-width: 768px) {
  .bg {
    background-image: url("/assets/video/poster.jpg");
    background-image: image-set(url("/assets/video/poster.webp") type("image/webp"), url("/assets/video/poster.jpg") type("image/jpeg"));
  }

  .bg-video {
    display: block;
  }

  .bg-shade {
    background:
      linear-gradient(90deg, rgba(28, 27, 25, 0.95) 0%, rgba(28, 27, 25, 0.9) 34%, rgba(28, 27, 25, 0.7) 62%, rgba(28, 27, 25, 0.66) 100%),
      linear-gradient(180deg, rgba(28, 27, 25, 0.45) 0%, rgba(28, 27, 25, 0) 25%, rgba(28, 27, 25, 0) 70%, rgba(28, 27, 25, 0.75) 100%);
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .fx .bg-spot,
  .fx .reticle {
    display: block;
  }

  .fx .bg-grain {
    animation: grain 1s steps(6) infinite;
  }
}

/* ---------- Page frame ---------- */

/* Content is anchored to the left edge at every width, like the original site.
   Only the header and footer span the full width. */
.frame {
  width: 100%;
  padding: 0 var(--gutter);
}

@media (min-width: 768px) {
  :root {
    --gutter: 48px;
  }
}

@media (min-width: 1280px) {
  :root {
    --gutter: 80px;
  }
}

/* Large and ultrawide screens: scale type up a touch so the column keeps presence. */
@media (min-width: 1920px) {
  html {
    font-size: 17px;
  }

  :root {
    --col: 640px;
    --gutter: 96px;
  }
}

@media (min-width: 2560px) {
  html {
    font-size: 19px;
  }

  :root {
    --col: 720px;
    --gutter: 120px;
  }
}

/* ---------- Ticker ---------- */

.ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding-top: 10px;
  font-size: 0.625rem;
  color: var(--green);
  overflow: hidden;
}

.ticker .dot {
  flex: none;
}

.ticker-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-text .scr {
  color: var(--amber);
  opacity: 0.8;
}

.dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(111, 191, 115, 0.6);
}

.dot--amber {
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(224, 164, 88, 0.6);
}

.dot--pulse {
  animation: pulse 2s var(--ease) infinite;
}

.dot--amber.dot--pulse {
  animation-name: pulse-amber;
}

@media (min-width: 768px) {
  .cta-row .note,
  .stats .caption {
    font-size: 0.75rem;
  }

  .ticker {
    font-size: 0.6875rem;
  }
}

/* ---------- Header ---------- */

.top {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand lang"
    "nav nav";
  align-items: center;
  gap: 14px 12px;
  padding: 8px 0 0;
}

.top .brand {
  grid-area: brand;
  justify-self: start;
}

.top .lang {
  grid-area: lang;
}

.top-nav {
  grid-area: nav;
  display: flex;
  gap: 8px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(28, 27, 25, 0.6);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

@media (min-width: 720px) {
  .nav-btn {
    white-space: nowrap;
  }
}

.nav-btn:hover {
  border-color: rgba(237, 230, 218, 0.4);
  background: rgba(28, 27, 25, 0.85);
}

.nav-btn--accent {
  border-color: rgba(224, 164, 88, 0.5);
  color: var(--amber);
}

.nav-btn--accent:hover {
  border-color: var(--amber);
  background: rgba(224, 164, 88, 0.08);
}

@media (min-width: 720px) {
  .top {
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "brand nav lang";
  }

  .nav-btn {
    flex: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}

.mark {
  width: 34px;
  height: 34px;
  overflow: visible;
}

.mark path {
  fill: currentColor;
}

.mark .shard {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.5s var(--ease-out);
}

.brand:hover .shard-1,
.brand:focus-visible .shard-1 {
  transform: translate(6px, -6px);
}

.brand:hover .shard-2,
.brand:focus-visible .shard-2 {
  transform: translate(-6px, -6px);
}

.brand:hover .shard-3,
.brand:focus-visible .shard-3 {
  transform: translate(-6px, 6px);
}

.brand:hover .shard-4,
.brand:focus-visible .shard-4 {
  transform: translate(6px, 6px);
}

.fx .top .shard {
  animation: shard-in 1.1s var(--ease-out) both;
}

.fx .top .shard-1 {
  --sx: 60px;
  --sy: -60px;
  --sr: 25deg;
  animation-delay: 0.05s;
}

.fx .top .shard-2 {
  --sx: -60px;
  --sy: -60px;
  --sr: -25deg;
  animation-delay: 0.12s;
}

.fx .top .shard-3 {
  --sx: -60px;
  --sy: 60px;
  --sr: 25deg;
  animation-delay: 0.19s;
}

.fx .top .shard-4 {
  --sx: 60px;
  --sy: 60px;
  --sr: -25deg;
  animation-delay: 0.26s;
}

/* Language switch */

.lang {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(28, 27, 25, 0.6);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
  border-color: rgba(224, 164, 88, 0.5);
  background: rgba(28, 27, 25, 0.85);
}

.lang-btn svg {
  width: 14px;
  height: 14px;
  color: var(--label);
}

.lang-btn .chev {
  width: 10px;
  height: 10px;
  transition: transform 0.25s var(--ease);
}

.lang-btn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
}

.lang-menu.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  background: none;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button:focus-visible {
  background: rgba(237, 230, 218, 0.07);
}

.lang-menu .code {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.lang-menu button[aria-current="true"] .code {
  color: var(--amber);
}

/* ---------- Main column ---------- */

/* The column is exactly as wide as the headline's longest line ("...technician
   trips"). Everything else fills that width without widening it: width 0 plus
   min-width 100% means "match the container, contribute nothing to its size". */
.col {
  width: fit-content;
  max-width: 100%;
  padding: 48px 0 72px;
}

.col > :not(.hero),
.hero > :not(h1) {
  width: 0;
  min-width: 100%;
}

@media (min-width: 768px) {
  .col {
    padding-top: 12vh;
  }
}

section + section {
  margin-top: 40px;
}

/* ---------- Hero ---------- */

.hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.05rem, 1.35rem + 3vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero h1 {
  width: max-content;
  max-width: calc(100vw - 2 * var(--gutter));
}

.line {
  display: block;
}

.hero h1 .w {
  display: inline-block;
  white-space: pre;
}

.fx .hero h1:not(.is-split) {
  opacity: 0;
  animation: show-op 0s 1.2s forwards;
}

.fx .hero h1 .w {
  animation: word-in 0.9s var(--ease-out) both;
  animation-delay: calc(var(--i) * 45ms + 120ms);
}

.hero .sub {
  margin: 20px 0 0;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.hero .body {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.fx .hero .sub,
.fx .hero .body,
.fx .hero .cta-row {
  animation: rise 0.9s var(--ease-out) both;
}

.fx .hero .sub {
  animation-delay: 0.45s;
}

.fx .hero .body {
  animation-delay: 0.55s;
}

.fx .hero .cta-row {
  animation-delay: 0.65s;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 28px;
}

.cta-row .note {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--label);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 2px;
  background: var(--btn);
  color: #fff8ef;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 236, 210, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn:hover {
  background: var(--btn-hover);
  box-shadow: 0 10px 30px -10px rgba(181, 80, 46, 0.7);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.85;
}

.btn .spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 248, 239, 0.35);
  border-top-color: #fff8ef;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .spinner {
  display: inline-block;
}

/* ---------- Terminal log ---------- */

.log {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.log ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.log li {
  display: grid;
  grid-template-columns: 4.2em 1fr;
  grid-template-areas:
    "time who"
    ". msg"
    ". tag";
  column-gap: 8px;
  padding: 5px 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.log .time {
  grid-area: time;
  color: var(--amber);
}

.log .who {
  grid-area: who;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.08em;
}

.log .msg {
  position: relative;
  grid-area: msg;
  min-height: 3em; /* two lines on phones, so rotating text never shifts the page */
  color: var(--muted);
}

.log .is-closed .who {
  font-weight: 400;
  color: var(--orange);
}

.log .is-closed .msg {
  color: var(--orange);
}

/* Split-flap characters */
.fw {
  white-space: nowrap;
}

.fc {
  display: inline-block;
  min-width: 0.6em;
  transform-origin: 50% 55%;
}

.fc.fa {
  animation: flap-a 0.104s linear; /* 0.09s x 1.15, keep in sync with CONFIG.textSlowdown */
}

.fc.fb {
  animation: flap-b 0.104s linear;
}

@keyframes flap-a {
  0% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.15);
    opacity: 0.6;
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes flap-b {
  0% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.15);
    opacity: 0.6;
  }
  100% {
    transform: scaleY(1);
  }
}

.log .tag {
  grid-area: tag;
  justify-self: start;
  color: var(--orange);
  letter-spacing: 0.1em;
}

.log .caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--amber);
  animation: blink 1s steps(1) infinite;
}

/* Rows start hidden only when motion is on. The delayed "show" animation is a
   fallback in case app.js never runs. */
.fx .log li {
  visibility: hidden;
  animation: show 0s 4s forwards;
}

.fx .log.js-on li {
  animation: none;
}

.fx .log.js-on li.is-shown {
  visibility: visible;
}

.fx .log li.is-shown .time,
.fx .log li.is-shown .who {
  animation: flicker 0.35s linear both;
}

.fx .log .tag.is-stamped {
  animation: stamp 0.5s var(--ease-out) both;
}

@media (min-width: 560px) {
  .log li {
    grid-template-columns: 4.2em 14.5em 1fr auto;
    grid-template-areas: "time who msg tag";
  }

  .log .msg {
    min-height: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .log .tag {
    justify-self: end;
  }
}

/* ---------- Stats ---------- */

.stats ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: rgba(237, 230, 218, 0.025);
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 12px 14px;
}

.stats li + li {
  border-left: 1px solid var(--line);
}

.stats .num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.stats .label {
  font-size: 0.6875rem;
  line-height: 1.5;
}

.stats .caption {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (min-width: 560px) {
  .stats li {
    padding: 16px 16px;
  }

  .stats .num {
    font-size: 1.75rem;
  }

  .stats .label {
    font-size: 0.6875rem;
  }
}

/* ---------- Card ---------- */

.card {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

@supports (backdrop-filter: blur(1px)) {
  @media (min-width: 768px) {
    .card {
      backdrop-filter: blur(12px) saturate(1.1);
      -webkit-backdrop-filter: blur(12px) saturate(1.1);
    }
  }
}

/* Corner brackets, a nod to the reticle */
.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-color: var(--amber);
  border-style: solid;
  opacity: 0.8;
}

.card::before {
  left: -1px;
  top: -1px;
  border-width: 1px 0 0 1px;
}

.card::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(224, 164, 88, 0.035);
}

.card-head {
  flex-wrap: wrap;
}

.card-head h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 0.625rem;
  line-height: 1.6;
  color: var(--amber);
}

.card-head h2 .dot {
  flex: none;
  transform: translateY(-1px);
}

.card-head .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 0.6875rem;
  color: var(--label);
}

/* ---------- Calculator ---------- */

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 14px;
  padding: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  transition: border-color 0.2s;
}

.field:focus-within {
  border-left-color: var(--amber);
}

.field label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
  min-height: 2.9em;
}

.num-input {
  display: flex;
  align-items: baseline;
  gap: 4px;
  border-bottom: 1px dashed var(--line-strong);
  transition: border-color 0.2s;
}

.num-input:focus-within {
  border-bottom-color: var(--amber);
  border-bottom-style: solid;
}

.num-input .unit {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--faint);
}

.num-input input {
  width: 100%;
  min-width: 0;
  padding: 4px 0 6px;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  outline: none;
}

.field.is-invalid {
  border-left-color: var(--danger);
}

.field.is-invalid .num-input {
  border-bottom-color: var(--danger);
}

.field-msg {
  min-height: 1.2em;
  margin-top: -2px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--danger);
}

.field-msg:empty {
  visibility: hidden;
}

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

.calc-out {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 28px;
  padding: 18px 16px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.calc-out > div {
  min-width: 0;
}

@media (min-width: 560px) {
  .calc-out {
    grid-template-columns: auto 1fr;
    align-items: end;
  }
}

.out-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.6875rem;
}

.out-cost {
  font-family: var(--mono);
  font-size: 1.125rem;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.out-savings {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.375rem);
  line-height: 1;
  color: var(--amber);
  text-shadow: 0 0 28px rgba(224, 164, 88, 0.25);
}

.out-savings.is-long {
  font-size: clamp(1.4rem, 1rem + 1.8vw, 1.875rem);
}

.out-savings.is-xlong {
  font-size: clamp(1.05rem, 0.8rem + 1.2vw, 1.375rem);
}

/* Odometer */
.odo {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
  white-space: pre;
}

.odo-d {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.odo-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.9s var(--ease-out);
  will-change: transform;
}

.odo-strip span,
.odo-c {
  display: block;
  height: 1em;
  line-height: 1;
}

.odo.is-bump {
  animation: bump 0.6s var(--ease-out);
}

/* Trip meter */
.meter {
  grid-column: 1 / -1;
}

.meter-bar {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 3px;
  height: 10px;
}

.meter-bar i {
  display: block;
  background: rgba(226, 122, 82, 0.28);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease-out);
  transition-delay: calc(var(--i) * 18ms);
}

.meter-bar i.on {
  background: var(--amber);
}

.meter-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--label);
}

.meter-legend b {
  font-weight: 500;
  color: var(--amber);
}

.meter-legend .rem b {
  color: var(--orange);
}

/* ---------- Waitlist form ---------- */


.waitlist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 14px;
}

.waitlist-head h3 {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--amber);
}

.waitlist-head p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.form-row {
  display: grid;
  gap: 12px;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1.3fr 1fr;
  }
}

.tf {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tf label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}

.tf label .opt {
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.tf input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(10, 10, 9, 0.45);
  font-size: 1.0625rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.tf input::placeholder {
  color: rgba(237, 230, 218, 0.38);
}

.tf input:hover {
  border-color: rgba(237, 230, 218, 0.34);
}

.tf input:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(10, 10, 9, 0.65);
  box-shadow: 0 0 0 3px rgba(224, 164, 88, 0.18);
}

.tf input[aria-invalid="true"] {
  border-color: var(--danger);
}

.check {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}

.check .box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid rgba(237, 230, 218, 0.4);
  border-radius: 2px;
  background: rgba(10, 10, 9, 0.45);
  transition: background 0.2s, border-color 0.2s;
}

.check .box svg {
  width: 12px;
  height: 12px;
  stroke: var(--bg);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.3s var(--ease-out);
}

.check input:checked + .box {
  background: var(--amber);
  border-color: var(--amber);
}

.check input:checked + .box svg {
  stroke-dashoffset: 0;
}

.check input:focus-visible + .box {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.check input[aria-invalid="true"] + .box {
  border-color: var(--danger);
}

.check a {
  color: var(--text);
  text-underline-offset: 3px;
}

.check a:hover {
  color: var(--amber);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ts {
  min-height: 0;
  margin-top: 14px;
}

.ts:empty {
  margin-top: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 16px;
}

.form-actions .btn {
  width: 100%;
}

@media (min-width: 560px) {
  .form-actions .btn {
    width: auto;
  }
}

.form-msg {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--danger);
}

.form-msg:empty {
  display: none;
}

.form-done {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  outline: none;
}

.form-done[hidden] {
  display: none;
}

.form-done svg {
  width: 40px;
  height: 40px;
}

.form-done circle,
.form-done path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-done circle {
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  animation: draw 0.8s var(--ease-out) forwards;
}

.form-done path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 0.5s var(--ease-out) 0.55s forwards;
}

.form-done.is-exists circle,
.form-done.is-exists path {
  stroke: var(--amber);
}

.form-done strong {
  display: block;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}

.form-done span {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Humanoid ---------- */

.humanoid {
  margin-top: 56px;
}

.humanoid .label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 0.6875rem;
  color: var(--amber);
}

.humanoid .label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--amber);
}

.humanoid h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.875rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.humanoid .lead {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.steps {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.steps li:hover::after {
  transform: scaleX(1);
}

.steps .n {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--amber);
  padding-top: 2px;
}

.steps .t {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.steps .d {
  font-size: 1rem;
  color: var(--muted);
}

@media (min-width: 560px) {
  .steps li {
    grid-template-columns: 32px 190px 1fr;
    align-items: baseline;
  }

  .steps .n {
    grid-row: auto;
  }
}

.humanoid .then {
  margin: 16px 0 0;
  font-size: 1.0625rem;
  color: var(--text);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 164, 88, 0.4);
  transition: border-color 0.2s, gap 0.3s var(--ease-out);
}

.arrow-link:hover {
  gap: 14px;
  border-bottom-color: var(--amber);
}

/* ---------- Footer ---------- */

.foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
}

.foot .brand .mark {
  width: 26px;
  height: 26px;
}

.foot .brand-name {
  font-size: 0.9375rem;
}

.foot p {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--label);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.foot-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--label);
  text-decoration: none;
  padding: 6px 0;
}

.foot-links a:hover {
  color: var(--amber);
}

@media (min-width: 900px) {
  .foot {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }

  .foot p {
    flex: 1;
  }
}

/* ---------- Scroll reveal ---------- */

.fx [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.fx [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Privacy page ---------- */

.doc {
  max-width: 680px;
  padding: 48px 0 72px;
}

.doc h1 {
  margin: 10px 0 8px;
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.doc .updated {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.doc .intro {
  margin: 0 0 28px;
  font-size: 1.125rem;
  color: var(--text);
}

.doc dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.doc dt {
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.doc dd {
  margin: 8px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.doc dd a {
  color: var(--text);
  text-underline-offset: 3px;
}

.doc dd a:hover {
  color: var(--amber);
}

.doc dd ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.doc dd p {
  margin: 0 0 4px;
  color: var(--text);
}

.doc .back {
  margin-top: 28px;
}

/* ---------- Keyframes ---------- */

@keyframes show {
  to {
    visibility: visible;
  }
}

@keyframes show-op {
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(111, 191, 115, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(111, 191, 115, 0);
  }
}

@keyframes pulse-amber {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 164, 88, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgba(224, 164, 88, 0);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes shard-in {
  from {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(0.45em);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes flicker {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  35% {
    opacity: 0.2;
  }
  55%,
  100% {
    opacity: 1;
  }
}

@keyframes stamp {
  0% {
    opacity: 0;
    transform: scale(1.8) rotate(-4deg);
    letter-spacing: 0.3em;
  }
  60% {
    opacity: 1;
    transform: scale(0.96) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes bump {
  0% {
    text-shadow: 0 0 28px rgba(224, 164, 88, 0.25);
  }
  30% {
    text-shadow: 0 0 36px rgba(224, 164, 88, 0.7);
  }
  100% {
    text-shadow: 0 0 28px rgba(224, 164, 88, 0.25);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes grain {
  0% {
    transform: translate(0, 0);
  }
  17% {
    transform: translate(-5%, -8%);
  }
  33% {
    transform: translate(-12%, 4%);
  }
  50% {
    transform: translate(7%, -12%);
  }
  67% {
    transform: translate(-4%, 12%);
  }
  83% {
    transform: translate(10%, 3%);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* ---------- Reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .bg-video {
    display: none !important;
  }

  .bg {
    background-image: url("/assets/video/poster.jpg");
    background-image: image-set(url("/assets/video/poster.webp") type("image/webp"), url("/assets/video/poster.jpg") type("image/jpeg"));
  }
}

/* ---------- Collapsible panels (calculator, waitlist) ---------- */

.toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 14px;
}

/* On wide screens the three links stay on one row, even past the text column. */
/* Wide screens: the action row and the CTA row run edge to edge of the block. */
@media (min-width: 900px) {
  .toggles {
    justify-content: space-between;
  }

  .cta-row {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .cta-row .note {
    flex: 0 1 auto;
    text-align: right;
  }

  .cta-row .btn {
    flex: none;
    white-space: nowrap;
  }
}

.toggles .arrow-link {
  margin-top: 0;
}

/* A label never breaks inside itself; a whole link wraps to the next row instead. */
.toggles > .toggle,
.toggles > .arrow-link {
  flex: none;
  white-space: nowrap;
  letter-spacing: 0.1em;
}

section.more {
  margin-top: 0;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid rgba(224, 164, 88, 0.45);
  background: none;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  cursor: pointer;
  transition: border-color 0.2s, gap 0.3s var(--ease-out);
}

.toggle:hover {
  gap: 14px;
  border-bottom-color: var(--amber);
}

.toggle .arr {
  display: inline-block;
  transition: transform 0.45s var(--ease-out);
}

.toggle[aria-expanded="true"] .arr {
  transform: rotate(90deg);
}

/* Height animation with the grid 0fr to 1fr technique. Open by default
   (no JS), collapsed only once app.js is running. */
.collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}

.collapse-inner {
  min-height: 0;
  overflow: hidden;
}

.collapse .card {
  margin-top: 16px;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

.js .collapse:not(.is-open) {
  grid-template-rows: 0fr;
}

.js .collapse:not(.is-open) .card {
  opacity: 0;
  transform: translateY(-12px);
}

/* The card's corner brackets sit at -1px; keep them visible while open. */
.collapse.is-open .collapse-inner {
  overflow: visible;
}

.collapse.is-animating .collapse-inner {
  overflow: hidden;
}

/* ---------- Standalone waitlist card ---------- */

.waitlist {
  padding: 18px 16px 20px;
}

.waitlist-intro {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  color: var(--text);
}

/* ---------- Contact modal ---------- */

html:has(dialog[open]) {
  overflow: hidden;
}

.modal {
  width: min(560px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}

.modal::backdrop {
  background: rgba(12, 11, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 40px 24px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #121110;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

@media (min-width: 560px) {
  .modal-card {
    padding: 52px 56px 40px;
  }
}

.fx .modal[open] .modal-card {
  animation: modal-in 0.5s var(--ease-out) both;
}

.fx .modal[open]::backdrop {
  animation: fade-in 0.35s var(--ease) both;
}

.modal.is-closing .modal-card {
  animation: modal-out 0.22s var(--ease) both;
}

.modal.is-closing::backdrop {
  animation: fade-out 0.22s var(--ease) both;
}

.modal-x {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 2px;
  background: none;
  color: var(--label);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.3s var(--ease-out);
}

.modal-x:hover {
  color: var(--text);
  background: rgba(237, 230, 218, 0.06);
  transform: rotate(90deg);
}

.modal-x svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.modal h2 {
  margin: 0;
  padding-right: 32px;
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.modal-sub {
  margin: 10px 0 8px;
  font-size: 1rem;
  color: var(--muted);
}

/* Underlined fields, like the original contact card */
.uf {
  display: flex;
  flex-direction: column;
  margin-top: 26px;
}

.uf label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}

.uf .req {
  color: var(--orange);
}

.uf input {
  width: 100%;
  padding: 12px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1.0625rem;
  outline: none;
  transition: border-color 0.25s;
}

.uf input:hover {
  border-bottom-color: rgba(237, 230, 218, 0.36);
}

.uf input:focus {
  border-bottom-color: var(--amber);
  box-shadow: 0 1px 0 0 var(--amber);
}

.uf input[aria-invalid="true"] {
  border-bottom-color: var(--danger);
}

.modal .check {
  margin-top: 26px;
}

.btn--block {
  width: 100%;
  margin-top: 22px;
  min-height: 52px;
}

.modal-alt {
  margin: 18px 0 0;
  font-size: 0.875rem;
  color: var(--faint);
}

.modal-alt a {
  color: var(--label);
  text-underline-offset: 3px;
}

.modal-alt a:hover {
  color: var(--amber);
}

.modal .form-done {
  padding: 8px 0 4px;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes modal-out {
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

.toggle[aria-expanded="true"] {
  color: var(--text);
  border-bottom-color: var(--amber);
}
