/* =========================================================
   1. VARIABLES
========================================================= */
:root {
  --bg: #0a0a0c;
  --surface: #131317;
  --surface-2: #1a1a20;
  --text: #ededef;
  --muted: #8d8d97;
  --muted-2: #5d5d66;
  --accent: #4c6fff;
  --accent-2: #7c93ff;
  --accent-soft: rgba(76, 111, 255, 0.14);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --max-width: 1180px;
  --gutter: clamp(24px, 6vw, 64px);
  --nav-offset: 92px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;
}

/* =========================================================
   2. RESET
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* =========================================================
   3. TYPOGRAPHY
========================================================= */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  max-width: 20ch;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-header {
  position: sticky;
  top: var(--nav-offset);
  z-index: 10;
  padding: 8px 0 18px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.96) 0%, rgba(10, 10, 12, 0.76) 74%, rgba(10, 10, 12, 0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section-header .eyebrow {
  margin-bottom: 10px;
}

.section-header .section-title {
  margin-bottom: 0;
}

.accent-text {
  color: var(--accent-2);
}

/* =========================================================
   4. LAYOUT HELPERS
========================================================= */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(80px, 11vw, 140px) 0;
  position: relative;
}

/* =========================================================
   5. NAVIGATION
========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), backdrop-filter var(--dur-fast) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding var(--dur-fast) var(--ease);
}

.nav.is-scrolled .nav__inner {
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: clamp(20px, 2.6vw, 36px);
}

.nav__links a {
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color var(--dur-fast) var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--accent-2);
  transition: width var(--dur-fast) var(--ease);
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--text);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

/* =========================================================
   6. HERO
========================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 140px var(--gutter) 80px;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 420px);
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
}

.hero__content {
  max-width: 680px;
}

.hero__eyebrow {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 28px;
  letter-spacing: 0.01em;
}

.hero__title {
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
}

.hero__portrait-wrap {
  display: flex;
  justify-content: center;
}

.hero__portrait-frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(124, 147, 255, 0.22), rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.hero__portrait-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
}

.hero__portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.04);
}

.hero__portrait-frame.is-fallback {
  background:
    radial-gradient(circle at 30% 30%, rgba(124, 147, 255, 0.55), transparent 32%),
    linear-gradient(135deg, rgba(76, 111, 255, 0.28), rgba(10, 10, 12, 0.9));
}

.hero__portrait-frame.is-fallback::after {
  content: "Add your photo here";
  position: absolute;
  inset: auto 18px 18px 18px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(237, 237, 239, 0.82);
  z-index: 2;
}

.reveal-line {
  overflow: hidden;
  display: block;
  padding-bottom: 0.05em;
}

.reveal-word {
  display: inline-block;
}

.hero__statement {
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  margin: 0 0 44px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero__scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  color: var(--muted-2);
}

.hero__scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--muted-2), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-cue span::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-2);
  animation: scroll-line 2.2s var(--ease) infinite;
}

@keyframes scroll-line {
  to {
    top: 100%;
  }
}

.hero__scroll-cue p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .hero__scroll-cue {
    display: none;
  }
}

/* =========================================================
   7. BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(76, 111, 255, 0);
}

.btn--primary:hover {
  box-shadow: 0 8px 30px -6px rgba(76, 111, 255, 0.55);
}

.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent-2);
  background: var(--accent-soft);
}

.btn--text {
  padding: 14px 4px;
  color: var(--muted);
}

.btn--text:hover {
  color: var(--text);
}

.btn--text svg {
  transition: transform var(--dur-fast) var(--ease);
}

.btn--text:hover svg {
  transform: translateY(2px);
}

.btn--full {
  width: 100%;
}

/* =========================================================
   8. ABOUT
========================= */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about__lead {
  position: sticky;
  top: calc(var(--nav-offset) + 28px);
  z-index: 10;
  padding: 8px 0 18px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.96) 0%, rgba(10, 10, 12, 0.76) 74%, rgba(10, 10, 12, 0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about__headline {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-top: 8px;
}

.about__body p {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 22px;
}

.path {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.path__item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.path__year {
  font-family: var(--font-display);
  color: var(--accent-2);
  font-size: 0.9rem;
  min-width: 96px;
}

.path__role {
  color: var(--text);
  font-size: 0.98rem;
}

@media (max-width: 860px) {
  :root {
    --nav-offset: 76px;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   9. FOCUS WORD CLOUD
========================= */
.focus {
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.focus__cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5em 0.9em;
  font-family: var(--font-display);
  color: var(--muted-2);
}

.focus__word {
  transition: color var(--dur-fast) var(--ease);
  cursor: default;
}

.focus__word:hover,
.focus__word.is-active {
  color: var(--accent-2);
}

.focus__word--xl { font-size: clamp(2rem, 6vw, 4.2rem); color: var(--text); }
.focus__word--lg { font-size: clamp(1.5rem, 4vw, 2.8rem); color: var(--muted); }
.focus__word--md { font-size: clamp(1.1rem, 2.6vw, 1.9rem); }
.focus__word--sm { font-size: clamp(0.95rem, 2vw, 1.3rem); }

/* =========================================================
   10. EXPERTISE
========================= */
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.expertise__card {
  background: var(--surface);
  padding: 36px 30px;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  position: relative;
}

.expertise__card:hover {
  background: var(--surface-2);
  transform: translateY(-4px);
}

.expertise__index {
  display: block;
  font-family: var(--font-display);
  color: var(--accent-2);
  font-size: 0.85rem;
  margin-bottom: 22px;
  opacity: 0.85;
}

.expertise__card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.expertise__card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  transition: color var(--dur-fast) var(--ease);
}

.expertise__card:hover p {
  color: #c6c6cd;
}

@media (max-width: 900px) {
  .expertise__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .expertise__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   11. TIMELINE / EXPERIENCE
========================= */
.timeline {
  position: relative;
  overflow-anchor: none;
}

.timeline__list {
  display: flex;
  flex-direction: column;
}

.timeline__item {
  position: relative;
  padding-left: 44px;
  border-left: 1px solid var(--border);
}

.timeline__item:last-child {
  border-left-color: transparent;
}

.timeline__node {
  position: absolute;
  left: -5.5px;
  top: 34px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--muted-2);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.timeline__item.is-open .timeline__node {
  border-color: var(--accent-2);
  background: var(--accent-2);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.timeline__dates {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.timeline__role {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 6px;
}

.timeline__company {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.timeline__cta {
  flex-shrink: 0;
}

.cta-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 9px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.timeline__toggle:hover .cta-label {
  color: var(--text);
  border-color: var(--accent-2);
}

.timeline__item.is-open .cta-label {
  color: var(--text);
  border-color: var(--accent-2);
}

.timeline__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease);
}

.timeline__item.is-open .timeline__panel {
  grid-template-rows: 1fr;
}

.timeline__panel-inner {
  overflow: hidden;
}

.timeline__panel ul {
  padding: 4px 0 30px;
  display: grid;
  gap: 12px;
  max-width: 62ch;
}

.timeline__panel li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline__panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--accent-2);
}

/* =========================================================
   12. TRANSFORMATION FLOW
========================= */
.transform {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.transform__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 4px;
  font-family: var(--font-display);
}

.transform__node {
  padding: 10px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: var(--muted);
}

.transform__node--current {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.transform__connector {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), var(--accent-2));
  position: relative;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .transform__flow {
    flex-direction: column;
    align-items: flex-start;
  }
  .transform__connector {
    width: 1px;
    height: 20px;
    margin-left: 20px;
    background: linear-gradient(180deg, var(--border-strong), var(--accent-2));
  }
}

/* =========================================================
   13. SKILLS
========================= */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.skills__group h3 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.skills__tags li {
  padding: 9px 0;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}

.skills__tags li:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .skills__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   14. EDUCATION
========================= */
.education__card {
  display: flex;
  gap: 28px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--surface), var(--bg));
}

