/* ================================================
   DHANANJAY GOWDA — dhananjaygowda.com
   ================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=neue-montreal@300,400,500,700,800,900&display=swap');

/* ------------------------------------------------
   1. VARIABLES
------------------------------------------------ */
:root {
  --white:       #FFFFFF;
  --black:       #0D0D0D;
  --coral:       #FF4D2E;
  --teal:        #00C9A7;
  --yellow:      #FFE600;
  --charcoal:    #111111;
  --offwhite:    #F7F7F5;
  --grey:        #6B6B6B;
  --light-grey:  #E5E5E5;

  --font: 'Neue Montreal', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
}

/* ------------------------------------------------
   2. RESET
------------------------------------------------ */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; font-size: 16px; overscroll-behavior: none; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
ul { list-style: none; }

/* ------------------------------------------------
   3. CUSTOM CURSOR (desktop only)
------------------------------------------------ */
@media (pointer: fine) {
  body { cursor: none; }
  .cursor {
    position: fixed; top: 0; left: 0;
    width: 10px; height: 10px;
    background: var(--coral);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), background 0.2s;
    will-change: transform;
  }
  .cursor-ring {
    position: fixed; top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1.5px solid rgba(13,13,13,0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
                transform 0.08s linear;
    will-change: transform;
  }
  body.cursor-hover .cursor { width: 16px; height: 16px; }
  body.cursor-hover .cursor-ring { width: 60px; height: 60px; border-color: var(--coral); }
}

/* ------------------------------------------------
   4. NAVIGATION
------------------------------------------------ */
.site-nav {
  position: fixed;
  bottom: 2rem; left: 2rem; right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.nav-logo {
  pointer-events: all;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--coral); }
.nav-toggle {
  pointer-events: all;
  width: 44px; height: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  background: var(--black);
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
}
.nav-toggle:hover { background: var(--coral); transform: scale(1.08); }
.nav-toggle span {
  display: block; width: 16px; height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
  transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Nav on light page: invert for dark sections */
.site-nav.nav-light .nav-logo { color: var(--white); }
.site-nav.nav-light .nav-logo:hover { color: var(--yellow); }

/* ---- OVERLAY ---- */
.nav-overlay {
  position: fixed; inset: 0;
  background: var(--charcoal);
  z-index: 999;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.nav-overlay.is-open { opacity: 1; pointer-events: all; }

.nav-overlay__list { margin-bottom: 3rem; }
.nav-overlay__item { overflow: hidden; }
.nav-overlay__link {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 0.6rem 0;
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.25);
  transition: color 0.2s;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out), color 0.2s;
}
.nav-overlay.is-open .nav-overlay__link { transform: translateY(0); }
.nav-overlay__link:hover { color: var(--white); }
.nav-overlay__link:hover .nav-num { color: var(--coral); }
.nav-overlay__link.is-active { color: var(--white); }
.nav-num {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--grey);
  min-width: 2rem;
}
.nav-overlay__socials {
  display: flex; gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
}
.nav-overlay__social {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-overlay__social:hover { color: var(--white); }

/* Apply stagger delays for overlay links */
.nav-overlay__item:nth-child(1) .nav-overlay__link { transition-delay: 0.05s; }
.nav-overlay__item:nth-child(2) .nav-overlay__link { transition-delay: 0.10s; }
.nav-overlay__item:nth-child(3) .nav-overlay__link { transition-delay: 0.15s; }
.nav-overlay__item:nth-child(4) .nav-overlay__link { transition-delay: 0.20s; }
.nav-overlay__item:nth-child(5) .nav-overlay__link { transition-delay: 0.25s; }
.nav-overlay__item:nth-child(6) .nav-overlay__link { transition-delay: 0.30s; }
.nav-overlay__item:nth-child(7) .nav-overlay__link { transition-delay: 0.35s; }
.nav-overlay__item:nth-child(8) .nav-overlay__link { transition-delay: 0.40s; }
.nav-overlay__item:nth-child(9) .nav-overlay__link { transition-delay: 0.45s; }

/* ---- PROGRESS BAR ---- */
.progress-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--light-grey);
  z-index: 998;
}
.progress-bar__fill {
  height: 100%;
  background: var(--coral);
  width: 0%;
  transition: width 0.1s linear;
}

/* ------------------------------------------------
   5. HORIZONTAL SCROLL (Homepage)
------------------------------------------------ */
.h-scroll-wrapper {
  position: relative;
  /* height set by JS */
}
.h-scroll-track {
  position: sticky;
  top: 0;
  display: flex;
  width: 400vw;
  height: 100vh;
  overflow: hidden;
  will-change: transform;
}
.panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Scroll hint ---- */
.scroll-hint {
  position: absolute;
  right: 3rem;
  bottom: 5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.scroll-hint__arrow {
  width: 32px; height: 1px;
  background: var(--grey);
  position: relative;
}
.scroll-hint__arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--grey);
  border-right: 1px solid var(--grey);
  transform: rotate(45deg);
}

/* ------------------------------------------------
   6. HOMEPAGE PANELS
------------------------------------------------ */

/* ---- Panel 1: Hero ---- */
.panel-hero {
  background: var(--white);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw 0 8vw;
  gap: 0;
  overflow: visible;
}
.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 2.5rem;
  opacity: 0;
}
.hero__headline {
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  max-width: 900px;
}
.hero__headline .line {
  display: block;
  overflow: hidden;
}
.hero__headline .line-inner {
  display: block;
  transform: translateY(110%);
}
.hero__tagline {
  margin-top: 2.5rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--grey);
  letter-spacing: 0.02em;
  opacity: 0;
}
.hero__tagline strong { color: var(--black); font-weight: 600; }

