:root {
  color-scheme: dark;
  --black: #050505;
  --page: #050505;
  --ink: #f7f7f7;
  --soft: #cfcfcf;
  --muted: #9c9c9c;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --accent: #d9fff2;
  --accent-ink: #050505;
  --topbar-bg: rgba(5, 5, 5, 0.48);
  --topbar-text: rgba(255, 255, 255, 0.9);
  --section-bg: linear-gradient(180deg, rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0.94)), linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
  --canvas-bg: radial-gradient(circle at 50% 8%, #1b1b1b, #050505 54%);
  --grid-line: rgba(255, 255, 255, 0.04);
  --grid-line-2: rgba(255, 255, 255, 0.035);
  --ambient-one: rgba(217, 255, 242, 0.1);
  --ambient-two: rgba(255, 255, 255, 0.07);
  --nav-text: rgba(255, 255, 255, 0.66);
  --dim-text: rgba(255, 255, 255, 0.72);
  --body-text: rgba(255, 255, 255, 0.68);
  --strong-text: rgba(255, 255, 255, 0.82);
  --chip-bg: rgba(255, 255, 255, 0.045);
  --chip-bg-strong: rgba(255, 255, 255, 0.12);
  --button-solid-bg: #f5f5f5;
  --button-solid-text: #050505;
  --frame-bg: #111111;
  --dark-glass: rgba(5, 5, 5, 0.5);
  --tag-bg: rgba(5, 5, 5, 0.74);
  --tag-bg-hover: rgba(5, 5, 5, 0.86);
  --card-gradient: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

:root[data-theme="light"] {
  color-scheme: light;
  --black: #050505;
  --page: #f4f4f0;
  --ink: #111111;
  --soft: #2c2c2c;
  --muted: #626262;
  --line: rgba(0, 0, 0, 0.16);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --accent: #1f6f60;
  --accent-ink: #ffffff;
  --topbar-bg: rgba(244, 244, 240, 0.72);
  --topbar-text: rgba(17, 17, 17, 0.9);
  --section-bg: linear-gradient(180deg, rgba(244, 244, 240, 0.78), rgba(238, 238, 232, 0.96)), linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.035), transparent);
  --canvas-bg: radial-gradient(circle at 50% 8%, #ffffff, #efefea 58%);
  --grid-line: rgba(0, 0, 0, 0.055);
  --grid-line-2: rgba(0, 0, 0, 0.04);
  --ambient-one: rgba(31, 111, 96, 0.12);
  --ambient-two: rgba(0, 0, 0, 0.055);
  --nav-text: rgba(17, 17, 17, 0.66);
  --dim-text: rgba(17, 17, 17, 0.72);
  --body-text: rgba(17, 17, 17, 0.68);
  --strong-text: rgba(17, 17, 17, 0.82);
  --chip-bg: rgba(255, 255, 255, 0.72);
  --chip-bg-strong: rgba(255, 255, 255, 0.96);
  --button-solid-bg: #111111;
  --button-solid-text: #ffffff;
  --frame-bg: #e6e6df;
  --dark-glass: rgba(255, 255, 255, 0.68);
  --tag-bg: rgba(255, 255, 255, 0.84);
  --tag-bg-hover: rgba(255, 255, 255, 0.96);
  --card-gradient: linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.6));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

@media (pointer: fine) {
  body,
  a,
  button {
    cursor: none;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line-2) 1px, transparent 1px),
    radial-gradient(circle at 70% 12%, var(--ambient-one), transparent 22%),
    radial-gradient(circle at 18% 82%, var(--ambient-two), transparent 24%);
  background-size: 76px 76px, 76px 76px, auto, auto;
  background-position:
    calc(var(--bg-shift, 0px)) 0,
    calc(var(--bg-shift, 0px) * 0.6) 0,
    0 0,
    0 0;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.82), transparent 92%);
  filter: blur(var(--scroll-blur, 0px));
}

body::after {
  content: "";
  position: fixed;
  inset: -20% -10%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.45;
  background:
    linear-gradient(120deg, transparent 35%, color-mix(in srgb, var(--accent) 22%, transparent) 45%, transparent 60%),
    linear-gradient(120deg, transparent 40%, color-mix(in srgb, var(--accent) 16%, transparent) 52%, transparent 70%);
  background-size: 140% 140%, 180% 180%;
  transform: translateX(calc(var(--bg-shift, 0px) * 0.6));
  mix-blend-mode: screen;
}

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

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--canvas-bg);
}

