/* =========================================
   HERO — Dark Island
   Inset rounded video frame; giant cream
   wordmark riding the cloud line.
   ========================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 34rem;
  background: var(--charcoal);
}

/* Full-bleed: the island owns the whole viewport, no frame */
.hero-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  /* Poster tone while the video buffers, so the frame never flashes */
  background: #20291f;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cinematic grain on the footage only */
.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Legibility scrim: airier than before — the wordmark corner still gets
   its press, but the sky is allowed to glow */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(16, 25, 20, 0.26) 0%,
      rgba(16, 25, 20, 0) 22%,
      rgba(16, 25, 20, 0) 55%,
      rgba(16, 25, 20, 0.3) 74%,
      rgba(16, 25, 20, 0.55) 88%,
      rgba(16, 25, 20, 0.74) 100%);
}

/* --- Content ----------------------------- */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.4rem, 3.2vw, 3rem);
}

.hero-eyebrow {
  /* Clear the fixed hamburger chip (top left, 24-68px) */
  margin: 0 0 0 clamp(2.2rem, 2.6vw, 3rem);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 234, 215, 0.85);
  text-shadow: 0 1px 12px rgba(16, 25, 20, 0.5);
}

/* Bottom band: giant name left, message right */
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.hero-name {
  margin: 0 0 -0.06em -0.04em;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4.4rem, 16.5vw, 19rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  color: #f4ead7;
}

/* Superscript asterisk hanging off the final letter, Prisma-style */
.hero-name-ast {
  display: inline-block;
  vertical-align: super;
  margin-left: 0.02em;
  font-size: 0.34em;
  line-height: 1;
  letter-spacing: 0;
  color: var(--accent-bright);
}

/* Mask reveal: the wordmark slides up out of the cloud line */
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero-line-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: hero-line-up 1.2s var(--ease-lux) var(--reveal-delay, 0.3s) forwards;
}

@keyframes hero-line-up {
  to {
    transform: translateY(0);
  }
}

.hero-side {
  flex: 0 1 25rem;
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2vh, 1.4rem);
  margin-bottom: 0.6em;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  /* Glass panel over the footage: real blur with something behind it */
  background: rgba(16, 25, 20, 0.32);
  border: 1px solid rgba(244, 234, 215, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (prefers-reduced-transparency: reduce) {
  .hero-side {
    background: rgba(16, 25, 20, 0.82);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.hero-headline {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #f4ead7;
  text-shadow: 0 1px 14px rgba(16, 25, 20, 0.45);
}

/* Serif accent voice — Fraunces italic, gold like the horizon */
.hero-headline-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  /* Descender clearance for italic g/j */
  display: inline-block;
  line-height: 1.15;
  padding-bottom: 0.1em;
  color: var(--accent-bright);
}

.hero-sub {
  margin: 0;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(244, 234, 215, 0.78);
  text-shadow: 0 1px 12px rgba(16, 25, 20, 0.5);
}

/* --- Status + CTAs ------------------------ */
.hero-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(244, 234, 215, 0.75);
  text-shadow: 0 1px 10px rgba(16, 25, 20, 0.5);
}

.hero-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 0 rgba(232, 188, 102, 0.34);
  animation: hero-pulse 2.4s ease-out infinite;
}

@keyframes hero-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 188, 102, 0.32);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(232, 188, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(232, 188, 102, 0);
  }
}

.hero-ctas {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

/* Cream pill with a dark orb carrying the arrow — the one filled CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.42rem 0.42rem 0.42rem 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: #131a12;
  transition: transform 160ms ease-out;
  will-change: transform;
}

.hero-cta:active {
  transform: scale(0.97);
}

.hero-cta-orb {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: #131a12;
  color: var(--ink);
  font-size: 1rem;
  transition: transform 0.3s var(--ease-lux);
}

.hero-cta:hover .hero-cta-orb {
  transform: scale(1.12);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: rgba(244, 234, 215, 0.85);
  text-shadow: 0 1px 10px rgba(16, 25, 20, 0.5);
  transition: color var(--dur-fast) ease, transform 160ms ease-out;
}

.hero-link:hover {
  color: var(--ink);
}

.hero-link:active {
  transform: scale(0.97);
}

.hero-link-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-lux);
}

.hero-link:hover .hero-link-arrow {
  transform: translateX(5px);
}

/* --- Proof band ----------------------------
   Standalone strip between hero and marquee. The sunset mist bleeding
   out of the hero frame pools here, so the page continues the sky. */
.hero-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(5.8rem, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
  max-width: 90rem;
  margin: 0 auto;
  padding: clamp(1.8rem, 4vh, 3rem) clamp(1.5rem, 6vw, 7rem) clamp(2.4rem, 5vh, 3.6rem);
}

.hero-proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-proof-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  line-height: 1;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
}

.hero-proof-label {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --- Generic reveal ------------------------ */
.hero-reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-fade-up 1s var(--ease-lux) var(--reveal-delay, 0.2s) forwards;
}

@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive ---------------------------- */
@media (max-width: 900px) {
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }

  .hero-name {
    font-size: clamp(4rem, 19vw, 9rem);
  }

  .hero-side {
    flex-basis: auto;
    max-width: 30rem;
    padding-bottom: 0;
  }
}

@media (max-width: 760px) {
  .hero {
    height: auto;
    min-height: 100svh;
  }

  .hero-frame {
    min-height: 100svh;
    height: auto;
    display: flex;
  }

  .hero-content {
    position: relative;
    inset: auto;
    flex: 1;
    gap: 3.5rem;
  }

  /* Keep clear of the fixed hamburger chip (top right on mobile) */
  .hero-eyebrow {
    margin-left: 0;
    max-width: calc(100% - 3.6rem);
    font-size: 0.66rem;
    letter-spacing: 0.24em;
    line-height: 1.8;
  }

  .hero-sub {
    text-wrap: pretty;
  }

  .hero-proof {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1.35rem;
    padding: 2rem 1.5rem 2.6rem;
  }
}

/* =========================================
   MARQUEE — scrolling serif band
   ========================================= */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(1.1rem, 2.5vh, 1.8rem) 0;
  background: linear-gradient(180deg, rgba(215, 168, 79, 0.05), transparent);
  /* The ribbon is grabbable: flick it like a filmstrip (site_fx.js).
     pan-y keeps normal vertical scrolling working on touch. */
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.marquee.is-dragging {
  cursor: grabbing;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  /* No-JS fallback: plain CSS drift. site_fx.js takes over with a
     physics loop (scroll velocity + drag inertia) and disables this. */
  animation: marquee-scroll 80s linear infinite;
  will-change: transform;
}

.marquee-item {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.2;
  white-space: nowrap;
  color: transparent;
  /* Cream stroke: the marquee lives on the night canvas */
  -webkit-text-stroke: 1px rgba(244, 234, 215, 0.38);
  margin-right: 2.6rem;
  transition: color 0.22s ease;
}

/* The word under the cursor fills gold while the ribbon keeps moving */
.marquee-item:hover {
  color: var(--accent-bright);
  -webkit-text-stroke: 1px transparent;
}

.marquee-sep {
  font-size: 0.95rem;
  color: var(--leaf);
  margin-right: 2.6rem;
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* --- Reduced motion ------------------------- */
@media (prefers-reduced-motion: reduce) {

  .hero-reveal,
  .hero-line-inner,
  .marquee-track {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-status-dot {
    animation: none;
  }
}
