:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #a9b8c6;
  --paper: #06080d;
  --panel: rgba(12, 18, 26, 0.82);
  --panel-strong: rgba(16, 24, 34, 0.94);
  --line: rgba(125, 220, 227, 0.17);
  --teal: #7ddce3;
  --blue: #80aef7;
  --coral: #f0a37a;
  --amber: #f0cd74;
  --violet: #a99cf4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --soft-shadow: 0 14px 42px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --max-width: 1180px;
  --header-height: 78px;
  --page-zoom: 0.8;
  --page-slide-distance: clamp(54px, 12vw, 160px);
  --page-transition-duration: 520ms;
  --page-transition-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  position: relative;
  overflow-x: hidden;
  zoom: var(--page-zoom);
  background:
    radial-gradient(circle at 14% 12%, rgba(125, 220, 227, 0.13), transparent 24rem),
    radial-gradient(circle at 78% 16%, rgba(128, 174, 247, 0.1), transparent 28rem),
    radial-gradient(circle at 68% 88%, rgba(240, 163, 122, 0.06), transparent 26rem),
    linear-gradient(rgba(125, 220, 227, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 220, 227, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, #090d14 0%, #090d14 100%),
    var(--paper);
  background-size: auto, auto, auto, 54px 54px, 54px 54px, auto, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 41%, rgba(125, 220, 227, 0.07) 41.15%, transparent 41.45% 100%),
    linear-gradient(25deg, transparent 0 66%, rgba(128, 174, 247, 0.055) 66.15%, transparent 66.42% 100%),
    radial-gradient(circle at 24% 32%, rgba(240, 205, 116, 0.1) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 62%, rgba(125, 220, 227, 0.11) 0 1px, transparent 2px);
  opacity: 0.62;
  z-index: 0;
  animation: fieldDrift 22s ease-in-out infinite alternate;
}

.ambient-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.9;
  contain: strict;
}

.ambient-shape {
  position: absolute;
  display: block;
  border: 1px solid rgba(125, 220, 227, 0.52);
  background: rgba(125, 220, 227, 0.085);
  box-shadow: 0 0 22px rgba(125, 220, 227, 0.14);
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
  animation: ambientFloat 18s ease-in-out infinite alternate;
}

.ambient-shape-circle,
.ambient-shape-ring,
.ambient-shape-dot {
  border-radius: 50%;
}

.ambient-shape-circle {
  width: 115.2px;
  height: 115.2px;
  left: 10%;
  top: 18%;
  animation-duration: 18s;
}

.ambient-shape-square {
  width: 86.4px;
  height: 86.4px;
  right: 16%;
  top: 16%;
  border-color: rgba(128, 174, 247, 0.48);
  background: rgba(128, 174, 247, 0.08);
  animation-name: ambientFloatReverse;
  animation-duration: 22s;
}

.ambient-shape-triangle {
  left: 24%;
  bottom: 22%;
  width: 0;
  height: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 0 16px rgba(125, 220, 227, 0.18));
  animation-duration: 20s;
}

.ambient-shape-triangle::before {
  content: "";
  display: block;
  width: 98.4px;
  height: 98.4px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(125, 220, 227, 0.09);
  border: 1px solid rgba(125, 220, 227, 0.42);
}

.ambient-shape-hexagon {
  width: 124.8px;
  height: 124.8px;
  right: 24%;
  bottom: 18%;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  border: 0;
  background: rgba(240, 205, 116, 0.075);
  outline: 1px solid rgba(240, 205, 116, 0.38);
  animation-duration: 24s;
}

.ambient-shape-ring {
  width: 170.4px;
  height: 170.4px;
  right: 4%;
  bottom: 32%;
  border-color: rgba(240, 163, 122, 0.38);
  background: transparent;
  animation-name: ambientFloatReverse;
  animation-duration: 26s;
}

.ambient-shape-diamond {
  width: 74.4px;
  height: 74.4px;
  left: 50%;
  top: 10%;
  border-color: rgba(169, 156, 244, 0.42);
  background: rgba(169, 156, 244, 0.07);
  animation-duration: 19s;
}

.ambient-shape-bar {
  width: 184.8px;
  height: 21.6px;
  left: 7%;
  bottom: 36%;
  border-color: rgba(128, 174, 247, 0.36);
  background: rgba(128, 174, 247, 0.07);
  animation-name: ambientFloatReverse;
  animation-duration: 21s;
}

.ambient-shape-dot {
  width: 33.6px;
  height: 33.6px;
  left: 66%;
  top: 54%;
  background: rgba(240, 205, 116, 0.16);
  border-color: rgba(240, 205, 116, 0.48);
  animation-duration: 17s;
}

body > main {
  position: relative;
  z-index: 2;
}

body.page-transitioning,
body.page-entering {
  overflow-x: hidden;
}

body.page-transitioning a,
body.page-transitioning button {
  pointer-events: none;
}

body.page-entering > main,
body.page-entering > .scroll-cue,
body.page-transitioning > main,
body.page-transitioning > .scroll-cue {
  will-change: opacity, transform, filter;
  backface-visibility: hidden;
}

body.page-enter-from-right > main,
body.page-enter-from-right > .scroll-cue {
  animation: pageEnterFromRight var(--page-transition-duration) var(--page-transition-ease);
}

body.page-enter-from-left > main,
body.page-enter-from-left > .scroll-cue {
  animation: pageEnterFromLeft var(--page-transition-duration) var(--page-transition-ease);
}

body.page-exit-to-left > main,
body.page-exit-to-left > .scroll-cue {
  animation: pageExitToLeft 420ms var(--page-transition-ease) both;
}

body.page-exit-to-right > main,
body.page-exit-to-right > .scroll-cue {
  animation: pageExitToRight 420ms var(--page-transition-ease) both;
}

.entrance-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  pointer-events: none;
  color: #f7fbff;
  transform: translateZ(0);
  isolation: isolate;
}

html.entrance-preseen .entrance-overlay {
  display: none;
}

.entrance-overlay::before,
.entrance-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.entrance-overlay::before {
  background: repeating-linear-gradient(180deg, rgba(247, 251, 255, 0.07) 0 1px, transparent 1px 7px);
  background-size: 100% 8px;
  opacity: 0.18;
  z-index: 4;
}

