/* ==========================================================================
   王小沐 · cinematic portfolio · style
   --------------------------------------------------------------------------
   Tokens come straight from the approved Xiaomu brief.
   No external fonts, no CDN, no scroll hijack. Native scroll only.
   ========================================================================== */

:root {
  /* Surface */
  --bg: #1c1712;        /* 秦岭深土褐 */
  --bg-soft: #221c16;   /* a touch lighter than bg */
  --bg-deep: #14100c;   /* deepest, used for depth */

  /* Atmosphere */
  --warm: #d99a52;      /* 转折暖阳 */
  --warm-soft: #e8b274; /* halo */
  --warm-dim: rgba(217, 154, 82, 0.18);

  /* Accent */
  --leaf: #7ba05b;      /* 猕猴桃藤绿 */
  --leaf-deep: #5d7d44;
  --sage: #2e5a6b;      /* 赛斯理性青 */
  --sage-deep: #1f3f4d;

  /* Text */
  --text: #ede6d6;      /* 果肉米白 */
  --text-dim: #bdb4a1;
  --text-mute: #8a8574; /* 枯藤暖灰 */

  /* Lines */
  --line: rgba(237, 230, 214, 0.08);
  --line-strong: rgba(237, 230, 214, 0.16);

  /* Shape */
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 220ms;
  --t-med: 520ms;
  --t-slow: 1100ms;

  /* Layout */
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html {
  /* native scroll only — no smooth-scroll hack, no Lenis */
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Hiragino Sans GB",
    "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  /* dual-temperature light: warm halo on the right, cool rim on the left */
  background-image:
    radial-gradient(
      900px 600px at 88% 8%,
      rgba(217, 154, 82, 0.18),
      transparent 60%
    ),
    radial-gradient(
      700px 700px at 6% 90%,
      rgba(46, 90, 107, 0.18),
      transparent 65%
    ),
    radial-gradient(
      1200px 800px at 50% 40%,
      rgba(28, 23, 18, 0) 0%,
      rgba(20, 16, 12, 0.6) 80%
    );
  background-attachment: fixed;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- texture overlays ---------- */
.texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.texture-grain {
  /* soil grain — very subtle, fixed, mixes with content via blend */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.93  0 0 0 0 0.84  0 0 0 0 0.66  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  opacity: 0.55;
  mix-blend-mode: overlay;
}
.texture-vine {
  /* organic vine curves, drawn as a fixed SVG layer, very faint */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='none'><defs><radialGradient id='g' cx='50%25' cy='50%25' r='50%25'><stop offset='0%25' stop-color='%237ba05b' stop-opacity='0.08'/><stop offset='100%25' stop-color='%237ba05b' stop-opacity='0'/></radialGradient></defs><path d='M0,720 C220,640 360,820 600,700 C860,560 980,820 1240,680 C1380,600 1440,720 1440,720' fill='none' stroke='%237ba05b' stroke-opacity='0.07' stroke-width='1.4'/><path d='M0,180 C220,260 360,80 600,200 C860,340 980,80 1240,220 C1380,300 1440,180 1440,180' fill='none' stroke='%232e5a6b' stroke-opacity='0.08' stroke-width='1.2'/><circle cx='1180' cy='420' r='280' fill='url(%23g)'/></svg>");
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--bg-deep);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  z-index: 100;
  transform: translateY(-200%);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- HUD ---------- */
.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 40px);
  background: linear-gradient(
    to bottom,
    rgba(20, 16, 12, 0.78),
    rgba(20, 16, 12, 0)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease);
}
.hud.is-stuck {
  border-bottom-color: var(--line);
}
.hud-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--text);
}
.hud-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--warm) 0%, var(--warm) 35%, transparent 36%),
    radial-gradient(circle at 70% 70%, var(--leaf) 0%, var(--leaf) 40%, transparent 41%);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.hud-name {
  font-weight: 500;
}
.hud-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 26px);
}
.hud-links a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  transition: color var(--t-fast) var(--ease);
}
.hud-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.hud-links a:hover,
.hud-links a:focus-visible {
  color: var(--text);
  outline: none;
}
.hud-links a:hover::after,
.hud-links a:focus-visible::after {
  transform: scaleX(1);
}

