:root {
  --font-display: "Oxanium", sans-serif;
  --font-body: "Sora", sans-serif;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-deep: 0 28px 90px rgba(5, 19, 34, 0.36);
  --shadow-card: 0 18px 50px rgba(5, 19, 34, 0.22);
  --page-width: calc(100% - 40px);
}

body[data-theme="dark"] {
  --bg-main: #040d18;
  --bg-secondary: rgba(10, 24, 42, 0.78);
  --bg-panel: rgba(8, 21, 37, 0.72);
  --bg-panel-strong: rgba(12, 28, 47, 0.92);
  --bg-soft: rgba(255, 255, 255, 0.04);
  --text-primary: #f5fbff;
  --text-secondary: #9fb8ca;
  --accent: #8be2ff;
  --accent-strong: #2fb6ff;
  --accent-soft: rgba(88, 208, 255, 0.18);
  --border: rgba(144, 221, 255, 0.14);
  --border-strong: rgba(144, 221, 255, 0.28);
  --button-text: #04121e;
  --footer-bg: rgba(8, 19, 33, 0.78);
}

body[data-theme="light"] {
  --bg-main: #edf8ff;
  --bg-secondary: rgba(255, 255, 255, 0.78);
  --bg-panel: rgba(255, 255, 255, 0.72);
  --bg-panel-strong: rgba(253, 255, 255, 0.92);
  --bg-soft: rgba(0, 53, 85, 0.04);
  --text-primary: #102537;
  --text-secondary: #507082;
  --accent: #18a8ef;
  --accent-strong: #0a8fda;
  --accent-soft: rgba(24, 168, 239, 0.14);
  --border: rgba(13, 81, 121, 0.12);
  --border-strong: rgba(13, 81, 121, 0.22);
  --button-text: #f8fdff;
  --footer-bg: rgba(255, 255, 255, 0.82);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  --mouse-x: 50vw;
  --mouse-y: 22vh;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-primary);
  background:
    radial-gradient(circle at 12% 16%, rgba(76, 185, 255, 0.18), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(139, 226, 255, 0.12), transparent 22%),
    linear-gradient(180deg, var(--bg-main), color-mix(in srgb, var(--bg-main) 86%, #0a1c30 14%));
  overflow-x: hidden;
  transition: background 260ms ease, color 260ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 72px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.014) 0,
      rgba(255, 255, 255, 0.014) 1px,
      transparent 1px,
      transparent 72px
    );
  opacity: 0.32;
  mix-blend-mode: soft-light;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 260px at var(--mouse-x) var(--mouse-y), rgba(139, 226, 255, 0.18), transparent 60%),
    radial-gradient(circle 480px at calc(var(--mouse-x) + 120px) calc(var(--mouse-y) + 40px), var(--accent-soft), transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.82;
  filter: blur(18px);
}

body[data-theme="light"]::after {
  opacity: 0.52;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

body.is-page-animating .site-shell::before {
  z-index: 35;
  background: linear-gradient(110deg, transparent 24%, rgba(255, 255, 255, 0.16) 50%, transparent 76%);
  transform: translateX(-120%) skewX(-18deg);
  animation: load-sweep 1.2s var(--ease-out) forwards;
}

body.is-page-animating .site-shell::after {
  z-index: 34;
  background: radial-gradient(circle at center, rgba(139, 226, 255, 0.2), transparent 45%);
  animation: load-bloom 1s var(--ease-smooth) forwards;
}

.topbar-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 18px 0 0;
}

body.is-preload .topbar-shell,
body.is-preload .page > *,
body.is-preload .site-footer {
  opacity: 0;
  filter: blur(18px);
  transform: translateY(54px) scale(0.985);
}

body.is-page-animating .topbar-shell,
body.is-page-animating .page > *,
body.is-page-animating .site-footer {
  animation: load-block 1s var(--ease-smooth) both;
}

body.is-page-animating .topbar-shell {
  animation-delay: 40ms;
}

body.is-page-animating .page > *:nth-child(1) {
  animation-delay: 170ms;
}

body.is-page-animating .page > *:nth-child(2) {
  animation-delay: 320ms;
}

body.is-page-animating .page > *:nth-child(3) {
  animation-delay: 470ms;
}

