@font-face {
  font-family: "Readex Pro";
  src: url("../fonts/ReadexPro-Variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --space: #04060d;
  --star: #f5f2ed;
  --accent: #c26148;
  --accent-light: #e08663;
  --muted: #a8adba;
  --panel: rgba(10, 14, 24, 0.76);
  --line: rgba(255, 255, 255, 0.09);
  --hud-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--space);
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(55, 116, 119, 0.1), transparent 30rem),
    radial-gradient(circle at 14% 42%, rgba(95, 56, 111, 0.12), transparent 34rem),
    var(--space);
  color: var(--star);
  font-family: "Readex Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 320;
  line-height: 1.65;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

body.loading {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  z-index: 1000;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: var(--space);
  opacity: 1;
  inset: 0;
  transition: opacity 600ms ease;
}

.site-loader-poster {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}

.site-loader-poster {
  background: center / cover no-repeat url("../img/loading-bg.jpg");
}

.site-loader-shade {
  position: absolute;
  background:
    radial-gradient(circle at center, rgba(4, 6, 13, 0.24), rgba(4, 6, 13, 0.77) 86%),
    rgba(4, 6, 13, 0.55);
  inset: 0;
}

.site-loader-center {
  position: relative;
  display: grid;
  width: min(76vw, 300px);
  justify-items: center;
  transform: scale(1);
  transition: opacity 600ms ease, transform 600ms ease;
}

.site-loader-kicker {
  margin: 0 0 22px;
  color: var(--star);
  font-size: 0.72rem;
  font-weight: 590;
  letter-spacing: 0.26em;
}

.site-loader-track {
  width: min(64vw, 240px);
  height: 2px;
  overflow: hidden;
  background: rgba(245, 242, 237, 0.13);
}

.site-loader-progress {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  box-shadow: 0 0 13px rgba(224, 134, 99, 0.75);
  transform: scaleX(0.025);
  transform-origin: left center;
}

.site-loader-status {
  min-height: 1.5em;
  margin: 15px 0 0;
  color: rgba(245, 242, 237, 0.62);
  font-size: 0.72rem;
  font-weight: 340;
  letter-spacing: 0.035em;
  opacity: 1;
  text-align: center;
  transition: opacity 170ms ease, transform 170ms ease;
}

.site-loader-status.is-changing {
  opacity: 0;
  transform: translateY(3px);
}

.site-loader.is-exiting {
  opacity: 0;
  pointer-events: none;
}

.site-loader.is-exiting .site-loader-center {
  opacity: 0;
  transform: scale(0.975);
}

.fallback-media {
  position: fixed;
  z-index: 0;
  overflow: hidden;
  background: center / cover no-repeat url("../img/loading-bg.jpg");
  inset: 0;
  pointer-events: none;
}

.fallback-media::after {
  position: absolute;
  background:
    radial-gradient(circle at center, rgba(4, 6, 13, 0.58), rgba(4, 6, 13, 0.94) 88%),
    rgba(4, 6, 13, 0.7);
  content: "";
  inset: 0;
}

.js .fallback-media {
  display: none;
}

a {
  color: inherit;
  text-decoration-color: rgba(224, 134, 99, 0.62);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  color: #fff;
  text-decoration-color: var(--accent-light);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}

#space-canvas {
  display: none;
}

.top-hud {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--hud-height);
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 6, 13, 0.82);
}

.wordmark {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--star);
  font-size: 0.76rem;
  font-weight: 590;
  letter-spacing: 0.22em;
  line-height: 1;
  text-decoration: none;
}

.wordmark-mark {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(224, 134, 99, 0.68);
  border-radius: 50%;
}

.wordmark-mark::after {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
  content: "";
  inset: 3px;
}

