/* ─────────────────────────────────────────────────────────
   YUTING ZHU — PORTFOLIO
   main.css
   ───────────────────────────────────────────────────────── */

/* ── Variables ──────────────────────────────────────────── */
:root {
  /* Colors */
  --c-bg:           #ffffff;
  --c-text:         #0a0a0a;
  --c-text-mid:     #444444;
  --c-text-muted:   #999999;
  --c-border:       #e4e4e4;
  --c-surface:      #f5f5f3;
  --c-surface-hover:#efefed;
  --c-dark-bg:      #0a0a0a;
  --c-dark-text:    #f0f0ee;
  --c-dark-muted:   #888888;
  --c-accent:       #0a0a0a;

  /* Typography */
  --font:           'Inter', system-ui, -apple-system, sans-serif;
  --fs-hero:        clamp(48px, 7.5vw, 112px);
  --fs-h1:          clamp(36px, 5vw, 72px);
  --fs-h2:          clamp(28px, 3.5vw, 52px);
  --fs-h3:          clamp(22px, 2.5vw, 36px);
  --fs-lg:          clamp(18px, 1.4vw, 22px);
  --fs-body:        clamp(15px, 1vw, 17px);
  --fs-sm:          13px;
  --fs-xs:          11px;

  --fw-light:       300;
  --fw-regular:     400;
  --fw-medium:      500;
  --fw-semibold:    600;
  --fw-bold:        700;
  --fw-extrabold:   800;
  --fw-black:       900;

  --lh-tight:       1.12;
  --lh-snug:        1.2;
  --lh-base:        1.6;
  --lh-loose:       1.8;

  --ls-tight:       -0.04em;
  --ls-snug:        -0.02em;
  --ls-normal:      0;
  --ls-wide:        0.08em;
  --ls-wider:       0.14em;

  /* Spacing */
  --sp-xs:          0.5rem;
  --sp-sm:          1rem;
  --sp-md:          2rem;
  --sp-lg:          4rem;
  --sp-xl:          8rem;
  --sp-xxl:         12rem;

  /* Layout */
  --container-max:  1440px;
  --container-pad:  clamp(24px, 5vw, 80px);

  /* Transitions */
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:    cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:       0.2s;
  --dur-base:       0.4s;
  --dur-slow:       0.7s;
  --dur-xslow:      1s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

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

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

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

ul, ol { list-style: none; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Section shared ──────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.section-header {
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-lg);
  border-top: 1px solid var(--c-border);
}

/* ══════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-pad);
  height: 64px;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

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

.nav-logo {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-snug);
  color: var(--c-text);
  transition: opacity var(--dur-fast);
}

.nav-logo:hover { opacity: 0.5; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text);
  position: relative;
  transition: opacity var(--dur-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-text);
  transition: width var(--dur-base) var(--ease-out);
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { opacity: 0.6; }

/* Mobile burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--c-text);
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base);
}

.nav-burger.is-open span:first-child {
  transform: translateY(6px) rotate(45deg);
}
.nav-burger.is-open span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

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

.hero-bg {
  position: absolute;
  inset: -30% 0;
  background-color: #f8f8f6;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 28px,
      rgba(0, 0, 0, 0.025) 28px,
      rgba(0, 0, 0, 0.025) 29px
    );
  will-change: transform;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 120px;
}


.hero-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 2rem;
  opacity: 0;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--c-text);
  max-width: 16ch;
  margin-bottom: 2.5rem;
}

/* Word-split animation spans injected by JS */
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  animation: wordReveal 0.7s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 300ms);
}

.hero-sub {
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  color: var(--c-text-mid);
  letter-spacing: var(--ls-snug);
  margin-top: 3rem;
  opacity: 0;
}


/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  right: var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1.8s forwards;
}

.scroll-cue-text {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-text-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.scroll-cue-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--c-text-muted), transparent);
  animation: scrollLinePulse 2s ease-in-out 2s infinite;
}

/* ══════════════════════════════════════════════════════════
   WORK / PROJECTS
   ══════════════════════════════════════════════════════════ */
