/* Hero: the headline and the sentence beside the table of oracles (js/hero.js, js/cycle.js). */
.hero{position:relative;overflow:hidden;color:var(--terra);padding:clamp(124px,14vw,168px) 0 clamp(64px,7vw,104px);min-height:min(100svh,940px);display:grid;align-items:center;isolation:isolate}
.hero-layout{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);gap:clamp(24px,4vw,56px);align-items:center}
.hero-copy{position:relative;z-index:2;min-width:0}
.hero-description{font-size:clamp(17px,1.25vw,20px);line-height:1.6;max-width:430px;margin-top:28px;color:var(--terra)}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;margin-top:40px}
.hero-actions .text-link{color:var(--terra)}



@media(min-width:761px) and (max-width:1150px){
  .hero{padding-block:124px 72px;min-height:0}
  .hero-layout{grid-template-columns:1.08fr 1fr;gap:20px}
  .hero-description{font-size:16px;max-width:330px}
  .hero-actions{margin-top:30px;gap:12px 20px}
}
@media(max-width:760px){
  .hero{padding:88px 0 40px;min-height:100svh;display:grid;align-content:center}
  .hero-layout{grid-template-columns:1fr;gap:22px}
  .hero-copy{max-width:520px}
  .hero-description{font-size:15px;max-width:380px;margin-top:14px}
  .hero-actions{margin-top:20px;gap:8px 16px}
  .hero-actions .button{font-size:14px;min-height:50px;gap:12px;padding:12px 18px}
  .hero-actions .text-link{font-size:14px;gap:8px}
  .hero-actions .icon{width:18px;height:18px}
}
@media(min-width:600px) and (max-width:760px){
  .hero{padding-top:112px;padding-bottom:40px}
  .hero-layout{grid-template-columns:1.15fr 1fr;gap:12px;align-items:center}
  .hero-description{font-size:15px}
}

/* The headline that writes itself (js/typing.js): line 1 in normal weight, line 2 in bold Pliant. */
.hero h1.typing-title{font-family:var(--font-display);font-weight:700;font-size:clamp(40px,4.3vw,76px);line-height:1.02;letter-spacing:-.03em;color:var(--terra);text-wrap:pretty}
.typing-stack{display:grid}
.typing-stack>*{grid-area:1/1}
.typing-ghost{visibility:hidden}
.typing-first{font-family:var(--font-body);font-weight:400;letter-spacing:-.035em;color:var(--ink)}
.typing-title b,.typing-second{font-family:var(--font-display);font-weight:700}
.typing-caret{display:inline-block;width:.07em;height:.8em;margin-left:.05em;vertical-align:-.04em;border-radius:1px;background:var(--terra-bright)}
.typing-caret.blink{animation:typing-caret-blink 1s steps(1) infinite}
@keyframes typing-caret-blink{50%{opacity:0}}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.hero-description{margin-top:30px}
@media(min-width:761px) and (max-width:1150px){.hero h1.typing-title{font-size:clamp(36px,5vw,52px)}}
@media(max-width:760px){.hero h1.typing-title{font-size:clamp(32px,9vw,44px);line-height:1.04}}

/* The sentence under the headline changes with the stage: it fades out and back in (js/description.js); every sentence sits
   invisibly in the same grid cell so the buttons never move. */
.description-stack{display:grid}
.description-stack>*{grid-area:1/1}
.description-ghost{visibility:hidden}
.description-text{transition:opacity .3s ease,transform .3s var(--ease)}
.description-text.is-leaving{opacity:0;transform:translateY(8px)}
.description-text.is-entering{opacity:0;transform:translateY(-8px);transition:none}

