/* ============================================================
   KAT CHAMBERS — Art Director Portfolio
   Noora-inspired: light, calm, clean sans, generous space
   ============================================================ */

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

:root {
  --bg: #f3f1ec;
  --bg-card: #ffffff;
  --bg-soft: #eae7e0;
  --ink: #111110;
  --ink-soft: #6b6860;
  --line: #ddd9d0;
  --accent: #111110;
  --display: 'Hanken Grotesk', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --r: 18px;
  --r-lg: 28px;
  --maxw: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 2.5rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 500; font-size: 0.9rem;
  padding: 0.85rem 1.5rem; border-radius: 100px;
  background: var(--ink); color: var(--bg);
  transition: transform .35s cubic-bezier(.16,1,.3,1), background .3s;
}
.btn:hover { transform: translateY(-2px); background: #2c2b27; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.55; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem clamp(1.5rem, 5vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav-logo sup { font-size: 0.55em; font-weight: 500; top: -0.7em; }
.nav-links { display: flex; gap: clamp(1rem, 2.5vw, 2rem); align-items: center; }
.nav-links > a { font-family: var(--display); font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); transition: color .3s; }
.nav-links > a:hover, .nav-links > a.active { color: var(--ink); }
.nav-links > a.btn, .nav-links > a.btn:hover, .nav-links > a.btn.active { color: var(--bg); }

/* ---------- Section label ---------- */
.label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-size: 0.82rem; font-weight: 500;
  color: var(--ink-soft); margin-bottom: 1.6rem;
}
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  line-height: 1.02; letter-spacing: -0.035em; max-width: 17ch;
}
.hero h1 .muted { color: var(--ink-soft); }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-top: 2.5rem; }
.hero-sub { max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--ink-soft); line-height: 1.6; }
.hero-sub b { color: var(--ink); font-weight: 500; }

/* hero showcase image */
.hero-feature {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
  aspect-ratio: 16 / 8; position: relative;
  cursor: pointer; display: block; text-decoration: none;
}
/* on desktop the img-wrap fills the whole feature */
.hero-feature-img-wrap { position: absolute; inset: 0; }
.hero-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.hero-feature:hover img { transform: scale(1.02); }
.hero-feature .ph, .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 500; color: var(--ink-soft);
  background:
    radial-gradient(110% 120% at 30% 10%, rgba(0,0,0,0.03), transparent 55%),
    var(--bg-soft);
  letter-spacing: -0.01em;
}
.hero-feature .tag-pill {
  position: absolute; left: 1.3rem; bottom: 1.3rem; z-index: 2;
  background: var(--bg-card); border-radius: 100px; padding: 0.6rem 1.1rem;
  font-family: var(--display); font-weight: 500; font-size: 0.85rem;
  display: flex; gap: 0.6rem; align-items: center; box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.hero-feature .tag-pill span { color: var(--ink-soft); font-weight: 400; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Big statement block (About-style) ---------- */
.statement { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.statement h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -0.025em;
  max-width: 22ch;
}
.statement h2 .muted { color: var(--ink-soft); }
.statement .sub { margin-top: 1.8rem; max-width: 52ch; color: var(--ink-soft); font-size: 1.05rem; }
.statement .actions { margin-top: 2.2rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Benefits / capabilities cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.8rem, 1.5vw, 1.2rem); padding-bottom: clamp(2rem,5vw,4rem); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2.2rem); display: flex; flex-direction: column; gap: 1rem;
  min-height: 240px; transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.card:hover { transform: translateY(-4px); }
.card .num { font-family: var(--display); font-weight: 500; font-size: 0.82rem; color: var(--ink-soft); }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 1.45rem; letter-spacing: -0.02em; margin-top: auto; }
.card p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin: clamp(3.5rem,7vw,6rem) 0 clamp(1.8rem,3vw,2.5rem); }
.section-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem,4.5vw,3.2rem); letter-spacing: -0.03em; line-height: 1; }
.section-head .meta { color: var(--ink-soft); font-family: var(--display); font-size: 0.9rem; }

/* ---------- Work grid ---------- */
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(0.8rem, 1.5vw, 1.2rem); padding-bottom: clamp(2rem,5vw,4rem); }
.proj { grid-column: span 6; display: block; }
.proj.wide { grid-column: span 12; }
.proj-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--bg-soft); border: 1px solid var(--line);
  aspect-ratio: 4/3; transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.proj.wide .proj-card { aspect-ratio: 16/7; }
