.nav nav a { min-height: 44px; display: inline-flex; align-items: center; }
.hero-under > p { max-width: 39rem; font-size: clamp(.94rem, 1.3vw, 1.13rem); }
.hero-location, .scroll-cue { color: #b5b4c6; }
.hero-baseline a:hover { color: var(--accent); }
.hero { background: radial-gradient(ellipse at 81% 42%, #6b40bb20 0, transparent 55%); }
.hero-orbit { opacity: .28; }
.motion-toggle { position: absolute; z-index: 2; right: 7vw; bottom: 15px; padding: .45rem .7rem; border: 1px solid #555064; border-radius: 1rem; background: #14121a; font-size: .72rem; }
.hero:has(.motion-toggle) .hero-baseline { padding-right: 9rem; }
.motion-paused .hero-orbit svg, .motion-paused .orbital-point { animation-play-state: paused; }

.field-band { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.field-band a { font-size: clamp(.83rem, 1.6vw, 1.1rem); padding: 1rem 1.2rem; text-align: center; transition: background .22s; }
.field-band a + a { border-inline-start: 1px solid var(--line); }
.field-band a:hover { background: #1c172a; }
.field-band span { color: var(--accent); padding-left: .35rem; }

.project-jump { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #3c354d; border-radius: .7rem; overflow: clip; background: #14111b; }
.project-jump a { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: .15rem .7rem; min-height: 5.8rem; padding: .9rem 1rem; }
.project-jump a:nth-child(n+5) { border-top: 1px solid #3c354d; }
.project-jump a:nth-child(4n+1) { border-inline-start: 0; }
.project-jump a span { margin: 0; color: #b6a9d1; font-size: .69rem; }
.project-jump a strong { font-size: clamp(.9rem, 1.4vw, 1.15rem); }
.project-jump a small { grid-row: 2; grid-column: 2 / 4; font-size: .74rem; color: #bbb4c9; }
.project-jump a b { grid-column: 3; grid-row: 1; color: #b8a9dd; }
.project-jump a:focus-visible { outline-offset: -4px; }
.intro-row > p { max-width: 29rem; font-size: .9rem; }
.project-story .project-number > span { font-size: .67rem; }
.project-story .project-status { font-size: .68rem; letter-spacing: .07em; }
.project-story .project-description { font-size: .95rem; }
.project-story .skills-in-action p { color: #d0c8dd; font-size: .88rem; line-height: 1.65; }
.project-story .skills-in-action h3 { color: #c1b6d9; font-size: .65rem; }
.skill-chips span { font-size: .68rem; }
.case-button { min-height: 44px; font-size: .88rem; }
.new-scene { align-items: start; }
.new-scene .project-story { position: static; }
.new-scene .project-number { margin-bottom: 1.2rem; }
.compact-scene .project-description { max-width: 42rem; }
.compact-scene { grid-template-columns: 1fr; }
.compact-scene .project-story { display: block; }
.project-window { background: #13111a; }
.project-window[data-accent="mint"] { --panel-accent: #a8dbcc; }
.project-window[data-accent="lilac"] { --panel-accent: #c5aff0; }
.project-window .window-bar { font-size: .67rem; }
.capture { margin: 0; min-width: 0; padding: clamp(.8rem, 3vw, 2.4rem); text-align: center; background: radial-gradient(ellipse at 50% 13%, #725aa331, transparent 75%); }
.capture img { display: block; margin: auto; max-width: 100%; width: auto; height: auto; max-height: 32rem; border: 1px solid #746687; border-radius: .7rem; }
.capture figcaption { margin-top: .85rem; font-size: .76rem; color: #c6bad7; }
.step-demo, .academic-record { padding: clamp(1rem, 3vw, 2rem); }
.step-demo .demo-kicker { color: var(--panel-accent); font-size: .71rem; letter-spacing: .1em; text-transform: uppercase; }
.step-select { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.step-select button { min-height: 44px; border: 1px solid #554967; background: #20182a; color: #e9e0f2; border-radius: .4rem; padding: .4rem .8rem; font-size: .81rem; transition: background .2s, color .2s; }
.step-select button[aria-pressed="true"] { color: #171221; background: var(--panel-accent, #c5aff0); border-color: transparent; }
.step-panel { min-height: 6rem; background: #21182d; border-left: 2px solid var(--panel-accent); padding: 1rem 1.2rem; }
.step-panel + .step-panel { margin-top: .5rem; }
.step-panel h3, .record-panel h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.step-panel p { margin: 0; font-size: .93rem; }
.step-panel, .record-panel { animation: panel-enter .4s var(--ease) both; }
@keyframes panel-enter { from { opacity: .3; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.academic { padding-block: clamp(3.6rem, 9vw, 8rem); border-bottom: 1px solid var(--line); }
.academic .intro-row { margin-bottom: clamp(2rem, 5vw, 4rem); }
.academic-layout { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(1.4rem, 5vw, 4rem); align-items: start; }
.academic-timeline { padding-left: 1.45rem; position: relative; }
.academic-timeline::before { content: ''; position: absolute; left: .23rem; top: .55rem; bottom: 0; width: 1px; background: linear-gradient(var(--accent), #534573 55%, transparent); transform-origin: top; }
.motion-ready .academic-timeline::before { transform: scaleY(0); }
.motion-ready .academic-timeline.visible::before { transform: scaleY(1); transition: transform 1.1s var(--ease); }
.timeline-stop { position: relative; margin-bottom: 1.55rem; }
.timeline-stop::before { content: ''; position: absolute; width: .48rem; height: .48rem; top: .36rem; left: -1.45rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 13px #a98cfe9c; }
.academic-timeline h3 { font-size: clamp(1.08rem, 2vw, 1.35rem); margin: .22rem 0; }
.academic-timeline p { margin-bottom: 0; }
.academic-timeline .timeline-term, .academic-award > p:first-child { color: #cbb9ec; font-size: .77rem; }
.academic-award { background: linear-gradient(125deg, #241b32, #16121c); border: 1px solid #584568; border-radius: .55rem; padding: .95rem 1rem; }
.academic-record { min-width: 0; min-height: 23rem; background: #15111c; border: 1px solid #423650; border-radius: .7rem; }
.marks { margin: .85rem 0 0; padding: 0; list-style: none; }
.marks li + li { margin-top: .92rem; }
.marks li div { display: flex; gap: .7rem; justify-content: space-between; font-size: .83rem; }
.marks strong { color: #e2cef9; font-variant-numeric: tabular-nums; }
.marks li > span { display: block; height: 5px; border-radius: 1rem; margin-top: .36rem; background: #352943; }
.marks li > span::after { content: ''; display: block; width: var(--grade); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #956ad3, #d6bcff); transform-origin: left; }
.motion-ready .academic-record.visible .marks li > span::after { animation: grow-mark .9s var(--ease) both; }
@keyframes grow-mark { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.record-note { color: #bfb1cd; font-size: .76rem; margin: 1.05rem 0 0; }
.record-list { margin: 0; display: grid; gap: .75rem; }
.record-list dt { color: #dbc7f1; }
.record-list dd { margin: .13rem 0 0; color: #c6bdcf; font-size: .86rem; }
.contact-bottom .contact-button { overflow-wrap: anywhere; }

.product-tour { --panel-accent: #cab8f4; --tour-bg: #27193e; border: 1px solid color-mix(in srgb, var(--panel-accent) 32%, #201b28); border-radius: .85rem; background: #14121a; box-shadow: 0 20px 46px #0005; overflow: hidden; }
.product-tour[data-tone="rose"] { --panel-accent: #ecc4dc; --tour-bg: #382235; }
.product-tour[data-tone="mint"] { --panel-accent: #a7e4ce; --tour-bg: #142f29; }
.product-tour[data-tone="amber"] { --panel-accent: #f2d1a0; --tour-bg: #302619; }
.product-tour[data-tone="sage"] { --panel-accent: #d1e0b2; --tour-bg: #243126; }
.tour-header { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem clamp(.8rem, 2.6vw, 1.4rem); border-bottom: 1px solid #ffffff18; background: color-mix(in srgb, var(--tour-bg) 60%, #130f17); }
.tour-header span:first-child { color: var(--panel-accent); font-weight: 650; font-size: .93rem; }
.tour-header span:last-child { color: #d1c9da; font-size: .71rem; }
.tour-body { padding: clamp(.8rem, 3vw, 1.6rem); }
.tour-body h3 { font-size: clamp(1.14rem, 2.4vw, 1.65rem); margin: 0 0 .7rem; line-height: 1.25; }
.tour-controls { margin-bottom: .9rem; }
.tour-figure { margin: 0; animation: panel-enter .45s var(--ease) both; }
.tour-stage { display: grid; place-items: center; min-height: clamp(5rem, 18vw, 12rem); padding: clamp(.45rem, 1.7vw, 1.25rem); border: 1px solid #ffffff18; border-radius: .65rem; background: radial-gradient(ellipse at 50% 5%, var(--tour-bg), #0d0c12 80%); }
.tour-stage img { display: block; max-width: 100%; width: auto; height: auto; max-height: 31rem; object-fit: contain; border-radius: .42rem; box-shadow: 0 9px 30px #0007; }
.tour-stage.phone-stage { padding-block: clamp(.75rem, 2vw, 1.5rem); }
.tour-stage.phone-stage img { max-height: 29rem; border: 1px solid #ffffff38; border-radius: 1rem; }
.tour-figure figcaption { display: flex; gap: .9rem; justify-content: space-between; align-items: center; margin-top: .62rem; }
.tour-figure figcaption p { font-size: .82rem; color: #cbc2d5; margin: 0; }
.tour-enlarge, .tour-dialog button { min-height: 44px; border: 0; background: transparent; color: var(--panel-accent, #dfcfff); padding: .3rem .2rem; font-size: .8rem; white-space: nowrap; }
.tour-enlarge:hover, .tour-dialog button:hover { text-decoration: underline; }
.sample-fold { margin-top: 1.1rem; border-top: 1px solid #4f435c; }
.sample-fold > summary { min-height: 44px; padding: .65rem 0; color: #d5c4ed; cursor: pointer; }
.tour-dialog { width: min(94vw, 1000px); max-height: 92vh; padding: 1rem; border-radius: .8rem; background: #14121a; color: #f7f1ff; border: 1px solid #66537a; }
.tour-dialog::backdrop { background: #09070be8; }
.tour-dialog-top { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .35rem; }
.tour-dialog-top h2 { margin: 0; font-size: 1rem; }
.tour-dialog img { display: block; margin: auto; max-width: 100%; max-height: 78vh; object-fit: contain; }

@media (max-width: 520px) {
  .tour-figure figcaption { align-items: flex-start; gap: .4rem; }
  .tour-enlarge { padding-inline: .25rem; }
  .tour-stage.phone-stage img { max-height: 24rem; }
}

@media (max-width: 800px) {
  .project-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-jump a:nth-child(n+3) { border-top: 1px solid #3c354d; }
  .project-jump a:nth-child(odd) { border-inline-start: 0; }
  .academic-layout { grid-template-columns: 1fr; }
  .new-scene .project-story .skills-in-action { grid-row: 5; grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .nav { padding: .55rem .8rem; gap: .35rem; }
  .nav nav { display: flex; gap: .55rem; }
  .nav nav > a:nth-child(2), .nav nav > a:nth-child(3) { display: inline-flex; }
  .nav nav a { font-size: .74rem; }
  .nav-contact { padding: .35rem .45rem; }
  .nav-contact span { display: none; }
  .hero-under { gap: .55rem; }
  .hero-under > p { line-height: 1.6; }
  .hero-kicker { font-size: .62rem; }
  .hero-baseline { font-size: .65rem; }
  .motion-toggle { right: 22px; bottom: 10px; }
  .hero:has(.motion-toggle) .hero-baseline { padding-right: 4.8rem; }
  .field-band a { padding: .65rem .3rem; font-size: .73rem; }
  .field-band span { display: none; }
  .project-jump a { padding: .6rem; min-height: 4.75rem; gap: .05rem .36rem; }
  .project-jump a small { font-size: .69rem; }
  .project-jump a strong { font-size: .83rem; }
  .project-story h2 { font-size: clamp(2rem, 10vw, 2.55rem); }
  .currency-switch button { min-width: 38px; min-height: 35px; }
  .academic-record { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .academic-timeline::before { transform: none; }
}
