/* ============================================================
   styles.css — Jee-Eun Lee Portfolio
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --bg: #F7F5F1;
  --white: #FFFFFF;
  --ink: #111110;
  --ink-2: #555552;
  --ink-3: #999997;
  --border: #E4E3E0;
  --accent: #C85C45;
  --accent-soft: rgba(200, 92, 69, 0.08);
  --serif-display: 'Cormorant Garamond', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  position: relative;
  cursor: none;
}

/* ── NOISE GRAIN OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.45;
}

/* ── LAYOUT ── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 64px; }
@media(max-width:900px){ .wrap { padding: 0 24px; } }

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
  will-change: transform;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(200, 92, 69, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  /* No transition on transform — lerp in rAF handles smoothness */
  transition: width 0.4s ease, height 0.4s ease, opacity 0.3s ease;
  will-change: transform;
}
.cursor.expanded  { width: 48px; height: 48px; background: rgba(200,92,69,0.12); }
.cursor-ring.expanded { width: 60px; height: 60px; opacity: 0.5; }

/* ── CLICK RIPPLE ── */
.ripple {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 9997;
  transform: translate(-50%, -50%) scale(0);
  border: 1px solid rgba(200, 92, 69, 0.45);
  animation: rippleOut 0.7s ease forwards;
}
@keyframes rippleOut { to { transform: translate(-50%, -50%) scale(6); opacity: 0; } }

/* ── PARALLAX ORBS ── */
.parallax-bg { position: fixed; inset: -40px; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0; animation: orbReveal 2s ease forwards; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(200,92,69,0.1), transparent 70%); top: -120px; right: -80px; animation-delay: 0.3s; }
.orb-2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(180,165,145,0.08), transparent 70%); bottom: 0; left: -60px; animation-delay: 0.7s; }
@keyframes orbReveal { to { opacity: 1; } }