.proj:hover .proj-card { transform: translateY(-4px); }
.proj-card img { width:100%; height:100%; object-fit: cover; transition: transform 1s cubic-bezier(.16,1,.3,1); }
.proj:hover .proj-card img { transform: scale(1.04); }
.proj-card .ph { font-size: clamp(1.4rem,3vw,2.4rem); }
.proj-card .tag-pill {
  position: absolute; left: 1.1rem; top: 1.1rem; z-index: 2;
  background: var(--bg-card); border-radius: 100px; padding: 0.45rem 0.95rem;
  font-family: var(--display); font-weight: 500; font-size: 0.78rem;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
}
.proj-card .open {
  position: absolute; right: 1.1rem; bottom: 1.1rem; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  transform: translateY(8px); opacity: 0; transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .4s;
}
.proj:hover .proj-card .open { transform: none; opacity: 1; }
.proj-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.1rem; gap: 1rem; padding: 0 0.3rem; }
.proj-meta h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem,2.2vw,1.8rem); letter-spacing: -0.02em; }
.proj-meta .tag { font-family: var(--display); font-size: 0.82rem; color: var(--ink-soft); white-space: nowrap; }
.proj-desc { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.35rem; padding: 0 0.3rem; max-width: 54ch; }

/* ---------- Marquee strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 1.4rem 0; background: var(--bg-card); }
.strip-track { display: flex; white-space: nowrap; animation: marquee 40s linear infinite; width: max-content; }
.strip-track span { font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: var(--ink); padding: 0 1.4rem; flex-shrink: 0; }
.strip-track span.dot { color: var(--ink-soft); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Project detail ---------- */
.proj-hero { padding: clamp(2.5rem,6vw,5rem) 0 clamp(1.5rem,3vw,2.5rem); }
.proj-hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem,7vw,5.5rem); letter-spacing: -0.035em; line-height: 1; margin-top: 1.2rem; }
.proj-hero .lead { margin-top: 1.4rem; max-width: 48ch; color: var(--ink-soft); font-size: 1.1rem; }
.proj-cover { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); margin: clamp(2rem,4vw,3rem) 0; position: relative; }
.proj-cover img { width: 100%; height: auto; display: block; }
.proj-cover .ph { aspect-ratio: 16/8; display:flex; align-items:center; justify-content:center; font-size: clamp(1.5rem,3vw,2.5rem); }
.proj-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 1rem; margin-bottom: clamp(2rem,4vw,3rem); }
.fact { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem; }
.fact .k { font-family: var(--display); font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.fact .v { font-family: var(--display); font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; }
.proj-body { max-width: 62ch; font-size: 1.18rem; color: var(--ink); line-height: 1.65; margin-bottom: clamp(2.5rem,5vw,3.5rem); font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
.proj-body p { margin-bottom: 1.4rem; }
.proj-body strong { font-weight: 600; }
/* ---------- Gallery (JS masonry, natural ratios, no crop) ---------- */
.gallery { position: relative; padding-bottom: clamp(2.5rem,5vw,4rem); }
.g-item, .g-w2, .g-full { position: absolute; top: 0; left: 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-sizing: border-box; }
.gallery img { width: 100%; height: auto; display: block; transition: transform 1s cubic-bezier(.16,1,.3,1); }
.g-item:hover img, .g-w2:hover img, .g-full:hover img { transform: scale(1.03); }
/* fallback before JS runs / no-JS: simple grid so content is still visible */
.gallery.no-js { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.gallery.no-js .g-item, .gallery.no-js .g-w2, .gallery.no-js .g-full { position: static; }
.gallery.no-js .g-w2 { grid-column: span 2; }
.gallery.no-js .g-full { grid-column: 1 / -1; }
.g-item .ph { aspect-ratio: 3/4; display:flex; align-items:center; justify-content:center; font-size: 0.92rem; }
.g-full .ph { aspect-ratio: 16/7; display:flex; align-items:center; justify-content:center; font-size: 0.92rem; }

/* ---------- Three-column equal grid (e.g. Fabletics Men photo row) ---------- */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.6rem,1.2vw,1rem); padding-bottom: clamp(2.5rem,5vw,4rem); }
.three-col .g-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; aspect-ratio: 3/2; }
.three-col .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.16,1,.3,1); }
.three-col .g-item:hover img { transform: scale(1.04); }

