/* =========================================
   CSM Agency — Stylesheet
   ========================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #f5f0e8;
  --dark: #ede7da;
  --dark-2: #e3dcd0;
  --dark-3: #d8d0c2;
  --mid: #b5ab9a;
  --border: rgba(30, 22, 10, 0.10);
  --white: #1c1610;
  --off-white: #2e2318;
  --muted: #7a6e5c;
  --muted-2: #574e3e;
  --accent: #955a0f;
  --accent-2: #1e6e5c;
  --blue: #1e4e8c;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --font-serif: 'DM Serif Display', serif;
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary:hover {
  background: #7c4a0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(149, 90, 15, 0.28);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: rgba(30, 22, 10, 0.28);
  background: rgba(30, 22, 10, 0.05);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  text-decoration: none;
  flex-shrink: 0;
}

.logo-csm {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted-2);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  margin-left: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(245, 240, 232, 0.99);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px 32px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu ul a {
  text-decoration: none;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 32px 80px;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 40%, rgba(149, 90, 15, 0.06) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 10% 70%, rgba(30, 78, 140, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-link {
  color: var(--muted-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.hero-link:hover {
  color: var(--white);
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-rotating-wrapper {
  display: inline-block;
  position: relative;
  overflow: hidden;
  height: 1.1em;
  vertical-align: bottom;
}

.hero-rotating {
  display: inline-block;
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  position: relative;
  animation: none;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted-2);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-btn {
  font-size: 0.95rem;
  padding: 15px 32px;
}

/* ===== HERO MEDIA / IMAGE PANEL ===== */
.hero-media {
  position: relative;
}

.hero-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 580px;
  position: relative;
  box-shadow: 0 32px 80px rgba(30, 22, 10, 0.18), 0 8px 24px rgba(30, 22, 10, 0.10);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  opacity: 0;
  transition: transform 8s ease, opacity 0.65s ease;
}

.hero-img-wrap.video-ready .hero-video {
  opacity: 1;
}

.hero-img-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
  transition: transform 8s ease, opacity 0.65s ease;
}

.hero-img-wrap.video-ready .hero-img-fallback {
  opacity: 0;
}

.hero-img-wrap.video-fallback-only .hero-video {
  display: none;
}

.hero-img-wrap:hover .hero-video,
.hero-img-wrap:hover .hero-img-fallback {
  transform: scale(1.03);
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    160deg,
    transparent 55%,
    rgba(28, 22, 16, 0.35) 100%
  );
  pointer-events: none;
}

/* Floating metric cards */
.hero-float-card {
  position: absolute;
  background: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(30, 22, 10, 0.07);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(30, 22, 10, 0.14), 0 2px 8px rgba(30, 22, 10, 0.08);
  min-width: 160px;
  z-index: 3;
}

.hfc-1 {
  bottom: 32px;
  left: -36px;
  animation: floatA 4.5s ease-in-out infinite;
}

.hfc-2 {
  top: 36px;
  right: -28px;
  animation: floatB 5.5s ease-in-out infinite;
}

.hfc-3 {
  bottom: 110px;
  right: -28px;
  animation: floatA 6s ease-in-out infinite 1s;
}

@keyframes floatA {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
}

.hfc-icon {
  width: 36px;
  height: 36px;
  background: rgba(149, 90, 15, 0.10);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.hfc-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hfc-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hfc-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hfc-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
  animation: pulseLive 2s ease-in-out infinite;
}

@keyframes pulseLive {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 110, 92, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(30, 110, 92, 0); }
}

.hfc-stars {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* =========================================
   MARQUEE
   ========================================= */
.marquee-section {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 20px 0;
}

.marquee-track {
  width: 100%;
  overflow: hidden;
}

.marquee-inner {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-inner span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 40px;
  white-space: nowrap;
  position: relative;
}

.marquee-inner span::after {
  content: '·';
  position: absolute;
  right: -4px;
  color: var(--accent);
}

/* =========================================
   WHAT WE DO
   ========================================= */
.what-we-do {
  padding: 120px 0;
  background: var(--black);
}

.wwd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: start;
}

