/* ============================================
   SOCIAL MD — Brand Identity System
   Patient Acquisition Partner for Aesthetic Professionals
   Version 1.0 — 2024
   ============================================ */

/* ---- 1. CSS VARIABLES ---- */
:root {
  --terracotta:     #B5603C;
  --terracotta-lt:  #C97A58;
  --terracotta-dk:  #8C4830;

  --sage:           #7B8B6F;
  --sage-lt:        #9EAC90;
  --sage-dk:        #4A5944;

  --gold:           #C4A265;
  --gold-lt:        #D4B882;

  --sand:           #D9BC98;
  --sand-lt:        #E5E5E5;

  --cream:          #FFFFFF;
  --linen:          #F2F2F2;
  --warm-white:     #FAFAFA;

  --clay:           #000000;
  --clay-mid:       #333333;
  --espresso:       #000000;
  --tobacco:        #8B5B35;

  --text-on-dark:   #FFFFFF;
  --text-mid:       #444444;
  --text-light:     #888888;

  --font:           'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;

  --nav-h:          80px;
  --sec-pad:        clamp(80px, 10vw, 130px);
  --cont-max:       1240px;
  --cont-pad:       clamp(24px, 5vw, 80px);

  --ease:           cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- 2. RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--clay);
  line-height: 1.7;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

/* Paper grain overlay — applied over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); }

/* ---- 3. TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: 0.06em; }
h4 { font-size: 0.85rem; letter-spacing: 0.14em; }

p {
  font-weight: 300;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.85;
  color: var(--clay-mid);
}

.eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

/* ---- 4. LAYOUT ---- */
.container {
  max-width: var(--cont-max);
  margin: 0 auto;
  padding: 0 var(--cont-pad);
}

.section-header { margin-bottom: clamp(40px, 6vw, 70px); }
.section-header h2 { margin-top: 0.5rem; }

/* ---- 5. BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 38px;
  border-radius: 2px;
  transition: all 0.35s var(--ease);
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--terracotta-lt);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(181, 96, 60, 0.32);
}

.btn-secondary {
  background: transparent;
  color: var(--clay);
  border: 1px solid rgba(0, 0, 0, 0.35);
}
.btn-secondary:hover {
  background: var(--clay);
  color: var(--cream);
  border-color: var(--clay);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-nav {
  background: var(--terracotta);
  color: #fff;
  padding: 11px 24px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  flex-shrink: 0;
}
.btn-nav:hover { background: var(--terracotta-lt); }

/* ---- 6. NAVIGATION ---- */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

#main-nav.scrolled {
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-container {
  max-width: var(--cont-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--cont-pad);
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo image mark */
.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Legacy text logo fallback */
.logo {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin-left: auto;
  margin-right: 1.5rem;
}

.nav-links a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: all 0.35s var(--ease);
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
  backdrop-filter: blur(2px);
}

.mobile-overlay.active { display: block; }

/* ---- 7. ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in[data-delay="130"] { transition-delay: 0.13s; }
.fade-in[data-delay="260"] { transition-delay: 0.26s; }
.fade-in[data-delay="390"] { transition-delay: 0.39s; }
.fade-in[data-delay="520"] { transition-delay: 0.52s; }
.fade-in[data-delay="650"] { transition-delay: 0.65s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---- 8. HERO — SCROLL EXPANSION ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Linen background — fades out as video expands */
.hero-expand-bg {
  position: absolute;
  inset: 0;
  background: var(--linen);
  z-index: 0;
}

/* Video container — JS animates width / height / border-radius */
.hero-expand-media {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.hero-expand-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark tint over video — JS controls opacity */
.hero-media-tint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
  pointer-events: none;
}

/* Text — JS controls translateX, color, opacity */
.hero-expand-text {
  position: relative;
  z-index: 10;
  text-align: center;
  pointer-events: none;
  padding: 0 var(--cont-pad);
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
  display: block;
}

