/* Original home styles and animation components remain authoritative. */
/* ojov1: the reference frames' contrast: crests bright, gaps and distance black. */
#world{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;filter:contrast(1.16) saturate(1.06) brightness(.94)}
.stage,.grain{display:none!important}
/* The eye is an enhancement: until the 3D is drawing (body[data-ready=true])
   the photograph of the same eye stands where the opening's eyeball will
   be, the size of it (the photograph spans the globe's 80 units), and it
   dissolves into it. Without WebGL, or if the 3D fails or is lost, it stays,
   dimmed, behind the readable page. */
.field-world{z-index:0;transition:opacity .8s ease,visibility 0s linear 0s}
.field-canvas,.field-shade,.field-edge{display:none}
.field-world .field-photo{width:min(65.5svh,65vw);left:47.8%;top:52.5%;opacity:1!important;transform:translate(-50%,-50%)!important}
.field-world .field-photo img{width:100%;height:100%;object-fit:contain}
@media (orientation:portrait){.field-world .field-photo{left:46%;top:51%}}
body[data-ready="true"] .field-world{opacity:0;visibility:hidden;transition:opacity .8s ease,visibility 0s linear .8s}
body[data-ready="error"] .field-world,body[data-ready="context-lost"] .field-world{opacity:.35}
#reading-shade{position:fixed;inset:0;background:#030609;opacity:0;pointer-events:none;z-index:1}
main,.foot{position:relative;z-index:2}.strata{z-index:3}.hdr{position:fixed;z-index:50}
/* The opening belongs to the eye: the whole top bar (brand, sound, calm, menu)
   comes in with the first scroll and leaves again at the very top. Keyboard
   focus or an open menu always brings it back. Calm mode drops the motion. */
.hdr{transition:opacity .5s ease,translate .6s cubic-bezier(.2,.7,.2,1)}
html.at-top .hdr{opacity:0;translate:0 -14px;pointer-events:none}
html.at-top .hdr:focus-within{opacity:1;translate:none;pointer-events:auto}
html.at-top .hdr:has(.nav-t:checked){opacity:1;translate:none;pointer-events:auto}
#station-glacier{height:520svh}
/* The opening is the eye alone, on phones too: the stations engine's
   stylesheet shortened the hero to 72svh in portrait, which let the
   headline's first line peek in under the eye (owner, 2026-10-07: "debería
   estar el ojo solo"). */
@media(max-width:899px) and (max-aspect-ratio:17/20){.hero{min-height:100svh}}
/* Calm (js/calm-mode.js): no camera move to scroll through, so the station is
   a couple of screens; the stages of the case read as plain blocks, their
   captions fully in; the veil the stills change through (calm-stills.js). */
