.home-page main { overflow: clip; }
.home-hero { position: relative; min-height: clamp(760px, 61vw, 1060px); }
.hero-art { position: absolute; z-index: -1; inset: -65px 0 0; transform: translate3d(0, var(--drift, 0px), 0); pointer-events: none; mix-blend-mode: screen; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: contrast(1.15); mask-image: linear-gradient(transparent, #000 12%, #000 72%, transparent); }
.hero-copy { padding-top: clamp(58px, 5vw, 94px); position: relative; }
.hero-copy h1 { max-width: 690px; font-size: clamp(64px, 6.2vw, 112px); font-weight: 500; line-height: .97; letter-spacing: -.065em; }
.hero-copy h1 > span { display: block; margin-top: 14px; color: var(--accent); font-size: .48em; font-weight: 400; line-height: 1.15; letter-spacing: -.055em; white-space: nowrap; }
.hero-description { margin-top: 34px; max-width: 380px; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.6; }
.hero-actions, .next-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 32px; }
.hero-actions .text-link { color: var(--ink); }
.scroll-cue { position: absolute; bottom: 46px; left: var(--gutter); display: flex; gap: 24px; align-items: center; color: var(--secondary); font-size: 11px; z-index: 3; }
.scroll-cue > span:last-child { font-size: 23px; color: var(--accent); }
.island-story { position: relative; margin-top: 80px; }
.island-stage { position: relative; min-height: 860px; height: min(69vw, 1120px); isolation: isolate; mix-blend-mode: screen; }
.island-art { position: absolute; z-index: -1; inset: 0 -2% -60px; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.island-art svg { position: absolute; top: 50%; width: 100%; height: auto; aspect-ratio: 3 / 2; transform: translateY(-50%); filter: contrast(1.14); mask-image: linear-gradient(transparent, #000 13%, #000 69%, transparent), radial-gradient(ellipse 67% 70% at 56% 48%, #000 44%, transparent 91%); mask-composite: intersect; }
.island-layer { opacity: var(--reveal, 1); transform: translateY(calc((1 - var(--reveal, 1)) * 60px)) scale(calc(.96 + var(--reveal, 1) * .04)); transform-origin: 65% 55%; }
.island-narrative { position: absolute; left: var(--gutter); bottom: 80px; width: 34%; max-width: 500px; z-index: 4; }
.story-keyword { color: var(--accent); font: 500 clamp(48px, 5.3vw, 84px)/1.05 var(--sans); letter-spacing: -.065em; }
.island-copy > p:not(.story-keyword) { max-width: 340px; margin-top: 18px; color: var(--ink); font-size: 16px; line-height: 1.6; }
.island-copy .text-link { margin-top: 18px; font-size: 12px; }
.no-script-note { position: absolute; bottom: 25px; color: var(--secondary); max-width: 500px; font-size: 13px; line-height: 1.6; }
.no-script-note a { text-decoration: underline; }
.motion-enabled .island-story { height: 220svh; }
.motion-enabled .island-stage { position: sticky; top: var(--header-height, 80px); height: calc(100svh - var(--header-height, 80px)); min-height: 640px; max-height: 1080px; }
.motion-enabled .island-copy.is-active { animation: story-enter .65s ease both; }
.motion-enabled .island-float { animation: island-drift var(--float-duration, 9s) ease-in-out var(--float-delay, 0s) infinite; transform-origin: 65% 55%; }
.motion-enabled .island-stage:not(.is-in-view) .island-float { animation-play-state: paused; }
.motion-enabled .hero-art img { animation: hero-breathe 14s ease-in-out infinite alternate; transform-origin: 70% 50%; }
@keyframes story-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes island-drift { 0%, 100% { transform: translate(0, -7px) rotate(-.25deg); } 50% { transform: translate(6px, 9px) rotate(.3deg); } }
@keyframes hero-breathe { from { transform: translateY(-4px) scale(1); } to { transform: translateY(7px) scale(1.018); } }
.inference-scene { position: relative; display: grid; grid-template-columns: 65% 35%; margin-top: 48px; padding-bottom: 16px; }
.inference-art { position: relative; grid-area: 1 / 1 / 2 / -1; align-self: start; width: 100%; aspect-ratio: 3 / 2; margin-bottom: -7vw; z-index: -1; transform: translate3d(0, var(--drift, 0px), 0); pointer-events: none; mix-blend-mode: screen; mask-image: linear-gradient(90deg, #000 57%, transparent 68%); }
.inference-art img { display: block; width: 100%; height: auto; filter: contrast(1.15); mask-image: linear-gradient(transparent, #000 8%, #000 70%, transparent), radial-gradient(ellipse 72% 66% at 42% 44%, #000 35%, transparent 91%); mask-composite: intersect; }
.inference-rail { grid-area: 1 / 2; min-width: 0; }
.inference-copy { position: relative; padding-top: clamp(64px, 7vw, 120px); padding-right: var(--gutter); }
.inference-copy h2 { margin-top: 20px; font-weight: 500; font-size: clamp(42px, 4.3vw, 70px); }
.inference-copy h2 em { color: var(--accent); }
.inference-copy > p:not(.section-label) { margin-top: 24px; max-width: 310px; font-size: 16px; line-height: 1.6; }
.inference-copy .text-link { margin-top: 24px; color: var(--accent); border-color: currentColor; }
.inference-trace { position: absolute; top: 0; left: 0; width: 100%; height: auto; pointer-events: none; opacity: .8; overflow: visible; }
.lyre-strings { stroke: #fba7df; stroke-width: 1.5; fill: none; opacity: .5; }
.lyre-strings path { animation: string-shimmer 2.7s ease-in-out infinite alternate; }
.lyre-strings path:nth-child(2) { animation-delay: -.7s; }
.lyre-strings path:nth-child(3) { animation-delay: -1.4s; }
.lyre-strings path:nth-child(4) { animation-delay: -2.1s; }
.answer-stream { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 4 14; animation: stream-flow 3s linear infinite; }
.flow-particles { fill: #ffdbf4; filter: drop-shadow(0 0 5px #f34ea9); }
.gateway-pulse { fill: none; stroke: #f9a7de; stroke-width: 2; animation: gateway-breathe 3s ease-in-out infinite; transform-origin: 850px 355px; }
@keyframes stream-flow { to { stroke-dashoffset: -108; } }
@keyframes string-shimmer { from { opacity: .15; } to { opacity: .9; } }
@keyframes gateway-breathe { 0%,100% { transform: scale(.93); opacity: .1; } 50% { transform: scale(1.06); opacity: .65; } }
.inference-scene:not(.is-in-view) .inference-trace * { animation-play-state: paused; }
.inference-flow { position: sticky; top: calc(var(--header-height, 80px) + 28px); margin: 32px var(--gutter) 24px 0; }
.token-pipeline { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; list-style: none; }
.token-pipeline li { position: relative; padding-left: 26px; font-size: clamp(18px, 2vw, 27px); letter-spacing: -.035em; }
.token-pipeline small { display: block; margin-top: 6px; color: var(--secondary); font-size: 12px; line-height: 1.5; letter-spacing: 0; }
.token-pipeline li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.token-pipeline li:not(:last-child)::after { content: ""; position: absolute; top: calc(.55em + 11px); left: 2px; bottom: -18px; width: 1px; background: linear-gradient(var(--accent), transparent); opacity: .5; }
.motion-enabled .token-pipeline li { opacity: .7; transition: opacity .5s, color .5s; }
.token-pipeline li.is-active { opacity: 1; color: var(--accent); }
.home-next { padding-block: 40px 95px; text-align: center; position: relative; }
.home-next h2 { margin-top: 16px; font-size: clamp(72px, 10vw, 150px); line-height: 1; letter-spacing: -.07em; }
.next-actions { justify-content: center; margin-top: 42px; }
.technical-links { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 60px; color: var(--secondary); font-size: 12px; }
.technical-links a:hover { color: var(--accent); }
.technical-links span { margin-left: 10px; }
.motion-enabled [data-reveal] { opacity: 0; transform: translateY(35px); transition: opacity .9s, transform .9s; }
.motion-enabled [data-reveal].is-revealed { opacity: 1; transform: none; }
.island-story:not(.is-interactive) .island-copy + .island-copy { margin-top: 30px; }
@media (min-width: 1800px) { .hero-art, .island-art, .inference-art { max-width: 2100px; margin-inline: auto; } }
@media (max-width: 1100px) {
  .hero-copy h1 { font-size: 6.8vw; max-width: 570px; }
  .hero-description { max-width: 330px; }
  .hero-actions { gap: 20px; }
  .story-keyword { font-size: 54px; }
  .island-narrative { bottom: 75px; width: 38%; }
  .island-copy > p:not(.story-keyword) { font-size: 14px; max-width: 280px; }
  .inference-copy { padding-right: 28px; }
}
@media (max-width: 900px) {
  .home-hero { min-height: 990px; }
  .hero-copy { padding-top: 45px; }
  .hero-copy h1 { font-size: clamp(62px, 9.4vw, 82px); max-width: 720px; }
  .hero-copy h1 > span { font-size: .48em; }
  .hero-description { margin-top: 25px; font-size: 15px; max-width: 420px; }
  .hero-actions { margin-top: 24px; }
  .hero-art { top: 305px; bottom: 0; left: -20%; right: -3%; }
  .hero-art img { object-fit: cover; object-position: center top; }
  .scroll-cue { bottom: 28px; }
  .island-stage { min-height: 800px; }
  .island-art { top: 0; bottom: 70px; left: -25%; right: -5%; }
  .island-art svg { mask-image: linear-gradient(transparent, #000 13%, #000 69%, transparent), radial-gradient(ellipse 72% 66% at 55% 46%, #000 35%, transparent 92%); mask-composite: intersect; }
  .island-narrative { bottom: 45px; width: calc(100% - var(--gutter) * 2); max-width: 500px; }
  .story-keyword { font-size: 60px; }
  .island-copy > p:not(.story-keyword) { max-width: 370px; margin-top: 12px; font-size: 14px; }
  .island-copy .text-link { margin-top: 12px; font-size: 11px; }
  .motion-enabled .island-stage { min-height: 620px; }
  .inference-scene { row-gap: 24px; margin-top: 48px; }
  .inference-rail { display: contents; }
  .inference-copy { grid-area: 1 / 1 / 2 / -1; margin-left: var(--gutter); width: calc(100% - var(--gutter) * 2); padding: 0; }
  .inference-copy h2 { font-size: clamp(48px, 7.5vw, 64px); margin-top: 18px; }
  .inference-copy > p:not(.section-label) { font-size: 15px; margin-top: 16px; }
  .inference-copy .text-link { margin-top: 14px; }
  .inference-art { grid-area: 2 / 1 / 3 / -1; }
  .inference-flow { grid-area: 2 / 2; align-self: start; }
  .token-pipeline { gap: 24px; }
  .token-pipeline span { font-size: 21px; }
  .home-next { padding-block: 40px 70px; }
}
@media (max-width: 540px) {
  .home-hero { min-height: 830px; }
  .hero-copy { padding-top: 36px; }
  .hero-copy h1 { font-size: clamp(48px, 12.8vw, 68px); }
  .hero-copy h1 > span { font-size: .51em; white-space: normal; }
  .hero-description { margin-top: 28px; font-size: 13px; max-width: 270px; }
  .hero-actions { gap: 20px; margin-top: 25px; }
  .hero-actions .button { min-height: 46px; padding: 12px 17px; font-size: 12px; gap: 18px; }
  .hero-actions .text-link { font-size: 12px; }
  .hero-art { top: 310px; left: -55%; right: -4%; bottom: 0; }
  .scroll-cue { bottom: 30px; font-size: 10px; }
  .island-stage { min-height: 750px; }
  .motion-enabled .island-stage { min-height: 610px; }
  .island-art { top: 0; bottom: 140px; left: -70%; right: -15%; }
  .island-narrative { bottom: 35px; }
  .story-keyword { font-size: 46px; }
  .island-copy > p:not(.story-keyword) { max-width: 300px; font-size: 13px; }
  .inference-scene { grid-template-columns: 60% 40%; padding-bottom: 8px; }
  .inference-copy h2 { font-size: 45px; }
  .inference-art { width: 115%; left: -15%; }
  .token-pipeline { gap: 22px; }
  .token-pipeline span { font-size: 16px; }
  .token-pipeline small { font-size: 10px; max-width: 80px; line-height: 1.6; }
  .home-next { padding-block: 32px 65px; }
  .home-next h2 { font-size: 76px; }
  .next-actions { flex-direction: column; gap: 20px; margin-top: 30px; }
  .technical-links { flex-direction: column; gap: 22px; margin-top: 40px; font-size: 11px; }
}
@media (max-height: 600px) and (min-width: 541px) {
  .motion-enabled .island-stage { min-height: 0; }
  .island-art { inset: 0 -10% 0 20%; }
  .island-narrative { bottom: 24px; width: 38%; }
  .story-keyword { font-size: 40px; }
  .island-copy > p:not(.story-keyword) { font-size: 12px; line-height: 1.45; }
}
@media (prefers-reduced-motion: reduce) {
  .island-layer { opacity: 1 !important; transform: none !important; }
  .hero-art, .inference-art { transform: none; }
  .inference-trace { display: none; }
  .motion-enabled .island-story { height: auto; }
  .motion-enabled .island-stage { position: relative; min-height: 860px; }
  .motion-enabled [data-reveal] { opacity: 1; transform: none; }
  .motion-enabled .token-pipeline li { opacity: 1; }
}
