/* ════════════════════════════════════════════════════════════
   SMITHIN MS — SENIOR PRODUCT DESIGNER
   Consolidated stylesheet — homepage + all case studies
   Sections: 1) Tokens · 2) Base · 3) Nav · 4) Homepage
   5) Case-study base · 6) Process spine · 7) Footer
   8) Animations · 9) Utilities · 10) CS Hero variants
   ─ v2.0 — European senior designer aesthetic refinement ─
═════════════════════════════════════════════════════════════ */


/* ───── 1. RESET & TOKENS ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core neutrals — warm ink palette */
  --ink:        #0D0B09;
  --ink-2:      #38322C;
  --ink-3:      #5C5650;
  --bark:       #3A2C1E;
  --bark-2:     #1C1814;
  --cream:      #F8F4EF;
  --warm-white: #FDFAF6;
  --paper:      #F6F3ED;
  --paper-2:    #EDE8DF;
  --white:      #FDFCFA;
  --divider:    #DAD4CC;
  --divider-2:  #E4D8C8;
  --text:       #291E13;
  --muted:      #7A6A58;

  /* Accents */
  --accent:     #C54316;   /* primary clay — slightly deeper for contrast */
  --accent-2:   #E8D4C2;
  --clay:       #B3501A;
  --sand:       #D3BA96;
  --moss:       #38583A;
  --gold:       #B8860B;
  --teal:       #1A586A;
  --teal-light: #E8F1F4;
  --de-blue:    #1C388A;   /* German-market trust blue */
  --de-blue-lt: #EAF0FB;

  /* Type stacks */
  --serif:   'Instrument Serif', 'Lora', Georgia, serif;
  --serif-2: 'Lora', Georgia, serif;
  --sans:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs: 8px;
  --space-s:  16px;
  --space-m:  24px;
  --space-l:  40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Motion */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ───── 2. BASE ─────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* Scrollbar — thin, branded */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}


/* ───── 3. NAV (shared) ─────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px;
  height: 62px;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition),
              box-shadow var(--transition);
}
.site-nav.scrolled {
  border-bottom-color: var(--divider);
  box-shadow: 0 1px 0 rgba(15, 13, 10, 0.04);
}

.site-nav .nav-logo {
  font-family: var(--serif-2);
  font-weight: 600;
  font-size: 1rem;
  color: var(--bark);
  letter-spacing: 0.01em;
  line-height: 1;
  transition: opacity var(--transition);
}
.site-nav .nav-logo:hover { opacity: 0.7; }
.site-nav .nav-logo span { color: var(--clay); }

.nav-links {
  display: flex; list-style: none;
  gap: 36px; align-items: center;
}
.nav-links a {
  font-size: 14.5px; font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 1px; background: var(--clay);
  transition: right var(--transition);
}
.nav-links a:hover { color: var(--bark); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--clay); }
.nav-links a.active::after { right: 0; }

.nav-hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  flex-direction: column; gap: 4px;
}
.nav-hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--bark); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed; top: 62px; left: 0; right: 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--divider);
  padding: 16px 28px 20px;
  z-index: 99;
  flex-direction: column; gap: 0;
  box-shadow: 0 8px 24px rgba(15, 13, 10, 0.06);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 14.5px; font-weight: 500;
  color: var(--ink-3);
  padding: 13px 0;
  border-bottom: 1px solid var(--divider);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active, .mobile-menu a:hover { color: var(--clay); }

@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}


/* ───── 4. HOMEPAGE ─────────────────────────────────────── */

/* Hero */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  padding-top: 62px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.028'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}
.hero-left {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 60px 80px 72px;
  background: var(--white);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.hero-eyebrow span {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--ink-3); }

.de-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--de-blue-lt);
  color: var(--de-blue);
  border: 1px solid #C4D2F0;
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  width: fit-content;
}
.de-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.2vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1.0rem; color: var(--ink-2);
  max-width: 460px; line-height: 1.7;
  margin-bottom: 32px; font-weight: 300;
  font-size: 15.5px;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 36px; }
.hero-tag {
  font-size: 11.5px; font-weight: 500;
  color: var(--ink-3);
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: 100px;
  padding: 4px 13px;
  letter-spacing: 0.02em;
}

.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--white);
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  padding: 12px 26px; border-radius: 100px;
  transition: background var(--transition), transform var(--transition),
              box-shadow var(--transition);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(197, 67, 22, 0.28);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  padding: 12px 20px; border-radius: 100px;
  border: 1px solid var(--divider);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); background: var(--paper); }

.hero-eu-note {
  margin-top: 16px;
  font-size: 14px; color: var(--ink-3);
  line-height: 1.55;
}
.hero-eu-note strong { color: var(--ink-2); font-weight: 600; }

