/* ============================================================
   VORYN — field-expedition dossier meets bioluminescent vein
   ============================================================ */

:root {
  /* --- Color tokens --- */
  --basalt: #0B0F0D;       /* base background (green-black) */
  --deep-vein: #121A16;    /* panel / card backgrounds */
  --deep-vein-2: #0E1512;  /* alternating section bg */
  --vein-glow: #3EAE79;    /* desaturated emerald accent */
  --vein-glow-soft: rgba(62, 174, 121, 0.14);
  --relic-gold: #C9A227;   /* warm bronze/gold secondary accent */
  --relic-gold-soft: rgba(201, 162, 39, 0.12);
  --bone: #EDE8DE;         /* primary text (warm off-white) */
  --ash: #8B9690;          /* muted body text / captions */
  --stroke: rgba(139, 150, 144, 0.16); /* hairline borders */
  --stroke-strong: rgba(139, 150, 144, 0.28);

  /* --- Glow utilities --- */
  --glow-emerald: 0 0 24px -4px rgba(62, 174, 121, 0.55);
  --glow-emerald-lg: 0 0 60px -8px rgba(62, 174, 121, 0.45);
  --glow-gold: 0 0 20px -6px rgba(201, 162, 39, 0.5);

  /* --- Type --- */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* --- Layout --- */
  --container: 1200px;
  --container-narrow: 720px;
  --radius: 4px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background: var(--basalt);
  color: var(--bone);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* Visible focus states on every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--vein-glow);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   PAGE + VEIN-CRACK BACKDROP
   ============================================================ */

.page {
  position: relative;
  min-height: 100vh;
  z-index: 0;
}

.vein-backdrop {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.vein-backdrop svg {
  position: absolute;
  top: 0;
  left: 6%;
  width: 40%;
  height: 100%;
}

.vein-halo,
.vein-core {
  fill: none;
  stroke: var(--vein-glow);
}

.vein-halo {
  stroke-width: 5px;
  opacity: 0.35;
  filter: blur(6px);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    vein-draw 2.6s ease-out 0.2s forwards,
    vein-pulse 5s ease-in-out 3s infinite;
}

.vein-core {
  stroke-width: 1.4px;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(62, 174, 121, 0.8));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: vein-draw 2.6s ease-out 0.2s forwards;
}

@keyframes vein-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes vein-pulse {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.55; }
}

/* Everything above the vein */
.hero, .section, .footer { position: relative; z-index: 1; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow { max-width: var(--container-narrow); }

.section {
  padding: 7rem 0;
}

.section-alt {
  background: rgba(14, 21, 18, 0.55); /* semi-transparent so the vein threads through */
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

/* Compass/survey tick before section titles */
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--vein-glow);
  box-shadow: var(--glow-emerald);
}

.section-intro {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ash);
  font-size: 1.1rem;
  max-width: 60ch;
  margin-bottom: 3rem;
}

/* ============================================================
   LORE RELIC CENTERPIECE
   ============================================================ */

.lore-visual {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 2.5rem;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(62, 174, 121, 0.12), transparent 68%),
    linear-gradient(145deg, rgba(12, 18, 15, 0.96), rgba(7, 10, 9, 0.98));
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.08), 0 0 72px -24px rgba(62, 174, 121, 0.42);
  overflow: hidden;
  isolation: isolate;
}

.lore-visual::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.16);
  pointer-events: none;
}

.lore-visual::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(62, 174, 121, 0.14);
  pointer-events: none;
}

.relic-scene-canvas,
.relic-scene-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.relic-scene-canvas {
  display: block;
}

/* [hidden] must win over display:block above, or the poster shows through
   on top of a working canvas. */
.relic-scene-canvas[hidden],
.relic-scene-fallback[hidden] {
  display: none !important;
}

.relic-scene-fallback {
  filter: saturate(0.72) contrast(1.05);
}

.lore-visual.is-fallback .relic-scene-canvas {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .lore-visual {
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.08), 0 0 42px -18px rgba(62, 174, 121, 0.28);
  }
}


/* =========================================================
   VORYN — FIELD RECORD / VIDEO SECTION
   ========================================================= */

/* ---------- SECTION ---------- */

