:root {
  --sc-canvas: #f6f1e6;
  --sc-surface: #eee7d9;
  --sc-ink: #29251f;
  --sc-ink-soft: #655b4d;
  --sc-accent: #b98252;
  --sc-accent-ink: #21180f;
  --sc-font-display: Georgia, 'Times New Roman', serif;
  --sc-font-text: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --sc-font-mono: 'DM Sans', 'Segoe UI', Arial, sans-serif;
  --sc-gutter: clamp(24px, 6vw, 94px);
}

/* Keep the ScrollCraft engine's page-wide floor aligned with the existing site. */
body {
  margin: 0;
  background: var(--cream);
  background-image: radial-gradient(rgba(110, 91, 65, .055) .7px, transparent .7px);
  background-size: 7px 7px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: normal;
  overflow-x: clip;
}

.hero-scroll {
  min-height: 0;
  padding: 0;
  display: block;
  overflow: visible;
  border-bottom: 6px solid #985336;
  background: #151512;
  color: #fffaf0;
}

.hero-scroll [data-sc-stage] {
  position: relative;
  height: clamp(620px, calc(100svh - 84px), 880px);
  min-height: min(760px, calc(100svh - 84px));
  overflow: clip;
  isolation: isolate;
  background: #171613;
}

.hero-scroll .sc-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
}

.hero-scroll .sc-stage__poster,
.hero-scroll video[data-sc-scrub] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.hero-scroll .sc-scrim {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(16, 16, 14, .82) 0%, rgba(16, 16, 14, .58) 43%, rgba(16, 16, 14, .08) 100%),
    linear-gradient(0deg, rgba(16, 16, 14, .52) 0%, transparent 54%);
}

.hero-scroll .hero-copy {
  width: min(calc(100% - 48px), var(--max));
  max-width: var(--max);
  left: 50%;
  right: auto;
  translate: -50% 0;
  padding: 0 0 102px;
  color: #fffaf0;
}

.hero-scroll .hero-copy .eyebrow {
  margin-bottom: 20px;
  color: #e8d9c2;
  font-size: 10px;
}

.hero-scroll h1 {
  max-width: 760px;
  margin: 0 0 22px;
  color: #fffaf0;
  font: 500 clamp(48px, 7vw, 88px)/1.02 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero-scroll h1 em { color: #dfb77e; }
.hero-scroll .hero-copy > p { max-width: 610px; color: #f0e7d8; }
.hero-scroll .actions { margin-top: 28px; }
.hero-scroll .light-button { background: #f6f1e6; border-color: #f6f1e6; color: #29382b; }
.hero-scroll .outline { border-color: rgba(255,255,255,.76); color: #fffaf0; }

.hero-scroll .coordinates {
  z-index: 5;
  right: var(--sc-gutter);
  bottom: 30px;
  color: #f0e7d8;
}

.hero-scroll .video-credit {
  z-index: 5;
  right: var(--sc-gutter);
  bottom: 10px;
  color: #e8e0d3;
}

.hero-scroll-note {
  position: absolute;
  z-index: 5;
  right: var(--sc-gutter);
  bottom: 75px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fffaf0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.hero-scroll-note i {
  display: block;
  width: 34px;
  height: 1px;
  background: #d2a26f;
}

@media (max-width: 760px) {
  .hero-scroll [data-sc-stage] { height: min(860px, 100svh); min-height: 620px; }
  .hero-scroll .sc-stage { height: 100svh; min-height: 0; }
  .hero-scroll .sc-stage__poster,
  .hero-scroll video[data-sc-scrub] { object-position: center 50%; }
  .hero-scroll .sc-scrim {
    background: linear-gradient(0deg, rgba(16,16,14,.88) 0%, rgba(16,16,14,.68) 35%, rgba(16,16,14,.12) 100%);
  }
  .hero-scroll .hero-copy {
    width: calc(100% - 40px);
    bottom: 76px;
    padding-bottom: 44px;
  }
  .hero-scroll h1 { font-size: clamp(45px, 12vw, 66px); }
  .hero-scroll .hero-copy > p { max-width: 36ch; font-size: 14px; }
  .hero-scroll .actions { gap: 9px; }
  .hero-scroll .actions .button { min-height: 46px; padding-inline: 14px; font-size: 10px; }
  .hero-scroll .coordinates { display: none; }
  .hero-scroll-note { right: 20px; bottom: 25px; font-size: 8px; }
  .hero-scroll .video-credit { right: 20px; bottom: 8px; left: 20px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { min-height: 0; }
  .hero-scroll [data-sc-stage] {
    position: relative;
    height: clamp(600px, calc(100svh - 84px), 820px);
    min-height: min(700px, calc(100svh - 84px));
  }
  .hero-scroll .sc-copy,
  .hero-scroll [data-sc-cue] { opacity: 1 !important; transform: none !important; }
  .hero-scroll video[data-sc-scrub] { display: none; }
  .hero-scroll-note { display: none; }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .hero-scroll [data-sc-stage] { height: min(820px, 100svh); min-height: 600px; }
  .hero-scroll .hero-copy { bottom: 42px; padding-bottom: 42px; }
}
