/* ============================================================
   Internal Builders — Editorial / Near-mono
   Paper #FAF9F6 · Ink #111111 · no chroma, type + rules + space
   Display: local serif fallback · Body: local system sans
   ============================================================ */

:root {
  --paper: #faf9f6;
  --paper-2: #f2f0e9;
  --paper-3: #ebe8df;
  --ink: #111111;
  --ink-2: #2b2a27;
  --muted: #6c6a63;
  --faint: #9a978d;
  --line: #e2dfd5;
  --line-2: #ccc8ba;

  --serif: "Iowan Old Style", "AppleMyungjo", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Segoe UI", sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5.2vw, 72px);
  --radius: 2px;

  --step: clamp(80px, 11vw, 168px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Paper grain — barely-there texture for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Shared editorial primitives ---------- */

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

.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}

.serif {
  font-family: var(--serif);
}

br.mobile-break {
  display: none;
}

.no-break {
  white-space: nowrap;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
}

/* ---------- Multi-page platform ---------- */

:root {
  --measure: 68ch;
  --header-offset: 84px;
}

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

.band :focus-visible {
  outline-color: var(--paper);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 10000;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hub-hero .hero-inner {
  padding-block: clamp(72px, 10vw, 132px);
}

.hub-hero h1 {
  max-width: 1020px;
}

.rule-grid {
  display: grid;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

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

.rule-item {
  min-width: 0;
  padding: 34px 32px 38px 0;
  border-right: 1px solid var(--line);
}

.rule-item + .rule-item {
  padding-left: 32px;
}

.rule-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.rule-number,
.rule-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.rule-number {
  margin-bottom: 34px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.rule-item h3 {
  margin-top: 12px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.28;
  word-break: keep-all;
}

.rule-item > p:not(.rule-number, .rule-label) {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  word-break: keep-all;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(3px);
}

.page-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) var(--gutter) clamp(58px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 1040px;
  margin-top: 18px;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.04;
  font-weight: 600;
  text-wrap: balance;
  word-break: keep-all;
}

.page-lede {
  max-width: 60ch;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.72;
  color: var(--ink-2);
  word-break: keep-all;
}

.status-notice {
  max-width: 760px;
  margin-top: 32px;
  padding: 18px 20px;
  border-left: 2px solid var(--ink);
  background: var(--paper-2);
}

.status-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
  color: var(--ink-2);
  word-break: keep-all;
}

.content-section {
  min-height: 420px;
}

.content-list {
  border-top: 1px solid var(--ink);
}

.content-row {
  display: grid;
  grid-template-columns: minmax(128px, 0.24fr) minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--line);
}

.content-meta {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.content-meta span {
  color: var(--faint);
}

.content-summary h3 {
  max-width: 30ch;
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  line-height: 1.28;
  word-break: keep-all;
}

.content-summary h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.content-summary p {
  max-width: 64ch;
  margin: 15px 0 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  word-break: keep-all;
}

.content-action {
  margin-top: 2px;
}

.compact-rules .rule-item {
  padding-block: 30px 34px;
}

.curriculum-outline {
  scroll-margin-top: var(--header-offset);
}

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

.module-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(170px, 0.32fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}

.module-number {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--faint);
}

.module-meta {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.module-row h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.3;
}

.module-row div > p:last-child {
  max-width: 62ch;
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  word-break: keep-all;
}

.module-output {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

.module-output span {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.curriculum-practice {
  min-height: 420px;
  display: flex;
  align-items: center;
}

.curriculum-practice .section-head {
  width: 100%;
  margin-bottom: 0;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(70px, 9vw, 112px) var(--gutter);
  border-top: 1px solid var(--ink);
}

.cta-section h2 {
  max-width: 18ch;
  margin-top: 14px;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.16;
  word-break: keep-all;
}

.cta-section > div > p:last-child {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  word-break: keep-all;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.article-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(68px, 9vw, 112px) var(--gutter) clamp(82px, 11vw, 140px);
}

.article-hero {
  padding-bottom: clamp(42px, 6vw, 68px);
  border-bottom: 1px solid var(--ink);
}

.back-link {
  display: inline-block;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

.back-link:hover {
  border-color: currentColor;
  color: var(--ink);
}

.article-hero h1 {
  max-width: 900px;
  margin-top: 16px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.08;
  font-weight: 600;
  text-wrap: balance;
  word-break: keep-all;
}

.article-deck {
  max-width: 64ch;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.72;
  color: var(--ink-2);
  word-break: keep-all;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 32px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--faint);
}

.prose {
  max-width: var(--measure);
  margin: clamp(50px, 7vw, 82px) auto 0;
  font-size: 17px;
  line-height: 1.86;
  color: var(--ink-2);
}

.prose p {
  margin: 0 0 24px;
  word-break: keep-all;
}

.prose .prose-lede {
  margin-bottom: 48px;
  font-size: 1.14em;
  line-height: 1.82;
  color: var(--ink);
}

.prose h2 {
  margin: 64px 0 22px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.32;
  word-break: keep-all;
}

.prose h3 {
  margin: 46px 0 18px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.4;
  word-break: keep-all;
}

.prose strong {
  color: var(--ink);
}

.prose blockquote {
  margin: 44px 0;
  padding: 8px 0 8px 26px;
  border-left: 2px solid var(--ink);
}

.prose blockquote p {
  margin: 0;
  font-size: 1.15em;
  font-weight: 650;
  line-height: 1.68;
  color: var(--ink);
}

.prose ol,
.prose ul {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding-left: 24px;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.prose :not(pre) > code {
  padding: 0.12em 0.34em;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  color: var(--ink);
}

.prose pre {
  max-width: 100%;
  margin: 34px 0;
  padding: 22px 24px;
  overflow-x: auto;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}

.prose pre code {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  white-space: pre;
}

.prose-diagram {
  margin: 38px 0;
}

.prose-diagram pre {
  margin: 0;
}

.prose-diagram--image img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
}

.prose-diagram figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--faint);
}

.prose-diagram--compact {
  margin-block: 32px 40px;
}

.prose-table-wrap {
  max-width: 100%;
  margin: 36px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

.prose caption {
  padding: 0 0 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.prose th,
.prose td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  font-weight: 700;
  color: var(--ink);
  background: var(--paper-2);
}

.prose th:first-child,
.prose td:first-child {
  width: 45%;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--measure);
  margin: 72px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--ink);
}

