/* kmdn.dev
   Built on the number6 design system: Instrument Serif display, Geist interface,
   Geist Mono technical labels, pure black and white layout, spectral colour
   reserved for live detail. Black -> white -> black narrative arc. */

/* ------------------------------------------------------------------ tokens */
:root {
  --radius: 0.5rem;

  --black: #020306;
  --ink: #08090b;
  --white: #ffffff;
  --paper: #f7f7f5;
  --line-dark: rgba(255, 255, 255, 0.18);
  --line-light: rgba(8, 9, 11, 0.18);
  --muted-dark: #a7adb5;
  --muted-light: #5e6268;

  --metal-white: #ddfbff;
  --cyan: #71e1f2;
  --blue: #83a2ff;
  --violet: #766bff;
  --warm: #d8a06d;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Geist", "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;

  --gutter: 24px;
  --content: min(100% - 2 * var(--gutter), 1440px);
  --measure: 68ch;

  /* section-scoped surface, flipped by .tone-light / .tone-dark */
  --bg: var(--black);
  --fg: var(--white);
  --muted: var(--muted-dark);
  --line: var(--line-dark);
}

@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 64px; } }

.tone-dark { --bg: var(--black); --fg: var(--white); --muted: var(--muted-dark); --line: var(--line-dark); }
.tone-light { --bg: var(--white); --fg: var(--ink); --muted: var(--muted-light); --line: var(--line-light); }
.tone-paper { --bg: var(--paper); --fg: var(--ink); --muted: var(--muted-light); --line: var(--line-light); }

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

html {
  scroll-behavior: smooth;
  background: var(--black);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
}

h1 { font-size: clamp(3.4rem, 8vw, 8.5rem); line-height: 0.9; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.6rem); line-height: 1.0; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; letter-spacing: -0.02em; }

p { margin: 0; }

.lead {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--muted);
  max-width: 34ch;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 9px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(113, 225, 242, 0.18);
  vertical-align: 0.1em;
  animation: pulse 3.2s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* --------------------------------------------------------------- structure */
.section {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding: clamp(96px, 12vw, 180px) 0;
}

.wrap { width: var(--content); margin-inline: auto; }

.grid12 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (min-width: 900px) {
  .grid12 { grid-template-columns: repeat(12, 1fr); gap: 32px; }
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------------------ header */
.header {
  position: fixed;
  inset: 20px 24px auto;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  pointer-events: none;
  color: var(--white);
  transition: color 0.3s ease;
}

.header[data-tone="light"] { color: var(--ink); }

.header > * { pointer-events: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  min-height: 44px;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand svg { width: 22px; height: 22px; }

.header .brand {
  padding: 7px 16px 7px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(3, 4, 7, 0.56);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.12);
  transition: background 0.24s, border-color 0.24s;
}

.header[data-tone="light"] .brand {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.72);
}

.nav {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(3, 4, 7, 0.56);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.12);
  transition: background 0.24s, border-color 0.24s, box-shadow 0.24s;
}

.header[data-tone="light"] .nav {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.72);
}

.header[data-scrolled="true"] .nav { box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2); }

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 480;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.nav a:hover { background: rgba(255, 255, 255, 0.1); }
.header[data-tone="light"] .nav a:hover { background: rgba(8, 9, 11, 0.07); }

.header__action { justify-self: end; }

@media (min-width: 900px) { .nav { display: flex; } }

/* --------------------------------------------------------------------- cta */
.cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 25px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(118deg, #08090b 18%, #2c323b 48%, #0a0b0d 74%);
  box-shadow:
    0 5px 11px rgba(0, 0, 0, 0.72),
    0 16px 33px rgba(0, 0, 0, 0.5),
    0 31px 65px rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
              background 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.18s ease;
}

/* one-pixel spectral rim, restrained */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg,
    rgba(221, 251, 255, 0.5), rgba(113, 225, 242, 0.28) 28%,
    rgba(255, 255, 255, 0.06) 52%, rgba(118, 107, 255, 0.3) 82%,
    rgba(221, 251, 255, 0.42));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.8;
  z-index: -1;
}

