.opening { --morph-h:calc(100svh - var(--head-h)); position:relative; }
.opening.is-ready::after {content:"";display:block;height:90svh;}
.landing .morph-stage {
  position:sticky;top:var(--head-h);height:var(--morph-h);min-height:555px;max-height:1080px;
  display:grid;align-items:center;isolation:isolate;overflow:hidden;
}
.landing .morph-stage .hero-photo.story-visual[data-scene] {
  position:absolute;inset:0;width:100%;height:100%;overflow:hidden;filter:none;
  background:#10100d url(assets/onix.webp) 73% 50%/cover no-repeat;
}
.morph-base,.morph-next,.morph-canvas {position:absolute;inset:0;width:100%;height:100%;background-position:73% 51%;background-size:cover;}
.morph-next,.morph-canvas {opacity:0;}
.landing .morph-stage .hero-body {position:relative;height:auto;display:grid;align-items:center;padding-block:48px 90px;z-index:1;}
.morph-copy {grid-area:1/1;align-self:center;opacity:calc(1 - var(--morph-fade,0));}
.morph-copy[hidden] {display:none;}
.landing .morph-stage .hero-copy h1,.landing .morph-stage .hero-copy h2 {
  font:400 clamp(3.7rem,6.6vw,8.4rem)/.95 var(--display);letter-spacing:-.05em;margin:18px 0;color:inherit;
}
.morph-copy h2 em {color:#dfc98e;}
.morph-copy .eyebrow{text-transform:uppercase;}
.landing .morph-copy p {max-width:37ch;}
.morph-copy small {display:block;color:inherit;opacity:.8;margin:-9px 0 16px;font-size:.79rem;}
.morph-controls,.morph-stops {display:flex;align-items:center;}
.morph-controls {gap:10px;padding:0 6px 0 13px;border-radius:22px;color:#f8eaca;background:#15140ed9;}
#scene-name {font-size:.86rem;}
.morph-stops button,.morph-play {height:40px;min-width:28px;color:inherit;}
.morph-stops button::after {content:"";display:block;margin:auto;width:7px;height:7px;border:1px solid #e4c890;border-radius:50%;}
.morph-stops button[aria-pressed=true]::after {background:#e4c890;}
.morph-play {font-size:1rem;}
[data-theme=dia] .landing .morph-stage {color:var(--ink);}
[data-theme=dia] .landing .morph-copy {color:var(--ink);opacity:max(.92,calc(1 - var(--morph-fade,0)));}
[data-theme=dia] .morph-copy h2 em {color:var(--gold);}
@media(min-width:701px){
 [data-theme=dia] .landing .morph-stage .hero-shade {
   background:linear-gradient(90deg,#faf8f2 0%,#faf8f2 33%,#faf8f2f5 44%,#faf8f2cb 51%,transparent 68%);
 }
}
.landing .creator {background:radial-gradient(ellipse at 22% 35%,#8b714325,transparent 50%),var(--paper);}
.creator-spread {align-items:start;}
.creator-portrait {background:transparent;}
.creator #portrait-image {position:absolute;inset:auto 0 0;width:100%;height:90%;object-fit:contain;object-position:bottom center;mask-image:linear-gradient(180deg,#000 72%,transparent 100%);}
.creator-portrait::after {background:radial-gradient(ellipse at 28% 85%,#110f0cb0,transparent 52%);}
.creator-light {z-index:-1;}
.creator-letter {position:relative;}
.letter-prints {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:center;padding:15px 14px 22px;margin:6px 0 10px;isolation:isolate;}
.letter-prints figure {--a:-9deg;--dy:1px;position:relative;width:144%;margin:0 0 0 -14%;transform:translateY(var(--dy)) rotate(var(--a));transform-origin:center 75%;}
.letter-prints figure:nth-child(3n+2){--a:8deg;--dy:8px;}
.letter-prints figure:nth-child(3n){--a:-3deg;--dy:-6px;}
.letter-prints a {display:block;background:#f0e7d7;padding:5px 5px 13px;box-shadow:0 3px 9px #0005;cursor:zoom-in;}
.letter-prints img {display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;object-position:50% 48%;}
.letter-prints figcaption {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;}
.letter-prints figure:hover,.letter-prints figure:focus-within {z-index:2;}
.letter-store {display:inline-flex;padding-block:8px;color:var(--gold);text-decoration:underline;text-underline-offset:4px;}
.creator-note {margin-top:6px;}
@media(prefers-reduced-motion:no-preference){
 .letter-prints figure {transition:transform .26s ease;}
 .letter-prints figure:hover,.letter-prints figure:focus-within {transform:translateY(-9px) rotate(0deg) scale(1.27);}
}
@media(max-width:700px){
 .landing .morph-stage{min-height:615px;max-height:820px;align-content:end;}
 .landing .morph-stage .hero-photo.story-visual[data-scene] {inset:0 0 auto;width:100%;height:55%;}
 .landing .morph-stage .hero-shade {background:linear-gradient(0deg,#0a0c09 1%,#0a0c09 43%,#0a0c09d9 51%,transparent 67%);}
 [data-theme=dia] .landing .morph-stage .hero-shade {background:linear-gradient(0deg,#faf8f2 1%,#faf8f2 43%,#faf8f2da 51%,transparent 67%);}
.landing .morph-stage .hero-body {padding:8px 0 84px;}
 .landing .morph-stage .hero-copy {width:100%;}
 .landing .morph-stage .hero-copy h1,.landing .morph-stage .hero-copy h2 {font-size:clamp(2.85rem,10.5vw,5.4rem);margin:10px 0;}
 .landing .morph-stage .hero-copy p {font-size:1rem;line-height:1.45;margin-bottom:14px;}
 .morph-controls{gap:0;padding:0 1px;}
 #scene-name{display:none;}
 .morph-stops button,.morph-play{min-width:23px;}
 .creator-portrait {height:clamp(305px,85vw,475px);}
 .creator #portrait-image {height:100%;object-position:78% bottom;}
 .letter-prints{margin:12px 0;padding:15px 6px;row-gap:4px;grid-template-columns:repeat(4,minmax(0,1fr));}
 .letter-prints figure{width:114%;margin-left:-6%;}
}
@media(max-height:650px){.landing .morph-stage{min-height:0;}.opening.is-ready::after{height:70svh;}}
@media(max-height:650px) and (max-width:700px){.landing .morph-stage{height:615px;position:relative;top:auto;}.opening.is-ready::after{height:0;}}
@media(max-height:480px) and (min-width:701px){.landing .morph-stage{height:500px;position:relative;top:auto;}.opening.is-ready::after{height:0;}}
@media(prefers-reduced-motion:reduce){.opening.is-ready::after{height:0;}.landing .morph-stage{position:relative;top:auto;}}

/* The two original poses share a fixed eye midpoint and interocular distance.
   Only the mask moves. Registration is independent of the crop and screen width. */
.dual-portrait {display:flex;flex-direction:column;justify-content:center;isolation:isolate;overflow:visible;min-height:0;padding:25px 4% 20px max(26px,8%);}
.dual-portrait::after {display:none;}
.dual-portrait .creator-byline {position:relative;inset:auto;margin:0 0 10px;z-index:1;}
.dual-portrait .creator-byline .eyebrow {color:var(--gold);}
.landing .dual-portrait .creator-byline h2 {font-size:clamp(3rem,4.6vw,6rem);color:var(--ink);}
.dual-portrait .creator-byline h2 em {color:var(--gold);}
.dual-image {
  position:relative;isolation:isolate;container-type:size;height:clamp(270px,48svh,590px);
  min-height:0;flex-shrink:1;
}
.dual-halo {
  position:absolute;inset:0;
  background:radial-gradient(ellipse at 45% 55%,#a9956150,transparent 56%),radial-gradient(ellipse at 60% 48%,#55766a4a,transparent 64%);
  pointer-events:none;
}
.dual-halo::before,.dual-halo::after {
  content:"";position:absolute;border:1px solid #b99b6440;border-radius:50%;inset:11% 11%;transform:rotate(-24deg);
}
.dual-halo::after {inset:20% 7%;transform:rotate(24deg);}
.dual-half {
  position:absolute;inset:0;pointer-events:none;overflow:hidden;
  mask-image:linear-gradient(to bottom,#000 76%,transparent 100%);
}
.dual-half img {
  --eye-span:min(14cqw,14cqh);
  display:block;position:absolute;left:50%;top:38%;height:auto;max-width:none;
  width:calc(var(--eye-span) * var(--width-in-eye-spans));
  transform-origin:var(--eyes-x) var(--eyes-y);
  transform:translate(calc(-1 * var(--eyes-x)),calc(-1 * var(--eyes-y))) rotate(var(--level));
}
.dual-quiet {
  /* 1195 × 1316, eye midpoint (621, 345.5), pupil span 162px. */
  --eyes-x:51.97%;--eyes-y:26.25%;--width-in-eye-spans:7.37;--level:-3.2deg;
  clip-path:inset(0 calc(100% - var(--divide)) 0 0);
}
.dual-playful {
  /* 1162 × 1353, eye midpoint (523, 290.5), pupil span 170.5px. */
  --eyes-x:45.01%;--eyes-y:21.47%;--width-in-eye-spans:6.82;--level:23.4deg;
  clip-path:inset(0 0 0 var(--divide));
}
.dual-line {
  position:absolute;inset:1% auto 0 var(--divide);width:1px;pointer-events:none;
  background:linear-gradient(transparent,#e8d49bcc 20%,#e8d49bcc 84%,transparent);
}
.dual-line span {
  position:absolute;top:76%;left:0;transform:translate(-50%,-50%);display:grid;place-items:center;width:36px;height:36px;
  border-radius:50%;border:1px solid #dfcb97c9;color:#fff0bf;background:#24221ddf;box-shadow:0 2px 8px #1714104a;font:1.1rem sans-serif;
}
.dual-image input {
  position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;touch-action:pan-y;cursor:ew-resize;
}
.dual-image:has(input:focus-visible) {outline:2px solid var(--gold);outline-offset:3px;}
.dual-controls {margin:0;padding:10px 0;text-align:center;border-top:1px solid var(--line);font-size:.83rem;color:var(--muted);}
.dual-caption {margin:4px 0 0;color:var(--ink);font:1.22rem/1.3 var(--display);min-height:2.6em;}
@media(min-width:901px){.dual-portrait{padding-left:max(148px,13%);}}
@media(max-width:700px){.dual-portrait{padding:28px 6% 14px;height:auto;}.dual-image{height:clamp(260px,83vw,440px);}.dual-caption{min-height:0;}}

.landing .opening>.morph-stage {top:0;--morph-h:100svh;}
.landing .ritual {align-items:stretch;gap:clamp(24px,5vw,80px);}
.ritual-invite {position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;min-height:340px;padding:clamp(24px,3vw,52px);color:#fff5da;background:#19211a;}
.ritual-invite::before,.ritual-invite::after {content:"";position:absolute;inset:0;z-index:-1;}
.ritual-invite::before {background:center 52% / cover no-repeat url(assets/jardim.webp);}
.ritual:has(.steps details:nth-child(2)[open]) .ritual-invite::before {background-image:url(assets/embrulho.webp);}
.ritual:has(.steps details:nth-child(3)[open]) .ritual-invite::before {background-image:url(assets/tampas.webp);}
.ritual-invite::after {background:linear-gradient(0deg,#131410ed 0%,#1618118c 61%,transparent);}
.landing .ritual-invite h2 {font-size:clamp(3.1rem,4.6vw,5.5rem);color:#fff5df;}
.landing .ritual-invite h2 em,.landing .ritual-invite .eyebrow {color:#e4c889;}
.landing .ritual-invite p{color:#f2eedf;}
.ritual-invite .gold-btn{margin-top:17px;}
.ritual .steps{align-self:center;}
@media(prefers-reduced-motion:no-preference){
 .ritual .steps details[open] p{animation:ritual-open .28s ease-out both;}
 @keyframes ritual-open{from{opacity:.25;transform:translateY(-4px)}to{opacity:1;transform:none}}
}
@media(max-width:600px){.ritual-invite{min-height:275px;}}