.article-footer p {
  max-width: 42ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 960px) {
  :root {
    --header-offset: 124px;
  }

  .site-header {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }

  .nav-links a {
    min-width: max-content;
  }

  .rule-grid--3 {
    grid-template-columns: 1fr;
  }

  .rule-item,
  .rule-item + .rule-item,
  .rule-item:last-child {
    padding: 30px 0 34px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rule-item:last-child {
    border-bottom: 0;
  }

  .rule-number {
    margin-bottom: 22px;
  }

  .content-row {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .content-action {
    grid-column: 2;
    justify-self: start;
  }

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

  .module-output {
    grid-column: 2;
    padding-top: 2px;
  }

  .cta-section {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  :root {
    --header-offset: 116px;
  }

  .site-header {
    padding-bottom: 8px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 0;
    padding-inline: 0;
  }

  .nav-links a {
    padding: 8px 9px;
    font-size: 12px;
  }

  .nav-links a::after {
    left: 9px;
    right: 9px;
  }

  .page-hero {
    padding-block: 58px 62px;
  }

  .page-hero h1 {
    font-size: 2.35rem;
    line-height: 1.12;
  }

  .page-lede {
    margin-top: 22px;
    font-size: 1rem;
  }

  .content-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .content-action {
    grid-column: 1;
  }

  .module-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 16px;
  }

  .cta-actions,
  .article-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-actions .button,
  .article-footer .button {
    width: 100%;
  }

  .article-shell {
    padding-top: 52px;
  }

  .back-link {
    margin-bottom: 38px;
  }

  .article-hero h1 {
    font-size: 2.3rem;
  }

  .prose {
    font-size: 16px;
    line-height: 1.82;
  }

  .prose pre {
    padding: 16px;
    font-size: 12.5px;
  }
}

.section,
.contact-section {
  scroll-margin-top: var(--header-offset);
}

/* ---------- Mobile navigation drawer ---------- */

.mobile-menu-toggle {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 360px);
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-left: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
}

.mobile-menu[open] {
  display: flex;
  flex-direction: column;
  animation: mobile-menu-enter 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu::backdrop {
  background: rgb(17 17 17 / 44%);
  animation: mobile-menu-backdrop 180ms ease-out;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding:
    max(16px, env(safe-area-inset-top, 0px))
    20px
    16px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mobile-menu-close {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-menu-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 20px max(28px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  word-break: keep-all;
}

.mobile-menu-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.mobile-menu-nav .mobile-menu-action {
  justify-content: center;
  min-height: 50px;
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
}

body.mobile-menu-open {
  overflow: hidden;
}

@keyframes mobile-menu-enter {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes mobile-menu-backdrop {
  from {
    background: rgb(17 17 17 / 0%);
  }

  to {
    background: rgb(17 17 17 / 44%);
  }
}

@media (max-width: 960px) {
  html.mobile-menu-ready {
    --header-offset: 74px;
  }

  .mobile-menu-ready .site-header {
    flex-wrap: nowrap;
    row-gap: 0;
    min-height: 60px;
    padding-block: 8px;
  }

  .mobile-menu-ready .site-header > .nav-links,
  .mobile-menu-ready .site-header > .header-action {
    display: none;
  }

  .mobile-menu-ready .mobile-menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-toggle-icon,
  .mobile-menu-toggle-icon::before,
  .mobile-menu-toggle-icon::after {
    display: block;
    width: 20px;
    height: 1.5px;
    background: currentColor;
  }

  .mobile-menu-toggle-icon {
    position: relative;
  }

  .mobile-menu-toggle-icon::before,
  .mobile-menu-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .mobile-menu-toggle-icon::before {
    top: -6px;
  }

  .mobile-menu-toggle-icon::after {
    top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu[open],
  .mobile-menu::backdrop {
    animation: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 8px 12px;
  color: var(--muted);
  transition: color 160ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-action {
  min-width: max-content;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.header-action:hover {
  background: transparent;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.primary:hover {
  background: transparent;
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.button.ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.button .arrow {
  font-family: var(--serif);
  transition: transform 200ms ease;
}

.button:hover .arrow {
  transform: translateX(3px);
}

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

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(42px, 5vw, 54px) var(--gutter) clamp(22px, 3vw, 26px);
}

.hero .eyebrow {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero .eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-2);
}

.hero h1 {
  max-width: min(100%, 900px);
  font-size: clamp(2.55rem, 6.8vw, 5.2rem);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.hero-copy {
  max-width: 56ch;
  margin: 22px 0 0;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.66;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(24px, 3.2vw, 28px) 0 0;
  border-top: 1px solid var(--line);
}

.hero-metrics div {
  padding: 18px 28px 0 0;
  border-right: 1px solid var(--line);
}

.hero-metrics div + div {
  padding-left: 28px;
}

.hero-metrics div:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero-metrics dt {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-metrics dd {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Section scaffold ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--step) var(--gutter);
  scroll-margin-top: 80px;
}

.section + .section,
.band + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head .lead {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.index-num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0.04em;
  padding-top: 6px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.04;
  font-weight: 500;
  margin-top: 14px;
  word-break: keep-all;
}

.section-head .kicker {
  margin-bottom: 0;
}

.section-head .aside {
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted);
  word-break: keep-all;
}

/* ---------- Narrative / Why ---------- */

.narrative .narr-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.narrative h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
  font-weight: 500;
}

.narrative h2 em {
  font-style: italic;
  font-weight: 400;
}

.narr-body {
  display: grid;
  gap: 26px;
}

.narr-body p {
  margin: 0;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
}

.narr-body p .lede {
  color: var(--ink);
  font-weight: 600;
}

.pull-quote {
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--ink);
}

.pull-quote q {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.28;
  letter-spacing: -0.01em;
  quotes: "\201C" "\201D";
}

.pull-quote .by {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- What we build ---------- */

.build-feature {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.build-feature article {
  padding: 40px 28px 44px 0;
  border-right: 1px solid var(--line);
}

.build-feature article + article {
  padding-left: 28px;
}

.build-feature article:last-child {
  border-right: 0;
  padding-right: 0;
}

.build-feature h3 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.18;
  word-break: keep-all;
}

.build-feature p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--ink-2);
  word-break: keep-all;
}

/* ---------- Fit check ---------- */

.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
}

.fit .index-num {
  display: block;
  margin-bottom: 18px;
}

.fit h2 {
  margin-top: 16px;
  max-width: 10ch;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  font-weight: 500;
}

.fit-copy {
  margin: 24px 0 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.68;
  color: var(--muted);
}

.fit-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.fit-columns article {
  padding: 34px 34px 38px 0;
  border-right: 1px solid var(--line);
}

.fit-columns article:last-child {
  border-right: 0;
  padding-right: 0;
  padding-left: 34px;
}

.fit-columns h3 {
  margin: 0 0 22px;
  font-size: 1.35rem;
  font-weight: 500;
}

.fit-columns ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-columns li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink-2);
}

.fit-columns li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: currentColor;
  opacity: 0.62;
}

/* ---------- Approach (How I build) ---------- */

.band {
  background: var(--ink);
  color: var(--paper);
}

.band .section {
  border: 0;
}

.band .kicker {
  color: rgba(250, 249, 246, 0.55);
}

.band .index-num {
  color: rgba(250, 249, 246, 0.45);
}

.band .section-head h2 {
  color: var(--paper);
}

.band .section-head .aside {
  color: rgba(250, 249, 246, 0.62);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(250, 249, 246, 0.18);
}

.approach-grid article {
  padding: 36px 40px 40px 0;
  border-bottom: 1px solid rgba(250, 249, 246, 0.14);
  border-right: 1px solid rgba(250, 249, 246, 0.14);
}

.approach-grid article:nth-child(2n) {
  border-right: 0;
  padding-right: 0;
  padding-left: 40px;
}

.approach-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.approach-grid .a-no {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(250, 249, 246, 0.5);
}

.approach-grid h3 {
  margin: 16px 0 12px;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--paper);
}

.approach-grid p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.62;
  color: rgba(250, 249, 246, 0.66);
}

