/* ============================================================
   Ogulcan Durmaz — XR Instructional Designer & Researcher
   ============================================================ */

:root {
  --bg: #07070f;
  --bg-tint: #0c0c18;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.09);
  --text: #eceaf6;
  --text-dim: #a6a3bd;
  --accent: #8b7cf6;
  --accent-2: #4fd1e0;
  --gradient: linear-gradient(120deg, #8b7cf6, #4fd1e0);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --max-w: 1120px;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(139, 124, 246, 0.4); }

a { color: inherit; }

/* ============ VR ENTRY SEQUENCE ============ */
#vr-entry {
  position: fixed;
  inset: 0;
  z-index: 1000;
  cursor: pointer;
  transition: opacity 0.45s ease;
}

#vr-entry.fade { opacity: 0; pointer-events: none; }

.vr-entry__mask {
  width: 100%;
  height: 100%;
  display: block;
}

.lens { r: 0; }

.lens--ring {
  fill: none;
  stroke-width: 0.35;
  opacity: 0.6;
}

.lens--ring-a { stroke: #8b7cf6; }
.lens--ring-b { stroke: #4fd1e0; stroke-width: 0.18; }

.goggle {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}

.goggle--outline {
  fill: none;
  opacity: 0;
}

.goggle--outline-a { stroke: #8b7cf6; stroke-width: 0.4; }
.goggle--outline-b { stroke: #4fd1e0; stroke-width: 0.18; }

#vr-entry.run .lens {
  animation:
    lens-open 0.9s cubic-bezier(0.33, 1, 0.68, 1) 0.25s forwards,
    lens-expand 1.1s cubic-bezier(0.65, 0, 0.35, 1) 2.45s forwards;
}

#vr-entry.run .lens--ring-b {
  animation:
    lens-open-b 0.9s cubic-bezier(0.33, 1, 0.68, 1) 0.3s forwards,
    lens-expand 1.05s cubic-bezier(0.65, 0, 0.35, 1) 2.45s forwards,
    ring-out 0.45s ease 1.5s forwards;
}

#vr-entry.run .lens--ring-a {
  animation:
    lens-open 0.9s cubic-bezier(0.33, 1, 0.68, 1) 0.25s forwards,
    lens-expand 1.1s cubic-bezier(0.65, 0, 0.35, 1) 2.45s forwards,
    ring-out 0.45s ease 1.5s forwards;
}

#vr-entry.run .goggle {
  animation:
    goggle-in 0.6s cubic-bezier(0.34, 1.3, 0.64, 1) 1.5s forwards,
    goggle-expand 1.1s cubic-bezier(0.65, 0, 0.35, 1) 2.45s forwards;
}

#vr-entry.run .goggle--outline {
  animation:
    goggle-outline-in 0.6s cubic-bezier(0.34, 1.3, 0.64, 1) 1.5s forwards,
    goggle-expand 1.1s cubic-bezier(0.65, 0, 0.35, 1) 2.45s forwards,
    ring-out 0.5s ease 2.6s forwards;
}

@keyframes lens-open { from { r: 0; } to { r: 15.5; } }
@keyframes lens-open-b { from { r: 0; } to { r: 16.4; } }
@keyframes lens-expand { to { r: 130; } }
@keyframes ring-out { to { opacity: 0; } }
@keyframes goggle-in { from { transform: scale(0.4); } to { transform: scale(1); } }
@keyframes goggle-outline-in {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 0.7; }
}
@keyframes goggle-expand { to { transform: scale(9); } }

.vr-entry__hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  text-align: center;
  pointer-events: none;
  opacity: 0;
}

#vr-entry.run .vr-entry__hud {
  animation:
    hud-in 0.7s ease 0.5s forwards,
    hud-out 0.45s ease 2.4s forwards;
}

@keyframes hud-in { to { opacity: 1; } }
@keyframes hud-out { to { opacity: 0; } }

.vr-entry__brand {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text);
}