.entrance-overlay::after {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(247, 251, 255, 0.2) 49%, transparent 50% 100%),
    linear-gradient(0deg, transparent 0 52%, rgba(125, 220, 227, 0.18) 53%, transparent 54% 100%),
    repeating-linear-gradient(90deg, rgba(247, 251, 255, 0.09) 0 1px, transparent 1px 5px);
  background-size: 17px 17px, 23px 23px, 9px 9px;
  opacity: 0.07;
  mix-blend-mode: screen;
  z-index: 4;
  animation: entranceNoise 180ms steps(2, end) infinite;
}

.entrance-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(125, 220, 227, 0.105), transparent 18rem),
    linear-gradient(135deg, rgba(125, 220, 227, 0.075), transparent 30%),
    linear-gradient(315deg, rgba(247, 251, 255, 0.035), transparent 34%),
    #03060b;
  will-change: opacity;
}

.entrance-hud {
  position: absolute;
  inset: clamp(22px, 4vw, 58px);
  z-index: 3;
  opacity: 0.7;
}

.entrance-hud-corner {
  position: absolute;
  width: clamp(42px, 7vw, 92px);
  height: clamp(42px, 7vw, 92px);
  border-color: rgba(125, 220, 227, 0.44);
  filter: drop-shadow(0 0 8px rgba(125, 220, 227, 0.18));
}

.entrance-hud-corner-top-left {
  top: 0;
  left: 0;
  border-top: 1px solid;
  border-left: 1px solid;
}

.entrance-hud-corner-top-right {
  top: 0;
  right: 0;
  border-top: 1px solid;
  border-right: 1px solid;
}

.entrance-hud-corner-bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.entrance-hud-corner-bottom-right {
  right: 0;
  bottom: 0;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.entrance-hud-line {
  position: absolute;
  opacity: 0.34;
  background: rgba(125, 220, 227, 0.55);
  box-shadow: 0 0 10px rgba(125, 220, 227, 0.16);
}

.entrance-hud-line-horizontal {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 220, 227, 0.42) 18%, transparent 36% 64%, rgba(125, 220, 227, 0.42) 82%, transparent);
}

.entrance-hud-line-vertical {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(125, 220, 227, 0.36) 20%, transparent 38% 62%, rgba(125, 220, 227, 0.36) 80%, transparent);
}

.entrance-verification,
.entrance-granted-message {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: min(86vw, 520px);
  text-align: center;
  transform: translate3d(-50%, -50%, 0);
}

.entrance-verification {
  display: grid;
  justify-items: center;
  gap: 22px;
  opacity: 1;
  transition: opacity 320ms ease, transform 320ms ease;
}

.entrance-spinner {
  position: relative;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(125, 220, 227, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 24px rgba(125, 220, 227, 0.06),
    0 0 30px rgba(125, 220, 227, 0.08);
}

.entrance-spinner::before,
.entrance-spinner::after,
.entrance-spinner span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.entrance-spinner::before {
  inset: 7px;
  border: 2px solid transparent;
  border-top-color: rgba(247, 251, 255, 0.94);
  border-right-color: rgba(125, 220, 227, 0.7);
  animation: entranceSpinner 900ms linear infinite;
}

.entrance-spinner::after {
  inset: 19px;
  border: 1px solid rgba(125, 220, 227, 0.46);
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: entranceSpinnerReverse 1400ms linear infinite;
}

.entrance-spinner span {
  inset: 36px;
  background: #f7fbff;
  box-shadow: 0 0 14px rgba(125, 220, 227, 0.86);
  animation: entranceCorePulse 900ms ease-in-out infinite;
}

.entrance-verification p {
  margin: 0;
  color: rgba(229, 244, 247, 0.82);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.74rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.entrance-progress {
  width: min(70vw, 280px);
  height: 2px;
  overflow: hidden;
  background: rgba(247, 251, 255, 0.08);
  box-shadow: 0 0 12px rgba(125, 220, 227, 0.1);
}

.entrance-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(125, 220, 227, 0.12), #7ddce3, #f7fbff);
  box-shadow: 0 0 12px rgba(125, 220, 227, 0.58);
  transform: scaleX(0);
  transform-origin: left;
  animation: entranceProgress 2800ms cubic-bezier(0.33, 1, 0.68, 1) 120ms forwards;
}

.entrance-granted-message {
  display: grid;
  gap: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(-50%, calc(-50% + 8px), 0);
}

.entrance-granted-message::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -34%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(247, 251, 255, 0.72), transparent);
  opacity: 0;
  transform: skewX(-18deg);
}

.entrance-granted-message span,
.entrance-granted-message strong {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entrance-granted-message span {
  color: rgba(229, 244, 247, 0.72);
  font-size: clamp(0.68rem, 1.4vw, 0.82rem);
}

.entrance-granted-message strong {
  color: #f7fbff;
  font-size: clamp(1.2rem, 3.4vw, 2rem);
  font-weight: 600;
  text-shadow:
    0 0 12px rgba(247, 251, 255, 0.22),
    0 0 24px rgba(125, 220, 227, 0.24);
}

.entrance-slices {
  position: absolute;
  inset: -26vh -18vw;
  z-index: 2;
  display: flex;
  transform: skewX(-18deg) translateZ(0);
  transform-origin: center;
}

.entrance-slice {
  position: relative;
  flex: 1 0 16%;
  min-width: 16%;
  overflow: hidden;
  border-left: 1px solid rgba(125, 220, 227, 0.18);
  border-right: 1px solid rgba(247, 251, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(247, 251, 255, 0.055), transparent 32%),
    linear-gradient(180deg, rgba(125, 220, 227, 0.09), rgba(3, 6, 11, 0.94) 34%, rgba(3, 6, 11, 0.98)),
    #03060b;
  box-shadow:
    inset 1px 0 0 rgba(125, 220, 227, 0.28),
    inset -1px 0 0 rgba(247, 251, 255, 0.08),
    0 0 24px rgba(125, 220, 227, 0.08);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity, filter;
  animation: none;
}

.entrance-slice::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 10px, rgba(125, 220, 227, 0.08) 10px 11px, transparent 11px 24px),
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(247, 251, 255, 0.045) 14px 15px, transparent 15px 38px);
  opacity: 0.28;
  transform: translate3d(calc(var(--i) * -3px), 0, 0);
}