.work {
  padding-bottom: var(--sp-xxl);
}

/* ── Projects list (row layout) ──────────────────────────── */
.projects-list {
  border-top: 1px solid var(--c-border);
}

/* Row */
.project-row {
  border-bottom: 1px solid var(--c-border);
}

.project-row-link,
.project-row-link--disabled {
  display: flex;
  align-items: center;
  gap: 0;
  padding: clamp(28px, 3.5vw, 48px) 0;
  transition: background var(--dur-fast);
  cursor: pointer;
  text-decoration: none;
}

.project-row:not(.project-row--tbd) .project-row-link:hover {
  background: var(--c-surface);
  margin: 0 calc(-1 * var(--container-pad));
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.project-row-link--disabled {
  cursor: default;
  pointer-events: none;
}

/* Left col */
.project-row-left {
  width: 50%;
  padding-right: clamp(32px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-row-year {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  color: var(--c-text-muted);
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.project-row-title {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  color: var(--c-text);
  margin-bottom: 0.75rem;
  position: relative;
  display: block;
  width: fit-content; /* shrink to text width so ::after tracks it */
}

.project-row-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--c-text);
  transition: width 0.3s var(--ease-out);
}

.project-row:not(.project-row--tbd) .project-row-link:hover .project-row-title::after {
  width: 100%;
}

.project-row-desc {
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  color: var(--c-text-mid);
  margin-bottom: 1rem;
  max-width: 42ch;
}

.project-row-category {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* Right col */
.project-row-right {
  width: 50%;
  display: flex;
  gap: clamp(8px, 1vw, 12px);
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}

/* Single image: same ratio, no override needed */
.project-row-right--single {
  aspect-ratio: 16 / 9;
}

.project-row-img {
  flex: 1;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* ── Blur-bg wrap (Apple Music style) ───────────────────── */
.project-img-blur-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #111; /* dark fallback, prevents white bleed on blur edges */
  width: 100%;
  height: 100%;
  /* Flex centers the fg image; bg layer is absolute so it stays out of flow */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background layer: same image blurred + scaled to fill, no white edges */
.project-img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(24px);
  transform: scale(1.4); /* overshoot so blur edge never shows */
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Foreground layer: fills container, cropped to fit */
.project-img-fg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

/* Placeholder fills the whole wrap */
.project-img-blur-wrap .placeholder-img,
.project-img-blur-wrap .placeholder-img--muted {
  width: 100%;
  height: 100%;
  transition: transform var(--dur-slow) var(--ease-out);
}

/* Hover zoom — fg keeps translateY, placeholder uses scale only */
.project-row:not(.project-row--tbd) .project-row-link:hover .project-img-fg {
  transform: scale(1.04);
}

.project-row:not(.project-row--tbd) .project-row-link:hover .project-img-blur-wrap .placeholder-img,
.project-row:not(.project-row--tbd) .project-row-link:hover .project-img-blur-wrap .placeholder-img--muted {
  transform: scale(1.04);
}

/* Placeholder textures */
.placeholder-img {
  width: 100%;
  height: 100%;
  background-color: #e8e8e6;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(0, 0, 0, 0.055) 8px,
      rgba(0, 0, 0, 0.055) 9px
    );
}

.placeholder-img--muted {
  background-color: #f0f0ee;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(0, 0, 0, 0.025) 8px,
      rgba(0, 0, 0, 0.025) 9px
    );
}

/* TBD row */
.project-row--tbd {
  opacity: 0.4;
}

/* ══════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════ */
.about {
  padding: var(--sp-xxl) 0;
  border-top: 1px solid var(--c-border);
}

.about-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about-label-col {
  padding-top: 0.3em;
}

.about-text-col {
  max-width: 640px;
}

.about-text {
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  line-height: var(--lh-loose);
  letter-spacing: var(--ls-snug);
  color: var(--c-text-mid);
  margin-bottom: 1.8rem;
}

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

.about-contact {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-snug);
  color: var(--c-text);
  border-bottom: 1.5px solid var(--c-text);
  padding-bottom: 2px;
  transition: opacity var(--dur-fast);
}

.about-contact:hover {
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  padding: var(--sp-lg) 0;
  border-top: 1px solid var(--c-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-email {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-snug);
  color: var(--c-text);
  position: relative;
  transition: opacity var(--dur-fast);
}

.footer-email::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-text);
  transition: width var(--dur-base) var(--ease-out);
}

