:root {
  --bg-canvas: #faf6ef;
  --bg-surface: #fffdf8;
  --bg-surface-hover: #f5efe3;
  --text-primary: #2b211a;
  --text-muted: #5c4b3f;
  --accent-primary: #c2562e;
  --accent-secondary: #6b7a3a;
  --border-subtle: rgba(43, 33, 26, 0.16);
  --border-strong: rgba(43, 33, 26, 0.34);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 14px 34px -10px rgba(43, 33, 26, 0.12), 0 4px 12px -4px rgba(43, 33, 26, 0.06);
  --shadow-hover: 0 22px 44px -12px rgba(43, 33, 26, 0.18), 0 8px 18px -6px rgba(194, 86, 46, 0.14);
  --glow-accent: 0 0 24px -6px rgba(194, 86, 46, 0.28);
  --glass-backdrop: blur(12px) saturate(140%);
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, Consolas, "SFMono-Regular", Menlo, Monaco, "Liberation Mono", monospace;
  --radius-card: 20px;
}

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

html {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: clamp(12px, 2.2vw, 28px);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.page-frame {
  max-width: 1320px;
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 12% 4%, rgba(194, 86, 46, 0.05), transparent 36%),
              radial-gradient(circle at 88% 12%, rgba(107, 122, 58, 0.05), transparent 34%),
              var(--bg-canvas);
  min-height: calc(100vh - 56px);
  position: relative;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text-primary);
  color: var(--bg-surface);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

a {
  color: var(--accent-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease-kinetic);
}

a:hover {
  color: var(--text-primary);
}

/* Allow long addresses and URLs to fit without splitting ordinary prose. */
a[href^="mailto:"],
.prose a,
.note-body a,
.footer-col p a {
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

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

h1, h2, h3, p, li, th, td, label, summary {
  word-break: normal;
  hyphens: none;
}

h1, h2, h3 {
  text-wrap: pretty;
}

/* Header */
.site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  padding: 20px clamp(18px, 3.5vw, 44px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 10px 18px;
  background: var(--bg-surface);
  border-radius: 999px;
  box-shadow: var(--shadow-elevation);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}

.brand-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--accent-primary);
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(194, 86, 46, 0.2);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
  padding: 8px 12px;
  line-height: 1.5;
  transition: background-color 0.25s var(--ease-kinetic), color 0.25s var(--ease-kinetic);
  white-space: normal;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-primary);
  background-color: var(--bg-surface-hover);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent-primary);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-kinetic), color 0.2s var(--ease-kinetic);
}

.menu-toggle:hover {
  background: var(--text-primary);
  color: var(--bg-surface);
}

/* Main container and readable headings */
.container {
  max-width: 1200px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 clamp(18px, 3.5vw, 44px);
}

.hero-band {
  padding: clamp(26px, 4vw, 46px) 0 clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin: 0 0 12px;
  max-width: 80ch;
}

.hero-band h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 28ch;
  color: var(--text-primary);
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

/* Buttons wrap at word boundaries and stay inside their containers. */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 12px 20px;
  border: 1.5px solid var(--text-primary);
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s var(--ease-kinetic), background-color 0.28s var(--ease-kinetic), color 0.28s var(--ease-kinetic), border-color 0.28s var(--ease-kinetic), box-shadow 0.28s var(--ease-kinetic);
}

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-surface);
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevation);
}

.btn-accent {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-accent:hover {
  background: var(--accent-primary);
  color: var(--bg-surface);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.btn-secondary {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.btn-secondary:hover {
  background: var(--accent-secondary);
  color: var(--bg-surface);
}

/* Vertical pathway */
.pathway {
  position: relative;
  padding: clamp(24px, 4vw, 44px) 0;
}

.pathway::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-primary) 0%, var(--border-strong) 30%, var(--accent-secondary) 85%, transparent 100%);
}

.pathway-step {
  position: relative;
  min-width: 0;
  padding-left: clamp(46px, 5vw, 68px);
  padding-bottom: clamp(36px, 5vw, 60px);
}

.pathway-step:last-child {
  padding-bottom: 12px;
}

