:root {
  --bg: #070910;
  --panel: #10151f;
  --panel-2: #151b27;
  --text: #f5f7fb;
  --muted: #a8b3c4;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #62d6ff;
  --accent-2: #a5f3d4;
  --gold: #f2c56b;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(98, 214, 255, 0.08), transparent 360px),
    linear-gradient(135deg, #070910 0%, #10131d 48%, #070910 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
}

.nav-shell {
  position: sticky;
  top: 16px;
  z-index: 15;
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(98, 214, 255, 0.45);
  border-radius: 8px;
  color: #071018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a,
.contact-links a {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

nav a:hover,
.contact-links a:hover {
  color: var(--text);
}

.nav-cta,
.button,
.contact-links a {
  border-radius: 8px;
}

.nav-cta {
  padding: 12px 18px;
  color: #061016;
  background: var(--text);
  font-weight: 800;
}

main {
  position: relative;
  z-index: 1;
}

.section-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 56px auto;
}

.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: 44px;
  margin-top: 12px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(3.15rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.button.primary {
  color: #041018;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.identity-card,
.project-card,
.timeline-item,
.skill-block,
.story-card,
.credential-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.identity-card {
  padding: 16px;
  transform: rotate(0.75deg);
  position: relative;
  overflow: hidden;
}

.identity-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98, 214, 255, 0.55), transparent);
}

.portrait-wrap {
  aspect-ratio: 1 / 1.04;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--panel-2);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 16%;
  filter: saturate(0.98) contrast(1.03);
}

.identity-copy {
  padding: 6px 2px 2px;
}

.identity-card h2 {
  margin-top: 20px;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
}

.identity-card p,
.project-card p,
.timeline-item p,
.skill-block p,
.story-card p,
.credential-card p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.role-pills span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

dt {
  color: var(--accent);
  font-size: 1.55rem;
  font-weight: 900;
}

dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.impact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: stretch;
  gap: 18px;
  margin-top: -18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(98, 214, 255, 0.12), rgba(165, 243, 212, 0.05)),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

.impact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.impact-copy h2 {
  font-size: clamp(1.8rem, 3vw, 3.1rem);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.impact-grid div {
  min-height: 158px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 9, 16, 0.45);
}

.impact-grid dt {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 18px 0;
  animation: marquee 22s linear infinite;
}

.ticker span {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(100vw);
  }
  to {
    transform: translateX(-100%);
  }
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.project-grid,
.skill-matrix,
.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-card,
.skill-block,
.timeline-item,
.story-card,
.credential-card {
  padding: 24px;
}

.project-card {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-kicker,
.company {
  color: var(--gold) !important;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

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

.timeline-item span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 900;
}

.skill-block {
  min-height: 190px;
}

.story-section {
  padding-block: 22px;
}

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

.story-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.story-card span {
  width: max-content;
  padding: 8px 11px;
  border: 1px solid rgba(98, 214, 255, 0.35);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(98, 214, 255, 0.08);
  font-weight: 900;
}

.credential-card {
  min-height: 214px;
}

.contact-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 56px auto 72px;
  padding: 38px;
  background: linear-gradient(135deg, rgba(98, 214, 255, 0.14), rgba(242, 197, 107, 0.08));
}

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

.contact-links a {
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (max-width: 980px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .identity-card {
    max-width: 520px;
    transform: none;
  }

  .project-grid,
  .skill-matrix,
  .credential-grid,
  .impact-band,
  .story-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .nav-shell {
    top: 8px;
    width: calc(100% - 16px);
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
  }

  .logo {
    width: 38px;
    height: 38px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 14px;
    font-size: 0.84rem;
  }

  .section-panel,
  .contact-panel {
    width: calc(100% - 20px);
    margin: 38px auto;
  }

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

  h1 {
    font-size: 3.15rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .project-grid,
  .skill-matrix,
  .credential-grid,
  .impact-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .skill-block,
  .story-card,
  .credential-card,
  .timeline-item,
  .contact-panel {
    padding: 20px;
  }

  .project-card,
  .skill-block,
  .story-card,
  .credential-card {
    min-height: auto;
  }

  .impact-band {
    padding: 18px;
    margin-top: 0;
  }

  .impact-grid div {
    min-height: auto;
  }
}