.vr-entry__brand span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vr-entry__status {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

body.vr-active { overflow: hidden; }

.hero { transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1); }

body.vr-active .hero { transform: scale(1.09); }

@media (prefers-reduced-motion: reduce) {
  #vr-entry { display: none; }
}

/* Subtle grain overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 7, 15, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__logo-dot {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
}

.nav__links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

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

.nav__cta {
  padding: 0.4rem 1rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  color: var(--text) !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav__cta:hover {
  border-color: var(--accent);
  background: rgba(139, 124, 246, 0.12);
}

.nav__toggle { display: none; }

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

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 40%, rgba(139, 124, 246, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 35% at 75% 65%, rgba(79, 209, 224, 0.08), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  padding: 7rem 1.5rem 4rem;
}

.hero__eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.4rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}

.hero__title em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 2.4rem;
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.6rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn--primary {
  background: var(--gradient);
  color: #0a0a14;
  box-shadow: 0 8px 30px rgba(139, 124, 246, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139, 124, 246, 0.5);
}

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

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

.btn--lg { padding: 1.05rem 2.4rem; font-size: 1.1rem; }

.hero__stats {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.hero__stats dt {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__stats dd {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 44px;
  border: 1.5px solid var(--surface-border);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
  animation: scrollhint 2s ease-in-out infinite;
}

@keyframes scrollhint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(14px); opacity: 0; }
  56% { transform: translateY(0); opacity: 0; }
}

/* ============ SECTIONS ============ */
.section { padding: 7.5rem 0; position: relative; }

.section--tinted {
  background: var(--bg-tint);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section__eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  margin-bottom: 2.8rem;
}

.section__title em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ ABOUT ============ */
.about__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__text p {
  color: var(--text-dim);
  margin-bottom: 1.3rem;
  max-width: 58ch;
}

.about__text strong { color: var(--text); font-weight: 500; }

.about__edu {
  list-style: none;
  margin-top: 2.2rem;
  display: grid;
  gap: 1rem;
}

.about__edu li {
  border-left: 2px solid;
  border-image: var(--gradient) 1;
  padding-left: 1.1rem;
}

.about__edu-degree { display: block; font-weight: 600; }

.about__edu-school {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.about__affil {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.about__focus {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: 6rem;
}

.about__photo {
  margin: -0.4rem -0.4rem 1.6rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
}

.about__photo {
  aspect-ratio: 1 / 1;
}

.about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.about__focus h3 {
  font-size: 0.82rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.about__focus h3 + .chips { margin-bottom: 1.8rem; }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 124, 246, 0.35);
  background: rgba(139, 124, 246, 0.08);
}

.chips--alt li {
  border-color: rgba(79, 209, 224, 0.3);
  background: rgba(79, 209, 224, 0.06);
}

/* ============ RESEARCH ============ */
.research-feature {
  background:
    linear-gradient(var(--bg-tint), var(--bg-tint)) padding-box,
    linear-gradient(120deg, rgba(139, 124, 246, 0.55), rgba(79, 209, 224, 0.55)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 2.4rem;
  margin-bottom: 2rem;
}

.research-feature h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0.9rem 0 1rem;
}

.research-feature p { color: var(--text-dim); max-width: 72ch; }

.research-feature strong { color: var(--text); font-weight: 500; }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.tag--live {
  background: rgba(79, 209, 224, 0.12);
  color: var(--accent-2);
  border: 1px solid rgba(79, 209, 224, 0.35);
}

.tag-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
}

.tag-row li {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 124, 246, 0.4);
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.card__meta {
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.card p:not(.card__meta) {
  font-size: 0.94rem;
  color: var(--text-dim);
}

.subhead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  font-size: 1.5rem;
  margin: 2.8rem 0 1.4rem;
}

.subhead--spaced { margin-top: 3.6rem; }