@media (max-width: 720px) {
  .hud {
    padding: 12px 18px;
  }
  .hud-name {
    display: none;
  }
  .hud-links {
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .hud-links::-webkit-scrollbar {
    display: none;
  }
  .hud-links a {
    font-size: 12px;
    white-space: nowrap;
  }
}

/* ---------- generic section frame ---------- */
section {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 160px) var(--gutter);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--warm);
}
.section-title {
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: 0.02em;
}
.section-sub {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}

/* ---------- HERO ---------- */
.hero {
  /* sticky track for the frame scrub */
  padding: 0;
  max-width: none;
  position: relative;
  z-index: 2;
}
.hero-track {
  position: relative;
  height: 320vh; /* native sticky height in this range */
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* let canvas do the drawing; this is just framing */
  object-fit: cover;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 60%,
      transparent 35%,
      rgba(20, 16, 12, 0.45) 75%,
      rgba(20, 16, 12, 0.85) 100%
    );
  pointer-events: none;
}
.hero-warm,
.hero-cool {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-warm {
  background: radial-gradient(
    circle at 78% 28%,
    rgba(217, 154, 82, 0.42),
    transparent 45%
  );
}
.hero-cool {
  background: radial-gradient(
    circle at 18% 78%,
    rgba(46, 90, 107, 0.36),
    transparent 50%
  );
  mix-blend-mode: screen;
}
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(44px, 8vh, 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--gutter);
  z-index: 2;
}
.hero-tone {
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--warm);
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0.92;
}
.hero-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.04em;
  font-size: clamp(64px, 14vw, 168px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(20, 16, 12, 0.45),
    0 12px 60px rgba(20, 16, 12, 0.45);
  margin-bottom: 28px;
}
.hero-char {
  display: inline-block;
  /* entrance: rise + fade */
  opacity: 0;
  transform: translateY(0.45em) scale(0.94);
  filter: blur(8px);
  transition: opacity 900ms var(--ease), transform 1100ms var(--ease),
    filter 900ms var(--ease);
}
.hero-char.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.hero-slogan {
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--text-dim);
  letter-spacing: 0.24em;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 900ms var(--ease), transform 1100ms var(--ease);
}
.hero-slogan.is-in {
  opacity: 1;
  transform: translateY(0);
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--text-mute);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 900ms var(--ease), transform 1100ms var(--ease);
}
.hero-meta.is-in {
  opacity: 1;
  transform: translateY(0);
}
.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 12px rgba(123, 160, 91, 0.6);
}

@media (max-width: 720px) {
  .hero-track {
    height: 280vh;
  }
  .hero-copy {
    bottom: clamp(32px, 7vh, 64px);
  }
  .hero-tone {
    font-size: 10px;
    letter-spacing: 0.32em;
  }
  .hero-name {
    font-size: clamp(54px, 20vw, 92px);
  }
  .hero-slogan {
    letter-spacing: 0.16em;
  }
  .hero-meta {
    font-size: 10px;
    letter-spacing: 0.18em;
  }
}

