:root{
  --bg:#0d0f0e;
  --panel:#121514;
  --panel2:#171a18;
  --ink:#ece9df;
  --muted:#c7c2b6;
  --gold:#d5a72f;
  --gold2:#f1c34a;
  --line:rgba(213,167,47,.42);
  --soft:rgba(255,255,255,.08);
  --paper:#d9cfb8;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  background:
    radial-gradient(circle at 15% 8%,rgba(255,255,255,.025),transparent 28%),
    radial-gradient(circle at 85% 32%,rgba(255,255,255,.018),transparent 25%),
    linear-gradient(rgba(255,255,255,.014) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.01) 1px,transparent 1px),
    var(--bg);
  background-size:auto,auto,18px 18px,18px 18px,auto;
  font-family:"STKaiti","KaiTi","Kaiti SC","Songti SC","SimSun",serif;
  font-size:18px;
  line-height:1.82;
}
body:before{
  content:"";
  position:fixed; inset:0; pointer-events:none; z-index:20;
  background:radial-gradient(ellipse at center,transparent 58%,rgba(0,0,0,.42) 100%);
  mix-blend-mode:multiply;
}
img{max-width:100%;display:block}
a{color:inherit}
.wrap{width:min(1480px,94vw);margin:0 auto}
.section{
  position:relative;
  padding:88px 0;
  border-top:1px solid var(--line);
}
.section:first-child{border-top:0}
.rule{
  height:1px;
  background:linear-gradient(90deg,transparent,var(--line) 10%,var(--line) 90%,transparent);
  margin:28px 0;
}
.kicker{
  color:var(--gold2);
  font-family:"Courier New",monospace;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:700;
}
h1,h2,h3,h4{margin:0;line-height:1.15}
h1{
  font-family:"STKaiti","KaiTi","Kaiti SC","Songti SC","SimSun",serif;
  font-weight:600;
  font-size:clamp(50px,5.7vw,92px);
  letter-spacing:-.03em;
}
h2{
  font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC","Source Han Sans SC",sans-serif;
  font-weight:600;
  font-size:clamp(38px,4vw,66px);
}
h3{
  font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC","Source Han Sans SC",sans-serif;
  text-transform:uppercase;
  letter-spacing:.01em;
  font-size:clamp(25px,2.1vw,36px);
}
h4{
  color:var(--gold2);
  font-size:20px;
  letter-spacing:.04em;
  margin-bottom:10px;
}
p{margin:0 0 14px}
ul{margin:8px 0 0;padding-left:1.2em}
li{margin:.35em 0}
.gold{color:var(--gold2)}
.muted{color:var(--muted)}
.small{font-size:1rem}
.label{
  display:inline-block;
  color:#111;
  background:var(--paper);
  padding:7px 18px;
  font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC","Source Han Sans SC",sans-serif;
  font-weight:700;
  letter-spacing:.02em;
  transform:rotate(-.4deg);
  box-shadow:0 3px 14px rgba(0,0,0,.35);
}
.chalk-card{
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,.006));
  box-shadow:inset 0 0 34px rgba(255,255,255,.012);
}
.photo{
  position:relative;
  border:1px solid rgba(238,233,218,.42);
  background:#090a09;
  padding:8px;
  box-shadow:0 14px 34px rgba(0,0,0,.32);
}
.photo:before,.photo:after{
  content:"";
  position:absolute;
  width:72px;height:22px;
  background:rgba(202,188,158,.62);
  filter:saturate(.65);
  z-index:2;
}
.photo:before{left:-18px;top:-8px;transform:rotate(-18deg)}
.photo:after{right:-18px;bottom:-7px;transform:rotate(-24deg)}
.photo img{width:100%;height:100%;object-fit:cover}
.hero{min-height:100vh;display:flex;align-items:center;padding:28px 0 70px}
.logo{
  width:520px;
  max-width:48vw;
  height:auto;
  margin:0 auto 24px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.02fr .62fr 1fr;
  gap:44px;
  align-items:center;
  min-height:650px;
}
.hero-copy .lead{
  font-family:"STKaiti","KaiTi","Kaiti SC","Songti SC","SimSun",serif;
  color:var(--muted);
  font-size:clamp(19px,1.55vw,25px);
  max-width:650px;
  margin-top:30px;
}
.hero-copy .accent-line{
  width:180px;height:3px;background:var(--gold);margin:28px 0;
}
.glyph-chain{max-height:600px;margin:auto;object-fit:contain}
.progress{
  border-left:2px solid var(--gold);
  padding-left:28px;
}
.progress-item{
  position:relative;
  padding:0 0 25px 8px;
  border-bottom:1px solid rgba(255,255,255,.14);
  margin-bottom:20px;
}
.progress-item:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.progress-item:before{
  content:"";
  position:absolute;left:-36px;top:6px;
  width:14px;height:14px;border-radius:50%;background:var(--gold2);
}
.progress-item b{
  display:block;font-family:"STKaiti","KaiTi","Kaiti SC","Songti SC","SimSun",serif;font-size:20px;letter-spacing:.04em;
}
.progress-item span{display:block;color:var(--muted);margin-top:5px;font-size:18px}
.overview-title{text-align:center;margin-bottom:46px}
.overview-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:64px;
  align-items:center;
}
.intro{
  font-family:"STKaiti","KaiTi","Kaiti SC","Songti SC","SimSun",serif !important;
  font-size:clamp(19px,1.35vw,23px);
  line-height:1.82;
}
.contrib{
  display:grid;
  grid-template-columns:.72fr 1.28fr;
  gap:48px;
  align-items:center;
  margin-top:50px;
}
.contrib-list{
  border-left:1px solid var(--line);
  padding-left:26px;
}
.contrib-list li::marker{color:var(--gold2)}
.journey-head{text-align:center;margin-bottom:54px}
.journey-head p{max-width:920px;margin:16px auto 0;color:var(--muted)}
.stages-top{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.stage{
  padding:24px;
  min-height:100%;
  position:relative;
}
.stage .stage-no{
  position:absolute;top:14px;left:22px;
  font-family:"Courier New",monospace;
  font-size:36px;color:var(--gold2);
  font-weight:700;
  line-height:1;
}
.stage h3{padding-top:58px;margin-bottom:24px}
.stage-block{margin:22px 0}
.stage-block:first-of-type{margin-top:0}
.stage-media{display:grid;gap:12px;margin-top:14px}
.stage-media.two{grid-template-columns:1fr 1fr}
.stage-media img{
  width:100%;height:240px;object-fit:cover;
  border:1px solid rgba(255,255,255,.2);
}
.stage-media.tall img{height:310px}
.stage-output{
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:22px;
}
.stages-lower{display:grid;gap:20px;margin-top:20px}
.wide-stage{
  display:grid;
  grid-template-columns:.86fr 1.14fr;
  gap:28px;
  padding:28px;
}
.wide-stage .content{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.wide-stage .content.single{grid-template-columns:1fr}
.map-compare{
  display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;
}
.map-compare .vs{
  width:48px;height:48px;border:1px solid var(--gold2);border-radius:50%;
  display:grid;place-items:center;color:var(--gold2);font-family:"Courier New",monospace;font-weight:700;
}
.map-compare img{height:520px;width:100%;object-fit:cover;border:1px solid rgba(255,255,255,.24)}
.story-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.story-strip figure{margin:0}
.story-strip img{height:280px;width:100%;object-fit:cover;border:1px solid rgba(255,255,255,.22)}
.story-strip figcaption{text-align:center;color:var(--muted);font-size:1rem;margin-top:6px}
.final-stage{grid-template-columns:.8fr 1.2fr}
.final-stage .photo img{height:620px;object-fit:cover}
.iter-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.iter-box{padding:28px}
.changes-title{text-align:center;margin:34px 0 20px;color:var(--gold2)}
.changes{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.change{padding:24px}
.footer{
  text-align:center;color:#8f8b80;padding:44px 0 70px;font-family:"STKaiti","KaiTi","Kaiti SC","Songti SC","SimSun",serif;transform:rotate(90deg)}
  .story-strip{grid-template-columns:1fr}
  .story-strip img{height:auto}
  .map-compare img,.final-stage .photo img{height:auto}
  .logo{width:min(78vw,520px);max-width:none;height:auto}
}

/* ===== Sticky navigation ===== */
.top-nav{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  background:rgba(10,12,11,.82);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(213,167,47,.22);
  transition:background .25s ease, border-color .25s ease;
}
.top-nav-inner{
  width:min(1480px,94vw);
  min-height:58px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.nav-brand{
  text-decoration:none;
  color:var(--ink);
  font-family:"Courier New",monospace;
  font-size:15px;
  font-weight:700;
  letter-spacing:.11em;
  white-space:nowrap;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:28px;
  flex-wrap:wrap;
}
.nav-links a{
  text-decoration:none;
  color:var(--muted);
  font-family:"STKaiti","KaiTi","Kaiti SC","Songti SC","SimSun",serif;
  font-size:16px;
  transition:color .2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible{
  color:var(--gold2);
}
html{
  scroll-padding-top:78px;
}

/* ===== Gentle scroll reveal ===== */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:
    opacity .7s ease,
    transform .7s cubic-bezier(.2,.65,.3,1);
}
.reveal.is-visible{
  opacity:1;
  transform:none;
}
.reveal-delay-1{transition-delay:.06s}
.reveal-delay-2{transition-delay:.12s}
.reveal-delay-3{transition-delay:.18s}

/* Respect accessibility preferences */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}

/* ===== Responsive refinements ===== */
@media (max-width:1200px){
  .wrap{width:min(1120px,92vw)}
  .top-nav-inner{width:min(1120px,92vw)}
  .hero-grid{
    grid-template-columns:1fr .55fr 1fr;
    gap:30px;
  }
  .progress-item b{font-size:18px}
  .stages-top{gap:14px}
  .stage{padding:22px}
  .wide-stage{gap:22px}
}

@media (max-width:980px){
  .top-nav-inner{
    min-height:54px;
  }
  .nav-links{gap:18px}
  .nav-links a{font-size:15px}
  .hero{
    min-height:auto;
    padding-top:94px;
  }
  .hero-grid{
    grid-template-columns:1fr 1fr;
    min-height:auto;
  }
  .glyph-chain{
    display:block;
    max-height:420px;
    max-width:220px;
  }
  .progress{
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px 30px;
    border-left:0;
    padding-left:0;
    margin-top:12px;
  }
  .progress-item{
    border-left:2px solid var(--gold);
    border-bottom:1px solid rgba(255,255,255,.12);
    padding:0 0 18px 24px;
    margin:0;
  }
  .progress-item:before{
    left:-8px;
    top:6px;
  }
  .overview-grid,
  .contrib,
  .wide-stage,
  .final-stage{
    grid-template-columns:1fr;
  }
  .stages-top{
    grid-template-columns:1fr;
  }
  .map-compare img{height:auto}
  .final-stage .photo img{height:auto}
}

@media (max-width:720px){
  .top-nav-inner{
    min-height:52px;
    align-items:flex-start;
    padding:10px 0;
  }
  .nav-brand{
    font-size:13px;
    padding-top:4px;
  }
  .nav-links{
    justify-content:flex-end;
    gap:8px 14px;
    max-width:72%;
  }
  .nav-links a{
    font-size:13px;
    line-height:1.3;
  }
  html{scroll-padding-top:92px}
  .hero{padding-top:110px}
  .hero-grid{
    grid-template-columns:1fr;
    gap:26px;
  }
  .glyph-chain{
    order:2;
    max-width:160px;
    max-height:320px;
  }
  .hero-copy{order:1}
  .progress{
    order:3;
    grid-template-columns:1fr;
  }
  .section{padding:56px 0}
  .journey-head{margin-bottom:42px}
  .stage{padding:20px}
  .wide-stage{padding:22px}
  .story-strip{grid-template-columns:1fr}
  .changes,
  .iter-grid,
  .wide-stage .content,
  .stage-media.two,
  .map-compare{
    grid-template-columns:1fr;
  }
  .map-compare .vs{
    margin:auto;
    transform:rotate(90deg);
  }
  .stage-media img{
    height:auto;
    max-height:none;
  }
  .story-strip img{height:auto}
  .photo:before,.photo:after{width:50px}
  .logo{
    width:min(78vw,520px);
    max-width:none;
    height:auto;
  }
}

@media (max-width:480px){
  .wrap,
  .top-nav-inner{width:92vw}
  .nav-links{
    max-width:68%;
    gap:6px 10px;
  }
  .nav-links a{font-size:12px}
  h1{font-size:clamp(42px,13vw,58px)}
  h2{font-size:clamp(34px,10vw,46px)}
  .intro{font-size:18px}
  .stage h3{font-size:28px}
  .progress-item .intro{font-size:17px}
}


.final-stage-media{display:grid;gap:18px;align-content:start}
.final-stage .photo{align-self:start}
.final-stage .photo img{height:auto;max-height:none;object-fit:contain;display:block}
.logic-box{
  margin:14px 0 18px;
  padding:16px 18px;
  border:1px solid rgba(225,196,112,.38);
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));
  box-shadow:inset 0 0 24px rgba(255,255,255,.02);
}
.logic-box p{margin:0;line-height:1.9}
.final-stage .plain-lines{margin:10px 0 0}
.final-stage .plain-lines p{margin:8px 0}
.final-stage ul{list-style:none;padding-left:0;margin:8px 0 0}
.final-stage ul li{margin:8px 0}


.final-stage-media .photo.transparent-embed{
  background:transparent;
  box-shadow:none;
}
.final-stage-media .photo.transparent-embed:before,
.final-stage-media .photo.transparent-embed:after{
  opacity:.45;
}
.final-stage-media .photo.transparent-embed img{
  background:transparent;
}


.logic-if{color:#86c86d;font-weight:700}
.logic-goodbye{color:var(--gold2);font-weight:700}
.final-stage-diagram{
  padding:8px 12px 0;
  background:transparent;
  border:0;
  box-shadow:none;
}
.final-stage-diagram img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  background:transparent;
}

/* Portfolio integration */
.anthro-brand-group{display:flex;align-items:center;gap:10px;min-width:0}
.nav-home{color:var(--muted);text-decoration:none;font-family:"Courier New",monospace;font-size:14px;letter-spacing:.06em;white-space:nowrap}
.nav-home:hover,.nav-home:focus-visible{color:var(--gold2)}
.nav-sep{color:rgba(213,167,47,.55)}
.portfolio-back{color:var(--gold2)!important}
@media(max-width:720px){
  .anthro-brand-group{gap:7px}
  .nav-home{font-size:12px}
  .nav-sep{display:none}
  .nav-brand{display:none}
  .portfolio-back{display:none}
}


/* ===== V15 atmosphere: dark forest / quiet / uncanny ===== */
:root{
  --bg:#06100b;
  --panel:#0a1710;
  --panel2:#0e1e15;
  --ink:#e7eadf;
  --muted:#aab5a8;
  --gold:#a7a56a;
  --gold2:#d2c77e;
  --line:rgba(151,166,110,.32);
  --soft:rgba(193,211,178,.055);
  --paper:#c8c0a0;
  --moss:#243d2b;
  --deep-green:#07120c;
  --fog:#8fa593;
}
body{
  background:
    radial-gradient(ellipse at 50% -8%, rgba(75,111,78,.22) 0%, rgba(20,46,28,.09) 31%, transparent 58%),
    radial-gradient(circle at 9% 31%, rgba(46,89,58,.15), transparent 29%),
    radial-gradient(circle at 91% 65%, rgba(60,84,58,.11), transparent 31%),
    linear-gradient(rgba(175,200,174,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(175,200,174,.012) 1px,transparent 1px),
    #06100b;
  background-size:auto,auto,auto,22px 22px,22px 22px,auto;
  color:var(--ink);
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.22;
  background:
    repeating-linear-gradient(91deg,transparent 0 7vw,rgba(27,54,34,.18) 7vw 7.7vw,transparent 7.7vw 14vw),
    linear-gradient(180deg,rgba(116,139,112,.045),transparent 24%,rgba(0,0,0,.22) 100%);
}
body:before{
  background:
    radial-gradient(ellipse at center,transparent 48%,rgba(0,0,0,.62) 100%),
    linear-gradient(180deg,rgba(4,13,8,.06),rgba(0,0,0,.16));
  mix-blend-mode:multiply;
}
.top-nav{
  background:rgba(4,12,8,.90);
  border-bottom:1px solid rgba(162,170,108,.22);
  box-shadow:0 10px 30px rgba(0,0,0,.16);
}
.nav-brand{color:#e4e8dc}
.nav-links a{color:#9fae9f}
.nav-links a:hover,.nav-links a:focus-visible{color:#d6cf8a}
.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(4,13,8,.18) 0%,rgba(5,15,9,.42) 74%,rgba(6,16,11,.90) 100%),
    radial-gradient(ellipse at 52% 37%,rgba(102,128,98,.12),transparent 33%);
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  opacity:.62;
  background:
    repeating-linear-gradient(94deg,transparent 0 10%,rgba(8,23,13,.62) 10% 12%,transparent 12% 18%),
    radial-gradient(ellipse at 50% 42%,rgba(95,118,91,.10),transparent 44%);
}
.hero::after{
  content:"";
  position:absolute;
  z-index:-1;
  left:-8%;right:-8%;bottom:-6%;height:43%;
  background:
    radial-gradient(ellipse at 12% 100%,rgba(38,67,40,.58),transparent 55%),
    radial-gradient(ellipse at 43% 100%,rgba(24,54,31,.62),transparent 57%),
    radial-gradient(ellipse at 75% 100%,rgba(33,66,39,.56),transparent 58%),
    radial-gradient(ellipse at 98% 100%,rgba(20,50,30,.58),transparent 54%);
  opacity:.72;
}
.logo{
  filter:drop-shadow(0 0 14px rgba(191,199,153,.08)) drop-shadow(0 8px 22px rgba(0,0,0,.50));
}
.hero-copy h1{text-shadow:0 3px 18px rgba(0,0,0,.34)}
.hero-copy .accent-line{background:linear-gradient(90deg,#d0c57b,#66754b)}
.progress{border-color:#8f9763}
.progress-item:before{background:#c9c77d;box-shadow:0 0 0 4px rgba(139,154,95,.12),0 0 16px rgba(181,190,126,.12)}
.glyph-chain{opacity:.88;filter:sepia(.16) saturate(.75) brightness(.88) hue-rotate(54deg) drop-shadow(0 0 14px rgba(132,156,104,.13))}
.chalk-card{
  border:1px solid rgba(139,158,104,.29);
  background:linear-gradient(180deg,rgba(31,57,37,.31),rgba(7,18,11,.42)),repeating-linear-gradient(96deg,rgba(255,255,255,.012) 0 1px,transparent 1px 18px);
  box-shadow:inset 0 0 42px rgba(137,160,112,.018),0 18px 45px rgba(0,0,0,.16);
}
.stage:nth-child(2n),.wide-stage:nth-child(2n){
  background:linear-gradient(180deg,rgba(23,49,31,.38),rgba(7,17,11,.46)),repeating-linear-gradient(96deg,rgba(255,255,255,.01) 0 1px,transparent 1px 21px);
}
.stage:hover,.wide-stage:hover,.iter-box:hover,.change:hover{
  border-color:rgba(190,192,119,.44);
  box-shadow:inset 0 0 42px rgba(146,167,110,.025),0 18px 52px rgba(0,0,0,.24);
}
.section{border-top-color:rgba(139,158,104,.23)}
.rule{background:linear-gradient(90deg,transparent,rgba(154,166,105,.35) 11%,rgba(154,166,105,.35) 89%,transparent)}
.gold,h4,.kicker,.changes-title{color:#cec57c}
.label{color:#0c160d;background:#c4bd89;box-shadow:0 4px 18px rgba(0,0,0,.38)}
.photo{border-color:rgba(164,175,132,.35);background:#040a06;box-shadow:0 16px 40px rgba(0,0,0,.40)}
.photo:before,.photo:after{background:rgba(153,143,111,.48)}
.stage-media img,.story-strip img,.map-compare img{border-color:rgba(161,177,134,.23);box-shadow:0 8px 22px rgba(0,0,0,.18)}
.photo img,.stage-media img,.story-strip img,.map-compare img{filter:saturate(.78) brightness(.88) contrast(1.04) sepia(.04) hue-rotate(34deg)}
.photo:hover img,.stage-media img:hover,.story-strip img:hover,.map-compare img:hover{filter:saturate(.92) brightness(.96) contrast(1.03)}
#overview::before,#journey::before,#iteration::before{
  content:"";position:absolute;pointer-events:none;width:44vw;height:44vw;border-radius:50%;filter:blur(90px);opacity:.11;background:#5d775a;
}
#overview::before{left:-23vw;top:8%}
#journey::before{right:-25vw;top:20%}
#iteration::before{left:-25vw;bottom:8%}
.final-stage{
  border-color:rgba(190,190,113,.42);
  background:radial-gradient(circle at 78% 18%,rgba(119,131,72,.12),transparent 28%),linear-gradient(180deg,rgba(20,45,28,.44),rgba(5,16,10,.52));
}
.logic-box{background:rgba(2,10,5,.54);border-color:rgba(176,180,106,.34)!important}
.logic-if,.logic-goodbye{color:#d8cf82!important}
.footer{color:#788679}
@media(max-width:820px){.hero::before{opacity:.42}.hero::after{height:31%}body::after{opacity:.12}}


/* ===== V16 atmosphere: mist forest / quiet / uncanny ===== */
:root{
  --bg:#090d0d;
  --panel:#101616;
  --panel2:#141a1a;
  --ink:#e8e6de;
  --muted:#b8b9b1;
  --gold:#a8a184;
  --gold2:#c9c3a3;
  --line:rgba(196,201,189,.20);
  --soft:rgba(255,255,255,.045);
  --paper:#cfc9b5;
}
body{
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.045), transparent 24%),
    radial-gradient(circle at 84% 22%, rgba(255,255,255,.032), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,.012), rgba(0,0,0,.06) 36%, rgba(0,0,0,.14) 100%),
    #090d0d;
  color:var(--ink);
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(9,13,13,.28) 0%, rgba(9,13,13,.62) 38%, rgba(9,13,13,.86) 100%),
    url('../images/mist-forest-ref.png') center top / cover no-repeat;
  opacity:.17;
  filter:grayscale(.18) saturate(.55) brightness(.72) contrast(1.05) blur(.2px);
}
body:before{
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,.60) 100%),
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(0,0,0,.12));
  mix-blend-mode:multiply;
}
.top-nav{
  background:rgba(8,11,11,.88);
  border-bottom:1px solid rgba(201,195,163,.16);
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  backdrop-filter:blur(8px);
}
.nav-brand{color:#ece9df}
.nav-links a{color:#b7b9b1}
.nav-links a:hover,.nav-links a:focus-visible,
.nav-home:hover,.nav-home:focus-visible{color:#d9d4bb}
.nav-sep{color:rgba(201,195,163,.40)}

.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(10,13,13,.20) 0%, rgba(10,13,13,.36) 48%, rgba(9,13,13,.88) 100%),
    url('../images/mist-forest-ref.png') center center / cover no-repeat;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255,255,255,.32) 0%, rgba(255,255,255,.09) 18%, transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.07), transparent 26%, rgba(0,0,0,.22) 100%);
  opacity:.82;
}
.hero::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:34%;
  z-index:-1;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.16) 0%, rgba(255,255,255,.03) 28%, transparent 58%),
    linear-gradient(180deg, transparent 0%, rgba(9,13,13,.78) 100%);
}
.logo{
  filter:drop-shadow(0 0 12px rgba(255,255,255,.07)) drop-shadow(0 10px 26px rgba(0,0,0,.42));
}
.hero-copy h1{
  text-shadow:0 3px 18px rgba(0,0,0,.34);
}
.hero-copy .accent-line{
  background:linear-gradient(90deg, #d2ccb1, #8d9388);
}
.progress{border-left-color:rgba(207,202,176,.72)}
.progress-item{border-bottom-color:rgba(255,255,255,.11)}
.progress-item:before{
  background:#d1ccb0;
  box-shadow:0 0 0 4px rgba(220,216,189,.06),0 0 14px rgba(255,255,255,.04);
}
.glyph-chain{
  opacity:.86;
  filter:grayscale(.05) sepia(.08) saturate(.66) brightness(.94) drop-shadow(0 0 12px rgba(255,255,255,.06));
}

.section{border-top-color:rgba(201,195,163,.15)}
.rule{background:linear-gradient(90deg, transparent, rgba(201,195,163,.30) 10%, rgba(201,195,163,.30) 90%, transparent)}
.gold,h4,.kicker,.changes-title{color:#cfc8a4}
.label{
  color:#181a18;
  background:#cbc4ae;
  box-shadow:0 4px 18px rgba(0,0,0,.28);
}
.chalk-card{
  border:1px solid rgba(201,195,163,.18);
  background:
    linear-gradient(180deg, rgba(20,26,26,.86), rgba(12,17,17,.92)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 22px);
  box-shadow:inset 0 0 34px rgba(255,255,255,.012), 0 16px 42px rgba(0,0,0,.18);
}
.stage:nth-child(2n),.wide-stage:nth-child(2n){
  background:
    linear-gradient(180deg, rgba(18,24,24,.88), rgba(11,15,15,.95)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.010) 0 1px, transparent 1px 24px);
}
.stage:hover,.wide-stage:hover,.iter-box:hover,.change:hover{
  border-color:rgba(210,205,183,.30);
  box-shadow:inset 0 0 38px rgba(255,255,255,.018), 0 18px 52px rgba(0,0,0,.24);
}
.photo{
  border-color:rgba(230,227,215,.26);
  background:#060808;
  box-shadow:0 16px 40px rgba(0,0,0,.36);
}
.photo:before,.photo:after{background:rgba(179,171,147,.50)}
.stage-media img,.story-strip img,.map-compare img{
  border-color:rgba(228,227,216,.15);
  box-shadow:0 8px 22px rgba(0,0,0,.18);
}
.photo img,.stage-media img,.story-strip img,.map-compare img{
  filter:saturate(.86) brightness(.92) contrast(1.03);
}
.photo:hover img,.stage-media img:hover,.story-strip img:hover,.map-compare img:hover{
  filter:saturate(.96) brightness(.98) contrast(1.03);
}
#overview::before,#journey::before,#iteration::before{
  content:"";
  position:absolute;
  pointer-events:none;
  width:38vw;
  height:38vw;
  border-radius:50%;
  filter:blur(90px);
  opacity:.08;
  background:#d9ddd6;
}
#overview::before{left:-20vw;top:6%}
#journey::before{right:-20vw;top:18%}
#iteration::before{left:-18vw;bottom:10%}
.final-stage{
  border-color:rgba(204,197,164,.24);
  background:
    radial-gradient(circle at 78% 18%, rgba(218,220,213,.06), transparent 26%),
    linear-gradient(180deg, rgba(18,24,24,.90), rgba(10,14,14,.96));
}
.logic-box{
  background:rgba(7,11,11,.60);
  border-color:rgba(205,198,166,.26)!important;
}
.logic-if,.logic-goodbye{color:#d7d0ab!important}
.footer{color:#81857f}
@media(max-width:820px){
  body::after{opacity:.12}
  .hero::after{height:28%}
}


/* ===== V21 hero motion: subtle forest parallax + drifting fog ===== */
.hero{
  --forest-y:0px;
  background-position:center center, center calc(50% + var(--forest-y));
  background-size:auto, cover;
  background-repeat:no-repeat,no-repeat;
}
.anthro-fog-layer{
  position:absolute;
  inset:-8% -18%;
  z-index:-0.5;
  pointer-events:none;
  opacity:.085;
  background:
    radial-gradient(ellipse at 20% 48%, rgba(240,244,239,.52) 0%, rgba(229,235,229,.18) 18%, transparent 44%),
    radial-gradient(ellipse at 65% 34%, rgba(240,244,239,.35) 0%, rgba(229,235,229,.12) 20%, transparent 48%),
    radial-gradient(ellipse at 88% 66%, rgba(230,235,231,.30) 0%, transparent 42%);
  filter:blur(28px);
  transform:translate3d(-1.2%,0,0) scale(1.03);
  animation:anthroFogDrift 18s ease-in-out infinite alternate;
  mix-blend-mode:screen;
}
@keyframes anthroFogDrift{
  0%{transform:translate3d(-1.2%,0,0) scale(1.03);opacity:.065}
  50%{opacity:.095}
  100%{transform:translate3d(1.8%,1.2%,0) scale(1.055);opacity:.075}
}
@media(prefers-reduced-motion:reduce){
  .hero{background-position:center center,center center!important}
  .anthro-fog-layer{animation:none!important;transform:none!important}
}

/* ===== V22 reliability fix: Part 3/4 content must never depend on reveal observers ===== */
#journey .reveal,
#iteration .reveal{
  opacity:1!important;
  transform:none!important;
  transition:none!important;
}

/* ===== V23 opening fog + scroll-unlock sections ===== */
.anthro-opening-fog{
  position:fixed;
  inset:0;
  z-index:120;
  pointer-events:none;
  overflow:hidden;
  background:
    radial-gradient(ellipse at 48% 45%,rgba(231,235,231,.95) 0%,rgba(199,207,201,.82) 27%,rgba(125,138,130,.55) 55%,rgba(16,23,21,.72) 100%),
    rgba(112,124,117,.88);
  animation:anthroOpeningVeil 2.55s cubic-bezier(.22,.62,.25,1) forwards;
}
.anthro-opening-fog span{
  position:absolute;
  width:78vw;
  height:44vw;
  min-width:620px;
  min-height:360px;
  border-radius:50%;
  filter:blur(56px);
  opacity:.68;
  background:radial-gradient(ellipse,rgba(250,252,249,.84) 0%,rgba(220,226,222,.48) 36%,transparent 72%);
}
.anthro-opening-fog span:nth-child(1){left:-20%;top:2%;animation:anthroOpeningCloudA 2.4s ease-out forwards}
.anthro-opening-fog span:nth-child(2){right:-25%;top:28%;animation:anthroOpeningCloudB 2.5s ease-out forwards}
.anthro-opening-fog span:nth-child(3){left:14%;bottom:-22%;animation:anthroOpeningCloudC 2.5s ease-out forwards}
body.anthro-opening .hero .wrap{
  opacity:0;
  transform:translateY(10px) scale(.995);
  animation:anthroHeroEmerge 1.15s ease-out 1.05s forwards;
}
@keyframes anthroOpeningVeil{
  0%,28%{opacity:1;visibility:visible}
  72%{opacity:.58}
  100%{opacity:0;visibility:hidden}
}
@keyframes anthroOpeningCloudA{0%{transform:translate3d(-5%,0,0) scale(1.08)}100%{transform:translate3d(-30%,-8%,0) scale(1.28);opacity:0}}
@keyframes anthroOpeningCloudB{0%{transform:translate3d(5%,0,0) scale(1.12)}100%{transform:translate3d(32%,4%,0) scale(1.32);opacity:0}}
@keyframes anthroOpeningCloudC{0%{transform:translate3d(0,8%,0) scale(1.04)}100%{transform:translate3d(4%,30%,0) scale(1.24);opacity:0}}
@keyframes anthroHeroEmerge{to{opacity:1;transform:none}}

/* JS adds this only while a section is waiting to enter view. */
.anthro-section-gated{
  opacity:.08;
  transform:translateY(26px);
  filter:blur(5px);
  transition:opacity .82s ease,transform .92s cubic-bezier(.2,.72,.2,1),filter .9s ease;
}
.anthro-section-gated.is-unlocked,
.is-unlocked{
  opacity:1;
  transform:none;
  filter:none;
}
@media(prefers-reduced-motion:reduce){
  .anthro-opening-fog{display:none!important}
  body.anthro-opening .hero .wrap{opacity:1!important;transform:none!important;animation:none!important}
  .anthro-section-gated{opacity:1!important;transform:none!important;filter:none!important;transition:none!important}
}