/* ── NAV ── */
nav { position: fixed; top: 24px; left: 0; right: 0; z-index: 900; pointer-events: none; }
.pill-nav-wrap { display: flex; justify-content: center; pointer-events: all; }
.pill-nav {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(247,245,241,0.92); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 5px; box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.pill-btn {
  background: none; border: none; cursor: none;
  font-family: var(--sans); font-size: 13px; font-weight: 400;
  color: var(--ink-2); padding: 9px 22px; border-radius: 100px;
  transition: all 0.22s ease; letter-spacing: 0.01em;
}
.pill-btn:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
.pill-btn.active { background: var(--accent); color: #fff; font-weight: 500; box-shadow: 0 2px 12px rgba(200,92,69,0.28); }

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ═══════════════════════════════
   LANDING
═══════════════════════════════ */
@keyframes profileGlow {
  0%, 100% { box-shadow: 0 0 10px 3px rgba(200,92,69,0.18), 0 0 22px 8px rgba(200,92,69,0.08); }
  50%       { box-shadow: 0 0 18px 7px rgba(200,92,69,0.30), 0 0 38px 14px rgba(200,92,69,0.13); }
}
.profile-glow {
  border-radius: 50%;
  display: inline-block;
  animation: profileGlow 3.5s ease-in-out infinite;
}

.landing {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 100px; z-index: 10;
}

#page-home .landing::before {
  content: ''; position: absolute; top: 0; left: 64px; right: 64px; height: 1px;
  background: var(--border); transform: scaleX(0); transform-origin: left;
  animation: lineRevealH 1.2s 0.1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes lineRevealH { to { transform: scaleX(1); } }

.landing-rule {
  position: absolute; left: 64px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 15%, var(--border) 85%, transparent);
  opacity: 0; animation: fadeIn 1.5s 0.5s ease forwards;
}

.landing-footnote {
  position: absolute; right: 56px; top: 50%;
  transform: translateY(-50%) rotate(90deg); transform-origin: right center;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
  opacity: 0; animation: fadeIn 1s 1.6s ease forwards;
}

.landing-eyebrow {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  padding-left: calc(64px + 44px); margin-bottom: 28px;
  opacity: 0; animation: slideUp 0.9s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.landing-headline {
  font-family: var(--serif-display); font-size: clamp(48px, 6.5vw, 100px);
  font-weight: 300; line-height: 1.06; letter-spacing: -0.02em; color: var(--ink);
  padding-left: calc(64px + 44px); max-width: 960px;
}
.landing-headline .hl-line { display: block; overflow: hidden; }
.landing-headline .hl-inner { display: block; transform: translateY(112%); animation: lineRevealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.landing-headline .hl-line:nth-child(1) .hl-inner { animation-delay: 0.6s; }
.landing-headline .hl-line:nth-child(2) .hl-inner { animation-delay: 0.76s; }
.landing-headline .hl-line:nth-child(3) .hl-inner { animation-delay: 0.92s; }
@keyframes lineRevealUp { to { transform: translateY(0); } }
.landing-headline em { font-style: italic; color: var(--accent); }

.landing-descriptor {
  padding-left: calc(64px + 44px); margin-top: 44px;
  display: flex; align-items: flex-start; gap: 36px;
  opacity: 0; animation: slideUp 1s 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.descriptor-rule { width: 28px; height: 1px; background: var(--ink-3); margin-top: 12px; flex-shrink: 0; }
.landing-sub { font-size: 15px; color: var(--ink-2); line-height: 1.78; max-width: 440px; font-weight: 300; letter-spacing: 0.01em; }

.landing-chips {
  padding-left: calc(64px + 44px); margin-top: 48px;
  display: flex; flex-wrap: wrap; gap: 8px; position: relative;
  z-index: 200;
  opacity: 0; animation: slideUp 1s 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.landing-bottom {
  padding: 0 64px 0 calc(64px + 44px); margin-top: 80px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 10;
  opacity: 0; animation: fadeIn 1s 1.4s ease forwards;
}
.cta-group { display: flex; align-items: center; gap: 28px; }

.landing-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--ink); border: none;
  padding: 14px 28px; border-radius: 2px; cursor: none;
  position: relative; overflow: hidden; transition: background 0.3s;
  will-change: transform;
  transform: translateZ(0);
}
.landing-cta::before {
  content: ''; position: absolute; inset: 0; background: var(--accent);
  transform: translateX(-101%); transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.landing-cta:hover::before { transform: translateX(0); }
.landing-cta span, .landing-cta .cta-arrow { position: relative; z-index: 1; }
.landing-cta .cta-arrow { transition: transform 0.3s; }
.landing-cta:hover .cta-arrow { transform: translateX(4px); }

.cta-secondary {
  font-size: 13px; color: var(--ink-2); text-decoration: none;
  letter-spacing: 0.03em; border-bottom: 1px solid var(--border); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.cta-secondary:hover { color: var(--ink); border-color: var(--ink); }

.landing-location { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; text-align: right; line-height: 1.6; }
.landing-location strong { display: block; color: var(--ink-2); font-weight: 400; font-size: 13px; }

.scroll-hint {
  position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeIn 1s 1.9s ease forwards;
}
.scroll-line { width: 1px; height: 36px; background: var(--border); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ''; position: absolute; top: -100%; width: 100%; height: 100%;
  background: var(--accent); animation: scrollDrop 2s 2.2s ease-in-out infinite;
}
@keyframes scrollDrop { 0% { top: -100%; } 100% { top: 100%; } }
.scroll-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* Scroll hint — floating fixed at bottom center on Work + case study pages */
.scroll-hint--page {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 100;
  opacity: 0;
  animation: scrollHintAppear 0.8s 0.6s ease forwards;
  pointer-events: none;
}
@keyframes scrollHintAppear {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0px); }
}
/* Gentle continuous float */
.scroll-hint--page .scroll-label {
  animation: scrollFloat 3s ease-in-out infinite;
}
@keyframes scrollFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-5px); }
}
.scroll-hint--page .scroll-line::after { animation: scrollDrop 2s ease-in-out infinite; }