.hero-location {
  margin-top: 24px;
  display: flex; align-items: center; gap: 7px;
  font-size: 14.5px; color: var(--ink-3);
}

.hero-right {
  position: relative; z-index: 1;
  background: var(--paper);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 48px; gap: 36px;
}

.hero-photo-wrap { position: relative; width: 255px; }
.hero-photo-wrap::before {
  content: ''; position: absolute;
  inset: -10px -10px 10px 10px;
  border: 1.5px solid var(--divider);
  border-radius: 14px; z-index: 0;
}
.hero-photo {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; border-radius: 10px;
  background: var(--paper-2);
}

.hero-stat-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 10px;
  padding: 11px 15px;
  box-shadow: 0 4px 20px rgba(15, 13, 10, 0.07);
  z-index: 2;
}
.hero-stat-card.card-1 { top: 12px; right: -65px; }
.hero-stat-card.card-2 { bottom: 12px; left: -84px; }
.hero-stat-card .stat-n {
  font-family: var(--serif);
  font-size: 1.45rem; color: var(--accent);
  line-height: 1; display: block;
}
.hero-stat-card .stat-l {
  font-size: 10.5px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 3px;
}

.hero-brands { text-align: center; width: 100%; }
.hero-brands p {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}
.brands-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.brand-pill {
  font-size: 11.5px; font-weight: 500; color: var(--ink-2);
  background: var(--white); border: 1px solid var(--divider);
  border-radius: 100px; padding: 4px 13px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 88px 24px 56px; }
  .hero-right { padding: 48px 24px 56px; }
  .hero-stat-card.card-1 { right: -6px; }
  .hero-stat-card.card-2 { left: -6px; }
}


/* Section base (homepage) */
section.impact-section,
section#case-study,
section.works-section,
section.about-section,
section.testimonials-section,
section.contact-section { padding: var(--space-2xl) 72px; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 26px; height: 1.5px; background: var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  font-weight: 400; line-height: 1.12;
  letter-spacing: -0.024em;
  color: var(--ink); margin-bottom: 14px;
}
.section-title em { font-style: italic; color: var(--accent); }

.section-sub {
  font-size: 15.5px; color: var(--ink-3);
  max-width: 540px; font-weight: 300; line-height: 1.7;
}

@media (max-width: 768px) {
  section.impact-section,
  section#case-study,
  section.works-section,
  section.about-section,
  section.testimonials-section,
  section.contact-section { padding: 64px 20px; }
}


/* Marquee */
.marquee-strip {
  background: var(--ink); padding: 16px 0;
  overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 0;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-size: 14px; font-weight: 400;
  color: var(--accent-2); letter-spacing: 0.04em;
  padding: 0 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.marquee-track span.accent { color: var(--accent); font-weight: 500; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* Impact strip */
.impact-section {
  background: var(--paper);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.impact-item {
  padding: 44px 36px;
  border-right: 1px solid var(--divider);
  transition: background var(--transition);
  position: relative;
}
.impact-item::after {
  content: '';
  position: absolute; bottom: 0; left: 36px; right: 36px;
  height: 0; background: var(--accent);
  transition: height var(--transition);
}
.impact-item:last-child { border-right: none; }
.impact-item:hover { background: var(--paper-2); }
.impact-item:hover::after { height: 2px; }
.impact-num {
  font-family: var(--serif);
  font-size: 2.8rem; color: var(--accent);
  line-height: 1; display: block; margin-bottom: 8px;
}
.impact-label {
  font-size: 16px; color: var(--ink-2);
  line-height: 1.4; font-weight: 400;
}
.impact-sub { font-size: 14.7px; color: var(--ink-3); margin-top: 5px; }

@media (max-width: 768px) {
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .impact-item { padding: 28px 20px; border-bottom: 1px solid var(--divider); }
  .impact-item:nth-child(2n) { border-right: none; }
}


/* Case studies grid (homepage) */
.case-grid { display: flex; flex-direction: column; gap: 0; margin-top: 52px; }

.case-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5px; background: var(--divider);
  border-radius: 12px; overflow: hidden;
  margin-bottom: 20px;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.case-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(15, 13, 10, 0.1);
}
.case-row.reverse { direction: rtl; }
.case-row.reverse > * { direction: ltr; }

.case-content {
  background: var(--white);
  padding: 52px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.case-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.case-title {
  font-family: var(--serif);
  font-size: 1.75rem; font-weight: 400;
  line-height: 1.18; letter-spacing: -0.022em;
  color: var(--ink); margin-bottom: 12px;
}
.case-desc {
  font-size: 14.5px; color: var(--ink-3);
  line-height: 1.7; font-weight: 400;
  margin-bottom: 24px; max-width: 370px;
}
.case-metrics { display: flex; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.case-metric { display: flex; flex-direction: column; gap: 4px; }
.case-metric .m-num {
  font-family: var(--serif); font-size: 1.35rem;
  color: var(--accent); display: block; line-height: 1;
}
.case-metric .m-label {
  font-size: 10px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.09em;
}
.case-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.12em;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px; width: fit-content;
  transition: color var(--transition), border-color var(--transition);
}
.case-link:hover { color: var(--accent); border-color: var(--accent); }

.case-image {
  background: var(--paper-2);
  min-height: 360px;
  position: relative; overflow: hidden;
}
.case-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.case-row:hover .case-image img { transform: scale(1.04); }

@media (max-width: 900px) {
  .case-row, .case-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .case-content { padding: 32px 24px; }
  .case-image { min-height: 200px; }
}


/* Works grid */
.works-section { background: var(--paper); }
.works-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 44px;
}
.work-card {
  background: var(--white);
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--divider);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow),
              border-color var(--transition);
}
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(15, 13, 10, 0.09);
  border-color: var(--divider-2);
}
.work-card-img {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover; background: var(--paper-2);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.work-card:hover .work-card-img { transform: scale(1.05); }
.work-card-body { padding: 18px 20px 22px; }
.work-card-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
}
.work-card-title {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 400;
  color: var(--ink); line-height: 1.28; margin-bottom: 8px;
}
.work-card-desc {
  font-size: 14.5px; color: var(--ink-3);
  line-height: 1.6; font-weight: 400;
}

