@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,800;1,300;1,500&display=swap');

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

:root {
  --black:    #1C1B19;
  --dark-1:   #0e0e0e;
  --dark-2:   #161616;
  --dark-3:   #202020;
  --mid-1:    #404040;
  --mid-2:    #6b6b6b;
  --mid-3:    #999;
  --gray-100: #f0efeb;
  --gray-50:  #f8f7f4;
  --white:    #ffffff;
  --accent:   #c9a87c;
  --accent-2: #e8d4b8;
  --font-display: 'Cormorant Garamond', 'Garamond Premier Pro', Georgia, serif;
  --font-body:    'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-h:    72px;
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.55, 0, 1, 0.45);
  --ease-out: cubic-bezier(0, 0.55, 0.45, 1);
  --r:        2px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.page-vr-discovery { background: #12121A; }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ─── CURSOR ──────────────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; mix-blend-mode: difference;
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), width 0.35s var(--ease), height 0.35s var(--ease), opacity 0.3s;
}
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 64px; height: 64px; }

/* ─── NAV ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: transparent;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: #141414;
  border-color: rgba(255,255,255,0.06);
}
nav.scrolled .nav-name,
nav.name-bold .nav-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(255,255,255,0.9);
  transform: translateY(0.5px);
}

/* left cluster: icon + name + title all on one line */
.nav-left {
  display: flex; align-items: center; gap: 12px;
}

/* wave/menu icon */
.hamburger {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  cursor: pointer; flex-shrink: 0; background: none; border: none;
}
.hamburger svg { overflow: visible; display: block; }
.hamburger svg path {
  stroke: rgba(255,255,255,0.6);
  transition: stroke 0.2s;
}
.hamburger:hover svg path { stroke: var(--white); }
.hb-lines, .hb-close { transition: opacity 0.3s var(--ease); }
.hb-close { opacity: 0; }
.hamburger.open .hb-lines { opacity: 0; }
.hamburger.open .hb-close { opacity: 1; }

/* nav text — Raleway Regular uppercase */
.nav-name {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6); white-space: nowrap;
  transition: opacity 0.25s ease;
  transform: translateY(1.5px);
  text-decoration: none;
  cursor: pointer;
}
.nav-name:hover { opacity: 0.65; }

.nav-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-title {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6); white-space: nowrap;
  transform: translateY(1.5px);
}

/* right cluster */
.nav-right {
  display: flex; align-items: center; gap: 10px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }
.nav-sep {
  color: rgba(255,255,255,0.25);
  font-size: 11px; font-weight: 400;
}
.nav-left .nav-sep { transform: translateY(2px); }
.nav-right .nav-sep { transform: translateY(-0.5px); }
.nav-contact {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ─── MENU POPOVER ─────────────────────────────── */
.menu-overlay {
  position: fixed;
  top: var(--nav-h);
  left: 24px;
  width: 400px;
  z-index: 200;
  background: #141414;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 32px 22px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top left;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s 0.18s;
  pointer-events: none;
}
.menu-overlay.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s 0s;
  pointer-events: all;
}

.menu-close { display: none; }

.menu-nav-links {
  display: flex; flex-direction: column;
}
.menu-link {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 6px;
  margin: 0 4px;
  transition: color 0.15s, background 0.15s;
}
.menu-link:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.menu-footer { display: none; }

/* ─── REVEAL ANIMATIONS ───────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-slow {
  opacity: 0; transform: translateY(56px);
  transition: opacity 2.2s cubic-bezier(0.25, 0.1, 0.25, 1), transform 2.4s var(--ease);
}
.reveal-slow.visible { opacity: 1; transform: translateY(0); }
.reveal-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-scale {
  opacity: 0; transform: scale(0.96);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ─── STAGGER CHILDREN ────────────────────────── */
.stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.18s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.26s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.34s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.42s; }

/* ─── DARK SECTIONS ───────────────────────────── */
.dark-section {
  background: var(--dark-1);
  color: var(--white);
}

/* ─── EYEBROW LABEL ───────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 24px; display: block;
}

/* ─── HOME — APPROACH SECTION ─────────────────── */
/* ─── HOME — WELCOME HERO ─────────────────────── */
.welcome-hero {
  position: relative;
  height: 90vh;
  background: #141414;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.welcome-hero-spacer {
  flex: 1;
}
.welcome-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  transform: translateY(-30px);
}
.hero-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  line-height: 2;
  margin: 0;
}
.welcome-display {
  margin: 40px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 116px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: rgba(255,255,255,0.9);
  display: block;
  margin-bottom: 0.18em;
}
.hero-h1-italic {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 116px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: rgba(255,255,255,0.9);
  display: block;
  padding-left: 0.3em;
}
.welcome-scroll-cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.welcome-scroll-btn {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.6);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
  flex-shrink: 0;
}
.welcome-scroll-btn:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(3px);
}

/* ─── HOME — EXPERIENCE HIGHLIGHTS ───────────── */
.exp-section {
  position: relative;
  background: #ffffff;
  padding: 140px 120px 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.exp-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  line-height: 0.93;
  margin-bottom: 64px;
  padding-bottom: 32px;
  text-align: center;
}
.exp-grid-wrap {
  width: 68vw;
}
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 104px;
  justify-items: center;
}
.exp-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.exp-logo {
  display: flex;
  align-items: center;
  height: 32px;
  margin-bottom: 20px;
  margin-top: 32px;
}
.exp-logo img {
  height: 100%;
  width: auto;
  display: block;
}