.hero-title-a,
.hero-title-b {
  display: block;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--clay);
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.hint-line {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* Content revealed after full expansion */
.hero-expanded-content {
  position: absolute;
  bottom: clamp(60px, 10vh, 110px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  pointer-events: none;
  width: 90%;
  max-width: 620px;
}

.hero-expanded-content.visible {
  opacity: 1;
  pointer-events: auto;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- 9. BRAND STATEMENT ---- */
.brand-statement {
  background: var(--linen);
  padding: var(--sec-pad) 0;
  position: relative;
  overflow: hidden;
}

.brand-statement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(196, 162, 101, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* Watermark logo in statement section */
.brand-statement::after {
  content: '';
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  background-image: url('../img/logo-cream.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.statement-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.statement-quote {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clay);
  line-height: 1.2;
}

.statement-quote em {
  font-style: normal;
  color: var(--terracotta);
}

.statement-body {
  padding-left: clamp(0px, 4vw, 44px);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.statement-body p {
  color: var(--clay-mid);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.statement-body p:last-child { margin-bottom: 0; }

/* ---- 10. PILLARS ---- */
.pillars {
  background: var(--linen);
  padding: var(--sec-pad) 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.pillar-card {
  background: var(--cream);
  padding: clamp(36px, 5vw, 60px) clamp(28px, 4vw, 50px);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
}

.pillar-card:hover {
  background: #fff;
  transform: translateY(-5px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.07);
  z-index: 1;
}

.pillar-number {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  margin-bottom: 1.75rem;
}

.pillar-line {
  width: 28px;
  height: 1px;
  background: var(--terracotta);
  margin-bottom: 1.5rem;
}

.pillar-card h3 {
  color: var(--clay);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.pillar-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.85;
}

/* ---- 11. GRADIENT SECTION ---- */
.gradient-section {
  padding: var(--sec-pad) 0;
  background: linear-gradient(
    175deg,
    var(--clay)    0%,
    var(--sage-dk) 32%,
    var(--sand)    68%,
    var(--cream)   100%
  );
  position: relative;
}

.gradient-content { max-width: 820px; }
.gradient-content .eyebrow { color: var(--sand-lt); }

.gradient-content h2 {
  color: #fff;
  margin-top: 0.5rem;
  margin-bottom: 1.75rem;
}

.gradient-content > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 580px;
}

/* ---- 12. SPLIT SECTION ---- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

.split-image {
  position: relative;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.split-image:hover img { transform: scale(1.04); }

.split-content {
  background: var(--linen);
  padding: clamp(60px, 8vw, 110px) clamp(40px, 7vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-content h2 { color: var(--clay); margin-top: 0.5rem; margin-bottom: 1.5rem; }
.split-content p { margin-bottom: 1.1rem; }
.split-content .btn { margin-top: 1.75rem; align-self: flex-start; }

/* ---- 13. SYSTEM PREVIEW ---- */
.system-preview {
  background: var(--espresso);
  padding: var(--sec-pad) 0;
  position: relative;
  overflow: hidden;
}

.system-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(181, 96, 60, 0.1) 0%, transparent 55%);
  pointer-events: none;
}

.system-preview .section-header .eyebrow { color: var(--sand); }
.system-preview .section-header h2 { color: #fff; }

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.system-card {
  background: rgba(255, 255, 255, 0.025);
  padding: clamp(32px, 4vw, 50px) clamp(24px, 3vw, 38px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.35s var(--ease);
}

.system-card:hover { background: rgba(255, 255, 255, 0.06); }

.system-num {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  margin-bottom: 1.75rem;
}

.system-card h3 { color: #fff; margin-bottom: 0.75rem; font-size: 0.95rem; }
.system-card p { color: rgba(255, 255, 255, 0.48); font-size: 0.85rem; line-height: 1.75; }

.system-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  transition: color 0.25s;
}

.system-link:hover { color: var(--terracotta-lt); }

.system-cta { margin-top: clamp(44px, 6vw, 64px); }
.system-preview .btn-secondary {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.18);
}
.system-preview .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ---- 14a. TESTIMONIALS SCROLL (columns) ---- */
.testimonials-scroll {
  background: var(--cream);
  padding: var(--sec-pad) 0;
  overflow: hidden;
}

.testimonials-scroll .section-header {
  margin-bottom: 3rem;
}

.testimonials-scroll-tag {
  display: inline-block;
  border: 1px solid var(--sand);
  color: var(--clay-mid);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3em 1em;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.testimonials-scroll-columns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  max-height: 740px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.testimonials-scroll-col {
  flex: 0 0 320px;
  max-width: 320px;
  overflow: hidden;
}

.testimonials-scroll-col.col-md { display: none; }
.testimonials-scroll-col.col-lg { display: none; }

@media (min-width: 768px) {
  .testimonials-scroll-col.col-md { display: block; }
}
@media (min-width: 1024px) {
  .testimonials-scroll-col.col-lg { display: block; }
}

@keyframes testimonials-scroll-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.testimonials-scroll-track {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  animation: testimonials-scroll-up linear infinite;
}

.testimonials-scroll-card {
  background: var(--linen);
  border: 1px solid var(--sand-lt);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.testimonials-scroll-card-text {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--clay-mid);
  font-style: italic;
}

.testimonials-scroll-card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.testimonials-scroll-card-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonials-scroll-card-meta {
  display: flex;
  flex-direction: column;
}

.testimonials-scroll-card-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  line-height: 1.3;
}

.testimonials-scroll-card-role {
  font-size: 0.72rem;
  color: var(--terracotta);
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-top: 0.1rem;
}

/* ---- 14. TESTIMONIALS ---- */
.testimonials {
  background: var(--linen);
  padding: var(--sec-pad) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.testimonial-card {
  background: var(--cream);
  padding: clamp(32px, 4vw, 52px);
}

.testimonial-bar {
  width: 24px;
  height: 1px;
  background: var(--terracotta);
  margin-bottom: 1.75rem;
}

.testimonial-quote {
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  font-weight: 300;
  color: var(--clay-mid);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}

.testimonial-title {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--terracotta);
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

/* ---- 15. WORK PREVIEW ---- */
.work-preview {
  background: var(--cream);
  padding: var(--sec-pad) 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease);
}

.work-card:hover img { transform: scale(1.06); }

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.08) 55%, transparent 75%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 36px);
  transition: background 0.45s var(--ease);
}

.work-card:hover .work-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(181, 96, 60, 0.15) 100%);
}

.work-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta-lt);
  margin-bottom: 0.5rem;
}

