:root {
  --bg: #0a0b0d;
  --paper: #f2efe8;
  --paper-2: #ece7dd;
  --ink: #0b0c10;
  --cream: #fbf7ee;
  --red: #d10f2f;
  --yellow: #f5c518;
  --muted: rgba(11, 12, 16, 0.62);
  --hairline: rgba(11, 12, 16, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --max: 1100px;
}

/* Placeholder typography — swap once you provide your TTFs. */
@font-face {
  font-family: "IV Display";
  src: local("Times New Roman");
  font-weight: 400 900;
  font-style: normal;
}
@font-face {
  font-family: "IV Text";
  src: local("Helvetica Neue");
  font-weight: 300 900;
  font-style: normal;
}

/* Rifton (local file you added) */
@font-face {
  font-family: "Rifton";
  src: url("./fonts/Rifton-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rifton Italic";
  src: url("./fonts/Rifton-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Troy (local file you added) */
@font-face {
  font-family: "Troy";
  src: url("./fonts/Troy-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Baro (local file you added) */
@font-face {
  font-family: "Baro LineOne";
  src: url("./fonts/Baro-LineOne.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  height: 100%;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--cream);
  background: var(--red);
  font-family: "IV Text", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  letter-spacing: -0.01em;
  overflow: hidden;
}

/* Accessibility */
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--red);
  border: 1px solid var(--hairline);
  text-decoration: none;
  z-index: 9999;
}
.skip:focus {
  top: 12px;
}

/* Grain:
   - `.grain` textures the *background* of a section while keeping text clean.
   - `.grain--over` overlays grain on top of media (images), for grit/movement.
*/
.grain,
.grain--over {
  position: relative;
  isolation: isolate;
}
.grain::after,
.grain--over::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("./assets/noise.svg");
  background-size: 260px 260px;
  opacity: 0.18;
  mix-blend-mode: multiply;
}
/* Background grain sits above section background, below content (so it won't dirty fonts). */
.grain::after {
  z-index: 0;
}
.grain > * {
  position: relative;
  z-index: 1;
}
/* Media grain sits above the media itself. */
.grain--over::after {
  z-index: 3;
}

main {
  padding-top: 0;
}

/* HERO: tall track + sticky viewport. The image "reveals" via JS translateY. */
.hero {
  background: transparent;
}
.hero__track {
  height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
}
.hero__viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: 0;
  background: var(--red);
}
.hero__wordmark {
  position: absolute;
  left: 22px;
  top: 18px;
  z-index: 3;
  color: var(--cream);
  font-family: "Baro LineOne", "Troy", "Rifton", "IV Display", ui-serif, Georgia,
    Times, serif;
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: none;
  text-shadow: none;
  opacity: var(--heroMarkOpacity, 1);
  transform: translate3d(0, var(--heroMarkY, 0px), 0);
  will-change: opacity, transform;
}

/* Closing overlay on hero (appears near the end) */
.hero__closing {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(var(--heroClosingY, 18px));
  z-index: 3;
  width: min(var(--max), calc(100vw - 36px));
  text-align: center;
  opacity: 1;
  pointer-events: auto;
  will-change: opacity, transform;
}
.hero__email {
  display: inline-block;
  text-decoration: none;
  font-family: "IV Display", ui-serif, Georgia, Times, serif;
  font-size: clamp(18px, 2.8vw, 34px);
  letter-spacing: -0.03em;
  color: var(--cream);
  text-shadow: none;
}
.hero__email:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.hero__copyright {
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.8);
  text-shadow: 0 18px 80px rgba(0, 0, 0, 0.55);
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .hero__track {
    height: 100vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__img {
    transform: none !important;
    will-change: auto;
  }
}