.wwd-headline h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0em;
  color: var(--white);
}

.wwd-body p {
  color: var(--muted-2);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--dark-2);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background var(--transition);
}

.stat-item:hover {
  background: var(--dark-3);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-prefix,
.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-prefix {
  margin-right: 2px;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-item p {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  margin-top: 8px;
}

/* =========================================
   AMBIENT VIDEO — full-bleed section backgrounds
   ========================================= */
.section-ambient-parent {
  position: relative;
  overflow: hidden;
}

/* Film grain above video, below section content */
.section-ambient-parent::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23g)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
}

@media (prefers-reduced-motion: no-preference) {
  .section-ambient-parent::after {
    animation: ambientGrainDrift 22s ease-in-out infinite;
  }
}

@keyframes ambientGrainDrift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-1.4%, 0.9%); }
  66% { transform: translate(0.8%, -1.1%); }
}

.section-ambient-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section-ambient-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  z-index: 0;
  filter: saturate(0.88) contrast(1.06);
}

.section-ambient-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.section-ambient-scrim--process {
  background: linear-gradient(
    165deg,
    rgba(245, 240, 232, 0.94) 0%,
    rgba(237, 231, 218, 0.82) 42%,
    rgba(227, 220, 208, 0.88) 100%
  );
}

.section-ambient-scrim--testi {
  background: linear-gradient(
    145deg,
    rgba(245, 240, 232, 0.95) 0%,
    rgba(237, 231, 218, 0.86) 55%,
    rgba(245, 240, 232, 0.93) 100%
  );
}

/* Full-bleed scrims (match Process: warm cream, light colour grade) */
.section-ambient-scrim--wwd {
  background: linear-gradient(
    115deg,
    rgba(245, 240, 232, 0.92) 0%,
    rgba(237, 231, 218, 0.78) 44%,
    rgba(232, 224, 212, 0.88) 100%
  );
}

.section-ambient-scrim--results {
  background: linear-gradient(
    265deg,
    rgba(245, 240, 232, 0.91) 0%,
    rgba(230, 234, 244, 0.74) 40%,
    rgba(240, 236, 228, 0.90) 100%
  );
}

.section-ambient-scrim--insights {
  background: linear-gradient(
    92deg,
    rgba(245, 240, 232, 0.91) 0%,
    rgba(242, 234, 224, 0.76) 48%,
    rgba(245, 240, 232, 0.89) 100%
  );
}

.section-ambient-scrim--partnership {
  background: linear-gradient(
    158deg,
    rgba(245, 240, 232, 0.93) 0%,
    rgba(237, 231, 218, 0.84) 52%,
    rgba(245, 240, 232, 0.92) 100%
  );
}

.section-ambient-scrim--cta-full {
  background: linear-gradient(
    148deg,
    rgba(245, 240, 232, 0.90) 0%,
    rgba(237, 231, 218, 0.82) 55%,
    rgba(232, 226, 216, 0.91) 100%
  );
}

.section-ambient-content {
  position: relative;
  z-index: 2;
}

.ambient-slot.video-fallback-only .section-ambient-video {
  display: none !important;
}

.ambient-slot.video-fallback-only .section-ambient-scrim--process,
.ambient-slot.video-fallback-only .section-ambient-scrim--testi,
.ambient-slot.video-fallback-only .section-ambient-scrim--wwd,
.ambient-slot.video-fallback-only .section-ambient-scrim--results,
.ambient-slot.video-fallback-only .section-ambient-scrim--insights,
.ambient-slot.video-fallback-only .section-ambient-scrim--partnership,
.ambient-slot.video-fallback-only .section-ambient-scrim--cta-full {
  background: var(--dark);
  opacity: 1;
}

.cta-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    152deg,
    rgba(216, 208, 194, 0.55) 0%,
    rgba(227, 220, 208, 0.35) 100%
  );
  border: 1px solid var(--border);
}