#root {
  isolation: isolate;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(217, 255, 242, 0.12), transparent 26%),
    var(--page);
  transition: opacity 520ms ease, visibility 520ms ease, transform 520ms ease;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  pointer-events: none;
}

.preloader__inner {
  display: grid;
  justify-items: center;
  gap: 14px;
  transform: translateY(-10px);
}

.preloader__mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 2rem;
  font-weight: 900;
  transform: skewX(-8deg) scale(0.86);
  animation: preloaderPop 920ms cubic-bezier(0.16, 1, 0.3, 1) forwards, preloaderPulse 920ms ease-in-out infinite 920ms;
  box-shadow: 0 0 60px rgba(217, 255, 242, 0.18);
}

.preloader__word {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  animation: preloaderWord 620ms ease forwards 360ms;
}

.preloader__bar {
  width: 180px;
  height: 3px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.preloader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--ink));
  transform-origin: left;
  transform: scaleX(0);
  animation: preloaderBar 1150ms cubic-bezier(0.16, 1, 0.3, 1) forwards 220ms;
}

.cursor-dot,
.cursor-aura {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  pointer-events: none;
  border-radius: 999px;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--ink);
  mix-blend-mode: difference;
  transition: width 180ms ease, height 180ms ease, margin 180ms ease, background 180ms ease;
}

.cursor-aura {
  width: 98px;
  height: 98px;
  margin: -49px 0 0 -49px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 58%);
  filter: blur(0.2px);
  opacity: 0.82;
  transition: width 220ms ease, height 220ms ease, margin 220ms ease, opacity 220ms ease, border-color 220ms ease;
}

body.is-hovering-hotspot .cursor-dot {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: var(--accent);
}

body.is-hovering-hotspot .cursor-aura {
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-color: color-mix(in srgb, var(--accent) 78%, transparent);
  opacity: 1;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px 6vw;
  color: var(--topbar-text);
  backdrop-filter: blur(18px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 148px;
}

.brand-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 2px;
  color: var(--ink);
  filter: drop-shadow(0 0 18px rgba(217, 255, 242, 0.08));
}

.brand-logo__mark,
.brand-logo__word {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-weight: 900;
}

.brand-logo__mark {
  min-width: 34px;
  min-height: 30px;
  justify-content: center;
  color: var(--black);
  background: var(--accent);
  border-radius: 8px;
  font-size: 1rem;
  transform: skewX(-8deg);
}

.brand-logo__word {
  color: var(--ink);
  font-size: 1.06rem;
  letter-spacing: 0;
}

.brand-logo::after {
  content: "";
  position: absolute;
  inset: -4px -6px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  opacity: 0;
  transform: scaleX(0.9);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.brand:hover .brand-logo::after {
  opacity: 1;
  transform: scaleX(1);
  border-color: rgba(217, 255, 242, 0.4);
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--nav-text);
  font-size: 0.92rem;
  font-weight: 700;
}

nav a,
.contact-row a,
.language-toggle,
.theme-toggle {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

nav a:hover,
.contact-row a:hover {
  color: var(--accent);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--chip-bg);
  color: var(--nav-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
}

.language-toggle:hover {
  color: var(--ink);
  border-color: rgba(217, 255, 242, 0.48);
  background: var(--chip-bg-strong);
  transform: scale(1.08) translateY(-2px);
}

.language-toggle .is-active {
  color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--chip-bg);
  color: var(--nav-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: rgba(217, 255, 242, 0.48);
  background: var(--chip-bg-strong);
  transform: scale(1.08) translateY(-2px);
}

.theme-toggle__track {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: var(--line);
}

.theme-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 180ms ease, background 180ms ease;
}

:root[data-theme="light"] .theme-toggle__knob {
  transform: translateX(16px);
}

main {
  position: relative;
}

.hero {
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 52px;
  padding: 128px 6vw 74px;
}

.hero__content,
.section-heading,
.stat-grid,
.project-list,
.contact-row {
  width: min(1180px, 100%);
}

.hero__content,
.profile-panel {
  transform-origin: center;
  will-change: transform;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: 7.4rem;
  line-height: 0.86;
  font-weight: 900;
}

.animated-name {
  display: block;
  white-space: nowrap;
  perspective: 900px;
}