html[data-calm="1"] #station-glacier{height:200svh}
html[data-calm="1"] .pov-stop__copy{opacity:1!important}
#calm-veil{position:fixed;inset:0;background:#000;opacity:0;pointer-events:none;z-index:1}
#station-glacier .field-caption{opacity:1}
#library,#studio{position:relative;background:transparent}
.pov-stop{height:280svh;position:relative}
.pov-stop__pin{position:sticky;top:0;height:100svh;display:flex;align-items:center;justify-content:flex-end;padding:8vh 8vw;background:none}
.pov-stop__copy{width:min(420px,38vw)}
.pov-stop .eyebrow,.pov-stop .step,.pov-stop .deliverable,.case-nav{font:11px/1.7 var(--mono);letter-spacing:.10em}
.pov-stop h2{font:400 clamp(40px,4.5vw,72px)/1.05 var(--serif);margin:20px 0}.pov-stop .lede{font-size:17px;line-height:1.7}
.pov-stop .deliverable{display:block;margin:24px 0;color:#b9cbd6}.case-nav{display:flex;gap:20px;margin:22px 0}.case-nav a{padding:7px;border-bottom:1px solid #71838b}.pov-stop .action{display:inline-block;margin:18px 0;border-bottom:1px solid currentColor}
#pov-dive{height:210svh;position:relative}#pov-dive p{position:sticky;top:75vh;text-align:center;font:11px var(--mono);letter-spacing:.2em}
#pupil{background:#000;position:relative}#loading{position:fixed;bottom:20px;left:20px;z-index:120;background:#080d13;padding:12px 18px;font:11px monospace;color:#d7e4ec}#loading[hidden]{display:none}
.pov-stop__copy{opacity:var(--caption-opacity,1)}
@media(max-width:700px){#station-glacier{height:480svh}.pov-stop{height:250svh}.pov-stop__pin{justify-content:flex-start;align-items:flex-end;padding:0 7vw 5svh;background:none}.pov-stop__copy{width:100%}.pov-stop h2{font-size:40px}.pov-stop .lede{font-size:15px}.pov-stop .eyebrow{font-size:9px}}
html[data-calm="1"] .pov-stop{height:auto;min-height:100svh}html[data-calm="1"] .pov-stop__pin{position:relative;height:auto;min-height:100svh}

/* One viewport-sized lighting layer: section edges never crop the scrim. */
.pov-reading-light{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:0;background:linear-gradient(270deg,#020509c9,transparent 60%)}
.pov-reading-light.is-evidence{background:linear-gradient(270deg,#020509ed 0%,#02050999 38%,transparent 66%)}
@media(max-width:700px){.pov-reading-light{background:linear-gradient(0deg,#020509e8,transparent 75%)}}
@media(max-width:700px){.pov-reading-light.is-evidence{background:linear-gradient(0deg,#020509f0 6%,#020509ad 43%,transparent 68%)}}

#station-glacier .field-caption{background:none}
.pov-reading-light.is-glacier{background:linear-gradient(90deg,#020509b8,transparent 60%)}
/* The approach headline runs across the eye: dim the ball's left half under it. */
.pov-reading-light.is-approach{background:linear-gradient(90deg,#020509e0 0%,#020509b3 42%,#02050966 70%,transparent 92%)}
@media(max-width:900px){.pov-reading-light.is-approach{background:linear-gradient(180deg,#020509b3 0%,#0205099e 55%,#020509c7 100%)}}
@media(max-width:900px){.pov-reading-light.is-glacier{background:linear-gradient(0deg,#020509db,transparent 72%)}}

#station-glacier .field-caption h2 em{text-decoration-line:underline;text-decoration-color:var(--red,#d8432c);text-decoration-thickness:.065em;text-underline-offset:.16em;text-decoration-skip-ink:none}

/* Hold the answer for another viewport of scroll while the 3D keeps advancing. */
#approach{min-height:260svh}
@media(max-width:899px){#approach{min-height:240svh}}
html[data-calm="1"] #approach{min-height:100svh}

.case-intro{position:relative;min-height:110svh;display:flex;align-items:center}
.case-intro__head{display:grid;grid-template-columns:1fr 1fr;gap:7vw;align-items:center}
.case-intro .mark{margin-bottom:26px}.case-intro .btn{margin-top:28px}
/* A compact filament trail previews the four full-size totem encounters. */
.case-trail{position:relative;width:min(100%,760px);height:110px;margin-top:42px}
.case-trail svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.case-trail path{fill:none;stroke:#b4cdd1;stroke-width:1;stroke-opacity:.8;vector-effect:non-scaling-stroke}
.case-trail circle{fill:var(--red,#d8432c);stroke:#15242a;stroke-width:2;vector-effect:non-scaling-stroke}
.case-trail__narrow{display:none}
.case-intro__steps{list-style:none;margin:0;padding:0;border:0}
.case-intro__steps li{position:absolute;font:400 15px/1.4 var(--serif);color:#dddcd4;white-space:nowrap}
.case-intro__steps li:nth-child(1){left:5.26%;top:40px}
.case-intro__steps li:nth-child(2){left:31.58%;top:62px}
.case-intro__steps li:nth-child(3){left:57.89%;top:36px}
.case-intro__steps li:nth-child(4){left:84.21%;top:54px}
.case-intro__steps span{font:9px var(--mono);color:#b9cbd6;display:block;margin-bottom:3px}
.case-intro__continue{margin-top:12px;font:10px var(--mono);letter-spacing:.10em;color:#a3b7be}
@media(max-width:800px){.case-intro__head{grid-template-columns:1fr;gap:30px}.case-intro{min-height:100svh}}
@media(max-width:600px){
 .case-trail{height:210px;margin-top:26px}
 .case-trail__wide{display:none}.case-trail .case-trail__narrow{display:block;width:64px;height:220px}
 .case-intro__steps li{left:78px!important;font-size:15px}
 .case-intro__steps li:nth-child(1){top:4px}.case-intro__steps li:nth-child(2){top:58px}
 .case-intro__steps li:nth-child(3){top:112px}.case-intro__steps li:nth-child(4){top:168px}
 .case-intro__steps span{display:inline;margin-right:8px}
}

/* Full-eye route: the pupil crossing's scroll length (the inside of the eye
   is drawn in the world canvas, viewer.js + interior-world.js). */
#crossing{height:170svh;position:relative}
@media(max-width:700px){#crossing{height:150svh}}
html[data-calm="1"] #crossing{height:40svh}

/* The corneal crossing: a brief milky refraction over the live scene. */
#cornea-veil{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:0;visibility:hidden;
  background:radial-gradient(120% 90% at 50% 38%,rgba(214,228,242,.24),rgba(190,208,228,.12) 58%,rgba(170,190,214,.07));
  /* ojov1: no blur — the descent must stay sharp, the film is only a sheen. */}
@media (prefers-reduced-motion:reduce){#cornea-veil{-webkit-backdrop-filter:none;backdrop-filter:none}}
html[data-calm="1"] #cornea-veil{display:none}

/* ojov1 (owner, 2026-10-06): the home message reads in sentence case, as
   written, not in capitals (main set it uppercase on 2026-09-23). */
.approach__message-frame,.approach__fallback{text-transform:none}

/* ojov1 (owner, 2026-10-06): the answer carries the house's red underline,
   subtle, like "Se desprenden" at the glacier. Unsplit (calm, reduced
   motion) it is the line's own underline. Split letter by letter, the
   letters are inline-blocks, which a parent's underline does not reach: each
   word draws one stroke, in after its letters, running on under the next
   space unless it ends a line (headline-underline.js). The stroke sits where
   the line's own underline sits, measured in Chrome: its top .1427em above
   the word box's foot, .036em thick. */
.approach__line--answer{
  text-decoration-line:underline;text-decoration-color:#c2412c;
  text-decoration-thickness:.036em;text-underline-offset:.14em;text-decoration-skip-ink:none}
.approach.approach-ready .approach__line--answer{text-decoration-line:none}
.approach.approach-ready .approach__line--answer .approach__word{position:relative}
.approach.approach-ready .approach__line--answer .approach__word::after{
  content:'';position:absolute;left:-.02em;right:calc(-1*var(--gap,0px) - .02em);bottom:.1067em;height:.036em;
  background:#c2412c;pointer-events:none;transform:scaleX(0);transform-origin:left;
  transition:transform .6s cubic-bezier(.22,.7,.2,1) calc(var(--word-delay,0ms) + 140ms)}
.approach.approach-ready.is-answer .approach__line--answer .approach__word::after{transform:scaleX(1)}
html[data-calm="1"] .approach.approach-ready .approach__line--answer .approach__word::after{transition:none}