.step-node {
  position: absolute;
  left: 0;
  top: 2px;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-elevation);
}

.step-node-alt {
  color: var(--accent-secondary);
}

.step-header {
  min-width: 0;
  margin-bottom: 22px;
}

.step-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.6;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  display: block;
  margin-bottom: 8px;
}

.step-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  line-height: 1.3;
  color: var(--text-primary);
}

.step-lead {
  margin: 12px 0 0;
  color: var(--text-muted);
  max-width: 70ch;
}

/* Flexible grids prevent long text from widening or crushing columns. */
.card-grid,
.split-grid,
.field-grid,
.stat-row,
.footer-grid {
  min-width: 0;
}

.card-grid > *,
.split-grid > *,
.field-grid > *,
.stat-row > *,
.footer-grid > *,
.handoff-item > * {
  min-width: 0;
}

.panel {
  min-width: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-elevation);
  transition: transform 0.35s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic);
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.panel-static:hover {
  transform: none;
  box-shadow: var(--shadow-elevation);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 24px;
  align-items: stretch;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevation);
  overflow: hidden;
  transition: transform 0.35s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic);
}

.guide-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.guide-card-body {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.guide-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.4;
}

.guide-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  flex: 1;
}

.guide-card-footer {
  padding-top: 12px;
  margin-top: auto;
}

.guide-card-footer .btn-outline {
  width: 100%;
  padding-inline: 14px;
}

.meta-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.6;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.meta-tag-green {
  color: var(--accent-secondary);
}

/* Media */
.media-frame {
  min-width: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #2b211a;
  box-shadow: var(--shadow-elevation);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(0.92);
}

.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

.guide-card .media-frame {
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  box-shadow: none;
}

.media-caption {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 12px 0 0;
  max-width: 72ch;
}

/* Reading prose */
.prose {
  width: 100%;
  max-width: 72ch;
  min-width: 0;
  line-height: 1.8;
  text-align: start;
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--text-primary);
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose h3 {
  margin: 1.6rem 0 0.7rem;
  font-size: 1.12rem;
  line-height: 1.5;
  font-family: var(--font-mono);
  letter-spacing: 0.015em;
  color: var(--text-primary);
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.65rem;
}

/* Asset handoff list */
.handoff-list {
  list-style: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.handoff-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(110px, 20%);
  gap: 16px;
  align-items: start;
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-elevation);
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}

.handoff-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.handoff-code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--bg-canvas);
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
  border-radius: 10px;
}

.handoff-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.45;
}

.handoff-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.handoff-owner {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.65;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-secondary);
  white-space: normal;
  padding-top: 4px;
}

/* Handoff lists in a split layout need their own compact arrangement. */
.split-grid .handoff-item {
  grid-template-columns: 52px minmax(0, 1fr);
}

.split-grid .handoff-owner {
  grid-column: 2;
  padding-top: 0;
}

/* Tables retain readable columns and scroll inside their own container. */
.table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-radius: var(--radius-card);
  background: var(--bg-surface);
  box-shadow: var(--shadow-elevation);
}

.role-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  text-align: start;
  font-size: 0.92rem;
  line-height: 1.7;
}

.role-table th {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.6;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-surface-hover);
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.role-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.role-table tr:last-child td {
  border-bottom: none;
}

.role-table td strong {
  color: var(--text-primary);
}

/* Expandable notes and FAQs */
.note-stack {
  display: grid;
  min-width: 0;
  gap: 16px;
}

details.note-item {
  min-width: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevation);
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}

details.note-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

details.note-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-primary);
}

details.note-item summary > span {
  min-width: 0;
}

details.note-item summary::-webkit-details-marker {
  display: none;
}

details.note-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--accent-primary);
  flex-shrink: 0;
}

details.note-item[open] summary::after {
  content: "−";
}

.note-q-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-secondary);
  margin-right: 10px;
  white-space: nowrap;
}

.note-body {
  padding: 0 22px 22px;
  color: var(--text-muted);
  max-width: 76ch;
  line-height: 1.8;
}