/* ---------- Prototype cards (Figma links) ---------- */
.proto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem,2vw,1.6rem); padding-bottom: clamp(1.5rem,3vw,2.5rem); }
.proto-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.proto-card:hover { transform: translateY(-4px); }
.proto-media { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.proto-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.16,1,.3,1); }
.proto-card:hover .proto-media img { transform: scale(1.04); }
.proto-body { padding: clamp(1.3rem,2.2vw,1.8rem); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.proto-kicker { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.proto-card h3 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.02em; }
.proto-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Figma embeds ---------- */
.figma-embed-block { margin-bottom: clamp(2rem, 4vw, 3rem); }
.figma-embed-block .embed-label { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
.figma-embed-block .embed-kicker { font-family: var(--display); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.figma-embed-block h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.5vw, 1.8rem); letter-spacing: -0.02em; }
.figma-embed-block p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.65; margin-top: 0.4rem; max-width: 60ch; }
.figma-frame-wrap { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #1a1a1a; margin-top: 1rem; box-shadow: 0 2px 40px rgba(0,0,0,0.18); }
.figma-frame-wrap::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 36px; background: #1a1a1a; z-index: 2; border-bottom: 1px solid #2a2a2a; display: flex; align-items: center; }
.figma-frame-wrap::after { content: '⬤  ⬤  ⬤'; position: absolute; top: 0; left: 1rem; height: 36px; z-index: 3; font-size: 0.45rem; color: #444; display: flex; align-items: center; line-height: 36px; letter-spacing: 0.3em; }
.figma-frame-wrap iframe { position: absolute; top: 36px; left: 0; width: 100%; height: calc(100% - 36px); border: none; display: block; }
.proto-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Video masonry (Vimeo, 9:16 vertical, packed) ---------- */
.video-masonry { column-count: 3; column-gap: clamp(0.6rem,1.2vw,1rem); padding-bottom: clamp(2.5rem,5vw,4rem); }
.video-item { break-inside: avoid; margin-bottom: clamp(0.6rem,1.2vw,1rem); position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); aspect-ratio: 9/16; }
.video-item iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.back-link { display:inline-flex; align-items:center; gap:0.5rem; font-family: var(--display); font-weight:500; font-size:0.9rem; color:var(--ink-soft); transition: gap .3s, color .3s; }
.back-link:hover { color: var(--ink); gap: 0.9rem; }

.next-project { border-top: 1px solid var(--line); margin-top: clamp(3rem,6vw,5rem); padding: clamp(2rem,4vw,3rem) 0; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.next-project .next-label { font-family: var(--display); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.5rem; }
.next-project .next-title { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); transition: color .2s; }
.next-project a:hover .next-title { color: var(--ink-soft); }
.next-project .next-arrow { font-size: 1.5rem; color: var(--ink-soft); transition: transform .3s cubic-bezier(.16,1,.3,1), color .2s; flex-shrink: 0; }
.next-project a:hover .next-arrow { transform: translateX(6px); color: var(--ink); }

.photo-credit { font-size: 0.8rem; color: var(--ink-soft); opacity: 0.6; margin-top: 1.5rem; margin-bottom: 2rem; }

/* ---------- Hero slider ---------- */
.hero-slider {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
  aspect-ratio: 16 / 8; position: relative;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide .tag-pill {
  position: absolute; left: 1.3rem; bottom: 1.3rem; z-index: 2;
  background: var(--bg-card); color: var(--ink);
  border-radius: 100px; padding: 0.55rem 1.1rem;
  font-family: var(--display); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.01em;
  display: flex; gap: 0.5rem; align-items: center;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.hero-slide .tag-pill span { color: var(--ink-soft); font-weight: 400; }
.slider-btn {
  position: absolute; top: 50%; z-index: 3;
  transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--line);
  color: var(--ink); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.slider-btn:hover { background: var(--ink); color: var(--bg); transform: translateY(-50%) scale(1.08); }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }
.slider-dots {
  position: absolute; top: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.4rem; z-index: 3;
}
.slider-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: none;
  transition: background .2s, transform .2s;
}
.slider-dot.active { background: var(--ink); transform: scale(1.2); }

/* ---------- Case study columns ---------- */
.case-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: clamp(1.8rem, 3vw, 2.5rem); }
.case-col { background: var(--bg-card); padding: clamp(1.3rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: 0.8rem; }
.case-col h4 { font-family: var(--display); font-size: 1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.case-col p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; }
.case-col p strong { color: var(--ink); font-weight: 500; }

.responsibilities-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.responsibilities-list li { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; padding-left: 1.2rem; position: relative; }
.responsibilities-list li::before { content: '—'; position: absolute; left: 0; color: var(--ink-soft); opacity: 0.4; }

/* ---------- About ---------- */
.about-grid { display:grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem,4vw,4rem); align-items:start; padding: clamp(2rem,4vw,3rem) 0; }
.about-portrait { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); aspect-ratio: 3/4; position: sticky; top: 6rem; }
.about-portrait img { width:100%; height:100%; object-fit:cover; }
.about-text h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem,3.5vw,2.8rem); line-height:1.1; letter-spacing:-0.025em; margin-bottom: 1.6rem; }
.about-text h2 .muted { color: var(--ink-soft); }
.about-text p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.2rem; }
.about-text p strong { color: var(--ink); font-weight: 500; }
.list-block { margin-top: 2.5rem; }
.list-block h4 { font-family: var(--display); font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.list-block ul { list-style: none; }
.list-block li { display:flex; justify-content:space-between; gap:1rem; padding: 0.95rem 0; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 500; font-size: 1.1rem; letter-spacing:-0.01em; transition: padding-left .3s; }
.list-block li:hover { padding-left: 0.6rem; }
.list-block li span { font-family: var(--body); font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); align-self: center; }

