/* =================================================================
   Base — reset, type, container, shared motion primitives.
   Breakpoints (max-width): 1279 laptop · 1023 tablet · 767 phone · 479 small phone.
   At 1440 the layout must match Figma exactly; wider screens centre the
   1440 composition (full-bleed backgrounds still span the viewport).
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (max-width: 767px) { html { scroll-padding-top: 80px; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

/* Content container: 1140px at the 1440 design width, fluid below. */
:root { --gutter: max(16px, min(150px, calc((100vw - 1140px) / 2))); }
@media (max-width: 1279px) { :root { --gutter: 48px; } }
@media (max-width: 1023px) { :root { --gutter: 32px; } }
@media (max-width: 767px)  { :root { --gutter: 16px; } }
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Accessibility */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 16px; border-radius: var(--r-12);
  background: var(--ink); color: #fff; font-weight: var(--fw-medium);
  transition: top var(--t-med) var(--ease-out);
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--gsb-pink); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------
   Scroll reveal: add data-reveal (optionally style="--i:N" for stagger).
   core.js adds .is-in when the element enters the viewport.
   --------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--t-slow) var(--ease-out) calc(var(--i, 0) * 70ms),
    transform var(--t-slow) var(--ease-out) calc(var(--i, 0) * 70ms);
}
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Pressable: tactile feedback for buttons/cards. */
.pressable { transition: transform var(--t-fast) var(--ease-out); }
.pressable:active { transform: scale(0.97); }

/* Screenshot/diff mode (?static=1) and reduced motion: everything visible, no motion. */
html.static *, html.static *::before, html.static *::after {
  animation: none !important; transition: none !important; caret-color: transparent !important;
}
html.static [data-reveal] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Preview pages (/preview/<section>) render a single section at the top. */
body.is-preview { min-height: 100vh; }