.field-record {
    position: relative;
    width: 100%;
    padding: 110px 0 120px;
    background: #050807;
    overflow: hidden;
}

/* subtle background atmosphere */
.field-record::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(35, 150, 91, 0.055),
            transparent 45%
        ),
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(32, 150, 91, 0.018) 50%,
            transparent 100%
        );
}

/* ---------- CONTENT WIDTH ---------- */

.field-record-container {
    position: relative;
    z-index: 2;

    width: min(1200px, 92%);
    margin: 0 auto;
}


/* =========================================================
   TOP META INFORMATION
   ========================================================= */

.field-record-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}


/* left label */

.field-record-label {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #35b879;

    font-family: "Space Mono", monospace;
    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.28em;
    text-transform: uppercase;
}


/* little green signal dot */

.field-record-label::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: #35b879;

    box-shadow:
        0 0 8px rgba(53, 184, 121, 0.8),
        0 0 18px rgba(53, 184, 121, 0.35);

    animation: signalPulse 2s ease-in-out infinite;
}


/* right signal */

.field-record-signal {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;

    border: 1px solid rgba(53, 184, 121, 0.2);

    background: rgba(5, 15, 11, 0.65);

    color: #7d9589;

    font-family: "Space Mono", monospace;
    font-size: 8px;

    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.field-record-signal::before {
    content: "";

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #35b879;

    box-shadow: 0 0 8px rgba(53, 184, 121, 0.8);
}


/* =========================================================
   VIDEO FRAME
   ========================================================= */

.field-record-video {
    position: relative;

    width: 100%;

    /*
       Landscape ratio.
       This gives the video more horizontal breathing room.
    */
    aspect-ratio: 16 / 8.2;

    overflow: hidden;

    background: #020403;

    border: 1px solid rgba(53, 184, 121, 0.24);

    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 20px 70px rgba(0, 0, 0, 0.45),
        inset 0 0 80px rgba(0, 0, 0, 0.5);
}


/* ============================================================
   VORYN — FIELD RECORD / VIDEO
   ============================================================ */

.field-record {
  position: relative;
  width: 100%;
  padding: 110px 0 120px;
  background: #050807;
  overflow: hidden;
}

.field-record::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(35, 150, 91, 0.055),
      transparent 45%
    ),
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(32, 150, 91, 0.018) 50%,
      transparent 100%
    );
}

.field-record-container {
  position: relative;
  z-index: 2;

  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ============================================================
   TOP META
   ============================================================ */

.field-record-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.field-record-label {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #35b879;

  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;

  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.field-record-label::before {
  content: "";

  width: 6px;
  height: 6px;

  border-radius: 50%;
  background: #35b879;

  box-shadow:
    0 0 8px rgba(53, 184, 121, 0.8),
    0 0 18px rgba(53, 184, 121, 0.35);

  animation: signalPulse 2s ease-in-out infinite;
}

.field-record-signal {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px 12px;

  border: 1px solid rgba(53, 184, 121, 0.2);

  background: rgba(5, 15, 11, 0.65);

  color: #7d9589;

  font-family: var(--font-mono);
  font-size: 8px;

  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.field-record-signal::before {
  content: "";

  width: 5px;
  height: 5px;

  border-radius: 50%;
  background: #35b879;

  box-shadow: 0 0 8px rgba(53, 184, 121, 0.8);
}

/* ============================================================
   VIDEO FRAME
   ============================================================ */

.field-record-video {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 8.2;

  overflow: hidden;

  background: #020403;

  border: 1px solid rgba(53, 184, 121, 0.24);

  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 20px 70px rgba(0, 0, 0, 0.45),
    inset 0 0 80px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   VIDEO
   ============================================================ */

.field-record-video video {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center center;

  transform: translate(-50%, -50%) scale(0.84);

  will-change: transform;

  filter:
    brightness(0.82)
    contrast(1.08)
    saturate(0.92);

  max-width: none;
  max-height: none;
}

/* ============================================================
   CINEMATIC OVERLAY
   ============================================================ */

.field-record-video::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;
  z-index: 2;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.20) 0%,
      transparent 28%,
      transparent 62%,
      rgba(0, 0, 0, 0.72) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.35) 0%,
      transparent 30%,
      transparent 70%,
      rgba(0, 0, 0, 0.25) 100%
    );
}

