/* ==========================================================================
   The Marketing Backpack — Superbloom-inspired design system
   Palette: warm paper · espresso · terracotta · sand   |   Display: Bricolage Grotesque
   ========================================================================== */

:root {
  --paper:        #F4EDE1;
  --paper-2:      #ECE1CF;
  --cream:        #F8F3EA;
  --ink:          #241D17;   /* espresso (text + dark blocks) */
  --ink-soft:     #574C3E;
  --ink-mute:     #8C8170;
  --terracotta:   #C0512B;
  --terracotta-d: #A23E1D;
  --terracotta-soft:#ECD2C2;
  --sand:         #E7D6BB;
  --sand-d:       #D8C29D;
  --line:         #E2D6C1;
  --line-soft:    rgba(36,29,23,0.12);

  --radius:    20px;
  --radius-lg: 30px;
  --radius-block: clamp(26px, 3.5vw, 48px);
  --pill: 999px;

  --max: 1880px;
  --gutter: clamp(14px, 1.5vw, 24px);

  --display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 30px 70px -38px rgba(36,29,23,0.5);
  --shadow-sm: 0 16px 34px -22px rgba(36,29,23,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding: clamp(60px, 9vw, 130px) 0; }

/* ---------- Typographic scale ---------- */
.display-xl { font-size: clamp(2.8rem, 8vw, 6.2rem); }
.display-lg { font-size: clamp(2.4rem, 6.5vw, 5rem); }
.display-md { font-size: clamp(2rem, 4.5vw, 3.4rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 1.2rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 54ch; }

/* ---------- Buttons (pills) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 1rem 1.8rem; border-radius: var(--pill);
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-d); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.on-dark .btn-ghost { color: var(--cream); }
.on-dark .btn-ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ---------- Floating pill nav ---------- */
.nav { position: sticky; top: clamp(10px, 2vw, 18px); z-index: 100; padding-inline: var(--gutter); }
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  background: rgba(36,29,23,0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: var(--pill);
  padding: 0.6rem 0.7rem 0.6rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.brandmark { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--cream); }
.brandmark .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--terracotta); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; font-size: 0.93rem; font-weight: 500; }
.nav-links a { color: rgba(248,243,234,0.82); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 0.7rem; }
.nav-switch { font-size: 0.84rem; font-weight: 600; color: rgba(248,243,234,0.72); padding: 0.5rem 0.6rem; transition: color .2s; }
.nav-switch:hover { color: #fff; }
.nav-cta .btn { padding: 0.7rem 1.3rem; font-size: 0.9rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 1.5rem; cursor: pointer; padding: 0.2rem 0.5rem; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
    position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter);
    background: rgba(36,29,23,0.96); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem;
  }
  .nav-links.open a { color: rgba(248,243,234,0.9); }
  .nav-toggle { display: block; }
  .nav-cta .nav-switch { display: none; }
}

