/* The Wild: one trail through one wild day. Clearings and overgrowth. */

/* ---------- the day cycle: each stretch of trail has its own light ---------- */
.wildtrail { --wd-warm: #b8c98a; position: relative; overflow: hidden;
  background-color: #223528;
  background-image: linear-gradient(180deg, rgba(6, 10, 7, .3), transparent 26%),
    radial-gradient(120% 60% at 50% 0%, transparent 60%, rgba(6, 10, 7, .22));
  transition: background-color 1.8s ease; }
.wildtrail[data-hour="morning"] { background-color: #223528; }
.wildtrail[data-hour="midday"] { background-color: #26402c; }
.wildtrail[data-hour="golden"] { background-color: #31402a; }
.wildtrail[data-hour="dusk"] { background-color: #252b3a; }
.wildtrail[data-hour="night"] { background-color: #141a23; }
.wildtrail[data-hour="dawn"] { background-color: #2d2b34; }
section[data-hour], .passage[data-hour] { position: relative; background: transparent; }
section[data-hour="morning"] { --hl: rgba(255,240,200,.16); --ha: #b8c98a; }
section[data-hour="midday"] { --hl: rgba(255,252,230,.2); --ha: #cfe09a; }
section[data-hour="golden"] { --hl: rgba(255,206,120,.22); --ha: #e0b46b; }
section[data-hour="dusk"] { --hl: rgba(190,170,255,.14); --ha: #b3a6e0; }
section[data-hour="night"] { --hl: rgba(150,200,255,.1); --ha: #8fd0c2; }
section[data-hour="dawn"] { --hl: rgba(255,190,150,.2); --ha: #e8b890; }

/* ---------- reveal grammar shared with the other rooms ---------- */
.wildtrail .rv { opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .9s ease, transform .9s ease, filter .9s ease; }
.wildtrail .rv.on { opacity: 1; transform: none; filter: none; }

/* ---------- the underbrush intro ---------- */
.underbrush { position: fixed; inset: 0; z-index: 10000; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 44%, #24362a, #101a12 78%);
  display: grid; place-items: center; }
.underbrush { transition: opacity 1.2s ease; }
.underbrush.fade { opacity: 0; }
.underbrush.gone { display: none; }
.ub-thicket { position: absolute; top: -6vh; height: 116vh; width: 62vw; z-index: 2;
  filter: drop-shadow(0 0 40px rgba(0,0,0,.6)); transition: transform 1.6s cubic-bezier(.6,.05,.25,1); }
.ub-l { left: -6vw; }
.ub-r { right: -6vw; }
.ub-thicket img.tw, .ub-thicket > img:not(.tv) { position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ub-thicket .tv { position: absolute; top: -7%; height: 114%; width: auto; }
.ub-l .tw { right: 12%; width: 88%; }
.ub-r .tw { left: 12%; width: 88%; }
.ub-l .tv { right: -14%; }
.ub-r .tv { left: -14%; transform: none; }
.ub-l .tv-back { right: 4%; transform: scaleX(-1); filter: brightness(.78); }
.ub-r .tv-back { left: 4%; transform: scaleX(-1); filter: brightness(.78); }
.ub-ph { display: block; width: 100%; height: 100%;
  background:
    radial-gradient(48% 34% at 30% 22%, #2c4630 0 58%, transparent 60%),
    radial-gradient(52% 38% at 72% 40%, #24402a 0 58%, transparent 60%),
    radial-gradient(56% 40% at 38% 66%, #2e4a32 0 58%, transparent 60%),
    radial-gradient(50% 36% at 70% 84%, #223c28 0 58%, transparent 60%),
    #16261a; }
.underbrush.open .ub-l { transform: translateX(-58%) rotate(-3.5deg); }
.underbrush.open .ub-r { transform: translateX(58%) rotate(3.5deg); }
.ub-shafts { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 1.4s ease .3s;
  background:
    linear-gradient(112deg, transparent 32%, rgba(255,240,200,.08) 40%, transparent 46%),
    linear-gradient(104deg, transparent 55%, rgba(255,240,200,.06) 62%, transparent 68%); }
.underbrush.open .ub-shafts { opacity: 1; }
.ub-bough { position: absolute; z-index: 3; pointer-events: none; width: 76vw; max-width: 2500px;
  filter: drop-shadow(0 26px 46px rgba(4, 10, 6, .75));
  transition: transform 1.9s cubic-bezier(.55,.05,.25,1); }
.ub-bough img { width: 100%; height: auto; display: block; }
.ub-bough-tl { left: -15vw; top: -14%; transform: rotate(-2deg); transform-origin: 5% 10%; }
.ub-bough-br { right: -15vw; bottom: -14%; transform: rotate(-1deg); transform-origin: 95% 90%; }
.underbrush.open .ub-bough-tl { transform: rotate(-17deg) translate(-9%, -26%) scale(1.05); }
.underbrush.open .ub-bough-br { transform: rotate(-15deg) translate(9%, 28%) scale(1.05); }
.ub-titles { position: relative; z-index: 4; text-align: center; padding: 42px 56px 46px; }
.ub-titles::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(58% 62% at 50% 46%, rgba(10, 18, 12, .82), rgba(10, 18, 12, .45) 62%, transparent 82%);
  filter: blur(2px); }
.ub-plate { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .34em;
  text-transform: uppercase; color: #b8c98a; opacity: 0; animation: ub-in .8s ease forwards; animation-delay: .5s; }
.ub-title { font-family: "Vollkorn", Georgia, serif; font-weight: 600; color: #e6e8d8;
  font-size: clamp(52px, 9vw, 128px); line-height: 1.02; margin: 14px 0 8px; }
.ub-line { font-family: "Gentium Book Plus", Georgia, serif; font-style: italic; color: #9cab90;
  font-size: clamp(16px, 1.6vw, 22px); }
.ub-invite { font-family: "Gentium Book Plus", Georgia, serif; font-style: italic; color: #b8c98a;
  font-size: clamp(15px, 1.4vw, 19px); margin-top: 22px; opacity: 0; animation: ub-in 1s ease forwards; animation-delay: var(--ud); }
.uw { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(1.2deg);
  clip-path: inset(0 0 100% 0); animation: uw-rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--ud); }
.uw.grow { color: #86a86b; }
@keyframes uw-rise { to { opacity: 1; transform: none; clip-path: inset(-10% -6% -12% -6%); } }
@keyframes ub-in { to { opacity: 1; } }
.ub-skip { position: absolute; right: 26px; bottom: 22px; z-index: 4; background: none;
  border: 1px solid rgba(230,232,216,.25); color: #9cab90; font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 9px 14px; cursor: pointer;
  opacity: 0; animation: ub-in .8s ease forwards; animation-delay: var(--ud); }
.ub-skip:hover { color: #e6e8d8; border-color: #86a86b; }
body.wild-still .underbrush { display: none; }

/* ---------- placeholders until the paintings land ---------- */
.ph { background:
    radial-gradient(40% 30% at 30% 30%, rgba(184,201,138,.16), transparent 70%),
    radial-gradient(50% 40% at 72% 64%, rgba(134,168,107,.12), transparent 72%),
    linear-gradient(160deg, #24362a, #1a2a20 70%);
  border: 1px solid rgba(230,232,216,.09); }
.ph::after { content: "the painting is on its way"; position: absolute; inset: auto 0 12px 0;
  text-align: center; font-family: var(--mono, ui-monospace, monospace); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(230,232,216,.35); }

/* ---------- trailhead ---------- */
.trailhead { min-height: 92vh; display: grid; align-content: end; position: relative; isolation: isolate; }
.th-scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.th-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
div.th-art { position: absolute; inset: 0; }
.th-haze { position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(20,30,22,.24), transparent 34%, rgba(18,28,20,.86) 88%),
    radial-gradient(52% 40% at 62% 30%, rgba(255,240,200,.12), transparent 70%); }
.th-copy { max-width: 760px; padding: 0 min(7vw, 90px) 96px; position: relative; z-index: 4; }
.th-copy::before { content: ""; position: absolute; inset: -8% -10%; z-index: -1;
  background: radial-gradient(70% 80% at 40% 60%, rgba(14, 22, 16, .55), transparent 78%);
  filter: blur(6px); }
.th-plate { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: #b8c98a; }
.th-title { font-family: "Vollkorn", Georgia, serif; font-weight: 600; color: #f0f2e2;
  font-size: clamp(46px, 6.4vw, 92px); line-height: 1; margin: 12px 0 14px;
  text-shadow: 0 2px 30px rgba(10,18,12,.7); }
.th-tag { font-family: "Gentium Book Plus", Georgia, serif; color: #d6dcc4; max-width: 56ch;
  font-size: clamp(15px, 1.25vw, 18px); line-height: 1.75; }
.th-ctas { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.th-cta { display: inline-block; font-family: var(--mono, ui-monospace, monospace); font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; color: #10180f; background: #b8c98a;
  padding: 13px 22px; border-radius: 3px; text-decoration: none; }
.th-cta:hover { background: #cfe09a; }
.th-cta-2 { background: transparent; color: #d6dcc4; border: 1px solid rgba(230,232,216,.3); }
.th-cta-2:hover { border-color: #b8c98a; color: #f0f2e2; background: transparent; }
.th-cue { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  font-family: "Gentium Book Plus", Georgia, serif; font-style: italic; font-size: 13px; color: #9cab90;
  animation: cue-sway 3.2s ease-in-out infinite; }
@keyframes cue-sway { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }

/* the brush never fully lets go: foliage hangs INTO the scene, tilted in 3d,
   its cut edges dissolved by a lumpy organic mask */
/* the living forest behind the whole trail: one painted scene per hour,
   crossfaded by the same data-hour that tints the trail */
.wt-forest { position: fixed; inset: 0; z-index: 0; pointer-events: none; contain: strict; }
.wt-forest img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 2.2s ease; will-change: opacity; transform: translateZ(0); backface-visibility: hidden; }
.wildtrail[data-hour="morning"] .wt-forest img[data-h="morning"],
.wildtrail[data-hour="midday"] .wt-forest img[data-h="midday"],
.wildtrail[data-hour="golden"] .wt-forest img[data-h="golden"],
.wildtrail[data-hour="dusk"] .wt-forest img[data-h="dusk"],
.wildtrail[data-hour="night"] .wt-forest img[data-h="night"],
.wildtrail[data-hour="dawn"] .wt-forest img[data-h="dawn"] { opacity: .5; }
.wt-forest::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 10, .5), rgba(10, 14, 10, .16) 30%,
    rgba(10, 14, 10, .22) 68%, rgba(8, 10, 8, .55)); }

.th-brush { position: absolute; top: -12%; width: 34vw; max-width: 700px; z-index: 2; pointer-events: none;
  will-change: transform; filter: drop-shadow(22px 30px 38px rgba(8, 14, 9, .65)); }
.th-brush img { width: 100%; height: auto; }
.th-brush-l { left: -4vw; top: -4%; width: 24vw; max-width: 520px;
  transform: perspective(900px) rotateY(16deg) rotate(-4deg); transform-origin: 30% 0%;
  animation: brush-sway 10s ease-in-out infinite; }
.th-brush-r { right: -5vw; top: -8%; width: 32vw; max-width: 680px;
  transform: perspective(900px) rotateY(-18deg) rotateX(6deg) rotate(9deg) scaleX(-1); transform-origin: 70% 0%;
  animation: brush-sway 13s ease-in-out infinite reverse; }
.th-brush-b { left: -12vw; bottom: -20%; top: auto; width: 21vw; max-width: 460px;
  transform: rotate(8deg); transform-origin: 20% 100%;
  animation: brush-sway 15s ease-in-out infinite; }
@keyframes brush-sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 1.2deg; } }
.th-brush img, .bough img { transition: translate .65s cubic-bezier(.18, .8, .25, 1.15),
  rotate .65s cubic-bezier(.18, .8, .25, 1.15); }
@media (prefers-reduced-motion: reduce) { .th-brush { animation: none; }
  .th-brush img, .bough img { transition: none; } }

/* ---------- passages: boughs cross the trail and give way ---------- */
.passage { height: 46vh; min-height: 300px; overflow: visible; display: grid;
  place-items: center; z-index: 6; }
.bough { position: absolute; width: 66vw; max-width: 2100px; z-index: 2; pointer-events: none;
  pointer-events: none; filter: drop-shadow(0 22px 40px rgba(6, 12, 8, .6));
  transition: transform 1.7s cubic-bezier(.5,.05,.25,1); }
.bough img { width: 100%; height: auto; display: block; }
.bough-tl { left: -13vw; top: -36%; transform: rotate(-2deg); transform-origin: 5% 12%; }
.bough-br { right: -13vw; bottom: -36%; transform: rotate(-1deg); transform-origin: 95% 88%; z-index: 3; }
.bough-tr { right: -13vw; top: -36%; transform: scaleX(-1) rotate(-2deg); transform-origin: 5% 12%; }
.bough-bl { left: -13vw; bottom: -36%; transform: rotate(1deg); transform-origin: 5% 88%; z-index: 3; }
.bough-flip img { transform: scaleX(-1); }
.passage.open .bough-tl { transform: rotate(-13deg) translate(-8%, -22%) scale(1.03); }
.passage.open .bough-br { transform: rotate(-11deg) translate(9%, 24%) scale(1.03); }
.passage.open .bough-tr { transform: scaleX(-1) rotate(-13deg) translate(-8%, -22%) scale(1.03); }
.passage.open .bough-bl { transform: rotate(12deg) translate(-9%, 24%) scale(1.03); }
.pass-krrk { position: relative; z-index: 1; font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px; letter-spacing: .5em; color: rgba(230,232,216,.3); text-transform: uppercase; }

/* ---------- clearings ---------- */
.clearing { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px); align-items: center; padding: clamp(56px, 9vh, 120px) min(6vw, 84px);
  min-height: 88vh; isolation: isolate; }
.clearing.cl-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.clearing.cl-flip .cl-scene { order: 2; }
.cl-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 44% at 50% 40%, var(--hl, rgba(255,240,200,.12)), transparent 72%); }
.cl-scene { position: relative; }
.cl-scene { text-align: center; }
.cl-art { display: inline-block; max-width: 100%; max-height: 82vh;
  padding: 11px; border-radius: 4px;
  background: linear-gradient(172deg, #4a3a26, #382b1c 55%, #453423);
  border: 1px solid rgba(230, 222, 190, .22);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .16), inset 0 0 0 12px rgba(20, 14, 8, .18),
    0 22px 48px rgba(8, 14, 9, .62); }
.cl-art.cl-framed { padding: 0; background: none; border-radius: 0; border-style: solid;
  border-width: clamp(64px, 6vw, 104px); border-color: transparent; border-image-slice: 215;
  border-image-width: clamp(64px, 6vw, 104px); border-image-repeat: round;
  box-shadow: none; filter: drop-shadow(0 22px 44px rgba(8, 14, 9, .6)); }
div.cl-art { position: relative; height: min(60vh, 560px); }
.cl-scene::after { content: ""; position: absolute; left: -8px; top: -9px; width: 34px; height: 15px;
  background: radial-gradient(60% 100% at 50% 0%, #6d8a55, #3c5a2e 80%);
  border-radius: 0 60% 40% 60%; transform: rotate(-13deg); z-index: 2; }
.cl-pool { position: absolute; left: 10%; right: 10%; bottom: -3%; height: 10%;
  background: radial-gradient(ellipse at 50% 50%, rgba(10,16,10,.55), transparent 72%);
  filter: blur(10px); z-index: -1; }
.cl-side { max-width: 560px; }
.cl-sign { display: inline-flex; align-items: baseline; gap: 14px; padding: 8px 16px;
  background: linear-gradient(174deg, #4a3a26, #382b1c);
  border: 1px solid rgba(230,222,190,.2); border-radius: 3px;
  box-shadow: 0 3px 0 rgba(20,14,8,.5), inset 0 1px 0 rgba(255,240,200,.14); position: relative; }
.cl-sign::after { content: ""; position: absolute; left: -6px; top: -7px; width: 26px; height: 12px;
  background: radial-gradient(60% 100% at 50% 0%, #6d8a55, #3c5a2e 80%); border-radius: 0 60% 40% 60%;
  transform: rotate(-14deg); }
.cl-no { font-family: "Vollkorn", Georgia, serif; font-weight: 600; font-size: 22px; color: #e8ddb8; }
.cl-hour { font-family: var(--mono, ui-monospace, monospace); font-size: 10px; letter-spacing: .26em;
  text-transform: uppercase; color: #c9ba8e; }
.cl-title { font-family: "Vollkorn", Georgia, serif; font-weight: 600; color: #eef0dc;
  font-size: clamp(30px, 3.2vw, 48px); line-height: 1.08; margin: 16px 0 12px; }
.cl-tale { background: rgba(12,20,14,.55); border: 1px solid rgba(230,232,216,.12);
  border-radius: 4px; padding: 16px 18px; backdrop-filter: blur(4px); }
.tl { font-family: "Gentium Book Plus", Georgia, serif; color: #dde2ca; font-size: 15px;
  line-height: 1.7; margin: 0 0 10px; }
.tl:last-child { margin-bottom: 0; }
.tl b { display: block; font-family: var(--mono, ui-monospace, monospace); font-weight: 500;
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ha, #b8c98a); margin-bottom: 3px; }
.cl-crew { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.cl-crew form { display: contents; }
.crew-chip { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: #10180f; background: #b8c98a; border: 0; border-radius: 3px;
  padding: 10px 15px; cursor: pointer; text-decoration: none; display: inline-block; }
.crew-chip:hover { background: #cfe09a; }
.crew-wait { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: #9cab90; }
.trail-tag { font-family: var(--mono, ui-monospace, monospace); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: #d8c98e; border: 1px dashed rgba(216,201,142,.5);
  padding: 7px 11px; border-radius: 3px; }

/* ---------- the camps ---------- */
.camps, .grove { padding: clamp(60px, 10vh, 130px) min(6vw, 84px); position: relative; isolation: isolate; }
.camps-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .34; will-change: transform; transform: translateZ(0);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.camps::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,20,26,.8), rgba(10,14,18,.5) 40%, rgba(14,20,26,.85)); }
.camp-head { max-width: 720px; margin-bottom: 34px; }
.camp-plate { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: #8fd0c2; }
.camp-note { font-family: "Gentium Book Plus", Georgia, serif; font-style: italic; color: #b9c4b4;
  margin-top: 8px; font-size: 15px; }
.camp-row, .grove-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.tent { position: relative; display: block; text-decoration: none;
  background: linear-gradient(168deg, #2b3437, #1d2528 72%);
  border: 1px solid rgba(230,232,216,.12); border-radius: 6px 6px 4px 4px; padding: 12px 12px 14px;
  clip-path: polygon(0 10%, 50% 0, 100% 10%, 100% 100%, 0 100%);
  transition: transform .35s ease, border-color .35s ease; transition-delay: var(--td); }
.tent:hover { transform: translateY(-5px); border-color: #b8c98a; }
.tent-window { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px;
  border: 1px solid rgba(230,232,216,.14); }
.tent-window img { width: 100%; height: 100%; object-fit: cover; }
.tent-dark { display: block; width: 100%; height: 100%;
  background: radial-gradient(60% 60% at 50% 44%, #223528, #131c15 80%); }
.tent-lantern { position: absolute; right: 16px; top: 18px; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe9b8, #ffb84d 65%, transparent 80%);
  box-shadow: 0 0 18px rgba(255,184,77,.8); animation: lantern 3.4s ease-in-out infinite; }
@keyframes lantern { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.tent-plate { display: block; margin-top: 10px; }
.tent-plate b { display: block; font-family: "Vollkorn", Georgia, serif; font-weight: 600;
  color: #eef0dc; font-size: 17px; }
.tent-plate i { font-family: var(--mono, ui-monospace, monospace); font-style: normal; font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: #94a58e; }
.empty { font-family: "Gentium Book Plus", Georgia, serif; font-style: italic; color: #9cab90; }

/* ---------- the grove ---------- */
.grove { background: transparent; }
.bark-frame { position: relative; display: block; text-decoration: none; padding: 12px;
  background:
    repeating-linear-gradient(94deg, #3a2d1e 0 7px, #33271a 7px 13px, #3e3122 13px 21px);
  border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(230,222,190,.16), 0 10px 26px rgba(4,8,6,.5);
  transition: transform .35s ease; transition-delay: var(--td); }
.bark-frame:hover { transform: translateY(-5px) rotate(-.4deg); }
.bark-frame img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; }
.bf-2 { transform: rotate(.5deg); } .bf-3 { transform: rotate(-.6deg); }
.bark-title { display: block; margin-top: 9px; font-family: "Gentium Book Plus", Georgia, serif;
  font-style: italic; color: #d9d2b8; font-size: 14px; text-align: center; }

/* ---------- dawn out ---------- */
.dawnout { min-height: 66vh; display: grid; place-items: center; position: relative; isolation: isolate; text-align: center; }
.dawn-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .6; will-change: transform; transform: translateZ(0);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 100%); }
div.dawn-bg { position: absolute; inset: 0; }
.dawnout::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(56% 48% at 50% 56%, transparent, rgba(22,20,26,.82) 82%); }
.dawn-copy { padding: 60px 24px; }
.dawn-line { font-family: "Vollkorn", Georgia, serif; font-style: italic; color: #f0e6d2;
  font-size: clamp(22px, 2.6vw, 36px); margin-bottom: 24px; text-shadow: 0 2px 24px rgba(20,14,20,.7); }
.dawn-hall { display: block; margin-top: 18px; font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #b9c4b4; text-decoration: none; }
.dawn-hall:hover { color: #e8b890; }

/* ---------- whispers and fireflies ---------- */
.whisper { position: absolute; font-family: "Gentium Book Plus", Georgia, serif; font-style: italic;
  font-size: 13px; color: rgba(220,226,202,.4); pointer-events: none; }
.wsp-1 { right: 7%; bottom: 26px; transform: rotate(-1.4deg); }
#fireflies { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0;
  transition: opacity 1.6s ease; }
body.wild-glow #fireflies { opacity: 1; }

/* ---------- margin cast ---------- */
.wild-mg { position: absolute; z-index: 5; pointer-events: none; opacity: 0; }
.wild-mg img { width: 100%; height: auto; filter: drop-shadow(0 8px 22px rgba(8,14,9,.5)); }
.wild-mg.mg-run { animation: mg-cross var(--mgt, 26s) linear forwards; }
@keyframes mg-cross { 0% { opacity: 0; transform: translateX(0); }
  8% { opacity: .85; } 92% { opacity: .85; }
  100% { opacity: 0; transform: translateX(var(--mgx, 40vw)); } }

/* ---------- reduced motion and small screens ---------- */
@media (prefers-reduced-motion: reduce) {
  .underbrush { display: none; }
  .wildtrail .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .bough { transition: none; }
  .passage .bough-tl { transform: rotate(-13deg) translate(-8%, -22%); }
  .passage .bough-br { transform: rotate(-11deg) translate(9%, 24%); }
  .passage .bough-tr { transform: scaleX(-1) rotate(-13deg) translate(-8%, -22%); }
  .passage .bough-bl { transform: rotate(12deg) translate(-9%, 24%); }
  .th-cue { animation: none; }
  .tent-lantern { animation: none; }
  .wild-mg { display: none; }
  #fireflies { display: none; }
}
@media (max-width: 900px) {
  .clearing, .clearing.cl-flip { grid-template-columns: 1fr; min-height: 0; }
  .clearing.cl-flip .cl-scene { order: 0; }
  .passage { height: 30vh; min-height: 190px; }
  .th-copy { padding-bottom: 72px; }
  .cl-side { max-width: none; }
}