/* Typewriter cursor */
.tw-cursor {
  display: inline-block;
  width: 3px; height: 1em;
  background: var(--coral);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- Panel 2: Numbers ---- */
.panel-numbers {
  background: var(--charcoal);
  flex-direction: column;
  align-items: flex-start;
  padding: 0 8vw;
}
.numbers__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 3rem;
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 6rem;
  margin-bottom: 3rem;
}
.metric {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.metric__number {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--yellow);
  line-height: 1;
}
.metric__label {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}
.numbers__brands {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}
.numbers__brands span { color: var(--teal); }

/* ---- Panel 3: Featured Work ---- */
.panel-work {
  background: var(--white);
  align-items: flex-start;
  padding: 0 8vw;
  gap: 6vw;
}
.work__heading {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
}
.work__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  max-width: 540px;
  align-self: center;
}
.work-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
  overflow: hidden;
  position: relative;
}
.work-card:hover {
  background: var(--black);
  border-color: var(--black);
  transform: translateX(6px);
}
.work-card:hover .work-card__brand,
.work-card:hover .work-card__desc { color: var(--white); }
.work-card:hover .work-card__arrow { color: var(--coral); }
.work-card__left { display: flex; flex-direction: column; gap: 0.3rem; }
.work-card__brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.2s;
}
.work-card__desc {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--black);
  transition: color 0.2s;
}
.work-card__stat {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--coral);
  flex-shrink: 0;
}
.work-card__arrow {
  font-size: 1.2rem;
  color: var(--light-grey);
  transition: color 0.2s;
  margin-left: 1.5rem;
}
.work__cta {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.03em;
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.work__cta:hover { color: var(--coral); }

/* ---- Panel 4: Brands ---- */
.panel-brands {
  background: var(--offwhite);
  flex-direction: column;
  padding: 0 8vw;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
}
.brands__heading {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.marquee-outer {
  width: 100vw;
  margin-left: -8vw;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: marqueeScroll 20s linear infinite;
}
.marquee-track--rev { animation-direction: reverse; animation-duration: 25s; }
.marquee-item {
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--light-grey);
  transition: color 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.marquee-item:hover { color: var(--black); }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Panel 5: CTA ---- */
.panel-cta {
  background: var(--coral);
  flex-direction: column;
  align-items: flex-start;
  padding: 0 8vw;
  justify-content: center;
}
.cta__heading {
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 3rem;
}
.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn--white { background: var(--white); color: var(--coral); }
.btn--white:hover { background: var(--black); color: var(--white); }
.btn--outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn--outline-white:hover { background: var(--white); color: var(--coral); border-color: var(--white); }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: var(--coral); }
.btn--coral { background: var(--coral); color: var(--white); }
.btn--coral:hover { background: var(--black); }
.btn--outline { background: transparent; color: var(--black); border: 1.5px solid var(--light-grey); }
.btn--outline:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.cta__social {
  margin-top: 2.5rem;
  display: flex; gap: 1.5rem;
}
.cta__social-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.cta__social-link:hover { color: var(--white); }

/* ------------------------------------------------
   7. TAG COMPONENT
------------------------------------------------ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: var(--offwhite);
  color: var(--grey);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  white-space: nowrap;
}
.tag--coral { background: rgba(255,77,46,0.1); color: var(--coral); }
.tag--teal  { background: rgba(0,201,167,0.1); color: var(--teal); }
.tag--yellow { background: rgba(255,230,0,0.15); color: #8a7500; }
.tag--dark  { background: var(--charcoal); color: rgba(255,255,255,0.7); }

/* ------------------------------------------------
   8. CASE STUDIES INDEX PAGE
------------------------------------------------ */
.page-header {
  padding: 10rem 8vw 4rem;
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
}
.page-header__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.5rem;
}
.page-header__title {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 700px;
}
.page-header__desc {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.6;
}

/* Filter bar */
.filter-bar {
  padding: 2rem 8vw;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  position: sticky;
  top: 0;
  z-index: 100;
}
.filter-btn {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  border: 1.5px solid var(--light-grey);
  color: var(--grey);
  background: var(--white);
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Cases grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5px;
  background: var(--light-grey);
  border-top: 1.5px solid var(--light-grey);
}
.case-card {
  background: var(--white);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.25s, transform 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  opacity: 0;
  transition: opacity 0.3s;
}
.case-card:hover::before { opacity: 1; }
.case-card:hover .case-card__num,
.case-card:hover .case-card__brand,
.case-card:hover .case-card__title,
.case-card:hover .case-card__metric-label { color: rgba(255,255,255,0.5); }
.case-card:hover .case-card__metric-number { color: var(--yellow); }
.case-card:hover .case-card__arrow { color: var(--coral); }
.case-card:hover .tag { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }

.case-card__num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--light-grey);
  position: relative;
  z-index: 1;
  transition: color 0.25s;
}
.case-card__tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  position: relative; z-index: 1;
}
.case-card__brand {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  position: relative; z-index: 1;
  transition: color 0.25s;
}
.case-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--black);
  position: relative; z-index: 1;
  transition: color 0.25s;
  flex: 1;
}
.case-card__metric {
  margin-top: auto;
  display: flex; align-items: baseline; gap: 0.5rem;
  position: relative; z-index: 1;
}
.case-card__metric-number {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--coral);
  transition: color 0.25s;
}
.case-card__metric-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--grey);
  transition: color 0.25s;
}
.case-card__arrow {
  position: absolute;
  bottom: 2.5rem; right: 2.5rem;
  font-size: 1.5rem;
  color: var(--light-grey);
  z-index: 1;
  transition: color 0.25s, transform 0.25s;
}
.case-card:hover .case-card__arrow { transform: translate(4px, -4px); }