/* ---------- Color blocks ---------- */
.block { border-radius: var(--radius-block); padding: clamp(36px, 6vw, 92px) clamp(24px, 5vw, 80px); }
.block-espresso { background: var(--ink); color: var(--cream); }
.block-terracotta { background: var(--terracotta); color: var(--cream); }
.block-sand { background: var(--sand); color: var(--ink); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3 { color: var(--cream); }
.on-dark .eyebrow { color: var(--terracotta-soft); }
.on-dark .lead { color: rgba(248,243,234,0.82); }
.block-terracotta .eyebrow { color: var(--cream); opacity: .8; }
.shell { padding-inline: var(--gutter); }
.shell-tight { max-width: var(--max); margin: 0 auto; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(20px, 3vw, 34px); }
/* full-bleed hero (edge to edge, like reference) */
.hero-full { padding: 0; margin-top: 6px; }
.hero-full .hero-block { width: 100%; }
.hero-full .hero-block > .shell-tight { padding-inline: 0; }
.hero-block { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); }
.hero .lead { margin: 1.6rem 0 2.2rem; font-size: 1.22rem; }
.hero-avatars { display: flex; align-items: center; margin-bottom: 1.6rem; }
.hero-avatars img, .hero-avatars span { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; margin-left: -12px; background: var(--sand); }
.hero-avatars span { display: flex; align-items: center; justify-content: center; background: var(--terracotta); color: #fff; font-size: 0.8rem; font-weight: 700; }
.hero-avatars img:first-child, .hero-avatars span:first-child, .hero-avatars .ha-logo:first-child { margin-left: 0; }
.hero-avatars .ha-logo { width: 46px; height: 46px; border-radius: 13px; background: #fff; border: 3px solid var(--ink); margin-left: -10px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.hero-avatars .ha-logo img { width: 72%; height: 60%; object-fit: contain; border: 0; border-radius: 0; margin: 0; }
.hero-avatars .ha-label { margin-left: 14px; color: rgba(248,243,234,0.8); font-size: 0.92rem; font-weight: 500; }
.hero-avatars .ha-badge { width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--ink); margin-left: -12px; overflow: hidden; flex-shrink: 0; background: transparent; }
.hero-avatars .ha-badge:first-child { margin-left: 0; }
.hero-avatars .ha-badge img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; border-radius: 0; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
/* mockup cluster */
.hero-cluster { position: relative; min-height: 420px; }
.hc-card { position: absolute; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); border: 4px solid rgba(248,243,234,0.9); background: #0d0d0f; }
.hc-card img, .hc-card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-1 { width: 50%; aspect-ratio: 9/15; left: 4%; top: 0; z-index: 3; transform: rotate(-4deg); }
.hc-2 { width: 46%; aspect-ratio: 4/5; right: 2%; top: 8%; z-index: 2; transform: rotate(4deg); }
.hc-3 { width: 42%; aspect-ratio: 4/5; right: 12%; bottom: -2%; z-index: 4; transform: rotate(-3deg); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cluster { min-height: 360px; order: -1; }
}

/* ---------- Logo row ---------- */
.logos { padding: clamp(48px, 6vw, 80px) 0; }
.logos-label { text-align: center; color: var(--ink-mute); font-size: 0.95rem; margin-bottom: 2.4rem; font-family: var(--display); font-weight: 600; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(2.8rem, 5vw, 5rem); width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-item { height: 50px; display: flex; align-items: center; justify-content: center; width: 150px; flex: 0 0 auto; }
.logo-item img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; opacity: 0.82; transition: opacity .25s, transform .25s; }
.logo-item img:hover { opacity: 1; transform: scale(1.05); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { position: relative; text-align: center; padding-block: clamp(70px, 10vw, 150px); overflow: hidden; }
.manifesto h2 { font-size: clamp(2rem, 5.2vw, 4.2rem); max-width: 20ch; margin: 0 auto; position: relative; z-index: 2; }
.manifesto h2 .hl { color: var(--terracotta); }
.mf-float { position: absolute; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); border: 3px solid var(--cream); z-index: 1; }
.mf-float img { width: 100%; height: 100%; object-fit: cover; }
/* transparent product cutouts: no box, no clip */
.mf-float.mf-cut { border: 0; box-shadow: none; background: none; overflow: visible; border-radius: 0; aspect-ratio: auto; height: auto; }
.mf-float.mf-cut img { height: auto; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(36,29,23,0.20)); }
.mf-1 { width: 150px; left: 3%; top: 10%; transform: rotate(-6deg); }
.mf-2 { width: 104px; left: 7%; bottom: 9%; transform: rotate(5deg); }
.mf-3 { width: 120px; aspect-ratio: 3/4; right: 5%; top: 16%; transform: rotate(6deg); }
.mf-4 { width: 168px; right: 6%; bottom: 11%; transform: rotate(-5deg); }
.mf-float.mf-icon { display: flex; align-items: center; justify-content: center; }
.mf-float.mf-yt { background: #fff; }
.mf-float.mf-cam { background: var(--sand); }
.mf-float.mf-hash { background: var(--ink); }
.mf-float .ic-yt { width: 64%; height: auto; }
.mf-float .ic { width: 54%; height: 54%; }
.mf-hashmark { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 4.5vw, 3.6rem); color: var(--terracotta); line-height: 1; }
.mf-tag { position: absolute; bottom: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--cream); font-family: var(--sans); font-weight: 600; font-size: 0.72rem; padding: 0.36rem 0.72rem; border-radius: var(--pill); display: inline-flex; align-items: center; gap: 0.3rem; box-shadow: var(--shadow-sm); }
.mf-tag .h { color: var(--terracotta); }
@media (max-width: 820px) { .mf-float, .mf-float.mf-icon, .mf-float.mf-cut { display: none !important; } }