/* ---------- Plans ---------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 38px 32px 34px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.plan-card:last-child {
  border-right: 0;
}

.plan-card.featured {
  background: var(--ink);
  color: var(--paper);
}

.plan-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.plan-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}

.plan-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid rgba(250, 249, 246, 0.4);
  border-radius: 999px;
  color: var(--paper);
}

.plan-tagline {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.featured .plan-tagline {
  color: rgba(250, 249, 246, 0.62);
}

.plan-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 28px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.featured .plan-price {
  border-top-color: rgba(250, 249, 246, 0.2);
}

.plan-original {
  font-size: 13px;
  font-weight: 500;
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(17, 17, 17, 0.42);
}

.featured .plan-original {
  color: rgba(250, 249, 246, 0.48);
  text-decoration-color: rgba(250, 249, 246, 0.42);
}

.plan-current {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-amount {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.featured .plan-unit {
  color: rgba(250, 249, 246, 0.6);
}

.plan-features {
  display: grid;
  gap: 13px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.featured .plan-features li {
  color: rgba(250, 249, 246, 0.82);
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.plan-cta {
  width: 100%;
  margin-top: auto;
}

.plan-cta.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.plan-terms-note {
  max-width: 76ch;
  margin: 24px 0 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--muted);
}

.plan-terms-note a,
.terms-consent a,
.privacy-notice a {
  border-bottom: 1px solid currentColor;
}

.featured .button.primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.featured .button.primary:hover {
  background: transparent;
  color: var(--paper);
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid var(--ink);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

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

.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  transition: transform 240ms ease;
}

.faq-item[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 0 30px;
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

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

.contact-section {
  border-top: 1px solid var(--ink);
  background: var(--paper-2);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: clamp(36px, 6vw, 88px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--step) var(--gutter);
}

.contact-copy h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.06;
  font-weight: 500;
  margin: 18px 0 0;
  word-break: keep-all;
}

.contact-copy > p {
  margin: 22px 0 0;
  max-width: 44ch;
  font-size: 16.5px;
  line-height: 1.66;
  color: var(--muted);
}

.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.contact-badges span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.contact-form {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 32px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}

.contact-form label {
  display: grid;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.required-mark {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--faint);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--paper);
  outline: none;
  font-weight: 500;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.privacy-notice {
  padding: 0;
}

.privacy-notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  word-break: keep-all;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--faint);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.form-button {
  width: 100%;
  margin-top: 4px;
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-status {
  min-height: 22px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.form-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--faint);
}

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

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--gutter);
  text-align: left;
}

.footer-company,
.footer-business,
.footer-contact,
.footer-copyright {
  margin: 0;
}

.footer-company {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.footer-business {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.footer-contact {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.footer-contact a {
  border-bottom: 1px solid transparent;
}

.footer-contact a:hover {
  border-bottom-color: currentColor;
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 28px;
  gap: 16px;
}

.footer-copyright {
  font-size: 12px;
  line-height: 1.5;
  color: var(--faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  border-bottom: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  border-color: currentColor;
  color: var(--ink);
}

/* ---------- Legal page ---------- */