/* Meta */
.exp-logo-meta { gap: 8px; }
.exp-meta-mark {
  font-size: 26px;
  line-height: 1;
  color: #0082FB;
  font-weight: 700;
}
.exp-meta-word {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1c1e21;
  letter-spacing: -0.01em;
}

/* Atomic Robot */
.exp-logo-ar { gap: 8px; align-items: center; }
.exp-ar-word {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1c1e21;
  letter-spacing: 0.01em;
}

/* Oral-B */
.exp-logo-oralb {
  height: 32px;
}

.exp-duration-num {
  display: inline-block;
  transform: translateY(-2px);
}
.exp-duration {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0a0a;
  margin-bottom: 10px;
  padding-top: 20px;
}
.exp-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(0,0,0,0.65);
  max-width: 100%;
}
.exp-scroll-btn {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
  color: rgba(0,0,0,0.45);
  background: rgba(248,247,244,0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: color 0.25s, border-color 0.25s, opacity 0.35s, transform 0.25s var(--ease);
}
.exp-scroll-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
.exp-scroll-btn:hover {
  color: rgba(0,0,0,0.8);
  border-color: rgba(0,0,0,0.4);
  transform: translateX(-50%) translateY(3px);
}

/* ─── HOME — CASE STUDIES ─────────────────────── */
.cs-section { background: #ffffff; border-top: 2px solid rgba(0,0,0,0.08); }

.cs-header {
  background: #ffffff;
  padding: 140px 72px 130px;
  display: flex;
  justify-content: center;
}
.cs-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.02em;
  line-height: 0.93;
  text-align: center;
}
.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 0 120px 100px;
}
.cs-card {
  position: relative;
  display: block;
  transition: filter 0.35s;
}
.cs-card:hover { filter: brightness(1.08); }
.cs-card-img {
  width: 100%;
  height: auto;
  display: block;
}
.cs-card-top {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  padding: 20px 0 0;
}
.cs-card-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.75);
}
.cs-card-tag {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
}
.cs-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
}
.cs-footer-btn {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.45);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.cs-footer-btn:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(3px);
}


/* Text card backgrounds */
.card-bg {
  position: absolute; inset: 0;
}
.card-bg-1 { background: #141312; }
.card-bg-2 { background: #2C2F34; }
.card-bg-3 { background: #48404D; }
.card-bg-4 { background: #141312; }

/* Image card backgrounds */
.card-img-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s var(--ease);
}
.project-card:hover .card-img-bg { transform: scale(1.04); }

.card-img-discovery { background-image: url('../assets/vr%20discovery_hero.png'); }
.card-img-store     { background-image: url('../assets/Store_hero.png'); }
.card-img-search    { background-image: url('../assets/Search_hero.png'); }
.card-img-personal  { background-image: url('../assets/Personal_hero.png'); }

.card-noise {
  position: absolute; inset: 0; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 45%, transparent 75%);
}
.card-video-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 55%; height: auto;
  border-radius: 12px;
  clip-path: inset(4px round 12px);
  transition: transform 0.9s var(--ease);
  z-index: 1;
  pointer-events: none;
}
.project-card:hover .card-video-overlay { transform: translate(-50%, -50%) scale(1.04); }
.card-content {
  position: absolute; inset: 0;
  padding: 40px 44px; display: flex; flex-direction: column; justify-content: flex-end;
}

/* Large decorative image watermark on text cards */
.card-watermark {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  transform-origin: bottom left;
  transition: transform 0.9s var(--ease);
}
.project-card:hover .card-watermark { transform: scale(1.04); }

.card-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 3vw, 56px); font-weight: 500; letter-spacing: -0.02em;
  color: var(--white); line-height: 1.08;
}
.card-arrow {
  position: absolute; bottom: 40px; right: 44px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  transform: translateY(0px); opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s, border-color 0.3s;
}
.project-card:hover .card-arrow {
  opacity: 1; transform: translateY(0);
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25);
}

/* ─── HOME — DESIGN IN THE AI ERA ─────────────── */
.aiera-section {
  position: relative;
  min-height: 100vh;
  background: #141414;
  overflow: hidden;
  padding-top: clamp(20px, 3.5vh, 48px);
}
.aiera-headline { /* no horizontal padding — flush left like welcome hero */ }
.aiera-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 200px;
}
.aiera-headline-img {
  display: block;
  width: clamp(220px, 36vw, 560px);
  height: auto;
  flex-shrink: 0;
}

