/* ===========================================================
   LAYAN — base: reset, defaults, small utilities
   =========================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* page scrollbar hidden (client request) — the page still scrolls by wheel, touch, keys */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Lenis (js/scroll.js) — recommended host styles */
html.lenis, html.lenis body { height: auto; }
/* Lenis 1.1 only adds .lenis (not .lenis-smooth) to <html>, so the smooth
   CSS scroll above stayed on and animated ScrollTrigger's measuring jumps:
   after a refresh mid-page every trigger was off by the scroll position. */
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* phones / tablets: Safari 26 tints its status bar and bottom toolbar from
   the page background (theme-color is ignored), so they are White
   (client 2026-11-04; per-section tinting didn't take on the iPhone) */
@media (max-width: 1023px) {
  html, body { background: var(--white); }
}

img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; }

:focus-visible { outline: 2px solid var(--garnet); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
