/* ============================================================
   styles.css — Iris Li Portfolio
   Centralized stylesheet for all pages.
   Edit here to update styles sitewide.
   ============================================================ */

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

/* ── TOKENS ── */
:root {
  --bg: #ffffff;
  --bg-2: #f8f8f7;
  --ink: #0d0d0d;
  --ink-2: #444;
  --ink-3: #888;
  --ink-4: #bbb;
  --accent: #1a9070;
  --accent-2: #e2f5f0;
  --line: rgba(0,0,0,0.08);
  --sans: 'Poppins', system-ui, sans-serif;
  --nav-h: 56px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── ANIMATIONS ── */
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes chevron-bounce { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(4px) } }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 2.5rem;
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav-logo svg path { transition: fill 0.2s; }
.nav-logo:hover svg path { fill: var(--accent); }
.nav-wordmark { font-family: var(--sans); font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 15px; font-weight: 400; letter-spacing: 0.03em;
  color: var(--ink-3); text-decoration: none;
  transition: color 0.18s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--ink); transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1); transform-origin: left;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-back {
  font-size: 15px; font-weight: 400; color: var(--ink-3); text-decoration: none;
  display: flex; align-items: center; gap: 6px; transition: color 0.2s;
}
.nav-back:hover { color: var(--ink); }
.nav-back svg { transition: transform 0.2s; }
.nav-back:hover svg { transform: translateX(-3px); }

/* ── PAGE WRAPPER ── */
.page { max-width: 1220px; margin: 0 auto; padding: 0 2.5rem; }

/* ── SECTIONS (shared) ── */
.section { padding: 6rem 0; border-top: 1px solid var(--line); position: relative; }
.section-bg-num {
  position: absolute; top: -0.15em; right: -0.05em;
  font-size: clamp(120px, 18vw, 220px); font-weight: 400;
  color: var(--bg-2); line-height: 1; pointer-events: none; user-select: none; z-index: 0;
}
.section-inner { position: relative; z-index: 1; }
.section-label { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.75rem; }
.section-title { font-size: clamp(22px, 2.5vw, 34px); font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 2.5rem; }
.section-title em { font-style: italic; font-weight: 600; color: var(--accent); }
.two-col { display: grid; grid-template-columns: clamp(200px, 22vw, 280px) 1fr; gap: 4rem; align-items: start; }

/* ── BODY TEXT ── */
.body-text { font-size: 16px; line-height: 1.85; color: var(--ink-2); font-weight: 400; }
.body-text p + p { margin-top: 1.1em; }
.body-text strong { color: var(--ink); font-weight: 600; }