.sublist {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.sublist li {
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  font-size: 0.97rem;
  line-height: 1.55;
  transition: border-color 0.25s ease;
}

.sublist li:hover { border-color: rgba(139, 124, 246, 0.4); }

.sublist strong { font-weight: 600; }

.sublist span { color: var(--text-dim); font-size: 0.88rem; }

.research-links {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.research-links a {
  color: var(--accent-2);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.research-links a:hover { border-color: var(--accent-2); }

/* ============ CAROUSEL ============ */
.carousel { position: relative; }

.carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.carousel__head--end { justify-content: flex-end; }

.carousel__nav { display: flex; gap: 0.6rem; }

.carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.carousel__btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(139, 124, 246, 0.12);
}

.carousel__btn:disabled { opacity: 0.3; cursor: default; }

.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 4px 4px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel__track::-webkit-scrollbar { display: none; }

.carousel__track > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* ============ PROJECTS ============ */
.projects__grid.carousel__track > .project {
  width: clamp(300px, 80vw, 530px);
}

.project {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 2.2rem;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mx, 50%) var(--my, 50%),
    rgba(139, 124, 246, 0.12),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.project:hover::before { opacity: 1; }

.project:hover {
  border-color: rgba(139, 124, 246, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.project__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: #000;
  margin-bottom: 1.4rem;
}

.project__media img,
.project__media iframe,
.project__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

.project__media video { object-fit: contain; }

.project__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.project h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.project p {
  color: var(--text-dim);
  font-size: 0.97rem;
}

/* ============ TALKS ============ */
.talks { display: grid; gap: 3rem; }

.talks__year {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: start;
}

.talks__year h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  font-size: 2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: sticky;
  top: 6rem;
}

.talks__year ul { list-style: none; display: grid; gap: 1.1rem; }

.talks__year li {
  padding: 1.1rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  font-size: 0.97rem;
  line-height: 1.55;
  transition: border-color 0.25s ease;
}

.talks__year li:hover { border-color: rgba(79, 209, 224, 0.4); }

.talks__year strong { font-weight: 600; }

.talks__year span { color: var(--text-dim); font-size: 0.88rem; }

/* ============ EXPERIENCE / TIMELINE ============ */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 2rem;
  max-width: 760px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--accent), rgba(79, 209, 224, 0.25));
}

.timeline__item {
  position: relative;
  padding-bottom: 2.6rem;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--accent);
  transform: translateX(0.5px);
}

.timeline__date {
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.timeline__item h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0.35rem 0 0.4rem;
}

.timeline__item p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 60ch;
}

/* ============ MATERIALS ============ */
.materials__grid {
  display: grid;
  gap: 3.5rem;
}

.materials__col { min-width: 0; }

.materials__col h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 450;
  font-size: 1.5rem;
}

.materials__list { list-style: none; }

.materials__list.carousel__track > li {
  width: clamp(270px, 75vw, 430px);
}

.materials__list li {
  padding: 1.3rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  transition: border-color 0.25s ease;
}

.materials__list li:hover { border-color: rgba(139, 124, 246, 0.4); }

.materials__list a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 124, 246, 0.5);
  transition: color 0.2s ease;
}

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

.materials__list strong { font-weight: 600; }

.materials__list p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: 0.4rem;
}

.materials__year {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent-2);
  letter-spacing: 0.15em;
  margin-right: 0.6rem;
}

/* ============ CONTACT ============ */
.contact { text-align: center; padding-bottom: 8.5rem; }

.contact .section__eyebrow { text-align: center; }

.contact__title {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

.contact__title em {
  font-style: italic;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact__sub {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 2.6rem;
}

.contact__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 2.8rem;
}

.contact__links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

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

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__focus { position: static; }
  .research-grid { grid-template-columns: 1fr; }
  .talks__year {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .talks__year h3 { position: static; }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
  }

  .nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav__toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0a15;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    align-items: center;
    padding: 1.8rem 0 2.2rem;
    gap: 1.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__links a { font-size: 1.15rem; }

  .section { padding: 5rem 0; }
}