.work-card h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.07em;
}

.work-card p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  line-height: 1.5;
}

.work-cta { text-align: center; }

/* ---- 15b. CONTAINER SCROLL ANIMATION ---- */
.cs-section {
  background: var(--espresso);
  height: 1100px;
  position: relative;
}

@media (max-width: 767px) {
  .cs-section { height: 900px; }
}

.cs-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 40px) clamp(16px, 4vw, 40px);
  overflow: hidden;
  perspective: 1000px;
}

.cs-header {
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 40px);
  will-change: transform;
}

.cs-header .eyebrow { color: rgba(232, 213, 192, 0.5); }

.cs-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0.4rem 0 0.75rem;
}

.cs-header p {
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  font-weight: 300;
  color: rgba(232, 213, 192, 0.6);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.7;
}

.cs-card-outer {
  width: 100%;
  max-width: 1060px;
  will-change: transform;
  transform-origin: center top;
  box-shadow:
    0 0 0 0 #0000004d,
    0 9px 20px #0000004a,
    0 37px 37px #00000042,
    0 84px 50px #00000026,
    0 149px 60px #0000000a;
  border-radius: 24px;
}

.cs-card-frame {
  background: #1a1008;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 6px;
}

.cs-card-screen {
  border-radius: 18px;
  overflow: hidden;
  background: var(--cream);
}

/* ── Dashboard Mockup ── */
.dash {
  background: var(--cream);
  font-family: var(--font);
  padding: 0;
  user-select: none;
  height: clamp(320px, 42vw, 560px);
  display: flex;
  flex-direction: column;
}

.dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--linen);
  border-bottom: 1px solid var(--sand-lt);
  flex-shrink: 0;
}