/* ---------- CTA / Footer ---------- */
.cta { padding: clamp(3.5rem,7vw,6rem) 0; border-top: 1px solid var(--line); }
.cta h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem,6vw,4.5rem); letter-spacing: -0.035em; line-height: 1.02; max-width: 16ch; }
.cta h2 .muted { color: var(--ink-soft); }
.cta .actions { margin-top: 2.2rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }

footer { border-top: 1px solid var(--line); padding: clamp(2.5rem,5vw,4rem) 0 2.5rem; }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.foot-brand { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.foot-brand p { font-family: var(--body); font-weight: 400; font-size: 0.92rem; color: var(--ink-soft); margin-top: 0.6rem; max-width: 32ch; }
.foot-cols { display: flex; gap: clamp(2rem,5vw,4rem); flex-wrap: wrap; }
.foot-col h5 { font-family: var(--display); font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0.9rem; font-weight: 500; }
.foot-col a { display: block; font-family: var(--display); font-weight: 500; font-size: 0.95rem; padding: 0.25rem 0; transition: color .3s; }
.foot-col a:hover { color: var(--ink-soft); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2.5rem,5vw,4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Credits block ---------- */
.credits { border-top: 1px solid var(--line); margin: clamp(2rem,4vw,3rem) 0; padding-top: clamp(1.5rem,3vw,2.2rem); }
.credits h4 { font-family: var(--display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft); margin-bottom: 1.2rem; }
.credits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem 2rem; }
.credit .role { font-size: 0.78rem; color: var(--ink-soft); }
.credit .name { font-family: var(--display); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; margin-top: 0.15rem; }

/* ---------- Sub-section heading within a project ---------- */
.subsection { margin: clamp(3rem,6vw,5rem) 0 clamp(1.5rem,3vw,2rem); }
.subsection .label { margin-bottom: 0.8rem; }
.subsection h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem,4vw,2.6rem); letter-spacing: -0.025em; line-height: 1.05; }
.subsection p { color: var(--ink-soft); font-size: 1.02rem; margin-top: 0.8rem; max-width: 56ch; }

/* ---------- Stats strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(2rem,4vw,3rem) clamp(1rem,2vw,1.8rem); border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .n { font-family: var(--display); font-weight: 600; font-size: clamp(2rem,4vw,3.2rem); letter-spacing: -0.03em; line-height: 1; }
.stat .l { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .wrap { padding: 0 24px; }
  nav { padding: 0.85rem 24px; }
  .case-cols { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .proj, .proj.wide { grid-column: span 12; }
  .proj.wide .proj-card { aspect-ratio: 4/3; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 420px; order: -1; }
  .hero-slider { aspect-ratio: 16 / 9; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-w2 { grid-column: 1 / -1; }
  .video-masonry { column-count: 2; }
  .proto-grid { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .nav-links > a:not(.btn) { display: none; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .hero-feature { aspect-ratio: 16 / 9; }
  .proj-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px !important; }
  nav { padding: 0.85rem 20px !important; }
  .hero-slider { aspect-ratio: 4/3; margin-top: 1.8rem; border-radius: var(--r); }
  .slider-btn { width: 32px; height: 32px; font-size: 0.85rem; }
  .slider-dots { display: none; }
  .figma-frame-wrap { aspect-ratio: 4/3; }
  .statement { padding-top: 3rem; }
  .statement .actions { margin-bottom: 0.5rem; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px !important; }
  nav { padding: 0.85rem 20px !important; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .hero-feature { aspect-ratio: 4/3; margin-top: 1.8rem; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .statement { padding: 2.5rem 0; }
  .statement h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .statement .actions { flex-direction: column; margin-bottom: 1rem; }
  .statement .actions .btn { justify-content: center; }
  .proto-grid { grid-template-columns: 1fr; }
  .proj-facts { grid-template-columns: repeat(2, 1fr); }
  .three-col { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .cards { grid-template-columns: 1fr; }
  .foot-top { flex-direction: column; gap: 1.5rem; }
  .foot-bottom { flex-direction: column; gap: 0.4rem; }
  .video-masonry { column-count: 1; }
  .about-text h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .about-portrait { max-width: 100%; aspect-ratio: 4/3; }
  .list-block li { flex-direction: column; gap: 0.2rem; }
  .list-block li span { align-self: flex-start; }
  .cta { padding: 2.5rem 0; }
  .cta h2 { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .cta .actions { flex-direction: column; }
  .cta .actions .btn { justify-content: center; width: 100%; }
  .cta .actions .btn:first-child { font-size: 0.78rem; word-break: break-all; }
  .strip-track span { font-size: 0.95rem; padding: 0 1rem; }
}
