:root {
  color-scheme: light dark;
  --bg: #f7fbff;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --text: #101820;
  --muted: #536474;
  --line: rgba(16, 24, 32, 0.13);
  --cyan: #007c92;
  --primary: #007c92;
  --coral: #c84b3d;
  --gold: #a06a00;
  --violet: #6d4bd8;
  --accent-text: #f8fdff;
  --header-bg: rgba(247, 251, 255, 0.78);
  --soft-bg: rgba(16, 24, 32, 0.055);
  --grid-line: rgba(16, 24, 32, 0.06);
  --scan-line: rgba(16, 24, 32, 0.028);
  --selection-text: #f8fdff;
  --shadow: 0 24px 90px rgba(23, 36, 48, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05070a;
    --panel: rgba(16, 22, 31, 0.72);
    --panel-strong: rgba(22, 31, 45, 0.88);
    --text: #edf7ff;
    --muted: #9fb0c1;
    --line: rgba(255, 255, 255, 0.13);
    --cyan: #4de7ff;
    --primary: #4de7ff;
    --coral: #ff7a6b;
    --gold: #ffd166;
    --violet: #b99cff;
    --accent-text: #031014;
    --header-bg: rgba(5, 7, 10, 0.78);
    --soft-bg: rgba(255, 255, 255, 0.055);
    --grid-line: rgba(255, 255, 255, 0.045);
    --scan-line: rgba(255, 255, 255, 0.025);
    --selection-text: #021014;
    --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  }
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f7fbff;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --text: #101820;
  --muted: #536474;
  --line: rgba(16, 24, 32, 0.13);
  --cyan: #007c92;
  --primary: #007c92;
  --coral: #c84b3d;
  --gold: #a06a00;
  --violet: #6d4bd8;
  --accent-text: #f8fdff;
  --header-bg: rgba(247, 251, 255, 0.78);
  --soft-bg: rgba(16, 24, 32, 0.055);
  --grid-line: rgba(16, 24, 32, 0.06);
  --scan-line: rgba(16, 24, 32, 0.028);
  --selection-text: #f8fdff;
  --shadow: 0 24px 90px rgba(23, 36, 48, 0.15);
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05070a;
  --panel: rgba(16, 22, 31, 0.72);
  --panel-strong: rgba(22, 31, 45, 0.88);
  --text: #edf7ff;
  --muted: #9fb0c1;
  --line: rgba(255, 255, 255, 0.13);
  --cyan: #4de7ff;
  --primary: #4de7ff;
  --coral: #ff7a6b;
  --gold: #ffd166;
  --violet: #b99cff;
  --accent-text: #031014;
  --header-bg: rgba(5, 7, 10, 0.78);
  --soft-bg: rgba(255, 255, 255, 0.055);
  --grid-line: rgba(255, 255, 255, 0.045);
  --scan-line: rgba(255, 255, 255, 0.025);
  --selection-text: #021014;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(77, 231, 255, 0.1), transparent 28%),
    linear-gradient(315deg, rgba(255, 122, 107, 0.08), transparent 28%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(0deg, var(--scan-line), var(--scan-line) 1px, transparent 1px, transparent 5px),
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 20%), rgba(77, 231, 255, 0.16), transparent 34rem);
}

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

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  color: var(--selection-text);
  background: var(--cyan);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.cursor-dot {
  position: fixed;
  z-index: 20;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(77, 231, 255, 0.65);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease;
}

.cursor-dot.is-visible {
  opacity: 1;
}

.cursor-dot.is-active {
  width: 42px;
  height: 42px;
  border-color: rgba(169, 255, 104, 0.75);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  min-height: 70px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--header-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-action,
.button,
.contact-grid a {
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

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

.brand:hover,
.button:hover,
.contact-grid a:hover,
.header-action:hover {
  transform: translateY(-2px);
}

.brand-mark {
  display: block;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(77, 231, 255, 0.5);
  border-radius: 6px;
  overflow: hidden;
  background: var(--soft-bg);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--cyan);
}

.header-action,
.theme-toggle,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 800;
}

.header-action {
  background: var(--soft-bg);
}

.theme-toggle {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-color: var(--line);
  cursor: pointer;
  background: var(--soft-bg);
}

.theme-toggle i {
  color: var(--cyan);
  font-size: 1rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.section-pad {
  padding: clamp(76px, 10vw, 132px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 102px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 26px;
  font-size: clamp(2.55rem, 5.1vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.hero-lede {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.8;
}

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

.button.primary {
  border-color: transparent;
  color: var(--accent-text);
  background: var(--cyan);
}

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

.hero-visual {
  position: relative;
  display: grid;
  gap: 16px;
}

.portrait-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(77, 231, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(77, 231, 255, 0.14), rgba(255, 122, 107, 0.08));
  box-shadow: var(--shadow);
}

.portrait-card::before {
  position: absolute;
  inset: 16px;
  z-index: 0;
  content: "";
  border: 1px solid var(--line);
  border-radius: 6px;
}

.portrait-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 0.84;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.08);
}

.status-strip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.45;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.signal-board div {
  min-height: 98px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-bg);
}