/* ------------------------------------------------
   9. INDIVIDUAL CASE STUDY — BLOCK FORMAT
------------------------------------------------ */
.case-page {
  /* no special wrapper needed, blocks stack */
}

/* Block base */
.block {
  width: 100%;
  padding: 5rem 8vw;
}

/* Block: Hero */
.block--hero {
  background: var(--charcoal);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 10rem;
}
.block--hero .block__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}
.block--hero .block__title {
  font-size: clamp(2rem, 4.5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
  max-width: 850px;
  margin-bottom: 2rem;
}
.block--hero .block__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Block: Intro / 2-col */
.block--intro {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.block__section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--light-grey);
}
.block__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--black);
}
.block__text p + p { margin-top: 1rem; }
.block__client-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.block__client-desc {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.6;
}

/* Block: Images */
.block--images {
  background: var(--offwhite);
  padding: 3rem 8vw;
}
.block__img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.block__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

/* Block: Challenge */
.block--challenge {
  background: var(--offwhite);
}
.block__challenge-text {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--black);
  max-width: 780px;
  margin-bottom: 2rem;
}
.block__points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.block__point {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 10px;
  border-left: 3px solid var(--coral);
}
.block__point-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.5rem;
}
.block__point-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--grey);
}

/* Block: Solution */
.block--solution {
  background: var(--white);
}
.block__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
}
.block__step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--light-grey);
  align-items: start;
}
.block__step:first-child { border-top: 1px solid var(--light-grey); }
.block__step-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--coral);
  padding-top: 0.3rem;
}
.block__step-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.block__step-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--grey);
}

/* Block: Results */
.block--results {
  background: var(--coral);
  color: var(--white);
}
.block--results .block__section-label {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.2);
}
.block__results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.result-item__number {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}
.result-item__label {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Block: Takeaways */
.block--takeaways {
  background: var(--offwhite);
}
.block__takeaway-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.takeaway-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
}
.takeaway-card__quote {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--black);
}
.takeaway-card__num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

/* Block: Testimonial quote (in case study) */
.block--quote {
  background: var(--charcoal);
  padding: 5rem 8vw;
}
.block__quote-text {
  font-size: clamp(1.3rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--white);
  max-width: 800px;
  margin-bottom: 1.5rem;
}
.block__quote-attr {
  font-size: 0.9rem;
  color: var(--grey);
}
.block__quote-attr strong { color: var(--teal); }

/* Block: CTA */
.block--cta {
  background: var(--black);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 30vh;
  gap: 1.5rem;
}
.block--cta h3 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
}
.block--cta p {
  font-size: 1rem;
  color: var(--grey);
  max-width: 480px;
}

/* Block: Case Navigation */
.block--case-nav {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  padding: 2.5rem 8vw;
  border-top: 1px solid var(--light-grey);
  align-items: center;
}
.case-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.case-nav-link--next { text-align: right; }
.case-nav-link__dir {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}
.case-nav-link__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  transition: color 0.2s;
}
.case-nav-link:hover .case-nav-link__title { color: var(--coral); }
.case-nav-back {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey);
  transition: color 0.2s;
}
.case-nav-back:hover { color: var(--black); }

/* ------------------------------------------------
   10. STORY PAGE
------------------------------------------------ */
.story-page {
  min-height: 100vh;
  padding-top: 8rem;
}
.story-intro {
  padding: 2rem 8vw 4rem;
}
.story-intro__title {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.story-intro__desc {
  font-size: 1.1rem;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.6;
}

.timeline {
  padding: 2rem 8vw 6rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8vw;
  top: 2rem; bottom: 2rem;
  width: 1px;
  background: var(--light-grey);
}
.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 4rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 13px; height: 13px;
  background: var(--white);
  border: 2px solid var(--coral);
  border-radius: 50%;
  transition: background 0.2s;
}
.timeline-item:hover::before { background: var(--coral); }
.timeline-item__year {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.5rem;
}
.timeline-item__title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.timeline-item__subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey);
  margin-bottom: 1rem;
}
.timeline-item__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--black);
  max-width: 620px;
}
.timeline-item__badges {
  margin-top: 0.75rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}

/* ------------------------------------------------
   11. WORK PAGE
------------------------------------------------ */
.work-page {
  padding-top: 8rem;
}
.work-timeline {
  padding: 2rem 8vw 6rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.work-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--light-grey);
  align-items: start;
}
.work-item:first-child { border-top: 1px solid var(--light-grey); }
.work-item__left { }
.work-item__period {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--grey);
  margin-bottom: 0.5rem;
}
.work-item__company {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.work-item__location {
  font-size: 0.8rem;
  color: var(--grey);
}
.work-item__right { }
.work-item__role {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.work-item__bullets {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.work-item__bullet {
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 0.75rem;
  align-items: start;
}
.work-item__bullet::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--coral);
  border-radius: 50%;
  margin-top: 0.45rem;
  flex-shrink: 0;
}
.work-item__bullet-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--black);
}
.work-item__bullet-text strong {
  font-weight: 700;
  color: var(--black);
}