.hud-actions {
  position: relative;
  display: flex;
  gap: 10px;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(14, 18, 29, 0.56);
  color: rgba(245, 242, 237, 0.72);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-button:hover {
  border-color: rgba(224, 134, 99, 0.46);
  background: rgba(194, 97, 72, 0.11);
  color: var(--star);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  overflow: visible;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.audio-toggle svg {
  fill: none;
}

.hud-mail-link svg {
  fill: none;
}

.audio-toggle .speaker-on {
  display: none;
}

.audio-toggle[aria-pressed="true"] .speaker-on {
  display: block;
}

.audio-toggle[aria-pressed="true"] .speaker-off {
  display: none;
}

.audio-toggle.needs-gesture {
  animation: gesture-pulse 3.2s ease-in-out infinite;
}

.audio-gesture-label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  width: max-content;
  padding: 5px 8px;
  border: 1px solid rgba(224, 134, 99, 0.18);
  border-radius: 2px 8px 2px 2px;
  background: rgba(7, 10, 18, 0.76);
  color: rgba(245, 242, 237, 0.58);
  font-size: 0.58rem;
  font-weight: 470;
  letter-spacing: 0.11em;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(5px, -50%);
  transition: opacity 300ms ease, transform 300ms ease;
  white-space: nowrap;
}

.audio-toggle.needs-gesture + .audio-gesture-label {
  opacity: 1;
  transform: translate(0, -50%);
}

@keyframes gesture-pulse {
  0%,
  100% {
    border-color: var(--line);
    box-shadow: none;
  }
  42% {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 5px rgba(194, 97, 72, 0.055), 0 0 18px rgba(194, 97, 72, 0.2);
    color: var(--accent-light);
  }
}

main {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}

.station {
  padding: clamp(60px, 10vw, 132px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.station-card {
  position: relative;
  width: min(100%, 680px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 3px 26px 3px 3px;
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(115%);
}

.station-label {
  margin: 0 0 20px;
  color: var(--accent-light);
  font-size: 0.68rem;
  font-weight: 560;
  letter-spacing: 0.19em;
  line-height: 1.4;
}

h1,
h2 {
  max-width: 16ch;
  margin: 0;
  color: #fffdfa;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  font-weight: 250;
  letter-spacing: -0.046em;
  line-height: 0.98;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.8rem);
}

.station-role {
  margin: 18px 0 22px;
  color: #d4d2cf;
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  font-weight: 390;
  line-height: 1.4;
}

.station-card > p:not(.station-label, .station-role) {
  max-width: 61ch;
  margin: 0;
  color: #b9bdc6;
  font-size: clamp(0.94rem, 1.2vw, 1.02rem);
}

.station-card > p:not(.station-label, .station-role) + p:not(.station-label, .station-role) {
  margin-top: 0.86em;
}

.education-line {
  margin-top: 18px !important;
  color: #ded7d0 !important;
  font-size: 0.78rem !important;
  font-weight: 470;
  letter-spacing: 0.035em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(245, 242, 237, 0.72);
  font-size: 0.72rem;
  font-weight: 410;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.project-showcase {
  margin-top: 20px;
}

.project-showcase .project-caption {
  margin: 0 0 11px;
  font-size: 0.7rem;
}

.screenshot-strip {
  display: flex;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding: 1px 1px 8px;
  scrollbar-color: rgba(224, 134, 99, 0.4) transparent;
}

.screenshot-strip img {
  flex: 0 0 auto;
  width: auto;
  max-width: min(44%, 210px);
  height: auto;
  max-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: zoom-in;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.employer-emblem {
  position: absolute;
  top: clamp(26px, 4vw, 48px);
  right: clamp(26px, 4vw, 48px);
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 130px;
  opacity: 0.85;
}

.employer-emblem img {
  display: block;
  width: auto;
  max-width: 82px;
  max-height: 22px;
  object-fit: contain;
}

.employer-emblem-runtastic img:first-child {
  filter: grayscale(1) invert(1) brightness(1.35);
}

.employer-emblem-runtastic img:last-child {
  height: 18px;
  filter: invert(1);
}

.employer-emblem-raiffeisen {
  width: 24px;
  color: #e8dc4a;
}

.employer-emblem-raiffeisen svg {
  display: block;
  width: 24px;
  height: 22px;
  fill: currentColor;
}

.milestone-card {
  border-color: rgba(224, 134, 99, 0.2);
  background:
    linear-gradient(135deg, rgba(194, 97, 72, 0.09), transparent 44%),
    var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28), 0 0 46px rgba(194, 97, 72, 0.04);
}

.milestone-emblem {
  width: 24px;
  max-width: none;
  opacity: 0.94;
}

.milestone-emblem svg {
  display: block;
  width: 22px;
  height: 20px;
  overflow: visible;
  transform-origin: 50% 55%;
  animation: milestone-heartbeat 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(224, 134, 99, 0.25));
}

.milestone-card > .station-label {
  color: #ef9c7c;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  color: #e8b19d;
  font-size: 0.86rem;
  font-weight: 470;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.intro-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.station-copy {
  min-width: 0;
}

.station-copy p {
  overflow-wrap: anywhere;
}

.portrait-wrap {
  position: relative;
  width: 138px;
  min-width: 138px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  padding: 5px;
  border: 1px solid rgba(224, 134, 99, 0.74);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(194, 97, 72, 0.06), 0 0 46px rgba(194, 97, 72, 0.16);
}

.portrait-wrap::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 12px var(--accent-light);
  content: "";
  right: 6px;
  top: 19px;
}

.portrait-wrap img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 26%;
  filter: saturate(0.78) contrast(1.04);
}

.js .portrait-wrap img[data-lightbox] {
  cursor: zoom-in;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-link {
  display: inline-flex;
  min-width: 128px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 2px 13px 2px 2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 520;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button-link:hover {
  transform: translateY(-2px);
  background: #d06b50;
}

.button-link-secondary {
  background: rgba(194, 97, 72, 0.06);
  color: #f1c1af;
}

footer {
  max-width: 68ch;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #7f8491;
  font-size: 0.68rem;
  line-height: 1.55;
}

.flight-path {
  position: relative;
  z-index: 30;
  padding: 26px 20px 42px;
}

.flight-path ol {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flight-path a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
}

.flight-path a span {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(245, 242, 237, 0.42);
  border-radius: 50%;
  transition: width 260ms ease, height 260ms ease, border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.flight-path a:hover span,
.flight-path a[aria-current="step"] span {
  width: 9px;
  height: 9px;
  border-color: var(--accent-light);
  background: var(--accent-light);
  box-shadow: 0 0 14px rgba(224, 134, 99, 0.78);
}

.scroll-spacer,
.scroll-hint {
  display: none;
}

.noscript-note,
.webgl-note {
  width: min(100% - 40px, 680px);
  margin: 28px auto;
  padding: 15px 18px;
  border: 1px solid rgba(224, 134, 99, 0.3);
  background: rgba(194, 97, 72, 0.08);
  color: #d1b8ae;
  font-size: 0.82rem;
}

.js {
  background: var(--space);
}

.js #space-canvas {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.js .top-hud {
  position: fixed;
  inset: 0 0 auto;
  border-bottom-color: transparent;
  background: linear-gradient(to bottom, rgba(4, 6, 13, 0.74), transparent);
}

.js main {
  position: fixed;
  z-index: 10;
  inset: var(--hud-height) 0 76px;
  width: 100%;
  margin: 0;
  pointer-events: none;
}

.js .station {
  position: absolute;
  display: flex;
  align-items: center;
  padding: 0 clamp(28px, 6vw, 92px);
  border: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  inset: 0;
  transform: translate3d(0, 30px, 0);
  will-change: opacity, transform;
}

.js .station[data-side="right"] {
  justify-content: flex-end;
}

.js .station[data-side="left"] {
  justify-content: flex-start;
}

.js .station.is-visible {
  visibility: visible;
}

.js .station.is-current {
  pointer-events: auto;
}

.js .station-card {
  --card-padding: clamp(30px, 3vw, 40px);
  width: min(49vw, 700px);
  max-height: calc(100dvh - var(--hud-height) - 76px);
  padding: var(--card-padding);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  scrollbar-width: thin;
}

.js .station-card::-webkit-scrollbar {
  width: 5px;
}

.js .station-card::-webkit-scrollbar-track {
  background: transparent;
}

.js .station-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.card-scroll-fade {
  display: none;
}

.mobile-reader-affordance,
.mobile-reader-overlay {
  display: none;
}

.modal-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(9, 12, 20, 0.78);
  color: var(--star);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.modal-close:hover {
  border-color: rgba(224, 134, 99, 0.62);
  background: rgba(194, 97, 72, 0.14);
  transform: rotate(4deg);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.screenshot-lightbox {
  position: fixed;
  z-index: 1200;
  display: grid;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  place-items: center;
  background: rgba(4, 6, 13, 0.92);
  opacity: 0;
  visibility: hidden;
  inset: 0;
  transition: opacity 220ms ease, visibility 220ms step-end;
}

.screenshot-lightbox[hidden] {
  display: none;
}

.screenshot-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
}

.lightbox-figure {
  display: grid;
  max-width: 92vw;
  max-height: 92vh;
  margin: 0;
  gap: 12px;
  justify-items: center;
}

.lightbox-image {
  display: block;
  max-width: 92vw;
  max-height: 84vh;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: zoom-out;
  object-fit: contain;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
}

.lightbox-caption {
  max-width: min(84vw, 620px);
  color: rgba(245, 242, 237, 0.66);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-align: center;
}

.modal-page-lock {
  overflow: hidden !important;
}

.js .intro-card {
  width: min(54vw, 720px);
  padding: clamp(30px, 3vw, 40px);
}

.js .scroll-spacer {
  display: block;
  height: 1350vh;
  pointer-events: none;
}

.js .flight-path {
  position: fixed;
  z-index: 30;
  right: 50%;
  bottom: 20px;
  padding: 0;
  transform: translateX(50%);
}

.js .flight-path ol {
  position: relative;
  gap: clamp(5px, 0.8vw, 11px);
  align-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.56);
  backdrop-filter: blur(10px);
}

.js .flight-path ol::before {
  position: absolute;
  z-index: -1;
  height: 1px;
  background: rgba(245, 242, 237, 0.1);
  content: "";
  left: 20px;
  right: 20px;
  top: 50%;
}

.js .scroll-hint {
  position: fixed;
  z-index: 30;
  right: clamp(22px, 4vw, 62px);
  bottom: 29px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  color: rgba(245, 242, 237, 0.5);
  font-size: 0.63rem;
  font-weight: 470;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 500ms ease, transform 500ms ease;
}

.js .scroll-hint-line {
  width: 30px;
  height: 1px;
  overflow: hidden;
  background: rgba(245, 242, 237, 0.18);
}

.js .scroll-hint-line::after {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent-light);
  content: "";
  animation: hint-travel 2.4s ease-in-out infinite;
}

.js .scroll-hint.is-hidden {
  opacity: 0;
  transform: translateY(6px);
}

.flight-mode-toggle {
  position: fixed;
  z-index: 40;
  right: clamp(22px, 4vw, 62px);
  bottom: 24px;
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid rgba(224, 134, 99, 0.68);
  border-radius: 2px 13px 2px 2px;
  background: rgba(8, 11, 20, 0.72);
  color: #e8b19d;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 520;
  letter-spacing: 0.08em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.flight-mode-toggle:hover {
  color: #fff;
  background: rgba(194, 97, 72, 0.15);
  box-shadow: 0 0 24px rgba(194, 97, 72, 0.12);
  transform: translateY(-2px);
}

.has-flight-control .scroll-hint {
  bottom: 82px;
}

.flight-mode {
  overflow: hidden;
}

.flight-mode-root {
  overflow: hidden;
}

.flight-mode #space-canvas {
  cursor: grab;
}

.flight-mode #space-canvas.is-dragging {
  cursor: grabbing;
}

.flight-mode .scroll-hint {
  display: none;
}

.flight-tracker {
  position: fixed;
  z-index: 40;
  top: 88px;
  left: clamp(22px, 4vw, 62px);
  display: none;
  margin: 0;
  padding: 9px 13px;
  border-left: 1px solid rgba(224, 134, 99, 0.55);
  background: linear-gradient(90deg, rgba(8, 11, 20, 0.74), transparent);
  color: rgba(245, 242, 237, 0.66);
  font-size: 0.65rem;
  font-weight: 470;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flight-tracker.is-visible {
  display: block;
}

.flight-tracker.mission-complete {
  color: #f1b39c;
  animation: mission-pulse 2.2s ease-in-out infinite;
}

@keyframes mission-pulse {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(224, 134, 99, 0);
  }
  50% {
    text-shadow: 0 0 16px rgba(224, 134, 99, 0.7);
  }
}

@keyframes milestone-heartbeat {
  0%,
  82%,
  100% {
    transform: scale(1);
  }
  88% {
    transform: scale(1.08);
  }
  93% {
    transform: scale(1.025);
  }
}

.dock-chip {
  position: fixed;
  z-index: 45;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(224, 134, 99, 0.65);
  border-radius: 2px 12px 2px 2px;
  background: rgba(8, 11, 20, 0.84);
  color: #f2c0ad;
  font: inherit;
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 18px)) scale(0.97);
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.dock-chip.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, calc(-100% - 18px)) scale(1);
}