/* ---------- Case study carousel ---------- */
.cases-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.cases-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.carousel { position: relative; }
.slide { display: none; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.slide.active { display: grid; animation: cpFade .45s ease; }
@keyframes cpFade { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none; } }
.slide-info .case-logo-img { height: 38px; width: auto; max-width: 190px; object-fit: contain; margin-bottom: 1.6rem; }
.slide-metric { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.95; color: var(--ink); letter-spacing: -0.03em; }
.slide-tag { display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); background: var(--terracotta-soft); padding: 0.4rem 0.85rem; border-radius: var(--pill); margin-bottom: 1.4rem; }
.slide-outcome { font-size: 1.12rem; color: var(--ink-soft); max-width: 42ch; margin: 1rem 0 1.8rem; }
.slide-media { position: relative; padding: clamp(10px, 2vw, 26px); }
.case-blob { position: absolute; z-index: 0; width: 82%; aspect-ratio: 1 / 1; right: -4%; bottom: -8%; background: var(--terracotta-soft); border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
.slide-media .sm-yt { position: relative; z-index: 1; display: block; aspect-ratio: 16/11; border-radius: var(--radius-lg); overflow: hidden; background: #0d0d0f; box-shadow: var(--shadow); }
.slide-media .sm-yt img { width: 100%; height: 100%; object-fit: cover; }
.slide-media .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.slide-media .play span { width: 70px; height: 70px; border-radius: 50%; background: rgba(248,243,234,0.94); color: var(--terracotta); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; padding-left: 5px; box-shadow: var(--shadow-sm); transition: transform .25s; }
.slide-media .sm-yt:hover .play span { transform: scale(1.08); }
.slide-media .sm-portrait { position: relative; z-index: 1; border-radius: var(--radius-lg); overflow: hidden; border: 4px solid var(--cream); box-shadow: var(--shadow); max-width: 300px; margin-inline: auto; background: #fff; }
.slide-media .sm-portrait img { width: 100%; height: auto; }
.slide-media .sm-portrait iframe { width: 100%; height: 520px; border: 0; display: block; }
.metric-pill { position: absolute; z-index: 3; background: var(--cream); border-radius: 16px; padding: 0.6rem 0.95rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2px; }
.metric-pill .pn { font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.4rem); line-height: 1; color: var(--ink); }
.metric-pill .pl { font-size: 0.7rem; color: var(--ink-mute); }
.mp-a { top: 5%; left: -2%; } .mp-b { top: 40%; right: -1%; } .mp-c { bottom: 6%; left: 6%; }
.carousel-nav { display: flex; gap: 0.7rem; margin-top: clamp(24px, 3vw, 36px); }
.cnav-btn { width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--terracotta); color: #fff; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.cnav-btn:hover { background: var(--terracotta-d); transform: translateY(-2px); }
.cnav-count { font-family: var(--display); font-weight: 600; align-self: center; margin-left: 0.4rem; color: var(--ink-mute); }
@media (max-width: 860px) { .slide.active { grid-template-columns: 1fr; } .slide-media { order: -1; } .metric-pill { font-size: 0.9rem; } }

/* ---------- Services (color block + pill tabs) ---------- */
.services-head { display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 50px); }
.services-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.services-head .svc-tag { color: rgba(248,243,234,0.7); font-size: 1.05rem; }
.svc-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(34px, 5vw, 60px); }
.svc-tab { font-family: var(--sans); font-weight: 600; font-size: 0.96rem; padding: 0.85rem 1.5rem; border-radius: var(--pill); border: 1.5px solid rgba(248,243,234,0.4); background: transparent; color: rgba(248,243,234,0.85); cursor: pointer; transition: all .22s; }
.svc-tab:hover { border-color: var(--cream); }
.svc-tab.active { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.svc-panel { display: none; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.svc-panel.active { display: grid; animation: cpFade .4s ease; }
.svc-panel h3 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1.1rem; }
.svc-panel p { color: rgba(248,243,234,0.8); font-size: 1.08rem; max-width: 46ch; }
.svc-num { font-family: var(--display); font-weight: 700; font-size: clamp(5rem, 12vw, 9rem); color: rgba(248,243,234,0.14); line-height: 1; text-align: right; }
@media (max-width: 820px) { .svc-panel.active { grid-template-columns: 1fr; } .svc-num { display: none; } }

/* ---------- Values ---------- */
.values-lead { max-width: 60ch; margin-top: clamp(20px, 2.4vw, 30px); display: grid; gap: 1rem; }
.values-lead p { color: var(--ink-soft); font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(34px, 4vw, 56px); }
.value { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.value .vnum { font-family: var(--display); font-weight: 700; color: var(--terracotta); font-size: 1rem; margin-bottom: 1rem; }
.value h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.value p { color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.value p strong { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testi-head { max-width: 60ch; margin-bottom: clamp(34px, 4vw, 56px); }
.testi-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 30px); }
.tcard { background: #EFE1D1; border: 1px solid rgba(36,29,23,0.05); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; }
.tcard .quote { font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.4; letter-spacing: -0.01em; margin-bottom: 1.8rem; flex: 1; }
.tcard .quote::before { content: "\201C"; }
.tcard .quote::after { content: "\201D"; }
.tperson { display: flex; align-items: center; gap: 0.9rem; border-top: 1px solid rgba(36,29,23,0.1); padding-top: 1.5rem; }
.tavatar { width: 58px; height: 58px; border-radius: 50%; position: relative; background: var(--terracotta-soft); color: var(--terracotta); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; overflow: hidden; flex-shrink: 0; }
.tavatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tname { font-weight: 600; }
.trole { color: var(--ink-mute); font-size: 0.9rem; }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- Case study grid (uniform, no mixed media) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1vw, 18px); }
@media (max-width: 1180px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .case-grid { grid-template-columns: 1fr; } }
.ccard { display: flex; flex-direction: column; gap: 0.8rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 1.5vw, 26px); min-height: 320px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.ccard:nth-child(3n+2) { background: var(--sand); border-color: transparent; }
.ccard:nth-child(3n+3) { background: var(--terracotta-soft); border-color: transparent; }
.ccard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ccard .clogo { height: 32px; width: auto; max-width: 160px; object-fit: contain; align-self: flex-start; }
.ccard .ctag { align-self: flex-start; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); }
.ccard .cmetric { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1.7vw, 1.95rem); line-height: 1.05; letter-spacing: -0.02em; margin-top: clamp(10px, 1.4vw, 18px); min-height: clamp(64px, 6vw, 88px); color: var(--ink); }
.ccard .cmetric .csub { display: block; margin-top: 0.4rem; font-size: 0.5em; font-weight: 600; color: var(--ink-mute); letter-spacing: 0; line-height: 1.2; }
.ccard .coutcome { color: var(--ink-soft); font-size: 0.95rem; flex: 1; min-height: 3.4em; }
.ccard .clink { color: var(--terracotta); font-weight: 600; font-size: 0.92rem; display: inline-flex; gap: 0.4rem; align-items: center; margin-top: 0.6rem; }
.ccard .clink .arrow { transition: transform .25s; }
.ccard:hover .clink .arrow { transform: translateX(4px); }