.dash-bar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dash-bar-logo {
  width: 18px;
  height: 18px;
  background: var(--terracotta);
  border-radius: 4px;
}

.dash-bar-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}

.dash-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-bar-practice {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--clay-mid);
  background: var(--cream);
  border: 1px solid var(--sand-lt);
  padding: 0.2em 0.65em;
  border-radius: 100px;
}

.dash-bar-range {
  font-size: 0.65rem;
  color: var(--text-light);
}

.dash-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 1px;
  background: var(--sand-lt);
  flex: 1;
  min-height: 0;
}

/* KPI Cards */
.dash-kpi {
  background: var(--cream);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dash-kpi-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}

.dash-kpi-value {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--clay);
  letter-spacing: -0.03em;
  line-height: 1;
}

.dash-kpi-delta {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--sage-dk);
  background: rgba(123, 139, 111, 0.1);
  display: inline-block;
  padding: 0.15em 0.45em;
  border-radius: 100px;
  width: fit-content;
}

.dash-kpi-sub {
  font-size: 0.6rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

/* Chart panel */
.dash-chart {
  background: var(--cream);
  padding: 0.9rem 1.1rem;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}

.dash-chart-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
}

.dash-chart-area {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  min-height: 0;
  padding-bottom: 2px;
}

.dash-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  height: 100%;
}

.dash-bar-col-fill {
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: var(--sand);
  transition: background 0.2s;
  min-height: 3px;
}

.dash-bar-col-fill.highlight { background: var(--terracotta); }

.dash-bar-col-label {
  font-size: 0.42rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Pipeline panel */
.dash-pipeline {
  background: var(--linen);
  padding: 0.9rem 1rem;
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
}

.dash-pipeline-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.25rem;
}

.dash-pipeline-stage {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dash-pipeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-pipeline-name {
  font-size: 0.6rem;
  color: var(--clay-mid);
  font-weight: 400;
}

.dash-pipeline-count {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--clay);
}

.dash-pipeline-bar-bg {
  height: 4px;
  background: var(--sand-lt);
  border-radius: 2px;
  overflow: hidden;
}

.dash-pipeline-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--terracotta);
}

/* ---- 16. CTA SECTION ---- */
.cta-section {
  background: #000000;
  padding: var(--sec-pad) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.05) 0%, transparent 55%);
  pointer-events: none;
}

.cta-content { max-width: 680px; }
.cta-section .eyebrow { color: rgba(255, 255, 255, 0.4); }
.cta-section h2 { color: #fff; margin-top: 0.5rem; margin-bottom: 1.5rem; }

.cta-section > .container > .cta-content > p {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  max-width: 500px;
}

.cta-buttons { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 2.75rem; }

.cta-section .btn-primary { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.cta-section .btn-primary:hover {
  background: var(--terracotta-dk);
  border-color: var(--terracotta-dk);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* ---- 17. FOOTER ---- */
footer {
  background: var(--espresso);
  padding: clamp(60px, 8vw, 100px) 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(30px, 5vw, 60px);
  margin-bottom: clamp(48px, 7vw, 80px);
}

.footer-brand .logo-link { margin-bottom: 1.5rem; }
.footer-brand .logo-img { height: 58px; width: 58px; border-radius: 8px; opacity: 0.9; }
.footer-brand .logo { color: #fff; font-size: 0.95rem; display: block; margin-bottom: 1.25rem; }

.footer-brand p {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.82rem;
  line-height: 1.85;
  max-width: 250px;
  font-weight: 300;
}

.footer-col h4 {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}

.footer-col ul li { margin-bottom: 0.65rem; }

.footer-col ul li a {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s;
}

.footer-col ul li a:hover { color: rgba(255, 255, 255, 0.85); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
}

.footer-social { display: flex; gap: 0.75rem; }

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.28s;
}

.footer-social a:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

/* ---- 18. POPUP ---- */
#popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 14, 8, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#popup-overlay.active { opacity: 1; pointer-events: all; }

#popup {
  background: var(--linen);
  max-width: 480px;
  width: 100%;
  padding: clamp(40px, 5vw, 64px);
  border-radius: 4px;
  position: relative;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.45s var(--ease);
  box-shadow: 0 32px 90px rgba(26, 14, 8, 0.35);
}

#popup-overlay.active #popup { transform: translateY(0) scale(1); }

#popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  cursor: pointer;
  color: var(--clay-mid);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.28s;
  line-height: 1;
}

#popup-close:hover { background: var(--clay); color: #fff; border-color: var(--clay); }

.popup-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

#popup h3 {
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  color: var(--clay);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

#popup p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.popup-cta { width: 100%; text-align: center; }
.popup-cta .btn { width: 100%; text-align: center; }

/* ---- 19. QUIZ POPUP ---- */
.quiz-progress-track {
  height: 2px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--terracotta);
  border-radius: 2px;
  width: 20%;
  transition: width 0.4s var(--ease);
}