.education__mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  position: relative;
}

.education__mark::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--accent-2);
}

.education__content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.education__major {
  color: var(--accent-2);
  font-size: 0.92rem;
  margin: 0 0 14px;
}

.education__school,
.education__dates {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 4px 0 0;
}

@media (max-width: 560px) {
  .education__card {
    flex-direction: column;
    padding: 28px;
  }
}

/* =========================================================
   15. STATEMENT
========================= */
.statement {
  text-align: center;
}

.statement__quote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  margin: 0 auto 24px;
  max-width: 16ch;
}

.statement__body {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto;
}

/* =========================================================
   16. CONTACT
========================= */
.contact {
  border-top: 1px solid var(--border);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
}

.contact__intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.contact__intro > p {
  color: var(--muted);
  margin: 0 0 36px;
}

.contact__details {
  display: grid;
  gap: 16px;
  margin: 0 0 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.contact__details > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.contact__details dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact__details dd {
  margin: 0;
  font-size: 0.95rem;
  text-align: right;
}

.contact__details a:hover {
  color: var(--accent-2);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.85rem;
  color: var(--muted);
}

.field input,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-2);
  background: var(--surface-2);
  outline: none;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #e06666;
}

.field__error {
  font-size: 0.8rem;
  color: #e06666;
  min-height: 1em;
}

.contact__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--accent-2);
  min-height: 1.2em;
}

@media (max-width: 860px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   17. FOOTER
========================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px));
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer__name {
  font-family: var(--font-display);
  margin: 0 0 6px;
}

.footer__tagline {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.footer__meta {
  text-align: right;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer__meta a:hover {
  color: var(--accent-2);
}

.footer__meta p {
  margin: 8px 0 0;
  color: var(--muted-2);
}

/* =========================================================
   18. SCROLL PROGRESS + CURSOR GLOW
========================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 999;
  transition: width 0.1s linear;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(76, 111, 255, 0.09), transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
  will-change: transform;
}

.cursor-glow.is-active {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

/* =========================================================
   19. REVEAL ON SCROLL
========================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* =========================================================
   20. RESPONSIVE / MOBILE NAV
========================= */
@media (max-width: 980px) {
  .hero__layout {
    grid-template-columns: 1fr;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__portrait-wrap {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(78vw, 320px);
    background: rgba(12, 12, 15, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 100px 40px 40px;
    padding-top: calc(100px + env(safe-area-inset-top, 0px));
    transform: translateX(100%);
    transition: transform var(--dur-med) var(--ease);
    border-left: 1px solid var(--border);
  }

  .nav__links.is-open {
    transform: translateX(0);
  }

  .nav__links a {
    font-size: 1.15rem;
    color: var(--text);
  }

  .nav__toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav__toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  .hero__inner {
    padding-top: 120px;
  }

  .timeline__toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
