@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --v2-ink: #071a24;
  --v2-ink-2: #0d2834;
  --v2-ink-3: #173947;
  --v2-text: #253940;
  --v2-muted: #66777c;
  --v2-bg: #f2f6f3;
  --v2-surface: #ffffff;
  --v2-surface-soft: #e9f1ed;
  --v2-line: #d8e3dd;
  --v2-green: #2fd18f;
  --v2-green-deep: #16a96f;
  --v2-lime: #b9eb5b;
  --v2-gold: #d9aa58;
  --v2-orange: #ff865f;
  --v2-shadow: 0 24px 70px rgba(7, 26, 36, .11);
  --v2-shadow-soft: 0 14px 38px rgba(7, 26, 36, .08);
  --v2-radius-xl: 36px;
  --v2-radius-lg: 28px;
  --v2-radius-md: 20px;
  --v2-max: 1440px;
}

html { scroll-padding-top: 102px; }
body.version-two,
body[data-page="case"] {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--v2-text);
  background:
    radial-gradient(circle at 12% 6%, rgba(47,209,143,.09), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(217,170,88,.10), transparent 24%),
    var(--v2-bg);
  line-height: 1.7;
}
body.version-two h1,
body.version-two h2,
body.version-two h3,
body[data-page="case"] h1,
body[data-page="case"] h2,
body[data-page="case"] h3,
body[data-page="case"] strong,
body.version-two strong {
  font-family: 'Sora', Arial, sans-serif;
}
.page-shell { width: min(calc(100% - 40px), var(--v2-max)); }

/* Header */
.site-header.v2-header,
body[data-page="case"] .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(242, 246, 243, .88);
  border-bottom: 1px solid rgba(7,26,36,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--v2-max));
  min-height: 88px;
}
.brand { gap: 12px; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--v2-ink), var(--v2-ink-3));
  color: var(--v2-green);
  box-shadow: 0 12px 28px rgba(7,26,36,.18);
  position: relative;
  overflow: hidden;
}
.brand-mark::after { display: none; }
.brand-mark img { border-radius: inherit; }
.brand-mark span { position: relative; z-index: 1; }
.brand-copy { gap: 2px; }
.brand-copy strong { font-size: 15px; color: var(--v2-ink); letter-spacing: -.03em; }
.brand-copy small { color: var(--v2-muted); font-size: 9px; letter-spacing: .16em; margin: 0; }
.main-nav { gap: 28px; }
.main-nav a {
  font-size: 13px;
  color: var(--v2-text);
  font-weight: 700;
}
.main-nav a::after { background: var(--v2-green-deep); bottom: -9px; }
.header-actions { gap: 12px; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 17px;
  border-radius: 999px;
  background: var(--v2-ink);
  color: white;
  font-size: 12px;
  font-weight: 800;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.header-cta:hover { transform: translateY(-2px); background: var(--v2-green); color: var(--v2-ink); }
.menu-toggle {
  background: white;
  border-color: var(--v2-line);
  border-radius: 50%;
}

/* Shared buttons */
.btn {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: -.01em;
  font-weight: 800;
  box-shadow: none;
}
.btn-primary {
  background: var(--v2-green);
  color: var(--v2-ink);
  box-shadow: 0 16px 34px rgba(47,209,143,.24);
}
.btn-primary:hover { background: var(--v2-lime); }
.btn-secondary {
  background: rgba(255,255,255,.08);
  color: white;
  border-color: rgba(255,255,255,.28);
}
.btn-dark { background: var(--v2-ink); color: white; }
.btn-light { background: white; color: var(--v2-ink); border-color: var(--v2-line); }
.btn-dark:hover,
.btn-light:hover { background: var(--v2-green); color: var(--v2-ink); border-color: var(--v2-green); }

/* Home hero */
.v2-hero { padding: 40px 0 30px; }
.v2-hero-grid {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
  gap: 18px;
}
.v2-hero-copy,
.v2-hero-visual {
  border-radius: var(--v2-radius-xl);
  overflow: hidden;
  box-shadow: var(--v2-shadow);
}
.v2-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 88px);
  color: white;
  background:
    radial-gradient(circle at 90% 12%, rgba(47,209,143,.22), transparent 30%),
    linear-gradient(145deg, var(--v2-ink) 0%, #102f3d 68%, #153f4d 100%);
  position: relative;
}
.v2-hero-copy::after {
  content: '';
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  right: -190px;
  bottom: -190px;
}
.v2-hero-copy > * { position: relative; z-index: 1; }
.v2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--v2-green-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.v2-hero-copy .v2-kicker { color: var(--v2-lime); }
.v2-kicker::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.v2-hero-copy h1 {
  margin: 26px 0 0;
  max-width: 830px;
  color: white;
  font-size: clamp(44px, 5.7vw, 86px);
  line-height: .97;
  letter-spacing: -.065em;
}
.v2-hero-copy h1 em { color: var(--v2-green); font-style: normal; }
.v2-hero-copy > p {
  max-width: 710px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.74);
  font-size: 18px;
}
.v2-hero-copy .hero-actions { margin-top: 34px; }
.v2-hero-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.13);
}
.v2-hero-proof span { color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.5; }
.v2-hero-proof strong { display: block; color: white; font-size: 22px; margin-bottom: 4px; }
.v2-hero-visual {
  min-height: 690px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(47,209,143,.14), transparent 38%),
    #dce9e3;
}
.v2-hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(7,26,36,.14) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .35;
}
.v2-visual-card {
  position: absolute;
  overflow: hidden;
  border-radius: 24px;
  border: 7px solid rgba(255,255,255,.82);
  box-shadow: 0 24px 60px rgba(7,26,36,.18);
  background: white;
}
.v2-visual-card img { width: 100%; height: 100%; object-fit: cover; }
.v2-visual-main { inset: 10% 7% 28% 10%; transform: rotate(-2deg); }
.v2-visual-small { width: 43%; height: 28%; }
.v2-visual-one { right: 7%; bottom: 8%; transform: rotate(4deg); }
.v2-visual-two { left: 7%; bottom: 6%; transform: rotate(-5deg); }
.v2-visual-badge {
  position: absolute;
  right: 7%;
  top: 7%;
  z-index: 4;
  width: 134px;
  height: 134px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--v2-lime);
  color: var(--v2-ink);
  box-shadow: 0 18px 42px rgba(7,26,36,.18);
}
.v2-visual-badge strong { font-size: 38px; line-height: 1; }
.v2-visual-badge span { max-width: 92px; margin-top: 6px; font-size: 9px; line-height: 1.35; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }

/* Statistics */
.v2-stats { padding: 0 0 34px; }
.v2-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-radius: 24px;
  overflow: hidden;
  background: var(--v2-surface);
  border: 1px solid var(--v2-line);
  box-shadow: var(--v2-shadow-soft);
}
.v2-stats-grid article { padding: 26px 30px; border-right: 1px solid var(--v2-line); }
.v2-stats-grid article:last-child { border-right: 0; }
.v2-stats-grid strong { display: block; color: var(--v2-ink); font-size: 30px; letter-spacing: -.05em; }
.v2-stats-grid span { display: block; margin-top: 5px; color: var(--v2-muted); font-size: 11px; }

/* Section system */
.v2-section { padding: 90px 0; }
.v2-section-heading { max-width: 940px; }
.v2-section-heading h2 {
  margin: 16px 0 0;
  color: var(--v2-ink);
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.v2-section-heading > p,
.v2-section-heading-split > p {
  margin: 22px 0 0;
  max-width: 690px;
  color: var(--v2-muted);
  font-size: 16px;
}
.v2-section-heading-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .55fr);
  gap: 44px;
  align-items: end;
}
.v2-section-heading-split > p { margin: 0 0 5px; }

/* Process */
.v2-process { position: relative; }
.v2-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 42px;
}
.v2-process-grid article {
  min-height: 238px;
  padding: 28px;
  border-radius: var(--v2-radius-lg);
  background: var(--v2-surface);
  border: 1px solid var(--v2-line);
  box-shadow: var(--v2-shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.v2-process-grid article::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  right: -48px;
  bottom: -48px;
  background: rgba(47,209,143,.12);
}
.v2-process-grid article:hover { transform: translateY(-6px); border-color: rgba(47,209,143,.55); box-shadow: 0 26px 56px rgba(7,26,36,.12); }
.v2-process-grid article > span { color: var(--v2-green-deep); font-family: 'Sora'; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.v2-process-grid h3 { margin: 34px 0 0; color: var(--v2-ink); font-size: 23px; letter-spacing: -.04em; }
.v2-process-grid p { margin: 12px 0 0; color: var(--v2-muted); font-size: 13px; }

/* Work / filters */
.v2-work { background: var(--v2-ink); color: white; }
.v2-work .v2-kicker { color: var(--v2-green); }
.v2-work .v2-section-heading h2 { color: white; }
.v2-work .v2-section-heading p { color: rgba(255,255,255,.62); }
.filter-bar { gap: 8px; margin-top: 36px; }
.filter-btn {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 700;
}
.filter-btn:hover,
.filter-btn.active { background: var(--v2-green); border-color: var(--v2-green); color: var(--v2-ink); }
.v2-projects-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
  margin-top: 28px;
}
.v2-project-card {
  aspect-ratio: auto;
  min-height: 540px;
  border-radius: var(--v2-radius-lg);
  background: white;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,.11);
  transform: none;
  overflow: hidden;
}
.v2-project-card::before,
.v2-project-card::after { display: none; }
.v2-project-card:hover,
.v2-project-card:focus-within { transform: translateY(-8px); box-shadow: 0 24px 55px rgba(0,0,0,.23); }
.v2-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.v2-card-media { height: 260px; overflow: hidden; background: #dfe7e3; }
.v2-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16,1,.3,1), filter .8s ease;
}
.v2-project-card:hover .v2-card-media img { transform: scale(1.055); filter: saturate(1.08); }
.v2-card-content.project-card-content {
  position: relative;
  inset: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  color: var(--v2-text);
  background: white;
}
.v2-card-content::before { display: none; }
.v2-card-index {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #9aaba4;
  font-family: 'Sora';
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.v2-card-content h3 {
  order: 1;
  margin: 0;
  padding-right: 44px;
  color: var(--v2-ink);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
  letter-spacing: -.05em;
}
.v2-card-content p {
  order: 2;
  display: block;
  margin: 14px 0 0;
  color: var(--v2-muted);
  font-size: 12.5px;
  line-height: 1.65;
  -webkit-line-clamp: unset;
}
.v2-card-content .project-card-tags {
  order: 3;
  position: static;
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--v2-line);
  max-width: none;
  width: 100%;
  text-align: left;
  background: transparent;
}
.v2-card-content .project-card-tags span {
  color: var(--v2-green-deep);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .1em;
  white-space: normal;
}
.v2-card-content .project-card-cta {
  order: 4;
  position: static;
  opacity: 1;
  transform: none;
  display: inline-flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--v2-ink);
  font-size: 12px;
  font-weight: 800;
}
.v2-project-card:hover .project-card-cta { color: var(--v2-green-deep); }
.empty-state { border: 1px dashed rgba(255,255,255,.24); color: white; background: rgba(255,255,255,.04); }