.quiz-step-count {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  display: block;
}

.quiz-slide { display: none; }
.quiz-slide.active { display: block; }

.quiz-slide h3 {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--clay);
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.quiz-opt {
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--clay-mid);
  text-align: left;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  line-height: 1.4;
}

.quiz-opt:hover {
  border-color: var(--terracotta);
  background: #fff;
  color: var(--clay);
}

.quiz-opt.selected {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-back-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  transition: color 0.22s;
  opacity: 0;
  pointer-events: none;
}

.quiz-back-btn.visible { opacity: 1; pointer-events: auto; }
.quiz-back-btn:hover { color: var(--clay); }

.quiz-next-btn { margin-left: auto; }

.quiz-next-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.quiz-results { display: none; text-align: center; }

.quiz-results h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--clay);
  margin-bottom: 1rem;
}

.quiz-results > p { margin-bottom: 1.75rem; }

.quiz-results-cta { display: block; width: 100%; text-align: center; }

.quiz-results-note {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.85rem;
  margin-bottom: 0;
  font-weight: 300;
}

/* ---- 20. PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--clay);
  padding: calc(var(--nav-h) + 90px) 0 90px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(181, 96, 60, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 40%, rgba(123, 139, 111, 0.14) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero .eyebrow { color: var(--sand); }

.page-hero h1 {
  color: #fff;
  max-width: 720px;
  margin-top: 0.5rem;
}

.page-hero > .container > p {
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  max-width: 540px;
  margin-top: 1.5rem;
}

/* ---- 19b. SYSTEM TABS (hero-195 style feature tabs) ---- */
.sys-tabs-section {
  background: var(--linen);
  padding: var(--sec-pad) 0;
}

.sys-tabs-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.sys-tabs-header p {
  margin-top: 1rem;
  color: var(--clay-mid);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.8;
}

/* Tab bar */
.sys-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--cream);
  border: 1px solid var(--sand-lt);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 2.5rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.sys-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clay-mid);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.sys-tab:hover { background: var(--linen); }

.sys-tab.active {
  background: var(--clay);
  color: var(--sand-lt);
}

.sys-tab-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.sys-tab.active .sys-tab-num { opacity: 0.5; }

/* Panels */
.sys-tab-panel { display: none; }
.sys-tab-panel.active { display: block; }

/* Card wrapper — rotating border beam */
.sys-tab-card-wrap {
  position: relative;
  border-radius: 20px;
  padding: 1.5px;
  overflow: hidden;
  background: var(--sand-lt);
}

.sys-tab-card-wrap::before {
  content: '';
  position: absolute;
  inset: -80%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 190deg,
    var(--terracotta-lt) 230deg,
    var(--gold) 270deg,
    var(--sand) 290deg,
    transparent 320deg
  );
  animation: sys-beam-spin 4s linear infinite;
  pointer-events: none;
}

@keyframes sys-beam-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.sys-tab-card {
  position: relative;
  z-index: 1;
  border-radius: 19px;
  background: var(--cream);
  overflow: hidden;
}

.sys-tab-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 420px;
}