/* ---------- ABOUT ---------- */
.about {
  position: relative;
}
.about::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--line-strong) 20%,
    var(--line-strong) 80%,
    transparent
  );
}
.about-body {
  max-width: 720px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2;
  color: var(--text-dim);
}
.about-body p {
  margin-bottom: 24px;
}
.about-emphasis {
  margin-top: 36px;
  padding: 24px 0;
  font-size: clamp(17px, 1.6vw, 20px) !important;
  color: var(--warm) !important;
  font-style: italic;
  letter-spacing: 0.1em;
  text-align: center;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

/* ---------- DAILY / 视频集 ---------- */
.daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.card {
  position: relative;
  background: linear-gradient(
    155deg,
    rgba(46, 90, 107, 0.12) 0%,
    rgba(28, 23, 18, 0.6) 60%,
    rgba(20, 16, 12, 0.85) 100%
  );
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease);
  /* 3D tilt transform target */
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover {
  border-color: rgba(217, 154, 82, 0.32);
  box-shadow: 0 30px 80px -40px rgba(217, 154, 82, 0.3),
    0 18px 40px -30px rgba(20, 16, 12, 0.8);
}
.card-art {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}
.card-art-orb {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  filter: blur(2px);
  animation: orb-float 9s ease-in-out infinite;
}
.card-art--sun {
  background: radial-gradient(
      ellipse at 50% 30%,
      rgba(217, 154, 82, 0.55),
      rgba(217, 154, 82, 0.05) 60%
    ),
    linear-gradient(180deg, #2a1d12 0%, #14100c 100%);
}
.card-art--sun .card-art-orb {
  background: radial-gradient(
    circle at 35% 30%,
    #f5cf91 0%,
    #d99a52 45%,
    rgba(217, 154, 82, 0) 70%
  );
  box-shadow: 0 0 80px rgba(217, 154, 82, 0.6);
}
.card-art--leaf {
  background: linear-gradient(160deg, #1d2a2f 0%, #14100c 100%);
}
.card-art--leaf .card-art-orb {
  width: 70%;
  background: radial-gradient(
    circle at 40% 30%,
    rgba(123, 160, 91, 0.7) 0%,
    rgba(123, 160, 91, 0.15) 55%,
    transparent 75%
  );
}
.card-art-vine {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'><path d='M-20,260 C60,200 100,260 160,200 C220,140 280,220 340,170 C380,140 420,180 420,180' fill='none' stroke='%237ba05b' stroke-opacity='0.55' stroke-width='2'/><path d='M-20,200 C60,260 120,200 200,250 C280,300 360,230 420,260' fill='none' stroke='%232e5a6b' stroke-opacity='0.5' stroke-width='1.5'/><circle cx='90' cy='220' r='3' fill='%237ba05b'/><circle cx='220' cy='200' r='2.5' fill='%237ba05b'/><circle cx='320' cy='220' r='3' fill='%237ba05b'/></svg>");
  background-size: cover;
  background-position: center;
  animation: vine-drift 14s ease-in-out infinite alternate;
}
.card-art--fruit {
  background: linear-gradient(165deg, #1c1712 0%, #261e16 60%, #14100c 100%);
}
.card-art--fruit .card-art-orb--small {
  width: 38%;
  background: radial-gradient(
    circle at 40% 35%,
    #efe1c2 0%,
    #d99a52 50%,
    rgba(217, 154, 82, 0) 72%
  );
  box-shadow: 0 0 60px rgba(217, 154, 82, 0.55);
}
.card-art-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
.card-body {
  padding: 24px 26px 28px;
  transform: translateZ(28px); /* lift above tilt */
}
.card-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 10px;
}
.card-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.card-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 14px;
}
.card-meta {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  text-transform: uppercase;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: blur(2px);
  }
  50% {
    transform: translate(-50%, -54%) scale(1.06);
    filter: blur(1px);
  }
}
@keyframes vine-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-12px);
  }
}

@media (max-width: 720px) {
  .card-body {
    padding: 20px 22px 24px;
  }
}