/* Capabilities */
.v2-capabilities { background: #e7efeb; }
.v2-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin-top: 42px;
}
.v2-capability-grid article {
  min-height: 300px;
  padding: 34px;
  border-radius: var(--v2-radius-lg);
  background: white;
  border: 1px solid var(--v2-line);
  box-shadow: var(--v2-shadow-soft);
  display: flex;
  flex-direction: column;
}
.v2-capability-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--v2-ink);
  color: var(--v2-green);
  font-family: 'Sora';
  font-size: 11px;
  font-weight: 800;
}
.v2-capability-grid h3 { margin: 32px 0 0; color: var(--v2-ink); font-size: 25px; letter-spacing: -.04em; }
.v2-capability-grid p { margin: 14px 0 0; color: var(--v2-muted); font-size: 14px; }
.v2-capability-grid small { margin-top: auto; padding-top: 28px; color: var(--v2-green-deep); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* CTA and footer */
.v2-cta { padding: 28px 0 90px; background: #e7efeb; }
.v2-cta-card {
  min-height: 360px;
  padding: clamp(38px, 6vw, 82px);
  border-radius: var(--v2-radius-xl);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  background:
    radial-gradient(circle at 90% 12%, rgba(185,235,91,.16), transparent 28%),
    var(--v2-ink);
  color: white;
  overflow: hidden;
  box-shadow: var(--v2-shadow);
}
.v2-cta-card .v2-kicker { color: var(--v2-lime); }
.v2-cta-card h2 { margin: 16px 0 0; max-width: 850px; color: white; font-size: clamp(32px, 4.7vw, 64px); line-height: 1.02; letter-spacing: -.055em; }
.site-footer.v2-footer,
body[data-page="case"] .site-footer {
  padding: 44px 0;
  background: #06151d;
  color: white;
}
.v2-footer-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr .7fr;
  gap: 34px;
  align-items: center;
}
.v2-footer-brand .brand-copy strong { color: white; }
.v2-footer-brand .brand-copy small { color: rgba(255,255,255,.45); }
.v2-footer-grid p { margin: 0; color: rgba(255,255,255,.58); font-size: 12px; }
.v2-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.v2-footer-links a { font-size: 11px; font-weight: 800; color: rgba(255,255,255,.76); }
.v2-footer-links a:hover { color: var(--v2-green); }

/* Case study pages */
body[data-page="case"] .lang-switch { display: none; }
body[data-page="case"] .header-actions::before {
  content: 'Case study';
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47,209,143,.12);
  color: var(--v2-green-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
body[data-page="case"] .case-hero { padding: 34px 0 18px; }
body[data-page="case"] .case-breadcrumb {
  color: var(--v2-muted);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
body[data-page="case"] .case-breadcrumb a:hover { color: var(--v2-green-deep); }
body[data-page="case"] .case-hero-card {
  margin-top: 16px;
  border-radius: var(--v2-radius-xl);
  overflow: hidden;
  background: white;
  border: 1px solid var(--v2-line);
  box-shadow: var(--v2-shadow);
}
body[data-page="case"] .case-hero-image {
  min-height: 640px;
  position: relative;
  background: var(--v2-ink);
}
body[data-page="case"] .case-hero-image > img { width: 100%; height: 100%; min-height: 640px; object-fit: cover; }
body[data-page="case"] .case-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,16,23,.94) 0%, rgba(4,16,23,.74) 46%, rgba(4,16,23,.15) 82%);
}
body[data-page="case"] .case-hero-copy {
  left: clamp(30px, 6vw, 88px);
  right: auto;
  bottom: clamp(32px, 6vw, 78px);
  max-width: 760px;
  z-index: 2;
}
body[data-page="case"] .case-hero-copy .eyebrow {
  color: var(--v2-lime);
  font-size: 10px;
  letter-spacing: .12em;
}
body[data-page="case"] .case-hero-copy h1 {
  color: white;
  margin: 18px 0 0;
  font-size: clamp(46px, 6vw, 86px);
  line-height: .96;
  letter-spacing: -.065em;
}
body[data-page="case"] .case-hero-copy p { max-width: 680px; color: rgba(255,255,255,.72); font-size: 16px; }
body[data-page="case"] .case-meta-row {
  grid-template-columns: repeat(5, minmax(0,1fr));
  background: white;
  border-top: 0;
}
body[data-page="case"] .case-meta { padding: 25px 22px; border-right: 1px solid var(--v2-line); }
body[data-page="case"] .case-meta:last-child { border-right: 0; }
body[data-page="case"] .case-meta span { color: var(--v2-green-deep); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
body[data-page="case"] .case-meta strong { display: block; margin-top: 8px; color: var(--v2-ink); font-family: 'Inter'; font-size: 11px; line-height: 1.5; }
body[data-page="case"] .case-layout {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: 28px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 80px;
}
body[data-page="case"] .case-nav {
  top: 112px;
  padding: 24px;
  border-radius: 22px;
  background: var(--v2-ink);
  border: 0;
  box-shadow: var(--v2-shadow-soft);
}
body[data-page="case"] .case-nav strong { color: white; font-size: 11px; letter-spacing: .06em; }
body[data-page="case"] .case-nav a {
  padding: 9px 0 9px 18px;
  color: rgba(255,255,255,.58);
  border: 0;
  font-size: 10px;
  line-height: 1.35;
}
body[data-page="case"] .case-nav a::before { width: 6px; height: 6px; left: 0; background: rgba(255,255,255,.24); box-shadow: none; }
body[data-page="case"] .case-nav a:hover { color: white; background: transparent; }
body[data-page="case"] .case-nav a.active { color: var(--v2-lime); background: transparent; }
body[data-page="case"] .case-nav a.active::before { background: var(--v2-green); box-shadow: 0 0 14px rgba(47,209,143,.8); }
body[data-page="case"] .case-main { display: grid; gap: 20px; }
body[data-page="case"] .case-section {
  margin: 0;
  padding: clamp(34px, 5vw, 64px);
  border-radius: var(--v2-radius-lg);
  background: white;
  border: 1px solid var(--v2-line);
  box-shadow: var(--v2-shadow-soft);
  scroll-margin-top: 112px;
}
body[data-page="case"] .case-section .eyebrow {
  color: var(--v2-green-deep);
  font-size: 9px;
  letter-spacing: .15em;
}
body[data-page="case"] .case-section .eyebrow::before { width: 24px; background: currentColor; }
body[data-page="case"] .case-section h2 {
  margin: 18px 0 0;
  max-width: 1020px;
  color: var(--v2-ink);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
body[data-page="case"] .case-section p { color: var(--v2-muted); font-size: 14px; }
body[data-page="case"] .case-section p.lead { color: var(--v2-text); font-size: 18px; line-height: 1.65; }
body[data-page="case"] .diagram {
  margin-top: 32px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--v2-line);
  background: var(--v2-surface-soft);
  box-shadow: 0 16px 36px rgba(7,26,36,.08);
}
body[data-page="case"] .diagram img { width: 100%; height: auto; }
body[data-page="case"] .fact-grid,
body[data-page="case"] .outcome-grid,
body[data-page="case"] .decision-grid,
body[data-page="case"] .responsibility-grid,
body[data-page="case"] .stack-grid,
body[data-page="case"] .diagnostic-grid {
  gap: 14px;
  margin-top: 28px;
}
body[data-page="case"] .fact-card,
body[data-page="case"] .outcome,
body[data-page="case"] .decision,
body[data-page="case"] .responsibility,
body[data-page="case"] .stack-item,
body[data-page="case"] .diagnostic-grid > * {
  border-radius: 20px;
  background: var(--v2-surface-soft);
  border: 1px solid var(--v2-line);
  box-shadow: none;
}
body[data-page="case"] .fact-card span,
body[data-page="case"] .decision .index,
body[data-page="case"] .stack-item strong { color: var(--v2-green-deep); }
body[data-page="case"] .fact-card strong,
body[data-page="case"] .outcome strong,
body[data-page="case"] .decision h3,
body[data-page="case"] .responsibility strong { color: var(--v2-ink); }
body[data-page="case"] .callout {
  margin-top: 28px;
  border-radius: 22px;
  background: var(--v2-ink);
  color: white;
  border: 0;
}
body[data-page="case"] .callout strong { color: var(--v2-lime); }
body[data-page="case"] .callout p { color: rgba(255,255,255,.68); }
body[data-page="case"] .video-embed { border-radius: 22px; overflow: hidden; border: 1px solid var(--v2-line); }

/* Gallery */
body[data-page="case"] .gallery-section { background: var(--v2-ink); color: white; }
body[data-page="case"] .gallery-section h2 { color: white; }
body[data-page="case"] .gallery-section > p { color: rgba(255,255,255,.62); }
body[data-page="case"] .full-gallery { margin-top: 28px; }
body[data-page="case"] .full-gallery-layout { gap: 18px; }
body[data-page="case"] .full-gallery-stage,
body[data-page="case"] .full-gallery-meta,
body[data-page="case"] .gallery-thumb {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
body[data-page="case"] .full-gallery-stage { border-radius: 24px; }
body[data-page="case"] .full-gallery-meta { border-radius: 24px; }
body[data-page="case"] .full-gallery-label { color: var(--v2-green); }
body[data-page="case"] .full-gallery-counter { color: rgba(255,255,255,.45); }
body[data-page="case"] .full-gallery-copy strong { color: white; }
body[data-page="case"] .full-gallery-copy p { color: rgba(255,255,255,.62); }
body[data-page="case"] .full-gallery-accent { background: var(--v2-green); }
body[data-page="case"] .gallery-thumb.active { border-color: var(--v2-green); box-shadow: 0 0 0 2px rgba(47,209,143,.2); }
body[data-page="case"] .gallery-stage-nav circle { stroke: #d4d4d4; stroke-width: .7; }
body[data-page="case"] .gallery-stage-nav path { stroke: var(--v2-ink); }

/* Case footer */
body[data-page="case"] .site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(260px,.5fr);
  gap: 34px;
  align-items: end;
}
body[data-page="case"] .site-footer h2 { color: white; font-size: clamp(26px, 4vw, 46px); line-height: 1.05; letter-spacing: -.05em; }
body[data-page="case"] .footer-meta { color: rgba(255,255,255,.52); }
body[data-page="case"] .footer-meta a { color: var(--v2-green); }

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .v2-project-card,
  .v2-card-media img { transition: none; }
}

/* Responsive */
@media (max-width: 1120px) {
  .v2-hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .v2-hero-copy { min-height: 590px; }
  .v2-hero-visual { min-height: 560px; }
  .v2-section-heading-split { grid-template-columns: 1fr; gap: 18px; }
  .v2-section-heading-split > p { margin: 0; }
  .v2-projects-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body[data-page="case"] .case-meta-row { grid-template-columns: repeat(3, minmax(0,1fr)); }
  body[data-page="case"] .case-meta:nth-child(3) { border-right: 0; }
  body[data-page="case"] .case-meta:nth-child(n+4) { border-top: 1px solid var(--v2-line); }
}

@media (max-width: 900px) {
  .header-cta { display: none; }
  .main-nav {
    position: fixed;
    top: 76px;
    left: 20px;
    right: 20px;
    padding: 18px;
    border-radius: 22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    border: 1px solid var(--v2-line);
    box-shadow: var(--v2-shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; }
  .menu-toggle { display: grid; place-items: center; }
  .v2-stats-grid { grid-template-columns: repeat(2,1fr); }
  .v2-stats-grid article:nth-child(2) { border-right: 0; }
  .v2-stats-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--v2-line); }
  .v2-process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .v2-capability-grid { grid-template-columns: 1fr; }
  .v2-cta-card { align-items: flex-start; flex-direction: column; }
  .v2-footer-grid { grid-template-columns: 1fr; }
  .v2-footer-links { justify-content: flex-start; }
  body[data-page="case"] .case-layout { grid-template-columns: 1fr; }
  body[data-page="case"] .case-nav { position: relative; top: auto; display: flex; overflow-x: auto; gap: 8px; padding: 14px; white-space: nowrap; }
  body[data-page="case"] .case-nav strong { display: none; }
  body[data-page="case"] .case-nav a { padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.06); }
  body[data-page="case"] .case-nav a::before { display: none; }
  body[data-page="case"] .case-nav a.active { background: rgba(47,209,143,.16); }
  body[data-page="case"] .case-hero-image,
  body[data-page="case"] .case-hero-image > img { min-height: 560px; }
}

