/* Opening sequence (intro.js). Every stage element shares one grid cell so GSAP owns transforms. */
html.intro-on, html.intro-on body { overflow: hidden }
.vb-intro { position: fixed; inset: 0; z-index: 10000; overflow: hidden; --fg: #F4F1EA; --bg: #0A0F17; color: var(--fg); will-change: transform }
.vb-intro[data-theme="alt"] { --fg: #F4F1EA; --bg: #101824 }
.in-bg { position: absolute; inset: 0; background: var(--bg) }
.in-guides { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none }
.in-guides line { stroke: #8E9AAB; stroke-width: 1; stroke-dasharray: 4 6; opacity: .7 }
.in-dim { position: absolute; transform: translate(-50%, -50%); font: 500 11px var(--mono); letter-spacing: .08em; color: #F5B544; opacity: 0; white-space: nowrap }
.in-dim.d-h { transform: translate(-100%, -50%) }
.in-stage { position: absolute; inset: 0; display: grid; place-items: center }
.in-stage > * { grid-area: 1 / 1 }

/* typing */
.in-type { --trail: 1; position: relative; font: 400 clamp(56px, 9vw, 150px)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; display: flex; align-items: center; transform-origin: 50% 55% }
.in-type.big { font-size: clamp(90px, 15vw, 260px) }
.in-type.trail .in-txt { text-shadow:
  calc(var(--trail) * -.18em) 0 0 color-mix(in srgb, var(--fg) 22%, transparent),
  calc(var(--trail) * -.36em) 0 0 color-mix(in srgb, var(--fg) 12%, transparent),
  calc(var(--trail) * -.54em) 0 0 color-mix(in srgb, var(--fg) 6%, transparent) }
.in-type.above { top: -24vh; font-size: clamp(40px, 6vw, 96px) }
.in-type b { font-weight: 400; font-style: italic; color: #F5B544 }
.in-type .o { display: inline-block; color: #F5B544; font-style: italic }
.in-type .o.fill { color: #05080D; -webkit-text-stroke: .03em #F5B544 }
.in-caret { display: inline-block; width: .055em; height: .82em; margin-left: .06em; background: #F5B544; animation: inBlink .9s steps(1) infinite }
@keyframes inBlink { 50% { opacity: 0 } }
.in-hand { position: relative; left: min(30vw, 400px); top: -4vw; width: clamp(64px, 7vw, 120px); fill: #F5B544 }

/* 3D line-drawn container (no photo here; the photo lives in the hero card) */
.in-sil { position: relative; width: min(34vh, 320px); aspect-ratio: 1; perspective: 1000px; transform-origin: 50% 70% }
.sil-rig { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform }
.cube { --s: min(34vh, 320px); position: absolute; inset: 0; transform-style: preserve-3d }
.cube .f { position: absolute; inset: 0; border: 1.5px solid rgba(244,241,234,.8); background: rgba(16,24,36,.35);
  background-image: linear-gradient(rgba(142,154,171,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(142,154,171,.18) 1px, transparent 1px); background-size: 25% 25% }
.cube .ft { transform: translateZ(calc(var(--s) / 2)); border-color: #20C7B5 }
.cube .bk { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)) }
.cube .lf { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)) }
.cube .rt { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); border-color: #F5B544 }
.cube .tp { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)) }
.cube .bt { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)) }
.cube .core { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; background: #20C7B5; box-shadow: 0 0 18px rgba(32,199,181,.6) }
.sil-rim { position: absolute; inset: -8%; pointer-events: none; opacity: 0; border: 1px solid rgba(32,199,181,.6); transform: translateZ(calc(var(--s) / 2 + 2px)) }
.sil-floor { position: absolute; left: 0; right: 0; bottom: -34%; height: 16%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.8), transparent); filter: blur(8px) }
.in-sil .im { position: absolute; right: 100%; top: 50%; translate: 0 -50%; margin-right: .55em; font: 400 clamp(64px, 9vw, 150px)/1 var(--serif); color: #F4F1EA; letter-spacing: -.02em; white-space: nowrap }

/* eye: dark line-drawn instrument */
.in-eye { width: min(92vw, 1100px); transform-origin: 50% 50% }
.in-eye svg { width: 100%; height: auto; display: block; overflow: visible }
.in-eye .sclera { fill: #101824 }
.in-eye .outline { fill: none; stroke: rgba(244,241,234,.55); stroke-width: 1.4 }
.in-eye .lid { fill: none; stroke: rgba(142,154,171,.25); stroke-width: 1 }
.in-eye .dial line { stroke: rgba(142,154,171,.45); stroke-width: 1 }
.in-eye .dial-lb text { font: 500 11px var(--mono); letter-spacing: .18em; fill: #8E9AAB; text-anchor: middle }
.in-eye .iris { fill: #0B1A20 }
.in-eye .iris-ghost { fill: none; stroke: #20C7B5; stroke-width: 1; opacity: .4 }
.in-eye .fibres line { stroke: #20C7B5; stroke-width: 1; opacity: .22 }
.in-eye .ring { fill: none; stroke: #20C7B5; stroke-width: 1 }
.in-eye .ring.r1 { opacity: .7 } .in-eye .ring.r2 { opacity: .35 } .in-eye .ring.r3 { opacity: .25; stroke-dasharray: 3 5 }
.in-eye .pupil { fill: #05080D; stroke: #F5B544; stroke-width: 1.4 }
.in-eye .glint { fill: #F4F1EA; opacity: .85 }
.in-eye .eye-word { font: 400 96px var(--serif); letter-spacing: -.02em; fill: #F4F1EA; text-anchor: middle; paint-order: stroke; stroke: #0A0F17; stroke-width: 10px; stroke-linejoin: round }
.in-eye .eye-word .ch { font-style: italic; fill: #F5B544 }

/* roles */
.in-roles { display: flex; align-items: baseline; gap: .3em; font: 400 clamp(44px, 7.4vw, 124px)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap }
.in-roles .r-fixed { position: relative }
.in-roles .squig { position: absolute; left: 0; right: 0; bottom: -.18em; width: 100%; height: .16em; overflow: visible }
.in-roles .squig path { fill: none; stroke: #F5B544; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 260 }
.in-roles .r-role { display: inline-flex; align-items: center; gap: .18em; min-width: 6.2em }
.in-roles .r-role b { font-weight: 400; font-style: italic; color: #F5B544; display: inline-block }
.in-roles .r-ico { display: inline-block; width: .5em; height: .5em; color: #20C7B5 }
.in-roles .r-ico svg { width: 100%; height: 100%; fill: currentColor; display: block }

/* name + wordmark */
.in-name { font: 400 clamp(56px, 9vw, 150px)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap }
.in-name b { font-weight: 400; font-style: italic; color: #F5B544 }
.in-logo { font: 500 clamp(20px, 3.2vw, 50px) var(--mono); letter-spacing: .32em; display: flex; gap: .05em; color: #F4F1EA }
.in-logo em { font-style: normal; color: #20C7B5; margin: 0 .3em }

.in-skip { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 36px); z-index: 2; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg); opacity: .6; border: 1px solid currentColor; padding: 9px 12px; border-radius: 2px; cursor: pointer }
.in-skip:hover, .in-skip:focus-visible { opacity: 1 }
.in-skip kbd { font: inherit; opacity: .6; margin-left: 6px }

@media (max-width: 720px) {
  .in-hand { left: 34vw; top: -10vw }
  .in-roles { flex-direction: column; gap: .15em; align-items: center }
  .in-roles .r-role { min-width: 0 }
  .in-logo { letter-spacing: .18em }
}
@media (max-width: 720px) {
  .in-sil { width: 46vw }
  .cube { --s: 46vw }
  .in-sil .im { right: auto; left: 50%; top: -48%; margin: 0; translate: -50% 0; font-size: 56px }
  .in-eye .eye-word { font-size: 84px }
}