/* Hide scroll hint when page is scrolled down */
.scrolled-down .scroll-hint--page { opacity: 0; transition: opacity 0.4s ease; }

/* ── CHIPS ── */
.chip-wrap { position: relative; display: inline-block; }
.chip {
  position: relative; border: 1px solid var(--border); border-radius: 2px;
  padding: 7px 16px; font-size: 12px; font-weight: 400; color: var(--ink-2);
  cursor: none; transition: border-color 0.2s, color 0.2s, background 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; white-space: nowrap; user-select: none; letter-spacing: 0.02em;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); background: rgba(17,17,16,0.03); }
.chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip-has-dropdown::after { content: '›'; display: inline-block; margin-left: 2px; font-size: 14px; transition: transform 0.2s ease; transform: rotate(90deg); opacity: 0.5; }
.chip.active.chip-has-dropdown::after { transform: rotate(270deg); opacity: 1; }

/* Terracotta accent chips */
.chip--accent {
  border-color: var(--accent); color: var(--accent);
  background: transparent;
}
.chip--accent:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip--accent.chip-has-dropdown::after { opacity: 1; color: var(--accent); }
.chip--accent.active { background: var(--accent-soft); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: rgba(247,245,241,0.98); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 6px; min-width: 340px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 500;
}
.dropdown.active { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-item {
  padding: 11px 14px; border-radius: 2px; border-bottom: 1px solid var(--border);
  cursor: none; transition: all 0.15s ease; font-size: 13px; line-height: 1.5;
  color: var(--ink); text-decoration: none; display: block; letter-spacing: 0.01em;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--accent-soft); color: var(--accent); padding-left: 18px; }

/* ── WORK PAGE ── */
.works-section { padding: 40px 0 120px; }
.works-header { margin-bottom: 64px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.works-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; font-family: var(--sans);
}
.works-intro {
  font-family: var(--serif-display); font-size: clamp(32px, 4vw, 56px);
  font-weight: 300; letter-spacing: -0.025em; line-height: 1.1;
  color: var(--ink); margin: 0;
}
.works-intro em { font-style: italic; color: var(--accent); }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.project-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--border); border-radius: 2px;
  padding: 4px 10px; background: transparent; transition: all 0.2s ease;
}
.project-row:hover .project-tag { border-color: var(--accent); color: var(--accent); }