.sys-tab-card-text {
  padding: clamp(36px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sys-tab-card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.sys-tab-card-text h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--clay);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.sys-tab-card-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--clay-mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.sys-tab-card-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sys-tab-card-list li {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--clay-mid);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.sys-tab-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

.sys-tab-card-link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.2s;
}

.sys-tab-card-link:hover { color: var(--terracotta-dk); }

.sys-tab-card-visual {
  position: relative;
  overflow: hidden;
  border-radius: 0 19px 19px 0;
}

.sys-tab-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.sys-tab-card-wrap:hover .sys-tab-card-visual img {
  transform: scale(1.03);
}

/* Tracing beam sidebar */
.sys-tracing-wrap {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

/* Responsive */
@media (max-width: 900px) {
  .sys-tab-card-body {
    grid-template-columns: 1fr;
  }
  .sys-tab-card-visual {
    height: 240px;
    border-radius: 0 0 19px 19px;
  }
}

@media (max-width: 640px) {
  .sys-tabs-nav {
    flex-wrap: wrap;
    width: 100%;
    gap: 4px;
  }
  .sys-tab {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    padding: 0.6rem 0.75rem;
  }
}

/* ---- 20. SYSTEM PAGE ---- */
.system-engine {
  padding: var(--sec-pad) 0;
  background: var(--cream);
}

.system-engine:nth-child(even) { background: var(--linen); }

.engine-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}

.engine-label {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
}

.engine-big-num {
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(0, 0, 0, 0.05);
  line-height: 0.9;
  margin-bottom: 0.75rem;
}

.system-engine:nth-child(even) .engine-big-num { color: rgba(0, 0, 0, 0.04); }

.engine-label h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: var(--clay);
}

.engine-content {}

.engine-content h3 {
  color: var(--clay);
  font-size: 0.88rem;
  margin-top: 2.5rem;
  margin-bottom: 0.65rem;
  letter-spacing: 0.1em;
}

.engine-content h3:first-child { margin-top: 0; }

.engine-content > p { margin-bottom: 1.5rem; }

.engine-list {
  margin: 0.75rem 0 2rem;
}

.engine-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--clay-mid);
  line-height: 1.6;
}

.engine-list li::before {
  content: '→';
  color: var(--terracotta);
  font-size: 0.78rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- 21. WORK PAGE ---- */
.work-full { padding: var(--sec-pad) 0; }

.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-bottom: clamp(60px, 8vw, 100px);
  margin-bottom: clamp(60px, 8vw, 100px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.case-study:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.case-study.reverse { direction: rtl; }
.case-study.reverse > * { direction: ltr; }

.case-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.case-study:hover .case-image img { transform: scale(1.04); }

.case-content .eyebrow { margin-bottom: 0.75rem; }

.case-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: var(--clay);
  margin-bottom: 1.5rem;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0, 0, 0, 0.07);
  margin: 1.75rem 0 2rem;
}

.metric {
  background: var(--cream);
  padding: 1.25rem 1rem;
  text-align: center;
}