.aiera-line1 {
  display: flex;
  align-items: flex-end; /* baseline-align: smaller "in the" sits at foot of "Design" */
  white-space: nowrap;
  line-height: 1;
}
.aiera-word1 {
  font-family: var(--font-display);
  font-size: clamp(110px, 21vw, 460px);
  font-weight: 700;
  color: #e6e0d8;
  letter-spacing: -0.025em;
  line-height: 0.88;
  position: relative;
  left: -0.015em;
}
.aiera-inthe {
  font-family: var(--font-display);
  font-size: clamp(32px, 6.5vw, 140px);
  font-weight: 400;
  color: #e6e0d8;
  letter-spacing: -0.02em;
  line-height: 1;
  padding-bottom: 0.08em;
  flex-shrink: 0;
}
.aiera-word2 {
  font-family: var(--font-display);
  font-size: clamp(110px, 21vw, 460px);
  font-weight: 700;
  font-style: italic;
  color: #e6e0d8;
  letter-spacing: -0.025em;
  line-height: 0.88;
  display: block;
  position: relative;
  left: -0.015em;
}
.aiera-body {
  position: relative;
  width: clamp(310px, 38vw, 530px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  margin-left: calc(-4vw - 30px);
  margin-top: calc(clamp(50px, 11vw, 170px) + 110px);
}
.aiera-body p,
.aiera-body ol,
.aiera-body li {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.aiera-body ol {
  padding-left: 1.2em;
  margin: 0;
  margin-top: -14px;
}
.aiera-bold {
  font-family: var(--font-body);
  font-weight: 800;
  color: rgba(255,255,255,0.9);
}
.aiera-italic {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: italic;
  color: rgba(255,255,255,0.9);
}
.aiera-scroll-btn {
  position: absolute;
  bottom: 18vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.6);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.aiera-scroll-btn:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.45);
  transform: translateX(-50%) translateY(3px);
}

/* ─── HOME — ABOUT ME ─────────────────────────── */
.aboutme-section {
  scroll-margin-top: 10vh;
  background: #26201E;
  padding: 140px clamp(40px, 15vw, 240px) 100px;
  display: flex;
  flex-direction: column;
}
.aboutme-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  font-style: normal;
  color: #e6e0d8;
  letter-spacing: -0.02em;
  line-height: 0.93;
  margin-bottom: 100px;
  text-align: center;
}
.aboutme-content {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  padding-left: 0;
}
.aboutme-photo {
  flex: 0 0 clamp(260px, 26vw, 380px);
  position: relative;
}
.aboutme-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 3px;
}
.aboutme-photo-placeholder {
  width: 100%;
  aspect-ratio: 355 / 325;
  background: #2a2826;
  border-radius: 3px;
}
.aboutme-photo img + .aboutme-photo-placeholder { display: none; }
.aboutme-bio {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 520px;
}
.aboutme-bio-heading {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 6px;
}
.aboutme-bio-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}
.aboutme-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 160px;
}

/* ─── FOOTER ──────────────────────────────────── */
footer {
  background: var(--black); color: rgba(255,255,255,0.18);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.06em;
}
footer a { color: rgba(255,255,255,0.32); transition: color 0.2s; }
footer a:hover { color: var(--white); }

/* ─── RESUME PAGE ─────────────────────────────── */
.resume-hero .eyebrow { color: #B09A79; }
.resume-hero {
  background: #1C1B19; color: var(--white);
  padding: calc(var(--nav-h) + 100px) 48px 100px;
  display: flex; flex-direction: column; align-items: center;
}
.resume-hero-inner {
  width: 100%; max-width: 1100px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.resume-hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 92px); font-weight: 400; letter-spacing: -0.03em;
  line-height: 0.93; max-width: 700px;
}
.resume-hero-subtitle {
  margin-top: 32px;
  font-family: var(--font-body);
  font-size: 15px; color: rgba(255,255,255,0.38);
  font-weight: 300; max-width: 440px; line-height: 1.7;
}
.resume-hero-actions { margin-top: 48px; display: flex; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
  transition: all 0.25s var(--ease); cursor: pointer;
}
.btn-primary {
  background: var(--white); color: var(--black);
}
.btn-primary:hover { background: var(--gray-100); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.2); color: var(--white);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); transform: translateY(-1px); }

.resume-body {
  background: var(--gray-50);
  padding: 80px 48px 120px;
  max-width: 960px; margin: 0 auto;
}
.resume-section { margin-bottom: 72px; }
.resume-section-label {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mid-2); padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08); margin-bottom: 40px;
}
.resume-summary {
  font-family: var(--font-body);
  font-size: 19px; font-weight: 300; line-height: 1.7; color: var(--dark-1);
  max-width: 680px;
}
.job { margin-bottom: 48px; }
.job-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.job-title { font-size: 18px; font-weight: 500; letter-spacing: -0.3px; }
.job-company {
  font-size: 13px; color: var(--accent); font-weight: 500; letter-spacing: 0.02em;
  margin-top: 3px;
}
.job-date {
  font-family: var(--font-body);
  font-size: 11px; color: var(--mid-2); letter-spacing: 0.04em;
  white-space: nowrap; margin-top: 4px;
}
.job-bullets { padding-left: 0; list-style: none; }
.job-bullets li {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.7; color: var(--mid-1);
  padding-left: 18px; position: relative; margin-bottom: 8px;
}
.job-bullets li::before {
  content: '—'; position: absolute; left: 0;
  color: rgba(0,0,0,0.2); font-size: 11px; top: 4px;
}
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.skill-group-label {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid-2); margin-bottom: 12px;
}
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pill {
  font-family: var(--font-body);
  font-size: 12px; padding: 6px 14px; border-radius: 100px;
  background: var(--white);
  color: var(--dark-2);
  transition: border-color 0.2s, transform 0.2s;
}
.resume-pdf-wrapper {
  background: #1C1B19;
  padding: 0 48px 120px;
  display: flex; justify-content: center;
}
.resume-pdf-embed {
  width: 100%; max-width: 1100px;
  aspect-ratio: 8.5 / 11;
  height: auto;
  border: none;
  border-radius: 4px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.1);
  display: block;
}