@media (max-width: 900px) { .works-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .works-grid { grid-template-columns: 1fr; } }
.work-metrics { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 15px; }
.work-metric-num { font-family: var(--serif); font-size: 1.1rem; color: var(--accent); display: block; line-height: 1; }
.work-metric-label { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }

/* About */
.about-section { background: var(--ink); color: var(--white); }
.about-section .section-label { color: var(--accent-2); }
.about-section .section-label::before { background: var(--accent-2); }
.about-section .section-title { color: var(--white); }
.about-section .section-sub { color: rgba(255, 255, 255, 0.55); }

.about-grid {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 80px; align-items: start; margin-top: 56px;
}
.about-photo { width: 100%; border-radius: 12px; background: var(--ink-2); }
.about-text p {
  font-size: 1rem; color: rgba(255, 255, 255, 0.72);
  line-height: 1.75; font-weight: 400;
  margin-bottom: 20px;
}
.about-text strong { color: var(--white); font-weight: 600; }

.about-eu-card {
  margin-top: 24px;
  background: rgba(29, 58, 138, 0.18);
  border: 1px solid rgba(168, 200, 255, 0.32);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex; align-items: flex-start; gap: 14px;
}
.about-eu-card .flag {
  font-size: 22px; line-height: 1; flex-shrink: 0;
}
.about-eu-card-body { font-size: 14.5px; color: rgba(255, 255, 255, 0.82); line-height: 1.6; }
.about-eu-card-body strong { color: #fff; }

.skills-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 32px;
}
.skill-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px; padding: 20px;
}
.skill-block h4 {
  font-size: 15px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-2);
  margin-bottom: 10px;
}
.skill-block p { font-size: 14px; color: rgba(255, 255, 255, 0.62); line-height: 1.6; }

.about-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn-light {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 12px 26px; border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}
.btn-light:hover { background: var(--accent); color: var(--white); }
.btn-outline-light {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.72); font-size: 14px; font-weight: 500;
  padding: 12px 24px; border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color var(--transition), color var(--transition);
}
.btn-outline-light:hover { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 280px; }
  .skills-grid { grid-template-columns: 1fr; }
}


/* Testimonials */
.testimonials-section { background: var(--white); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 44px;
}
.testi-card {
  background: var(--paper);
  border: 1px solid var(--divider);
  border-radius: 10px;
  padding: 26px;
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow),
              transform var(--transition-slow);
}
.testi-card:hover {
  border-color: var(--accent-2);
  box-shadow: 0 8px 28px rgba(197, 67, 22, 0.07);
  transform: translateY(-2px);
}
.testi-quote {
  font-family: var(--serif);
  font-size: 1.8rem; color: var(--accent);
  line-height: 1; margin-bottom: 12px; font-style: italic;
  opacity: 0.7;
}
.testi-text {
  font-size: 14.5px; color: var(--ink-2);
  line-height: 1.7; font-weight: 400; margin-bottom: 20px;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; background: var(--paper-2); flex-shrink: 0;
  border: 1.5px solid var(--divider);
}
.testi-name { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.testi-role { font-size: 12.8px; color: var(--ink-3); margin-top: 2px; }

@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }


/* Contact */
.contact-section {
  background: var(--paper);
  border-top: 1px solid var(--divider);
}
.contact-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.contact-inner .section-label { justify-content: center; }
.contact-inner .section-label::before { display: none; }
.contact-inner .section-title { margin-bottom: 16px; }
.contact-inner .section-sub { margin: 0 auto 40px; }