/* ============================================================
   SCANLINES
   ============================================================ */

.video-scanlines {
  position: absolute;
  inset: 0;

  z-index: 3;

  pointer-events: none;

  opacity: 0.08;

  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 3px,
      rgba(80, 220, 150, 0.12) 4px
    );

  mix-blend-mode: screen;
}

/* ============================================================
   CORNER FRAME
   ============================================================ */

.video-corner {
  position: absolute;

  z-index: 5;

  width: 34px;
  height: 34px;

  pointer-events: none;
}

.video-corner.top-left {
  top: 14px;
  left: 14px;

  border-top: 1px solid #35b879;
  border-left: 1px solid #35b879;
}

.video-corner.top-right {
  top: 14px;
  right: 14px;

  border-top: 1px solid #35b879;
  border-right: 1px solid #35b879;
}

.video-corner.bottom-left {
  bottom: 14px;
  left: 14px;

  border-bottom: 1px solid #35b879;
  border-left: 1px solid #35b879;
}

.video-corner.bottom-right {
  right: 14px;
  bottom: 14px;

  border-right: 1px solid #35b879;
  border-bottom: 1px solid #35b879;
}

/* ============================================================
   LIVE TRANSMISSION
   ============================================================ */

.video-live {
  position: absolute;

  top: 18px;
  right: 18px;

  z-index: 6;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 9px 13px;

  border: 1px solid rgba(53, 184, 121, 0.25);

  background: rgba(3, 10, 7, 0.72);

  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  color: #9aac9f;

  font-family: var(--font-mono);
  font-size: 8px;

  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.video-live::before {
  content: "";

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #35b879;

  box-shadow:
    0 0 7px rgba(53, 184, 121, 0.9),
    0 0 15px rgba(53, 184, 121, 0.35);

  animation: signalPulse 1.8s ease-in-out infinite;
}

/* ============================================================
   EXPEDITION CAPTION
   ============================================================ */

.video-caption {
  position: absolute;

  z-index: 6;

  left: 28px;
  bottom: 28px;

  max-width: 600px;

  pointer-events: none;
}

.video-caption-label {
  margin-bottom: 10px;

  color: #35b879;

  font-family: var(--font-mono);
  font-size: 8px;

  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.video-caption-title {
  margin: 0;

  color: #f2f0e7;

  font-family: var(--font-display);

  font-size: clamp(32px, 4vw, 58px);

  font-weight: 700;

  line-height: 0.95;

  letter-spacing: 0.035em;

  text-transform: uppercase;

  text-shadow:
    0 2px 15px rgba(0, 0, 0, 0.7);
}

/* ============================================================
   BOTTOM METADATA
   ============================================================ */

.field-record-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-top: 12px;

  color: #52655c;

  font-family: var(--font-mono);
  font-size: 7px;

  letter-spacing: 0.2em;

  text-transform: uppercase;
}

.field-record-meta span {
  white-space: nowrap;
}

/* ============================================================
   ANIMATION
   ============================================================ */

@keyframes signalPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

  .field-record {
    padding: 85px 0 95px;
  }

  .field-record-container {
    width: 90%;
  }

  .field-record-video {
    aspect-ratio: 16 / 9;
  }

  .field-record-video video {
    transform: translate(-50%, -50%) scale(0.84);
  }

  .video-caption {
    left: 22px;
    bottom: 22px;
  }

  .video-caption-title {
    font-size: clamp(30px, 5vw, 46px);
  }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

  .field-record {
    padding: 70px 0 80px;
  }

  .field-record-container {
    width: 92%;
  }

  .field-record-header {
    margin-bottom: 12px;
  }

  .field-record-label {
    font-size: 8px;
    letter-spacing: 0.2em;
  }

  .field-record-signal {
    padding: 7px 9px;

    font-size: 6px;
    letter-spacing: 0.12em;
  }

  .field-record-video {
    aspect-ratio: 16 / 9;

    border-color: rgba(53, 184, 121, 0.20);
  }

  .field-record-video video {
    transform:
      translate(-50%, -50%)
      scale(0.80);
  }

  .video-live {
    top: 10px;
    right: 10px;

    padding: 7px 9px;

    font-size: 6px;
    letter-spacing: 0.12em;
  }

  .video-corner {
    width: 22px;
    height: 22px;
  }

  .video-corner.top-left,
  .video-corner.top-right {
    top: 9px;
  }

  .video-corner.bottom-left,
  .video-corner.bottom-right {
    bottom: 9px;
  }

  .video-corner.top-left,
  .video-corner.bottom-left {
    left: 9px;
  }

  .video-corner.top-right,
  .video-corner.bottom-right {
    right: 9px;
  }

  .video-caption {
    left: 16px;
    bottom: 17px;

    max-width: calc(100% - 32px);
  }

  .video-caption-label {
    margin-bottom: 7px;

    font-size: 6px;
    letter-spacing: 0.22em;
  }

  .video-caption-title {
    font-size: clamp(25px, 9vw, 38px);
    line-height: 0.95;
  }

  .field-record-meta {
    padding-top: 9px;

    font-size: 5.5px;
    letter-spacing: 0.12em;
  }
}