/* ─── PROJECT PAGES ───────────────────────────── */
.project-hero {
  min-height: 90vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 60px) 64px 80px;
  position: relative; overflow: hidden;
}
.project-hero-bg {
  position: absolute; inset: 0;
}
.project-hero:hover .project-hero-bg { transform: scale(1.02); }
.hero-bg-vr-discovery { background: #141414; }
.hero-bg-burst { background: url('../assets/burst%20BG.png') center center / cover no-repeat; }
.project-hero:has(.hero-bg-vr-discovery) { min-height: 85vh; }
.page-vr-discovery .project-hero { flex-direction: row; align-items: center; justify-content: flex-start; }
.page-vr-discovery .project-hero-content { flex: 0 0 42%; }
.page-vr-discovery .project-hero-title { color: rgba(255,255,255,0.9); font-weight: 700; font-size: clamp(52px, 7vw, 90px); letter-spacing: -0.02em; line-height: 0.85; margin-bottom: 48px; }
.page-vr-discovery .project-hero-desc  { color: rgba(255,255,255,0.7); max-width: 600px; }
.page-vr-discovery .disc-context-col   { text-align: left; max-width: 420px; }
.page-vr-discovery .disc-context-col p { color: rgba(255,255,255,0.65); }
.page-vr-discovery .disc-context-col h4 { color: rgba(255,255,255,0.9); }
.page-vr-discovery .disc-context-cols  { column-gap: 96px; row-gap: 56px; max-width: 936px; margin-left: auto; margin-right: auto; }
.page-vr-discovery .disc-context-cols > *:nth-child(odd)  { justify-self: start; }
.page-vr-discovery .disc-context-cols > *:nth-child(even) { justify-self: start; }
.page-vr-discovery .disc-context-title { font-size: clamp(32px, 4vw, 56px); font-weight: 700; line-height: 0.93; letter-spacing: -0.02em; }
.page-vr-discovery .project-section p:not(.disc-lead)  { font-size: 14px; }
.page-vr-discovery .project-hero-tag   { font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,0.9); }
.page-vr-discovery .project-hero-tag:hover { color: #fff; }
.project-hero-tag {
  color: rgba(0,0,0,0.35); margin-top: 36px; display: inline-block;
}
.project-hero-tag:hover { color: rgba(0,0,0,0.65); text-decoration: underline; }
/* ── Discovery: hero media ── */
.disc-hero-media {
  flex: 1;
  display: flex; gap: 72px;
  align-items: center; justify-content: center;
  z-index: 1;
}
.disc-hero-media video,
.disc-hero-media img {
  height: clamp(384px, 86vh, 672px);
  width: auto; border-radius: 52px;
  display: block;
  box-shadow: 0 0 0 8px #000, inset 0 0 0 1px #000;
}

/* ── Discovery: prototype showcase ── */
.disc-section-img {
  position: relative; line-height: 0;
}
.disc-section-img img,
.disc-section-img video { width: 100%; display: block; }
.disc-section-label {
  position: absolute; bottom: 64px; left: 64px;
  color: rgba(255,255,255,0.9); text-decoration: underline;
}

/* ── Discovery: product context ── */
.disc-product-context {
  background: #141414;
  padding: 160px 64px;
}
.disc-product-context .disc-context-title { margin-top: 0; margin-bottom: 96px; color: rgba(255,255,255,0.9); }
.disc-product-context .disc-context-cols  { margin-bottom: 0; }
.disc-context-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px); font-weight: 600; letter-spacing: -0.02em;
  color: #1C1B19; text-align: center; margin: 80px 0 116px;
}
.project-section .disc-context-title {
  font-size: clamp(36px, 5vw, 64px); font-weight: 600; margin-bottom: 0;
}
.disc-context-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 48px; margin: 0 auto 24px;
}
.disc-context-col { text-align: center; max-width: 500px; }
.disc-context-cols > *:nth-child(odd)  { justify-self: end; }
.disc-context-cols > *:nth-child(even) { justify-self: start; }
.disc-context-col h4 {
  margin-bottom: 14px;
}
.disc-context-col p {
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.55; color: rgba(0,0,0,0.65);
  margin-bottom: 12px;
}
.disc-context-line {
  width: 100%; margin: 48px 0 0;
}
.disc-context-line-svg {
  display: block; width: 100%; height: 180px;
}
.disc-line-branch, .disc-line-stem {
  fill: none;
  stroke: rgba(97,82,71,0.25);
  stroke-width: 1;
}
.disc-line-left {
  stroke-dasharray: 70; stroke-dashoffset: 70;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4,0,0.2,1);
}
.disc-line-right {
  stroke-dasharray: 70; stroke-dashoffset: 70;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4,0,0.2,1);
}
.disc-line-stem {
  stroke-dasharray: 36; stroke-dashoffset: 36;
  transition: stroke-dashoffset 0.4s cubic-bezier(0.4,0,0.2,1) 0.5s;
}
.disc-context-line.visible .disc-line-left,
.disc-context-line.visible .disc-line-right { stroke-dashoffset: 0; }
.disc-context-line.visible .disc-line-stem  { stroke-dashoffset: 0; }

