@font-face {
  font-family: 'ADolphin';
  src: url('fonts/ADolphin-Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ADolphin';
  src: url('fonts/ADolphin-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --fg: #ccc;
  --fg-bright: #eee;
  --muted: #555;
  --muted-light: #888;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --max-w: 720px;
  --section-gap: 140px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'ADolphin', Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--muted-light);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--fg-bright);
}

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Side nav ─── */

.side-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  z-index: 100;
}

.side-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.side-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-bright);
  opacity: 0.2;
  transition: opacity 0.4s var(--ease), transform 0.2s var(--ease);
  flex-shrink: 0;
}

.side-dot:hover::after {
  opacity: 0.7;
  transform: scale(1.4);
}

.side-dot.active::after {
  opacity: 1;
}

.side-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}

.side-dot:hover .side-label {
  color: var(--fg-bright);
}

/* ─── Grain ─── */

.grain-svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
}

/* ─── Scroll reveal ─── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.hero > .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero > .reveal:nth-child(2) { transition-delay: 0.2s; }
.hero > .reveal:nth-child(3) { transition-delay: 0.35s; }
.hero > .reveal:nth-child(4) { transition-delay: 0.45s; }
.hero > .reveal:nth-child(5) { transition-delay: 0.55s; }
.hero > .reveal:nth-child(6) { transition-delay: 0.55s; }
.hero > .reveal:nth-child(7) { transition-delay: 0.65s; }
.hero > .reveal:nth-child(8) { transition-delay: 0.75s; }

/* ─── Section labels ─── */

.section-label {
  font-family: 'ADolphin', Georgia, serif;
  font-size: 20px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 48px;
}

.section-sublabel {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  margin-top: 48px;
}

/* ─── Hero ─── */

.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 80px;
  position: relative;
}

.hero-photo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 48px;
}

.hero-photo {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: -80%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero-name {
  font-family: 'ADolphin', Georgia, serif;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-bright);
  margin-bottom: 12px;
  line-height: 1.1;
}

.hero-tagline {
  font-style: italic;
  font-size: 22px;
  color: var(--muted-light);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.hero-location {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}

/* ─── Voice pill ─── */

.voice-pill {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-block;
  cursor: default;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 22px;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.voice-pill-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.5);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.voice-pill.online .voice-pill-dot {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

.voice-pill.busy .voice-pill-dot {
  background: #facc15;
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.4);
}

.voice-tooltip {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  padding: 16px 20px;
  background: #1e1e1e;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted-light);
  text-align: center;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
  transform: translateX(-50%) translateY(4px);
}

.voice-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #1e1e1e;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.voice-pill:hover .voice-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
}

.voice-pill.online {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.15);
}

.voice-pill.busy {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.3);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.1);
}

/* ─── Voice auth (footer) ─── */

.voice-auth {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  width: 48px;
  padding: 2px 0;
  outline: none;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.voice-auth:focus {
  border-bottom-color: var(--border-hover);
  color: var(--fg);
}

.voice-auth::placeholder {
  color: var(--muted);
  opacity: 0.35;
}

.voice-auth.hidden {
  display: none;
}

.voice-auth-msg {
  color: #4ade80;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.voice-auth-msg.hidden {
  display: none;
}

/* (hero-meta replaced by hero-links) */

.scroll-arrow {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  animation: scrollBob 2s ease-in-out infinite;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.scroll-arrow:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}

.scroll-arrow svg {
  width: 22px;
  height: 22px;
}

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* (hero-photo-row removed — logos moved below tagline) */

.hero-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 48px;
}

.hero-logos a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.uni-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.4;
  transition: opacity 0.3s var(--ease);
}