.animated-name__letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(44px) rotateX(72deg) scale(0.78);
  animation: nameLetterIn 780ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(260ms + var(--letter-delay));
  text-shadow: 0 0 0 rgba(217, 255, 242, 0);
}

.animated-name__letter:hover {
  color: var(--accent);
  transform: translateY(-8px) rotateX(0deg) scale(1.12);
  text-shadow: 0 0 32px rgba(217, 255, 242, 0.28);
  transition: color 160ms ease, transform 160ms ease, text-shadow 160ms ease;
}

.intro {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--dim-text);
  font-size: 1.28rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
  border: 1px solid var(--line);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button::after,
.contact-row a::after,
.stat-card::before,
.project-card::before,
.profile-panel::after,
.signal-row span::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(217, 255, 242, 0.28), transparent 34%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.button::before,
.contact-row a::before {
  content: "";
  position: absolute;
  inset: -80% auto -80% -45%;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  opacity: 0;
  transform: skewX(-18deg) translateX(0);
}

.button:hover {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.1) translateY(-4px);
  border-color: rgba(217, 255, 242, 0.55);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.56), 0 0 34px rgba(217, 255, 242, 0.18);
}

.button:hover::before,
.contact-row a:hover::before {
  opacity: 1;
  transform: skewX(-18deg) translateX(420%);
  transition: transform 620ms ease, opacity 180ms ease;
}

.button:active,
.contact-row a:active {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(0.97) translateY(0);
}

.button:hover::after,
.contact-row a:hover::after,
.stat-card:hover::before,
.project-card:hover::before,
.profile-panel:hover::after,
.signal-row span:hover::after {
  opacity: 1;
}

.button--solid {
  background: var(--button-solid-bg);
  color: var(--button-solid-text);
}

.button--ghost {
  background: var(--chip-bg);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.signal-row span {
  position: relative;
  overflow: hidden;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--chip-bg);
  color: var(--dim-text);
  font-size: 0.84rem;
  font-weight: 800;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.signal-row span:hover {
  z-index: 2;
  color: var(--ink);
  background: var(--chip-bg-strong);
  border-color: rgba(217, 255, 242, 0.48);
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.12) translateY(-3px);
}

.profile-panel {
  position: relative;
  justify-self: end;
  width: min(380px, 100%);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    var(--card-gradient),
    var(--dark-glass);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.52);
  transform: translateY(12px);
  transition: border-color 220ms ease, box-shadow 220ms ease, filter 220ms ease;
  will-change: transform;
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(217, 255, 242, 0.42), transparent 38%, rgba(255, 255, 255, 0.22));
  opacity: 0.5;
}

.profile-panel::after {
  border-radius: 8px;
}

.profile-panel:hover {
  --hover-scale: 1.07;
  border-color: rgba(217, 255, 242, 0.56);
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.64), 0 0 46px rgba(217, 255, 242, 0.15);
  filter: contrast(1.04);
}

.profile-frame {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--frame-bg);
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.1);
  transform: scale(1.01);
  transition: transform 280ms ease, filter 280ms ease;
}

.profile-panel:hover .profile-frame img {
  filter: grayscale(1) contrast(1.22) brightness(1.1);
  transform: scale(1.08);
}

.profile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 18px 4px 2px;
  color: var(--muted);
}

.profile-meta strong {
  color: var(--ink);
  font-size: 1.55rem;
}

.orbit-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tag-bg);
  color: var(--strong-text);
  font-size: 0.78rem;
  font-weight: 900;
  animation: floatTag 4.4s ease-in-out infinite;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.profile-panel:hover .orbit-tag {
  border-color: rgba(217, 255, 242, 0.58);
  background: var(--tag-bg-hover);
  box-shadow: 0 0 24px rgba(217, 255, 242, 0.12);
}

.orbit-tag--one {
  top: 12%;
  left: -34px;
}

.orbit-tag--two {
  right: -26px;
  bottom: 26%;
  animation-delay: 1.4s;
}

.orbit-tag--three {
  left: 24px;
  bottom: -18px;
  animation-delay: 0.7s;
}

.impact,
.projects,
.contact {
  padding: 96px 6vw;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at calc(20% + var(--scroll-pct, 0%)) 15%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%),
    var(--section-bg);
}

.section-heading h2 {
  max-width: 780px;
  margin: 0 0 34px;
  font-size: 3.35rem;
  line-height: 1.03;
  font-weight: 900;
}

