/* ============================================================
   BASE / RESET / PRIMITIVES
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--color-text); }
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }

::selection { background: var(--forest-200); color: var(--forest-900); }

:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--r-xs); }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-6); }
.container-wide { max-width: var(--container-wide); }
@media (max-width: 640px) { .container { padding-inline: var(--sp-4); } }

.section { padding-block: var(--sp-24); }
.section-sm { padding-block: var(--sp-16); }
@media (max-width: 900px) { .section { padding-block: var(--sp-16); } .section-sm { padding-block: var(--sp-12); } }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.serif { font-family: var(--font-display); }
.muted { color: var(--color-text-muted); }
.center { text-align: center; }

/* ---- Reveal-on-scroll system ----
   One shared vocabulary of entrance motion, all subtle: opacity + a small
   translate/scale, never large distances, never bounce. `.reveal` alone
   is the default (fade-up); add a variant class to change the motion. */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury), filter 0.8s var(--ease-luxury); }
.reveal.is-in { opacity: 1; transform: none; }

.reveal-fade { transform: none; }
.reveal-scale { transform: scale(0.97) translateY(10px); }
.reveal-scale.is-in { transform: none; }
.reveal-left { transform: translateX(-24px); }
.reveal-left.is-in { transform: none; }
.reveal-right { transform: translateX(24px); }
.reveal-right.is-in { transform: none; }
.reveal-soft { transform: translateY(10px); filter: blur(4px); }
.reveal-soft.is-in { transform: none; filter: blur(0); }

/* Mobile: shorter travel distances, same subtle character */
@media (max-width: 640px) {
  .reveal { transform: translateY(12px); }
  .reveal-scale { transform: scale(0.985) translateY(6px); }
  .reveal-left { transform: translateX(-14px); }
  .reveal-right { transform: translateX(14px); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--forest-200); border-radius: 999px; border: 3px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--forest-300); }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hide-mobile { }
.only-mobile { display: none; }
@media (max-width: 900px) { .hide-mobile { display: none !important; } .only-mobile { display: revert; } }
/* Phones: tighten the tall desktop section rhythm so products surface sooner. */
@media (max-width: 640px) { .section { padding-block: var(--sp-10); } .section-sm { padding-block: var(--sp-8); } }