.cta-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   PROCESS
   ========================================= */
.process-section {
  padding: 120px 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.process-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0em;
  color: var(--off-white);
  max-width: 780px;
  margin-bottom: 72px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.process-step {
  background: var(--dark-2);
  padding: 48px 40px;
  position: relative;
  transition: background var(--transition);
  cursor: default;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition);
}

.process-step:hover {
  background: var(--dark-3);
}

.process-step:hover::before {
  background: var(--accent);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  transition: color var(--transition);
}

.process-step:hover .step-number {
  color: rgba(149, 90, 15, 0.20);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step-content p {
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* =========================================
   RESULTS / CASE STUDIES
   ========================================= */
.results-section {
  padding: 120px 0;
  background: var(--black);
}

.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.results-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0em;
  color: var(--white);
  flex: 1;
  min-width: 280px;
}

.results-header p {
  color: var(--muted-2);
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.65;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.case-card {
  background: var(--dark-2);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background var(--transition);
  cursor: pointer;
  overflow: hidden;
}

.case-card:hover {
  background: var(--dark-3);
}

.case-img-wrap {
  overflow: hidden;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
}

.case-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.case-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.case-large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background: var(--dark-3);
}

.case-large .case-img-wrap {
  aspect-ratio: auto;
  flex: 1;
  min-height: 220px;
}

.case-large h3 {
  font-size: 1.5rem !important;
  line-height: 1.3 !important;
}

.case-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(149, 90, 15, 0.09);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  width: fit-content;
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.case-card p {
  color: var(--muted-2);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.case-link {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
  margin-top: auto;
}

.case-card:hover .case-link {
  color: var(--accent);
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-section {
  padding: 120px 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.testimonials-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0em;
  text-align: center;
  margin-bottom: 16px;
}

.testi-sub {
  color: var(--muted-2);
  font-size: 1rem;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
  line-height: 1.7;
}

.testi-slider {
  overflow: hidden;
  position: relative;
}

.testi-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testi-card {
  min-width: 100%;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testi-stars {
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.testi-card blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-style: italic;
  color: var(--off-white);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0em;
  quotes: none;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
}

.testi-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.testi-author span {
  font-size: 0.8rem;
  color: var(--muted);
}

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.testi-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testi-btn:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

.testi-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mid);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* =========================================
   PARTNERSHIP SECTION
   ========================================= */
.partnership-section {
  padding: 120px 0;
  background: var(--black);
  border-top: 1px solid var(--border);
}

.partnership-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: rgba(227, 220, 208, 0.52);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 80px;
}

.partnership-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.partnership-text p {
  color: var(--muted-2);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.partnership-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: stretch;
  padding: 28px 32px;
  border: 1px solid rgba(30, 22, 10, 0.08);
  background: rgba(245, 240, 232, 0.35);
}

.partner-card-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.partnership-visual .p-card {
  background: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(30, 22, 10, 0.08);
}

.p-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--off-white);
  transition: transform var(--transition);
}

.p-card:hover {
  transform: translateX(8px);
}

.p-card-1 { animation: cardFloat 3s ease-in-out infinite; }
.p-card-2 { animation: cardFloat 3s ease-in-out 0.5s infinite; }
.p-card-3 { animation: cardFloat 3s ease-in-out 1s infinite; }