.entrance-slice::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(247, 251, 255, 0.58), rgba(125, 220, 227, 0.68), transparent);
  opacity: 0.56;
}

body.entrance-granted .entrance-verification {
  opacity: 0;
  transform: translate3d(-50%, calc(-50% - 8px), 0);
}

body.entrance-granted .entrance-granted-message {
  animation: entranceGrantedIn 480ms cubic-bezier(0.16, 1, 0.3, 1) 180ms forwards;
}

body.entrance-granted .entrance-granted-message::after {
  animation: entranceGrantedScan 760ms ease 460ms forwards;
}

body.entrance-exiting .entrance-verification,
body.entrance-exiting .entrance-hud {
  opacity: 0;
  transition: opacity 220ms ease;
}

body.entrance-exiting .entrance-granted-message {
  animation: entranceGrantedOut 220ms ease forwards;
}

body.entrance-exiting .entrance-backdrop {
  animation: entranceBackdropFade 1450ms ease forwards;
}

body.entrance-exiting .entrance-slice:nth-child(odd) {
  animation: entranceSliceTopLeft 1200ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: calc(var(--i) * 42ms);
}

body.entrance-exiting .entrance-slice:nth-child(even) {
  animation: entranceSliceBottomRight 1200ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: calc(var(--i) * 42ms);
}

body.entrance-exiting .entrance-overlay::before,
body.entrance-exiting .entrance-overlay::after {
  animation: entranceEffectsFade 900ms ease forwards;
}

body.entrance-active .hero .reveal {
  opacity: 0 !important;
  transform: translate3d(0, 10px, 0) !important;
  transition: none !important;
}

html.entrance-preseen body.entrance-active .hero .reveal {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
  transition: none !important;
}

body.entrance-reveal .hero .reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 1000ms ease, transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.entrance-skipped .hero .reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 16, 0.78);
  backdrop-filter: blur(18px);
}

.main-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 16, 23, 0.82);
}

.nav-link {
  min-width: 112px;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-align: center;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(33, 231, 240, 0.16);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(33, 231, 240, 0.42), 0 0 24px rgba(33, 231, 240, 0.12);
  transform: translateY(-1px);
}

.language-switcher {
  position: relative;
  grid-column: 3;
  justify-self: end;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 124px;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(9, 16, 23, 0.82);
  cursor: pointer;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.language-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.language-switcher.open .language-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.language-menu button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 10px 12px;
  background: transparent;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button.active {
  background: rgba(33, 231, 240, 0.14);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-content: center;
  align-items: center;
  gap: 52px;
  padding: 96px max(28px, calc((100vw - var(--max-width)) / 2)) 64px;
  isolation: isolate;
}

.hero-content {
  max-width: 770px;
}

.hero-portrait {
  margin: 0;
  justify-self: end;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(3.45rem, 8.9vw, 8.25rem);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.18rem, 2.65vw, 1.52rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.button.primary {
  color: #061116;
  background: linear-gradient(135deg, var(--teal), #b7fbff);
  box-shadow: 0 0 28px rgba(33, 231, 240, 0.18);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(9, 16, 23, 0.72);
  color: var(--ink);
}

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1040px;
  margin-top: 78px;
}

.hero-stats div {
  min-height: 136px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 21, 30, 0.72);
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.82rem, 3.45vw, 2.75rem);
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 650;
}

.cinematic-scroll {
  position: relative;
  overflow-anchor: none;
}

.cinematic-viewport,
.cinematic-track {
  position: relative;
}

.cinematic-parallax {
  display: none;
}

.cinematic-scroll.is-ready {
  min-height: calc(100vh / var(--page-zoom));
  margin-top: calc(var(--header-height) * -1);
  isolation: isolate;
}

.cinematic-scroll.is-ready .cinematic-viewport {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100dvh / var(--page-zoom));
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

.cinematic-scroll.is-ready.is-in-view .cinematic-viewport {
  position: fixed;
}

.cinematic-scroll.is-ready.is-complete .cinematic-viewport {
  position: absolute;
  top: auto;
  bottom: 0;
}

.cinematic-scroll.is-ready .cinematic-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 38%, rgba(125, 220, 227, 0.12) 38.12%, transparent 38.34% 100%),
    linear-gradient(34deg, transparent 0 64%, rgba(128, 174, 247, 0.095) 64.12%, transparent 64.36% 100%),
    radial-gradient(circle at 76% 64%, rgba(240, 205, 116, 0.12) 0 1px, transparent 2px);
  opacity: 0.68;
  transform: translate3d(var(--parallax-near-x, 0px), var(--parallax-near-y, 0px), 0);
  will-change: transform;
}

.cinematic-scroll.is-ready .cinematic-track {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 220vw;
  height: 220vh;
  transform: translate3d(var(--camera-x, 0), var(--camera-y, 0), 0) scale(var(--camera-scale, 1));
  transform-origin: 50vw 50vh;
  will-change: transform;
}

.cinematic-scroll.is-ready .cinematic-track::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.cinematic-scroll.is-ready .cinematic-track::after {
  left: 18vw;
  top: 48vh;
  width: 112vw;
  height: 95vh;
  background:
    linear-gradient(28deg, transparent 0 44%, rgba(240, 163, 122, 0.42) 44.2% 44.8%, transparent 45% 100%),
    linear-gradient(140deg, transparent 0 52%, rgba(125, 220, 227, 0.34) 52.15% 52.65%, transparent 52.85% 100%);
  opacity: 0.32;
  filter: blur(0.4px);
}

.cinematic-scroll.is-ready .cinematic-scene {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100vw;
  height: calc(100dvh / var(--page-zoom));
  min-height: 0;
  overflow: hidden;
  opacity: 0.62;
  pointer-events: none;
  filter: blur(1.2px) saturate(0.82);
  transform: translate3d(var(--scene-map-x, 0), var(--scene-map-y, 0), 0) scale(0.965);
  transform-origin: center;
  transition: opacity 420ms ease, filter 420ms ease, transform 420ms ease;
  will-change: opacity, transform, filter;
}

