/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.menu-open {
  overflow: hidden;
}

:root {
  --bg: #0a0a0a;
  --surface: #1a1a1a;
  --text: #f0f0f0;
  --text-muted: #888;
  --accent: #e0e0e0;
  --radius: 8px;
  --max-width: 960px;
  --page-padding: 48px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Neue Montreal', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  width: 760px;
  gap: 32px;
}

.logo {
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-right: 24px;
}

.logo span {
  display: inline-block;
  transition: transform 0.3s ease;
  transition-delay: var(--d, 0s);
}

.logo:hover span {
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.nav-links a:not(.nav-cta) {
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

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

.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 6px 16px;
  border-radius: var(--radius);
  font-weight: 400;
  font-size: 13px;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger span:first-child {
  top: 6px;
}

.hamburger span:last-child {
  top: 16px;
}

.hamburger.active span:first-child {
  top: 11px;
  transform: rotate(45deg);
}

.hamburger.active span:last-child {
  top: 11px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 200px 48px 160px;
  position: relative;
  overflow: hidden;
}

/* Cursor Glow */
.cursor-glow {
  display: none;
}

/* Mesh Gradient */
@property --mesh-x1 { syntax: '<percentage>'; initial-value: 20%; inherits: false; }
@property --mesh-y1 { syntax: '<percentage>'; initial-value: 30%; inherits: false; }
@property --mesh-x2 { syntax: '<percentage>'; initial-value: 80%; inherits: false; }
@property --mesh-y2 { syntax: '<percentage>'; initial-value: 70%; inherits: false; }
@property --mesh-x3 { syntax: '<percentage>'; initial-value: 50%; inherits: false; }
@property --mesh-y3 { syntax: '<percentage>'; initial-value: 20%; inherits: false; }
@property --mesh-x4 { syntax: '<percentage>'; initial-value: 70%; inherits: false; }
@property --mesh-y4 { syntax: '<percentage>'; initial-value: 50%; inherits: false; }

.hero-orbs {
  position: absolute;
  top: -15%;
  left: -5%;
  right: -5%;
  bottom: 20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at var(--mesh-x1) var(--mesh-y1), rgba(75, 139, 255, 0.3), transparent 50%),
    radial-gradient(ellipse at var(--mesh-x2) var(--mesh-y2), rgba(123, 97, 255, 0.2), transparent 50%),
    radial-gradient(ellipse at var(--mesh-x3) var(--mesh-y3), rgba(0, 212, 255, 0.2), transparent 45%),
    radial-gradient(ellipse at var(--mesh-x4) var(--mesh-y4), rgba(75, 139, 255, 0.15), transparent 55%);
  filter: blur(60px);
  animation: meshFlow 12s ease-in-out infinite;
}

.orb { display: none; }

@keyframes meshFlow {
  0%, 100% {
    --mesh-x1: 30%; --mesh-y1: 25%;
    --mesh-x2: 70%; --mesh-y2: 60%;
    --mesh-x3: 55%; --mesh-y3: 30%;
    --mesh-x4: 40%; --mesh-y4: 55%;
  }
  25% {
    --mesh-x1: 55%; --mesh-y1: 45%;
    --mesh-x2: 35%; --mesh-y2: 30%;
    --mesh-x3: 70%; --mesh-y3: 55%;
    --mesh-x4: 50%; --mesh-y4: 35%;
  }
  50% {
    --mesh-x1: 65%; --mesh-y1: 30%;
    --mesh-x2: 40%; --mesh-y2: 50%;
    --mesh-x3: 45%; --mesh-y3: 65%;
    --mesh-x4: 60%; --mesh-y4: 40%;
  }
  75% {
    --mesh-x1: 40%; --mesh-y1: 50%;
    --mesh-x2: 60%; --mesh-y2: 35%;
    --mesh-x3: 35%; --mesh-y3: 45%;
    --mesh-x4: 65%; --mesh-y4: 55%;
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  transition: transform 0.15s ease-out;
}

.hero-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 0.3s;
}

.label-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--text-muted);
  animation: lineGrow 0.8s ease forwards 0.3s;
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes lineGrow {
  to { transform: scaleX(1); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero h1 {
  font-family: 'Neue Montreal', -apple-system, sans-serif;
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 6px;
}

.hero h1 .line-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: revealLine 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.5s + var(--d) * 0.12s);
}