/* ── Discovery: my approach ── */
.disc-approach {
  background: #141414;
  padding: 56px 64px 140px;
}
.page-vr-discovery .disc-approach { background: #F4F4F4; }
.page-vr-discovery .disc-approach-title { color: #1C1B19; margin-bottom: 72px; }
.page-vr-discovery .disc-approach-body { color: rgba(0,0,0,0.65); }
.disc-approach-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.disc-approach-title {
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
}
.disc-approach-body {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.disc-label {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.label {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none;
}
.label-light {
  font-weight: 700;
  color: #3C3532;
}
.caption {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 400; line-height: 1.65;
}
.disc-lead {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 26px); font-weight: 400; line-height: 1.4;
}
.body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 20px); font-weight: 400; line-height: 1.6;
}
.disc-approach-block {
  background: #2a2a2a;
  border-radius: 8px;
  width: 87%;
  margin: 48px auto;
  aspect-ratio: 4 / 3;
}
img.disc-approach-block {
  background: none;
}

/* ── Discovery: step marker ── */
.step-marker {
  display: flex; flex-direction: column; align-items: center;
  margin: 80px auto 0px; width: fit-content;
}
.step-marker-line {
  width: 1px; height: 110px;
  background: #615247;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.step-marker-circle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #615247;
  display: flex; align-items: center; justify-content: center;
  margin-top: 0;
  opacity: 0;
  transition: opacity 0.4s ease 0.5s;
}
.step-marker-circle span {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  color: #C7892B;
  position: relative; top: -2px;
}
.step-marker.visible .step-marker-line { transform: scaleY(1); }
.step-marker.visible .step-marker-circle { opacity: 1; }

/* ── Discovery: design challenge + timeline ── */
.disc-brief {
  background: #fff;
  padding: 100px 64px;
  display: flex; flex-direction: column;
  align-items: center; gap: 72px;
}
.disc-brief-block {
  text-align: center; max-width: 640px;
}
.disc-brief-block h4 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.02em;
  color: #1C1B19; margin-bottom: 12px;
}
.disc-brief-block p {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 400; line-height: 1.75; color: rgba(0,0,0,0.65);
}

/* ── Discovery: landing experience comparison ── */
.disc-comparison {
  background: #fff;
  padding: 160px 270px 160px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 48px; row-gap: 56px;
}
.disc-comp-img {
  width: 100%; max-width: 500px; border-radius: 12px; display: block;
}
.disc-comparison > *:nth-child(odd)  { justify-self: end; }
.disc-comparison > *:nth-child(even) { justify-self: start; }
.disc-comp-text {
  text-align: center;
  max-width: 500px;
}
.disc-comp-text h3 {
  margin-bottom: 14px;
}
.disc-comp-text p {
  color: rgba(0,0,0,0.65);
}
.disc-comparison-chevron {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; align-self: center;
}
.disc-comparison-chevron img { width: 24px; height: auto; }