.stat-grid,
.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.project-card {
  position: relative;
  min-height: 250px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    var(--card-gradient),
    var(--panel);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.stat-card {
  animation: cardDrift 7s ease-in-out infinite;
}

.project-card {
  animation: cardDrift 8s ease-in-out infinite;
}

.stat-card:nth-child(2),
.project-card:nth-child(2) {
  animation-delay: 0.7s;
}

.stat-card:nth-child(3),
.project-card:nth-child(3) {
  animation-delay: 1.4s;
}

.project-card:nth-child(4) {
  animation-delay: 2.1s;
}

.stat-card::after,
.project-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 20px auto;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(217, 255, 242, 0.16);
  border-radius: 8px;
  transform: rotate(18deg);
}

.stat-card::before,
.project-card::before {
  z-index: 0;
}

.stat-card .project-mark,
.project-card .project-mark,
.stat-card::after,
.project-card::after {
  transition: transform 220ms ease, border-color 220ms ease, opacity 220ms ease;
}

.project-mark {
  position: absolute;
  top: 28px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transform: rotate(18deg);
}

.stat-card:hover,
.project-card:hover {
  z-index: 3;
  animation: none;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.055) translateY(-8px);
  background: var(--panel-strong);
  border-color: rgba(217, 255, 242, 0.42);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), 0 0 40px rgba(217, 255, 242, 0.11);
}

.stat-card:hover::after,
.project-card:hover::after,
.project-card:hover .project-mark {
  opacity: 1;
  border-color: rgba(217, 255, 242, 0.42);
  transform: rotate(36deg) scale(1.2);
}

.stat-card:active,
.project-card:active {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(0.985);
}

.stat-card span,
.project-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 28px;
  font-size: 3.75rem;
  line-height: 0.95;
  font-weight: 900;
}

.stat-card p,
.project-card p {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: var(--body-text);
  line-height: 1.65;
}

.project-card h3 {
  position: relative;
  z-index: 1;
  margin: 54px 0 0;
  font-size: 1.58rem;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-row a {
  position: relative;
  overflow: hidden;
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--chip-bg);
  color: var(--strong-text);
  font-weight: 800;
  overflow-wrap: anywhere;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1);
}

.contact-row a:hover {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.055) translateY(-4px);
  background: var(--chip-bg-strong);
  border-color: rgba(217, 255, 242, 0.42);
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes floatTag {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes cardDrift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes nameLetterIn {
  0% {
    opacity: 0;
    transform: translateY(44px) rotateX(72deg) scale(0.78);
    filter: blur(10px);
  }

  65% {
    opacity: 1;
    transform: translateY(-8px) rotateX(-8deg) scale(1.04);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes preloaderPop {
  0% {
    opacity: 0;
    transform: skewX(-8deg) scale(0.62) rotateX(50deg);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: skewX(-8deg) scale(1) rotateX(0deg);
    filter: blur(0);
  }
}

@keyframes preloaderPulse {
  0%,
  100% {
    box-shadow: 0 0 42px rgba(217, 255, 242, 0.16);
  }

  50% {
    box-shadow: 0 0 88px rgba(217, 255, 242, 0.28);
  }
}

@keyframes preloaderWord {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloaderBar {
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  .topbar {
    position: relative;
    padding: 16px 22px;
  }

  .brand {
    min-width: 136px;
  }

  .brand-logo {
    min-height: 34px;
  }

  nav {
    gap: 12px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 72px 22px 58px;
  }

  h1 {
    font-size: 4.5rem;
  }

  .intro {
    font-size: 1.08rem;
  }

  .profile-panel {
    justify-self: start;
    width: min(340px, 100%);
  }

  .orbit-tag--one {
    left: 12px;
    top: -18px;
  }

  .orbit-tag--two {
    right: 12px;
  }

  .impact,
  .projects,
  .contact {
    padding: 72px 22px;
  }

  .section-heading h2 {
    font-size: 2.5rem;
  }

  .stat-grid,
  .project-list,
  .contact-row {
    grid-template-columns: 1fr;
  }

  .cursor-dot,
  .cursor-aura {
    display: none;
  }
}

@media (max-width: 520px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    row-gap: 10px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .section-heading h2 {
    font-size: 2.08rem;
  }

  .stat-card strong {
    font-size: 2.85rem;
  }

  .hero__actions .button {
    min-width: calc(50% - 8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