.cinematic-scroll.is-ready .cinematic-scene.is-cinematic-active {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0) saturate(1);
  transform: translate3d(var(--scene-map-x, 0), var(--scene-map-y, 0), 0) scale(1.035);
}

.cinematic-scroll.is-ready.is-cinematic-animating .cinematic-scene {
  transition-duration: 760ms;
}

.cinematic-scroll.is-ready .cinematic-scene--hero {
  --scene-map-x: 0vw;
  --scene-map-y: 0vh;
  opacity: 1;
}

.cinematic-scroll.is-ready .cinematic-panel--profile {
  --scene-map-x: 88vw;
  --scene-map-y: 48vh;
}

.cinematic-scroll.is-ready .cinematic-panel--resume {
  --scene-map-x: 20vw;
  --scene-map-y: 112vh;
}

.cinematic-scroll.is-ready .cinematic-scene--hero.hero {
  min-height: calc(100dvh / var(--page-zoom));
  padding-top: max(110px, calc(var(--header-height) + 26px));
  padding-bottom: clamp(34px, 7vh, 68px);
}

.cinematic-panel {
  display: grid;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.cinematic-scroll.is-ready .cinematic-panel {
  grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1.24fr);
  padding: max(104px, calc(var(--header-height) + 28px)) max(28px, calc((100vw - var(--max-width)) / 2)) 44px;
}

.cinematic-scroll.is-ready .cinematic-panel--profile {
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1.38fr);
}

.cinematic-scroll.is-ready .cinematic-panel--resume {
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-left: max(72px, calc((100vw - 1080px) / 2));
  padding-right: max(28px, calc((100vw - 1080px) / 2));
  padding-top: max(136px, calc(var(--header-height) + 68px));
  padding-bottom: 34px;
}

.cinematic-scroll.is-ready .cinematic-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.cinematic-scroll.is-ready .cinematic-section.education-band,
.cinematic-scroll.is-ready .cinematic-section.resume-archive-section {
  background: transparent;
}

.cinematic-scroll.is-ready .cinematic-section.education-band > *,
.cinematic-scroll.is-ready .cinematic-section.resume-archive-section > * {
  max-width: none;
}

.cinematic-scroll.is-ready .cinematic-panel .section-heading {
  margin-bottom: 22px;
}

.cinematic-scroll.is-ready .cinematic-panel .section-heading h2 {
  font-size: clamp(2.45rem, 4.8vw, 5.15rem);
}

.cinematic-scroll.is-ready .cinematic-panel .profile-panel {
  padding: clamp(28px, 3vw, 38px);
  font-size: clamp(1rem, 1.22vw, 1.16rem);
  line-height: 1.62;
}

.cinematic-scroll.is-ready .cinematic-panel--profile .skill-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  grid-auto-flow: dense;
}

.cinematic-scroll.is-ready .cinematic-panel--profile .skill-card {
  min-height: 138px;
  padding: 18px;
}

.cinematic-scroll.is-ready .cinematic-panel--profile .skill-card h3 {
  font-size: 1rem;
}

.cinematic-scroll.is-ready .cinematic-panel--profile .skill-card p {
  margin-top: 9px;
  font-size: 0.82rem;
  line-height: 1.42;
}

.cinematic-scroll.is-ready .cinematic-panel--profile .skill-tags {
  gap: 5px;
  margin-top: 9px;
}

.cinematic-scroll.is-ready .cinematic-panel--profile .tag {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 0.68rem;
}

.cinematic-scroll.is-ready .cinematic-panel .resume-list {
  gap: 10px;
}

.cinematic-scroll.is-ready .cinematic-panel .resume-item {
  grid-template-columns: minmax(88px, 118px) minmax(0, 1fr);
  gap: 14px;
  padding: 15px 17px;
}

.cinematic-scroll.is-ready .cinematic-panel .resume-item h3 {
  font-size: 0.96rem;
}

.cinematic-scroll.is-ready .cinematic-panel .resume-item p {
  font-size: 0.82rem;
  line-height: 1.42;
}

.cinematic-scroll.is-ready .resume-archive-section .section-heading {
  margin-bottom: 16px;
}

.cinematic-scroll.is-ready .resume-archive-section .section-heading h2 {
  max-width: 1120px;
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
}

.cinematic-scroll.is-ready .resume-archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: min(1120px, 100%);
  align-items: start;
  align-content: start;
}

.cinematic-scroll.is-ready .archive-card {
  min-height: 108px;
  padding: 13px 18px;
  grid-template-columns: 204px minmax(0, 1fr);
}

.cinematic-scroll.is-ready .archive-card:hover p,
.cinematic-scroll.is-ready .archive-card:focus-visible p,
.cinematic-scroll.is-ready .archive-card:focus-within p {
  max-height: 92px;
  -webkit-line-clamp: 3;
}

.cinematic-scroll.is-ready .cinematic-parallax {
  display: block;
}

.cinematic-parallax {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
  will-change: transform;
}

.cinematic-parallax--near {
  right: 9%;
  bottom: 13%;
  z-index: 1;
  width: clamp(150px, 18vw, 260px);
  aspect-ratio: 1;
  border: 1px solid rgba(125, 220, 227, 0.2);
  background: linear-gradient(135deg, rgba(125, 220, 227, 0.08), transparent 60%);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
  transform: translate3d(var(--parallax-near-x, 0px), var(--parallax-near-y, 0px), 0) rotate(8deg);
}

.cinematic-parallax--far {
  left: 4%;
  top: 20%;
  z-index: 1;
  width: clamp(220px, 28vw, 420px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(128, 174, 247, 0.32), transparent);
  transform: translate3d(var(--parallax-far-x, 0px), var(--parallax-far-y, 0px), 0) rotate(24deg);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 28px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.cta-band h2,
.portfolio-hero h1 {
  font-size: clamp(2rem, 4.4vw, 4rem);
}

.section-heading h2.cyan-heading {
  color: var(--teal);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}

.profile-panel,
.skill-card,
.resume-item,
.project-card-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.profile-panel {
  padding: 34px;
  font-size: 1.08rem;
}

.profile-panel p {
  margin: 0;
  color: var(--muted);
}

.profile-panel p + p {
  margin-top: 18px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 26px;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow: 0 0 22px rgba(33, 231, 240, 0.32);
}

.skill-card h3 {
  font-size: 1.25rem;
}

.skill-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.skill-tags,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(33, 231, 240, 0.24);
  background: rgba(33, 231, 240, 0.08);
  color: #d9fdff;
  font-size: 0.82rem;
  font-weight: 750;
}