.hero-bg-quest-store  { background: linear-gradient(145deg, #061310 0%, #0e2318 50%, #091a13 100%); }
.hero-bg-vr-search    { background: linear-gradient(145deg, #030d12 0%, #062030 50%, #041a28 100%); }
.hero-bg-personal     { background: linear-gradient(145deg, #100c08 0%, #28180a 50%, #1e1208 100%); }

.hero-bg-grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-bg-glow {
  position: absolute; width: 60%; height: 60%;
  top: 10%; left: 20%;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}
.glow-purple { background: #7c3aed; }
.glow-orange { background: #ea580c; }
.glow-blue   { background: #0ea5e9; }
.glow-amber  { background: #d97706; }

.project-hero-content { position: relative; z-index: 1; }
.project-category {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.project-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px); font-weight: 500; letter-spacing: -0.025em;
  line-height: 0.93; color: var(--white); max-width: 800px; margin-bottom: 32px;
}
.project-hero-desc {
  color: rgba(255,255,255,0.7); font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6; max-width: 560px;
}
.project-meta-row {
  display: flex; gap: 40px; flex-wrap: wrap;
}
.project-meta-item label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.28); margin-bottom: 5px;
}
.project-meta-item span {
  font-family: var(--font-body);
  font-size: 14px; color: rgba(255,255,255,0.62);
}
.project-body {
  background: var(--gray-50); padding: 0 64px 120px;
}
.project-section {
  max-width: 720px; margin: 0 auto; padding-top: 88px;
}
.project-section-full {
  max-width: 1100px; margin: 0 auto; padding-top: 88px;
}
.project-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 400; letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 28px;
}
.project-section p {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.8; color: var(--mid-1); margin-bottom: 20px;
}
.project-section p:last-child { margin-bottom: 0; }
.project-section p.disc-lead, .project-section h2.disc-lead {
  font-size: clamp(18px, 2vw, 26px); font-weight: 400; line-height: 1.4;
}
.project-section strong { color: var(--dark-1); font-weight: 500; }
.quote-block {
  border-left: 1px solid var(--accent); padding: 20px 0 20px 32px;
  margin: 40px 0;
}
.quote-block p {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400; font-style: italic;
  color: var(--dark-2); line-height: 1.5;
}
.quote-block cite {
  display: block; margin-top: 12px;
  font-family: var(--font-body);
  font-size: 11px; font-style: normal;
  color: var(--mid-2); letter-spacing: 0.06em;
}

.insight-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-top: 40px;
}
.insight-card {
  background: var(--white); border: 1px solid rgba(0,0,0,0.06);
  border-radius: 2px; padding: 28px 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.insight-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.insight-icon { font-size: 24px; margin-bottom: 14px; }
.insight-label {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid-2); margin-bottom: 8px;
}
.insight-text {
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.65; color: var(--mid-1);
}

.image-showcase {
  background: var(--dark-2); border-radius: 2px; overflow: hidden;
  margin: 48px 0; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.image-showcase-label {
  font-family: var(--font-body);
  font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.06em;
}
.showcase-grid {
  display: grid; gap: 12px; margin: 48px 0;
}
.showcase-grid-2 { grid-template-columns: repeat(2, 1fr); }
.showcase-grid-3 { grid-template-columns: repeat(3, 1fr); }
.showcase-item {
  background: var(--dark-2); border-radius: 2px;
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 11px; color: rgba(255,255,255,0.2); letter-spacing: 0.05em;
}

.metrics-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2px; margin: 48px 0; background: rgba(0,0,0,0.06); border-radius: 2px; overflow: hidden;
}
.metric {
  background: var(--white); padding: 32px 24px;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 46px; font-weight: 400; letter-spacing: -0.03em;
  color: var(--dark-1); line-height: 1;
}
.metric-value span {
  font-family: var(--font-body);
  font-size: 18px; color: var(--accent);
}
.metric-label {
  font-family: var(--font-body);
  font-size: 11px; color: var(--mid-2); margin-top: 8px;
  letter-spacing: 0.05em; line-height: 1.4;
}

.process-steps {
  display: flex; flex-direction: column; gap: 2px; margin: 48px 0;
}
.process-step {
  display: flex; gap: 32px; align-items: flex-start;
  background: var(--white); padding: 28px 32px; border-radius: 1px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s var(--ease);
}
.process-step:hover { transform: translateX(4px); }
.step-num {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.1em; min-width: 24px; padding-top: 3px;
}
.step-body h4 {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500; margin-bottom: 6px;
}
.step-body p {
  font-family: var(--font-body);
  font-size: 14px; color: var(--mid-1); line-height: 1.6; margin-bottom: 0;
}

.project-nav-bottom {
  background: var(--dark-1); padding: 80px 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  scroll-snap-align: start;
}
.proj-nav-item {
  padding: 48px 40px; background: var(--dark-2);
  color: rgba(255,255,255,0.3);
  font-family: var(--font-body);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  display: flex; flex-direction: column; gap: 12px;
}
.proj-nav-item:hover { background: var(--dark-3); color: var(--white); }
.proj-nav-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 400; letter-spacing: -0.02em; color: var(--white); line-height: 1.15;
}

/* ─── PERSONAL WORK ───────────────────────────── */
.personal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px; margin-top: 48px;
}
.personal-item {
  background: var(--white); border: 1px solid rgba(0,0,0,0.06);
  border-radius: 2px; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.personal-item:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
.personal-item-thumb {
  aspect-ratio: 3/2;
  background: var(--dark-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: 11px; color: rgba(255,255,255,0.2);
}
.personal-item-body { padding: 24px; }
.personal-item-category {
  font-family: var(--font-body);
  font-size: 10px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 8px;
}
.personal-item-title { font-size: 17px; font-weight: 500; letter-spacing: -0.3px; margin-bottom: 8px; }
.personal-item-desc {
  font-family: var(--font-body);
  font-size: 14px; color: var(--mid-2); line-height: 1.6;
}

/* ─── PHOTOGRAPHY SERIES PAGE ────────────────── */

/* Scroll container — takes full viewport, snaps per section */
.ph-wrap {
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--nav-h);
  scroll-behavior: auto;
}

/* Header — shortened so first photo peeks ~10% at the bottom of the view */
.ph-header {
  height: 73vh;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  padding: calc(var(--nav-h) + 40px) 64px 80px;
}

.ph-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--white);
}

.ph-desc {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.38);
  padding-top: 8px;
  max-width: 320px;
}

/* Gallery — no layout of its own, items handle it */
.ph-gallery { display: contents; }

/* Each image — one full "page", sized to the visible area below the nav */
.ph-item {
  height: calc(100vh - var(--nav-h));
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ph-item.ph-visible { opacity: 1; }

/* Image — fits within 80% of either dimension */
.ph-item img {
  max-width: 80vw;
  max-height: 60vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0;
}

/* Nav bottom sits in normal flow after the last image */
.ph-nav-bottom {
  scroll-snap-align: start;
}

@media (max-width: 900px) {
  .ph-header {
    grid-template-columns: 1fr;
    padding: calc(var(--nav-h) + 32px) 24px 48px;
  }
  .ph-item img {
    max-width: 90vw;
    max-height: 65vh;
  }
}

/* ─── QUEST STORE PROJECT PAGE ───────────────── */

/* Scroll wrapper — mirrors ph-wrap from Photography page */
.qs-wrap {
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--nav-h);
  scroll-behavior: auto;
}

/* Hero */
.qs-hero {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  aspect-ratio: 3010 / 1278;
  scroll-snap-align: start;
}

.qs-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/store_hero_bg.png') center center / contain no-repeat;
  z-index: 0;
}