@media (max-width: 680px) {
  .page-shell,
  .header-inner { width: min(calc(100% - 24px), var(--v2-max)); }
  .header-inner { min-height: 74px; }
  .brand-copy small { display: none; }
  .v2-hero { padding-top: 20px; }
  .v2-hero-copy { min-height: 560px; padding: 34px 28px; border-radius: 28px; }
  .v2-hero-copy h1 { font-size: clamp(42px, 14vw, 64px); }
  .v2-hero-copy > p { font-size: 15px; }
  .v2-hero-proof { grid-template-columns: 1fr; }
  .v2-hero-visual { min-height: 430px; border-radius: 28px; }
  .v2-visual-badge { width: 104px; height: 104px; }
  .v2-visual-badge strong { font-size: 30px; }
  .v2-stats-grid { grid-template-columns: 1fr; }
  .v2-stats-grid article { border-right: 0; border-bottom: 1px solid var(--v2-line); }
  .v2-stats-grid article:last-child { border-bottom: 0; }
  .v2-section { padding: 68px 0; }
  .v2-section-heading h2 { font-size: 38px; }
  .v2-process-grid,
  .v2-projects-grid { grid-template-columns: 1fr; }
  .v2-project-card { min-height: 520px; }
  .v2-card-media { height: 250px; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .filter-btn { white-space: nowrap; }
  .v2-cta { padding-bottom: 68px; }
  .v2-cta-card { border-radius: 28px; padding: 34px 28px; }
  body[data-page="case"] .header-actions::before { display: none; }
  body[data-page="case"] .case-hero { padding-top: 20px; }
  body[data-page="case"] .case-hero-card { border-radius: 28px; }
  body[data-page="case"] .case-hero-image,
  body[data-page="case"] .case-hero-image > img { min-height: 540px; }
  body[data-page="case"] .case-hero-image::after { background: linear-gradient(0deg, rgba(4,16,23,.96) 0%, rgba(4,16,23,.72) 64%, rgba(4,16,23,.14) 100%); }
  body[data-page="case"] .case-hero-copy { left: 24px; right: 24px; bottom: 26px; }
  body[data-page="case"] .case-hero-copy h1 { font-size: 46px; }
  body[data-page="case"] .case-hero-copy p { font-size: 13px; }
  body[data-page="case"] .case-meta-row { grid-template-columns: 1fr; }
  body[data-page="case"] .case-meta { border-right: 0; border-top: 1px solid var(--v2-line); }
  body[data-page="case"] .case-section { padding: 32px 24px; border-radius: 24px; }
  body[data-page="case"] .case-section h2 { font-size: 34px; }
  body[data-page="case"] .case-section p.lead { font-size: 16px; }
  body[data-page="case"] .site-footer .footer-grid { grid-template-columns: 1fr; }
}