.education-band {
  max-width: none;
  background:
    linear-gradient(180deg, transparent, rgba(33, 231, 240, 0.055), transparent),
    linear-gradient(90deg, transparent, rgba(33, 231, 240, 0.04), transparent);
}

.education-band > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.resume-list {
  display: grid;
  gap: 14px;
}

.resume-item {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
}

.resume-date {
  color: var(--teal);
  font-weight: 850;
}

.resume-item h3 {
  font-size: 1.18rem;
}

.resume-item p {
  margin: 8px 0 0;
  color: var(--muted);
}

.resume-archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  align-content: start;
  overflow-anchor: none;
}

.archive-card {
  position: relative;
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  align-items: start;
  min-height: 112px;
  overflow: hidden;
  padding: 14px 18px;
  border: 1px solid rgba(125, 220, 227, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(11, 20, 29, 0.92), rgba(6, 10, 16, 0.82)),
    linear-gradient(135deg, rgba(125, 220, 227, 0.1), transparent 46%);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
  outline: none;
  align-self: start;
  overflow-anchor: none;
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    transform 260ms ease;
}

.archive-card::before,
.archive-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.archive-card::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(125, 220, 227, 0.08) 18px 19px, transparent 19px),
    linear-gradient(180deg, rgba(125, 220, 227, 0.15), transparent 42%);
  opacity: 0.38;
}

.archive-card::after {
  top: 0;
  right: 18px;
  width: 44px;
  height: 18px;
  border: 1px solid rgba(125, 220, 227, 0.26);
  border-top: 0;
  background: rgba(125, 220, 227, 0.08);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.archive-card:hover,
.archive-card:focus-visible,
.archive-card:focus-within {
  transform: translate3d(0, 0, 0);
  border-color: rgba(125, 220, 227, 0.58);
  box-shadow:
    0 20px 58px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(33, 231, 240, 0.16);
}

.archive-card-preview {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(100%, 172px);
  justify-self: center;
  height: 96px;
  min-height: 96px;
  overflow: hidden;
  border: 1px solid rgba(125, 220, 227, 0.18);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 40%, rgba(125, 220, 227, 0.2), transparent 58%),
    rgba(6, 11, 17, 0.78);
  transition: border-color 260ms ease, background 260ms ease;
}

.archive-card:hover .archive-card-preview,
.archive-card:focus-visible .archive-card-preview,
.archive-card:focus-within .archive-card-preview {
  border-color: rgba(125, 220, 227, 0.42);
  background:
    radial-gradient(circle at 50% 44%, rgba(125, 220, 227, 0.28), transparent 62%),
    rgba(8, 16, 24, 0.88);
}

.archive-card-preview img {
  width: min(88%, 154px);
  max-height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(125, 220, 227, 0.18));
}

.archive-card-preview span {
  color: #d9fdff;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 20px rgba(125, 220, 227, 0.32);
}

.archive-card-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 20px 46px auto;
  align-content: start;
  align-items: start;
  gap: 8px 20px;
  padding-left: 18px;
}

.archive-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  grid-column: 1 / -1;
}

.archive-card-date {
  color: rgba(247, 251, 255, 0.72);
  text-transform: none;
}

.archive-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.08;
  text-align: center;
  grid-column: 1 / -1;
  align-self: center;
}

.archive-card p {
  display: block;
  margin: 0 auto;
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  max-width: 780px;
  transform: none;
  grid-column: 1 / -1;
  transition:
    opacity 260ms ease,
    margin-top 260ms ease,
    max-height 360ms ease;
}

.archive-card:hover p,
.archive-card:focus-visible p,
.archive-card:focus-within p {
  margin-top: 8px;
  max-height: 150px;
  opacity: 1;
}

.archive-hover-hint {
  justify-self: center;
  margin-top: 2px;
  color: rgba(125, 220, 227, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(33, 231, 240, 0.28);
}

.archive-hover-hint::before,
.archive-hover-hint::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 10px 0.22em;
  background: linear-gradient(90deg, transparent, rgba(125, 220, 227, 0.72));
}

.archive-hover-hint::after {
  background: linear-gradient(90deg, rgba(125, 220, 227, 0.72), transparent);
}

.cta-band {
  max-width: var(--max-width);
  margin: 34px auto 92px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 11, 16, 0.96), rgba(33, 231, 240, 0.18)),
    url("../assets/portfolio-preview.svg") center / cover;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cta-band .eyebrow {
  color: var(--teal);
}

.portfolio-hero {
  padding: 76px max(28px, calc((100vw - var(--max-width)) / 2)) 28px;
  text-align: center;
}

.portfolio-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.portfolio-hero h1 {
  letter-spacing: 0;
}

.year-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px auto 0;
}

.year-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(9, 16, 23, 0.78);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.year-button:hover,
.year-button.active {
  background: rgba(33, 231, 240, 0.16);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(33, 231, 240, 0.4), 0 0 22px rgba(33, 231, 240, 0.12);
  transform: translateY(-1px);
}

.contact-section {
  min-height: calc((100vh / var(--page-zoom)) - var(--header-height));
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: stretch;
}

.contact-motion-panel {
  --contact-panel-content-x: 0px;
  --contact-panel-content-y: 0px;
  --contact-panel-border-x: 0px;
  --contact-panel-border-y: 0px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: calc((100vh / var(--page-zoom)) - var(--header-height));
  aspect-ratio: auto;
  max-height: none;
  padding: clamp(78px, 13vh, 140px) clamp(28px, 7vw, 124px);
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(circle at var(--contact-panel-glow-x, 50%) var(--contact-panel-glow-y, 50%), rgba(33, 231, 240, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(125, 220, 227, 0.055), transparent 36% 68%, rgba(90, 132, 255, 0.045)),
    rgba(6, 13, 20, 0.12);
  backdrop-filter: blur(6px) saturate(1.08);
  -webkit-backdrop-filter: blur(6px) saturate(1.08);
}

.contact-panel-border {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(125, 220, 227, 0.28);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(125, 220, 227, 0.26), transparent 11% 89%, rgba(125, 220, 227, 0.26)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 20% 80%, rgba(125, 220, 227, 0.08));
  box-shadow:
    0 0 46px rgba(33, 231, 240, 0.1),
    inset 0 0 52px rgba(33, 231, 240, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0.72;
  pointer-events: none;
  transform: translate3d(var(--contact-panel-border-x), var(--contact-panel-border-y), 0);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease,
    transform 90ms ease-out;
}

.contact-panel-border::before,
.contact-panel-border::after {
  content: "";
  position: absolute;
  width: clamp(80px, 12vw, 180px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 220, 227, 0.72), transparent);
  opacity: 0.76;
}