.p-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.p-dot.green { background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.p-dot.blue { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.p-dot.orange { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

/* =========================================
   INSIGHTS
   ========================================= */
.insights-section {
  padding: 120px 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.insights-header {
  margin-bottom: 60px;
}

.insights-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0em;
  max-width: 600px;
  line-height: 1.25;
}

.insights-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.insight-card {
  background: var(--dark-2);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background var(--transition);
  cursor: pointer;
  overflow: hidden;
  min-height: 260px;
}

.insight-card:hover {
  background: var(--dark-3);
}

.insight-featured {
  background: var(--dark-3);
}

.insight-img-wrap {
  overflow: hidden;
  flex-shrink: 0;
  aspect-ratio: 16 / 8;
}

.insight-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.insight-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.insight-date {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.insight-tag {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(149, 90, 15, 0.09);
  padding: 3px 10px;
  border-radius: 100px;
}

.insight-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: -0.01em;
  flex: 1;
}

.insight-featured h3 {
  font-size: 1.5rem;
}

.insight-read {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color var(--transition);
  margin-top: auto;
}

.insight-card:hover .insight-read {
  color: var(--accent);
}

/* =========================================
   FEATURED IN
   ========================================= */
.featured-section {
  padding: 64px 0;
  background: var(--black);
  border-top: 1px solid var(--border);
}

.featured-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 36px;
  font-family: var(--font-display);
}

.featured-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.feat-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition);
  cursor: default;
}