.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 40px;
}
.contact-item {
  background: var(--white);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 24px 20px;
  transition: border-color var(--transition), transform var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.contact-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.contact-item-label {
  font-size: 12px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.contact-item-val { font-size: 13px; color: var(--ink); font-weight: 500; }

.contact-social { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.social-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--divider);
  border-radius: 100px; padding: 10px 20px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.social-btn:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }

@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-social { flex-direction: column; align-items: center; }
}


/* ───── 5. CASE STUDY BASE ──────────────────────────────── */

/* Header (case studies share this base, hero overrides for Hoppon) */
header.case-header,
body > header:not(.site-header) {
  background: var(--bark);
  color: var(--cream);
  padding: 120px 40px 64px;
  text-align: center;
}
header.case-header.teal { background: var(--teal); }
header .header-label {
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand); margin-bottom: 20px;
}
header.case-header.teal .header-label { color: rgba(255, 255, 255, 0.55); }
header h1 {
  font-family: var(--serif-2);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600; line-height: 1.2;
  max-width: 760px; margin: 0 auto 20px;
  color: var(--cream);
}
header.case-header.teal h1 { color: #fff; }
header p.tagline {
  font-size: 1.05rem; color: var(--sand);
  max-width: 560px; margin: 0 auto 28px;
  font-weight: 300; line-height: 1.6;
}
header.case-header.teal p.tagline { color: rgba(255, 255, 255, 0.65); }

/* 30-second scan card — Sits inside header above meta-bar */
.scan-card {
  max-width: 760px; margin: 0 auto 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: left;
}
.scan-card .scan-cell { padding: 0 16px; border-right: 1px solid rgba(255, 255, 255, 0.1); }
.scan-card .scan-cell:first-child { padding-left: 0; }
.scan-card .scan-cell:last-child { padding-right: 0; border-right: none; }
.scan-card .scan-label {
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}
.scan-card .scan-val {
  font-size: 13px; color: #fff;
  line-height: 1.45; font-weight: 500;
}
.scan-card .scan-val strong { color: var(--sand); font-weight: 600; }
header.case-header.teal .scan-card .scan-val strong { color: var(--teal-light); }
@media (max-width: 720px) {
  .scan-card { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .scan-card .scan-cell { padding: 10px 14px; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .scan-card .scan-cell:nth-last-child(-n+2) { border-bottom: none; }
}

/* Meta bar (Role / Duration / Tools / Team) */
.meta-bar {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 4px;
}
.meta-pill {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px; color: var(--cream);
  display: flex; align-items: center; gap: 6px;
}
.meta-pill span.label {
  color: var(--sand);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em;
}
header.case-header.teal .meta-pill { color: #fff; }
header.case-header.teal .meta-pill span.label { color: rgba(255, 255, 255, 0.55); }

/* EU/DE banner inside case-study header */
.header-de-strip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(168, 200, 255, 0.14);
  border: 1px solid rgba(168, 200, 255, 0.28);
  color: #C9D6F2;
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.header-de-strip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}


/* Results banner */
.results-banner {
  background: var(--cream);
  border-bottom: 1px solid var(--divider-2);
  padding: 48px 40px;
}
.results-banner h2 {
  text-align: center;
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted); margin-bottom: 32px;
}
.stats-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0; max-width: 1000px; margin: 0 auto;
}
.stat-item {
  flex: 1 1 170px; text-align: center;
  padding: 16px 24px;
  border-right: 1px solid var(--divider-2);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif-2);
  font-size: 2.4rem; font-weight: 600;
  color: var(--clay);
  display: block; line-height: 1; margin-bottom: 6px;
}
.stat-desc { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Case-study main column */
main.case-main,
body > main:not(.home-main) {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 40px 96px;
}
main.case-main section,
body > main:not(.home-main) section { margin-bottom: 64px; }
main.case-main section h2,
body > main:not(.home-main) section h2 {
  font-family: var(--serif-2);
  font-size: 1.55rem; font-weight: 600;
  color: var(--bark); margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider-2);
}
main.case-main section h3,
body > main:not(.home-main) section h3 {
  font-size: 1rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--moss); margin: 32px 0 12px;
}
/* main.case-main p,
body > main:not(.home-main) p {
  margin-bottom: 16px; color: var(--text);
  font-size: 16px; line-height: 1.75;
} */
main.case-main p:last-child,
body > main:not(.home-main) p:last-child { margin-bottom: 0; }

/* Callout */
.callout {
  background: var(--cream);
  border-left: 3px solid var(--clay);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 1rem; font-style: italic;
  color: var(--bark);
  font-family: var(--serif-2);
  line-height: 1.6;
}
.callout.teal { border-left-color: var(--teal); background: var(--teal-light); color: var(--teal); }