.uni-programme {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  transform-origin: left center;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero-logos a:hover .uni-logo {
  opacity: 0.8;
}

.hero-logos a:hover .uni-programme {
  color: var(--fg-bright);
  transform: scale(1.2);
}

/* ─── Theme toggle ─── */

.theme-toggle {
  display: inline-flex;
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.theme-option {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  background: none;
  border: none;
  color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.theme-option:hover {
  color: var(--fg-bright);
}

.theme-option svg {
  width: 14px;
  height: 14px;
}

.theme-option.active {
  color: var(--fg-bright);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .theme-option.active {
  background: rgba(0, 0, 0, 0.06);
}

/* ─── Light theme ─── */

[data-theme="light"] {
  --bg: #f5f4f0;
  --fg: #333;
  --fg-bright: #111;
  --muted: #777;
  --muted-light: #555;
  --border: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .grain-svg {
  opacity: 0.025;
}

[data-theme="light"] .hero-photo img {
  filter: contrast(1.05) brightness(1);
}

[data-theme="light"] .uni-logo {
  filter: brightness(0);
  opacity: 0.5;
}

[data-theme="light"] .voice-tooltip,
[data-theme="light"] .voice-tooltip::before,
[data-theme="light"] .hero-tip-box,
[data-theme="light"] .hero-tip-arrow {
  background: #fff;
  border-color: var(--border);
}

[data-theme="light"] .scroll-arrow {
  border-color: rgba(0, 0, 0, 0.25);
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .scroll-arrow:hover {
  border-color: rgba(0, 0, 0, 0.45);
  color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .lang-option:has(input:checked) {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .demo-panel-title {
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .demo-panel-header:hover .demo-panel-title {
  color: var(--fg);
}

[data-theme="light"] .carousel-overlay {
  background: rgba(245, 244, 240, 0.8);
}

[data-theme="light"] .carousel-slide iframe,
[data-theme="light"] .voidchat-embed iframe,
[data-theme="light"] .demo-video-embed iframe {
  background: #f5f4f0;
}

[data-theme="light"] .mutuals-avatars img {
  filter: grayscale(0.5) brightness(0.9);
}

[data-theme="light"] .mutuals-avatars a:hover img {
  filter: grayscale(0) brightness(1);
}

/* ─── Language toggle ─── */

.lang-toggle {
  display: inline-flex;
  gap: 0;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-option {
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 6px 18px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-option input { display: none; }

.lang-option:has(input:checked) {
  color: var(--fg-bright);
  background: rgba(255, 255, 255, 0.06);
}

.lang-option:hover {
  color: var(--fg-bright);
}

.agents-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.agents-btn:hover {
  color: var(--fg-bright);
  border-color: var(--fg-bright);
}

/* ─── Hero links ─── */

.hero-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  margin-left: 48px;
}

.hero-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-light);
}

.hero-links a:hover {
  color: var(--fg-bright);
}

.hero-links svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mutuals-avatars {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  vertical-align: middle;
}

.x-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.x-row > a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mutuals-avatars a {
  display: inline-flex;
  line-height: 0;
}

.mutuals-avatars img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(0.7) brightness(0.7);
  transition: filter 0.3s var(--ease), transform 0.2s var(--ease);
}

.mutuals-avatars a:hover img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.15);
}

.ig-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-light);
  font-size: 17px;
}

.ig-row svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─── Hero tooltips ─── */

.hero-tip {
  position: relative;
  cursor: default;
}

.hero-tip-box {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1e1e1e;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted-light);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
  z-index: 10;
}

.hero-tip-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #1e1e1e;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-tip:hover .hero-tip-box,
.hero-tip.active .hero-tip-box {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
}

/* ─── About ─── */

.about {
  padding-top: var(--section-gap);
}

.about-body {
  max-width: 600px;
}

.about-body p {
  margin-bottom: 20px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* ─── Projects ─── */

.projects {
  padding-top: var(--section-gap);
}

.project {
  border-left: 1px solid var(--border);
  padding: 20px 0 20px 28px;
  margin-bottom: 12px;
  transition: border-color 0.3s var(--ease), opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.project:hover {
  border-color: var(--border-hover);
}

.project:last-of-type {
  margin-bottom: 0;
}

.project-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.project-name {
  font-family: 'ADolphin', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--fg-bright);
}

.gh-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.1em;
  margin-right: 0.3em;
  opacity: 0.4;
}

.project-role {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-desc {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 560px;
}

.project-desc a {
  color: var(--fg-bright);
  text-decoration: underline;
  text-decoration-color: var(--border-hover);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}

.project-desc a:hover {
  text-decoration-color: var(--fg-bright);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 11px;
  transition: border-color 0.25s var(--ease);
}

.project:hover .project-tags span {
  border-color: var(--border-hover);
}

/* ─── Physics placeholder ─── */

.physics {}

.physics-desc {
  font-size: 18px;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}

.carousel {
  position: relative;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  max-width: 560px;
}

.carousel-track-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 560px;
}

.carousel-track {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 360px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.carousel-slide iframe {
  display: block;
  width: 133.33%;
  height: 133.33%;
  border: none;
  background: #000;
  transform: scale(0.75);
  transform-origin: top left;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  background: rgba(0, 0, 0, 0.75);
  font-size: 28px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
  cursor: pointer;
  transition: opacity 0.3s var(--ease), font-size 0.2s var(--ease), color 0.2s var(--ease);
  border-radius: 3px;
}

.carousel-overlay:hover {
  color: var(--fg-bright);
}

.carousel-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.carousel-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--muted-light);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  flex-shrink: 0;
}

.carousel-btn:hover {
  border-color: var(--border-hover);
  color: var(--fg-bright);
}


.carousel-label {
  font-size: 18px;
  color: var(--fg-bright);
  min-width: 0;
  flex: 1;
}

.carousel-num {
  color: var(--muted);
  font-size: 13px;
  margin-right: 6px;
}

.carousel-desc {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.voidchat-embed {
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: 560px;
}

.voidchat-embed iframe {
  display: block;
  width: 125%;
  height: 125%;
  border: none;
  background: #000;
  transform: scale(0.8);
  transform-origin: top left;
}

/* ─── Voidchat placeholder ─── */

.voidchat {}

.voidchat-desc {
  font-size: 18px;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}

/* ─── Demo accordion ─── */

.demos-accordion {
  padding-top: 60px;
}

.demo-panel + .demo-panel {
  margin-top: 24px;
}

.demo-panel-header {
  cursor: pointer;
  user-select: none;
}

.demo-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s var(--ease);
}

.demo-panel-title::before {
  content: '\203A';
  font-size: 28px;
  line-height: 0;
  margin-top: -2px;
  color: inherit;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.demo-panel.open .demo-panel-title::before {
  transform: rotate(90deg);
}

.demo-panel-header:hover .demo-panel-title {
  color: var(--fg);
}

.demo-panel-subtitle {
  font-size: 18px;
  font-family: 'Libre Baskerville', Georgia, serif;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
  opacity: 0.7;
  margin-left: 12px;
  transition: opacity 0.4s var(--ease);
}

.demo-panel.open .demo-panel-subtitle {
  opacity: 0;
}

.demo-panel-body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding-bottom: 0;
  transition: grid-template-rows 0.45s var(--ease), opacity 0.35s var(--ease), margin-top 0.45s var(--ease), padding-bottom 0.45s var(--ease);
}

.demo-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.demo-panel.open .demo-panel-body {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 16px;
  padding-bottom: 60px;
}

/* ─── Demo videos ─── */

.demo-video-desc {
  font-size: 18px;
  line-height: 1.7;
  max-width: var(--max-w);
  margin-bottom: 40px;
}

.demo-video-embed {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-width: var(--max-w);
  position: relative;
}

.demo-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* ─── Timeline ─── */

.timeline {
  padding-top: var(--section-gap);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.timeline-entry:first-child {
  border-top: 1px solid var(--border);
}

.timeline-period {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timeline-entry strong {
  font-weight: 400;
  color: var(--fg-bright);
  font-size: 18px;
}

.timeline-role {
  display: block;
  font-size: 15px;
  color: var(--muted-light);
  margin-top: 2px;
}

.education {
  margin-top: 48px;
}

.edu-entry {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.edu-entry:first-of-type {
  border-top: 1px solid var(--border);
}

.edu-degree {
  display: block;
  color: var(--fg-bright);
  font-size: 15px;
}

.edu-school {
  font-size: 15px;
  color: var(--muted-light);
}

/* ─── Footer ─── */

.footer {
  margin-top: var(--section-gap);
  padding: 48px var(--gutter);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.footer-inner .sep {
  opacity: 0.35;
  margin: 0 4px;
}

/* ─── Responsive ─── */

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

  :root {
    --section-gap: 100px;
    --gutter: 20px;
  }

  body {
    font-size: 16px;
  }

  .hero {
    min-height: 90vh;
    padding: 60px 0;
  }

  .hero-photo-wrapper {
    margin-bottom: 32px;
  }

  .hero-photo {
    width: 200px;
    height: 200px;
  }

  .hero-name {
    letter-spacing: 0.08em;
  }

  .hero-meta {
    flex-direction: column;
    gap: 6px;
  }

  .hero-meta .sep {
    display: none;
  }

  .timeline-entry {
    grid-template-columns: 110px 1fr;
    gap: 10px;
  }

  .project {
    padding-left: 20px;
  }

  .carousel-placeholder,
  .voidchat-placeholder {
    min-height: 180px;
  }

  .scroll-arrow { display: none; }

  .demo-panel-subtitle { display: none; }
}