/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 380px) {

  .field-record-video video {
    transform:
      translate(-50%, -50%)
      scale(0.76);
  }

  .video-caption-title {
    font-size: 27px;
  }

  .video-live {
    display: none;
  }

  .field-record-meta {
    font-size: 5px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  .field-record-label::before,
  .video-live::before {
    animation: none;
  }
}
/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.nav.is-scrolled {
  background: rgba(10, 15, 12, 0.9);
  border-bottom-color: var(--stroke);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 1.2rem 2rem;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  color: var(--bone);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color var(--transition);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--relic-gold);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-social {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stroke-strong);
  border-radius: 50%;
  color: var(--ash);
  transition: all var(--transition);
}

.nav-social:hover {
  color: var(--vein-glow);
  border-color: var(--vein-glow);
  box-shadow: var(--glow-emerald);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--bone);
  transition: var(--transition);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary,
.btn-secondary,
.btn-wl {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius);
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.2rem;
  background: var(--vein-glow);
  color: var(--basalt);
  border: 1px solid var(--vein-glow);
  font-weight: 600;
}

.btn-primary:hover {
  box-shadow: var(--glow-emerald-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2.2rem;
  background: transparent;
  color: var(--relic-gold);
  border: 1px solid var(--relic-gold);
}

.btn-secondary:hover {
  background: var(--relic-gold-soft);
  box-shadow: var(--glow-gold);
}

.btn-wl {
  padding: 0.7rem 1.4rem;
  background: var(--relic-gold);
  color: var(--basalt);
  border: 1px solid var(--relic-gold);
  font-weight: 600;
}

.btn-wl:hover {
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

.btn-block { width: 100%; text-align: center; }

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(11,15,13,0.55) 0%, rgba(11,15,13,0.75) 55%, var(--basalt) 100%),
    url("../assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  padding: 6rem 0 4rem;
}

.hero-content {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Left-aligned asymmetric hero block within the centered container */
.hero-content > * {
  max-width: 760px;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  color: var(--relic-gold);
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 11vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 1.6rem;
}

.hero-title-glow {
  color: var(--vein-glow);
  text-shadow: 0 0 40px rgba(62, 174, 121, 0.5);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--ash);
  margin-bottom: 2.6rem;
  max-width: 44ch;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.4rem;
}

/* Countdown — field instrument readout */
.hero-countdown {
  border: 1px solid var(--stroke-strong);
  border-left: 3px solid var(--vein-glow);
  background: rgba(18, 26, 22, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1.2rem 1.6rem;
  display: inline-block;
  margin-bottom: 1.8rem;
}

.countdown-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--ash);
  margin-bottom: 0.8rem;
}

.countdown-grid {
  display: flex;
  gap: 1.4rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.2rem;
}

.countdown-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--vein-glow);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label-sm {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--ash);
  margin-top: 0.5rem;
}

.hero-countdown.is-live .countdown-value { color: var(--relic-gold); }

/* Mint status — static readout (replaces the countdown) */
.mint-soon {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vein-glow);
  white-space: nowrap;
}

.mint-soon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--vein-glow);
  box-shadow: 0 0 12px rgba(62, 174, 121, 0.8);
  flex-shrink: 0;
}

.hero-chain {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ash);
}

.hero-chain-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
}