/* Insight cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin: 24px 0;
}
.insight-card {
  background: var(--cream);
  border: 1px solid var(--divider-2);
  border-radius: 10px;
  padding: 20px;
}
.insight-card .card-icon { font-size: 22px; margin-bottom: 10px; display: block; }
.insight-card strong {
  display: block; font-size: 0.95rem; font-weight: 600;
  color: var(--bark); margin-bottom: 6px;
}
.insight-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

/* Process steps (numbered) */
.process-step {
  display: flex; gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bark);
  color: var(--cream);
  font-family: var(--serif-2);
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.process-step.teal .step-num,
.teal-flow .step-num { background: var(--teal); color: #fff; }
.step-body strong {
  display: block; font-weight: 600; font-size: 1rem;
  margin-bottom: 4px; color: var(--bark);
}
.step-body p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.65; }

/* Persona */
.persona-card {
  background: var(--cream);
  border: 1px solid var(--divider-2);
  border-radius: 12px;
  padding: 28px 28px 24px;
  margin: 24px 0;
}
.persona-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.persona-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bark); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-2);
  font-size: 18px; font-weight: 600; flex-shrink: 0;
}
.persona-grid .persona-card .persona-avatar { background: var(--teal); }
.persona-name { font-weight: 600; font-size: 1rem; color: var(--bark); }
.persona-role { font-size: 13px; color: var(--muted); }
.persona-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.persona-col h4 {
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.persona-col ul { padding-left: 16px; }
.persona-col li { font-size: 14px; color: var(--text); margin-bottom: 6px; line-height: 1.5; }

/* Multi-persona grid (Pandai) */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px; margin: 24px 0;
}
.persona-grid .persona-card { padding: 24px; }
.persona-grid .persona-avatar {
  width: 44px; height: 44px;
  font-size: 15px; margin-bottom: 12px;
}
.persona-grid .persona-card h4 {
  font-size: 0.98rem; font-weight: 600; color: var(--bark);
  margin-bottom: 4px;
}
.persona-grid .persona-card .persona-role {
  font-size: 12px; color: var(--muted); margin-bottom: 14px;
}
.persona-grid .persona-card ul { padding-left: 16px; }
.persona-grid .persona-card li { font-size: 13px; color: var(--text); margin-bottom: 5px; line-height: 1.5; }
.persona-grid .persona-card .pains { margin-top: 12px; }
.persona-grid .persona-card .pains-label {
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--clay);
  margin-bottom: 6px; font-weight: 600;
}

/* Solution items */
.solution-item {
  border-top: 1px solid var(--divider-2);
  padding: 24px 0;
}
.solution-item:first-of-type { border-top: none; }
.solution-label {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay); font-weight: 600;
  margin-bottom: 8px;
}
.solution-item h3 {
  font-size: 1.1rem; font-weight: 600;
  color: var(--bark); margin-bottom: 10px;
  text-transform: none; letter-spacing: 0;
}
.solution-item p { font-size: 16px; color: var(--muted); line-height: 1.7; }

/* Takeaway list */
.takeaway-list { list-style: none; padding: 0; }
.takeaway-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--divider-2);
  font-size: 15px; color: var(--text);
  display: flex; gap: 12px;
  align-items: flex-start;
  line-height: 1.65;
}
.takeaway-list li::before {
  content: '→';
  color: var(--clay); font-weight: 600;
  flex-shrink: 0; margin-top: 1px;
}
.takeaway-list li strong { color: var(--bark); font-weight: 600; }

/* Tools row */
.tools-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tool-tag {
  background: var(--bark);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px; color: var(--sand);
}
.tools-box {
  background: var(--bark);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 24px 0;
}
.tools-box h4 {
  font-family: var(--serif-2);
  font-size: 1rem; color: var(--cream);
  margin-bottom: 14px;
}
.tools-box .tool-tag { background: rgba(255, 255, 255, 0.08); }

/* Reflection */
.reflection {
  background: var(--bark);
  color: var(--cream);
  border-radius: 12px;
  padding: 40px 36px;
  margin-top: 56px;
}
.reflection.teal { background: var(--teal); color: #fff; }
.reflection h2 {
  font-family: var(--serif-2);
  font-size: 1.3rem; margin-bottom: 14px;
  color: var(--cream);
  border: none; padding: 0;
}
.reflection.teal h2 { color: #fff; }
.reflection p { color: var(--sand); font-size: 15px; margin-bottom: 12px; line-height: 1.7; }
.reflection.teal p { color: rgba(255, 255, 255, 0.78); }
.reflection p:last-child { margin-bottom: 0; }

/* Images */
.case-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--divider-2);
  display: block;
  margin: 24px 0;
}
.case-img-caption {
  font-size: 13px; color: var(--muted);
  text-align: center;
  margin-top: -16px;
  margin-bottom: 24px;
}
.img-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin: 24px 0;
}
.img-grid .case-img { margin: 0; }
.img-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin: 24px 0;
}
.img-grid-3 .case-img { margin: 0; }
@media (max-width: 640px) {
  .img-grid, .img-grid-3 { grid-template-columns: 1fr; }
}

