/* Maple Grove Capital — one page, one film.
   Ink on white paper: navy text, hairlines, no cards, no buttons. */

@font-face {
  font-family: "MG Bodoni";
  src: url("assets/fonts/bodoni-moda-latin-opsz.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("assets/fonts/spectral-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("assets/fonts/spectral-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "MG Jost";
  src: url("assets/fonts/jost-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #0d1e3c;
  --ink-soft: #55607a;
  --line: #dde1e8;
  --deep: #0a1730;
  --on-deep: rgba(255, 255, 255, 0.88);
  --on-deep-soft: rgba(255, 255, 255, 0.62);
  --film-paper: #eceded;

  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --display: "MG Bodoni", "Bodoni 72", Didot, "Times New Roman", serif;
  --label: "MG Jost", "Avenir Next", "Century Gothic", system-ui, sans-serif;

  --gutter: clamp(20px, 5.6vw, 96px);
  --top-h: 76px;
  --step-display: clamp(2.25rem, 1.1rem + 4.6vw, 5.25rem);
  --step-head: clamp(1.75rem, 1.15rem + 2.4vw, 3.25rem);
  --step-sub: clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem);
  --step-body: clamp(1.125rem, 1.07rem + 0.2vw, 1.25rem);
  --step-label: 0.8125rem;
  --space-section: clamp(96px, 15vw, 232px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
ol { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute; left: var(--gutter); top: -80px; z-index: 20;
  padding: 10px 14px; background: var(--ink); color: #fff; font-family: var(--label); font-size: var(--step-label);
  letter-spacing: 0.08em; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------------------------------------------------------------- top bar */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  height: var(--top-h);
  display: flex; align-items: center; gap: clamp(16px, 2vw, 28px);
  padding: 0 var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.top.is-solid { background: var(--paper); border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; }
.brand-mark { width: auto; height: 34px; }
.brand-name {
  font-family: var(--display); font-weight: 400; font-size: 1.3125rem; line-height: 1;
  letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap;
  font-variation-settings: "opsz" 28;
}
.top-rule { width: 1px; height: 34px; background: currentColor; opacity: 0.55; }
.top-fund {
  font-family: var(--label); font-weight: 500; font-size: var(--step-label);
  letter-spacing: 0.28em; text-transform: uppercase; white-space: nowrap; color: var(--ink);
}

/* ---------------------------------------------------------------- film */

.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 480px;
  background: var(--film-paper) url("assets/film/poster-16x9.jpg") center / cover no-repeat;
  overflow: hidden;
}
.film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-aspect-ratio: 4/5) {
  .hero { background-image: url("assets/film/poster-9x16.jpg"); }
}
@media (prefers-reduced-motion: reduce) {
  .hero { background-image: url("assets/film/still-16x9.jpg"); }
  .film { display: none; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: reduce) and (max-aspect-ratio: 4/5) {
  .hero { background-image: url("assets/film/still-9x16.jpg"); }
}

/* ---------------------------------------------------------------- statement */

.statement {
  padding: var(--space-section) var(--gutter);
  display: grid; justify-items: center; text-align: center;
}
.statement h1 {
  max-width: 17ch;
  font-weight: 300; font-size: var(--step-display); line-height: 1.08; letter-spacing: -0.022em;
  text-wrap: balance;
}
.statement-next {
  margin-top: clamp(36px, 4.4vw, 68px); max-width: 26ch;
  font-weight: 300; font-size: clamp(1.375rem, 1.05rem + 1.25vw, 2.25rem); line-height: 1.25; letter-spacing: -0.012em; color: var(--ink-soft);
  text-wrap: balance;
}

/* ---------------------------------------------------------------- plate */

.plate { background: var(--film-paper); }
.plate img { width: 100%; height: auto; }

/* ---------------------------------------------------------------- close */

.close { padding: var(--space-section) var(--gutter); display: grid; justify-items: center; text-align: center; }
.close-line {
  max-width: 24ch;
  font-weight: 300; font-size: var(--step-head); line-height: 1.12; letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---------------------------------------------------------------- foot */

.foot {
  background: var(--deep); color: var(--on-deep);
  padding: clamp(64px, 8vw, 112px) var(--gutter) clamp(40px, 5vw, 64px);
  padding-bottom: max(clamp(40px, 5vw, 64px), env(safe-area-inset-bottom));
  display: grid; row-gap: clamp(56px, 7vw, 96px);
}
.foot-brand { display: flex; align-items: flex-end; gap: 22px; }
.foot-mark { width: auto; height: 76px; filter: brightness(0) invert(1); opacity: 0.92; }
.foot-name {
  font-family: var(--display); font-size: 1.75rem; line-height: 1; letter-spacing: 0.24em; text-transform: uppercase;
  font-variation-settings: "opsz" 34; color: #fff;
}
.foot-fund {
  margin-top: 12px;
  font-family: var(--label); font-weight: 500; font-size: var(--step-label); letter-spacing: 0.3em; text-transform: uppercase; color: var(--on-deep-soft);
}
.foot-legal {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 112px); row-gap: 16px;
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.875rem; line-height: 1.55; color: var(--on-deep-soft);
}
.foot-legal p:first-child { max-width: 62ch; }
.foot-legal p:last-child { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- narrow */

@media (max-width: 860px) {
  :root { --top-h: 64px; }
  .brand-mark { height: 28px; }
  .brand-name { font-size: 1.0625rem; letter-spacing: 0.22em; }
  .top-rule, .top-fund { display: none; }
  .statement, .close { justify-items: start; text-align: left; }
  .plate img { aspect-ratio: 4 / 3; object-fit: cover; }
  .foot-legal { grid-template-columns: 1fr; }
  .foot-mark { height: 60px; }
  .foot-name { font-size: 1.375rem; }
}
