/* ScopeWeaver landing — static stylesheet.
   World: the app console expanded to page scale. Near-white ground, ink text,
   one restrained blue reserved for links and focus, hairline rules, a faint
   scope grid echoing the logo. Schibsted Grotesk for voice, JetBrains Mono for
   identifiers and commands. No framework, no CDN, no tracker. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
}

:root {
  --ground: #fafafa;
  --surface: #ffffff;
  --surface-sunk: #f4f4f3;
  --ink: #171717;
  --ink-2: #3f3f3f;
  --ink-3: #595959;
  --line: #e6e6e4;
  --line-2: #d4d4d2;
  --blue: #2563eb;
  --blue-strong: #1b45c9;
  --blue-wash: #eef2fe;
  --link: #2563eb;
  --link-hover: #1b45c9;
  --dark: #171717;
  --dark-raise: #232323;
  --dark-line: #333331;
  --dark-ink: #fafafa;
  --dark-ink-2: #adb0b8;
  --blue-light: #7cafff;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;
  --radius-sm: 9px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Korean edition keeps the Latin display face for ASCII and layers the system
   Hangul stack behind it, so headings read in the same voice across languages. */
:lang(ko) {
  --sans: "Schibsted Grotesk", "Apple SD Gothic Neo", "Pretendard",
    "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}
/* Hangul wraps at word (eojeol) boundaries; long Latin runs may still break. */
html:lang(ko) {
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Themed browser surfaces — selection, caret, scrollbar, tabular numerals. */
::selection {
  background: var(--blue);
  color: #fff;
}
:root {
  scrollbar-color: var(--line-2) var(--ground);
}
::-webkit-scrollbar {
  width: 13px;
  height: 13px;
}
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border: 3px solid var(--ground);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b4b4b1;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent);
}
a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}
.band-dark {
  --link: #7cafff;
  --link-hover: #a8c8ff;
}

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}
.band-dark :focus-visible {
  outline-color: var(--blue-light);
}

h1,
h2,
h3 {
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
  margin: 0;
}

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

code,
kbd,
samp {
  font-family: var(--mono);
  font-feature-settings: "tnum", "zero";
}
/* Inline identifiers in prose may break anywhere rather than widen the layout. */
:where(p, li) > code {
  overflow-wrap: anywhere;
  word-break: normal;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: top 0.18s var(--ease);
}
.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 620;
  letter-spacing: -0.03em;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
}
.site-header .brand,
.nav-toggle,
.header-tools,
.lang-switch,
.ghlink {
  flex: none;
  white-space: nowrap;
}
.brand:hover {
  color: var(--ink);
}
.brand img {
  width: 30px;
  height: 30px;
}
.primary-nav {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}
.primary-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
}
.primary-nav a:hover {
  color: var(--ink);
  background: var(--surface-sunk);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.header-tools.has-nav {
  margin-left: 1rem;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
}
.lang-switch a,
.lang-switch span {
  padding: 0.3rem 0.66rem;
  text-decoration: none;
  color: var(--ink-3);
  line-height: 1.4;
}
.lang-switch [aria-current="true"] {
  background: var(--ink);
  color: #fff;
}
.ghlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 0.42rem 0.68rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
}
.ghlink:hover {
  color: var(--ink);
  background: var(--surface-sunk);
}
.ghlink svg {
  width: 17px;
  height: 17px;
}
.nav-toggle {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.82rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s var(--ease), background 0.14s var(--ease),
    border-color 0.14s var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.18), 0 6px 14px -8px rgba(23, 23, 23, 0.3);
}
.btn--primary:hover {
  background: var(--blue-strong);
  color: #fff;
}
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--ink-3);
  background: var(--surface);
}
.btn svg {
  width: 17px;
  height: 17px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-top: 5rem;
  padding-bottom: 5rem;
}
/* faint scope grid echoing the logo's 3x3 lattice */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    120% 90% at 18% 8%,
    #000 0%,
    transparent 62%
  );
  mask-image: radial-gradient(120% 90% at 18% 8%, #000 0%, transparent 62%);
  opacity: 0.5;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__lede {
  max-width: 34rem;
}
.provenance-line {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  text-transform: none;
  margin: 0 0 1.4rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
}
.provenance-line span {
  white-space: nowrap;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  font-weight: 660;
  margin-bottom: 1.1rem;
}
.hero h1 .accent {
  color: var(--blue);
}
.hero__offer {
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 1.9rem;
  max-width: 33ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.hero__stack {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}
.hero__stack strong {
  color: var(--ink-2);
  font-weight: 600;
}

/* Framed screenshot — the app made tangible */
.shot {
  margin: 0;
}
.shot__frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 4px -2px rgba(23, 23, 23, 0.12),
    0 12px 26px -16px rgba(23, 23, 23, 0.28);
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunk);
}
.shot__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-2);
  display: block;
}
.shot__bar span {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  font-feature-settings: normal;
}
.shot__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 1000;
  background: var(--surface-sunk);
}
.hero__media {
  min-width: 0;
}
.hero__media .shot__frame {
  box-shadow: 0 3px 6px -3px rgba(23, 23, 23, 0.14),
    0 16px 34px -20px rgba(23, 23, 23, 0.3);
}
figcaption.demo {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}
figcaption.demo::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
  flex: none;
}