.contact-panel-border::before {
  top: -1px;
  left: 9%;
}

.contact-panel-border::after {
  right: 9%;
  bottom: -1px;
}

.contact-panel-glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at var(--contact-panel-glow-x, 50%) var(--contact-panel-glow-y, 50%), rgba(125, 220, 227, 0.18), transparent 24%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.contact-motion-panel:hover .contact-panel-border,
.contact-motion-panel:focus-within .contact-panel-border {
  border-color: rgba(125, 220, 227, 0.5);
  box-shadow:
    0 0 62px rgba(33, 231, 240, 0.15),
    inset 0 0 58px rgba(33, 231, 240, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  opacity: 1;
}

.contact-motion-panel:hover .contact-panel-glow,
.contact-motion-panel:focus-within .contact-panel-glow {
  opacity: 1;
}

.contact-copy {
  width: min(720px, 100%);
  transform: translate3d(var(--contact-panel-content-x), var(--contact-panel-content-y), 0);
  transition: transform 120ms ease-out;
}

.contact-copy h1 {
  max-width: 720px;
  color: var(--teal);
  font-size: clamp(3rem, 7vw, 6.6rem);
  letter-spacing: 0;
  text-align: center;
}

.contact-list {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-top: 38px;
}

.contact-item {
  display: grid;
  gap: 6px;
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(125, 220, 227, 0.22);
  background:
    linear-gradient(135deg, rgba(125, 220, 227, 0.1), transparent 42%),
    rgba(13, 21, 30, 0.54);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.contact-item::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--contact-panel-glow-x, 50%) var(--contact-panel-glow-y, 50%), rgba(33, 231, 240, 0.18), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 36%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.contact-item:hover,
.contact-item:focus-within {
  border-color: rgba(125, 220, 227, 0.42);
  background:
    linear-gradient(135deg, rgba(125, 220, 227, 0.16), transparent 42%),
    rgba(13, 21, 30, 0.64);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.24),
    0 0 20px rgba(33, 231, 240, 0.08);
  transform: translateY(-2px);
}

.contact-item:hover::before,
.contact-item:focus-within::before {
  opacity: 1;
}

.contact-item span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-item strong {
  color: var(--ink);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.25;
}

.contact-phone-lines {
  display: grid;
  gap: 7px;
}

.contact-phone-lines a {
  color: inherit;
}

.contact-portrait {
  margin: 0;
}

.contact-photo-frame {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 4 / 5;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(33, 231, 240, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(33, 231, 240, 0.12), transparent 42%),
    rgba(13, 21, 30, 0.76);
  box-shadow: var(--shadow);
}

.contact-photo-frame img,
.contact-photo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-photo-frame img {
  object-fit: cover;
}

.contact-photo-fallback {
  display: grid;
  place-items: center;
  color: rgba(247, 251, 255, 0.58);
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 900;
  letter-spacing: 0;
  background:
    linear-gradient(rgba(125, 247, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 247, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
}

.timeline-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 28px 96px;
  zoom: 0.895;
  isolation: isolate;
}

.timeline-tree {
  --timeline-branch-duration: 850ms;
  --timeline-card-duration: 227.5ms;
  --timeline-card-delay: 360ms;
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 0;
}

.timeline-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(75, 142, 177, 0.13);
  box-shadow: 0 0 18px rgba(33, 231, 240, 0.16);
}

.timeline-spine-track {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
}

.timeline-spine-track {
  background:
    linear-gradient(180deg, transparent 0, rgba(125, 220, 227, 0.5) 5%, rgba(128, 174, 247, 0.34) 95%, transparent 100%);
}

.timeline-year {
  position: relative;
  z-index: 2;
  margin: 0 0 78px;
}

.year-node {
  position: sticky;
  top: 92px;
  z-index: 7;
  width: max-content;
  margin: 0 auto 24px;
  padding: 9px 18px;
  border: 1px solid rgba(33, 231, 240, 0.34);
  border-radius: 999px;
  background: rgba(11, 18, 27, 0.96);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 0 0 5px rgba(9, 15, 22, 0.8), 0 0 26px rgba(50, 194, 239, 0.2), var(--soft-shadow);
}

.project-card {
  position: relative;
  z-index: 4;
  width: min(460px, calc(50% - 58px));
  margin-bottom: 30px;
  overflow: visible;
}

.project-card-shell {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(24px, 0, 0);
  clip-path: inset(0 0 0 100%);
  transition:
    opacity var(--timeline-card-duration) ease-out var(--timeline-card-delay),
    transform var(--timeline-card-duration) cubic-bezier(0.16, 1, 0.3, 1) var(--timeline-card-delay),
    clip-path var(--timeline-card-duration) cubic-bezier(0.65, 0, 0.35, 1) var(--timeline-card-delay),
    box-shadow 220ms ease;
  will-change: opacity, transform, clip-path;
}

.project-card--right .project-card-shell {
  transform: translate3d(-24px, 0, 0);
  clip-path: inset(0 100% 0 0);
}

.project-card.is-branch-active .project-card-shell {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  clip-path: inset(0);
}

