/* seawall.sh: a deep-sea night palette, teal and blue light, white type.
   Layout: one column of wide sections; content capped near 1120px. */
/* Funnel Display for headings, Funnel Sans for text, JetBrains Mono for code and the name.
   Self-hosted variable fonts, latin subset; licences in /assets/fonts/. */
@font-face { font-family: "Funnel Display"; src: url("/assets/fonts/funnel-display.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("/assets/fonts/funnel-sans.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #050d16;
  --bg-2: #08131f;
  --panel: #0b1a29;
  --line: rgba(148, 197, 255, 0.10);
  --line-2: rgba(148, 197, 255, 0.18);
  --text: #e6f1fa;
  --muted: #8ea4b8;
  --faint: #5d7488;
  --teal: #2dd4bf;
  --sky: #0ea5e9;
  --deep: #0284c7;
  --white: #eaf7ff;
  --red: #f87171;
  --green: #4ade80;
  --display: "Funnel Display", "Funnel Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Funnel Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --radius: 14px;
  /* One vertical rhythm: every section pads half of --space, so any two neighbours sit --space apart. */
  --space: clamp(64px, 8vw, 104px);
  --half: calc(var(--space) / 2);
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* The hero's glow and waves run past the content edges; clip them to the page. */
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
code, kbd, pre { font-family: var(--mono); }
code {
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: rgba(45, 212, 191, 0.08);
  color: #b9f5ec;
}
kbd {
  font-size: 0.85em;
  padding: 0.05em 0.45em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
}
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  background: rgba(5, 13, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 19px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
  padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(45, 212, 191, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45,212,191,.55); } 70% { box-shadow: 0 0 0 9px rgba(45,212,191,0); } 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0); } }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px 170px;
}
.hero::before {
  content: "";
  position: absolute; inset: -120px -40vw 0;
  background:
    radial-gradient(600px 380px at 18% 30%, rgba(14, 165, 233, .16), transparent 70%),
    radial-gradient(520px 340px at 80% 40%, rgba(45, 212, 191, .10), transparent 70%);
  z-index: -1;
}
.eyebrow { margin: 0 0 14px; font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(56px, 9vw, 96px); line-height: 1.02; margin: 0 0 22px; font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 16px; font-weight: 750; }
h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.01em; }
.grad { background: linear-gradient(100deg, var(--sky), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 14px; }
.lede.small { font-size: 16px; color: var(--faint); margin-bottom: 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 11px;
  font-weight: 650; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(100deg, var(--deep), var(--teal)); color: #031018; box-shadow: 0 8px 30px -10px rgba(45, 212, 191, .6); }
.btn.primary:hover { box-shadow: 0 10px 36px -8px rgba(45, 212, 191, .75); }
.btn.ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, .04); }
.install { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 11px; }
.install code { background: none; padding: 0; color: var(--text); font-size: 15px; white-space: nowrap; }
.soon { white-space: nowrap; }
.prompt { color: var(--teal); }
.soon { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--bg); background: var(--teal); padding: 4px 7px; border-radius: 6px; }

/* Terminal */
.term {
  min-width: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0c1c2b, #08131f);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(45, 212, 191, .04), 0 0 80px -30px rgba(14, 165, 233, .35);
  overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3a4a; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; font: 12px var(--mono); color: var(--faint); }