/* Prev / next */
.case-nav {
  display: flex; justify-content: space-between;
  align-items: stretch; gap: 16px;
  margin: 56px 0 0;
  border-top: 1px solid var(--divider-2);
  padding-top: 40px;
}
.case-nav-link {
  display: flex; flex-direction: column;
  padding: 20px 24px;
  border: 1px solid var(--divider-2);
  border-radius: 10px;
  background: var(--cream);
  flex: 1; max-width: 48%;
  transition: border-color 0.2s, background 0.2s;
}
.case-nav-link:hover { border-color: var(--clay); background: var(--warm-white); }
.case-nav-link.prev { align-items: flex-start; }
.case-nav-link.next { align-items: flex-end; text-align: right; }
.case-nav-dir {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.case-nav-title {
  font-family: var(--serif-2);
  font-size: 1rem; font-weight: 600;
  color: var(--bark); line-height: 1.3;
}
@media (max-width: 640px) {
  .case-nav { flex-direction: column; }
  .case-nav-link { max-width: 100%; }
  .case-nav-link.next { align-items: flex-start; text-align: left; }
}


/* ───── 6. HOPPON PROCESS SPINE ─────────────────────────── */

/* Hoppon hero (two-column with KPI cards) */
.hoppon-hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 88vh;
  padding-top: 64px;
}
.hoppon-hero-left {
  background: var(--de-blue);
  padding: 72px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.hoppon-hero-left .hero-kicker {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.hoppon-hero-left .hero-kicker::before {
  content: ''; width: 24px; height: 1px;
  background: rgba(255, 255, 255, 0.32);
}
.hoppon-hero-left h1 {
  font-family: var(--serif-2);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 600; line-height: 1.15;
  color: #fff; margin-bottom: 20px;
}
.hoppon-hero-left h1 em { font-style: italic; color: #A8C8FF; }
.hoppon-hero-left .hero-sub {
  font-size: 15px; color: rgba(255, 255, 255, 0.68);
  line-height: 1.7; font-weight: 300;
  max-width: 440px; margin-bottom: 28px;
}
.hoppon-hero-left .hero-meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hoppon-hero-left .hero-chip {
  font-size: 12px; font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 5px 14px;
}

.hoppon-hero-right {
  background: var(--cream);
  padding: 64px 40px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 14px;
}
.hero-right-label {
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.kpi-card {
  background: #fff;
  border: 1px solid var(--divider-2);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: border-color 0.2s;
}
.kpi-card:hover { border-color: var(--clay); }
.kpi-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--de-blue-lt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.kpi-num {
  font-family: var(--serif-2);
  font-size: 1.85rem; color: var(--clay);
  line-height: 1; display: block;
}
.kpi-label { font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 3px; }
.kpi-cause {
  font-size: 11px; color: var(--de-blue);
  font-weight: 600; margin-top: 4px; display: block;
}

@media (max-width: 860px) {
  .hoppon-hero { grid-template-columns: 1fr; }
  .hoppon-hero-left { padding: 80px 28px 48px; }
  .hoppon-hero-right { padding: 40px 28px; }
}

/* 30-sec scan strip (Hoppon) */
.scan-strip { background: var(--bark-2); padding: 32px 0; overflow: hidden; }
.scan-strip-inner {
  max-width: 900px; margin: 0 auto;
  padding: 0 40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.scan-cell { padding: 0 24px; border-right: 1px solid rgba(255, 255, 255, 0.1); }
.scan-cell:first-child { padding-left: 0; }
.scan-cell:last-child { padding-right: 0; border-right: none; }
.scan-cell-label {
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}
.scan-cell-val {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400; line-height: 1.5;
}
.scan-cell-val strong { color: #fff; font-weight: 600; }
@media (max-width: 720px) {
  .scan-strip-inner { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .scan-cell { padding: 10px 14px; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .scan-cell:nth-last-child(-n+2) { border-bottom: none; }
}

/* Process spine */
.process-spine { max-width: 860px; margin: 0 auto; padding: 72px 40px 0; }
.spine-header { margin-bottom: 48px; }
.spine-section-label {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.spine-section-label::before {
  content: ''; width: 24px; height: 2px; background: var(--clay);
}
.spine-title {
  font-family: var(--serif-2);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600; color: var(--bark);
  line-height: 1.2;
}
.spine-sub {
  font-size: 15px; color: var(--muted);
  font-weight: 300; margin-top: 10px; max-width: 520px;
}

.spine-track { position: relative; padding-left: 53px; }
.spine-track::before {
  content: ''; position: absolute;
  left: 18px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--de-blue) 0%, var(--clay) 100%);
  border-radius: 2px;
}

.spine-step { position: relative; margin-bottom: 48px; }
.spine-step:last-child { margin-bottom: 0; }
.spine-node {
  position: absolute; left: -50px; top: 2px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--de-blue);
  color: #fff;
  font-family: var(--serif-2);
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--warm-white);
  z-index: 1;
}
.spine-step.outcome .spine-node { background: var(--clay); }

.spine-step-tag {
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay); font-weight: 700;
  margin-bottom: 6px;
}
.spine-step h3 {
  font-family: var(--serif-2);
  font-size: 1.2rem; font-weight: 600;
  color: var(--bark); margin-bottom: 10px;
}
.spine-step p {
  font-size: 15px; color: var(--muted);
  line-height: 1.75; font-weight: 400;
  margin-bottom: 12px;
}
.spine-step p:last-child { margin-bottom: 0; }
.spine-step p strong { color: var(--text); font-weight: 600; }

.evidence {
  background: var(--cream);
  border: 1px solid var(--divider-2);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 14px 0;
}
.evidence-label {
  font-size: 15px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--de-blue); font-weight: 700;
  margin-bottom: 10px;
}
.evidence-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.evidence-list li {
  font-size: 14.5px; color: var(--text);
  display: flex; gap: 10px;
  align-items: flex-start; line-height: 1.55;
}
.evidence-list li::before {
  content: '✓';
  color: var(--moss); font-weight: 700;
  flex-shrink: 0; font-size: 12px; margin-top: 1px;
}

.result-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FFF0E8;
  border: 1px solid #EFCAB0;
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 12px; font-weight: 600;
  color: var(--clay); margin-top: 10px;
}
.result-pill::before { content: '↗'; font-size: 11px; }

.insight-box {
  background: var(--de-blue-lt);
  border-left: 3px solid var(--de-blue);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 14px 0;
  font-size: 14px;
  color: var(--de-blue);
  font-style: italic;
  font-family: var(--serif-2);
  line-height: 1.6;
}

.spine-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--divider-2);
  margin: 16px 0;
  padding: 1.2rem;
}
.spine-img-caption {
  font-size: 12px; color: var(--muted);
  text-align: center;
  margin-top: -8px; margin-bottom: 16px;
}
.spine-img-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 16px 0;
}
.spine-img-grid img {
  border-radius: 8px;
  border: 1px solid var(--divider-2);
  width: 100%;
}
.spine-img-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.spine-img-2 img { border-radius: 8px; border: 1px solid var(--divider-2); width: 100%; }
@media (max-width: 640px) {
  .process-spine { padding: 56px 24px 0; }
  .spine-track { padding-left: 40px; }
  .spine-track::before { left: 12px; }
  .spine-node { left: -34px; width: 26px; height: 26px; font-size: 12px; }
  .spine-img-grid { grid-template-columns: 1fr 1fr; }
  .spine-img-2 { grid-template-columns: 1fr; }
}