/* ------------------------------------------------
   12. CERTIFICATIONS PAGE
------------------------------------------------ */
.certs-page {
  padding-top: 8rem;
}
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5px;
  background: var(--light-grey);
  margin: 3rem 0 0;
}
.edu-card {
  background: var(--white);
  padding: 2.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.edu-card__degree {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.edu-card__school {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
}
.edu-card__detail {
  font-size: 0.8rem;
  color: var(--grey);
}
.edu-card__score {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--coral);
  margin-top: 0.5rem;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 3rem 8vw 6rem;
}
.cert-card {
  padding: 2rem;
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.cert-card:hover { border-color: var(--coral); transform: translateY(-4px); }
.cert-card__icon {
  width: 36px; height: 36px;
  background: rgba(255,77,46,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.cert-card__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.cert-card__inst {
  font-size: 0.8rem;
  color: var(--grey);
}
.cert-card__year {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--coral);
}

/* ------------------------------------------------
   13. TESTIMONIALS PAGE
------------------------------------------------ */
.testimonials-page {
  padding-top: 8rem;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5px;
  background: var(--light-grey);
  margin-top: 0;
}
.testimonial-card {
  background: var(--white);
  padding: 3rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  transition: background 0.25s;
}
.testimonial-card:hover { background: var(--offwhite); }
.testimonial-card__quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--coral);
  font-weight: 900;
}
.testimonial-card__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--black);
  flex: 1;
}
.testimonial-card__author {
  display: flex; align-items: flex-start;
  flex-direction: column; gap: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-grey);
}
.testimonial-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--grey);
}

/* ------------------------------------------------
   14. PROJECTS PAGE
------------------------------------------------ */
.projects-page {
  padding-top: 8rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 3rem 8vw 6rem;
}
.project-card {
  border: 1px solid var(--light-grey);
  border-radius: 14px;
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color 0.2s, transform 0.2s var(--ease-out), background 0.2s;
}
.project-card:hover {
  border-color: var(--black);
  background: var(--black);
  transform: translateY(-4px);
}
.project-card:hover .project-card__title,
.project-card:hover .project-card__desc,
.project-card:hover .project-card__role { color: rgba(255,255,255,0.8); }
.project-card:hover .project-card__title { color: var(--white); }
.project-card__type {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
}
.project-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.project-card__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--grey);
  flex: 1;
  transition: color 0.2s;
}
.project-card__role {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey);
  transition: color 0.2s;
}
.project-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--light-grey);
}
.project-card:hover .project-card__footer { border-color: rgba(255,255,255,0.1); }

/* ------------------------------------------------
   15. RESOURCES PAGE
------------------------------------------------ */
.resources-page {
  padding-top: 8rem;
  min-height: 100vh;
}
.resources-coming-soon {
  padding: 6rem 8vw;
  max-width: 600px;
}
.resources-coming-soon h2 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.resources-coming-soon p {
  font-size: 1rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ------------------------------------------------
   16. MARKETING BRAIN PAGE
------------------------------------------------ */
.brain-page {
  padding-top: 8rem;
}
.brain-beliefs {
  padding: 2rem 8vw 6rem;
}
.belief-item {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--light-grey);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3rem;
  align-items: start;
}
.belief-item:first-child { border-top: 1px solid var(--light-grey); }
.belief-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--coral);
  padding-top: 0.5rem;
}
.belief-text {
  font-size: clamp(1.3rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--black);
}
.belief-source {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--grey);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ------------------------------------------------
   17. UTILITIES
------------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.text-coral  { color: var(--coral); }
.text-teal   { color: var(--teal); }
.text-yellow { color: var(--yellow); }
.text-grey   { color: var(--grey); }

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------
   18. RESPONSIVE
------------------------------------------------ */
@media (max-width: 1024px) {
  .work-item { grid-template-columns: 160px 1fr; gap: 2rem; }
  .belief-item { grid-template-columns: 60px 1fr; gap: 2rem; }
  .block--intro { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  /* Disable horizontal scroll on mobile */
  .h-scroll-wrapper { height: auto !important; }
  .h-scroll-track {
    position: relative;
    flex-direction: column;
    width: 100%;
    height: auto;
    transform: none !important;
  }
  .panel { width: 100%; height: auto; min-height: 100svh; }

  .numbers__grid { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
  .panel-work { flex-direction: column; align-items: flex-start; }
  .work__cards { max-width: 100%; }
  .panel-cta .cta__heading { font-size: 2.5rem; }

  .page-header { padding: 5rem 6vw 2rem; }
  .page-header__title { font-size: 2.5rem; }
  .cases-grid { grid-template-columns: 1fr; }

  .block { padding: 3rem 6vw; }
  .block--hero { padding-top: 5rem; }
  .block--hero .block__title { font-size: 2rem; }
  .block__results-grid { grid-template-columns: 1fr 1fr; }

  .work-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .work-item__left { margin-bottom: 0.5rem; }

  .timeline::before { left: 6vw; }
  .timeline { padding: 2rem 6vw 4rem; }
  .timeline-item { padding-left: 2rem; }

  .block--case-nav { grid-template-columns: 1fr 1fr; }
  .case-nav-back { display: none; }

  .site-nav { bottom: 1.5rem; left: 1.5rem; right: 1.5rem; }
  .nav-overlay { padding: 5rem 6vw 3rem; }
  .nav-overlay__link { font-size: 1.1rem; }

  .brain-beliefs { padding: 2rem 6vw 4rem; }
  .belief-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .belief-num { padding-top: 0; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__headline { font-size: 2.5rem; }
  .numbers__grid { grid-template-columns: 1fr; }
  .cta__buttons { flex-direction: column; align-items: flex-start; }
  .block__step { grid-template-columns: 50px 1fr; gap: 1rem; }
  .block__results-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------
   19. SUPPLEMENTARY — panel content wrappers,
       page-level helpers, aliases
------------------------------------------------ */

/* Generic container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8vw;
}
.container--narrow { max-width: 780px; }

/* Section label (small uppercase eyebrow) */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1.5rem;
}
.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}

/* ---- Panel Hero (index.html) ---- */
.panel-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 44%;
  max-width: 44%;
  padding: 0;
}
.panel-hero__eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin-bottom: 2rem; }
.panel-hero__headline {
  font-size: clamp(2.8rem, 6.5vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 2rem;
  /* Reserve enough height for 4 lines so the buttons never jump */
  min-height: 4.5em;
}
.panel-hero__sub { font-size: 1rem; color: var(--grey); line-height: 1.6; margin-bottom: 2.5rem; }
.panel-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
/* Scroll hint removed from HTML; keep rule hidden in case it appears on other viewports */
.panel-hero__scroll-hint { display: none; }

/* ---- Hero Visual (right column) ---- */
.panel-hero__visual {
  flex: 0 0 52%;
  max-width: 52%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 720px;   /* 1.75× original 500px ≈ 720px */
  height: 90vh;
  max-height: 680px;
}

/* The coral blob circle */
.hero-visual__blob {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  aspect-ratio: 1;
  background: var(--coral);
  border-radius: 50%;
}

/* The person photo */
.hero-visual__photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 86%;       /* fills the larger container */
  height: auto;
  object-fit: cover;
  object-position: top;
  z-index: 2;
  display: block;
}