.dock-chip:hover {
  background: rgba(194, 97, 72, 0.22);
}

.flight-boundary-hint {
  position: fixed;
  z-index: 45;
  top: 96px;
  right: 50%;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid rgba(224, 134, 99, 0.28);
  background: rgba(8, 11, 20, 0.82);
  color: #d6a08c;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, -8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.flight-boundary-hint.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

.flight-continue {
  margin-top: 24px;
  cursor: pointer;
  font-family: inherit;
}

.flight-docked .flight-panel .station-card {
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.48), 0 0 42px rgba(194, 97, 72, 0.06);
}

@keyframes hint-travel {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(350%);
  }
}

@media (min-width: 769px) {
  .card-scroll-fade {
    position: sticky;
    z-index: 6;
    bottom: 0;
    display: block;
    width: calc(100% + var(--card-padding) * 2);
    height: 48px;
    margin: -48px calc(var(--card-padding) * -1) 0;
    background: linear-gradient(
      to bottom,
      rgba(10, 14, 24, 0),
      rgba(10, 14, 24, 0.92) 72%,
      rgba(10, 14, 24, 0.98)
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .station-card.has-scroll-overflow:not(.is-scroll-end) .card-scroll-fade {
    opacity: 1;
  }

  .station-card.is-scroll-end .card-scroll-fade {
    opacity: 0;
    transition: none;
  }
}

@media (max-width: 900px) {
  .flight-mode-toggle,
  .flight-tracker,
  .dock-chip,
  .flight-boundary-hint {
    display: none !important;
  }

  .js .station-card {
    width: min(54vw, 590px);
  }

  .js .intro-card {
    grid-template-columns: 108px minmax(0, 1fr);
    width: min(62vw, 640px);
  }

  .portrait-wrap {
    width: 108px;
    min-width: 108px;
  }

  .js .scroll-hint {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --hud-height: 66px;
  }

  .top-hud {
    min-height: var(--hud-height);
    padding: 13px 16px;
  }

  .wordmark {
    font-size: 0.68rem;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  main {
    width: min(100% - 28px, 680px);
  }

  .station {
    padding: 54px 0;
  }

  .station-card {
    padding: 25px 22px;
  }

  .employer-emblem {
    top: 22px;
    right: 20px;
    transform: scale(0.88);
    transform-origin: right top;
  }

  .intro-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 20px;
  }

  .portrait-wrap {
    width: 86px;
    min-width: 86px;
  }

  .js main {
    inset: var(--hud-height) 0 66px;
  }

  .js .station,
  .js .station[data-side="left"],
  .js .station[data-side="right"] {
    align-items: flex-end;
    justify-content: center;
    padding: 0 12px 12px;
  }

  .js .station-card,
  .js .intro-card {
    width: min(100%, 620px);
    max-height: 38vh;
    padding: 22px 20px 20px;
    border-radius: 2px 20px 2px 2px;
    background: rgba(10, 14, 24, 0.86);
    box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    overflow: hidden;
    overscroll-behavior: auto;
    touch-action: pan-y;
  }

  .js .intro-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 17px;
  }

  .js .portrait-wrap {
    width: 72px;
    min-width: 72px;
  }

  .station-label {
    margin-bottom: 11px;
    font-size: 0.58rem;
  }

  h1,
  h2 {
    font-size: clamp(1.75rem, 8vw, 2.6rem);
  }

  .station-role {
    margin: 10px 0 13px;
    font-size: 0.9rem;
  }

  .station-card > p:not(.station-label, .station-role) {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .education-line {
    margin-top: 13px !important;
    font-size: 0.7rem !important;
  }

  .chips {
    gap: 5px;
    margin-top: 13px;
  }

  .chips li {
    padding: 4px 7px;
    font-size: 0.64rem;
  }

  .project-showcase {
    margin-top: 14px;
  }

  .project-showcase .project-caption {
    margin-bottom: 8px;
    font-size: 0.62rem;
  }

  .screenshot-strip {
    gap: 8px;
    overflow: hidden;
  }

  .screenshot-strip img {
    max-width: 46%;
    max-height: 120px;
  }

  .text-link {
    margin-top: 16px;
    font-size: 0.78rem;
  }

  .contact-actions {
    margin-top: 18px;
  }

  footer {
    margin-top: 18px;
    padding-top: 14px;
    font-size: 0.58rem;
  }

  .js .flight-path {
    bottom: 12px;
  }

  .js .flight-path ol {
    gap: 2px;
    padding: 3px 5px;
  }

  .flight-path a {
    width: 28px;
    height: 28px;
  }

  .mobile-reader-affordance {
    position: absolute;
    z-index: 8;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 58px;
    gap: 8px;
    align-items: flex-end;
    justify-content: center;
    padding: 22px 18px 10px;
    border: 0;
    background: linear-gradient(
      to bottom,
      rgba(10, 14, 24, 0),
      rgba(10, 14, 24, 0.94) 54%,
      rgba(10, 14, 24, 0.99)
    );
    color: var(--accent-light);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.58rem;
    font-weight: 560;
    letter-spacing: 0.17em;
    line-height: 1.2;
    touch-action: pan-y;
    text-transform: uppercase;
  }

  .mobile-reader-affordance svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
  }

  .mobile-reader-overlay {
    position: fixed;
    z-index: 900;
    display: grid;
    padding:
      max(7px, env(safe-area-inset-top))
      max(7px, env(safe-area-inset-right))
      max(7px, env(safe-area-inset-bottom))
      max(7px, env(safe-area-inset-left));
    place-items: stretch;
    background: rgba(4, 6, 13, 0.82);
    opacity: 0;
    visibility: hidden;
    inset: 0;
    transition: opacity 240ms ease, visibility 240ms step-end;
  }

  .mobile-reader-overlay[hidden] {
    display: none;
  }

  .mobile-reader-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 240ms ease;
  }

  .mobile-reader-shell {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px 22px 3px 3px;
    background: rgba(8, 11, 19, 0.94);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(22px) saturate(115%);
    transform: translateY(18px);
    transition: transform 240ms ease;
  }

  .mobile-reader-overlay.is-open .mobile-reader-shell {
    transform: translateY(0);
  }

  .mobile-reader-close {
    position: absolute;
    z-index: 4;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
  }

  .mobile-reader-mail {
    position: absolute;
    z-index: 4;
    top: max(10px, env(safe-area-inset-top));
    right: calc(max(10px, env(safe-area-inset-right)) + 52px);
  }

  .mobile-reader-scroll {
    width: 100%;
    height: 100%;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .js .mobile-reader-card,
  .js .mobile-reader-card.intro-card {
    display: block;
    width: 100%;
    max-height: none;
    min-height: 100%;
    padding: 70px 24px calc(32px + env(safe-area-inset-bottom));
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: auto;
    backdrop-filter: none;
    touch-action: auto;
  }

  .mobile-reader-card > p:not(.station-label, .station-role) {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .mobile-reader-card .station-role {
    margin: 12px 0 18px;
    font-size: 0.98rem;
  }

  .mobile-reader-card > .employer-emblem {
    top: 78px;
    right: 24px;
  }

  .mobile-reader-card .screenshot-strip img {
    max-height: 180px;
  }

  .mobile-reader-card.intro-card .portrait-wrap {
    float: left;
    width: 82px;
    min-width: 82px;
    margin: 0 20px 12px 0;
  }

  .mobile-reader-card .screenshot-strip {
    overflow-x: auto;
  }
}

@media (max-width: 430px) {
  .intro-card {
    grid-template-columns: 1fr;
  }

  .js .intro-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .js .portrait-wrap {
    width: 62px;
    min-width: 62px;
  }

  .flight-path a {
    width: 24px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .station {
    transform: none !important;
  }

  .js .scroll-hint {
    display: none;
  }

  .site-loader,
  .site-loader-center {
    transition: none;
  }

  .flight-mode-toggle,
  .flight-tracker,
  .dock-chip,
  .flight-boundary-hint {
    display: none !important;
  }

  .milestone-emblem svg {
    animation: none;
  }

  .mobile-reader-overlay,
  .mobile-reader-shell,
  .screenshot-lightbox {
    transition: opacity 0.01ms linear !important;
    transform: none !important;
  }
}
