/* ==========================================================================
   Airship Studio — site styles
   One file, no build step. Tokens first, then base, components, pages.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F6F3EE;
  --paper-2: #EEE9E1;
  --card: #FFFFFF;
  --ink: #161C2D;
  --ink-2: #444B5C;
  --muted: #6E7484;
  --line: rgb(22 28 45 / 0.12);
  --line-strong: rgb(22 28 45 / 0.22);
  --accent: #3557E0;
  --accent-ink: #FFFFFF;
  --sky: #DCE4F7;
  --sun: #F4C770;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgb(22 28 45 / 0.06), 0 12px 32px -12px rgb(22 28 45 / 0.18);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 11vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1119;
    --paper-2: #151A26;
    --card: #181D2A;
    --ink: #ECE8E1;
    --ink-2: #B9BCC6;
    --muted: #8B90A0;
    --line: rgb(236 232 225 / 0.12);
    --line-strong: rgb(236 232 225 / 0.24);
    --accent: #7D97FF;
    --accent-ink: #0E1119;
    --sky: #1A2236;
    --sun: #C9984A;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -16px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 7.2vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--accent); }
.display--md { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.01em;
}
.section-intro { margin-top: 18px; color: var(--ink-2); font-size: 1.125rem; max-width: 40em; }
.note { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }

.prose { max-width: 70ch; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; color: var(--ink); font-size: 1.25rem; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--accent); }
.prose--large { font-size: clamp(1.125rem, 1.7vw, 1.3rem); line-height: 1.6; }
.prose--large p:first-child { color: var(--ink); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 999px;
  font-weight: 600; font-size: 0.9875rem; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header[data-scrolled] { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header__logo { display: block; color: var(--ink); }
.logo-svg { height: 34px; width: auto; }
.logo-svg__nose { fill: var(--accent); }

.site-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; }
.site-nav a:not(.btn) {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 0.9875rem; color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--paper-2); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; color: var(--ink); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; inset: 76px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .site-nav[data-open] { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-radius: 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin: 16px 0 0; justify-content: center; }
  .logo-svg { height: 30px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 9vw, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero .lede { margin-top: 28px; }

.fleet { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 48px; list-style: none; }
.fleet a { display: block; border-radius: 12px; transition: transform .3s var(--ease); }
.fleet a:hover { transform: translateY(-3px) rotate(-3deg); }
.fleet img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.fleet__label { margin-left: 8px; font-size: 0.9375rem; color: var(--muted); }

.hero__art { position: relative; }
.airship { width: 100%; height: auto; overflow: visible; }
.airship__sun { fill: var(--sun); opacity: .55; }
.airship__cloud path { fill: var(--card); stroke: var(--line-strong); stroke-width: 1.5; }
.airship__envelope { fill: var(--card); stroke: var(--ink); stroke-width: 2.5; }
.airship__fin { fill: var(--ink); }
.airship__stripe { fill: var(--accent); }
.airship__seam { stroke: var(--line-strong); stroke-width: 2; fill: none; stroke-linecap: round; }
.airship__line { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.airship__gondola { fill: var(--ink); }
.airship__window { fill: var(--sun); }
.airship__prop { fill: none; stroke: var(--ink); stroke-width: 2; }

@media (prefers-reduced-motion: no-preference) {
  .airship__body { animation: float 7s ease-in-out infinite; transform-origin: center; }
  .airship__cloud--back { animation: drift 16s ease-in-out infinite alternate; }
  .airship__cloud--front { animation: drift 12s ease-in-out infinite alternate-reverse; }
  .airship__prop { animation: spin .5s linear infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes drift { from { transform: translateX(-12px); } to { transform: translateX(16px); } }
@keyframes spin { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.15); } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 420px; margin: -12px auto 0; }
}

/* ---------- Product showcase panel ---------- */
.showcase {
  --p-surface: var(--card);
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  background: var(--p-surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  isolation: isolate;
}

/* image */
.showcase__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.showcase--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .55), transparent 55%); }
.showcase__chip {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  color: #fff; font-size: 0.9375rem; line-height: 1.3;
}
.showcase__chip img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 18px rgb(0 0 0 / .35); }
.showcase__chip strong { display: block; font-size: 1.0625rem; }
.showcase__chip span { opacity: .92; }

/* dark */
.showcase--dark { color: #F2EFE9; display: grid; place-items: center; }
.showcase--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 50% 48%, color-mix(in srgb, var(--p-accent) 38%, transparent), transparent 70%);
}
.showcase__rings { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; }
.showcase__rings span {
  grid-area: 1 / 1; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--p-accent) 35%, transparent);
  width: 46%; aspect-ratio: 1;
}
.showcase__rings span:nth-child(2) { width: 66%; opacity: .6; }
.showcase__rings span:nth-child(3) { width: 88%; opacity: .3; }
.showcase__icon {
  width: clamp(96px, 26%, 150px); height: auto; border-radius: 24%;
  box-shadow: 0 20px 50px -10px color-mix(in srgb, var(--p-accent) 60%, transparent), 0 0 0 1px rgb(255 255 255 / .08);
  transition: transform .8s var(--ease);
}
.showcase__fact { position: absolute; left: 24px; bottom: 22px; line-height: 1.1; }
.showcase__fact strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 2.5rem; color: var(--p-accent); }
.showcase__fact span { font-size: 0.875rem; opacity: .7; }

/* light / quote */
.showcase--light { color: #1C1A17; display: grid; place-items: center; padding: clamp(28px, 6%, 56px); }
.showcase__corner-icon { position: absolute; top: 22px; left: 22px; width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.showcase__quote { margin: 0; max-width: 22ch; text-align: center; }
.showcase__quote blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.12; text-wrap: balance; }
.showcase__quote figcaption { margin-top: 18px; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-accent); font-weight: 600; }
.showcase--light .showcase__icon { box-shadow: var(--shadow); }