/* ---------- QUOTES ---------- */
.quotes {
  position: relative;
}
.quote-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.quote-item {
  position: relative;
  padding: 32px 32px 30px;
  background: linear-gradient(
    180deg,
    rgba(46, 90, 107, 0.1),
    rgba(20, 16, 12, 0.5)
  );
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.quote-item--long {
  grid-column: 1 / -1;
  background: linear-gradient(
    180deg,
    rgba(217, 154, 82, 0.08),
    rgba(20, 16, 12, 0.55)
  );
  border-color: rgba(217, 154, 82, 0.18);
}
.quote-mark {
  position: absolute;
  top: 10px;
  left: 18px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 56px;
  line-height: 1;
  color: var(--warm);
  opacity: 0.35;
  pointer-events: none;
}
.quote-text {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.95;
  color: var(--text);
  letter-spacing: 0.06em;
  position: relative;
  /* reveal letters one at a time */
}
.quote-text .qword,
.quote-text .qchar {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.quote-text.is-in .qword,
.quote-text.is-in .qchar {
  opacity: 1;
  transform: translateY(0);
}
.quote-item--long .quote-text {
  font-size: clamp(16px, 1.7vw, 20px);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  line-height: 2.1;
}

@media (max-width: 720px) {
  .quote-list {
    grid-template-columns: 1fr;
  }
  .quote-item {
    padding: 26px 22px 24px;
  }
}

/* ---------- TIMELINE ---------- */
.timeline-list {
  position: relative;
  padding-left: 28px;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--line-strong) 8%,
    var(--line-strong) 92%,
    transparent
  );
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-node {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
}
.timeline-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(217, 154, 82, 0.18),
    0 0 0 1px var(--bg) inset;
}
.timeline-item:nth-child(2) .timeline-dot {
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(123, 160, 91, 0.18),
    0 0 0 1px var(--bg) inset;
}
.timeline-item:nth-child(3) .timeline-dot {
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(46, 90, 107, 0.28),
    0 0 0 1px var(--bg) inset;
}
.timeline-card {
  padding: 22px 26px 24px;
  background: rgba(20, 16, 12, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--t-med) var(--ease),
    transform var(--t-med) var(--ease);
}
.timeline-card:hover {
  border-color: rgba(217, 154, 82, 0.28);
  transform: translateX(4px);
}
.timeline-time {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 8px;
}
.timeline-card .timeline-title {
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.timeline-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.85;
}

/* ---------- CONTACT ---------- */
.contact {
  text-align: center;
  padding-bottom: clamp(96px, 14vw, 180px);
}
.contact .section-head {
  margin-left: auto;
  margin-right: auto;
}
.contact-line {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.contact-na {
  display: inline-block;
  padding: 2px 12px;
  margin-left: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--warm);
}
.contact-note {
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.16em;
  font-style: italic;
}

/* ---------- FOOTER ---------- */
.foot {
  position: relative;
  z-index: 2;
  padding: 36px var(--gutter) 48px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: linear-gradient(
    to bottom,
    rgba(20, 16, 12, 0),
    rgba(20, 16, 12, 0.6)
  );
}
.foot-line {
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--text);
  margin-bottom: 8px;
}
.foot-meta {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* ---------- REVEAL (IntersectionObserver-driven) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 1100ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- CUSTOM CURSOR (desktop only) ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 80;
  display: none;
}
.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  transform: translate(-50%, -50%);
  transition: width var(--t-fast) var(--ease),
    height var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.cursor-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(217, 154, 82, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width var(--t-med) var(--ease),
    height var(--t-med) var(--ease), border-color var(--t-fast) var(--ease),
    opacity var(--t-fast) var(--ease);
}
body[data-cursor="on"] .cursor {
  display: block;
}
body[data-cursor="on"] a:hover ~ .cursor-ring,
body[data-cursor="on"] .card:hover ~ .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--leaf);
}
body[data-cursor="on"].is-hover-link .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: var(--leaf);
}
body[data-cursor="on"].is-hover-link .cursor-dot {
  width: 0;
  height: 0;
}
body[data-cursor="on"].is-down .cursor-ring {
  width: 24px;
  height: 24px;
  border-color: var(--warm);
}

/* hide native cursor only when our custom cursor is on */
body[data-cursor="on"] a,
body[data-cursor="on"] button,
body[data-cursor="on"] .card,
body[data-cursor="on"] .hud-brand {
  cursor: none;
}
@media (hover: none), (max-width: 900px) {
  body[data-cursor="on"] a,
  body[data-cursor="on"] button,
  body[data-cursor="on"] .card,
  body[data-cursor="on"] .hud-brand {
    cursor: auto;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal],
  .hero-char,
  .hero-slogan,
  .hero-meta,
  .card-art-orb,
  .card-art-vine {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
  .quote-text .qword,
  .quote-text .qchar {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-track {
    height: auto;
  }
  .hero-stage {
    position: relative;
    height: 100vh;
  }
}