.cta:hover {
  background: linear-gradient(118deg, #0b0d10 14%, #3b424d 47%, #0c0e11 76%);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.8),
    0 21px 45px rgba(0, 0, 0, 0.58),
    0 45px 94px rgba(0, 0, 0, 0.38);
}

.cta:active { transform: translateY(1px); }
.cta svg { width: 18px; height: 18px; transition: transform 0.18s; }
.cta:hover svg { transform: translateX(3px); }

.cta--ghost {
  background: transparent;
  box-shadow: none;
  color: currentColor;
  border: 1px solid var(--line);
}

.cta--ghost::before { display: none; }
.cta--ghost:hover { background: rgba(255, 255, 255, 0.07); box-shadow: none; }
.tone-light .cta--ghost:hover, .tone-paper .cta--ghost:hover { background: rgba(8, 9, 11, 0.05); }

.cta--compact { min-height: 44px; padding: 0 18px; font-size: 12px; gap: 8px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 480;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s, gap 0.2s;
}

.textlink:hover { border-color: currentColor; gap: 12px; }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}

/* the one restrained spectral field: kmdn's "live" signal, not a gradient section */
.hero__field {
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 22% 32%, rgba(113, 225, 242, 0.16), transparent 68%),
    radial-gradient(38% 34% at 76% 26%, rgba(118, 107, 255, 0.16), transparent 70%),
    radial-gradient(52% 44% at 54% 78%, rgba(131, 162, 255, 0.1), transparent 72%);
  filter: blur(18px);
  opacity: 0.85;
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 3px 3px;
  mask-image: radial-gradient(80% 60% at 50% 40%, #000, transparent 78%);
}

.hero .wrap { position: relative; z-index: 1; }

.hero__copy { display: flex; flex-direction: column; gap: 28px; grid-column: 1 / -1; }

@media (min-width: 900px) { .hero__copy { grid-column: 1 / span 8; } }

.hero h1 { font-size: clamp(2.9rem, 5.6vw, 5.4rem); max-width: 17ch; }
.hero .lead { max-width: 46ch; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.hero__shot { grid-column: 1 / -1; margin-top: clamp(56px, 7vw, 96px); }

.scrollcue {
  display: none;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

@media (min-width: 900px) { .scrollcue { display: block; } }

/* ------------------------------------------------------------------- frame */
.frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
}

.tone-light .frame, .tone-paper .frame { box-shadow: 0 28px 70px rgba(8, 9, 11, 0.14); }

.frame__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(127, 127, 127, 0.06);
}

.frame__bar i {
  width: 9px; height: 9px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.22;
}

.frame__bar span {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.frame img { width: 100%; height: auto; }

/* ----------------------------------------------------------------- problem */
.split { row-gap: 56px; }
.split__head { grid-column: 1 / -1; }
.split__a, .split__b { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; }

@media (min-width: 900px) {
  .split__head { grid-column: 1 / span 6; }
  .split__a { grid-column: 7 / span 3; }
  .split__b { grid-column: 10 / span 3; }
}

.split h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 560; letter-spacing: -0.01em; }
.split p { color: var(--muted); font-size: 15px; line-height: 1.65; }

.split .claim {
  grid-column: 1 / -1;
  margin-top: clamp(56px, 7vw, 104px);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.split .claim em { font-style: normal; color: var(--cyan); }

/* ------------------------------------------------------------------- guide */
.guide__head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) { .guide__head { grid-column: 4 / -1; } }

.guide__body { grid-column: 1 / -1; }

@media (min-width: 1000px) {
  .guide__body {
    display: grid;
    grid-template-columns: minmax(280px, 3.6fr) 8fr;
    gap: 64px;
    align-items: start;
  }
}

.steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }

.step {
  position: relative;
  padding: 22px 0 22px 28px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: opacity 0.3s ease;
  opacity: 0.4;
}

.step:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 1000px) {
  .step { min-height: 164px; display: flex; flex-direction: column; justify-content: center; }
  /* the last step still has to reach the activation anchor while the stage is stuck */
  .steps { padding-bottom: 22vh; }
}
.step[aria-current="true"] { opacity: 1; }
.step:hover { opacity: 0.8; }
.step[aria-current="true"]:hover { opacity: 1; }

.step::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 2px; height: 0;
  background: var(--cyan);
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step[aria-current="true"]::before { height: calc(100% + 1px); }

.step__n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.step__t {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 540;
  letter-spacing: -0.015em;
}

.step__d {
  display: block;
  margin-top: 6px;
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
}

.step[aria-current="true"] .step__d { max-height: 8em; opacity: 1; }

.stage { position: relative; margin-top: 40px; }

@media (min-width: 1000px) {
  .stage { position: sticky; top: 132px; margin-top: 0; }
}

.stage__shots {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  aspect-ratio: 16 / 10;
  box-shadow: 0 28px 70px rgba(8, 9, 11, 0.16);
}