@keyframes revealLine {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 32px auto 0;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WIP Badge */
.hero-wip {
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  margin-top: 24px;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 1.2s;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  display: inline-block;
}

/* Status Tag */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.2s;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

/* Scroll Indicator */
.hero-scroll {
  margin-top: 64px;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 1.4s;
  text-align: center;
}

.hero-scroll svg {
  animation: bounceDown 2s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Chat Widget */
.chat-toggle {
  position: fixed;
  bottom: 220px;
  right: 40px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--surface);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  border: none;
  overflow: visible;
}

.chat-toggle::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: conic-gradient(
    from var(--chat-border-angle, 0deg),
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: chat-border-rotate 8s linear infinite;
  pointer-events: none;
}

@property --chat-border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes chat-border-rotate {
  to {
    --chat-border-angle: 360deg;
  }
}



.chat-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.chat-toggle.hidden {
  opacity: 0;
  pointer-events: none;
}

.chat-panel {
  position: fixed;
  bottom: 280px;
  right: 40px;
  width: 380px;
  height: 420px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 91;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  display: none;
}

.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  display: flex;
}

.chat-panel-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 14px 16px;
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
  transition: color 0.2s ease;
}

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

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-message {
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: var(--radius);
  max-width: 85%;
}

.chat-message.bot {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  align-self: flex-start;
}

.chat-message.user {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  align-self: flex-end;
}

.chat-msg {
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: var(--radius);
  max-width: 85%;
  word-wrap: break-word;
}

.chat-msg.assistant {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  align-self: flex-start;
}

.chat-msg.assistant.typing {
  opacity: 0.5;
}

.chat-msg.user {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  align-self: flex-end;
}

.chat-bottom {
  padding: 12px 16px 16px;
}

.chat-starters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.chat-starter {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 11px;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chat-starter:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.chat-powered {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  margin: 8px 0 0;
}

.chat-input-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 10px 10px 10px 16px;
}

.chat-input-form:focus-within {
  border-color: rgba(255, 255, 255, 0.15);
}

