

/* Lenis' own stylesheet (its package exports don't expose the .css path). */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ------------------------------------------------------------------
   Type system
   Display: Archivo at width 125, thin — extended caps that sit back into
            the image, like lettering on a showroom wall.
   Accent:  Instrument Serif italic, one or two words at a time.
   Text:    Geist; labels in Geist Mono.
   ------------------------------------------------------------------ */
:root {
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, monospace;

  /* Sampled off the renders. */
  --color-ink: #0c0b0a;
  --color-ink-2: #15130f;
  --color-stone: #635b54;
  --color-slate: #414e5d;
  --color-oxblood: #6e1620;
  --color-oxblood-lit: #a3303a;
  --color-linen: #e6dcc8;
  --color-brass: #c9a36a;
  --color-chalk: #f1ece3;

  --text-hero: clamp(2.5rem, 6.4vw, 6.5rem);
  --text-hero--line-height: 0.92;
  --text-hero--letter-spacing: -0.02em;

  --text-display: clamp(2rem, 4.6vw, 4.5rem);
  --text-display--line-height: 0.98;
  --text-display--letter-spacing: -0.015em;

  --text-lead: clamp(1.0625rem, 1.4vw, 1.3125rem);
  --text-lead--line-height: 1.55;
  --text-lead--letter-spacing: -0.01em;

  --text-body: clamp(0.9375rem, 1vw, 1rem);
  --text-body--line-height: 1.65;
  --text-body--letter-spacing: -0.005em;

  --text-label: 0.6875rem;
  --text-label--line-height: 1.3;
  --text-label--letter-spacing: 0.12em;
}

@layer base {
  html {
    -webkit-text-size-adjust: 100%;
    background: var(--color-ink);
  }
  body {
    margin: 0;
    background: var(--color-ink);
    color: var(--color-chalk);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
  }
  ::selection {
    background: var(--color-oxblood-lit);
    color: var(--color-chalk);
  }
  :focus-visible {
    outline: 1.5px solid var(--color-brass);
    outline-offset: 3px;
    border-radius: 4px;
  }
}

@layer utilities {
  .h-screen-s {
    height: 100svh;
  }
  /* Widest cut of Archivo for the display face. */
  .wide {
    font-stretch: 125%;
    font-variation-settings: "wdth" 125;
  }

  [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition:
      opacity 1.1s cubic-bezier(0.2, 0.7, 0.1, 1),
      transform 1.1s cubic-bezier(0.2, 0.7, 0.1, 1);
  }
  [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
  @media (prefers-reduced-motion: reduce) {
    [data-reveal] {
      transform: none;
    }
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
}

/* Detail close-ups ease in from a slight zoom. */
@keyframes settle {
  from {
    transform: scale(1.12);
  }
}

@keyframes letter-in {
  from {
    opacity: 0;
    transform: translate3d(0, 0.6em, 0) rotate(6deg);
    filter: blur(10px);
  }
}

/* Film grain over the whole site — a 3-frame jitter so it feels projected. */
.grain-overlay {
  position: fixed;
  inset: -50%;
  z-index: 55;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(-3%, 2%, 0); }
  66% { transform: translate3d(2%, -3%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .grain-overlay {
    animation: none;
  }
}

/* SAZITO_PLATFORM_CONTAINER_FIX_SCRUM_4531 */
/* No author .container rule found; Tailwind's built-in .container
   utility never had a phone gutter in EITHER preview or a real build
   (width:100% + breakpoint max-width, no padding/margin, ever) — see
   platformContainerFix.ts for the full mechanism, verified both ways.
   Scoped to @layer components (not unlayered) so a REAL utility class the
   author DID apply — e.g. class="container px-8" — still wins: Tailwind's
   own @layer utilities (publish) and its unlayered runtime injection
   (preview) both outrank @layer components; this default only applies
   when nothing else sets padding/margin at all. */
@layer components {
  .container {
    margin-inline: auto;
    padding-inline: 1rem;
  }
  @media (min-width: 640px) {
    .container {
      padding-inline: 1.5rem;
    }
  }
}
