/* ─── v3: Editorial-minimal home ────────────────────────────────── */
/* Scoped under .v3 so it never touches v1/v2. Reuses tokens + the    */
/* project-card__img--* gradients from style.css.                     */

.v3 {
  --accent: #c2185b;
  --accent-dark: #a01148;
  --accent-2: #c2185b;
  --ink: #0e0e0e;
  --paper: #ffffff;
  --muted: #6b6b6b;
  --line: #e6e3df;
  --line-dark: rgba(255, 255, 255, 0.14);
  --v3-maxw: 1400px;
  --font-display: 'Poppins', 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.8s ease, color 0.8s ease;
}

/* Scroll-driven theme: page fades to dark while a dark section is centred */
.v3.theme-dark { background: var(--ink); color: #fff; }
.v3 .v3-dark { transition: background-color 0.8s ease; }
.v3.theme-dark .v3-dark { background: transparent; }

.v3 .v3-wrap {
  max-width: var(--v3-maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.v3 ::selection { background: var(--accent); color: #fff; }

/* Display headings use Poppins; body copy stays Inter (from style.css) */
.v3 .v3-hero h1,
.v3 .v3-section-head h2,
.v3 .v3-project__title,
.v3 .v3-about__quote,
.v3 .v3-about__lead,
.v3 .v3-about__body,
.v3 .v3-stat__num,
.v3 .v3-services__head h2,
.v3 .v3-service h3,
.v3 .v3-cta h2 {
  font-family: var(--font-display);
}

/* ─── Nav: expands over hero, compresses to a pill on scroll ─────── */
.v3 .v3-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 18px clamp(20px, 5vw, 72px);
  pointer-events: none;
}
.v3 .v3-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 4px 8px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
  letter-spacing: -0.01em;
  pointer-events: auto;
  transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.v3 .v3-nav__inner.is-compressed {
  max-width: 560px;
  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(58, 58, 60, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #fff;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
}
.v3 .v3-nav a { color: inherit; text-decoration: none; font-weight: 400; }
.v3 .v3-nav__inner > a:first-child { justify-self: start; }
.v3 .v3-nav__inner > a:nth-child(2) { justify-self: center; }
.v3 .v3-nav__inner > a:last-child { justify-self: end; }
.v3 .v3-nav__logo { font-weight: 600; white-space: nowrap; }

/* ─── Hero ──────────────────────────────────────────────────────── */
.v3 .v3-hero { padding: 172px 0 96px; }
.v3 .v3-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
}
.v3 .v3-hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 24ch;
}
.v3 .v3-hero h1 strong { font-weight: 800; }
.v3 .v3-hero__employers {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ─── Section header (Selected Work) ────────────────────────────── */
.v3 .v3-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 56px;
}
.v3 .v3-section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.v3 .v3-years {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

/* ─── Selected Work blocks ──────────────────────────────────────── */
.v3 .v3-work { padding: 88px 0; }
.v3 .v3-project { margin-bottom: 96px; }
.v3 .v3-project:last-child { margin-bottom: 0; }
.v3 .v3-project__img {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 18px;
  background-color: #f1f1f1;
}
/* Looping video thumbnail: fades in over the poster once it's actually playing */
.v3 .v3-project__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.v3 .v3-project__video.is-ready { opacity: 1; }

/* Ambient halo: paired shadows bloom behind the card on hover, purple on the
   left, pink on the right. Not clipped by the card's own overflow. */
.v3 .v3-project__img {
  transition: box-shadow 0.5s ease;
}
.v3 .v3-project__img:hover {
  box-shadow: -14px 20px 46px -26px rgba(74, 29, 110, 0.28),
               14px 20px 46px -26px rgba(194, 24, 91, 0.28);
}

/* Slow zoom on the artwork, matching the relcard behaviour in The Lab. The
   card has no inner element, so ::before carries a copy of the background
   and scales that instead of the card box. Cards holding a video are
   excluded, so the video never scales. */
.v3 .v3-project__img:not(:has(video))::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.v3 .v3-project__img:not(:has(video)):hover::before { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .v3 .v3-project__video { display: none; }
}
.v3 .v3-project__row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 40px;
  margin-top: 36px;
  align-items: start;
}
.v3 .v3-project__main { min-width: 0; }
.v3 .v3-project__title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  width: fit-content;
  transition: opacity 0.2s ease;
}
.v3 .v3-project__title a { color: inherit; text-decoration: none; }
.v3 .v3-project__title:hover { opacity: 0.55; }
.v3 .v3-project__desc {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  max-width: 52ch;
  opacity: 0.82;
  margin-bottom: 22px;
}
.v3 .v3-project__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.v3 .v3-tag {
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  background: #efefef;
  color: #6b6b6b;
  border-radius: 999px;
}
.v3 .v3-project__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.v3 .v3-meta-grid { display: flex; gap: 48px; }
.v3 .v3-meta__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.45;
  margin-bottom: 7px;
}
.v3 .v3-meta__val { font-size: 18px; font-weight: 400; }
.v3 .v3-project__stat { font-size: 14px; line-height: 1.4; color: var(--muted); margin: 0; }
.v3 .v3-project__stat strong { font-weight: 600; color: var(--accent); }