/* Decision → impact table */
.decision-table-wrap { max-width: 860px; margin: 0 auto; padding: 64px 40px; }
.decision-table-wrap .spine-title { margin-bottom: 24px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable thead tr { background: var(--bark); }
.dtable th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.dtable th:first-child { border-radius: 8px 0 0 0; }
.dtable th:last-child { border-radius: 0 8px 0 0; }
.dtable td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider-2);
  vertical-align: top; line-height: 1.55;
  color: var(--text);
}
.dtable tr:nth-child(even) td { background: var(--cream); }
.dtable tr:last-child td { border-bottom: none; }
.dtable .d-label { font-weight: 600; color: var(--bark); font-size: 14.5px; }
.dtable .d-why { font-size: 14.4px; color: var(--muted); }
.dtable .d-what { font-size: 14.5px; color: var(--text); }
.dtable .d-result {
  font-size: 13px; font-weight: 700;
  color: var(--clay); white-space: nowrap;
}
@media (max-width: 640px) {
  .decision-table-wrap { padding: 48px 20px; }
  .dtable { font-size: 14.5px; }
  .dtable td, .dtable th { padding: 10px 12px; }
}

/* Learnings */
.learnings { background: var(--de-blue); padding: 64px 40px; }
.learnings-inner { max-width: 860px; margin: 0 auto; }
.learnings-label {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.learnings-label::before {
  content: ''; width: 24px; height: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.learnings h2 {
  font-family: var(--serif-2);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600; color: #fff;
  margin-bottom: 32px;
}
.learnings-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.learning-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 22px 20px;
}
.learning-num {
  font-family: var(--serif-2);
  font-size: 1.5rem; color: #A8C8FF;
  line-height: 1; display: block; margin-bottom: 10px;
}
.learning-head {
  font-size: 14px; font-weight: 600;
  color: #fff; margin-bottom: 7px;
}
.learning-body {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}
@media (max-width: 760px) {
  .learnings-grid { grid-template-columns: 1fr; }
  .learnings { padding: 48px 24px; }
}

.case-nav-wrap { max-width: 820px; margin: 0 auto; padding: 56px 40px 64px; }


/* ───── 7. FOOTER ───────────────────────────────────────── */
.site-footer {
  background: var(--bark);
  color: var(--sand);
  padding: 56px 40px 36px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}
.footer-brand .footer-logo {
  font-family: var(--serif-2);
  font-size: 1.2rem; font-weight: 600;
  color: var(--cream);
  display: block; margin-bottom: 10px;
}
.footer-brand .footer-logo span { color: var(--clay); }
.footer-brand p {
  font-size: 14px; color: var(--sand);
  max-width: 280px; line-height: 1.6;
}
.footer-nav-col h4 {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}
.footer-nav-col ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
}
.footer-nav-col a {
  font-size: 14px; color: var(--sand);
  transition: color 0.18s;
}
.footer-nav-col a:hover { color: var(--cream); }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--sand);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.footer-social a:hover { background: var(--clay); color: #fff; border-color: var(--clay); }

.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.4); }
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.18s;
}
.footer-bottom-links a:hover { color: var(--sand); }