.note-body p {
  margin: 0 0 14px;
}

.note-body p:last-child {
  margin-bottom: 0;
}

/* Metrics */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 16px;
  margin-top: 22px;
}

.stat-box {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-elevation);
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
}

.stat-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Contact note builder */
.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 18px;
  margin-bottom: 16px;
}

.field-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field-grid .field-group {
  margin-bottom: 0;
}

.field-group label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}

.field-group select {
  white-space: normal;
}

.field-group textarea {
  min-height: 150px;
  resize: vertical;
}

.note-preview {
  min-width: 0;
  max-width: 100%;
  background: #231b15;
  color: #faf6ef;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  padding: 22px;
  border-radius: var(--radius-card);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  margin: 0 0 20px;
  min-height: 170px;
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.live-status {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--accent-secondary);
  min-height: 1.4em;
  margin-top: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px clamp(18px, 3.5vw, 44px) 32px;
  background: var(--bg-surface);
  margin-top: 24px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.footer-col h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin: 0 0 14px;
}

.footer-col p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  text-decoration: none;
  color: var(--text-primary);
}

.footer-links a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-bottom > span {
  min-width: 0;
  max-width: 100%;
}

.footer-bottom a {
  overflow-wrap: anywhere;
}

.lang-list a,
.lang-list span {
  white-space: nowrap;
}

/* Keep the existing privacy dock within narrow viewports. */
#privacyDock {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

#privacyDock button {
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  hyphens: none;
}

/* Scroll reveal */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic);
}

.js-ready .reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Responsive layouts */
@media (max-width: 1200px) and (min-width: 769px) {
  .site-nav {
    flex-basis: 100%;
  }
}

@media (max-width: 1024px) {
  .split-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    gap: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-surface);
    border-radius: var(--radius-card);
    padding: 12px;
    box-shadow: var(--shadow-elevation);
    margin-top: 8px;
  }

  .site-nav.nav-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .handoff-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .handoff-owner {
    grid-column: 2;
    padding-top: 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  body {
    padding: 8px;
  }

  .site-header {
    padding: 16px 12px;
    gap: 10px;
  }

  .brand-pill {
    padding: 9px 10px;
    gap: 8px;
    font-size: clamp(0.62rem, 2.6vw, 0.78rem);
    letter-spacing: 0.015em;
  }

  .container {
    padding-inline: 16px;
  }

  .hero-band h1 {
    font-size: clamp(1.65rem, 7vw, 2rem);
    line-height: 1.22;
    max-width: none;
  }

  .hero-kicker,
  .step-label {
    letter-spacing: 0.045em;
  }

  /* Reserve the number gutter only for headings, not for reading content. */
  .pathway::before {
    display: none;
  }

  .pathway-step {
    padding-left: 0;
    padding-bottom: 40px;
  }

  .step-node {
    width: 31px;
    height: 31px;
    font-size: 0.74rem;
    top: 1px;
  }

  .step-header {
    min-height: 32px;
    padding-left: 43px;
    margin-bottom: 20px;
  }

  .step-header h2 {
    font-size: 1.3rem;
    line-height: 1.35;
  }

  .step-lead {
    margin-left: -43px;
    margin-top: 16px;
  }

  .panel,
  .guide-card-body {
    padding: 20px;
  }

  .hero-actions,
  .action-bar {
    align-items: stretch;
  }

  .hero-actions .btn-outline,
  .action-bar .btn-outline {
    width: 100%;
  }

  .btn-outline {
    padding: 12px 14px;
    letter-spacing: 0.035em;
  }

  .handoff-item,
  .split-grid .handoff-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 20px;
  }

  .handoff-code {
    justify-self: start;
    min-width: 52px;
  }

  .handoff-owner,
  .split-grid .handoff-owner {
    grid-column: 1;
  }

  details.note-item summary {
    padding: 18px;
    gap: 12px;
  }

  .note-body {
    padding: 0 18px 20px;
  }

  .note-preview {
    padding: 16px;
    font-size: 0.8rem;
  }

  .site-footer {
    padding-inline: 18px;
  }
}