.metric-val {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.metric-label {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
}

.case-detail { margin-bottom: 1.1rem; }

.case-detail strong {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.case-detail p { font-size: 0.88rem; color: var(--clay-mid); line-height: 1.75; }

/* ---- 22. ABOUT PAGE ---- */
.about-intro { padding: var(--sec-pad) 0; background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
}

.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-content h2 { color: var(--clay); margin-bottom: 1.5rem; }
.about-content p { margin-bottom: 1.25rem; }

.about-values { background: var(--clay); padding: var(--sec-pad) 0; }
.about-values .section-header .eyebrow { color: var(--sand); }
.about-values .section-header h2 { color: #fff; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.value-card {
  background: rgba(255, 255, 255, 0.04);
  padding: clamp(32px, 4vw, 52px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s var(--ease);
}

.value-card:hover { background: rgba(255, 255, 255, 0.07); }

.value-line {
  width: 28px;
  height: 1px;
  background: var(--terracotta);
  margin-bottom: 1.75rem;
}

.value-card h3 { color: #fff; margin-bottom: 0.75rem; font-size: 0.9rem; }
.value-card p { color: rgba(255, 255, 255, 0.48); font-size: 0.85rem; line-height: 1.82; }

.about-niche { background: var(--linen); padding: var(--sec-pad) 0; }
.niche-inner { max-width: 780px; }
.niche-inner h2 { color: var(--clay); margin-bottom: 1.5rem; }
.niche-inner p { margin-bottom: 1.25rem; }

/* ---- 23. RESOURCES PAGE ---- */
.resources-section { padding: var(--sec-pad) 0; }

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.resource-card {
  background: var(--cream);
  border-top: 2px solid transparent;
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.resource-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.07);
}

.resource-img { aspect-ratio: 16 / 10; overflow: hidden; }

.resource-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.resource-card:hover .resource-img img { transform: scale(1.05); }

.resource-body { padding: clamp(24px, 3vw, 36px); }

.resource-type {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.resource-card h3 {
  color: var(--clay);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.resource-card p { font-size: 0.84rem; color: var(--text-mid); line-height: 1.78; }

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  transition: gap 0.28s;
}

.resource-link:hover { gap: 0.85rem; }

/* ---- 24. CONTACT PAGE ---- */
.contact-section { padding: var(--sec-pad) 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.contact-info h2 { color: var(--clay); margin-bottom: 1.5rem; }
.contact-info > p { margin-bottom: 1.25rem; }

.contact-details { margin-top: 2.5rem; }

.contact-detail-item {
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.contact-detail-item:first-child { border-top: 1px solid rgba(0, 0, 0, 0.07); }

.contact-detail-item strong {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.contact-detail-item a,
.contact-detail-item span {
  font-size: 0.88rem;
  color: var(--clay-mid);
  font-weight: 300;
}

.contact-form {
  background: var(--linen);
  padding: clamp(40px, 5vw, 64px);
  border-radius: 2px;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--clay);
  transition: border-color 0.28s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: #fff;
}

.form-group textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.form-group select { cursor: pointer; }

.form-submit { width: 100%; margin-top: 0.5rem; }

/* Honeypot — must be hidden from real users */
.bot-field { display: none !important; }

/* Validation error states */
.form-error {
  display: none;
  font-size: 0.7rem;
  color: var(--terracotta-dk);
  margin-top: 0.35rem;
  font-weight: 500;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--terracotta);
  background: rgba(181, 96, 60, 0.04);
}

.form-group.has-error label {
  color: var(--terracotta-dk);
}

.form-note {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 300;
  text-align: center;
  line-height: 1.65;
}

/* ---- 25. RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .system-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .logo-img { height: 44px; width: 44px; }

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    background: var(--espresso);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 40px 40px;
    gap: 2rem;
    transition: right 0.45s var(--ease);
    z-index: 999;
    margin-left: 0;
    margin-right: 0;
  }

  .nav-links.open { right: 0; }
  .nav-links a { font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); }
  .btn-nav { display: none; }
  .mobile-toggle { display: flex; }

  /* Layout stacks */
  .statement-inner { grid-template-columns: 1fr; }
  .statement-body {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 0.5rem;
  }

  .pillars-grid { grid-template-columns: 1fr; gap: 2px; }

  .split-section { grid-template-columns: 1fr; }
  .split-image { aspect-ratio: 16 / 10; }

  .work-grid { grid-template-columns: 1fr 1fr; }

  .case-study { grid-template-columns: 1fr; }
  .case-study.reverse { direction: ltr; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image { aspect-ratio: 4 / 3; }

  .values-grid { grid-template-columns: 1fr 1fr; }

  .resources-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .engine-inner { grid-template-columns: 1fr; }
  .engine-label { position: static; }
  .engine-big-num { font-size: 4rem; }

  .case-metrics { grid-template-columns: repeat(3, 1fr); }

  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .cta-buttons { flex-direction: column; align-items: flex-start; }

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

@media (max-width: 520px) {
  .work-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .case-metrics { grid-template-columns: 1fr 1fr; }
  .pillar-card { padding: 36px 28px; }
}