.feat-logo:hover {
  color: var(--muted-2);
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  padding: 80px 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: rgba(227, 220, 208, 0.48);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 80px;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(149, 90, 15, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.cta-text p {
  color: var(--muted-2);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.cta-btn {
  font-size: 1rem;
  padding: 16px 36px;
}

.cta-icon-wrap {
  text-align: center;
}

.cta-people {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.cp {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--dark-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-left: -16px;
}

.cp:first-child { margin-left: 0; }
.cp1 { background: #2563eb; }
.cp2 { background: #7c3aed; }
.cp3 { background: #059669; }

.cta-icon-wrap p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 64px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  font-size: 2rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 240px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(149, 90, 15, 0.07);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  text-decoration: none;
  color: var(--muted-2);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--white);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-img {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-img.visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes textSwap {
  0%, 30% { opacity: 1; transform: translateY(0); }
  35%, 65% { opacity: 0; transform: translateY(-20px); }
  70% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE — TABLET
   ========================================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-media {
    display: none;
  }

  .wwd-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

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

  .case-large {
    grid-column: 1 / 3;
    grid-row: auto;
  }

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

  .insight-featured {
    grid-column: 1 / 3;
  }

  .partnership-inner {
    grid-template-columns: 1fr;
    padding: 48px;
    gap: 48px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    padding: 48px;
    gap: 48px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   RESPONSIVE — MOBILE
   ========================================= */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav {
    padding: 0 20px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-media {
    display: none;
  }

  .hero-circle {
    display: none;
  }

  .section-ambient-video {
    opacity: 0.28;
  }

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

  .case-large {
    grid-column: auto;
    grid-row: auto;
  }

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

  .insight-featured {
    grid-column: auto;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .testi-card {
    padding: 32px 24px;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .partnership-inner,
  .cta-inner {
    padding: 32px 24px;
  }

  .process-section,
  .what-we-do,
  .results-section,
  .testimonials-section,
  .partnership-section,
  .insights-section,
  .cta-section {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .featured-logos {
    gap: 28px;
  }

  .feat-logo {
    font-size: 0.75rem;
  }
}

/* =========================================
   UX IMPROVEMENTS
   ========================================= */

/* ---- Skip link ---- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 1100;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ---- Smart navbar hide/show ---- */
.nav.hidden {
  transform: translateY(-100%);
}

/* ---- Hero scroll cue ---- */
.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: bounceCue 2s ease-in-out infinite;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  z-index: 2;
}

.scroll-cue:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(149, 90, 15, 0.08);
}

@keyframes bounceCue {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 48px;
  height: 48px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background var(--transition), border-color var(--transition);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* ---- Toast notification ---- */
.toast {
  position: fixed;
  bottom: 96px;
  right: 32px;
  z-index: 2000;
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 0.875rem;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  max-width: 300px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Custom cursor ---- */
.cursor-dot,
.cursor-ring {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition-property: opacity;
  transition-duration: 0.3s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  top: 0;
  left: 0;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(149, 90, 15, 0.45);
  top: 0;
  left: 0;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
}

body.cursor-hover .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: rgba(149, 90, 15, 0.85);
}

body.cursor-link .cursor-dot {
  background: var(--white);
}

body.cursor-link .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: rgba(30, 22, 10, 0.40);
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ---- Button ripple ---- */
.btn-primary,
.btn-outline {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleEffect 0.55s linear;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

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

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Nav active indicator ---- */
.nav-links li {
  position: relative;
}

.nav-links li::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links li.active::after {
  width: 100%;
}

.nav-links li.active a {
  color: var(--white);
}

/* ---- Modal (native <dialog>) ---- */
/* When opened with showModal(), the browser centers the dialog
   in the viewport automatically and adds ::backdrop */
.booking-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(600px, calc(100vw - 48px));
  max-height: 90vh;
  overflow: visible;
  z-index: 2000;
}

.booking-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* When using [open] attr directly (e.g. for testing only):
   add a simulated overlay */
.booking-dialog[open]:not(:modal) {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.booking-dialog .modal {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: none;
}

.booking-dialog .modal::-webkit-scrollbar {
  display: none;
}

@keyframes modalIn {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--muted-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.modal-close:hover {
  background: rgba(30, 22, 10, 0.07);
  color: var(--white);
}

.modal-content {
  padding: 48px;
}

.modal-header {
  margin-bottom: 36px;
}

.modal-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.modal-header p {
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Form styles ---- */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.req {
  color: var(--accent);
}

.form-group input,
.form-group textarea {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(149, 90, 15, 0.55);
  box-shadow: 0 0 0 3px rgba(149, 90, 15, 0.10);
}

.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.08);
}

.field-error {
  font-size: 0.78rem;
  color: #f87171;
  min-height: 16px;
  display: block;
}

.modal-submit {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1rem;
  gap: 10px;
  margin-top: 4px;
}

.modal-submit .submit-icon {
  transition: transform 0.25s ease;
}

.modal-submit:hover .submit-icon {
  transform: translateX(4px);
}

.modal-submit.loading {
  opacity: 0.7;
  pointer-events: none;
}

.modal-submit.loading .submit-label::after {
  content: '…';
}

/* ---- Modal success state ---- */
.modal-success {
  padding: 64px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.modal-success[hidden] {
  display: none;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(30, 110, 92, 0.10);
  border: 2px solid var(--accent-2);
  color: var(--accent-2);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-success h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.modal-success p {
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 380px;
}

/* ---- Read time badge ---- */
.read-time {
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--dark-3);
  padding: 3px 9px;
  border-radius: 100px;
  font-weight: 500;
}

/* ---- Process step expanded ---- */
.process-step.expanded {
  background: var(--dark-3);
}

.process-step.expanded::before {
  background: var(--accent);
}

.process-step.expanded .step-number {
  color: rgba(149, 90, 15, 0.25);
}

.step-detail {
  display: none;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-cue {
    animation: none;
  }

  .hero-eyebrow,
  .hero-headline,
  .hero-sub,
  .hero-btn,
  .hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .reveal,
  .reveal-img {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-float-card,
  .hfc-pulse {
    animation: none;
  }

  .hero-video,
  .section-ambient-video {
    display: none !important;
  }

  .section-ambient-scrim--process,
  .section-ambient-scrim--testi,
  .section-ambient-scrim--wwd,
  .section-ambient-scrim--results,
  .section-ambient-scrim--insights,
  .section-ambient-scrim--partnership,
  .section-ambient-scrim--cta-full {
    background: var(--dark);
  }

  .hero-img-fallback {
    opacity: 1 !important;
    z-index: 1;
  }

  .hero-img-wrap.video-ready .hero-img-fallback {
    opacity: 1 !important;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ---- Mobile modal ---- */
@media (max-width: 640px) {
  .modal-content {
    padding: 32px 24px;
  }

  .modal-success {
    padding: 48px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .modal-header h2 {
    font-size: 1.6rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }

  .toast {
    right: 16px;
    bottom: 80px;
    left: 16px;
    max-width: none;
    text-align: center;
  }
}