body.is-page-animating .page > *:nth-child(4) {
  animation-delay: 620ms;
}

body.is-page-animating .page > *:nth-child(5) {
  animation-delay: 760ms;
}

body.is-page-animating .site-footer {
  animation-delay: 900ms;
}

.topbar {
  position: relative;
  width: var(--page-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.95rem 1.05rem 1.05rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 38%),
    var(--bg-secondary);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

body.is-preload .topbar > * {
  opacity: 0;
  transform: translateY(18px);
}

body.is-page-animating .topbar > * {
  animation: load-topbar-item 720ms var(--ease-smooth) both;
}

body.is-page-animating .topbar > *:nth-child(1) {
  animation-delay: 160ms;
}

body.is-page-animating .topbar > *:nth-child(2) {
  animation-delay: 240ms;
}

body.is-page-animating .topbar > *:nth-child(3) {
  animation-delay: 320ms;
}

.topbar::before,
.topbar::after {
  content: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: fit-content;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(74, 193, 255, 0.32));
}

.main-nav,
.control-bar,
.language-switcher,
.hero-actions,
.hero-chip-row,
.project-grid,
.feature-grid,
.footer-links {
  display: flex;
}

.main-nav {
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.main-nav a {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--text-secondary);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-current {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.control-bar {
  align-items: center;
  gap: 0.7rem;
}

.language-switcher {
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.lang-btn,
.theme-toggle,
.primary-btn,
.ghost-btn,
.footer-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 220ms var(--ease-out),
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.lang-btn {
  min-width: 48px;
  padding: 0.65rem 0.7rem;
  color: var(--text-secondary);
  background: transparent;
}

.lang-btn.is-active {
  color: var(--button-text);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.theme-toggle {
  padding: 0.85rem 1rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.lang-btn:hover,
.lang-btn:focus-visible,
.primary-btn:hover,
.primary-btn:focus-visible,
.ghost-btn:hover,
.ghost-btn:focus-visible,
.footer-btn:hover,
.footer-btn:focus-visible,
.inline-link:hover,
.inline-link:focus-visible {
  transform: translateY(-2px);
}

.page {
  width: var(--page-width);
  margin: 0 auto;
  padding-bottom: 3rem;
}

.page--home {
  padding-top: 1.2rem;
}

.page--subpage {
  padding-top: 2rem;
}

.trailer-intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(91, 218, 255, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(4, 12, 22, 0.98), rgba(5, 15, 26, 0.98));
  transition: opacity 720ms var(--ease-smooth), visibility 720ms var(--ease-smooth);
}

.trailer-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-shutter {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%),
    rgba(5, 14, 25, 0.92);
}

.intro-shutter--left {
  left: 0;
  animation: shutter-left 2.8s var(--ease-smooth) forwards;
}

.intro-shutter--right {
  right: 0;
  animation: shutter-right 2.8s var(--ease-smooth) forwards;
}

.intro-noise {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 2px,
      transparent 2px,
      transparent 4px
    );
  animation: scan 2.8s linear infinite;
  opacity: 0.62;
}

.intro-beam {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 90deg, transparent, rgba(87, 217, 255, 0.2), transparent 24%);
  animation: beam-spin 3.6s linear infinite;
  opacity: 0.7;
}

.intro-content {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.95rem;
  width: min(720px, calc(100vw - 34px));
  padding: 2.6rem 1.6rem;
  border: 1px solid rgba(139, 226, 255, 0.18);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    rgba(6, 16, 28, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-deep);
}

.intro-kicker,
.section-kicker,
.project-badge,
.contact-panel__title,
.hero-chip,
.floating-panel span,
.profile-line span {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--accent);
}

.intro-logo {
  width: clamp(108px, 18vw, 156px);
  filter: drop-shadow(0 0 34px rgba(88, 208, 255, 0.45));
  animation: logo-pulse 2s var(--ease-out) infinite;
}