/* ============================================================
   LORE — journal page
   ============================================================ */

.lore-journal {
  max-width: 68ch;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.9;
  color: var(--bone);
}

.lore-journal p { margin-bottom: 1.6rem; }
.lore-journal p:last-child {
  color: var(--ash);
  font-style: italic;
  border-left: 2px solid var(--relic-gold);
  padding-left: 1.4rem;
}

.drop-cap {
  float: left;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5.4rem;
  line-height: 0.8;
  padding: 0.4rem 0.8rem 0 0;
  color: var(--vein-glow);
  text-shadow: 0 0 30px rgba(62, 174, 121, 0.4);
}

/* ============================================================
   ROADMAP — expedition waypoints
   ============================================================ */

.roadmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  position: relative;
}

/* connecting survey line */
.roadmap::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke-strong) 15%, var(--stroke-strong) 85%, transparent);
  z-index: 0;
}

.roadmap-phase {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 0.5rem;
}

.roadmap-marker {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--vein-glow);
  background: var(--deep-vein);
  border: 1px solid var(--stroke-strong);
  border-radius: 50%;
  position: relative;
  transition: all var(--transition);
}

/* compass ticks around marker */
.roadmap-marker::before,
.roadmap-marker::after {
  content: "";
  position: absolute;
  background: var(--stroke-strong);
}
.roadmap-marker::before { width: 1px; height: 8px; top: -8px; left: 50%; }
.roadmap-marker::after { width: 1px; height: 8px; bottom: -8px; left: 50%; }

.roadmap-phase:hover .roadmap-marker {
  border-color: var(--vein-glow);
  box-shadow: var(--glow-emerald);
}

.roadmap-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--bone);
  margin-bottom: 0.6rem;
}

.roadmap-desc {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--ash);
  line-height: 1.6;
}

/* ============================================================
   COLLECTION — relic cards + obscured placeholders
   ============================================================ */

.relic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.relic-card {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--deep-vein);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.relic-card:hover {
  border-color: var(--vein-glow);
  box-shadow: var(--glow-emerald);
}

.relic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder: obscured silhouette wrapped in vein glow */
.relic-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(62,174,121,0.22), transparent 60%),
    var(--deep-vein);
}

.relic-silhouette {
  width: 46%;
  opacity: 0.5;
  mix-blend-mode: screen;
  filter: grayscale(0.4) brightness(0.7) drop-shadow(0 0 16px rgba(62,174,121,0.5));
}

/* scan-line sweep */
.relic-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    rgba(0, 0, 0, 0.25) 3px 4px
  );
  pointer-events: none;
}

.relic-placeholder::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 40%;
  top: -40%;
  background: linear-gradient(180deg, transparent, rgba(62,174,121,0.18), transparent);
  animation: relic-scan 5s linear infinite;
  pointer-events: none;
}

@keyframes relic-scan {
  from { transform: translateY(0); }
  to { transform: translateY(350%); }
}

.relic-label {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--ash);
  z-index: 2;
}

.relic-id {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--relic-gold);
  z-index: 2;
}

/* hover trace line across card */
.relic-card::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(62,174,121,0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 3;
}

.relic-card:hover::after { left: 120%; }

/* ============================================================
   WHITELIST FORM — expedition dossier
   ============================================================ */

.wl-form {
  background: var(--deep-vein);
  border: 1px solid var(--stroke);
  border-top: 3px solid var(--vein-glow);
  border-radius: var(--radius);
  padding: 2.4rem;
}

.form-field { margin-bottom: 1.6rem; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 0.6rem;
}

.form-required { color: var(--vein-glow); }

.form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--basalt);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  transition: border-color var(--transition);
}

.form-input::placeholder { color: rgba(139, 150, 144, 0.5); }

.form-input:focus {
  border-color: var(--vein-glow);
  outline: none;
  box-shadow: 0 0 0 3px var(--vein-glow-soft);
}

