/* Base — reset, fonts, typographic presets, container.
   Breakpoints: desktop >=1200 (default), tablet <=1199.98, mobile <=809.98 */

/* ---------- Fonts ---------- */
@font-face {
  font-family: ". Medium";
  src: url("/assets/fonts/dot-medium.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: ". Book";
  src: url("/assets/fonts/dot-book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: ". Demi";
  src: url("/assets/fonts/dot-demi.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "TWK Issey V1 Regular";
  src: url("/assets/fonts/twk-issey-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Fragment Mono";
  src: url("/assets/fonts/fragment-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-book);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
input:focus, select:focus, button:focus, textarea:focus { outline: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typographic presets ---------- */
/* Section title — ". Medium" 56 / 56 / -1.68 centered */
.h-section {
  font-family: var(--font-medium);
  font-weight: 400;
  font-size: 56px;
  line-height: 56px;
  letter-spacing: -1.68px;
  color: var(--title);
  text-align: center;
}
/* Section subtitle — ". Book" 18 / 22 / -0.36 */
.sub {
  font-family: var(--font-book);
  font-weight: 400;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: -0.36px;
  color: var(--muted);
  text-align: center;
}
/* Small print — ". Book" 14 / 18 / -0.14 */
.small {
  font-family: var(--font-book);
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.14px;
}

@media (max-width: 1199.98px) {
  .container { max-width: 976px; }
  .h-section { font-size: 48px; line-height: 48px; letter-spacing: -1.44px; }
}
@media (max-width: 809.98px) {
  .h-section { font-size: 36px; line-height: 36px; letter-spacing: -1.08px; }
}

/* ---------- Scroll effects (shared) ---------- */
/* data-fx: scroll-linked, reversible (matches the Framer scroll animations
   of the original: elements sit dimmed/offset until scrolled into view,
   and revert when scrolled away). */
[data-fx] {
  opacity: var(--fx-o, 0.5);
  transform: translate(var(--fx-x, 0px), var(--fx-y, 0px));
  transition: opacity 0.8s var(--ease-appear), transform 0.8s var(--ease-appear);
  will-change: opacity, transform;
}
[data-fx].fx-in { opacity: 1; transform: translate(0, 0); }

/* data-anim: one-shot appear (fade-up by default) */
[data-anim] {
  opacity: 0;
  transform: translateY(var(--anim-y, 16px));
  transition: opacity var(--anim-dur, 0.6s) ease, transform var(--anim-dur, 0.6s) var(--ease-appear);
}
[data-anim].anim-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-fx], [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-marquee] .marquee-track { animation: none !important; }
}