.project-row {
  display: grid; grid-template-columns: 64px 1fr 380px;
  gap: 48px; align-items: start; padding: 48px 0;
  border-bottom: 1px solid var(--border); cursor: none; transition: background 0.3s;
}
.project-row:first-of-type { border-top: 1px solid var(--border); }
.project-row:hover { background: rgba(17,17,16,0.015); }
.project-num { font-family: var(--serif-display); font-size: 13px; font-weight: 300; color: var(--ink-3); padding-top: 6px; letter-spacing: 0.04em; }
.project-category { font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.project-name { font-family: var(--serif-display); font-size: clamp(22px, 2.2vw, 32px); font-weight: 300; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 12px; }
.project-desc { font-size: 14px; color: var(--ink-2); line-height: 1.72; max-width: 520px; }
.project-link { display: inline-block; margin-top: 20px; font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.2s; }
.project-row:hover .project-link { color: var(--accent); }
.project-thumb { aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; transition: transform .4s ease; }
.project-row:hover .project-thumb { transform: translateY(-4px); }
@media(max-width:900px){ .project-row { grid-template-columns:1fr; gap:24px; } .project-thumb { aspect-ratio:16/9; } }

/* Mock UI */
.mock-ui { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:#EEECEA; }
.mock-card { background:#fff; border-radius:6px; padding:18px; box-shadow:0 4px 20px rgba(0,0,0,.08); }
.mock-bar { height:8px; background:#E4E3E0; border-radius:3px; margin-bottom:8px; }
.t1 { background: linear-gradient(135deg, #EAE8E4, #D8D5CF); }
.t2 { background: linear-gradient(135deg, #E8E2DC, #D4C8BF); }
.t3 { background: linear-gradient(135deg, #DDE5E3, #C8D5D2); }
.t4 { background: linear-gradient(135deg, #E2DDE8, #CFC8D8); }
.t5 { background: linear-gradient(135deg, #E8E4DC, #D5CEBC); }

/* ── ABOUT STRIP ── */
.about-strip { padding: 100px 0; border-top: 1px solid var(--border); }
.about-strip .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-strip h2 { font-family: var(--serif-display); font-size: clamp(28px,3vw,44px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 24px; }
.about-strip p { font-size: 15px; color: var(--ink-2); line-height: 1.78; margin-bottom: 20px; }
.about-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.about-cta:hover { color: var(--accent); border-color: var(--accent); }
.exp-list { list-style: none; }
.exp-item { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 20px 0; align-items: start; border-bottom: 1px solid rgba(228,227,224,0.4); }
.exp-item:last-child { border-bottom: none; }
.exp-year { color: var(--ink-3); font-size: 12px; font-weight: 400; padding-top: 5px; letter-spacing: 0.02em; }
.exp-title { font-weight: 500; margin-bottom: 4px; font-size: 15px; }
.exp-co { color: var(--ink-2); font-size: 13px; }
@media(max-width:900px){ .about-strip .wrap { grid-template-columns:1fr; gap:48px; } }

/* ── FOOTER ── */
footer { padding: 100px 0 60px; text-align: center; border-top: 1px solid var(--border); }
footer h2 { font-family: var(--serif-display); font-size: clamp(26px,3vw,44px); font-weight: 300; letter-spacing: -0.02em; margin: 0 auto 20px; max-width: 560px; }
footer p { color: var(--ink-2); margin-bottom: 36px; font-size: 15px; }
.footer-links { display: flex; gap: 32px; justify-content: center; margin-bottom: 64px; }
.footer-links a { font-size: 13px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.footer-links a:hover { color: var(--ink); border-color: var(--ink); }
footer small { font-size: 12px; color: var(--ink-3); }

/* ═══════════════════════════════
   CASE STUDY PAGES
═══════════════════════════════ */
.cs-page { padding-top: 64px; }
.cs-header { padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.cs-breadcrumb { font-size: 12px; color: var(--ink-3); margin-bottom: 40px; letter-spacing: 0.04em; }
.cs-breadcrumb button { background: none; border: none; cursor: none; color: var(--ink-3); font-family: var(--sans); font-size: 12px; padding: 0; transition: color .2s; letter-spacing: 0.04em; }
.cs-breadcrumb button:hover { color: var(--ink); }
.cs-header-grid { display: grid; grid-template-columns: 1fr 260px; gap: 80px; align-items: start; }
.cs-title { font-family: var(--serif-display); font-size: clamp(36px,5vw,68px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 28px; }
.cs-summary { font-size: 16px; color: var(--ink-2); line-height: 1.78; max-width: 600px; margin-bottom: 16px; }
.cs-date { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.cs-meta-item { margin-bottom: 24px; }
.cs-meta-label { font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.cs-meta-value { font-size: 14px; font-weight: 500; }
@media(max-width:900px){ .cs-header-grid { grid-template-columns:1fr; } .cs-meta { display:flex; gap:32px; flex-wrap:wrap; } .cs-meta-item { margin-bottom:0; } }

.cs-hero-img { width:100%; background:#EEECEA; overflow:hidden; max-height:640px; display:flex; align-items:center; justify-content:center; }
.cs-hero-img img { width:100%; height:100%; object-fit:cover; object-position:center top; display:block; }
.cs-hero-placeholder { width:100%; aspect-ratio:16/7; display:flex; align-items:center; justify-content:center; background:#EEECEA; }
.cs-hero-placeholder .inner { width:52%; max-width:640px; background:white; border-radius:8px; padding:28px 32px; box-shadow:0 20px 60px rgba(0,0,0,.08); }
.ph-row { display:flex; gap:16px; margin-bottom:12px; }
.ph-block { height:10px; background:#E0DFDB; border-radius:4px; }

.cs-figure { margin: 36px 0 0 0; width: 100%; }
.cs-figure img { width:100%; border-radius:6px; border:1px solid var(--border); display:block; }
.cs-figure figcaption { margin-top:12px; font-size:12px; color:var(--ink-3); line-height:1.6; font-style:italic; max-width:640px; }
.cs-figure-pair { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:36px; }
.cs-figure-pair .cs-figure { margin:0; }
@media(max-width:900px){ .cs-figure-pair { grid-template-columns:1fr; } }

.cs-body { padding: 80px 0; }
.cs-section { margin-bottom: 88px; }
.cs-section-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; }
.cs-section-label { padding-top: 4px; position: sticky; top: 84px; align-self: start; }
.cs-section-label h3 { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 12px; }
.cs-section-label h3::before { content: ''; width: 20px; height: 1px; background: var(--ink-3); display: block; }
.cs-section-content p { font-size: 15px; line-height: 1.82; color: var(--ink-2); margin-bottom: 24px; max-width: 680px; }
.cs-section-content p:last-child { margin-bottom: 0; }
.cs-section-content h4 { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 8px; margin-top: 28px; letter-spacing: 0.03em; text-transform: uppercase; }
.cs-section-content h4:first-child { margin-top: 0; }

.insight-card { border:1px solid var(--border); border-radius:4px; padding:24px 28px; margin-bottom:16px; background:var(--white); }
.insight-card h4 { margin-top:0; font-size:13px; margin-bottom:10px; }
.insight-card p { font-size:14px; margin-bottom:10px; max-width:none; color:var(--ink-2); }

.goals-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:28px; }
.goal-card { background:var(--white); border:1px solid var(--border); border-radius:4px; padding:20px 22px; }
.goal-icon { font-size:20px; margin-bottom:12px; }
.goal-card p { font-size:14px; max-width:none; color:var(--ink-2); margin-bottom:0; }
@media(max-width:700px){ .goals-grid { grid-template-columns:1fr; } }

.metrics-row { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:28px 0; }
.metric-card { background:var(--white); border:1px solid var(--border); border-radius:4px; padding:28px 20px; text-align:center; }
.metric-num { font-family:var(--serif-display); font-size:44px; font-weight:300; line-height:1; margin-bottom:8px; }
.metric-label { font-size:12px; color:var(--ink-2); line-height:1.5; }
@media(max-width:700px){ .metrics-row { grid-template-columns:1fr 1fr; } }

.pull-quote { font-family:var(--serif-display); font-size:clamp(20px,2.2vw,28px); font-weight:300; line-height:1.4; color:var(--ink); border-left:2px solid var(--accent); padding:4px 0 4px 24px; margin:36px 0; max-width:600px; }

@media(max-width:900px){ .cs-section-layout { grid-template-columns:1fr; gap:20px; } .cs-section-label { position:static; } .cs-section-label h3::before { display:none; } }

.cs-next { border-top:1px solid var(--border); padding:64px 0 80px; }
.cs-next .next-label { font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3); margin-bottom:20px; }
.cs-next-card { display:grid; grid-template-columns:1fr 300px; gap:40px; align-items:center; cursor:none; }
.cs-next-card h3 { font-family:var(--serif-display); font-size:clamp(22px,2.5vw,34px); font-weight:300; letter-spacing:-0.01em; margin-bottom:12px; }
.cs-next-card p { font-size:14px; color:var(--ink-2); }
.cs-next-thumb { aspect-ratio:16/9; border-radius:4px; overflow:hidden; transition:transform .4s ease; }
.cs-next-card:hover .cs-next-thumb { transform:translateY(-4px); }
@media(max-width:900px){ .cs-next-card { grid-template-columns:1fr; } }

/* Scroll fade-in */
.fade-in { opacity:0; transform:translateY(24px); transition:opacity .75s ease, transform .75s ease; }
.fade-in.visible { opacity:1; transform:none; }
.fade-in:nth-child(2){ transition-delay:.1s; }
.fade-in:nth-child(3){ transition-delay:.2s; }
.fade-in:nth-child(4){ transition-delay:.3s; }

/* ── SHARED KEYFRAMES ── */
@keyframes fadeIn  { from { opacity:0; }                              to { opacity:1; } }
@keyframes slideUp { from { opacity:0; transform:translateY(20px); }  to { opacity:1; transform:translateY(0); } }

/* ══════════════════════════════════
   MOBILE RESPONSIVE
══════════════════════════════════ */
@media (max-width: 640px) {
  /* Prevent horizontal overflow */
  body { overflow-x: hidden; cursor: auto; }
  .wrap { padding: 0 20px; }

  /* Cursor — hide on touch devices */
  .cursor, .cursor-ring { display: none; }
  * { cursor: auto !important; }

  /* Hide decorative desktop-only elements */
  .landing-rule, .landing-footnote, .parallax-bg, .descriptor-rule { display: none; }

  /* ── Nav ── */
  .pill-nav { gap: 0; }
  .pill-btn { padding: 8px 12px; font-size: 11px; }

  /* ── Landing ── */
  .landing { padding: 100px 0 64px; }
  .landing-portrait { padding-left: 20px !important; }
  .landing-eyebrow { padding-left: 20px; margin-bottom: 16px; }
  .landing-headline { padding-left: 20px; }
  .landing-descriptor { padding-left: 20px; flex-direction: column; gap: 12px; }
  .landing-chips { padding-left: 20px; }
  .landing-bottom { padding: 0 20px; margin-top: 40px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .landing-location { text-align: left; }
  .scroll-hint { display: none; }

  /* ── Dropdowns ── */
  .dropdown { position: fixed; left: 20px; right: 20px; width: auto; min-width: unset; top: auto; }

  /* ── Works ── */
  .works-section { padding: 24px 0 80px; }
  .works-header { margin-bottom: 32px; padding-bottom: 24px; }
  .project-row { padding: 28px 0; gap: 16px; }

  /* ── About ── */
  .about-strip { padding: 56px 0; }

  /* ── Footer ── */
  footer { padding: 56px 0 36px; }
  .footer-links { gap: 20px; flex-wrap: wrap; justify-content: center; }

  /* ── Case study — containers with inline padding ── */
  .cs-wide-container { padding: 0 20px !important; }
  .cs-header { padding: 40px 0 32px; }
  .cs-body { padding: 40px 0; }
  .cs-section { margin-bottom: 48px; }
  .cs-section-layout { grid-template-columns: 1fr; gap: 16px; }
  .cs-section-label { position: static; }
  .cs-section-label h3::before { display: none; }
  .cs-header-grid { grid-template-columns: 1fr; gap: 32px; }
  .cs-meta { display: flex; gap: 24px; flex-wrap: wrap; }
  .cs-meta-item { margin-bottom: 0; }

  /* ── Cards & grids ── */
  .goals-grid { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .cs-figure-pair { grid-template-columns: 1fr; }
  .cs-next-card { grid-template-columns: 1fr; }

  /* ── Inline link cards — make them full width ── */
  .cs-wide-container a[style*="inline-flex"] {
    width: 100%;
    box-sizing: border-box;
  }

  /* ── Video ── */
  .cs-video-label { padding: 0 20px; }
}