.signal-board strong {
  display: block;
  color: var(--cyan);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.signal-board span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ticker {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-block: 1px solid var(--line);
  background: var(--soft-bg);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 24s linear infinite;
}

.ticker span {
  padding: 18px 28px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.split-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(28px, 6vw, 82px);
}

.section-kicker span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-grid,
.matrix-grid {
  display: grid;
  gap: 16px;
}

.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.matrix-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}

.matrix-grid .glass-panel {
  min-height: 0;
  padding: clamp(18px, 2.2vw, 28px);
}

.matrix-grid .glass-panel:nth-child(1),
.matrix-grid .glass-panel:nth-child(2) {
  grid-column: span 6;
}

.matrix-grid .social-panel {
  grid-column: span 7;
}

.matrix-grid .language-panel {
  grid-column: span 5;
}

.glass-panel,
.ability-card,
.timeline-content,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glass-panel {
  min-height: 210px;
  padding: clamp(22px, 3vw, 34px);
}

.glass-panel.wide {
  grid-column: 1 / -1;
}

.glass-panel h3 i,
.ability-card h3 i {
  width: 1.15em;
  margin-right: 8px;
  color: var(--cyan);
}

.glass-panel p,
.ability-card p,
.timeline-content p,
.timeline-content li {
  color: var(--muted);
  line-height: 1.75;
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(32px, 6vw, 64px);
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ability-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: clamp(22px, 2.4vw, 30px);
}

.ability-card::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.card-icon {
  display: inline-flex;
  margin-bottom: 52px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 950;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}

.timeline-date {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  background: var(--soft-bg);
}

.timeline-content {
  padding: clamp(24px, 4vw, 42px);
}

.timeline-content h3 {
  font-size: clamp(1.24rem, 2.4vw, 2rem);
}

.timeline-content ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.timeline-item.active .timeline-content {
  border-color: rgba(77, 231, 255, 0.36);
  background: var(--panel-strong);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-row span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--soft-bg);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.social-links a {
  display: grid;
  min-height: 108px;
  align-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--soft-bg);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 231, 255, 0.5);
}

.social-links i {
  color: var(--coral);
  font-size: 1.35rem;
}

.social-links span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
}

.contact-section {
  padding-top: clamp(64px, 8vw, 108px);
}

.contact-panel {
  padding: clamp(28px, 6vw, 70px);
  background:
    linear-gradient(135deg, rgba(77, 231, 255, 0.14), transparent 42%),
    linear-gradient(315deg, rgba(169, 255, 104, 0.09), transparent 44%),
    var(--panel-strong);
}

.contact-panel h2 {
  max-width: 820px;
}

.contact-grid {
  display: flex;
  justify-content: flex-end;
  margin-top: 38px;
}

.contact-grid a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  max-width: 520px;
  padding: 14px 18px 14px 14px;
  border: 1px solid rgba(77, 231, 255, 0.34);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 850;
  overflow-wrap: anywhere;
  background:
    linear-gradient(135deg, rgba(77, 231, 255, 0.16), transparent 54%),
    var(--soft-bg);
}

.contact-grid a:hover {
  border-color: rgba(77, 231, 255, 0.5);
  background:
    linear-gradient(135deg, rgba(77, 231, 255, 0.24), transparent 54%),
    var(--soft-bg);
}

.email-icon {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 6px;
  color: var(--accent-text);
  background: var(--cyan);
}

.email-card span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.email-card strong {
  font-size: 1.02rem;
}

.email-card small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.email-card > i {
  margin-left: auto;
  color: var(--cyan);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

[data-reveal] {
  transform: translateY(28px);
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 700ms ease;
}

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

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto auto 1fr auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--header-bg);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .header-action {
    justify-self: end;
  }

  .hero,
  .split-section,
  .matrix-grid {
    grid-template-columns: 1fr;
  }

  .matrix-grid .glass-panel:nth-child(1),
  .matrix-grid .glass-panel:nth-child(2),
  .matrix-grid .social-panel,
  .matrix-grid .language-panel {
    grid-column: auto;
  }

  .ability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    top: 10px;
    gap: 10px;
    margin-top: 10px;
  }

  .brand-text {
    display: none;
  }

  .header-action {
    min-height: 42px;
    padding: 0 12px;
  }

  .section-pad {
    padding: 70px 0;
  }

  h1 {
    font-size: clamp(2.25rem, 10.5vw, 3.4rem);
    line-height: 1;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .about-grid,
  .ability-grid,
  .timeline-item,
  .signal-board {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    justify-content: stretch;
  }

  .contact-grid a {
    width: 100%;
    max-width: none;
  }

  .ability-card {
    min-height: 240px;
  }

  .card-icon {
    margin-bottom: 32px;
  }

  .timeline-date {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-dot {
    display: none;
  }
}