.term-body {
  margin: 0; padding: 18px 20px 22px;
  min-height: 330px;
  font-size: 14px; line-height: 1.65; color: #d4e2ee;
  white-space: pre; overflow-x: auto;
}
.term.small .term-body { min-height: 0; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--teal); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.c-dim { color: var(--faint); } .c-teal { color: var(--teal); } .c-sky { color: var(--sky); }
.c-green { color: var(--green); } .c-yellow { color: #facc15; } .c-red { color: var(--red); } .c-bold { color: var(--white); font-weight: 700; }

/* Waves under the hero */
.waves { position: absolute; left: 50%; bottom: 0; width: 100vw; height: 130px; transform: translateX(-50%); overflow: hidden; pointer-events: none; }
.wave { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.wave path { fill: currentColor; }
.w1 { color: rgba(2, 132, 199, .16); animation: drift 22s linear infinite; }
.w2 { color: rgba(14, 165, 233, .12); animation: drift 15s linear infinite reverse; bottom: -8px; }
.w3 { color: rgba(45, 212, 191, .10); animation: drift 30s linear infinite; bottom: -16px; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Introduction: a second hero, big type beside a whoami prompt. */
.intro {
  position: relative;
  padding-block: calc(var(--space) * .75) var(--half);
  background: linear-gradient(180deg, rgba(2, 132, 199, .10), rgba(5, 13, 22, 0) 75%);
  overflow: hidden;
}
.intro::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 50%;
  width: 560px;
  height: 372px;
  transform: translateY(-50%);
  background: url("/assets/logo-mark.svg") no-repeat center / contain;
  opacity: .045;
  pointer-events: none;
}
.intro-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: start; }
.whoami {
  margin-top: 10px;
  padding: 16px 18px;
  font: 15px/1.8 var(--mono);
  color: var(--muted);
  background: rgba(8, 19, 31, .75);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 0 60px -25px rgba(45, 212, 191, .45);
}
.whoami .out { color: var(--teal); font-weight: 600; }
.intro-head {
  margin: 0 0 22px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.035em;
}
.intro-head .me { background: linear-gradient(100deg, var(--sky), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-body {
  margin: 0 0 18px;
  max-width: 36em;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.6;
  color: var(--muted);
}
.intro-body:first-of-type { color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .js .intro .part { opacity: 0; transition: opacity .9s ease; }
  .js .intro .seen .part { opacity: 1; }
  .js .intro .seen .part:nth-child(2) { transition-delay: .3s; }
  .js .intro .seen .part:nth-child(3) { transition-delay: .6s; }
}

/* Sections */
section { scroll-margin-top: 80px; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.sub { color: var(--muted); font-size: 18px; margin: 0; }

/* Monitoring and security: two large panels. */
.platform, #features, .centre, .memory, .roadmap { padding-block: var(--half); }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pillar {
  position: relative; overflow: hidden;
  padding: 30px 30px 28px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 165, 233, .07), rgba(11, 26, 41, 0) 45%), var(--panel);
  border: 1px solid var(--line-2);
  scroll-margin-top: 90px;
}
#security.pillar { background: linear-gradient(180deg, rgba(45, 212, 191, .08), rgba(11, 26, 41, 0) 45%), var(--panel); }
.pillar-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pillar-top svg {
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(45, 212, 191, .10); border: 1px solid rgba(45, 212, 191, .25);
}
.pillar-top h3 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.pillar > p { margin: 0 0 20px; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.ladder { display: grid; gap: 8px; margin: 0 0 20px; padding: 14px; border-radius: 12px; background: rgba(5, 13, 22, .6); border: 1px solid var(--line); }
.rung { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; }
.sev { font: 700 12px/1 var(--mono); padding: 5px 8px; border-radius: 6px; }
.s0 { background: rgba(248, 113, 113, .16); color: var(--red); }
.s1 { background: rgba(250, 204, 21, .14); color: #facc15; }
.s2 { background: rgba(14, 165, 233, .16); color: var(--sky); }
.s3 { background: rgba(234, 247, 255, .08); color: var(--white); }
.route { color: var(--muted); margin-left: 6px; }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text); font-size: 15.5px; line-height: 1.55; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .35em; width: 13px; height: 7px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { font: 12.5px var(--mono); color: var(--muted); padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-2); }

/* Feature cards: a soft light follows the pointer. */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  --x: 50%; --y: 0%;
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--radius);
  background: radial-gradient(420px circle at var(--x) var(--y), rgba(45, 212, 191, .09), transparent 45%), var(--panel);
  border: 1px solid var(--line);
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(45, 212, 191, .28); transform: translateY(-3px); }
.card svg { width: 26px; height: 26px; margin-bottom: 16px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* Command centre */
.centre { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.showcase { min-width: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button {
  font: 600 14px var(--sans); color: var(--muted);
  background: none; border: 1px solid transparent; border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: color .2s, background .2s, border-color .2s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); background: rgba(45, 212, 191, .10); border-color: rgba(45, 212, 191, .35); }
.screen { position: relative; display: grid; }
.shot { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(8px) scale(.995); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.shot.is-on { opacity: 1; transform: none; pointer-events: auto; }
.shot img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 40px 90px -45px rgba(0, 0, 0, .9), 0 0 0 1px var(--line-2); }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.progress { height: 2px; margin-top: 18px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--deep), var(--teal)); }
.progress.run span { animation: fill 7s linear forwards; }
@keyframes fill { to { width: 100%; } }