/* ---------- Generic section ---------- */
.section {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  border-bottom: 1px solid var(--line);
}
.section__head {
  max-width: 48rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  margin-bottom: 0.9rem;
}
.section__head p {
  font-size: 1.1rem;
  color: var(--ink-2);
  margin: 0;
  max-width: 68ch;
}

/* ---------- Walkthrough tabs ---------- */
.walk {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.walk__media {
  min-width: 0;
  position: sticky;
  top: 90px;
}
.tablist {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.tab {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
  color: var(--ink-2);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.tab:hover {
  background: var(--surface);
}
.tab__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 620;
  font-size: 1.06rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.tab__step {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 0.05rem 0.38rem;
  line-height: 1.5;
}
/* minmax(0, …) lets the collapsed row reach zero height instead of keeping the
   text's min-content height (which left large blank gaps). */
.tab__desc {
  display: grid;
  grid-template-rows: minmax(0, 0fr);
  min-height: 0;
  margin: 0;
  padding-top: 0;
  font-size: 0.95rem;
  color: var(--ink-3);
  line-height: 1.5;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 0.3s var(--ease), opacity 0.22s var(--ease);
}
.tab[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--line-2);
  box-shadow: inset 3px 0 0 var(--blue);
}
.tab[aria-selected="true"] .tab__step {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 35%, transparent);
}
.tab[aria-selected="true"] .tab__desc {
  grid-template-rows: minmax(0, 1fr);
  opacity: 1;
  padding-top: 0.6rem;
}
.tabpanel {
  margin: 0;
}
.tabpanel[hidden] {
  display: none;
}
.tabpanel .shot__frame img {
  transition: opacity 0.3s var(--ease);
}
.is-swapping .shot__frame img {
  opacity: 0.35;
}

/* ---------- Agent bridge (full-bleed ink band) ---------- */
.band-dark {
  background: var(--dark);
  color: var(--dark-ink);
  border-bottom: 1px solid var(--dark-line);
  background-image: linear-gradient(
      color-mix(in srgb, #fff 4%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      color-mix(in srgb, #fff 4%, transparent) 1px,
      transparent 1px
    );
  background-size: 56px 56px;
}
.band-dark .section__head h2 {
  color: var(--dark-ink);
}
.band-dark .section__head p {
  color: var(--dark-ink-2);
}
.bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.bridge__body {
  min-width: 0;
}
.agent-line {
  font-size: 1.05rem;
  color: var(--dark-ink-2);
  max-width: 60ch;
  margin: 0 0 1.8rem;
}
.agent-line strong {
  color: var(--dark-ink);
  font-weight: 620;
}
.agent-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.agent-tab {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--dark-ink-2);
  background: transparent;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease),
    background 0.15s var(--ease);
}
.agent-tab:hover {
  color: var(--dark-ink);
}
.agent-tab[aria-selected="true"] {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.codeblock {
  position: relative;
  background: #0f0f0f;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  padding: 1.05rem 3rem 1.05rem 1.1rem;
  overflow-x: auto;
}
.codeblock + .codeblock {
  margin-top: 0.7rem;
}
.codeblock code {
  color: #e9e9e7;
  font-size: 0.86rem;
  line-height: 1.7;
  white-space: pre;
  display: block;
}
.codeblock .tok-cmd {
  color: var(--blue-light);
}
.codeblock .tok-flag {
  color: #d4b3ff;
}
.copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--dark-ink-2);
  background: var(--dark-raise);
  border: 1px solid var(--dark-line);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.copy-btn:hover {
  color: var(--dark-ink);
  border-color: #555;
}
.copy-btn[data-copied="true"] {
  color: var(--blue-light);
  border-color: color-mix(in srgb, var(--blue-light) 50%, transparent);
}
.copy-btn svg {
  width: 13px;
  height: 13px;
}
.agent-panel[hidden] {
  display: none;
}
.tool-list {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.1rem 1.6rem;
  border-top: 1px solid var(--dark-line);
  padding-top: 1.4rem;
}
.tool-list li {
  display: flex;
  gap: 0.6rem;
  padding: 0.42rem 0;
  font-size: 0.9rem;
  color: var(--dark-ink-2);
  border-bottom: 1px solid color-mix(in srgb, var(--dark-line) 55%, transparent);
  align-items: baseline;
}
.tool-list code {
  color: var(--dark-ink);
  font-size: 0.82rem;
  flex: none;
}
.bridge__aside {
  min-width: 0;
}
.phone {
  background: #000;
  border: 7px solid #000;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.8);
  max-width: 260px;
  margin-inline: auto;
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  border-radius: 23px;
  background: #222;
}
.bridge__aside figcaption.demo {
  color: var(--dark-ink-2);
  justify-content: center;
}