a:hover .showcase__photo { transform: scale(1.04); }
a:hover .showcase__icon { transform: scale(1.05) rotate(-3deg); }

/* ---------- Product list (home) ---------- */
.product-list { display: grid; gap: clamp(56px, 9vw, 112px); }
.product-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.product-row:nth-child(even) .product-row__media { order: 2; }
.product-row__media { display: block; border-radius: var(--radius-lg); text-decoration: none; color: inherit; }
.product-row__name { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.5rem, 4.4vw, 3.5rem); line-height: 1; margin-top: 14px; }
.product-row__name a { text-decoration: none; }
.product-row__name a:hover { color: var(--p-accent); }
.product-row__tagline { margin: 10px 0 18px; font-size: 1.1875rem; font-weight: 500; color: var(--ink); }
.product-row__copy > p:not(.product-meta):not(.product-row__tagline) { color: var(--ink-2); max-width: 34em; }

.product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--live { color: #1F8A57; }
.badge--soon { color: #B8660B; }
.badge--beta { color: var(--accent); }
@media (prefers-color-scheme: dark) {
  .badge--live { color: #5BD69A; }
  .badge--soon { color: #F2AE5C; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; color: var(--ink-2); }
.chips strong { color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  .product-row { grid-template-columns: 1fr; }
  .product-row:nth-child(even) .product-row__media { order: 0; }
}

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; counter-reset: p; }
.principles li {
  counter-increment: p; position: relative;
  padding: 28px 26px 30px; background: var(--card); border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line);
}
.principles li::before {
  content: counter(p, decimal-leading-zero);
  display: block; margin-bottom: 36px;
  font-family: var(--font-serif); font-size: 2.25rem; line-height: 1; color: var(--accent);
}
.principles h3 { font-size: 1.1875rem; margin-bottom: 10px; }
.principles p { color: var(--ink-2); font-size: 0.9875rem; }
@media (max-width: 1000px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.about .prose > * + * { margin-top: 1em; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
#contact { padding-top: 0; }
.contact-card {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 88px);
  border-radius: var(--radius-lg);
  background: var(--ink); color: var(--paper);
}
.contact-card::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 65%);
  pointer-events: none;
}
.contact-card .eyebrow { color: color-mix(in srgb, var(--accent) 60%, var(--paper)); }
.contact-card .lede { color: color-mix(in srgb, var(--paper) 75%, transparent); margin-top: 20px; }
.contact-card__email {
  position: relative; z-index: 1;
  display: inline-block; margin-top: 36px;
  font-family: var(--font-serif); font-size: clamp(1.75rem, 4.6vw, 3.25rem); line-height: 1.1;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px;
  text-decoration-color: color-mix(in srgb, var(--paper) 40%, transparent);
  overflow-wrap: anywhere;
  transition: text-decoration-color .2s;
}
.contact-card__email:hover { text-decoration-color: var(--paper); }

/* ---------- Product page ---------- */
.product-hero { padding-block: 32px clamp(48px, 7vw, 88px); }
.back-link { display: inline-flex; gap: 8px; font-size: 0.9375rem; color: var(--muted); text-decoration: none; margin-bottom: clamp(28px, 5vw, 56px); }
.back-link:hover { color: var(--ink); }
.product-hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.product-hero__icon { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 24px; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.product-hero .display { margin-top: 14px; }
.product-hero .lede { margin-top: 16px; color: var(--ink); font-weight: 500; }
.product-hero__summary { margin-top: 14px; color: var(--ink-2); max-width: 34em; }
@media (max-width: 860px) { .product-hero__grid { grid-template-columns: 1fr; } }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 0; border-block: 1px solid var(--line);
}
.facts div { padding: 28px 24px 28px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: 0.875rem; color: var(--muted); }
.facts dd { margin: 0 0 4px; order: -1; font-family: var(--font-serif); font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1.1; color: var(--p-accent, var(--accent)); }
.facts div { display: flex; flex-direction: column; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.product-story { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.product-story .eyebrow { margin: 0.4em 0 0; }
@media (max-width: 760px) { .product-story { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.feature__num { display: block; margin-bottom: 28px; font-size: 0.8125rem; font-weight: 600; color: var(--p-accent, var(--accent)); letter-spacing: .06em; }
.feature h3 { font-size: 1.125rem; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 0.9875rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--p-accent, var(--accent)) 12%, var(--card));
  box-shadow: 0 0 0 1px var(--line);
}
.cta-band h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; }
.cta-band p { margin-top: 8px; color: var(--ink-2); }
.cta-band .actions { margin-top: 0; }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 32px; }
.mini-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line);
  text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s;
}
.mini-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow); }
.mini-card img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 0 0 1px var(--line); }
.mini-card strong { display: block; font-size: 1.0625rem; }
.mini-card span span { font-size: 0.9375rem; color: var(--muted); }
.mini-card__arrow { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.mini-card:hover .mini-card__arrow { transform: translateX(4px); color: var(--p-accent); }

/* ---------- Generic page (legal, 404) ---------- */
.page { padding-block: clamp(48px, 8vw, 96px) var(--section); }
.page__head { margin-bottom: clamp(32px, 5vw, 56px); padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.page--center { text-align: center; display: flex; flex-direction: column; align-items: center; min-height: 50vh; justify-content: center; }
.page--center .lede { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 72px 32px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__logo { display: inline-block; color: var(--ink); }
.site-footer__brand p { margin-top: 18px; color: var(--muted); }
.site-footer__heading { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; color: var(--ink-2); overflow-wrap: anywhere; }
.site-footer ul a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