/* Floating skill pills */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}
.hero-pill {
  position: absolute;
  z-index: 4;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: heroFloat 3.5s ease-in-out infinite;
}
/* stagger the float so pills feel independent */
.hero-pill--1 { top: 6%;    left: 5%;   animation-delay: 0s; }
.hero-pill--2 { top: 14%;   right: 4%;  animation-delay: 0.6s; }
.hero-pill--3 { top: 42%;   left: 2%;   animation-delay: 1.1s; }
.hero-pill--4 { top: 34%;   right: 3%;  animation-delay: 1.7s; }
.hero-pill--5 { bottom: 28%; left: 4%;  animation-delay: 0.3s; }
.hero-pill--6 { bottom: 22%; right: 4%; animation-delay: 0.9s; }
.hero-pill--7 { bottom: 9%;  left: 50%; transform: translateX(-50%); animation-delay: 1.4s; }
/* pill 7 needs a combined transform for float + centering */
@keyframes heroFloatCenter {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-9px); }
}
.hero-pill--7 { animation-name: heroFloatCenter; }
.hero-pill--8 { top: 56%; right: 3%; animation-delay: 2.1s; }

/* ---- Panel Numbers (index.html) ---- */
.panel-numbers__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 0 8vw;
  color: var(--white);
}

/* ---- Panel Work snapshot (index.html) ---- */
.panel-work__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 0 8vw;
}
.work-snapshot__list { display: flex; flex-direction: column; gap: 0; margin-top: 1rem; }
.work-snapshot__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--light-grey);
  align-items: center;
}
.work-snapshot__item:first-child { border-top: 1px solid var(--light-grey); }
.work-snapshot__role { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }
.work-snapshot__company { font-size: 0.8rem; font-weight: 500; color: var(--grey); grid-column: 1; }
.work-snapshot__period { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; color: var(--coral); white-space: nowrap; grid-row: 1 / 3; grid-column: 2; align-self: center; }

/* ---- Panel Brands (index.html) ---- */
.panel-brands__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 0 8vw;
  gap: 2.5rem;
}
.marquee-wrapper { width: 100vw; margin-left: -8vw; overflow: hidden; display: flex; flex-direction: column; gap: 1rem; }
.marquee-track--forward { animation: marqueeScroll 22s linear infinite; }
.marquee-track--reverse { animation: marqueeScroll 28s linear infinite reverse; }
.brands-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---- Panel CTA (index.html) ---- */
.panel-cta__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 0 8vw;
  color: var(--white);
}
.panel-cta__headline { font-size: clamp(2.5rem, 5.5vw, 6rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 1.5rem; color: var(--white); }
.panel-cta__sub { font-size: 1rem; color: rgba(255,255,255,0.65); line-height: 1.6; max-width: 560px; margin-bottom: 2.5rem; }
.panel-cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.panel-cta__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.panel-cta__links a { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.5); transition: color 0.2s; text-decoration: underline; text-underline-offset: 3px; }
.panel-cta__links a:hover { color: var(--white); }

/* ---- Story page supplements ---- */
.story-intro { padding: 2rem 8vw 3rem; }
.story-intro__text { font-size: 1.15rem; line-height: 1.75; color: var(--black); max-width: 680px; margin-bottom: 1.25rem; }

/* ── Story filter bar ───────────────────────────────── */
.story-filter-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  padding: 0.9rem 0;
}
.story-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.story-filter-btn {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--light-grey);
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.story-filter-btn:hover { border-color: var(--black); color: var(--black); }
.story-filter-btn.is-active { background: var(--black); border-color: var(--black); color: var(--white); }