.project-card:hover .project-card-shell {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card--right {
  margin-left: auto;
}

.timeline-branch {
  position: absolute;
  top: 42px;
  right: -58px;
  width: 58px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

.timeline-branch-track,
.timeline-branch-flow {
  position: absolute;
  top: 8px;
  right: 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: right center;
}

.timeline-branch-track {
  background: linear-gradient(90deg, rgba(33, 231, 240, 0.12), rgba(125, 220, 227, 0.92));
  box-shadow: 0 0 14px rgba(33, 231, 240, 0.26);
  opacity: 0;
  transition:
    opacity 220ms ease,
    transform var(--timeline-branch-duration) cubic-bezier(0.65, 0, 0.35, 1);
}

.timeline-branch-flow {
  background: linear-gradient(90deg, transparent 0, #d8fdff 42%, #58a9ff 58%, transparent 100%);
  filter: drop-shadow(0 0 6px rgba(112, 225, 255, 0.9));
  opacity: 0;
}

.timeline-branch-node {
  position: absolute;
  top: 3px;
  right: -6px;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(185, 247, 255, 0.94);
  border-radius: 50%;
  background: #07111a;
  box-shadow: 0 0 0 0 rgba(80, 197, 255, 0), 0 0 14px rgba(80, 197, 255, 0.65);
  opacity: 0.28;
  transform: scale(0.72);
  transition:
    opacity 220ms ease,
    transform 460ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 460ms ease;
}

.project-card.is-branch-active .timeline-branch-track {
  opacity: 1;
  transform: scaleX(1);
}

.project-card.is-branch-active .timeline-branch-flow {
  animation: branchEnergyLeft var(--timeline-branch-duration) cubic-bezier(0.45, 0, 0.55, 1) 1 both;
}

.project-card.is-branch-active .timeline-branch-node {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 0 9px rgba(80, 197, 255, 0.08), 0 0 20px rgba(80, 197, 255, 0.92);
  animation: timelineNodeBreathe 2.8s ease-in-out var(--timeline-branch-duration) infinite;
}

.project-card--right .timeline-branch {
  left: -58px;
  right: auto;
}

.project-card--right .timeline-branch-track,
.project-card--right .timeline-branch-flow {
  transform-origin: left center;
  background: linear-gradient(90deg, var(--teal), rgba(33, 231, 240, 0.08));
}

.project-card--right .timeline-branch-node {
  right: auto;
  left: -6px;
}

.project-card--right.is-branch-active .timeline-branch-flow {
  animation-name: branchEnergyRight;
}

.project-media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #05090d;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.project-media.logo-media {
  background: #000;
  padding: 34px;
}

.project-media.logo-media.light-logo {
  background: #fff;
  padding: 28px 38px;
}

.project-media.logo-media img {
  object-fit: contain;
}

.project-card:hover .project-media img {
  transform: scale(1.035);
}

.project-card:hover .project-media.logo-media img {
  transform: none;
}

.project-content {
  padding: 22px;
}

.project-kicker {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-content h3 {
  margin-top: 8px;
  font-size: 1.38rem;
}

.project-content p {
  margin: 12px 0 0;
  color: var(--muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  color: var(--teal);
  font-weight: 850;
}

.project-link::after {
  content: ">";
  margin-left: 8px;
  color: var(--teal);
  transition: transform 180ms ease;
}

.project-link:hover::after {
  transform: translateX(4px);
}

.scroll-cue {
  position: fixed;
  right: 34px;
  bottom: 32px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(247, 251, 255, 0.82);
  pointer-events: none;
  opacity: 1;
  transition: opacity 280ms ease;
}

.scroll-cue.is-hidden {
  opacity: 0;
}

.scroll-cue-text {
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  text-transform: lowercase;
  text-shadow: 0 0 18px rgba(33, 231, 240, 0.3);
}

.scroll-cue-pointers {
  display: inline-grid;
  gap: 4px;
  justify-items: center;
  animation: scrollCueFloat 3.2s ease-in-out infinite;
}

.scroll-cue-pointers span {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  opacity: 0.42;
  filter: drop-shadow(0 0 8px rgba(33, 231, 240, 0.42));
  animation: scrollCuePulse 1.9s ease-in-out infinite;
}

.scroll-cue-pointers span:nth-child(2) {
  animation-delay: 140ms;
}

.scroll-cue-pointers span:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes scrollCueFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@keyframes scrollCuePulse {
  0%,
  100% {
    opacity: 0.34;
  }

  45% {
    opacity: 1;
  }
}

@keyframes fieldDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-18px, 12px, 0);
  }
}

@keyframes entranceNoise {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(6px, -3px, 0);
  }
}

@keyframes entranceSpinner {
  to {
    transform: rotate(360deg);
  }
}

@keyframes entranceSpinnerReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes entranceCorePulse {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.72);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes entranceProgress {
  to {
    transform: scaleX(1);
  }
}

@keyframes entranceGrantedIn {
  to {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0);
  }
}

@keyframes entranceGrantedScan {
  0% {
    left: -34%;
    opacity: 0;
  }

  24%,
  70% {
    opacity: 0.62;
  }

  100% {
    left: 106%;
    opacity: 0;
  }
}

@keyframes entranceGrantedOut {
  to {
    opacity: 0;
    transform: translate3d(-50%, calc(-50% - 6px), 0);
  }
}

@keyframes entranceBackdropFade {
  0%,
  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes entranceEffectsFade {
  to {
    opacity: 0;
  }
}

@keyframes entranceSliceTopLeft {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }

  100% {
    opacity: 0;
    filter: blur(1.5px);
    transform: translate3d(-42vw, -38vh, 0);
  }
}

@keyframes entranceSliceBottomRight {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }

  100% {
    opacity: 0;
    filter: blur(1.5px);
    transform: translate3d(42vw, 38vh, 0);
  }
}

@keyframes ambientFloat {
  0% {
    opacity: 0.54;
    transform: translate3d(-38px, 24px, 0) rotate(0deg) scale(0.94);
  }

  45% {
    opacity: 0.88;
  }

  100% {
    opacity: 0.66;
    transform: translate3d(118px, -82px, 0) rotate(36deg) scale(1.08);
  }
}

@keyframes ambientFloatReverse {
  0% {
    opacity: 0.5;
    transform: translate3d(46px, -28px, 0) rotate(0deg) scale(1.02);
  }

  50% {
    opacity: 0.82;
  }

  100% {
    opacity: 0.64;
    transform: translate3d(-112px, 74px, 0) rotate(-32deg) scale(0.92);
  }
}

