/* ─── Apple-style v2 Overrides ──────────────────────────────────── */
/* All rules scoped under .v2 so they never leak into other pages.   */
/* Inherits tokens, reset, and components from style.css.            */

/* ─── Token overrides ───────────────────────────────────────────── */
/* Swap the orange accent for the purple/pink gradient used on       */
/* the hero role line. Every var(--accent) usage picks this up.      */
.v2 {
  --accent: #4a1d6e;
  --accent-dark: #2f0f4a;
  --accent-gradient: linear-gradient(90deg, #4a1d6e 0%, #c2185b 100%);
  --accent-gradient-hover: linear-gradient(90deg, #3a1558 0%, #a01148 100%);
}

/* ─── Nav ───────────────────────────────────────────────────────── */
.v2 .nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.v2 .nav__inner { height: 52px; }
.v2 .nav__logo {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.v2 .nav__links { gap: 24px; }
.v2 .nav__links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  transition: color 0.2s ease;
}
.v2 .nav__links a::after { display: none; }
.v2 .nav__links a:hover,
.v2 .nav__links a.active { color: var(--accent); }

/* ─── Hero ──────────────────────────────────────────────────────── */
.v2 .hero {
  background: #fff;
  background-attachment: initial;
  padding: clamp(72px, 12vw, 160px) 0 clamp(72px, 10vw, 140px);
}
.v2 .hero__eyebrow { display: none; }
.v2 .hero__name {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 7.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #000;
  margin-bottom: 0.2em;
  max-width: none;
}
.v2 .hero__role--gradient {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(90deg, #4a1d6e 0%, #c2185b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.v2 .hero__employers {
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.v2 .hero__subtitle {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 56px;
}

/* ─── Sections ──────────────────────────────────────────────────── */
.v2 .section { padding: clamp(72px, 10vw, 140px) 0; }
.v2 .section--alt { background: #fafafa; }

/* Heading typography, Apple-like: tight Inter, no Playfair */
.v2 h1,
.v2 h2 { font-family: var(--font); }
.v2 h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.v2 h3 { font-weight: 600; letter-spacing: -0.01em; }

/* ─── About ─────────────────────────────────────────────────────── */
.v2 .about__label { color: var(--accent); }
.v2 .about__body {
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 680px;
}
.v2 .about__metrics { gap: 40px; }
.v2 .stat__num {
  font-family: var(--font);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.v2 .stat__label {
  font-size: 0.82rem;
  margin-top: 10px;
  max-width: 180px;
}

/* ─── Case Studies (Apple Store-style carousel) ────────────────── */
.v2 .project-card {
  border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  height: 640px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.v2 .project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 16px 40px rgba(0,0,0,0.08);
}
.v2 .project-card__img {
  height: 220px;
  flex-shrink: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.v2 .project-card:hover .project-card__img { transform: scale(1.06); }
.v2 .project-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v2 .project-card h3 { margin-bottom: 0; }
.v2 .project-card p { margin-bottom: 0; }
.v2 .project-card__link { margin-top: auto; }
.v2 .project-card__status {
  display: inline-block;
  padding: 4px 10px;
  margin-left: 4px;
  border-radius: 980px;
  background: rgba(74, 29, 110, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ─── Peek carousel (scroll-driven, edge-to-edge) ───────────────── */
.v2 #case-studies { overflow: hidden; }
.v2 .peek-carousel {
  /* Break out of .container to span full viewport width */
  margin-left: calc(-50vw + 50%);
  width: 100vw;
}
.v2 .peek-carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Left padding aligns first card with the container */
  padding-left: max(calc((100vw - var(--max-width)) / 2), 24px);
  padding-right: 20px;
  padding-bottom: 8px;
}
.v2 .peek-carousel__track::-webkit-scrollbar { display: none; }
.v2 .peek-carousel__slide {
  min-width: 340px;
  max-width: 380px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.v2 .peek-carousel__progress {
  margin-top: 24px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-left: max(calc((100vw - var(--max-width)) / 2), 24px);
  margin-right: max(calc((100vw - var(--max-width)) / 2), 24px);
}
.v2 .peek-carousel__progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.1s ease-out;
}

/* ─── Accent Strip (softer, lighter) ───────────────────────────── */
.v2 .accent-strip {
  background: #fafafa;
  background-attachment: initial;
  padding: clamp(72px, 9vw, 120px) 0;
}
.v2 .accent-strip__quote {
  color: var(--text);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 960px;
}
/* ─── What I Do (centered, airier) ─────────────────────────────── */
.v2 .services__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.v2 .services__header p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-top: 20px;
}
.v2 .service-card {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  padding: 40px 28px;
}
.v2 .service-card ul { text-align: left; max-width: 260px; margin-left: auto; margin-right: auto; }
.v2 .service-card h3 { color: var(--accent); }
.v2 .service-card p strong { color: var(--text); }

/* ─── CTA Strip (rounded feature tile) ─────────────────────────── */
.v2 .cta-strip {
  background: #fff;
  color: var(--text);
  padding: clamp(56px, 8vw, 100px) 0;
}
.v2 .cta-strip::before { display: none; }
.v2 .cta-strip > .container {
  background: #f5f5f7;
  border-radius: 28px;
  padding: clamp(64px, 10vw, 120px) clamp(32px, 6vw, 80px);
}
.v2 .cta-strip__eyebrow { color: var(--accent); }
.v2 .cta-strip__heading {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 700;
}
.v2 .cta-strip__body {
  color: var(--text-muted);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

/* ─── Buttons (slightly rounder, Apple-like) ───────────────────── */
.v2 .btn { border-radius: 980px; padding: 16px 32px; }
.v2 .btn--primary {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}
.v2 .btn--primary:hover {
  background: var(--accent-gradient-hover);
  border-color: transparent;
}

/* ─── Footer (Apple-light) ─────────────────────────────────────── */
.v2 .footer {
  background: #f5f5f7;
  color: var(--text);
}
.v2 .footer__brand { color: var(--text); }
.v2 .footer__tagline,
.v2 .footer__links a,
.v2 .footer__vibecode { color: var(--text-muted); }
.v2 .footer__links a:hover,
.v2 .footer__vibecode a:hover { color: var(--accent); }
.v2 .footer__bottom { border-top-color: rgba(0,0,0,0.08); }
.v2 .footer__links a::after { display: none; }
.v2 a:hover { text-decoration: none; }

/* ─── Case Study pages ─────────────────────────────────────────── */
.v2 .case-hero {
  padding: clamp(120px, 16vw, 200px) 0 clamp(80px, 10vw, 140px);
  min-height: 0;
  align-items: flex-end;
  background-attachment: initial;
}
.v2 .case-hero--sky {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url(../img/sky-live-watch-together-hero.jpg) center/cover no-repeat;
}
.v2 .case-hero--menu {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url(../img/qam-rectangle.png) bottom/cover no-repeat;
}
.v2 .case-hero--interoute {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url(../img/interoute-hero.jpg) center/cover no-repeat;
}
.v2 .case-hero--foodies {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(../img/foodies.jpg) center/cover no-repeat;
}
.v2 .case-hero--ethics {
  background: linear-gradient(rgba(10,22,40,0.55), rgba(10,22,40,0.55)), url(../img/ethics.png) center/cover no-repeat;
}
.v2 .case-hero--game {
  background: linear-gradient(rgba(15,10,30,0.55), rgba(15,10,30,0.55)), url(../img/nex-image.png) center/cover no-repeat;
}
.v2 .case-hero--playalong {
  background: linear-gradient(rgba(15,23,42,0.55), rgba(15,23,42,0.55)), url(../img/play-along-hero.png) center/cover no-repeat;
}
.v2 .case-hero--ullr {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.v2 .case-hero--vibecode {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b3d 50%, #3d2b1a 100%);
}
.v2 .case-hero__tag {
  background: rgba(255,255,255,0.12);
  border: none;
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 6px 14px;
  border-radius: 980px;
  margin-bottom: 24px;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.v2 .case-hero h1 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 20px;
  max-width: 900px;
}
.v2 .case-hero__tagline {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin-bottom: 56px;
}
.v2 .case-hero__meta { gap: 56px; }
.v2 .meta__label {
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.v2 .meta__val { color: #fff; font-weight: 500; }

/* Section rhythm: lighter dividers, bigger Apple-tight h2 */
.v2 .case-section {
  padding: clamp(72px, 10vw, 140px) 0;
  border-bottom: none;
}
.v2 .case-section.section--alt { background: #fafafa; }
.v2 .case-section__label {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 16px;
}
.v2 .case-section h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 900px;
}
.v2 .case-section h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.v2 .case-section p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 720px;
}

/* Metrics: borderless, Apple-numeric */
.v2 .case-metrics {
  border: none;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  padding: 8px 0;
}
.v2 .case-section.section--alt .case-metrics { background: #fff; }
.v2 .case-metric {
  padding: 28px 24px;
  border-right: 1px solid rgba(0,0,0,0.06);
}
.v2 .case-metric:last-child { border-right: none; }
.v2 .case-metric__val {
  font-family: var(--font);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v2 .case-metric__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.4;
}

/* Insight cards: rounded Apple-grey tiles, no border */
.v2 .insight-card {
  background: #f5f5f7;
  border: none;
  border-radius: 22px;
  padding: 32px;
}
.v2 .case-section.section--alt .insight-card { background: #fff; }
.v2 .insight-card h4 {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
}
.v2 .insight-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.v2 .insight-card ul li::before { color: var(--accent); }

/* Pull quote, editorial Apple style */
.v2 .case-pullquote {
  font-family: var(--font);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-style: normal;
  color: var(--text);
  border-left: none;
  padding-left: 0;
  margin: 48px 0;
  max-width: 880px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Embeds, images, video: rounded, no hairline */
.v2 .case-embed {
  margin-top: 24px;
  border-radius: 22px;
  overflow: hidden;
  border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}
.v2 .case-img { border-radius: 22px; margin-top: 48px; }
.v2 .case-video {
  width: 100%;
  border-radius: 22px;
  margin-top: 32px;
  display: block;
}

/* TOC stays, but quieter */
.v2 .case-toc { top: 53px; background: rgba(255,255,255,0.92); }
.v2 .case-toc__link { color: var(--text-muted); }
.v2 .case-toc__link:hover,
.v2 .case-toc__link.active { color: var(--accent); }

/* ─── Reflection list ───────────────────────────────────────────── */
.v2 .reflection-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .v2 .hero { padding: 56px 0 56px; }
  .v2 .hero__eyebrow { margin-bottom: 20px; }
  .v2 .hero__role--gradient { margin-bottom: 28px; }
  .v2 .hero__subtitle { margin-bottom: 36px; }
  .v2 .section { padding: 56px 0; }
  .v2 .accent-strip { padding: 56px 0; }
  .v2 .cta-strip { padding: 64px 0; }
  .v2 .services__header { margin-bottom: 40px; }
  /* Mobile: stack cards vertically as compact rows */
  .v2 .peek-carousel__track { flex-direction: column; gap: 12px; overflow: visible; scroll-snap-type: none; }
  .v2 .peek-carousel__slide { min-width: 100%; max-width: 100%; }
  .v2 .peek-carousel__progress { display: none; }
  .v2 .project-card { display: flex; flex-direction: row; height: auto; border-radius: 16px; overflow: hidden; }
  .v2 .project-card__img { width: 100px; min-width: 100px; height: auto; min-height: 100px; border-radius: 0; }
  .v2 .project-card__body { padding: 16px; display: flex; flex-direction: column; justify-content: center; }
  .v2 .project-card p { display: none; }
  .v2 .project-card__metrics { display: none; }
  .v2 .project-card .tag { display: none; }
  .v2 .project-card__status { display: none; }

  .v2 .case-hero { padding: 88px 0 56px; }
  .v2 .case-hero__meta { gap: 28px; }
  .v2 .case-hero__tagline { margin-bottom: 36px; }
  .v2 .case-section { padding: 56px 0; }
  .v2 .case-metrics { grid-template-columns: 1fr; }
  .v2 .case-metric { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .v2 .case-metric:last-child { border-bottom: none; }
  .v2 .insight-card { padding: 24px; }
  .v2 .reflection-list { grid-template-columns: 1fr; }
}

/* Tablet: slightly narrower cards */
@media (min-width: 769px) and (max-width: 1024px) {
  .v2 .peek-carousel__slide { min-width: 300px; max-width: 340px; }
}