.intro-title-group {
  display: grid;
  justify-items: center;
  line-height: 0.92;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.intro-title-group span:first-child {
  transform: translateX(-0.2em);
}

.intro-title-group span:last-child {
  transform: translateX(0.2em);
}

.intro-line {
  margin: 0;
  color: #d8f4ff;
}

.intro-skip {
  padding: 0.8rem 1.2rem;
  color: var(--text-primary);
  border: 1px solid rgba(139, 226, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.hero-section,
.subhero-section {
  position: relative;
  overflow: hidden;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.95fr);
  gap: clamp(2.2rem, 5vw, 5.8rem);
  align-items: center;
  min-height: calc(100vh - 128px);
  padding: 2.4rem 0 4.6rem;
  --pointer-x: 0px;
  --pointer-y: 0px;
}

.hero-backdrop,
.subhero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translate3d(calc(var(--pointer-x) * 0.008), calc(var(--pointer-y) * -0.008), 0);
  transition: transform 240ms var(--ease-out);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(26px);
}

.hero-orb--one {
  top: 4%;
  left: -10%;
  width: 34vw;
  height: 34vw;
  background: rgba(70, 182, 255, 0.18);
  animation: drift 16s ease-in-out infinite;
}

.hero-orb--two {
  right: -8%;
  bottom: 2%;
  width: 24vw;
  height: 24vw;
  background: rgba(129, 230, 255, 0.16);
  animation: drift 18s ease-in-out infinite reverse;
}

.hero-grid {
  position: absolute;
  inset: auto 0 -6% 0;
  height: 44%;
  background:
    linear-gradient(180deg, transparent, rgba(139, 226, 255, 0.12)),
    repeating-linear-gradient(
      90deg,
      rgba(139, 226, 255, 0.16) 0,
      rgba(139, 226, 255, 0.16) 1px,
      transparent 1px,
      transparent 72px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(139, 226, 255, 0.16) 0,
      rgba(139, 226, 255, 0.16) 1px,
      transparent 1px,
      transparent 72px
    );
  opacity: 0.4;
  transform: perspective(900px) rotateX(78deg) translateY(25%);
  transform-origin: bottom center;
}

.hero-streak {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  filter: blur(1px);
  opacity: 0.8;
}

.hero-streak--one {
  top: 18%;
  left: -10%;
  width: 46%;
  animation: streak 5.4s linear infinite;
}

.hero-streak--two {
  top: 36%;
  right: -10%;
  width: 32%;
  animation: streak 6.2s linear infinite reverse;
}

.hero-copy,
.hero-visual,
.subhero-copy,
.project-card,
.feature-card,
.profile-story,
.profile-stats-card,
.profile-preview-card,
.contact-form,
.contact-panel,
.callout-card {
  position: relative;
  z-index: 1;
}

.hero-chip-row {
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-chip {
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.hero-title,
.subhero-copy h1,
.section-heading h2,
.profile-story h2,
.callout-card h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.98;
}

.load-split {
  display: block;
}

.load-split-word {
  display: inline-flex;
  overflow: hidden;
  margin-right: 0;
}

.load-split-char {
  display: inline-block;
}

.load-split.is-armed .load-split-char {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(1.08em) rotate(8deg);
}

body.is-page-animating .load-split.is-armed .load-split-char {
  animation: load-char 880ms var(--ease-smooth) both;
  animation-delay: calc(var(--split-delay, 240ms) + (var(--char-index) * 28ms));
}

.load-split.is-static .load-split-char,
body.is-page-ready .load-split.is-armed .load-split-char {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.hero-title {
  max-width: 9ch;
  margin-top: 1.15rem;
  font-size: clamp(3rem, 7vw, 6.6rem);
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(68, 198, 255, 0.18);
}

.hero-text,
.subhero-copy p,
.section-heading p,
.project-card p,
.feature-card p,
.profile-story p,
.contact-panel p,
.profile-preview-copy p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-text {
  max-width: 58ch;
  margin: 1.2rem 0 0;
}

.hero-actions,
.section-actions,
.footer-links {
  gap: 1rem;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.45rem;
  font-weight: 600;
}

.primary-btn {
  color: var(--button-text);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 38px rgba(34, 151, 223, 0.32);
}

.ghost-btn,
.footer-btn,
.inline-link {
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.logo-stage {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
  margin: 1rem auto 0;
  display: grid;
  place-items: center;
  transform:
    translate3d(calc(var(--pointer-x) * 0.02), calc(var(--pointer-y) * -0.02), 0)
    rotateX(calc(var(--pointer-y) * -0.01))
    rotateY(calc(var(--pointer-x) * 0.01));
  transform-style: preserve-3d;
  animation: float-slow 7s ease-in-out infinite;
}

.logo-halo {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 226, 255, 0.22), transparent 62%);
  filter: blur(10px);
}

.logo-stage img {
  position: relative;
  z-index: 2;
  width: 52%;
  filter: drop-shadow(0 0 46px rgba(84, 207, 255, 0.42));
}

.logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(139, 226, 255, 0.18);
}

.logo-ring--outer {
  animation: spin 18s linear infinite;
}

.logo-ring--inner {
  inset: 15%;
  border-style: dashed;
  animation: spin 12s linear infinite reverse;
}

.logo-ring::before,
.logo-ring::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, var(--accent));
  box-shadow: 0 0 20px rgba(139, 226, 255, 0.6);
}

