/* Shared with the existing mouse scene: DOM anchors define its scroll journey. */
.work-header { color: var(--paper); }
.work-brand { background: var(--paper); mask: url('/assets/branding/mirzoev-shehron-stacked.svg') center / contain no-repeat; -webkit-mask: url('/assets/branding/mirzoev-shehron-stacked.svg') center / contain no-repeat; }
.work-brand img { opacity: 0; }
.header-switch { color: var(--ink); }
.header-switch:hover { background: var(--paper); color: var(--ink); }
.work-heading { position: relative; padding: 125px var(--gutter) 0; overflow: clip; }
.journey-eyebrow, .heading-bottom { display: flex; justify-content: space-between; gap: 24px; color: #aeb29e; }
.work-heading h1 { position: relative; margin: 24px 0 20px; font-size: 22.5vw; font-weight: 800; font-stretch: 85%; line-height: .85; letter-spacing: -.07em; white-space: nowrap; }
.title-word { display: inline-block; }
.work-heading h1 .serif { color: var(--lime); letter-spacing: -.06em; }
.title-dot { position: absolute; right: 0; top: 4%; color: var(--lime); font-size: .17em; line-height: 1; }
.heading-bottom { align-items: center; padding-bottom: 20px; border-bottom: 1px solid #f4f4ed24; }
.journey-skip { display: flex; align-items: center; gap: 26px; color: var(--paper); }
.journey-skip span { font-size: 22px; }
.journey-skip:hover { color: var(--lime); }
.work-journey { position: relative; isolation: isolate; }
.device-stage { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: clip; }
.device-frame { position: absolute; width: min(64vw, 1000px); aspect-ratio: 1; left: 24%; top: 260px; transform: translate(-50%, -50%); }
.device-canvas { position: absolute; display: block; inset: 0; width: 100%; height: 100%; opacity: 0; }
.is-rendered .device-canvas { opacity: 1; }
.is-rendered .device-fallback { display: none; }
.journey-anchor { pointer-events: none; position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); }
.journey-anchor--start { top: 42%; left: 23%; width: min(64vw, 1000px); }
.journey-anchor--middle { top: 50%; left: 77%; width: min(43vw, 680px); }
.journey-anchor--end { top: 60%; left: 50%; width: min(34vw, 530px); }
.journey-intro { position: relative; min-height: max(72svh, 600px); padding: 55px var(--gutter) 80px; }
.intro-copy { position: relative; z-index: 3; width: 45%; margin-left: 55%; }
.chapter-label { color: #aeb29e; margin-bottom: 28px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px #d2ff0010; }
.intro-copy h2 { font-size: clamp(36px, 4.8vw, 80px); line-height: .95; letter-spacing: -.045em; font-weight: 780; }
.intro-copy h2 .serif { color: var(--lime); }
.journey-lead { margin-top: 28px; font-size: clamp(17px, 1.55vw, 25px); line-height: 1.45; letter-spacing: -.02em; max-width: 560px; color: #c9cabe; }
.journey-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 24px; margin: 35px 0 22px; border-top: 1px solid #f4f4ed35; }
.journey-facts dt { font-size: 10px; text-transform: uppercase; color: #aeb29e; margin-bottom: 8px; }
.journey-facts dd { margin: 0; font-size: clamp(14px, 1.25vw, 21px); }
.intro-copy .scroll-link { color: #b1b99b; gap: 18px; font-size: 10px; }
.journey-manifesto { position: relative; min-height: 120svh; padding: 14vh var(--gutter); }
.manifesto-inner { position: sticky; top: 16vh; width: 70%; }
.manifesto-type { font-size: clamp(42px, 6.6vw, 112px); line-height: .95; font-weight: 780; letter-spacing: -.05em; }
.manifesto-type span { display: inline-block; }
.manifesto-type .serif { color: var(--lime); }
.journey-chapter { position: relative; display: flex; align-items: center; min-height: 100svh; padding: 100px var(--gutter); }
.chapter-copy { position: relative; z-index: 3; width: 55%; padding-left: 4vw; }
.chapter-copy h2 { font-size: clamp(50px, 6.7vw, 120px); line-height: .9; letter-spacing: -.045em; font-weight: 780; }
.chapter-copy h2 .serif { color: var(--lime); }
.chapter-ordinal { position: absolute; top: 9%; right: 7%; color: transparent; -webkit-text-stroke: 1px #f4f4ed12; font-size: 25vw; font-weight: 800; line-height: 1; letter-spacing: -.08em; pointer-events: none; }
.education-feature { margin-top: 36px; padding: 22px 0; border-block: 1px solid #f4f4ed35; }
.education-mark { display: flex; justify-content: space-between; align-items: center; font-size: clamp(50px, 7vw, 112px); font-weight: 750; letter-spacing: -.065em; line-height: 1; }
.education-mark > span { font-size: .6em; color: var(--lime); }
.education-feature p { font-size: clamp(16px, 1.6vw, 26px); line-height: 1.35; margin: 12px 0 18px; }
.education-feature > .eyebrow { color: #aeb29e; }
.education-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.education-list li { display: flex; flex-direction: column; gap: 9px; }
.education-list span { font-size: 22px; }
.education-list small { max-width: 180px; font-size: 12px; line-height: 1.4; color: #aeb29e; }
.skill-list { margin: 40px 0 0; }
.skill-list > div { position: relative; padding: 22px 0; border-top: 1px solid #f4f4ed35; }
.skill-list dt { display: flex; align-items: center; gap: 22px; font-size: clamp(24px, 3vw, 48px); font-weight: 700; letter-spacing: -.04em; text-transform: uppercase; }
.skill-list dt small { color: var(--lime); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.skill-list dd { padding-left: 36px; margin: 6px 0 0; font-size: clamp(12px, 1.1vw, 17px); line-height: 1.5; color: #b9bcb0; }
.skill-list i { position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--lime); transform-origin: left; }
.chapter-note { margin-top: 24px; font-size: 11px; line-height: 1.5; color: #9ba286; }
.journey-experience { min-height: 130svh; }
.experience-list { list-style: none; margin: 40px 0 0; padding: 0; }
.experience-list li { position: relative; display: grid; grid-template-columns: 30% 1fr; gap: 20px; padding: 30px 25px 30px 0; border-top: 1px solid #f4f4ed30; }
.experience-year { font-size: clamp(24px, 3.8vw, 58px); line-height: 1; letter-spacing: -.06em; color: #8b8f7e; transition: color .35s; }
.experience-year small { display: block; font-size: 11px; letter-spacing: .02em; margin-top: 12px; }
.experience-list h3 { font-size: clamp(22px, 2.3vw, 34px); font-weight: 650; letter-spacing: -.04em; }
.experience-list p { margin-top: 10px; max-width: 310px; font-size: 14px; line-height: 1.45; color: #b9bcb0; }
.career-point { position: absolute; top: 35px; right: 0; width: 8px; height: 8px; border: 1px solid #9ba286; border-radius: 50%; transition: background .35s; }
.experience-list li.is-current .experience-year { color: var(--lime); }
.experience-list li.is-current .career-point { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 5px #d2ff0010; }
.journey-dock { position: relative; min-height: 100svh; text-align: center; padding: 60px var(--gutter) 90px; }
.journey-dock h2 { position: relative; z-index: 3; font-size: clamp(54px, 9vw, 150px); line-height: .9; letter-spacing: -.05em; }
.journey-dock h2 .serif { color: var(--lime); }
.dock-orbit { position: absolute; top: 60%; left: 50%; width: 58vw; height: 25vw; transform: translate(-50%,-50%) rotate(-12deg); border: 1px solid #d2ff0035; border-radius: 50%; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; font-size: 10px; color: #aeb29e; }
.dock-caption { position: absolute; z-index: 3; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dock-caption span:last-child { font-size: 24px; color: var(--lime); }
.journey-nav { position: fixed; bottom: 25px; right: var(--gutter); z-index: 10; display: flex; gap: 16px; padding: 14px 18px; background: #111112e8; border: 1px solid #f4f4ed28; border-radius: 4px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.journey-nav.is-visible { opacity: 1; visibility: visible; }
.journey-nav a { font-size: 10px; color: #8b8f7e; padding: 4px; }
.journey-nav a[aria-current] { color: var(--lime); }
.journey-nav-line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; }
.journey-nav-line i { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.selected-work { position: relative; z-index: 4; background: var(--black); }
.project-visual { border-radius: 4px; }
/* Visible without JavaScript or WebGL. */
.device-fallback { position: absolute; inset: 15%; display: grid; place-items: center; }
.fallback-shell { position: relative; width: 52%; height: 83%; border-radius: 46% 46% 42% 42%; background: #c4ec16; border: 6px solid #292d24; transform: rotate(-25deg); box-shadow: inset 10px 0 18px #f2ff8a, inset -12px 0 20px #64830b, 14px 24px 35px #0005; }
.fallback-shell::before { position: absolute; content: ''; width: 2px; height: 40%; top: 0; left: 50%; background: #22281b; }
.fallback-shell::after { position: absolute; content: ''; inset: 39% 4% auto; height: 2px; background: #22281b; }
.fallback-shell i { position: absolute; top: 13%; left: 44%; width: 13%; height: 17%; border: 2px solid #8a9d51; border-radius: 12px; background: #161a13; }
.fallback-shell b { position: absolute; left: 0; right: 0; bottom: 24%; font-size: 22px; text-align: center; color: #282c20; }
@media (max-width: 1100px) and (min-width: 768px) {
  .chapter-copy { width: 57%; padding-left: 0; }
  .intro-copy { width: 47%; margin-left: 53%; }
  .journey-lead { font-size: 17px; }
  .manifesto-inner { width: 75%; }
}
@media (max-width: 767px) {
  .work-heading { padding-top: 125px; }
  .journey-eyebrow { font-size: 9px; align-items: end; }
  .journey-eyebrow span:last-child { max-width: 140px; text-align: right; }
  .work-heading h1 { font-size: 21vw; margin: 25px 0 20px; }
  .title-dot { display: none; }
  .heading-bottom { font-size: 8px; gap: 10px; }
  .journey-skip { gap: 10px; }
  .device-stage { position: sticky; inset: auto; top: 0; width: 100%; height: 29svh; min-height: 180px; max-height: 260px; background: var(--black); z-index: 5; overflow: hidden; border-bottom: 1px solid #f4f4ed10; }
  .device-frame { top: 50%; left: 50%; width: min(70vw, 35svh); height: auto; }
  .journey-anchor, .journey-nav { display: none; }
  .journey-intro { min-height: 0; padding: 30px var(--gutter) 70px; }
  .intro-copy { width: 100%; margin: 0; }
  .intro-copy h2 { font-size: clamp(35px, 10vw, 68px); }
  .chapter-label { font-size: 10px; margin-bottom: 24px; }
  .journey-lead { font-size: 17px; line-height: 1.5; margin-top: 24px; }
  .journey-facts { gap: 12px; margin-top: 28px; }
  .journey-facts dd { font-size: 14px; }
  .journey-facts dt { font-size: 8px; }
  .journey-manifesto { min-height: 0; padding: 60px var(--gutter); }
  .manifesto-inner { position: static; width: 100%; }
  .manifesto-type { font-size: 10.5vw; line-height: 1.02; }
  .journey-chapter { min-height: 0; padding: 70px var(--gutter); }
  .chapter-copy { width: 100%; padding: 0; }
  .chapter-copy h2 { font-size: clamp(40px, 12vw, 80px); }
  .chapter-ordinal { font-size: 35vw; top: 40px; right: 6%; }
  .education-feature { margin-top: 30px; }
  .education-mark { font-size: 17vw; }
  .education-feature p { font-size: 18px; }
  .education-list { gap: 20px; }
  .skill-list { margin-top: 30px; }
  .skill-list dt { font-size: 30px; }
  .skill-list dd { font-size: 13px; padding-left: 34px; }
  .experience-list li { gap: 16px; }
  .experience-year { font-size: 29px; }
  .experience-list h3 { font-size: 24px; }
  .experience-list p { font-size: 13px; }
  .journey-dock { min-height: 55svh; padding: 70px var(--gutter) 100px; }
  .journey-dock h2 { font-size: 13vw; }
  .dock-orbit { width: 75vw; height: 28vw; top: 63%; }
  .dock-caption { width: 100%; bottom: 32px; font-size: 10px; }
  .selected-work { padding-top: 60px; }
  [data-chapter] { scroll-margin-top: 31svh; }
}
@media (prefers-reduced-motion: reduce) {
  .device-stage { position: relative; height: min(65vw, 560px); min-height: 260px; max-height: none; }
  .device-frame { top: 50%; left: 50%; width: min(70vw, 600px); }
  .journey-intro { min-height: 0; padding-top: 40px; }
  .intro-copy, .chapter-copy { margin: 0 auto; width: min(100%, 760px); padding-left: 0; }
  .journey-chapter { min-height: 0; padding-block: 75px; }
  .journey-manifesto { min-height: 0; padding-block: 75px; }
  .manifesto-inner { position: static; width: min(100%, 900px); margin: auto; }
  .journey-anchor, .dock-orbit, .journey-nav { display: none; }
  .journey-dock { min-height: 0; padding-bottom: 150px; }
  [data-chapter] { scroll-margin-top: 32px; }
}