.legal-page {
  background: var(--paper);
}

.legal-page .site-header {
  position: static;
}

.legal-main {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) var(--gutter);
}

.legal-hero {
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  margin-top: 14px;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 0.98;
  font-weight: 500;
}

.legal-lede {
  max-width: 68ch;
  margin: 24px 0 0;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink-2);
  word-break: keep-all;
}

.legal-notice {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
}

.legal-notice p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--ink-2);
}

.legal-meta {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.legal-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-of-type {
  border-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.24;
  font-weight: 500;
  margin-bottom: 18px;
}

.legal-section p,
.legal-section li {
  font-size: 15.5px;
  line-height: 1.76;
  color: var(--ink-2);
  word-break: keep-all;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.legal-section li {
  position: relative;
  padding-left: 20px;
}

.legal-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 8px;
  height: 1px;
  background: currentColor;
  opacity: 0.58;
}

.legal-section a {
  border-bottom: 1px solid var(--line-2);
}

.legal-section a:hover {
  border-color: currentColor;
  color: var(--ink);
}

.legal-table-wrap {
  width: 100%;
  margin: 0 0 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.legal-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--paper);
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.62;
  text-align: left;
  vertical-align: top;
  color: var(--ink-2);
  word-break: keep-all;
}

.legal-table th {
  font-weight: 600;
  color: var(--ink);
}