/* ---------- Testimonial auto-rotating carousel ---------- */
.testi-carousel { position: relative; max-width: 1400px; margin: 0 auto; }
.tslide { display: none; }
.tslide.active { display: block; animation: cpFade .5s ease; }
.testi-dots { display: flex; gap: 9px; justify-content: center; margin-top: 1.8rem; }
.tdot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); border: 0; padding: 0; cursor: pointer; transition: background .2s, transform .2s; }
.tdot.active { background: var(--terracotta); transform: scale(1.25); }
.testi-carousel .tcard .quote { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }

/* ---------- Apply form (creator) ---------- */
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 70px); align-items: center; }
.apply-intro .lead { color: rgba(248,243,234,0.82); }
.apply-form { display: flex; flex-direction: column; gap: 1rem; }
.apply-form label { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: rgba(248,243,234,0.85); }
.apply-form input, .apply-form textarea { font-family: var(--sans); font-size: 1rem; padding: 0.85rem 1rem; border-radius: 14px; border: 1.5px solid rgba(248,243,234,0.25); background: rgba(248,243,234,0.07); color: var(--cream); width: 100%; resize: vertical; }
.apply-form input::placeholder, .apply-form textarea::placeholder { color: rgba(248,243,234,0.42); }
.apply-form input:focus, .apply-form textarea:focus { outline: none; border-color: var(--terracotta); background: rgba(248,243,234,0.12); }
.apply-form .btn { align-self: flex-start; margin-top: 0.4rem; }
.apply-note { font-size: 0.85rem; color: rgba(248,243,234,0.72); margin: 0; min-height: 1em; }
@media (max-width: 820px) { .apply-grid { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */
.cta-block { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-block h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 16ch; }
.cta-block h2 .hl { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { padding: clamp(56px, 7vw, 96px) 0 2.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.4rem; margin-bottom: 3rem; }
.footer h4 { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.2rem; }
.footer a { display: block; color: var(--ink-soft); padding: 0.32rem 0; font-size: 0.96rem; transition: color .2s; }
.footer a:hover { color: var(--terracotta); }
.footer .tagline { color: var(--ink-soft); max-width: 32ch; margin-top: 1rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--ink-mute); font-size: 0.85rem; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1.5px solid var(--ink-soft); color: var(--ink-soft); transition: color .2s, border-color .2s, background .2s; }
.footer-social a:hover { color: var(--cream); background: var(--terracotta); border-color: var(--terracotta); }
.footer-social svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.6rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ---------- Pain points / How we help (creator) ---------- */
.list-rows { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.list-row { background: var(--paper); display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; padding: 1.7rem clamp(8px,2vw,20px); transition: background .25s, padding-left .25s; }
.list-row:hover { background: var(--cream); padding-left: clamp(16px,3vw,34px); }
.list-row .rnum { font-family: var(--display); font-weight: 700; color: var(--terracotta); font-size: 1.3rem; width: 2.2rem; }
.list-row h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 600; }

/* ==========================================================================
   Case study detail pages
   ========================================================================== */
.case-back { font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); display: inline-flex; gap: 0.4rem; }
.case-back:hover { color: var(--terracotta); }
.case-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(26px, 4vw, 44px); }
.case-logo-lg { height: clamp(46px, 7vw, 74px); width: auto; max-width: 280px; object-fit: contain; margin: 1.2rem 0 0.6rem; }
.case-tag { display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta); background: var(--terracotta-soft); padding: 0.4rem 0.85rem; border-radius: var(--pill); }
.metric-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: clamp(26px,4vw,44px) 0; }
.metric-cell { background: var(--cream); padding: 1.7rem 1.4rem; }
.metric-cell .m { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1; }
.metric-cell .l { color: var(--ink-mute); font-size: 0.82rem; margin-top: 0.55rem; }
.case-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.case-narrative h3 { font-size: 1.5rem; margin: 1.8rem 0 0.6rem; }
.case-narrative h3:first-child { margin-top: 0; }
.case-narrative p { color: var(--ink-soft); }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--cream); position: sticky; top: 96px; }
.media-frame iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; background: #fff; }
.media-frame.vertical iframe { aspect-ratio: auto; height: 640px; }
.media-frame video { width: 100%; aspect-ratio: 16/9; display: block; background: #000; object-fit: cover; }
.media-frame.vertical { background: #000; max-width: 310px; margin-inline: auto; }
.media-frame.vertical video { aspect-ratio: 9/16; height: auto; object-fit: cover; margin-inline: auto; }
.case-media-col { min-width: 0; }
.content-note { display: flex; flex-direction: column; align-items: center; gap: 2px; width: max-content; max-width: 100%; margin: 0 auto 14px; transform: rotate(-2deg); }
.content-note .cn-ex { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.8vw, 1.9rem); color: var(--terracotta); line-height: 1; }
.content-note .cn-co { position: relative; font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--terracotta); line-height: 1; padding: 4px 18px 9px; }
.content-note .cn-ellipse { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; color: var(--terracotta); }
.content-note .cn-ellipse path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.content-note .cn-arrow { width: 82px; height: 62px; color: var(--ink); margin-top: 2px; }
.content-note .cn-arrow path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.next-case { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 3rem; }
.next-case .nlabel { color: var(--ink-mute); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.next-case .nname { font-family: var(--display); font-weight: 700; font-size: 1.6rem; }
@media (max-width: 880px) { .case-layout { grid-template-columns: 1fr; } .media-frame { position: static; } .case-media-col { order: -1; } .content-note { transform: rotate(-2deg); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