.footer-email:hover::after { width: 100%; }
.footer-email:hover { opacity: 0.6; }

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  letter-spacing: var(--ls-wide);
}

/* ══════════════════════════════════════════════════════════
   PROJECT DETAIL PAGES (shared)
   ══════════════════════════════════════════════════════════ */

/* Header */
.proj-header {
  padding-top: 120px;
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--c-border);
}

.proj-header-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.proj-category-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
}

.proj-title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--c-text);
  margin-bottom: 1.5rem;
}

.proj-intro {
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  line-height: var(--lh-loose);
  color: var(--c-text-mid);
  max-width: 520px;
  margin-bottom: 2rem;
}

.proj-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-snug);
  color: var(--c-text);
  border: 1.5px solid var(--c-text);
  padding: 10px 20px;
  transition: background var(--dur-fast), color var(--dur-fast);
}

.proj-ext-link:hover {
  background: var(--c-text);
  color: var(--c-bg);
}

/* Meta sidebar */
.proj-meta {
  padding-top: 0.5rem;
}

.proj-meta-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--c-border);
}

.proj-meta-row:first-child {
  border-top: 1px solid var(--c-border);
}

.proj-meta-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 0.5rem;
}

.proj-meta-value {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text);
  line-height: 1.5;
}

.proj-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.proj-tag {
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.03em;
  color: var(--c-text-mid);
  border: 1px solid var(--c-border);
  padding: 3px 9px;
  border-radius: 2px;
}

/* Full-width parallax image */
.proj-hero-img {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.proj-hero-img-inner {
  position: absolute;
  inset: -20% 0;
  will-change: transform;
}

.proj-hero-img-inner .placeholder-img {
  height: 100%;
}

/* Content sections */
.proj-section {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--c-border);
}

.proj-section--dark {
  background: var(--c-dark-bg);
  color: var(--c-dark-text);
  border-bottom-color: #1e1e1e;
  padding: var(--sp-xl) 0;
}

.proj-section-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.proj-section-label {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-snug);
  color: var(--c-text);
  position: sticky;
  top: 100px;
}

.proj-section--dark .proj-section-label {
  color: var(--c-dark-text);
}

.proj-section-body p {
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  line-height: var(--lh-loose);
  color: var(--c-text-mid);
  margin-bottom: 1.5rem;
}

.proj-section--dark .proj-section-body p {
  color: var(--c-dark-muted);
}

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

/* Bullet list in project sections */
.proj-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.proj-list li {
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  line-height: var(--lh-loose);
  color: var(--c-text-mid);
  padding: 1rem 0;
  border-top: 1px solid var(--c-border);
}

.proj-list li:last-child {
  border-bottom: 1px solid var(--c-border);
}

.proj-section--dark .proj-list li {
  color: #cccccc;
  border-top-color: #2a2a2a;
}

.proj-section--dark .proj-list li:last-child {
  border-bottom-color: #2a2a2a;
}

