@font-face { font-family: Barlow; src: url(../fonts/barlow-condensed-900-latin.2036f7f4aacc.woff2) format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: Barlow; src: url(../fonts/barlow-condensed-700-latin.e3e520cb7468.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Plex; src: url(../fonts/ibm-plex-mono-400-latin.c36f509c0a8f.woff2) format('woff2'); font-weight: 400; font-display: swap; }

:root { color-scheme: dark; --ink: #07111d; --paper: #f4f0e7; --muted: #a5b2bd; --accent: #ffb455; --line: rgba(213,232,243,.18); }
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--paper); font-family: Arial, Helvetica, sans-serif; background: radial-gradient(ellipse at 39% 60%, #1b3447 0%, #0c1b2b 43%, #06101c 80%); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .42; background: linear-gradient(90deg, transparent 49.9%, rgba(171,220,244,.07) 50%, transparent 50.1%), linear-gradient(transparent 49.9%, rgba(171,220,244,.05) 50%, transparent 50.1%); background-size: 96px 96px; mask-image: linear-gradient(to bottom, transparent, black 30%, black 75%, transparent); }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, .card-stage:focus-visible { outline: 2px solid #ffcb81; outline-offset: 5px; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 20; padding: 12px 18px; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 10px; }
.site-shell { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: 82px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4.4vw, 88px); border-bottom: 1px solid var(--line); background: rgba(2,10,18,.38); position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { font: 900 50px/.8 Barlow, Impact, sans-serif; letter-spacing: -.07em; }
.brand-mark span { color: var(--accent); }
.brand-name { font: 700 19px/.9 Barlow, Impact, sans-serif; letter-spacing: .09em; }
.brand-name small { display: block; margin-top: 9px; color: var(--muted); font: 11px/1 Plex, monospace; letter-spacing: .13em; }
.study-tag, .eyebrow, .detail-index, .detail-copy>p:first-child, .interaction-hint, .enter-link { font-family: Plex, monospace; letter-spacing: .12em; }
.study-tag { font-size: 11px; color: var(--muted); }
.study-tag span { padding: 0 8px; color: var(--accent); }

.experience { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(340px, 3fr); width: 100%; max-width: 2100px; margin: 0 auto; position: relative; z-index: 1; }
.selector { min-width: 0; min-height: 0; position: relative; display: flex; flex-direction: column; justify-content: center; isolation: isolate; }
.selector::before { content: ""; position: absolute; inset: 2% 6% 4%; pointer-events: none; background: radial-gradient(ellipse at center, rgba(127,201,238,.15), rgba(127,201,238,0) 58%); }
.card-stage { position: relative; flex: 1; min-height: 410px; cursor: grab; touch-action: pan-y; outline: none; }
.card-stage:active { cursor: grabbing; }
.card-canvas { position: absolute; inset: 0; }
.card-canvas canvas { display: block; width: 100%; height: 100%; }
.orbit-lines { position: absolute; inset: 8% 6% 0; display: grid; place-items: center; pointer-events: none; }
.orbit-lines span { grid-area: 1/1; width: min(64vw, 1050px); height: min(17vw, 255px); border: 1px solid rgba(173,215,235,.14); border-radius: 50%; transform: rotateX(72deg) translateY(130px); box-shadow: 0 0 42px rgba(79,171,220,.1); }
.orbit-lines span:nth-child(2) { width: min(49vw, 760px); height: min(14vw, 190px); border-color: rgba(255,180,85,.17); }
.orbit-lines span:nth-child(3) { width: min(77vw, 1300px); height: min(23vw, 320px); border-color: rgba(173,215,235,.08); }
.interaction-hint { flex: 0 0 auto; text-align: center; font-size: 10px; color: #a9bbc8; margin: 0; padding: 0 16px 24px; }
.interaction-hint span { color: var(--accent); padding: 0 12px; }
.edge-arrow { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 44px; height: 104px; padding: 0; border: 0; border-radius: 0 60px 60px 0; background: rgba(127,200,255,.24); color: #8ed8ff; opacity: .72; font-size: 0; line-height: 0; transform: translateY(-50%); transition: opacity .2s, background-color .2s; }
.edge-arrow-prev { left: 0; }
.edge-arrow-next { right: 0; border-radius: 60px 0 0 60px; }
.edge-arrow svg { display: block; width: 30px; height: 72px; }
.edge-arrow:hover, .edge-arrow:focus-visible { opacity: 1; background: rgba(127,200,255,.4); }

.story-panel { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 5vh, 72px); padding: clamp(42px, 7vh, 98px) clamp(28px, 3.7vw, 72px) clamp(38px, 7vh, 90px); border-left: 1px solid var(--line); background: linear-gradient(110deg, rgba(3,13,24,.70), rgba(7,18,29,.84)); box-shadow: -24px 0 70px rgba(0,0,0,.17); }
.intro { position: relative; z-index: 2; }
.eyebrow { color: var(--accent); font-size: 11px; line-height: 1.5; margin: 0 0 20px; }
.eyebrow span { display: inline-block; color: var(--muted); margin-left: 10px; white-space: nowrap; }
.intro h1 { font: 900 clamp(54px, 5.3vw, 94px)/.79 Barlow, Impact, sans-serif; letter-spacing: -.025em; margin: 0; }
.intro h1 em { color: var(--accent); font-style: normal; }
.intro>p:last-child { color: #c4cdd3; font-size: clamp(14px, 1.1vw, 18px); line-height: 1.5; max-width: 360px; margin: 26px 0 0; }
.detail { display: grid; grid-template-columns: 1fr; align-items: start; gap: 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.detail-index { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.detail-index span:first-child { color: var(--accent); }
.detail-rule { height: 20px; width: 1px; background: var(--line); }
.detail-copy { min-width: 0; }
.detail-copy>p:first-child { font-size: 10px; color: var(--accent); margin: 0 0 10px; }
.detail-copy h2 { font: 900 clamp(30px, 3vw, 54px)/.91 Barlow, Impact, sans-serif; letter-spacing: .01em; margin: 0; }
.detail-copy>p:last-child { max-width: 350px; font-size: 15px; color: #b9c6cf; margin: 14px 0 0; line-height: 1.45; }
.enter-link { display: inline-flex; align-items: center; justify-content: space-between; justify-self: start; gap: 20px; background: var(--accent); border: 1px solid var(--accent); color: #0a1721; text-decoration: none; padding: 13px 15px; margin-top: 10px; min-width: 185px; font-size: 10px; font-weight: bold; transition: background .2s, transform .2s; }
.enter-link:hover { background: #ffd194; transform: translateY(-2px); }
.enter-link span { font-size: 17px; }

.static-cards { display: flex; justify-content: center; align-items: center; gap: 12px; height: 100%; padding: 10px 58px; }
.static-cards[hidden] { display: none; }
.static-cards a { display: flex; flex-direction: column; text-decoration: none; width: 30%; max-width: 230px; border: 1px solid var(--line); background: #132432; padding: 8px; }
.static-cards img { width: 100%; aspect-ratio: 5/7; object-fit: cover; }
.static-cards strong { padding: 8px 0; font: 700 20px Barlow, sans-serif; text-align: center; }

@media (max-width: 1150px) and (min-width: 761px) {
  .experience { grid-template-columns: minmax(0, 65fr) minmax(300px, 35fr); }
  .story-panel { padding: 42px 28px; }
  .intro h1 { font-size: clamp(55px, 6vw, 76px); }
}
@media (max-height: 680px) and (min-width: 761px) {
  .topbar { height: 64px; }
  .story-panel { padding-top: 25px; padding-bottom: 24px; gap: 16px; }
  .intro h1 { font-size: clamp(48px, 4vw, 70px); }
  .intro>p:last-child { margin-top: 14px; }
  .detail { padding-top: 14px; gap: 8px; }
  .detail-copy>p:last-child { margin-top: 8px; }
  .card-stage { min-height: 280px; }
  .interaction-hint { padding-bottom: 12px; }
}
@media (max-width: 760px) {
  .topbar { height: 65px; padding: 0 19px; }
  .brand-mark { font-size: 40px; }
  .brand-name { font-size: 15px; }
  .brand-name small { font-size: 8px; margin-top: 7px; }
  .study-tag { font-size: 9px; max-width: 130px; text-align: right; line-height: 1.5; }
  .experience { display: grid; grid-template-columns: 1fr; grid-template-rows: auto minmax(330px, 1fr) auto; }
  .story-panel { display: contents; }
  .intro { grid-row: 1; text-align: center; padding: 22px 20px 0; }
  .intro h1 { font-size: clamp(48px, 11vw, 70px); }
  .intro>p:last-child { font-size: 14px; margin: 12px auto 0; }
  .eyebrow { margin-bottom: 10px; }
  .selector { grid-row: 2; }
  .card-stage { min-height: 330px; }
  .edge-arrow { width: 40px; height: 72px; }
  .edge-arrow svg { width: 22px; height: 54px; }
  .interaction-hint { padding-bottom: 9px; font-size: 8px; white-space: nowrap; letter-spacing: .02em; }
  .interaction-hint span { padding: 0 4px; }
  .detail { grid-row: 3; grid-template-columns: 40px 1fr; gap: 7px 12px; border-top: 1px solid var(--line); padding: 14px 22px 20px; background: rgba(3,13,24,.65); }
  .detail-index { display: block; font-size: 10px; }
  .detail-index span { display: block; }
  .detail-index .detail-rule { height: 14px; margin: 5px 0; }
  .detail-copy h2 { font-size: 26px; }
  .detail-copy>p:first-child { margin-bottom: 4px; }
  .detail-copy>p:last-child { font-size: 12px; margin-top: 5px; }
  .enter-link { grid-column: 2; margin-top: 0; padding: 9px 12px; font-size: 10px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