.form-input.invalid { border-color: #C1554E; }

.form-help {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(139, 150, 144, 0.7);
  margin-top: 0.5rem;
}

.form-error {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #D07068;
  margin-top: 0.5rem;
  min-height: 1rem;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.show { display: block; }
.form-status.success { background: var(--vein-glow-soft); color: var(--vein-glow); border: 1px solid var(--vein-glow); }
.form-status.error { background: rgba(193,85,78,0.12); color: #D07068; border: 1px solid #C1554E; }
.form-status.info { background: var(--relic-gold-soft); color: var(--relic-gold); border: 1px solid var(--relic-gold); }

/* ============================================================
   FAQ
   ============================================================ */

.faq-item {
  border-bottom: 1px solid var(--stroke);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--bone);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--vein-glow); }

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--relic-gold);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 0 1.5rem;
  font-family: var(--font-serif);
  color: var(--ash);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 66ch;
}

/* ============================================================
   FOOTER — map legend
   ============================================================ */

.footer {
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--stroke);
  text-align: center;
}

.footer-logo {
  width: 180px;
  margin: 0 auto 1rem;
  mix-blend-mode: screen;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  color: var(--vein-glow);
  margin-bottom: 2.4rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ash);
  transition: color var(--transition);
}

.footer-link:hover { color: var(--relic-gold); }

.footer-coord {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(139, 150, 144, 0.5);
}

/* ============================================================
   SCROLL REVEAL — content surfaces as the expedition descends
   ============================================================ */

/*
 * Elements tagged .reveal start dimmed + nudged down, then settle
 * into place when JS adds .is-visible (see main.js IntersectionObserver).
 * Directional + stagger variants share the same easing / duration so the
 * whole page moves as one system. The hidden state is scoped under
 * html.js (set synchronously in <head>) so if scripting is off, every
 * .reveal stays fully visible — motion is a progressive enhancement.
 */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.js .reveal.reveal-left  { transform: translateX(-32px); }
.js .reveal.reveal-right { transform: translateX(32px); }
.js .reveal.reveal-scale { transform: scale(0.94); }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children (grids, nav links, footer links) in sequence */
.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.54s; }
/* Any children past the 8th (data-driven grids) still reveal, capped delay */
.reveal-stagger.is-visible > *:nth-child(n+9) { transition-delay: 0.6s; }

/* ============================================================
   HERO ENTRANCE — staggered load, no scroll needed
   ============================================================ */

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

.hero-content > * {
  opacity: 0;
  animation: hero-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.hero-kicker    { animation-delay: 0.15s; }
.hero-title     { animation-delay: 0.30s; }
.hero-tagline   { animation-delay: 0.48s; }
.hero-ctas      { animation-delay: 0.64s; }
.hero-countdown { animation-delay: 0.80s; }
.hero-chain     { animation-delay: 0.94s; }

/* The awakened Vein keeps breathing after the load-in settles */
.hero-title-glow {
  animation: hero-glow-breathe 4.5s ease-in-out 1.6s infinite;
}

@keyframes hero-glow-breathe {
  0%, 100% { text-shadow: 0 0 40px rgba(62, 174, 121, 0.5); }
  50%      { text-shadow: 0 0 60px rgba(62, 174, 121, 0.8); }
}

/* Buttons: lift already handled; add a quicker, springier feel on press */
.btn-primary:active,
.btn-secondary:active,
.btn-wl:active { transform: translateY(0) scale(0.98); }

/* Nav logo mark gives a subtle glow nudge on hover */
.nav-logo-img { transition: transform var(--transition), filter var(--transition); }
.nav-logo:hover .nav-logo-img {
  transform: rotate(-6deg) scale(1.06);
  filter: drop-shadow(0 0 10px rgba(62, 174, 121, 0.6));
}

/* Roadmap markers rise slightly as they light up */
.roadmap-phase:hover .roadmap-marker { transform: translateY(-4px); }

/* Relic cards lift alongside their existing glow */
.relic-card { transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.relic-card:hover { transform: translateY(-5px); }

/* ============================================================
   REDUCED MOTION — vein degrades to static glow
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .vein-core,
  .vein-halo {
    stroke-dashoffset: 0;
    animation: none;
  }
  .vein-halo { opacity: 0.4; }

  .relic-placeholder::after { animation: none; display: none; }
  .relic-card::after { transition: none; }

  /* No scroll-reveal, hero rise, or breathing glow when motion is reduced */
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-content > * {
    opacity: 1;
    animation: none;
  }
  .hero-title-glow { animation: none; }

  * { transition-duration: 0.01ms !important; }
}