/* ── ABOUT — HERO ── */
.hero {
  padding: calc(var(--nav-h) + 12vh) 2.5rem 10vh;
  max-width: 1220px; margin: 0 auto;
  position: relative; min-height: 60vh;
  display: flex; align-items: center;
}
.hero-left { width: 45%; }
.hero-headline {
  font-size: clamp(36px, 4.5vw, 60px); font-weight: 300; line-height: 1.35;
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: 2rem;
  opacity: 0; animation: up 0.6s 0.2s ease forwards;
}
.hero-headline em { font-style: italic; font-weight: 600; color: var(--accent); }
.hero-photo {
  position: absolute; right: 2.5rem; top: 50%; transform: translateY(-50%);
  width: 32%; opacity: 0; animation: up 0.6s 0.3s ease forwards;
  aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
  background: #ffffff; display: flex; align-items: center; justify-content: center;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-placeholder { font-size: 13px; color: var(--ink-4); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── ABOUT — PRINCIPLES ── */
.principles { display: flex; flex-direction: column; }
.principle {
  display: grid; grid-template-columns: 40px 1fr; gap: 1.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.principle:last-child { border-bottom: none; }
.principle-num { font-size: 15px; font-weight: 300; color: var(--ink-4); font-style: italic; }
.principle-text { font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--ink); }
.principle-text em { font-style: italic; font-weight: 600; color: var(--accent); }

/* ── ABOUT — TIMELINE ── */
.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid; grid-template-columns: 160px 1fr; gap: 3rem;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-period { font-size: 15px; font-weight: 500; color: var(--ink); padding-top: 3px; }
.timeline-role { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.timeline-co { font-size: 15px; color: var(--ink-3); margin-bottom: 10px; font-weight: 400; }
.timeline-desc { font-size: 16px; color: var(--ink-2); line-height: 1.75; font-weight: 400; }

/* ── HOME — HERO (overrides base .hero for homepage) ── */
.page-home .hero {
  min-height: 100vh; min-height: 100dvh;
  padding: calc(var(--nav-h) + 6vh) 2.5rem 6vh;
  flex-direction: column; justify-content: center; align-items: center;
  text-align: center; position: relative; width: auto; box-sizing: border-box;
  display: flex; scroll-snap-align: start;
}
.hero-label {
  font-size: 17px; font-weight: 400; letter-spacing: 0.01em;
  color: var(--ink-2); margin-bottom: 0.5rem;
  opacity: 0; animation: up 0.5s 0.1s ease forwards;
  display: flex; align-items: center; gap: 6px; justify-content: center;
}
.hero-rotating {
  position: relative;
  min-height: calc(clamp(36px, 4.5vw, 60px) * 1.2 * 2 + 1rem);
  margin-bottom: 0.5rem; width: 100%;
  opacity: 0; animation: up 0.6s 0.2s ease forwards;
}
.hero-rotating-text {
  font-size: clamp(36px, 4.5vw, 60px); font-weight: 300; line-height: 1.2;
  letter-spacing: -0.01em; color: var(--ink);
  position: absolute; top: 0; left: 0; right: 0; text-align: center;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.hero-rotating-text em { font-style: italic; color: var(--accent); font-weight: 600; }
.hero-rotating-text.entering { opacity: 0; transform: translateY(16px); pointer-events: none; }
.hero-rotating-text.visible  { opacity: 1; transform: translateY(0); }
.hero-rotating-text.leaving  { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 15px; color: var(--ink-3); margin-bottom: 6rem;
  opacity: 0; animation: up 0.5s 0.4s ease forwards;
}
.hero-meta-dot { color: var(--ink-4); }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; animation: up 0.5s 1.2s ease forwards;
  text-decoration: none; cursor: pointer; z-index: 2;
}
.hero-scroll-chevron {
  width: 41px; height: 41px; border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, transform 0.3s;
  animation: chevron-bounce 2s ease infinite;
}
.hero-scroll:hover .hero-scroll-chevron { border-color: var(--accent); }

/* ── HOME — WORK GRID ── */
.work-grid { display: flex; flex-direction: column; gap: 0; padding-bottom: 2rem; }
.work-card {
  background: var(--bg); display: grid; grid-template-columns: 1fr 2fr;
  gap: 0 40px; overflow: hidden; color: inherit;
  border: none; border-radius: 40px;
  padding: 0 0 0 0;
  position: sticky; top: calc(var(--nav-h) + 1.5rem);
  transform-origin: 50% 0;
  transition: transform 0.15s ease-out, box-shadow 0.3s;
  align-items: stretch; margin-bottom: 6rem;
  will-change: transform;
}
.work-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.work-body { padding: 2.5rem 0 2.5rem 20%; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.work-co { font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.75rem; }
.work-title { font-size: clamp(22px, 2.5vw, 32px); font-weight: 600; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; transition: color 0.25s; }
.work-tagline { font-size: 16px; font-style: italic; color: var(--ink-3); line-height: 1.5; max-width: 340px; font-weight: 400; }
.work-divider { width: 32px; height: 1px; background: var(--line); margin-bottom: 0.75rem; }
.work-img, a.work-img {
  background: transparent; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0 40px 40px 0; margin: 0; text-decoration: none; cursor: pointer; gap: 12px;
  align-self: stretch;
}
.work-img-inner {
  width: 100%; height: 100%; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--ink-4); letter-spacing: 0.04em;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.work-card:hover .work-img-inner { transform: scale(1.03); }
.work-card.cool { background: #edf3f8; }
.work-card.sage { background: #EAF1E9; }
.work-card.lavender { background: #F6F4F9; }
.work-img.lavender { background: #F6F4F9; }
.work-card.feed { background: #EFF0F8; }
.work-img.feed { background: #EFF0F8; }
.work-card.skratch { background: #EEEFF8; }
.work-img.skratch { background: #EEEFF8; }
.work-img.skratch .reels-phone { height: 605px; }
.work-card.gray { background: #F0F0F3; color: var(--ink); }
.work-card.gray .work-co { color: var(--ink-3); }
.work-card.gray .work-title { color: var(--ink); }
.work-card.gray .work-tagline { color: var(--ink-3); }
.work-card.gray .work-divider { background: var(--line); }
.work-img.cool, .work-img.sage, .work-img.lavender, .work-img.gray { background: transparent; }
.work-cta {
  display: inline-flex; align-items: center;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  padding: 10px 20px; border-radius: 200px; text-decoration: none;
  width: fit-content; margin-top: 1.5rem; transition: background 0.18s;
}
.work-cta:hover { background: #157a5e; }
.work-rule { display: none; }

/* ── HOME — PROCESS LAYERS ── */
.process-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; max-width: 900px; margin: 0 auto; }
.layers-scene { position: relative; height: 560px; perspective: 1200px; perspective-origin: 50% 28%; }
.layers-stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(72deg) translateY(-40px); }
.lyr {
  position: absolute; left: 50%; top: 50%;
  width: 300px; height: 300px; margin-left: -150px; margin-top: -150px;
  opacity: 0; transform: translateZ(var(--z)) translateY(-40px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.lyr.in { opacity: 1; transform: translateZ(var(--z)) translateY(0); }
.lyr:nth-child(1){ --z: 224px; } .lyr:nth-child(2){ --z: 160px; } .lyr:nth-child(3){ --z: 96px; }
.lyr:nth-child(4){ --z:  32px; } .lyr:nth-child(5){ --z: -32px; } .lyr:nth-child(6){ --z: -96px; }
.lyr:nth-child(7){ --z:-160px; } .lyr:nth-child(8){ --z:-224px; }
.lyr-circle { width: 100%; height: 100%; border-radius: 50%; }
.lyr:nth-child(1) .lyr-circle { background: rgba(26,144,112,0.05); border: 1.5px solid rgba(26,144,112,0.10); }
.lyr:nth-child(2) .lyr-circle { background: rgba(26,144,112,0.07); border: 1.5px solid rgba(26,144,112,0.12); }
.lyr:nth-child(3) .lyr-circle { background: rgba(26,144,112,0.10); border: 1.5px solid rgba(26,144,112,0.15); }
.lyr:nth-child(4) .lyr-circle { background: rgba(26,144,112,0.14); border: 1.5px solid rgba(26,144,112,0.19); }
.lyr:nth-child(5) .lyr-circle { background: rgba(26,144,112,0.18); border: 1.5px solid rgba(26,144,112,0.23); }
.lyr:nth-child(6) .lyr-circle { background: rgba(26,144,112,0.22); border: 1.5px solid rgba(26,144,112,0.27); }
.lyr:nth-child(7) .lyr-circle { background: rgba(26,144,112,0.26); border: 1.5px solid rgba(26,144,112,0.31); }
.lyr:nth-child(8) .lyr-circle { background: rgba(26,144,112,0.30); border: 1.5px solid rgba(26,144,112,0.35); }
.pv-steps { display: flex; flex-direction: column; justify-content: center; margin-left: -3rem; }
.pv-step {
  display: flex; flex-direction: column; padding: 0.5rem 0;
  opacity: 0; transform: translateY(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pv-step:last-child { border-bottom: none; }
.pv-step.in { opacity: 1; transform: translateY(0); }
.pv-title { font-size: 19px; font-weight: 400; color: var(--ink); line-height: 1.25; }
.pv-tool { font-size: 14px; color: var(--ink-3); margin-top: 3px; font-weight: 400; }
.pv-tool.ai { color: var(--accent); }

/* ── HOME — COLLAB ── */
.collab-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.collab-card { background: var(--bg-2); padding: 2rem; border-radius: 40px; transition: transform 0.2s; }
.collab-card:hover { transform: translateY(-2px); }
.collab-who { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.collab-title { font-size: 20px; font-weight: 600; line-height: 1.2; margin-bottom: 0.75rem; }
.collab-body { font-size: 16px; font-weight: 400; color: var(--ink-3); line-height: 1.7; }

/* ── CASE STUDIES — HERO ── */
.cs-hero { max-width: 1220px; margin: 0 auto; padding: calc(var(--nav-h) + 2rem) 2.5rem 0; }
.cs-cover { width: 100%; aspect-ratio: 21/9; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; opacity: 0; animation: up 0.7s 0.35s ease forwards; }
.cs-hero-info { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 6rem; align-items: start; padding: 2rem 0 1.5rem; }
.cs-meta-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.cs-meta-item { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.cs-meta-item:last-child { border-bottom: none; }
.cs-meta-label { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
.cs-meta-value { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.cs-title { font-size: clamp(20px,2.5vw,28px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 0.75rem; }
.cs-back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 400; color: var(--ink-3); text-decoration: none; margin-bottom: 2rem; transition: color 0.2s; opacity: 0; animation: up 0.4s 0.1s ease forwards; }
.cs-back:hover { color: var(--accent); }
.cs-back svg { transition: transform 0.2s; }
.cs-back:hover svg { transform: translateX(-3px); }
.cs-meta { display: flex; gap: 0; flex-wrap: nowrap; border-bottom: 1px solid var(--line); margin: 2.5rem 0 0; opacity: 0; animation: up 0.5s 0.38s ease forwards; }

/* ── CASE STUDIES — CONTENT ── */
.img-block { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; margin: 2rem 0; font-size: 15px; color: var(--ink-4); letter-spacing: 0.04em; border: 1px solid var(--line); }
.img-caption { font-size: 16px; color: var(--ink-3); margin-top: -1.5rem; margin-bottom: 2rem; font-weight: 400; }
.callout { border-left: 3px solid var(--accent); padding: 1.25rem 1.5rem; margin: 2rem 0; background: var(--accent-2); border-radius: 0 20px 20px 0; }
.callout p { font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--ink); }
.callout em { font-style: italic; font-weight: 600; color: var(--accent); }
.outcome-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 2rem 0; }
.outcome { padding: 1.5rem 1.5rem 1.5rem 0; }
.outcome-num { font-size: 28px; font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1; }
.outcome-label { font-size: 13px; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-3); }

/* ── CASE STUDIES — PAGINATION ── */
.cs-pagination { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; max-width: 1220px; margin: 0 auto; }
.cs-pag-item { padding: 2.5rem; text-decoration: none; color: inherit; display: flex; align-items: center; gap: 1.25rem; transition: background 0.2s; }
.cs-pag-item.next { flex-direction: row-reverse; text-align: right; }
.cs-pag-thumb { width: 72px; height: 48px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-4); }
.cs-pag-name { font-size: 17px; font-weight: 700; color: var(--ink); transition: color 0.2s; }
.cs-pag-item:hover .cs-pag-name { color: var(--accent); }
.cs-pag-arrow { font-size: 17px; color: var(--ink-3); flex-shrink: 0; transition: transform 0.2s; }
.cs-pag-item.prev:hover .cs-pag-arrow { transform: translateX(-4px); }
.cs-pag-item.next:hover .cs-pag-arrow { transform: translateX(4px); }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--line); padding: 3rem 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-copy { font-size: 15px; color: var(--ink-2); font-weight: 400; letter-spacing: 0.01em; }
.footer-headline { font-size: clamp(28px,3.5vw,48px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; }
.footer-headline em { font-style: italic; font-weight: 400; color: var(--accent); }
.footer-icons { display: flex; gap: 12px; align-items: center; }
.footer-icon { width: 40px; height: 40px; border: 1px solid rgba(0,0,0,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-3); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.footer-icon:hover { border-color: var(--accent); color: var(--accent); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; animation: revealFallback 0s 1.5s forwards; }
.reveal.visible { opacity: 1; transform: translateY(0); animation: none; }
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }

/* ── SCROLL TO TOP ── */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 99; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-3); text-decoration: none; box-shadow: 0 2px 12px rgba(0,0,0,0.08); opacity: 0; pointer-events: none; transition: opacity 0.3s, border-color 0.2s, color 0.2s, transform 0.2s; }
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ── REELS CARD PHONES ── */
.reels-img-wrap { position: relative; }
.reels-phone { flex: 1; height: 560px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.reels-phone-left { margin-right: -80px; }
.reels-phone-right { margin-left: -80px; }
.reels-phone img { height: 100%; width: auto; display: block; border-radius: 24px; }

/* ── TABLET (iPad / narrow desktop) ── */
@media (min-width: 769px) and (max-width: 1100px) {
  .process-layout { grid-template-columns: 1fr; gap: 2rem; }
  .layers-scene { height: 260px; width: 100%; }
  .lyr { width: 180px; height: 180px; margin-left: -90px; margin-top: -90px; }
  .pv-steps { margin-left: 0; width: 100%; }
  .pv-step { padding: 0.75rem 0; }
  .work-card { grid-template-columns: 1fr 1.5fr; position: relative !important; top: auto !important; transform: none !important; opacity: 1 !important; }
  .work-body { padding: 2rem 0 2rem 8%; }
  .work-grid { height: auto !important; gap: 2rem; }
  .hero-rotating-text { font-size: clamp(30px, 3.8vw, 48px); }
  .section-title { font-size: clamp(20px, 2.2vw, 28px); }
  .two-col { grid-template-columns: 1fr 1.6fr; gap: 2.5rem; }
  .collab-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .collab-card:last-child { grid-column: span 2; }

  /* Chevron — take it out of absolute positioning so it stays visible */
  .page-home .hero { min-height: 100vh; min-height: 100dvh; padding-bottom: 6vh; position: relative; }
  .hero-scroll { position: absolute !important; bottom: 2rem !important; left: 50% !important; transform: translateX(-50%) !important; margin-top: 0; opacity: 1 !important; animation: none !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Nav */
  .nav-inner { padding: 0 1.25rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 14px; }
  .nav-wordmark { font-size: 17px; }
  nav { padding: 0 1.25rem; }
  .page { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }

  /* Hero */
  .page-home .hero { padding: calc(var(--nav-h) + 4vh) 1.25rem 4vh; min-height: 100vh; min-height: 100dvh; }
  .hero-label { font-size: 13px; }
  .hero-rotating { min-height: 3.5em !important; position: relative; margin-bottom: 0.75rem; }
  .hero-rotating-text { font-size: clamp(22px, 7vw, 32px); position: absolute; top: 0; left: 0; right: 0; display: block; }
  .hero-rotating-text.visible { position: relative; }
  .hero-meta { font-size: 12px; gap: 0.3rem; margin-bottom: 2rem; flex-wrap: wrap; justify-content: center; }
  .hero-scroll { position: absolute !important; bottom: 1.5rem !important; left: 50% !important; transform: translateX(-50%) !important; opacity: 1 !important; animation: none !important; display: flex !important; }

  /* Work cards — stack vertically, no sticky */
  .work-grid { gap: 1.5rem; padding-bottom: 1rem; height: auto !important; }
  .work-card { grid-template-columns: 1fr; position: relative; top: auto !important; transform: none !important; opacity: 1 !important; border-radius: 24px; margin-bottom: 0; min-height: 0 !important; }
  .work-body { padding: 1.5rem; justify-content: flex-start; }
  .work-img, a.work-img { border-radius: 0 0 24px 24px; min-height: 0; margin: 0; order: -1; padding: 1.5rem 1rem 0; }
  .work-img > img { height: auto !important; width: 100% !important; max-width: 100%; display: block; border-radius: 12px; }
  .reels-phone img { height: 100% !important; width: auto !important; border-radius: 16px !important; }
  .end-frame-img { min-height: 0 !important; padding: 1.5rem 1rem 0 !important; }
  .end-frame-img img { object-fit: contain !important; height: auto !important; }
  .work-img-inner { min-height: 220px; }
  .work-title { font-size: 22px; }

  /* Process */
  .process-visual { display: none; }
  .pv-steps { gap: 1rem; }

  /* Collab */
  .collab-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Two-col */
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Outcomes */
  .outcome-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Case hero */
  .cs-hero { padding: calc(var(--nav-h) + 1.5rem) 1.25rem 0; }
  .cs-hero-info { grid-template-columns: 1fr; gap: 2rem; }

  /* Timeline */
  .timeline-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .timeline-period { font-size: 13px; }

  /* Footer */
  footer { padding: 3rem 1.25rem 2rem; text-align: center; }
  .footer-headline { font-size: clamp(24px, 7vw, 36px); }

  /* Section bg number */
  .section-bg-num { font-size: clamp(80px, 22vw, 140px); }

  /* Scroll top */
  .scroll-top { bottom: 1.25rem; right: 1.25rem; }

  /* Reels card phones — side by side */
  .reels-img-wrap { flex-direction: row; align-items: center; justify-content: center; padding: 30px 1rem 0 !important; gap: 0; overflow: hidden; }
  .reels-phone { height: 260px; flex: 1; min-width: 0; }
  .work-img.skratch .reels-phone { height: 281px; }
  .reels-phone-left { margin-right: -35px !important; }
  .reels-phone-right { margin-left: -35px !important; }
  .reels-phone img { height: 100%; width: auto; border-radius: 16px; }

}