/* Memory bar demo */
.memory { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.memory-copy p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.membar { min-width: 0; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.membar-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.membar-head b { color: var(--text); font-weight: 650; }
.bar { display: flex; height: 6px; border-radius: 4px; overflow: hidden; background: #1a2735; }
.bar span { height: 100%; width: 0; transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }
.bar span + span { margin-left: 2px; }
.legend { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; font-size: 14.5px; }
.legend li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.legend i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.legend span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Safety */
.safety { margin-block: var(--half); padding-block: var(--space); background: var(--bg-2); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.points li { padding-left: 22px; position: relative; color: var(--muted); }
.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.points b { color: var(--text); }

/* Roadmap: one sideways timeline. The finished milestones, a marker for now, then the plan. */
.rm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.rm-head > div:first-child { max-width: 720px; }
.rm-controls { display: flex; gap: 8px; flex: none; }
.rm-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text);
  font-size: 24px; line-height: 1; cursor: pointer;
  transition: border-color .2s, background .2s, opacity .2s;
}
.rm-btn:hover:not(:disabled) { border-color: rgba(45, 212, 191, .45); background: rgba(45, 212, 191, .08); }
.rm-btn:disabled { opacity: .35; cursor: default; }
.rm-viewport {
  --edge: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 96px), transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 96px), transparent);
}
.rm-viewport::-webkit-scrollbar { display: none; }
.rm-viewport.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rm-viewport:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; border-radius: 0; }
.rm-track { display: flex; margin: 0; padding: 8px var(--edge) 12px; list-style: none; width: max-content; }
.rm-item, .rm-here { position: relative; flex: none; scroll-snap-align: start; }
.rm-item { width: 300px; padding-right: 22px; }
.rm-here { width: 210px; padding-right: 22px; }
/* The line runs through every milestone: solid where it's done, dashed ahead. */
.rm-item::before, .rm-here::before {
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px;
  background: linear-gradient(90deg, var(--deep), var(--teal));
}
.rm-item.next::before, .rm-item.later::before {
  background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px);
}
.rm-here::before { left: 20px; background: linear-gradient(90deg, var(--teal), var(--line-2)); }
.rm-here-text { position: absolute; top: 64px; left: 0; right: 22px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.rm-node {
  position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2);
}
.rm-item.done .rm-node { background: var(--teal); border-color: var(--teal); }
.rm-item.next .rm-node { border-color: var(--sky); }
.rm-here .rm-node { left: 4px; top: -2px; width: 26px; height: 26px; background: var(--teal); border: 5px solid var(--bg); box-shadow: 0 0 0 2px var(--teal); animation: pulse 2.4s infinite; }
.rm-here-label { position: absolute; top: 40px; left: 0; font: 600 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); white-space: nowrap; }
.rm-card {
  margin-top: 40px; padding: 20px 20px 22px; min-height: 196px;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s;
}
.rm-card:hover { border-color: rgba(45, 212, 191, .28); transform: translateY(-3px); }
.rm-item.later .rm-card { background: rgba(11, 26, 41, .55); border-style: dashed; }
.rm-card h3 { margin: 14px 0 8px; }
.rm-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.chip { font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; }
.chip.done { background: rgba(45, 212, 191, .14); color: var(--teal); }
.chip.next { background: rgba(14, 165, 233, .16); color: var(--sky); }
.chip.later { background: rgba(234, 247, 255, .08); color: var(--white); }
.rm-progress { height: 2px; margin-top: 26px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rm-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--deep), var(--teal)); }
@media (prefers-reduced-motion: no-preference) {
  .js .rm-viewport .rm-card { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease, border-color .25s; }
  .js .rm-viewport.seen .rm-card { opacity: 1; transform: none; }
}

/* Journey: numbered chapters on a vertical rail, with the heading pinned beside them. */
.journey { padding-block: var(--half) var(--space); }
.jr-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.jr-head { position: sticky; top: 110px; }
.jr { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.jr::before {
  content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--deep) 70%, transparent);
}
.jr-item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 22px; }
.jr-num {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 14px var(--mono); color: var(--teal);
  background: var(--bg); border: 2px solid rgba(45, 212, 191, .45);
}
.jr-item:last-child .jr-num { background: var(--teal); color: var(--bg); border-color: var(--teal); animation: pulse 2.4s infinite; }
.jr-body h3 { margin: 9px 0 8px; font-size: 21px; }
.jr-body p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.65; max-width: 40em; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot p { margin: 0; color: var(--faint); font-size: 14px; }

/* Reveal on scroll: visible by default, animated in only once the script says so. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.seen { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero, .memory, .split, .intro-grid, .jr-grid { grid-template-columns: 1fr; gap: 40px; }
  .jr-head { position: static; }
  .whoami { justify-self: start; }
  .intro::after { width: 360px; height: 240px; right: -120px; }
  .hero { padding-top: 64px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: 1fr; }
  .rm-item { width: min(78vw, 300px); }
  .rm-head { align-items: flex-start; }
  .nav nav { display: none; }
  .pill { margin-left: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .legend { grid-template-columns: 1fr; }
  .term-body { font-size: 12.5px; min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.note { margin: 18px 0 0; font-size: 13px; color: var(--faint); }

/* The name, wherever it appears: monospace, in the accent colour. */
.sw { font-family: var(--mono); font-size: 0.92em; font-weight: 600; color: var(--teal); letter-spacing: -0.01em; }
.wordmark { font-family: var(--mono); letter-spacing: -0.04em; }
h1.wordmark { font-weight: 700; }
.card code, .rm-card code { white-space: nowrap; }
.rm-item { display: flex; flex-direction: column; }
.rm-item .rm-card { flex: 1; }
/* Code shows exactly what the CLI prints: no ligatures turning -> into an arrow. */
code, kbd, pre, .term-body, .sw, .wordmark, .tags span, .chip, .sev { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }
.intro-body:last-child { margin-bottom: 0; }