.logo-ring::before {
  left: -8px;
  top: calc(50% - 8px);
}

.logo-ring::after {
  right: -8px;
  top: calc(50% - 8px);
}

.logo-scan {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  filter: blur(6px);
  animation: scan-ring 3.2s linear infinite;
}

.floating-panel {
  position: absolute;
  width: min(240px, 54%);
  padding: 1.2rem 1.2rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--bg-panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.floating-panel strong,
.project-card h3,
.feature-card h3 {
  display: block;
  margin: 0.7rem 0 0.45rem;
  font-size: 1.28rem;
}

.floating-panel p,
.profile-preview-card strong,
.profile-stats-card strong {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.floating-panel--one {
  top: 14%;
  left: 0;
  animation: float-card 6.8s ease-in-out infinite;
}

.floating-panel--two {
  right: 0;
  bottom: 7%;
  animation: float-card 7.4s ease-in-out infinite reverse;
}

.section-block {
  padding: 3.6rem 0;
}

.section-block--compact {
  padding-top: 1.4rem;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 2rem;
}

.section-heading h2,
.profile-story h2,
.callout-card h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.project-grid {
  flex-wrap: wrap;
  gap: 1.2rem;
}

.project-grid--full .project-card,
.feature-grid .feature-card {
  min-height: 220px;
}

.project-card,
.feature-card,
.profile-story,
.profile-stats-card,
.profile-preview-card,
.contact-form,
.contact-panel,
.callout-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%),
    var(--bg-panel);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.project-card::before,
.feature-card::before,
.profile-preview-card::before,
.contact-panel::before,
.callout-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(139, 226, 255, 0.16), transparent 34%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.project-card:hover::before,
.feature-card:hover::before,
.profile-preview-card:hover::before,
.contact-panel:hover::before,
.callout-card:hover::before {
  opacity: 1;
}

.project-card,
.feature-card {
  flex: 1 1 280px;
  padding: 1.45rem;
}

.section-actions {
  margin-top: 1.4rem;
}

.profile-preview-grid,
.contact-layout,
.profile-page-grid {
  display: grid;
  gap: 1.2rem;
}

.profile-preview-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
}

.profile-preview-card,
.contact-form,
.contact-panel,
.profile-story,
.profile-stats-card,
.callout-card {
  padding: 1.5rem;
}

.profile-line + .profile-line {
  margin-top: 1rem;
}

.profile-line strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.2rem;
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.5rem;
}

label span,
label input,
label textarea {
  color: var(--text-secondary);
}

label input,
label textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  resize: vertical;
}

label input:focus,
label textarea:focus {
  outline: 2px solid rgba(88, 208, 255, 0.22);
  border-color: var(--accent-strong);
}

.contact-panel {
  display: grid;
  gap: 0.9rem;
}

.contact-panel__note {
  margin: 0.5rem 0 0;
}

.inline-link {
  width: fit-content;
  padding: 0.8rem 1rem;
  border-radius: 999px;
}

.subhero-section {
  padding: 2rem 0 2.6rem;
}

.subhero-copy {
  position: relative;
  max-width: 800px;
  padding: 2rem 0 1rem;
}

.subhero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  text-transform: uppercase;
}

