/* Orbital edition. The original template is retained in styles.css. */

/* Hide every scrollbar, including dialog, textarea and widget scroll areas.
   Native wheel, touch, keyboard and programmatic scrolling remain intact. */
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* Perspective entrances must not widen the root scroll area. */
html { overflow-x: clip; }

.v2-flight { isolation: isolate; overflow-x: clip; }
.v2-flight .cosmic-shade {
  background: linear-gradient(90deg, rgba(4,4,10,.62), rgba(4,4,10,.12) 44%, transparent 72%),
    linear-gradient(0deg, rgba(4,4,10,.45), transparent 45%);
}
.v2-flight #webgl-canvas { width: 100%; height: 100%; }
.v2-flight .site-header nav[aria-label="Primary"] { gap: clamp(8px, 1.15vw, 22px); font-size: 12px; }
.v2-flight .site-header nav[aria-label="Primary"] a,
.v2-flight .site-header a[download] { white-space: nowrap; }
.orbital-edition {
  position: absolute; top: 135px; right: 65px;
  color: rgba(232,234,242,.48); font: 10px 'IBM Plex Mono', monospace;
  letter-spacing: .2em;
}
.orbital-edition span { padding-inline: 10px; color: var(--redshift); }
.v2-flight .hero-shell { min-height: 105svh; }
.v2-flight .hero-grid { padding-top: 185px; }
.v2-flight .hero-grid > [data-intro="card"] { max-width: 355px; justify-self: end; }
.v2-flight .hero-grid > [data-intro="card"] .glass-card { background: rgba(5,8,15,.76); }
.v2-flight .hero-name { font-size: clamp(2rem, 6.8vw, 7.1rem); }
.journey-controls {
  position: fixed; bottom: 31px; left: 50%; translate: -50% 0;
  z-index: 61; display: flex; align-items: center; gap: 14px;
  padding: 8px 12px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px; background: rgba(4,4,10,.94);
  font: 9px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .09em;
}
.journey-phase { color: rgba(232,234,242,.48); white-space: nowrap; }
[data-motion-toggle] { display: none; flex-shrink: 0; white-space: nowrap; color: var(--blueshift); min-height: 28px; padding: 0 6px; }
.has-js [data-motion-toggle] { display: block; }
[data-motion-toggle]:hover { color: white; }
[data-motion-toggle]:disabled { color: rgba(232,234,242,.5); cursor: default; }