/* Full-width single image inside section body */
.proj-img-single {
  margin-top: 3rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.proj-img-single .placeholder-img,
.proj-img-single .placeholder-img-dark {
  width: 100%;
  height: 100%;
}

.proj-img-single img,
.proj-img-single video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive device grid: Desktop / Tablet / Mobile side by side */
.proj-device-grid {
  display: flex;
  align-items: flex-end; /* align bottoms so labels line up */
  gap: 1.5rem;
  margin-top: 3rem;
}

.proj-device {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Proportional widths reflecting relative screen sizes */
.proj-device--desktop { flex: 5; }
.proj-device--tablet  { flex: 3; }
.proj-device--mobile  { flex: 2; }

.proj-device-screen {
  height: 280px;
  overflow: hidden;
}

.proj-device-screen .placeholder-img {
  width: 100%;
  height: 100%;
}

.proj-device-screen img,
.proj-device-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proj-device-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* Video placeholder block */
.proj-video-block {
  margin-top: 3rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}

.proj-video-block .placeholder-img-dark {
  width: 100%;
  height: 100%;
}

.proj-video-block video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image pairs */
.proj-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.proj-img-block {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
}

.proj-img-block .placeholder-img,
.proj-img-block .placeholder-img-dark {
  width: 100%;
  height: 100%;
}

/* Detail page section image/video placeholders */
.proj-ph {
  aspect-ratio: 2 / 1;
  border-radius: 12px;
  overflow: hidden;
}

.proj-ph-pair .proj-ph {
  aspect-ratio: 4 / 3;
}

.placeholder-img-dark {
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(255, 255, 255, 0.04) 8px,
      rgba(255, 255, 255, 0.04) 9px
    );
}

/* Project nav */
.proj-nav {
  padding: var(--sp-lg) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.proj-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--sp-md);
  border-top: 1px solid var(--c-border);
  transition: background var(--dur-fast);
}

.proj-nav-item:hover {
  background: var(--c-surface);
}

.proj-nav-item--next {
  text-align: right;
  border-left: 1px solid var(--c-border);
}

.proj-nav-dir {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.proj-nav-title {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-snug);
  color: var(--c-text);
}

/* ── About: video blob ───────────────────────────────────── */
.about-video-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-video-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  flex-shrink: 0;
}

.about-video-media {
  position: absolute;
  inset: 0;
  clip-path: path('M 162,30 C 218,16 302,54 318,122 C 334,190 306,264 244,296 C 182,328 98,320 52,268 C 8,216 10,130 54,80 C 88,42 116,40 162,30 Z');
  background: #e8e8e4;
  overflow: hidden;
}

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

.about-video-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.about-video-stroke {
  fill: none;
  stroke: #c8c4be;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 960;
  stroke-dashoffset: 960;
  animation: drawBlobStroke 1.6s cubic-bezier(0.4, 0, 0.6, 1) 0.2s forwards;
  animation-play-state: paused;
}

.about-video-col.is-visible .about-video-stroke {
  animation-play-state: running;
}

@keyframes drawBlobStroke {
  to { stroke-dashoffset: 0; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 1rem var(--container-pad);
    font-size: var(--fs-sm);
  }

  .nav-link::after { display: none; }

  .nav-burger {
    display: flex;
  }

  .proj-header-inner {
    grid-template-columns: 1fr;
  }

  .proj-meta {
    border-top: 1px solid var(--c-border);
    padding-top: var(--sp-md);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }
}

/* Mobile */
@media (max-width: 680px) {
  :root {
    --sp-lg:  2rem;
    --sp-xl:  3rem;
    --sp-xxl: 4.5rem;
  }

  .hero-container {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .proj-header {
    padding-top: 80px;
    padding-bottom: var(--sp-lg);
  }

  .section-header {
    padding-top: var(--sp-lg);
    padding-bottom: var(--sp-md);
  }

  .project-row-link,
  .project-row-link--disabled {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .project-row-left {
    width: 100%;
    padding-right: 0;
  }

  .project-row-right,
  .project-row-right--single {
    width: 100%;
  }

  .proj-section-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .proj-section-label {
    position: static;
  }

  .proj-img-pair {
    grid-template-columns: 1fr;
  }

  .proj-nav {
    grid-template-columns: 1fr;
  }

  .proj-nav-item--next {
    border-left: none;
    border-top: 1px solid var(--c-border);
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .footer-inner .footer-email {
    margin-left: 0 !important;
  }

  .hero-scroll-cue {
    display: none;
  }

  .about-label-col { order: 1; }
  .about-video-col { order: 2; }
  .about-text-col  { order: 3; }

  .about-video-wrap {
    width: 240px;
    height: 240px;
  }

  .about-video-media {
    clip-path: path('M 122,22 C 164,12 226,40 238,92 C 250,142 230,198 184,222 C 138,246 74,240 39,201 C 6,162 8,98 40,60 C 66,32 88,30 122,22 Z');
  }

}