@media (max-width: 640px) {
  .site-footer { padding: 40px 24px 28px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* ───── 8. ANIMATIONS ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* ───── 9. UTILITIES ────────────────────────────────────── */
.text-center { text-align: center; }
.hidden { display: none !important; }


/* ─────────────────────────────────────────────────────────
   10. CASE-STUDY HERO (healing-touch / puregood / standalone)
   Two-column layout: coloured left panel + KPI right panel.
   Override --cs-accent, --cs-accent-lt, --cs-accent-mid per page.
   ───────────────────────────────────────────────────────── */

/* Default accent (falls back to main accent) */
:root {
  --cs-accent:     var(--accent);
  --cs-accent-lt:  var(--de-blue-lt);
  --cs-accent-mid: var(--de-blue);
  --cs-highlight:  rgba(200, 75, 26, 0.18);   /* italic em colour */
}

.cs-hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 88vh;
  padding-top: 64px;
}
.cs-hero-left {
  background: var(--cs-accent);
  padding: 72px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.cs-hero-left .hero-kicker {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.cs-hero-left .hero-kicker::before {
  content: ''; width: 24px; height: 1px;
  background: rgba(255, 255, 255, 0.3);
}
.cs-hero-left h1 {
  font-family: var(--serif-2);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 600; line-height: 1.15;
  color: #fff; margin-bottom: 20px;
}
.cs-hero-left h1 em {
  font-style: italic; color: var(--cs-highlight);
}
.cs-hero-left .hero-sub {
  font-size: 15px; color: rgba(255, 255, 255, 0.68);
  line-height: 1.68; font-weight: 300;
  max-width: 420px; margin-bottom: 32px;
}
.cs-hero-left .hero-meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-hero-left .hero-chip {
  font-size: 12px; font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 5px 14px;
}
.cs-hero-right {
  background: var(--cream);
  padding: 64px 40px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 16px;
}
.cs-hero-right .hero-right-label {
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.cs-kpi-card {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: border-color 0.18s;
}
.cs-kpi-card:hover { border-color: var(--clay); }
.cs-kpi-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--cs-accent-lt);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.cs-kpi-num {
  font-family: var(--serif-2);
  font-size: 1.9rem; color: var(--clay);
  line-height: 1; display: block;
}
.cs-kpi-label {
  font-size: 12px; color: var(--muted);
  line-height: 1.4; margin-top: 3px;
}
.cs-kpi-cause {
  font-size: 11px; color: var(--cs-accent);
  font-weight: 500; margin-top: 4px; display: block;
}
@media (max-width: 860px) {
  .cs-hero { grid-template-columns: 1fr; }
  .cs-hero-left { padding: 80px 28px 48px; }
  .cs-hero-right { padding: 40px 28px; }
}

/* Learnings section — accent-colour variant
   Used by healing-touch (.learnings-purple) and puregood (.learnings-green) */
.learnings-purple { background: #7B2D8B; }
.learnings-purple .learning-num { color: #E0BAFF; }
.learnings-green { background: #1A6B3A; }
.learnings-green .learning-num { color: #A8E6BF; }

/* Insight box colour variants */
.insight-box-purple {
  background: #F3EAF6;
  border-left-color: #7B2D8B;
  color: #6A2478;
}
.insight-box-green {
  background: #E8F5ED;
  border-left-color: #1A6B3A;
  color: #236B45;
}