/* A normal document flow, one screen of breathing room per planet. */
.orbital-skills { padding: 100px max(6vw,24px) 60px; }
.orbit-heading { max-width: 1280px; margin: 0 auto 100px; }
.orbit-heading h2 { font-size: clamp(2rem,4.2vw,4.3rem); line-height: 1.12; margin: 28px 0; letter-spacing: -.045em; }
.orbit-heading > p:last-child { color: rgba(232,234,242,.6); font-size: 16px; line-height: 1.7; }
.orbit-status {
  position: sticky; top: 112px; z-index: 20; margin-left: auto;
  width: fit-content; display: flex; gap: 20px; align-items: center;
  font: 10px 'IBM Plex Mono', monospace; letter-spacing: .1em;
  padding: 13px 17px; color: rgba(232,234,242,.5);
  background: rgba(4,4,10,.88); border: 1px solid rgba(255,255,255,.1); border-radius: 3px;
}
.orbit-status strong { color: var(--ink); font-weight: 500; }
.orbit-status [data-orbit-angle] { color: var(--blueshift); min-width: 34px; }
.orbit-nav {
  position: sticky; top: 165px; z-index: 21; margin: 14px 0 -58px auto;
  width: fit-content; display: flex; gap: 5px;
}
.orbit-nav a { display: grid; place-items: center; width: 34px; height: 38px; border-radius: 50%; font: 10px 'IBM Plex Mono',monospace; color: rgba(232,234,242,.6); background: rgba(4,4,10,.78); transition: color .2s, background-color .2s; }
.orbit-nav a:hover, .orbit-nav a[aria-current="step"] { color: var(--blueshift); background: rgba(79,216,255,.12); }
.skill-orbits { max-width: 1280px; margin-inline: auto; }
.skill-orbit { min-height: 94svh; display: flex; align-items: center; position: relative; perspective: 1300px; scroll-margin-top: 170px; }
.skill-panel {
  position: relative; width: min(440px,43vw); padding: 32px;
  display: flex; flex-direction: column; gap: 17px; border-radius: 16px;
  background: linear-gradient(145deg,rgba(11,17,27,.95),rgba(4,6,14,.85));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 90px -32px #000; transform-origin: 75% 50%;
}
.skill-panel::before { content: ''; position: absolute; left: -1px; top: 32px; height: 58px; width: 2px; background: var(--planet-color); box-shadow: 0 0 16px var(--planet-color); }
.about-kicker { color: var(--planet-color); font: 10px 'IBM Plex Mono', monospace; letter-spacing: .16em; line-height: 1.6; }
.skill-panel h3 { font-family: 'Unbounded',sans-serif; font-size: clamp(1.3rem,2vw,1.9rem); letter-spacing: -.04em; line-height: 1.24; }
.skill-panel > p { color: rgba(232,234,242,.67); line-height: 1.75; font-size: 15px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.about-tags li { font: 10px/1.5 'IBM Plex Mono', monospace; padding: 5px 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 99px; color: rgba(232,234,242,.72); }
.about-sources { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.about-sources a { display: flex; justify-content: space-between; gap: 14px; color: var(--planet-color); font: 11px/1.5 'IBM Plex Mono', monospace; }
.about-sources a:hover { color: #fff; }
.about-sources a span:first-child { min-width: 0; overflow-wrap: anywhere; }
.skill-planet-label { position: absolute; left: 67%; bottom: 25%; display: flex; gap: 12px; align-items: center; color: var(--planet-color); font: 9px/1.8 'IBM Plex Mono',monospace; letter-spacing: .13em; pointer-events: none; text-shadow: 0 2px 12px #000; }
.skill-planet-label b { font-weight: 400; color: rgba(232,234,242,.55); }
.planet-cross { font-size: 26px; font-weight: 400; }
.v2-flight .ticker { background: rgba(4,4,10,.85); padding-block: 25px; }

/* Smaller viewports let the perspective flight read clearly. */
.v2-flight #work { padding-block: 120px 60px; }
.v2-flight #work > .max-w-6xl { max-width: 1220px; }
.v2-flight .work-heading { margin-bottom: 80px; }
.v2-flight #work .flex.flex-col.gap-24 { gap: 0; }
.v2-flight .station { min-height: 85svh; perspective: 1500px; transition: none; }
.v2-flight .holo { width: 88%; justify-self: center; transition: box-shadow .3s; border-color: rgba(160,204,255,.36); box-shadow: 0 30px 80px -30px #000, 0 0 30px -18px var(--blueshift); }
.v2-flight .station:nth-child(even) .holo { border-color: rgba(255,183,139,.36); }
.v2-flight .station-data { background: linear-gradient(140deg,rgba(12,17,27,.9),rgba(5,7,14,.8)); }
.v2-flight .ghost-index { top: 10%; opacity: .45; }
.v2-flight .trajectory { opacity: .45; }
.v2-flight .holo .uplink { opacity: 1; }
.v2-flight #log { background: linear-gradient(180deg,rgba(4,4,10,.4),rgba(4,4,10,.88)); perspective: 1400px; }
.v2-flight .flight-entry { transition: none; }
.v2-flight .experience-role { scroll-margin-top: 180px; }
.v2-flight .flight-entry .flight-node::after { animation: none; }
.v2-flight .contact-section {
  background: linear-gradient(180deg,rgba(4,4,10,.03),rgba(4,4,10,.82) 22%,#04040a 66%);
  border-top: 0; padding-top: 80px;
}
.v2-flight .contact-panel { background: rgba(7,10,17,.97); }
.v2-flight .horizon-ring { opacity: .25; }
.v2-flight .contact-footer { padding-bottom: 90px; }
.v2-flight .experience-dialog { max-height: min(88svh,900px); }

@media (min-width: 1500px) {
  .v2-flight .hero-grid { padding-top: 250px; }
  .orbital-skills { padding-inline: 8vw; }
}
@media (min-width: 768px) and (max-width: 960px) {
  .v2-flight .site-brand > span { display: none; }
}
@media (max-width: 1023px) {
  .v2-flight .hero-grid { padding-top: 120px; }
  .v2-flight .hero-grid > [data-intro="card"] { max-width: 400px; justify-self: start; }
  .orbital-edition { right: 32px; top: 115px; }
  .skill-panel { width: min(440px,53vw); padding: 26px; }
  .skill-planet-label { left: 65%; }
  .v2-flight .holo { width: 94%; }
}
@media (max-width: 767px) {
  .v2-flight .hero-shell { min-height: 100svh; }
  .v2-flight .hero-grid { padding-top: 150px; margin-top: 20px; gap: 28px; }
  .v2-flight .hero-name { font-size: clamp(2rem,9.9vw,4.9rem); }
  .orbital-edition { top: 102px; right: 22px; font-size: 8px; letter-spacing: .13em; }
  .v2-flight .hero-grid > [data-intro="card"] { max-width: none; width: 100%; }
  .journey-controls { bottom: max(17px,env(safe-area-inset-bottom)); padding: 4px 10px; gap: 8px; }
  .journey-phase { font-size: 8px; }
  .orbital-skills { padding: 75px 22px 40px; }
  .orbit-heading { margin-bottom: 60px; }
  .orbit-heading h2 { font-size: clamp(1.65rem,6.3vw,3rem); }
  .orbit-status { top: 81px; font-size: 9px; gap: 12px; padding: 10px 12px; }
  .orbit-nav { top: 126px; margin-bottom: -50px; }
  .orbit-nav a { width: 30px; min-height: 38px; }
  .skill-orbit { min-height: 108svh; align-items: flex-end; padding-block: 230px 80px; scroll-margin-top: 90px; }
  .skill-panel { width: 100%; padding: 23px; gap: 13px; }
  .skill-panel h3 { font-size: 1.5rem; }
  .skill-panel > p { font-size: 14px; }
  .skill-planet-label { top: 145px; right: 10px; left: auto; bottom: auto; font-size: 8px; }
  .v2-flight #work { padding-top: 90px; }
  .v2-flight .station { min-height: 90svh; gap: 22px; padding-block: 65px; align-content: center; }
  .v2-flight .holo { width: 90%; }
  .v2-flight .contact-section { padding-top: 40px; }
}
@media (max-width: 360px) {
  .v2-flight .hero-name { font-size: 2rem; }
  .orbital-skills { padding-inline: 16px; }
  .skill-panel { padding: 19px; }
  .skill-panel h3 { font-size: 1.28rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .v2-flight .hero-grid { padding-top: 110px; }
  .skill-orbit { min-height: auto; padding-block: 55px; }
  .skill-planet-label { display: none; }
  .orbit-status, .orbit-nav { position: static; margin: 14px 0; }
  .v2-flight .station { min-height: auto; padding-block: 60px; }
}
html:not(.has-js) .journey-controls { display: none; }
html:not(.has-js) .skill-orbit { min-height: auto; padding-block: 50px; }
html:not(.has-js) .skill-planet-label { display: none; }
.no-webgl .skill-orbit { min-height: auto; padding-block: 65px; }
.no-webgl .skill-planet-label { display: none; }

/* The pause button also freezes template CSS flourishes. */
html.motion-paused { scroll-behavior: auto; }
.motion-paused .v2-flight *, .motion-paused .v2-flight *::before,
.motion-paused .v2-flight *::after { animation-play-state: paused !important; }
.motion-paused .v2-flight .holo img { transition: none; }