/* ── Story timeline (stl) ───────────────────────────── */
.story-timeline { padding: 3rem 0 5rem; }
.stl-timeline {
  position: relative;
  padding: 0 8vw;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Vertical line */
.stl-timeline::before {
  content: '';
  position: absolute;
  left: calc(8vw + 74px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--light-grey);
}

/* Each timeline row */
.stl-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0 2.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}
/* Dot on the line */
.stl-item::before {
  content: '';
  position: absolute;
  left: calc(74px + 1px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 2.5px solid var(--light-grey);
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s;
  z-index: 1;
}
.stl-item:hover::before { border-color: var(--coral); background: var(--coral); }

/* Left column: year + badge */
.stl-item__left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 0.1rem;
  gap: 0.4rem;
  padding-right: 1rem;
}
.stl-item__year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.3;
  text-align: right;
}
.stl-item__year--beyond { color: var(--coral); }
.stl-item__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
}
.stl-badge--origins  { background: rgba(0,201,167,0.12);  color: var(--teal); }
.stl-badge--education{ background: rgba(255,230,0,0.15);   color: #9a8800; }
.stl-badge--professional { background: rgba(255,77,46,0.1); color: var(--coral); }
.stl-badge--career   { background: rgba(13,13,13,0.08);    color: var(--black); }
.stl-badge--personal { background: rgba(107,107,107,0.1);  color: var(--grey); }

/* Card */
.stl-item__card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.stl-item:hover .stl-item__card {
  border-color: rgba(255,77,46,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.stl-item__card--dark {
  background: var(--black);
  border-color: var(--black);
}
.stl-item__card--dark .stl-item__title { color: var(--white); }
.stl-item__card--dark .stl-item__body  { color: rgba(255,255,255,0.7); }

/* Inner: text + image side by side */
.stl-item__inner {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}
.stl-item__text { flex: 1; min-width: 0; }

.stl-item__title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 0.65rem;
}
.stl-item__body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--grey);
  margin-bottom: 0.85rem;
}
.stl-item__body + .stl-item__body { margin-top: -0.5rem; }
.stl-item__quote {
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-left: 3px solid var(--coral);
  padding-left: 1rem;
  margin: 0.75rem 0;
  line-height: 1.55;
}
.stl-item__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

/* Image column */
.stl-item__img-col {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.stl-item__img-col--double { width: 220px; }
.stl-item__img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

/* Hidden state when filtered */
.stl-item[style*="display: none"] { display: none !important; }

/* ── Mobile story ────────────────────────────────────── */
@media (max-width: 768px) {
  .story-filter-bar { position: relative; padding: 0.75rem 0; }
  .story-filters { padding: 0 6vw; gap: 0.4rem; }
  .story-filter-btn { font-size: 0.75rem; padding: 0.35rem 0.8rem; }

  .stl-timeline { padding: 0; overflow: hidden; }
  .stl-timeline::before { left: 54px; }

  .stl-item { grid-template-columns: 64px 1fr; gap: 0 1.5rem; overflow: hidden; }
  .stl-item::before { left: calc(55px + 1px); }

  .stl-item__left { padding-right: 0.5rem; min-width: 0; }
  .stl-item__year { font-size: 0.62rem; }

  /* Allow the card (1fr grid cell) to shrink — critical to prevent right-side overflow */
  .stl-item__card { padding: 1.1rem 1.25rem; min-width: 0; overflow: hidden; }
  .stl-item__inner { flex-direction: column; min-width: 0; }
  .stl-item__text { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
  .stl-item__img-col { width: 100%; max-width: 100%; }
  .stl-item__img { width: 100%; max-width: 100%; height: auto; }
  .stl-item__title { font-size: 1rem; overflow-wrap: break-word; word-break: break-word; }

  /* Read-more toggle — collapsible wrapper hidden by default on mobile */
  .stl-body--collapsed { display: none !important; }
  .stl-expand-wrap { padding-top: 0.5rem; }
  .stl-read-more {
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--coral);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem 0 0.2rem;
    display: block;
    width: 100%;
    text-align: left;
    letter-spacing: 0.02em;
  }
  .stl-read-more:hover { opacity: 0.75; }
}

/* ---- Work page supplements ---- */
.work-section { padding: 3rem 8vw 2rem; }
.por-section { padding: 2rem 8vw; }
.edu-section { padding: 2rem 8vw 4rem; }
.work-list { display: flex; flex-direction: column; }
.work-item__meta { display: flex; flex-direction: column; align-items: flex-start; position: relative; }
.work-item__meta .work-item__period { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--grey); }
.work-item__meta .work-item__bullet { width: 10px; height: 10px; background: var(--coral); border-radius: 50%; margin-top: 0.75rem; }
.work-item__body { }
.work-item__achievements { display: flex; flex-direction: column; gap: 0.6rem; list-style: none; margin: 1rem 0; }
.work-item__achievements li { font-size: 0.95rem; line-height: 1.6; color: var(--black); padding-left: 1.2rem; position: relative; }
.work-item__achievements li::before { content: '—'; position: absolute; left: 0; color: var(--coral); font-weight: 700; }
.work-item__highlight { margin-top: 1.25rem; padding: 1.25rem 1.5rem; background: rgba(255,77,46,0.05); border-left: 3px solid var(--coral); border-radius: 0 8px 8px 0; font-size: 0.9rem; line-height: 1.6; color: var(--black); }
.work-item__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0; }

/* Work item structure for work.html (uses meta/body instead of left/right) */
.work-item .work-item__meta + .work-item__body { }

/* edu-card aliases used in work.html */
.edu-card__year { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); margin-bottom: 0.25rem; }
.edu-card__title { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; }
.edu-card__org { font-size: 0.9rem; font-weight: 500; color: var(--grey); }

/* Page-level CTA section */
.page-cta { padding: 5rem 8vw; background: var(--offwhite); text-align: center; }
.page-cta__title { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 1rem; }
.page-cta__sub { font-size: 1rem; color: var(--grey); max-width: 480px; margin: 0 auto 2rem; line-height: 1.6; }
.page-cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* page-header__sub alias (used in story.html/work.html) */
.page-header__sub { margin-top: 1.5rem; font-size: 1.1rem; color: var(--grey); max-width: 560px; line-height: 1.6; }