.qs-hero-left {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 80px 56px calc(80px + var(--nav-h)) 56px;
  padding-top: calc(var(--nav-h) + 40px);
  z-index: 1;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow-green {
  background: radial-gradient(ellipse 80% 60% at 10% 70%, rgba(60, 200, 110, 0.14) 0%, transparent 65%);
}

/* Scoped overrides for qs hero split layout */
.qs-hero-left .project-category {
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  letter-spacing: 0.22em;
  margin-bottom: 24px;
}
.qs-hero-left .project-hero-title {
  font-size: clamp(52px, 5.5vw, 88px);
  margin-bottom: 52px;
}
.qs-hero-left .project-meta-row {
  flex-direction: column;
  gap: 18px;
}
.qs-hero-left .project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.qs-hero-left .project-meta-item label {
  font-size: 9px;
  color: rgba(255,255,255,0.28);
}
.qs-hero-left .project-meta-item span {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
}

.qs-hero-right {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.qs-hero-vid {
  position: absolute;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

/* Desktop Quest UI — bottom aligned, clips 32px at bottom */
.qs-hero-vid--desktop {
  width: 82%;
  bottom: -32px;
  left: 2%;
  z-index: 1;
}

/* Mobile — bottom aligned, clips 32px at bottom, overlaps desktop by 300px */
.qs-hero-vid--mobile {
  width: 30%;
  bottom: -72px;
  left: calc(2% + 68% - 300px + 200px);
  z-index: 2;
  border-radius: 40px;
  box-shadow: 0 0 0 8px #000;
}

.qs-hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 96px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 32px;
}

.qs-hero-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qs-hero-link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.qs-hero-link:hover { color: rgba(255,255,255,0.9); }

/* Key Problems */
.qs-kp-section {
  display: grid;
  grid-template-columns: 2fr 3fr;
  overflow: hidden;
  padding: 0;
  align-items: center;
  min-height: 56vh;
}

.qs-kp-img-col {
  position: relative;
  align-self: stretch;
  overflow: hidden;
}

.qs-kp-img-col img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: block;
}

.qs-kp-text-col {
  padding: 80px 80px 80px 64px;
}

.qs-kp-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
  margin-top: 24px;
  max-width: 380px;
}

/* Shared section */
.qs-section {
  padding: 120px 0;
  scroll-snap-align: start;
}

.qs-section--dark { background: #0d0d0d; }
.qs-section--green { background: #07100a; }
.qs-section--light { background: #111110; }

.qs-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 64px;
}

.qs-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 58px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 56px;
}

.qs-placeholder {
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
  min-height: 240px;
}

/* Key Problems */
.qs-problems {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 40px;
}

.qs-problems-visual { min-height: 380px; }

.qs-problems-text p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}
.qs-problems-text p:last-child { margin-bottom: 0; }
.qs-problems-text strong { color: rgba(255,255,255,0.92); font-weight: 500; }

.qs-problems-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.qs-problems-secondary .qs-placeholder { min-height: 180px; }

/* Approach */
.qs-heading--center { text-align: center; }

.qs-approach-section .qs-inner { padding-bottom: 64px; }

.qs-approach-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
  text-align: center;
}

.qs-approach-meta-label {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

.qs-approach-meta-desc {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 460px;
}

.qs-approach-cards {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.qs-approach-card {
  scroll-snap-align: start;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.qs-approach-card-img-wrap {
  background: #e8e8e4;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.qs-approach-card-img-wrap img {
  width: 100%;
  display: block;
}

.qs-approach-card-caption {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 300; line-height: 1.8;
  color: rgba(255,255,255,0.45);
  max-width: 680px;
  margin: 20px auto 0;
  text-align: center;
}

/* Solution */
.qs-solution-section > .qs-inner { margin-bottom: 72px; }

.qs-sol-rows { display: flex; flex-direction: column; }

/* Split rows: 60% image / 40% text panel */
.qs-sol-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: stretch;
}

.qs-sol-img {
  width: 100%;
  height: auto;
  display: block;
}

.qs-sol-text {
  display: flex;
  align-items: center;
  padding: 72px 64px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 46px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.qs-sol-text em { font-style: normal; font-weight: 400; }

/* Light panel (dusty blue-lavender) */
.qs-sol-row--light .qs-sol-text {
  background: #bfc4d8;
  color: #1a1a2e;
}

/* Dark panel (deep navy) */
.qs-sol-row--dark .qs-sol-text {
  background: #1a1b30;
  color: rgba(255,255,255,0.88);
}

/* Reversed: text panel left, image right */
.qs-sol-row--rev {
  grid-template-columns: 2fr 3fr;
}

/* Full-width rows: image at natural aspect ratio, text overlaid bottom-left */
.qs-sol-row--full {
  display: block;
  position: relative;
}

.qs-sol-row--full .qs-sol-img {
  width: 100%;
  height: auto;
}

.qs-sol-row--full .qs-sol-text {
  position: absolute;
  bottom: 0; left: 0;
  width: auto;
  max-width: 480px;
  background: transparent;
  color: var(--white);
  padding: 48px 64px;
  font-style: italic;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

/* Before / After */
.qs-ba {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.qs-ba-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 32px;
  align-items: start;
}
.qs-ba-row:nth-child(2) { padding-left: 120px; }

.qs-ba-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding-top: 14px;
}

.qs-ba-placeholder { min-height: 380px; margin-bottom: 16px; }

.qs-ba-caption {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.38);
}

/* Impact */
.qs-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 80px;
}

.qs-metric-value {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 12px;
}

.qs-metric-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255,255,255,0.45);
}