/* "See case study" — black pill, arrow slides in on hover (from export) */
.v3 .cta-case {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 400;
  background: #0b0b0b;
  color: #fff;
  cursor: pointer;
  transition: background 0.35s ease;
}
.v3 .cta-case:hover { background: #2a2a2a; }
.v3 .cta-case .arr {
  display: inline-block;
  opacity: 0;
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  transform: translateX(-4px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.v3 .cta-case:hover .arr { opacity: 1; max-width: 22px; margin-left: 9px; transform: translateX(0); }

/* ─── Pill button ───────────────────────────────────────────────── */
.v3 .v3-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.v3 .v3-pill:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ─── About highlight quote (bold, inside dark About) ───────────── */
.v3 .v3-about__quote {
  margin: 130px 0 0;
  max-width: 24ch;
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* ─── Dark sections (About + What I Do) ─────────────────────────── */
.v3 .v3-dark { background: var(--ink); color: #fff; }

.v3 .v3-about { padding: 130px 0; }
.v3 .v3-about__label {
  margin: 0 0 40px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
  color: #8a8a8a;
}
.v3 .v3-about__lead {
  margin: 0;
  max-width: 34ch;
  font-weight: 300;
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #f5f5f5;
}
.v3 .v3-about__lead strong { font-weight: 700; }
.v3 .v3-about__body {
  margin: 40px 0 0;
  max-width: 44ch;
  font-weight: 300;
  font-size: clamp(22px, 3.3vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #f5f5f5;
}
.v3 .v3-about__body strong { color: #fff; font-weight: 700; }
.v3 .v3-about__body a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.v3 .v3-about__body a:hover { color: var(--accent-2); text-decoration-color: var(--accent-2); }

/* Scroll reveal (fade + rise) */
.v3 .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.v3 .reveal.is-in { opacity: 1; transform: none; }

/* Cursor-following hover previews on About keywords */
.v3 .hov-link {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: text-decoration-color 0.3s ease;
}
.v3 .hov-link:hover { text-decoration-color: var(--accent-2); }
#pf-hovers { position: fixed; inset: 0; pointer-events: none; z-index: 45; }
#pf-hovers .hov-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 320px;
  height: 220px;
  opacity: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.4s ease;
  will-change: transform, opacity;
}
#pf-hovers .hov-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#pf-hovers .hov-img[data-key="hiking"],
#pf-hovers .hov-img[data-key="martial-arts"] { width: 280px; height: 340px; }
/* Sky Glass render on transparent bg: white card + light zoom so a little white padding frames the TV (matches the Sky Live "on white" shot) */
#pf-hovers .hov-img[data-key="sky-glass"] { background: #ffffff; }
#pf-hovers .hov-img[data-key="sky-glass"] img { transform: scale(1.6); }

.v3 .v3-stats { margin-top: 90px; max-width: 920px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.v3 .v3-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.v3 .v3-stat__num {
  font-weight: 300;
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.v3 .v3-stat__label {
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.35;
  text-align: right;
  max-width: 30ch;
  opacity: 0.62;
}

/* ─── What I Do (dark) ──────────────────────────────────────────── */
.v3 .v3-services { padding: 116px 0; }
.v3 .v3-services__head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.v3 .v3-services__head p {
  color: rgba(255, 255, 255, 0.65);
  margin-top: 18px;
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.6;
}
.v3 .v3-services__head p strong { color: #fff; font-weight: 600; }
.v3 .v3-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 64px;
}
.v3 .v3-service {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 34px 32px 38px;
}
.v3 .v3-service h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.v3 .v3-service__sub { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin-bottom: 20px; line-height: 1.5; }
.v3 .v3-service ul { list-style: none; padding: 0; margin: 0; }
.v3 .v3-service li {
  padding: 13px 0;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* ─── Final CTA ─────────────────────────────────────────────────── */
.v3 .v3-cta { padding: 144px 0 104px; }
.v3 .v3-cta h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.v3 .v3-cta__note { color: var(--muted); margin-top: 24px; line-height: 1.6; }
.v3 .v3-cta .v3-pill { margin-top: 36px; font-size: 0.95rem; padding: 14px 26px; }

/* ─── Footer ────────────────────────────────────────────────────── */
.v3 .v3-footer { border-top: 1px solid var(--line); padding: 34px 0 40px; }
.v3 .v3-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.v3 .v3-vibecode { text-align: center; color: var(--muted); font-size: 0.74rem; margin-top: 18px; }
.v3 .v3-vibecode a { color: var(--accent); }

/* ─── The Lab flask: hover recolour + brewing bubbles ─────────── */
.v3 .lab-flask { transition: color 0.3s ease; }
.v3 .lab-flask:hover { color: var(--accent-2); }
.v3 .lab-flask__bubbles circle { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .v3 .lab-flask:hover .lab-flask__bubbles circle {
    animation: lab-bubble 1.3s ease-in-out infinite;
  }
  .v3 .lab-flask:hover .lab-flask__bubbles circle:nth-child(2) { animation-delay: 0.45s; }
  .v3 .lab-flask:hover .lab-flask__bubbles circle:nth-child(3) { animation-delay: 0.9s; }
}
@keyframes lab-bubble {
  0%   { opacity: 0;    transform: translateY(1.5px); }
  25%  { opacity: 0.85; }
  100% { opacity: 0;    transform: translateY(-6px); }
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .v3 .v3-wrap { padding: 0 22px; }
  .v3 .v3-hero { padding: 132px 0 72px; }
  .v3 .v3-nav { gap: 20px; padding: 10px 18px; }
  .v3 .v3-project__row { grid-template-columns: 1fr; gap: 22px; }
  .v3 .v3-services__grid { grid-template-columns: 1fr; gap: 16px; }
  .v3 .v3-stat__label { font-size: 0.85rem; }
}

/* ════════════════════════════════════════════════════════════════ */
/* Case study (v3) — restyles the case-* components from style.css   */
/* ════════════════════════════════════════════════════════════════ */

/* Case hero */
.v3 .case-hero {
  color: #fff;
  padding: 132px 0 84px;
  background-attachment: scroll;
}
.v3 .case-hero__content { max-width: 880px; }
.v3 .case-hero__tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}
.v3 .case-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.v3 .case-hero__tagline {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
}
.v3 .case-hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.v3 .case-hero__meta .meta__label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.v3 .case-hero__meta .meta__val { font-size: 0.92rem; font-weight: 500; line-height: 1.4; }

/* Sections */
.v3 .case-section { padding: 96px 0; }
.v3 .case-section.section--alt { background: #faf9f7; }
.v3 .case-section__label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}
.v3 .case-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin-bottom: 20px;
}
.v3 .case-section h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.015em;
  font-weight: 600;
}
.v3 .case-section h4 { font-weight: 600; }
.v3 .case-section p { font-size: 1.02rem; line-height: 1.65; color: #2c2c2c; max-width: 72ch; }
.v3 .case-section p strong { font-weight: 600; color: var(--ink); }

/* Insight cards */
.v3 .insight-card {
  background: #f3f1ee;
  border: none;
  border-radius: 16px;
  padding: 28px;
}
.v3 .case-section.section--alt .insight-card { background: #fff; }
.v3 .insight-card h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.v3 .insight-card p { font-size: 0.92rem; color: var(--muted); max-width: none; }
.v3 .insight-card ul li::before { color: var(--accent); }
.v3 .insight-card--compact { padding: 22px 24px; }

/* Pull quote (not in style.css) */
.v3 .case-pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  margin: 48px 0;
  max-width: none;
}

/* Metrics */
.v3 .case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.v3 .case-metric { padding: 28px 24px; border-right: 1px solid var(--line); }
.v3 .case-metric:last-child { border-right: none; }
.v3 .case-metric__val {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.v3 .case-metric__label { font-size: 0.85rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }

/* Definition list (not in style.css) */
.v3 .case-deflist { margin-top: 24px; }
.v3 .case-deflist__item { margin-bottom: 22px; padding-left: 26px; position: relative; }
.v3 .case-deflist__item:last-child { margin-bottom: 0; }
.v3 .case-deflist dt {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 5px;
}
.v3 .case-deflist dt::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.v3 .case-deflist dd { margin: 0; line-height: 1.6; color: #2c2c2c; }
.v3 .case-deflist dd strong { font-weight: 600; color: var(--ink); }

/* Images + video */
.v3 .case-img { border-radius: 16px; width: 100%; display: block; }
.v3 .case-img--wide { width: 100%; }
.v3 .case-video {
  width: 100%;
  display: block;
  border-radius: 16px;
  background: #000;
}

/* Reflection list (not in style.css) */
.v3 .reflection-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

/* Prev/next buttons */
.v3 .btn--outline {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.v3 .btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.v3 .section { padding: 64px 0; }

/* Dark closing section (Reflection) */
.v3 .v3-cs-dark { background: var(--ink); color: #fff; }
.v3 .v3-cs-dark .case-section__label { color: var(--accent-2); }
.v3 .v3-cs-dark h2,
.v3 .v3-cs-dark h3,
.v3 .v3-cs-dark h4 { color: #fff; }
.v3 .v3-cs-dark p { color: rgba(255, 255, 255, 0.74); }
.v3 .v3-cs-dark p strong { color: #fff; }
.v3 .v3-cs-dark .insight-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.v3 .v3-cs-dark .insight-card p { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 768px) {
  .v3 .case-hero__meta { grid-template-columns: 1fr 1fr; gap: 22px; }
  .v3 .case-metrics { grid-template-columns: 1fr; }
  .v3 .case-metric { border-right: none; border-bottom: 1px solid var(--line); }
  .v3 .case-metric:last-child { border-bottom: none; }
  .v3 .reflection-list { grid-template-columns: 1fr; }
  .v3 .case-section { padding: 64px 0; }
}

/* ════════════════════════════════════════════════════════════════ */
/* v3 case study layout — editorial, image-forward (.v3cs-*)         */
/* ════════════════════════════════════════════════════════════════ */

/* Full container width (matches index-v3); body text constrained for reading */
.v3 .v3cs-wrap { max-width: var(--v3-maxw); margin: 0 auto; padding: 0 32px; }
.v3 .v3cs-section { padding: clamp(72px, 10vw, 130px) 0; }
.v3 .v3cs-section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.v3 .v3cs-section--alt { background: var(--surface); }

/* Hero (text) */
.v3 .v3cs-hero { padding: 150px 0 56px; }
.v3 .v3cs-hero.v3-dark .v3cs-hero__tag { color: var(--accent-2); }
.v3 .v3cs-hero.v3-dark .v3cs-meta { border-top-color: rgba(255, 255, 255, 0.18); }
.v3 .v3cs-hero__tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 26px;
}
.v3 .v3cs-hero h1 {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(48px, 8vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.v3 .v3cs-hero__tagline {
  margin: 28px 0 0;
  max-width: 60ch;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.5;
  font-weight: 300;
  opacity: 0.78;
}

/* Metadata row */
.v3 .v3cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.13);
}
.v3 .v3cs-meta__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9b9b9b;
  margin-bottom: 9px;
}
.v3 .v3cs-meta__val { font-size: 18px; font-weight: 300; line-height: 1.4; }

/* Figures: contained (rounded) + full-bleed (page-padding only) */
.v3 .v3cs-figure { margin: 0; }
.v3 .v3cs-figure img,
.v3 .v3cs-figure video {
  display: block;
  width: 100%;
  border-radius: 18px;
  background: #f1f1f1;
}
.v3 .v3cs-figure--bleed {
  margin: 0 auto;
  padding: 0 32px;
  max-width: var(--v3-maxw);
}
/* Staged figure: artifact floats on a soft tinted, padded panel */
.v3 .v3cs-figure--stage img {
  background: #ece7f3;
  padding: clamp(32px, 6vw, 96px);
  border-radius: 24px;
}
/* Grey gradient stage (capture flow artifacts), tighter padding so the screen fills more of the frame */
.v3 .v3cs-figure--warm img {
  background: radial-gradient(130% 110% at 50% 12%, #efeff0 0%, #dadadc 55%, #c2c2c5 100%);
  padding: clamp(16px, 2.5vw, 40px);
}
/* Grid of staged artifacts, each with caption text below */
.v3 .v3cs-stagegrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(40px, 5vw, 64px);
}
.v3 .v3cs-stagegrid .v3cs-h3 { margin: 24px 0 12px; }
.v3 .v3cs-figcaption {
  margin: 16px auto 0;
  max-width: var(--v3-maxw);
  padding: 0 32px;
  font-size: 14px;
  color: var(--muted);
}
/* Figma (and other) iframe embeds */
.v3 .v3cs-embed {
  margin: clamp(24px, 3vw, 40px) auto 0;
  padding: 0 32px;
  max-width: var(--v3-maxw);
}
.v3 .v3cs-embed iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
  border-radius: 18px;
  background: #f1f1f1;
}
.v3 .v3cs-figrow {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  max-width: var(--v3-maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.v3 .v3cs-figrow .v3cs-figcaption { max-width: none; padding: 0; }
.v3 .v3cs-figrow .v3cs-figure--stage img {
  height: clamp(260px, 30vw, 440px);
  object-fit: contain;
  padding: clamp(20px, 3vw, 48px);
}

/* Big intro headline + body */
.v3 .v3cs-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 18px;
}
.v3 .v3cs-h2 {
  font-family: var(--font-display);
  margin: 0 0 22px;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.v3 .v3cs-h3 {
  font-family: var(--font-display);
  margin: 0 0 14px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.v3 .v3cs-body { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; opacity: 0.82; max-width: 70ch; }
.v3 .v3cs-body + .v3cs-body { margin-top: 20px; }
.v3 .v3cs-body strong { font-weight: 600; opacity: 1; }

/* Two-column split: copy left, metrics right */
.v3 .v3cs-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.v3 .v3cs-split .v3cs-metrics { margin-top: 0; }
.v3 .v3cs-split .v3cs-figure--stage img {
  height: clamp(420px, 48vw, 600px);
  object-fit: contain;
  padding: clamp(20px, 3vw, 44px);
}

/* Metrics as a hairline row (not boxed) */
.v3 .v3cs-metrics { margin-top: 56px; border-bottom: 1px solid rgba(0, 0, 0, 0.13); }
.v3 .v3cs-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.13);
}
.v3 .v3cs-metric__val {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.v3 .v3cs-metric__label { text-align: right; max-width: 34ch; font-size: 15px; line-height: 1.4; opacity: 0.6; }

/* Pull quote — massive statement moment */
.v3 .v3cs-quote {
  font-family: var(--font-display);
  margin: clamp(48px, 8vw, 96px) 0;
  max-width: 20ch;
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}
/* Step down for longer, sentence-length quotes */
.v3 .v3cs-quote--lede { max-width: 26ch; font-size: clamp(34px, 5vw, 72px); line-height: 1.08; }

/* Scope list (two columns) */
.v3 .v3cs-scope { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.v3 .v3cs-scope ul { list-style: none; margin: 12px 0 0; padding: 0; }
.v3 .v3cs-scope li { padding: 13px 0; border-top: 1px solid rgba(0, 0, 0, 0.12); font-size: 16px; line-height: 1.45; }

/* Definition-style list */
.v3 .v3cs-deflist { margin: 0; }
.v3 .v3cs-deflist__item { padding: 22px 0; border-top: 1px solid rgba(0, 0, 0, 0.12); }
.v3 .v3cs-deflist__item:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
.v3 .v3cs-deflist dt { font-weight: 600; font-size: 18px; margin-bottom: 6px; }
.v3 .v3cs-deflist dd { margin: 0; font-size: 16px; line-height: 1.55; opacity: 0.82; }

/* Feature blocks (3-up) — bordered cards */
.v3 .v3cs-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 28px); }
.v3 .v3cs-feature {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 28px 32px;
}
.v3 .v3-dark .v3cs-feature { border-color: rgba(255, 255, 255, 0.16); }
.v3 .v3cs-feature h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.v3 .v3cs-feature p { font-size: 15.5px; line-height: 1.55; opacity: 0.72; margin: 0; }
/* Optional icon inside a feature card (e.g. validation cards) */
.v3 .v3cs-feature svg { display: block; width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }

/* Plain image grid (no stage panel), with optional captions */
.v3 .v3cs-imgrid { display: grid; gap: clamp(16px, 2.5vw, 32px); margin-top: clamp(24px, 3vw, 40px); }
.v3 .v3cs-imgrid--2 { grid-template-columns: repeat(2, 1fr); }
.v3 .v3cs-imgrid--3 { grid-template-columns: repeat(3, 1fr); }
.v3 .v3cs-imgrid figure { margin: 0; }
.v3 .v3cs-imgrid figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

/* Pipeline stepper — connected number cards */
.v3 .v3cs-stepper {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 2.4vw, 34px);
  margin-top: clamp(52px, 6vw, 72px);
}
.v3 .v3cs-step {
  flex: 1;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 22px 26px;
  background: var(--paper);
  text-align: center;
}
/* Hairline connector sitting in the gap, aligned to the badge row */
.v3 .v3cs-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: calc(-1 * clamp(20px, 2.4vw, 34px) - 1px);
  width: clamp(20px, 2.4vw, 34px);
  height: 1px;
  background: var(--line);
}
.v3 .v3cs-step__num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(14, 14, 14, 0.18);
}
.v3 .v3cs-step__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 6px 0 8px;
}
.v3 .v3cs-step__desc { font-size: 14.5px; line-height: 1.5; opacity: 0.7; margin: 0; }
.v3 .v3cs-step__scope {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Highlighted stage (Capture / UX scope) */
.v3 .v3cs-step--active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 45%, transparent);
}
.v3 .v3cs-step--active .v3cs-step__num {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: var(--accent);
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* Related projects */
.v3 .v3cs-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.v3 .v3cs-relcard { text-decoration: none; color: inherit; }
.v3 .v3cs-relcard__frame {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 11;
  background-color: #f1f1f1;
}
.v3 .v3cs-relcard__img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.v3 .v3cs-relcard:hover .v3cs-relcard__img { transform: scale(1.06); }
.v3 .v3cs-relcard__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 16px 0 0;
  transition: opacity 0.2s ease;
}
.v3 .v3cs-relcard:hover .v3cs-relcard__title { opacity: 0.55; }

@media (max-width: 768px) {
  .v3 .v3cs-hero { padding: 120px 0 44px; }
  .v3 .v3cs-meta { grid-template-columns: 1fr 1fr; gap: 22px; }
  .v3 .v3cs-split,
  .v3 .v3cs-scope,
  .v3 .v3cs-features,
  .v3 .v3cs-related,
  .v3 .v3cs-stagegrid,
  .v3 .v3cs-imgrid,
  .v3 .v3cs-figrow { grid-template-columns: 1fr; }
  .v3 .v3cs-split .v3cs-metrics { margin-top: 40px; }
  .v3 .v3cs-stepper { flex-direction: column; gap: clamp(28px, 7vw, 40px); }
  .v3 .v3cs-step:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 50%;
    bottom: calc(-1 * clamp(28px, 7vw, 40px) - 1px);
    width: 1px;
    height: clamp(28px, 7vw, 40px);
    transform: translateX(-50%);
  }
}