.chat-input {
  flex: 1;
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-mic {
  background: none;
  border: none;
  padding: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.chat-mic.listening {
  color: #ef4444;
  animation: mic-pulse 1s ease infinite;
}

@keyframes mic-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-send {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: var(--radius);
  padding: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

/* Work Section */
.work {
  padding: 80px 48px 200px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

@media (hover: hover) {
  .project-card:hover {
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 0 20px rgba(255,255,255,0.04), 0 0 40px rgba(255,255,255,0.02);
  }

  .project-card:hover .project-img img {
    transform: scale(1.05);
  }
}

.project-img img {
  transition: transform 0.4s ease;
}

.card-awards {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.card-awards img {
  height: 32px;
  width: auto;
  transform: none !important;
}

@media (hover: hover) {
  .project-card:hover::before {
    opacity: 1;
  }
}

.project-img {
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-info {
  padding: 20px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-info-left {
  flex: 1;
}

.project-info-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.project-info h3 {
  font-size: 18px;
  font-weight: 400;
}

.project-year {
  font-size: 16px;
  color: var(--text-muted);
}

.project-info p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.4;
}

.project-arrow {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

@media (hover: hover) {
  .project-card:hover .project-arrow {
    transform: translate(3px, -3px);
    color: var(--text);
  }
}

/* About */
.about {
  padding: 80px 48px 120px;
}

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


.about-links {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  font-size: 14px;
}

.about-links a {
  color: var(--text);
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.about-links a:hover {
  border-color: var(--text);
}

/* About Gallery */
.about-gallery {
  padding: 80px 48px 120px;
}

.about-gallery .section-label {
  font-size: 13px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Skills Section */
.skills-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 0 96px;
}

.skills-section h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 16px 0;
}

/* Books & Podcasts */
.media-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 0 96px;
}

.media-section h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 16px 0;
}

.media-grid {
  display: flex;
  gap: 16px;
}

.media-item {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.media-item.book {
  aspect-ratio: 2 / 3;
}

.media-item.podcast {
  aspect-ratio: 1 / 1;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Testimonials */
.testimonials {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 0 200px;
}

.testimonials h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 16px 0;
}

.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* Footer */
footer {
  position: relative;
  overflow: hidden;
}

/* CTA Section */
.cta-section {
  padding: 120px 48px;
  text-align: center;
}

.cta-text {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  pointer-events: none;
  user-select: none;
}

.footer-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 90%, rgba(75, 139, 255, 0.2), transparent),
    radial-gradient(ellipse 70% 50% at 70% 95%, rgba(123, 97, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 50% 85%, rgba(0, 212, 255, 0.12), transparent),
    radial-gradient(ellipse 90% 40% at 55% 100%, rgba(75, 139, 255, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.footer-big {
  text-align: center;
  position: relative;
  padding: 0 48px;
}

.footer-big-text {
  display: block;
  font-size: clamp(90px, 14vw, 220px);
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  letter-spacing: -0.04em;
  cursor: pointer;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 4;
  pointer-events: none;
}

.footer-big-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-big-text.visible .letter {
  opacity: 0.12;
}

.footer-big-text .letter {
  display: inline-block;
  opacity: 0.12;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

.footer-big-text .letter:nth-child(4) {
  width: 0.3em;
}

.footer-bottom {
  padding: 32px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 3;
  margin-top: -80px;
  background: transparent;
}

.footer-connect {
  display: none;
}

.footer-heading {
  display: none;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
  width: 100%;
}

.footer-links .arrow {
  font-size: 12px;
  transition: transform 0.2s;
}

.footer-links a:hover .arrow {
  transform: translate(2px, -2px);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* Active Nav */
.nav-active {
  color: var(--text) !important;
}

/* Page Hero (About / Play) */
.page-hero {
  padding: 200px 0 160px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-hero .hero-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 0.2s;
}

.page-title {
  font-family: 'Neue Montreal', -apple-system, sans-serif;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.page-title .line {
  display: block;
  overflow: hidden;
}

.page-title .line-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: revealLine 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.3s + var(--d) * 0.12s);
}

/* About Photos */
.about-photos {
  padding: 0 0 96px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.photo-wrap {
  width: calc(25% - 3px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-wrap:hover img {
  transform: scale(1.08);
}

/* About Vertical */
.about-vertical {
  padding: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-block {
  margin-bottom: 96px;
}

.about-block h3 {
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 8px 0;
}

.about-block p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 8px 0;
}

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

/* Experience & Recognition Lists */
.experience-list,
.recognition-list {
  list-style: none;
}

.experience-list li,
.recognition-list li {
  display: flex;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 16px;
  color: var(--text-muted);
  gap: 8px;
}

.experience-list li:first-child,
.recognition-list li:first-child {
  border-top: 1px solid #1a1a1a;
}

.exp-role {
  color: var(--text);
  font-weight: 400;
  flex-shrink: 0;
}

.exp-company {
  flex: 1;
}

.exp-date {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: auto;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-list li {
  padding: 8px 18px;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.skill-list li:hover {
  border-color: var(--text);
  color: var(--text);
}

/* Project Page */
.project-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 160px 0 48px;
}

.project-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 12px;
}

.project-hero-sub {
  font-size: 16px;
  color: var(--text-muted);
}

.project-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Section to section: 96px */
.project-content .project-section {
  margin-top: 96px;
}

.project-content .project-section:first-child {
  margin-top: 0;
}

/* Section/image to image/cards: 32px */
.project-content .project-img-full,
.project-content .impact-grid,
.project-content .problem-grid,
.project-content .goals-grid,
.project-content .before-after {
  margin-top: 32px;
}

/* Image/cards to next section: 96px */
.project-content .project-img-full + .project-section,
.project-content .impact-grid + .project-section,
.project-content .problem-grid + .project-section,
.project-content .goals-grid + .project-section,
.project-content .before-after + .project-section {
  margin-top: 96px;
}

/* Details row spacing */
.project-content .project-details {
  margin-top: 16px;
}

.project-content .project-details + .project-section {
  margin-top: 96px;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.project-detail-item h3 {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.project-detail-item p {
  font-size: 16px;
  color: var(--text);
}

.project-section h2 {
  font-size: 22px;
  font-weight: 400;
  margin: 0;
}

.project-section p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.project-section h2 + p,
.project-section h2 + ul {
  margin-top: 8px;
}

.project-img-full {
  width: 100%;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.project-nav-link {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.project-nav-link:hover {
  color: var(--text);
}

/* Project Page — Section Label */
.project-section .section-label {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 8px 0;
}

.section-label + h2 {
  margin-top: 0;
}

/* Project Page — List */
.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-list li {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.project-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Project Page — Impact Grid */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.impact-grid.grid-2x2 {
  grid-template-columns: repeat(2, 1fr) !important;
}

.impact-link {
  display: inline-block;
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-top: 12px;
  transition: color 0.2s ease;
}

.impact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.3s ease;
}

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

.impact-link:hover::after {
  width: 100%;
}

.impact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
}

.impact-number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--text);
  display: block;
  margin-bottom: 12px;
}

.impact-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Project Page — Problem/Goal Grid */
.problem-grid,
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card,
.goal-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
}

.problem-card h3,
.goal-card h3 {
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
}

.problem-card p,
.goal-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Project Page — Before/After */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.before-after-label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Goals grid — 2x2 on desktop */
.goals-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .play-card--desktop-only {
    display: none;
  }
  .project-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-grid,
  .problem-grid,
  .goals-grid {
    grid-template-columns: 1fr;
  }

  .before-after {
    grid-template-columns: 1fr;
  }
}

/* Play Page */
.play-section {
  padding: 0 48px 200px;
}

.play-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 96px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.play-card {
  overflow: visible;
  background: transparent;
}

.play-card--tall {
  grid-row: span 1;
}

.play-card--wide {
  grid-column: span 1;
}

.play-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
}

.play-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}

.play-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}

.play-img-photo {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.play-card--tall .play-img {
  aspect-ratio: 16 / 9;
}

.play-card--wide .play-img {
  aspect-ratio: 16 / 9;
}

.play-info {
  padding: 0;
  margin-bottom: 32px;
}

.play-info h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}

.play-info p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.play-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--text-muted);
}

.play-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.3s ease;
}

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

.play-link:hover::after {
  width: 100%;
}

.play-link .arrow {
  font-size: 12px;
  transition: transform 0.2s;
}

.play-link:hover .arrow {
  transform: translate(2px, -2px);
}

/* Carousel */
.carousel {
  width: 100%;
}

.carousel-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: -52px;
  margin-right: -52px;
}

.carousel-track {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  flex: 1;
  min-width: 0;
}

.carousel-slide {
  display: none;
  width: 100%;
}

.carousel-slide.active {
  display: block;
}

.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.carousel-arrow:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
}

.carousel-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  border: none;
  background: var(--text-muted);
  opacity: 0.3;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.carousel-dot.active {
  opacity: 1;
}

/* Side Nav */
.side-nav {
  position: fixed;
  left: 48px;
  top: 120px;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  width: auto;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  padding: 0;
  text-align: left;
  justify-content: flex-start;
}

.side-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.side-nav-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.4;
  transition: opacity 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.side-nav-link:hover {
  opacity: 0.7;
}

.side-nav-link.active {
  color: var(--text);
  opacity: 1;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 280px;
  right: 40px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* Hide side nav on smaller screens where it would overlap content */
@media (max-width: 1440px) {
  .side-nav,
  .back-to-top {
    display: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --page-padding: 24px;
  }
  .footer-glow {
    display: none;
  }

  .chat-toggle,
  .chat-panel {
    display: none !important;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    font-size: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
    overflow: hidden;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

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

  .nav-cta {
    font-size: 18px !important;
    margin-top: 16px;
  }

  nav {
    padding: 10px 20px;
    top: 12px;
    max-width: calc(100% - 32px);
    gap: 0;
    justify-content: space-between;
  }

  body.menu-open nav {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    left: 0;
    width: 100%;
    max-width: 100%;
    top: 0;
    padding: 22px 20px;
  }

  .hero {
    padding: 120px 24px 60px;
  }

  .work, .about, .about-page, .play-section {
    padding: 60px 24px 120px;
  }

  .page-hero {
    padding: 120px 24px 48px;
  }

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

  .photo-grid .photo-tall {
    grid-row: span 1;
    aspect-ratio: 1;
  }

  .about-photos,
  .about-vertical,
  .skills-section,
  .media-section,
  .testimonials,
  .project-hero,
  .project-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .testimonials {
    padding-bottom: 80px;
  }

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

  .play-card--tall,
  .play-card--wide {
    grid-row: auto;
    grid-column: auto;
  }

  .play-card--tall .play-img,
  .play-card--wide .play-img {
    aspect-ratio: 4 / 3;
  }

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

  .play-link {
    display: none;
  }

  .footer-big {
    display: none;
  }

  .footer-copy {
    display: none;
  }

  .work {
    padding-bottom: 40px;
  }

  .card-awards {
    top: 8px;
    left: 8px;
    gap: 4px;
  }

  .card-awards img {
    height: 20px;
  }

  footer {
    padding-top: 0;
  }

  .footer-bottom {
    padding: 24px 24px;
    justify-content: center;
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .footer-links {
    gap: 24px;
  }
}
