/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --c-light: #fefefe;
  --c-dark: #000;
  --c-muted: rgba(0, 0, 0, 0.165);
  --c-gold: #b78c57;
  --c-eat: rgb(235, 220, 203);
  --c-sip: #d5e9e1;

  --f-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', serif;
  --f-text: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --gutter: 30px;
  --headline-size: 52px;
  --headline-lh: 67.6px;

  /* Breakpoints used below (CSS can't read vars in media queries):
     430 / 500 / 640 / 650 / 768 / 1024 / 1190 / 1280 / 1366 / 1536 / 1600 / 1800 / 1920 / 2500 */
}

@media (max-width: 768px) {
  :root { --headline-size: 30px; --headline-lh: 1; }

}
@media (max-width: 650px) {
  :root { --gutter: 15px; }
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; }

/* Scroll lock (intro + mobile menu) and Lenis integration. */
html.is-scroll-locked, html.is-scroll-locked body { overflow: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Thin dark scrollbar. */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #525252; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #434343; }
* { scrollbar-width: thin; scrollbar-color: #525252 transparent; }

/* ==========================================================================
   Accessibility
   ========================================================================== */
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
main:focus { outline: none; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 2000;
  padding: 10px 16px; background: #000; color: #fff;
  font: 500 14px/1 var(--f-text); letter-spacing: 1px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.noscript { padding: 40px var(--gutter); font-family: var(--f-text); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Per-element switch: hidden on phones (gallery `mobile: false`). */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

/* Media loading (modules/mediaFade.js): images fade in when decoded; their
   frames show a soft placeholder tone instead of an empty hole meanwhile. */
.media-fade { opacity: 0; transition: opacity 0.6s ease; }
.media-fade.is-loaded { opacity: 1; }
.tile, .story__frame { background-color: #eee8df; }
.tile--ring, .story__frame { background-clip: content-box; }

/* Reveal on scroll (modules/revealOnScroll.js): rise 50px + fade in. */
[data-reveal].is-armed { opacity: 0; transform: translateY(50px); }
[data-reveal].is-armed.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   Layout + shared typography
   ========================================================================== */
.container { padding-left: var(--gutter); padding-right: var(--gutter); }

.section-headline { font-size: var(--headline-size); line-height: var(--headline-lh); }

/* Gradient ink sweep: text is transparent until revealed (modules/textReveal.js). */
.animated-text {
  display: inline-block;
  background: linear-gradient(to right, #000, #000, #000, #000, rgba(0, 0, 0, 0)) no-repeat;
  background-size: 500% auto;
  background-position: 150% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.animated-text.is-shown { animation: ink-sweep 3s linear forwards; }
@keyframes ink-sweep { to { background-position: 0 center; } }

/* Split text (modules/splitTextScroll.js). */
.split-word { display: inline-block; white-space: nowrap; }
.split-char { display: inline-block; opacity: 0; transform-origin: 50% 0; will-change: opacity, transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .split-char { opacity: 1; }
}