.note {
  margin: 1.8rem 0 0;
  font-size: 0.92rem;
  color: var(--dark-ink-2);
  border-left: 1px solid var(--blue-light);
  padding-left: 1rem;
  max-width: 64ch;
}

/* ---------- Install ---------- */
.install {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}
.path {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}
.path h3 {
  font-size: 1.14rem;
  margin-bottom: 0.3rem;
}
.path__tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.path p {
  font-size: 0.92rem;
  color: var(--ink-2);
  margin: 0.6rem 0 0.9rem;
}
.code-light {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.85rem 2.6rem 0.85rem 0.95rem;
  overflow-x: auto;
}
.code-light code {
  color: #ededeb;
  font-size: 0.8rem;
  line-height: 1.65;
  white-space: pre;
  display: block;
}
.code-light .tok-cmd {
  color: var(--blue-light);
}
.code-light .copy-btn {
  background: #2a2a2a;
}
.archive {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-2);
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  line-height: 1.5;
}

/* ---------- Requirements ---------- */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.req {
  background: var(--surface);
  padding: 1.5rem 1.4rem;
}
.req h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.req h3 svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex: none;
}
.req p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.req code {
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--surface-sunk);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

/* ---------- Limits ---------- */
.limits-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.limit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.limit-list li {
  position: relative;
  padding: 0.95rem 0 0.95rem 1.7rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.limit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 9px;
  height: 2px;
  background: var(--ink-3);
}
.limit-list strong {
  color: var(--ink);
  font-weight: 620;
}
.limit-list code {
  font-size: 0.82rem;
  color: var(--ink);
}
.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.aside-card + .aside-card {
  margin-top: 1.25rem;
}
.aside-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.7rem;
}
.aside-card p {
  margin: 0 0 0.8rem;
  font-size: 0.93rem;
  color: var(--ink-2);
  line-height: 1.58;
}
.aside-card p:last-child {
  margin-bottom: 0;
}
.tagline-mark {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.credits {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-3);
  line-height: 1.6;
}
.credits a {
  color: var(--ink-2);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--ground);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
}
.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.6;
}
.footer-bottom p {
  margin: 0;
  max-width: 62ch;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .hero__lede {
    max-width: none;
  }
  .walk {
    grid-template-columns: minmax(0, 1fr);
  }
  .walk__media {
    position: static;
    order: -1;
  }
  .bridge {
    grid-template-columns: minmax(0, 1fr);
  }
  .bridge__aside {
    max-width: 300px;
  }
  .limits-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .primary-nav {
    display: none;
  }
  /* icon-only on mobile; the text stays as the link's accessible name */
  .header-tools .ghlink-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--ink);
  }
  .nav-toggle svg {
    width: 20px;
    height: 20px;
  }
  .header-tools.has-nav {
    margin-left: 0.5rem;
  }
  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem var(--gutter) 1rem;
    gap: 0.1rem;
    box-shadow: 0 18px 30px -20px rgba(23, 23, 23, 0.3);
  }
  .primary-nav.is-open a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }
}

/* Narrow phones (down to 320px): tighten header spacing so nothing shrinks. */
@media (max-width: 420px) {
  :root {
    --gutter: 1rem;
  }
  .site-header__inner {
    gap: 0.5rem;
  }
  .site-header .brand {
    gap: 0.4rem;
    font-size: 0.95rem;
  }
  .site-header .brand img {
    width: 24px;
    height: 24px;
  }
  .nav-toggle {
    width: 36px;
    height: 36px;
  }
  .header-tools {
    gap: 0.3rem;
  }
  .header-tools.has-nav {
    margin-left: 0;
  }
  .lang-switch {
    font-size: 0.76rem;
  }
  .lang-switch a,
  .lang-switch span {
    padding: 0.28rem 0.42rem;
  }
  .ghlink {
    padding: 0.38rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