@media (max-width: 768px) {
  .work-snapshot__item { grid-template-columns: 1fr; }
  .work-snapshot__period { grid-row: auto; grid-column: auto; }
  .work-section, .por-section, .edu-section { padding: 2rem 6vw; }
  .page-cta { padding: 3rem 6vw; }
  .story-intro { padding: 2rem 6vw 3rem; }

  /* Hero — mobile: stack text top, image bottom */
  .panel-hero {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 3rem 6vw 0;
    gap: 0;
    overflow: hidden;
  }
  .panel-hero__content {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 0;
    padding-bottom: 1rem;
  }
  .panel-hero__headline { font-size: clamp(2.2rem, 7vw, 3.5rem); min-height: 3.5em; }
  .panel-hero__visual {
    flex: none;
    max-width: 100%;
    width: 100%;
    height: 40vh;
    align-self: stretch;
  }
  .hero-visual {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: none;
  }
  .hero-visual__blob { width: 65%; }
  .hero-visual__photo { width: 72%; }
  .hero-pill { font-size: 0.65rem; padding: 0.3rem 0.65rem; }
  .hero-pill--1 { top: 4%;    left: 4%; }
  .hero-pill--2 { top: 12%;   right: 4%; }
  .hero-pill--3 { top: 38%;   left: 2%; }
  .hero-pill--4 { top: 32%;   right: 3%; }
  .hero-pill--5 { bottom: 22%; left: 4%; }
  .hero-pill--6 { bottom: 16%; right: 4%; }
  .hero-pill--7 { bottom: 4%;  left: 50%; }
}

/* ------------------------------------------------
   20. SUPPLEMENTARY II — certifications, testimonials,
       projects, resources, brain page classes
------------------------------------------------ */

/* ---- Certifications page ---- */
.certs-section { padding: 3rem 0 4rem; }
.certs-grid { padding: 0; }
.cert-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.cert-card__issuer {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.04em;
}
.cert-card__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--grey);
  margin-top: 0.25rem;
}
.certs-note {
  padding: 2rem 0 4rem;
  font-size: 0.85rem;
  color: var(--grey);
  font-style: italic;
  border-top: 1px solid var(--light-grey);
}

/* ---- Testimonials page ---- */
.testimonials-section { padding: 3rem 0 2rem; }
.testimonial-featured {
  padding: 4rem 8vw;
  background: var(--charcoal);
  margin-bottom: 0;
}
.testimonial-featured__quote {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--white);
  max-width: 820px;
  margin-bottom: 2rem;
  font-style: italic;
}
.testimonial-featured__attr {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
}
.testimonial-featured__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
}
.testimonial-featured__role {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.testimonial-featured__context {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
}
.testimonials-grid {
  padding: 0;
  background: var(--light-grey);
}
/* alias: testimonial-card__quote → testimonial-card__text */
.testimonial-card__quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--black);
  flex: 1;
}
/* alias: testimonial-card__attr → testimonial-card__author */
.testimonial-card__attr {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-grey);
}

/* ---- Projects page ---- */
.projects-section { padding: 3rem 0 4rem; }
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.project-item {
  padding: 3rem 0;
  border-bottom: 1px solid var(--light-grey);
}
.project-item:first-child { border-top: 1px solid var(--light-grey); }
.project-item__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1rem;
}
.project-item__tag { margin-bottom: 0.5rem; display: inline-block; }
.project-item__title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.project-item__sub {
  font-size: 0.85rem;
  color: var(--grey);
  font-weight: 400;
}
.project-item__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--coral);
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.project-item__link:hover { opacity: 0.7; }
.project-item__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--grey);
  max-width: 780px;
  margin-bottom: 1.25rem;
}
.project-item__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ---- Resources page ---- */
.resources-section { padding: 3rem 0 2rem; }
.resources-coming-soon {
  padding: 4rem 8vw 3rem;
  max-width: 680px;
}
.resources-coming-soon__icon {
  font-size: 2rem;
  color: var(--coral);
  margin-bottom: 1.5rem;
}
.resources-coming-soon__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--black);
}
.resources-coming-soon__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--grey);
  margin-bottom: 1rem;
  max-width: 540px;
}
.resources-preview { padding: 4rem 8vw 5rem; border-top: 1px solid var(--light-grey); }
.resources-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.resource-preview-card {
  padding: 2rem;
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s;
}
.resource-preview-card:hover { border-color: var(--black); }
.resource-preview-card__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.resource-preview-card__desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--grey);
  flex: 1;
}
.resource-preview-card__status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0.6;
}

/* ---- Brain page ---- */
.brain-section { padding: 3rem 0 1rem; }
.beliefs-list {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
}
/* belief-item already defined; alias inner elements */
.belief-item__num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--coral);
  padding-top: 0.5rem;
  text-transform: uppercase;
}
.belief-item__body { }
.belief-item__title {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.belief-item__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--grey);
  max-width: 680px;
}
.brain-models-section { padding: 2rem 0 4rem; background: var(--offwhite); margin-top: 0; }
.brain-models-section .container { padding-top: 3rem; padding-bottom: 3rem; }
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.model-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--light-grey);
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.model-card:hover { border-color: var(--coral); transform: translateY(-3px); }
.model-card__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.model-card__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--grey);
}

@media (max-width: 768px) {
  .testimonial-featured { padding: 3rem 6vw; }
  .resources-coming-soon { padding: 3rem 6vw 2rem; }
  .resources-preview { padding: 3rem 6vw 4rem; }
  .brain-models-section .container { padding-top: 2rem; padding-bottom: 2rem; }
  .project-item__header { flex-direction: column; gap: 0.75rem; }
  .beliefs-list .belief-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .beliefs-list .belief-item__num { padding-top: 0; }
}