.qs-impact-img { min-height: 460px; }

/* Responsive */
@media (max-width: 900px) {
  .qs-hero { grid-template-columns: 1fr; min-height: auto; }
  .qs-hero-left { padding: 60px 32px 48px; }
  .qs-hero-right { min-height: 60vw; }
  .qs-inner { padding: 0 32px; }
  .qs-section { padding: 80px 0; }
  .qs-problems { grid-template-columns: 1fr; gap: 40px; }
  .qs-approach-grid { grid-template-columns: 1fr; }
  .qs-sol-row, .qs-sol-row--rev { grid-template-columns: 1fr; }
  .qs-sol-text { padding: 40px 32px; }
  .qs-metrics { grid-template-columns: repeat(2, 1fr); }
  .qs-ba-row { grid-template-columns: 1fr; }
  .qs-ba-row:nth-child(2) { padding-left: 0; }
}

/* ─── PAGE TRANSITIONS ────────────────────────── */
.page-enter {
  animation: pageEnter 0.6s var(--ease) forwards;
}
@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.page-transition-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--dark-1);
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
  transition: clip-path 0.5s var(--ease-in);
}
.page-transition-overlay.leaving {
  clip-path: inset(0 0 0 0);
  pointer-events: all;
}

/* ─── SCROLLBAR ───────────────────────────────── */
::-webkit-scrollbar { width: 0; }
html { scrollbar-width: none; }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .nav-right { display: none; }
  nav { padding: 0 24px; }
  .approach { padding: calc(var(--nav-h) + 48px) 24px 80px; }
  .masonry-grid { display: flex; flex-direction: column; gap: 2px; background: none; }
  .project-card { min-height: 360px !important; }
  .humans-section { padding: 100px 24px 80px; }
  .humans-bio-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-hero { padding: calc(var(--nav-h) + 40px) 24px 56px; min-height: 70vh; }
  .project-body { padding: 0 24px 80px; }
  .project-section, .project-section-full { padding-top: 64px; }
  .showcase-grid-2, .showcase-grid-3 { grid-template-columns: 1fr; }
  .project-nav-bottom { grid-template-columns: 1fr; padding: 40px 24px; }
  .resume-hero { padding: calc(var(--nav-h) + 60px) 24px 72px; }
  .resume-pdf-wrapper { padding: 40px 16px 80px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 600px) {
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .insight-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── DISCOVERY PAGE — RESPONSIVE ────────────── */

/* Stacked styles — applied by JS gap detection OR the CSS fallback below */
.page-vr-discovery.disc-hero-stacked .project-hero,
.disc-hero-stack-override .project-hero {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}
.page-vr-discovery.disc-hero-stacked .project-hero-content,
.disc-hero-stack-override .project-hero-content {
  flex: none;
  max-width: 100%;
  order: 2;
}
.page-vr-discovery.disc-hero-stacked .disc-hero-media,
.disc-hero-stack-override .disc-hero-media {
  position: static;
  transform: none;
  width: 100%;
  justify-content: center;
  gap: 32px;
  order: 1;
  margin-bottom: 32px;
  flex: none;
}
.page-vr-discovery.disc-hero-stacked .disc-hero-media video,
.page-vr-discovery.disc-hero-stacked .disc-hero-media img,
.disc-hero-stack-override .disc-hero-media video,
.disc-hero-stack-override .disc-hero-media img {
  height: clamp(180px, 40vw, 280px);
  border-radius: 20px;
}

/* CSS fallback — always stack below 768px regardless of JS */
@media (max-width: 768px) {
  .page-vr-discovery .project-hero {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }
  .page-vr-discovery .project-hero-content {
    flex: none;
    max-width: 100%;
    order: 2;
  }
  .disc-hero-media {
    position: static !important;
    transform: none !important;
    width: 100%;
    justify-content: center;
    gap: 32px;
    order: 1;
    margin-bottom: 32px;
    flex: none;
  }
  .disc-hero-media video,
  .disc-hero-media img {
    height: clamp(180px, 40vw, 280px);
    border-radius: 20px;
  }
}