/* The stage: one square where the four scenes take turns. Each scene has its own pair of stacked canvases (layer). */
.oracle-stage{position:relative;justify-self:end;width:100%;max-width:680px;z-index:1}
.stage-button{display:block;width:100%;aspect-ratio:1;border-radius:50%;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.stage-button:focus-visible{outline:3px solid var(--terra-bright);outline-offset:6px}
.stage-box{position:relative;display:block;width:100%;aspect-ratio:1;pointer-events:none}
.scene-layer{position:absolute;inset:0;transform-origin:50% 50%}
.scene-layer[hidden]{display:block!important;visibility:hidden}
.scene-layer canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.scene-layer.thud{animation:table-thud .32s cubic-bezier(.3,.7,.4,1)}
@keyframes table-thud{30%{transform:scale(.982)}}


@media(max-width:1150px) and (min-width:761px){.oracle-stage{max-width:560px}}
@media(max-width:760px){.oracle-stage{order:-1;max-width:min(92vw,420px);justify-self:center}}
@media(min-width:600px) and (max-width:760px){.oracle-stage{order:0;max-width:none;justify-self:stretch}}
@media(prefers-reduced-motion:reduce){.scene-layer.thud{animation:none}}
html[data-motion=paused] .scene-layer.thud{animation:none}

/* Loader: the logo's tray as SVG, in the first paint. Its first throw is pure CSS (no script needed); js/loader.js throws again
   while the engine loads and fades it out when the real table is ready. The resting state is the base style, so with no
   animation (reduced motion, paused, no script) the tray simply sits there thrown. */
.tray-loader{position:absolute;left:50%;top:50%;width:89%;height:auto;translate:-50% -50%;overflow:visible;filter:drop-shadow(0 22px 28px #3b150a40);transition:opacity .8s ease;--base:620ms}
.tray-loader.is-leaving{opacity:0}
.tray-disc{fill:var(--sand-deep);stroke:#9c7438;stroke-width:1.2;transform-box:fill-box;transform-origin:center;animation:tray-disc-in .8s cubic-bezier(.22,.75,.2,1) backwards}
.tray-rings circle{fill:none;stroke:#b98e4e;stroke-width:.55;transform-box:fill-box;transform-origin:center;transform:rotate(-90deg);animation:tray-ring-in .9s cubic-bezier(.3,.7,.2,1) backwards;animation-delay:calc(120ms + var(--n,0) * 70ms)}
.tray-dots circle{fill:#c2552e;transform-box:fill-box;transform-origin:center;animation:tray-dot-in .42s cubic-bezier(.22,.75,.2,1) backwards;animation-delay:calc(var(--base) + var(--n,0) * 85ms + 460ms)}
.tray-dots .is-hollow{fill:none;stroke:#c2552e;stroke-width:1.6}
.shell,.shell-body{transform-box:fill-box;transform-origin:center}
.shell-body{animation:shell-drop .68s cubic-bezier(.34,1.45,.64,1) backwards,shell-fade .15s ease-out backwards;animation-delay:calc(var(--base) + var(--n,0) * 85ms)}
.shell-shadow{fill:#4a2f1a;opacity:.16;animation:shell-shadow-in .5s cubic-bezier(.22,.75,.2,1) backwards;animation-delay:calc(var(--base) + var(--n,0) * 85ms + 180ms)}
.shell .body{fill:#fbf7f0;stroke:#8a6a3a;stroke-width:.45}
.shell.is-closed .body{fill:#eadbc2}
.shell .mouth{fill:#4a2f1a}
.shell .highlight{fill:#fbf7f0}
@keyframes tray-disc-in{from{transform:scale(.9);opacity:0}}
@keyframes tray-ring-in{from{stroke-dasharray:1 1.05;stroke-dashoffset:1}to{stroke-dasharray:1 1.05;stroke-dashoffset:0}}
@keyframes tray-dot-in{from{transform:scale(0);opacity:0}60%{transform:scale(1.35);opacity:1}}
@keyframes shell-drop{from{transform:translateY(-46px) scale(1.4) rotate(-24deg)}}
@keyframes shell-fade{from{opacity:0}}
@keyframes shell-shadow-in{from{transform:scale(.3);opacity:0}}
.tray-shells .shell:nth-child(1),.tray-dots circle:nth-child(1),.tray-rings circle:nth-child(1){--n:0}
.tray-shells .shell:nth-child(2),.tray-dots circle:nth-child(2),.tray-rings circle:nth-child(2){--n:1}
.tray-shells .shell:nth-child(3),.tray-dots circle:nth-child(3),.tray-rings circle:nth-child(3){--n:2}
.tray-shells .shell:nth-child(4),.tray-dots circle:nth-child(4),.tray-rings circle:nth-child(4){--n:3}
.tray-shells .shell:nth-child(5),.tray-dots circle:nth-child(5),.tray-rings circle:nth-child(5){--n:4}
.tray-shells .shell:nth-child(6),.tray-dots circle:nth-child(6),.tray-rings circle:nth-child(6){--n:5}
.tray-shells .shell:nth-child(7),.tray-dots circle:nth-child(7),.tray-rings circle:nth-child(7){--n:6}
.tray-shells .shell:nth-child(8),.tray-dots circle:nth-child(8),.tray-rings circle:nth-child(8){--n:7}
.tray-shells .shell:nth-child(9),.tray-dots circle:nth-child(9){--n:8}
.tray-shells .shell:nth-child(10),.tray-dots circle:nth-child(10){--n:9}
.tray-shells .shell:nth-child(11),.tray-dots circle:nth-child(11){--n:10}
.tray-shells .shell:nth-child(12),.tray-dots circle:nth-child(12){--n:11}
.tray-shells .shell:nth-child(13),.tray-dots circle:nth-child(13){--n:12}
.tray-shells .shell:nth-child(14),.tray-dots circle:nth-child(14){--n:13}
.tray-shells .shell:nth-child(15),.tray-dots circle:nth-child(15){--n:14}
.tray-shells .shell:nth-child(16),.tray-dots circle:nth-child(16){--n:15}
@media(prefers-reduced-motion:reduce){.tray-loader{transition:none}.tray-loader *{animation:none!important}}
html[data-motion=paused] .tray-loader{transition:none}
html[data-motion=paused] .tray-loader *{animation:none!important}
@media(max-width:760px){.tray-loader{filter:drop-shadow(0 12px 16px #3b150a40)}}