/* ── Site Footer ─────────────────────────────────────── */
.site-footer {
  background: var(--black);
  padding: 3rem 0;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer__brand {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--white);
}
.site-footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  margin-top: 0.35rem;
}
.site-footer__left {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.site-footer__nav a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.site-footer__nav a:hover { color: var(--white); }
.site-footer__nav .footer-li-link {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}
.site-footer__nav .footer-li-link:hover { color: var(--teal); }

@media (max-width: 768px) {
  .site-footer { padding: 2.5rem 0; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .site-footer__nav { gap: 0.85rem 1.25rem; }
}

/* ── Home Testimonials Section ───────────────────────── */
.home-testimonials {
  padding: 5rem 0 4.5rem;
  background: var(--offwhite);
  overflow: hidden;
}
.home-testimonials .container { margin-bottom: 0; }
.home-testimonials__title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.home-testimonials__marquee {
  overflow: hidden;
  width: 100%;
  margin-top: 2.5rem;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.home-testimonials__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeScroll 60s linear infinite;
}
.home-testimonials__track:hover { animation-play-state: paused; }
.home-testi-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  width: 360px;
  flex-shrink: 0;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.home-testi-card:hover { border-color: var(--coral); transform: translateY(-3px); }
.home-testi-card__quote {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--charcoal);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.home-testi-card__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.home-testi-card__role {
  display: block;
  font-size: 0.78rem;
  color: var(--grey);
  margin-top: 0.2rem;
}
.home-testimonials__footer {
  margin-top: 2.5rem;
  text-align: center;
}
@media (max-width: 768px) {
  .home-testimonials { padding: 3.5rem 0 3rem; }
  .home-testi-card { width: 290px; padding: 1.4rem 1.5rem; }
}

/* ── Panel: Case Study Preview ───────────────────────── */
.panel-cases { background: var(--offwhite); }
.panel-cases__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.panel-cases__heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0.5rem 0 1.1rem;
  color: var(--black);
}
.panel-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.panel-case-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  padding: 1rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.2s, transform 0.25s var(--ease-out);
}
.panel-case-card:hover { border-color: var(--coral); transform: translateY(-4px); }
.panel-case-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-case-card__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--grey);
}
.panel-case-card__title {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--black);
  flex: 1;
}
.panel-case-card__metric {
  font-size: 0.8rem;
  color: var(--coral);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.panel-case-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.01em;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--light-grey);
  transition: color 0.2s;
}
.panel-case-card__link:hover { color: var(--coral); }

/* ── Brand Logos Marquee ─────────────────────────────── */
.brands-logos-section {
  margin-top: 1.75rem;
  border-top: 1px solid var(--light-grey);
  padding-top: 1.5rem;
}
.logos-marquee {
  overflow: hidden;
  width: 100vw;
  margin-left: -8vw;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }
.brand-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity 0.25s, filter 0.25s;
}
.brand-logo:hover { opacity: 1; filter: grayscale(0%); }

/* ── Nav overlay padding tightened for smaller font ──── */
.nav-overlay__link { padding: 0.5rem 0; }
.nav-overlay__inner { gap: 0; }

@media (max-width: 768px) {
  /* ── Homepage panels ─────────────────────── */
  .panel-cases__grid { grid-template-columns: 1fr; gap: 1rem; }
  .panel-cases__content { padding: 2rem 6vw 3rem; overflow-y: auto; }
  .panel-cases__heading { font-size: 1.8rem; margin-bottom: 1rem; }
  .logos-track { gap: 2.5rem; }

  /* Panel brands on mobile — remove forced full-screen height */
  .panel-brands { min-height: auto; }
  .panel-brands__content { padding: 3.5rem 6vw; }
  .brands-logos-section { margin-top: 1.25rem; }
  .logos-marquee { margin-left: -6vw; width: 100vw; }
  .brand-logo { height: 80px; }

  /* Panel CTA on mobile — remove forced full-screen height */
  .panel-cta { min-height: auto; }
  .panel-cta__content { padding-top: 4rem; padding-bottom: 4rem; }
  .panel-cta__headline { font-size: clamp(2rem, 8vw, 3rem); }
  .panel-cta__sub { font-size: 0.9rem; }
  .panel-cta__actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .panel-cta__links { gap: 1rem; flex-wrap: wrap; }

  /* Case study image carousel on mobile */
  .block--images { padding: 2rem 0; }
  .block__img-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0.5rem 6vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .block__img-grid::-webkit-scrollbar { display: none; }
  .block__img {
    flex-shrink: 0;
    width: 82vw;
    scroll-snap-align: start;
    border-radius: 10px;
  }

  /* ── Case studies page ───────────────────── */
  .filter-bar { padding: 1.1rem 5vw; gap: 0.5rem; position: relative; }
  .filter-btn { font-size: 0.72rem; padding: 0.38rem 0.85rem; }
  .cases-grid { padding: 0; }
  .case-card { padding: 1.75rem; }
  .case-card__metric-number { font-size: 1.5rem; }

  /* ── Case study detail pages ─────────────── */
  .block--results .result-item__number { font-size: 2.5rem; }
  .block__results-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .block__takeaway-cards { grid-template-columns: 1fr; }
  .block--case-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
  .case-nav-link { font-size: 0.85rem; }

  /* ── Testimonials on mobile ──────────────── */
  .testimonial-featured { padding: 2rem 6vw; }
  .testimonials-grid { gap: 1rem; }
}