.profile-page-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.feature-grid {
  flex-wrap: wrap;
  gap: 1.2rem;
}

.feature-card {
  padding: 1.45rem;
}

.callout-section {
  padding-top: 1rem;
}

.callout-card {
  max-width: 920px;
  margin: 0 auto;
}

.site-footer {
  width: var(--page-width);
  margin: 0 auto;
  padding: 0 0 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--text-secondary);
}

body.is-preload .footer-links > * {
  opacity: 0;
  transform: translateY(18px);
}

body.is-page-animating .footer-links > * {
  animation: load-topbar-item 760ms var(--ease-smooth) both;
}

body.is-page-animating .footer-links > *:nth-child(1) {
  animation-delay: 980ms;
}

body.is-page-animating .footer-links > *:nth-child(2) {
  animation-delay: 1060ms;
}

body.is-page-animating .footer-links > *:nth-child(3) {
  animation-delay: 1140ms;
}

.footer-btn {
  min-width: 132px;
  background: var(--footer-bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease;
}

.tilt-card.is-hovered {
  box-shadow: 0 22px 60px rgba(11, 82, 125, 0.22);
}

.reveal-on-scroll {
  opacity: 0;
  filter: blur(10px);
  will-change: transform, opacity, filter;
  transition:
    opacity 780ms var(--ease-smooth),
    transform 780ms var(--ease-smooth),
    filter 780ms var(--ease-smooth);
}

.reveal-up {
  transform: translateY(42px);
}

.reveal-left {
  transform: translateX(40px);
}

.reveal-right {
  transform: translateX(-40px);
}

.reveal-scale {
  transform: scale(0.92);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate(0, 0) scale(1);
}

@keyframes scan {
  0% {
    transform: translateY(-8%);
  }
  100% {
    transform: translateY(8%);
  }
}

@keyframes load-sweep {
  0% {
    opacity: 0;
    transform: translateX(-120%) skewX(-18deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(120%) skewX(-18deg);
  }
}

@keyframes load-bloom {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }
  30% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes load-block {
  0% {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(54px) scale(0.985);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes load-topbar-item {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes load-char {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(1.08em) rotate(8deg);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes shutter-left {
  0%,
  38% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-108%);
  }
}

@keyframes shutter-right {
  0%,
  38% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(108%);
  }
}

@keyframes beam-spin {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.12);
  }
}

@keyframes logo-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes scan-ring {
  0% {
    transform: rotate(0deg);
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0.2;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2vw, -1vw, 0) scale(1.06);
  }
}

@keyframes streak {
  0% {
    transform: translateX(-12vw);
    opacity: 0;
  }
  10%,
  80% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(40vw);
    opacity: 0;
  }
}

@keyframes float-slow {
  0%,
  100% {
    transform:
      translate3d(calc(var(--pointer-x) * 0.02), calc(var(--pointer-y) * -0.02), 0)
      rotateX(calc(var(--pointer-y) * -0.01))
      rotateY(calc(var(--pointer-x) * 0.01));
  }
  50% {
    transform:
      translate3d(calc(var(--pointer-x) * 0.02), calc(var(--pointer-y) * -0.02 - 10px), 0)
      rotateX(calc(var(--pointer-y) * -0.01))
      rotateY(calc(var(--pointer-x) * 0.01));
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1140px) {
  .topbar {
    flex-wrap: wrap;
    border-radius: 36px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-section,
  .profile-preview-grid,
  .contact-layout,
  .profile-page-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: none;
  }

  .hero-visual {
    min-height: 460px;
  }
}

@media (max-width: 780px) {
  .topbar-shell {
    padding-top: 12px;
  }

  .topbar {
    padding: 1rem;
  }

  .control-bar {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .main-nav a {
    padding: 0.75rem 0.9rem;
  }

  .page,
  .site-footer {
    width: calc(100% - 24px);
  }

  .hero-section {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-chip-row,
  .hero-actions,
  .project-grid,
  .feature-grid,
  .footer-links {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .footer-btn {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .logo-stage {
    width: min(100%, 360px);
  }

  .floating-panel {
    position: relative;
    width: 100%;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    animation: none;
  }

  .subhero-section {
    padding-top: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