.legal-table thead th {
  background: var(--paper-2);
}

.legal-table tr:last-child > * {
  border-bottom: 0;
}

.legal-table tr > *:last-child {
  border-right: 0;
}

/* ---------- Reveal ---------- */

.reveal {
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 620ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .section-head,
  .narrative .narr-grid,
  .fit-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .build-feature,
  .approach-grid,
  .fit-columns,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .build-feature article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 30px 0 32px;
  }

  .build-feature article + article {
    padding-left: 0;
  }

  .build-feature article:last-child {
    padding-left: 0;
    border-bottom: 0;
  }

  .fit h2 {
    max-width: 14ch;
  }

  .fit-columns article,
  .fit-columns article:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 0 30px;
  }

  .fit-columns article:last-child {
    border-bottom: 0;
  }

  .approach-grid article,
  .approach-grid article:nth-child(2n) {
    border-right: 0;
    padding: 30px 0 32px;
  }

  .approach-grid article:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(250, 249, 246, 0.14);
  }

  .approach-grid article:last-child {
    border-bottom: 0;
  }

  .plan-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .plan-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 60px;
    gap: 12px;
  }

  br.mobile-break {
    display: block;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-word {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .brand-word span {
    display: block;
  }

  .header-action {
    padding: 11px 12px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.4vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-metrics div {
    min-width: 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 14px 12px 0;
  }

  .hero-metrics div:first-child {
    padding-left: 0;
  }

  .hero-metrics div:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .hero-metrics dt {
    font-size: 1.35rem;
  }

  .hero-metrics dd {
    font-size: 12px;
    line-height: 1.4;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 14px;
    font-size: 14px;
  }

  .contact-form {
    padding: 22px;
  }

  .footer-inner {
    padding-block: 26px 30px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

}

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

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

  * {
    scroll-behavior: auto !important;
  }
}

/* Keep the three primary destinations reachable on multi-page layouts. */
@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .nav-links {
    justify-content: flex-start;
    gap: 0;
  }

  .nav-links a {
    padding: 8px 9px;
    font-size: 12px;
  }
}

.section,
.contact-section {
  scroll-margin-top: var(--header-offset);
}