@keyframes pageEnterFromRight {
  0% {
    opacity: 0.82;
    filter: blur(8px);
    transform: translate3d(var(--page-slide-distance), 0, 0);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pageEnterFromLeft {
  0% {
    opacity: 0.82;
    filter: blur(8px);
    transform: translate3d(calc(var(--page-slide-distance) * -1), 0, 0);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pageExitToLeft {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }

  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(calc(var(--page-slide-distance) * -1), 0, 0);
  }
}

@keyframes pageExitToRight {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }

  100% {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(var(--page-slide-distance), 0, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateX(-34px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes branchEnergyLeft {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }

  30% {
    opacity: 1;
  }

  72% {
    opacity: 0.95;
    transform: scaleX(1);
  }

  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes branchEnergyRight {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }

  30% {
    opacity: 1;
  }

  72% {
    opacity: 0.95;
    transform: scaleX(1);
  }

  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes timelineNodeBreathe {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(80, 197, 255, 0.05), 0 0 14px rgba(80, 197, 255, 0.62);
  }

  50% {
    box-shadow: 0 0 0 11px rgba(80, 197, 255, 0.1), 0 0 25px rgba(80, 197, 255, 0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  body.page-entering > main,
  body.page-entering > .scroll-cue,
  body.page-transitioning > main,
  body.page-transitioning > .scroll-cue {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
  }

  .timeline-branch-flow,
  .timeline-branch-node {
    animation: none !important;
  }

  .project-card .timeline-branch-track,
  .project-card .timeline-branch-node,
  .project-card .project-card-shell {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
  }

  .project-card .timeline-branch-track {
    transform: scaleX(1);
  }

  .scroll-cue-pointers,
  .scroll-cue-pointers span,
  body::before {
    animation: none;
  }

  .ambient-shape {
    animation: none !important;
    opacity: 0.42;
  }

  .entrance-overlay {
    display: none;
  }

  body.entrance-active .hero .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  body.entrance-skipped .hero .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .cinematic-scroll.is-ready {
    min-height: auto;
    margin-top: 0;
  }

  .cinematic-scroll.is-ready .cinematic-viewport,
  .cinematic-scroll.is-ready .cinematic-track,
  .cinematic-scroll.is-ready .cinematic-scene {
    position: relative;
    inset: auto;
    height: auto;
    min-height: auto;
    opacity: 1 !important;
    overflow: visible;
    pointer-events: auto;
    filter: none !important;
    transform: none !important;
    clip-path: inset(0) !important;
  }

  .cinematic-scroll.is-ready .cinematic-parallax {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 18px;
  }

  .main-nav {
    grid-column: 2;
    justify-self: center;
  }

  .nav-link {
    min-width: 92px;
    padding: 8px 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

  .hero,
  .hero-stats,
  .skill-grid,
  .intro-grid,
  .cinematic-panel,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .cinematic-scroll.is-ready {
    min-height: auto;
    margin-top: 0;
  }

  .cinematic-scroll.is-ready .cinematic-viewport,
  .cinematic-scroll.is-ready .cinematic-track,
  .cinematic-scroll.is-ready .cinematic-scene {
    position: relative;
    inset: auto;
    height: auto;
    min-height: auto;
    opacity: 1 !important;
    overflow: visible;
    pointer-events: auto;
    filter: none !important;
    transform: none !important;
    clip-path: inset(0) !important;
  }

  .cinematic-scroll.is-ready .cinematic-panel {
    grid-template-columns: 1fr;
    padding: 64px 28px;
  }

  .cinematic-scroll.is-ready .cinematic-panel .skill-grid {
    grid-template-columns: 1fr;
  }

  .cinematic-scroll.is-ready .cinematic-parallax {
    display: none;
  }

  .contact-section {
    padding: 22px 18px 28px;
  }

  .contact-motion-panel {
    width: 100%;
    min-height: calc((100vh / var(--page-zoom)) - var(--header-height));
    aspect-ratio: auto;
    max-height: none;
    padding: 72px 22px;
    border-radius: 0;
  }

  .contact-panel-border {
    inset: 0;
    border-radius: 0;
  }

  .contact-photo-frame {
    margin-left: 0;
    width: min(100%, 320px);
  }

  .hero-portrait {
    justify-self: start;
  }

  .timeline-spine {
    left: 20px;
  }

  .year-node {
    margin-left: 0;
  }

  .project-card,
  .project-card--right {
    width: calc(100% - 48px);
    margin-left: 48px;
  }

  .project-card .timeline-branch,
  .project-card--right .timeline-branch {
    left: -28px;
    right: auto;
    width: 28px;
  }

  .project-card .timeline-branch-track,
  .project-card .timeline-branch-flow,
  .project-card--right .timeline-branch-track,
  .project-card--right .timeline-branch-flow {
    transform-origin: left center;
    background: linear-gradient(90deg, var(--teal), rgba(33, 231, 240, 0.08));
  }

  .project-card .timeline-branch-node,
  .project-card--right .timeline-branch-node {
    left: -6px;
    right: auto;
  }

  .project-card .project-card-shell,
  .project-card--right .project-card-shell {
    transform: translate3d(-20px, 0, 0);
    clip-path: inset(0 100% 0 0);
  }

  .project-card.is-branch-active .project-card-shell,
  .project-card--right.is-branch-active .project-card-shell {
    transform: translate3d(0, 0, 0);
    clip-path: inset(0);
  }

  .project-card.is-branch-active .timeline-branch-flow,
  .project-card--right.is-branch-active .timeline-branch-flow {
    animation-name: branchEnergyRight;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 126px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 16px;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 2;
    width: 100%;
  }

  .nav-link {
    flex: 1;
    min-width: 0;
  }

  .language-switcher {
    grid-column: 2;
    justify-self: end;
  }

  .language-button {
    min-width: 108px;
  }

  .hero,
  .portfolio-hero,
  .contact-section,
  .section,
  .timeline-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-stats div {
    min-height: 100px;
  }

  .profile-panel,
  .skill-card,
  .resume-item,
  .contact-item,
  .project-content,
  .cta-band {
    padding: 22px;
  }

  .resume-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cta-band {
    margin-left: 18px;
    margin-right: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .scroll-cue {
    right: 18px;
    bottom: 20px;
    gap: 8px;
  }

  .scroll-cue-text {
    font-size: 0.7rem;
  }

  .scroll-cue-pointers span {
    width: 11px;
    height: 11px;
  }
}