.stage__shots img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.012);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage__shots img[data-active="true"] { opacity: 1; transform: scale(1); }

.stage__rail {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.stage__rail i {
  flex: 1;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.stage__rail i[data-done="true"] { background: var(--ink); }
.stage__rail i[data-active="true"] { background: var(--cyan); }

.stage__cap {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  min-height: 1.4em;
}

/* mobile: no sticky choreography, each step carries its own still */
.guide--static .stage { display: none; }
.guide--static .step { opacity: 1; cursor: default; }
.guide--static .step__d { max-height: none; opacity: 1; }
.guide--static .step__shot { display: block; margin: 18px 0 4px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.guide--static .steps { padding-bottom: 0; }
.step__shot { display: none; }

/* ---------------------------------------------------------------- features */
.feat__head { grid-column: 1 / -1; margin-bottom: clamp(40px, 5vw, 72px); display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .feat__head { grid-column: 1 / span 7; } }

.cards { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }

@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(28px, 3vw, 40px);
  background: var(--bg);
}

.card__n { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.card h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 560; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.card__meta { margin-top: auto; padding-top: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------------ agents */
.agents__copy { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 24px; }
.agents__shot { grid-column: 1 / -1; }

@media (min-width: 950px) {
  .agents__copy { grid-column: 1 / span 5; align-self: center; }
  .agents__shot { grid-column: 7 / span 6; }
}

.modes { display: flex; flex-direction: column; margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.modes li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.modes b { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; color: var(--fg); padding-top: 2px; }
.modes span { color: var(--muted); line-height: 1.6; }

/* -------------------------------------------------------------------- code */
.code {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(127, 127, 127, 0.05);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
  overflow-x: auto;
  color: var(--fg);
}

.code .c { color: var(--muted); }
.code .p { color: var(--cyan); }

/* ------------------------------------------------------------------ themes */
.themes__head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 18px; margin-bottom: 48px; }
@media (min-width: 900px) { .themes__head { grid-column: 1 / span 6; } }

.themes__strip {
  grid-column: 1 / -1;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) { .themes__strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .themes__strip { grid-template-columns: repeat(4, 1fr); } }

.themes__strip figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.themes__strip img { border: 1px solid var(--line); border-radius: 8px; width: 100%; }
.themes__strip figcaption { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------------ install */
.install__head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 22px; margin-bottom: 56px; }
@media (min-width: 900px) { .install__head { grid-column: 1 / span 6; } }

.install__cols { grid-column: 1 / -1; display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .install__cols { grid-template-columns: 1fr 1fr; gap: 64px; } }

.note {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.note b { color: var(--fg); font-weight: 560; }

.reqs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.reqs li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.reqs li:first-child { border-top: 1px solid var(--line); }
.reqs b { color: var(--fg); font-weight: 540; }

/* --------------------------------------------------------------- final cta */
.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 620px;
  padding: clamp(96px, 12vw, 180px) var(--gutter);
  text-align: center;
  background: var(--black);
  color: var(--white);
}

.final h2 { max-width: 18ch; }
.final p { max-width: 54ch; color: var(--muted-dark); font-size: 18px; line-height: 1.6; }

@media (max-width: 700px) { .final { align-items: flex-start; text-align: left; min-height: 520px; } }

/* ------------------------------------------------------------------ footer */
.footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  padding: 80px var(--gutter) 40px;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
}

@media (min-width: 900px) {
  .footer { grid-template-columns: minmax(260px, 1.2fr) 2fr; gap: 80px 10vw; padding: 96px max(var(--gutter), 50vw - 720px); }
}

.footer__lead { display: flex; flex-direction: column; gap: 22px; max-width: 420px; }
.footer__lead p { color: var(--muted-dark); font-size: 15px; line-height: 1.65; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (min-width: 640px) { .footer__links { grid-template-columns: repeat(3, 1fr); } }
.footer__links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__links span { margin-bottom: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-dark); }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  color: var(--muted-dark);
}

/* --------------------------------------------------------------- reveal-in */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal][data-shown="true"] { opacity: 1; transform: none; }

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__field { animation: none; }
}

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

.visually-hidden:focus {
  position: fixed;
  top: 20px; left: 24px;
  z-index: 200;
  width: auto; height: auto;
  margin: 0; padding: 12px 18px;
  clip: auto; clip-path: none;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 540;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.12em 0.36em;
  border-radius: 4px;
  background: rgba(127, 127, 127, 0.14);
}

.code code { background: none; padding: 0; }
