/* ============================================================
   ROGER FISK CONSULTING — Main Stylesheet
   Mobile-first responsive design
   ============================================================ */

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--background-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-4xl);
  line-height: 1.2;
}

h2 {
  font-size: var(--text-3xl);
  line-height: 1.25;
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

.subtext {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 640px;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-4);
}

/* === Layout === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-16) 0;
}

.section-centered {
  text-align: center;
}

.section-centered .subtext {
  margin-left: auto;
  margin-right: auto;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  background-color: var(--accent-active);
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background-color: var(--surface-secondary);
}

.btn-light {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--text-on-dark);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.btn-sm {
  font-size: var(--text-sm);
  padding: 10px 22px;
}

.btn-full {
  width: 100%;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
  transition: all var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.site-logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.site-logo span {
  color: var(--accent-primary);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text-primary);
}

.nav-cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-base);
}

.hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background-primary);
  padding: var(--space-8) var(--space-5);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  font-size: var(--text-xl);
  font-weight: 500;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-primary);
}

.mobile-menu .btn {
  margin-top: var(--space-6);
  width: 100%;
}

.mobile-menu a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: none;
  padding: 14px 24px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: var(--space-16);
  background: url('../images/roger-obama-hero.jpg') no-repeat 70% center / cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(27,36,50,0.98) 0%, rgba(27,36,50,0.92) 28%, rgba(27,36,50,0.58) 58%, rgba(27,36,50,0.16) 80%, transparent 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: var(--space-6);
  font-size: var(--text-4xl);
  color: #fff;
}

.hero .section-label {
  color: var(--accent-primary);
}

.hero .hero-lead {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.hero-simple {
  min-height: auto;
  background: var(--navy-primary);
  padding-top: calc(var(--header-height) + var(--space-12));
  padding-bottom: var(--space-12);
}

.hero-simple::before {
  display: none;
}

.hero-simple h1 {
  color: #fff;
}

.hero-simple .section-label {
  color: var(--accent-primary);
}

.hero-simple .hero-lead {
  color: rgba(255,255,255,0.7);
}

/* Media page hero — NDS background with navy fallback */
.hero-media {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + var(--space-12));
  padding-bottom: var(--space-12);
  background-color: var(--navy-primary);
  background-image: url('../images/contact/roger-contact-3.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(27, 36, 50, 0.95) 0%, rgba(27, 36, 50, 0.88) 45%, rgba(27, 36, 50, 0.72) 100%);
  z-index: 1;
}

.hero-media .container {
  position: relative;
  z-index: 2;
}

.hero-media .hero-content {
  max-width: 720px;
}

.hero-media h1 {
  margin-bottom: var(--space-6);
  font-size: var(--text-4xl);
  color: #fff;
}

.hero-media .section-label {
  color: var(--accent-primary);
}

.hero-media .hero-lead {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 0;
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 25px;
  margin-bottom: var(--space-8);
  width: fit-content;
  max-width: 100%;
}

.hero-credential {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  text-align: center;
}

.hero-credential .number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent-primary);
  text-align: center;
  width: 100%;
}

.hero-credential .label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-align: center;
  width: 100%;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (max-width: 767px) {
  .container {
    padding: 0 calc(var(--space-5) + 5px);
  }

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

  .media-logo {
    padding: var(--space-2);
    min-height: 124px;
  }

  .hero-content {
    max-width: 75%;
  }

  .hero-credential:nth-child(5) {
    flex-basis: 100%;
    align-items: center;
  }

  .hero-credential {
    font-size: var(--text-xl);
  }

  .hero-credential .label {
    font-size: var(--text-xs);
  }

  .hero-actions {
    gap: var(--space-3);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: var(--space-20);
    background-position: 65% center;
  }

  .hero::before {
    background: linear-gradient(to right, rgba(27,36,50,0.94) 0%, rgba(27,36,50,0.82) 45%, rgba(27,36,50,0.42) 72%, rgba(27,36,50,0.18) 100%);
  }
}

/* ============================================================
   CLIENT LOGOS
   ============================================================ */
.clients-section {
  padding: var(--space-12) 0;
  background-color: var(--background-secondary);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-3);
  background-color: var(--surface-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  min-height: 92px;
}

/* Logos scale by max dimensions so small marks read larger; wide marks stay bounded */
.client-logo-img {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-height: 58px;
  max-width: min(100%, 168px);
  object-fit: contain;
  object-position: center;
}

.client-logo-img--lg {
  max-height: 76px;
  max-width: min(100%, 200px);
}

.client-logo-img--cap {
  max-height: 52px;
  max-width: min(100%, 140px);
}

@media (min-width: 768px) {
  .client-logo {
    min-height: 100px;
  }

  .client-logo-img {
    max-height: 62px;
    max-width: min(100%, 176px);
  }

  .client-logo-img--lg {
    max-height: 80px;
    max-width: min(100%, 210px);
  }

  .client-logo-img--cap {
    max-height: 54px;
    max-width: min(100%, 148px);
  }
}

@media (min-width: 1024px) {
  .client-logo-img {
    max-height: 64px;
    max-width: min(100%, 184px);
  }

  .client-logo-img--lg {
    max-height: 84px;
    max-width: min(100%, 220px);
  }

  .client-logo-img--cap {
    max-height: 56px;
    max-width: min(100%, 152px);
  }
}

/* ============================================================
   CASE STUDIES / IMPACT SNAPSHOTS
   ============================================================ */
.case-studies {
  padding: var(--space-16) 0;
  background-color: var(--surface-primary);
}

.case-study {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border-default);
}

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

.case-study-client {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-3);
}

.case-study h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.case-study p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-secondary);
}

.case-study-image {
  width: 100%;
  height: 200px;
  background-color: var(--background-tertiary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ============================================================
   DARK SECTIONS (Why Choose, etc.)
   ============================================================ */
.section-dark {
  background-color: var(--navy-primary);
  color: var(--text-on-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-on-dark);
}

.section-dark p {
  color: var(--text-on-dark-secondary);
}

.section-dark .section-label {
  color: var(--accent-primary);
}

.section-dark .subtext {
  color: var(--text-on-dark-secondary);
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.service-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: var(--text-xl);
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Dark variant */
.section-dark .service-card {
  background-color: var(--surface-dark-card);
  border-color: var(--border-on-dark);
}

.section-dark .service-card h3 {
  color: var(--text-on-dark);
}

.section-dark .service-card p {
  color: var(--text-on-dark-secondary);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  padding: var(--space-16) 0;
  background-color: var(--surface-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
  align-items: start;
}

.testimonial-card {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  background-color: var(--background-primary);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.testimonial-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: var(--space-5);
  background-color: var(--background-tertiary);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  position: relative;
  padding-top: var(--space-6);
  min-height: 0;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 0;
  font-size: var(--text-5xl);
  color: var(--accent-primary);
  line-height: 1;
  opacity: 0.3;
}

.testimonial-author {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  column-gap: var(--space-4);
}

.testimonial-avatar {
  display: none;
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  white-space: nowrap;
  line-height: 1.35;
}

.testimonial-title {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: 0;
  min-width: 0;
  line-height: 1.45;
}

/* ============================================================
   ENGAGEMENT MODELS
   ============================================================ */
.engagement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.engagement-card {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  background-color: var(--surface-card);
  transition: all var(--transition-base);
}

.engagement-card:hover {
  box-shadow: var(--shadow-md);
}

.engagement-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.engagement-card p {
  margin-bottom: var(--space-4);
}

.engagement-ideal {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-text);
  padding: var(--space-3) var(--space-4);
  background-color: var(--accent-subtle);
  border-radius: var(--radius-md);
  display: inline-block;
}

/* ============================================================
   CALLOUT BANNER
   ============================================================ */
.callout-banner {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  padding: var(--space-12) 0;
  text-align: center;
}

.callout-banner h2 {
  color: #FFFFFF;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.callout-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto var(--space-6);
}

.callout-banner .btn {
  background-color: #FFFFFF;
  color: var(--accent-primary);
  font-weight: 600;
}

.callout-banner .btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   CONTACT / LEAD FORM
   ============================================================ */
.contact-section {
  padding: var(--space-16) 0;
  background-color: var(--background-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-top: var(--space-10);
}

.contact-info h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background-color: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.contact-info-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.contact-info-text strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-form {
  background-color: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--background-primary);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Honeypot */
.form-hp {
  position: absolute;
  left: -9999px;
}

/* ============================================================
   BIO SECTION
   ============================================================ */
.bio-section {
  padding: var(--space-16) 0;
}

.bio-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.bio-photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  background-color: var(--background-tertiary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.bio-text h2 {
  margin-bottom: var(--space-6);
}

.bio-text p {
  font-size: var(--text-lg);
  line-height: 1.75;
}

/* ============================================================
   MEDIA LOGOS
   ============================================================ */
.media-logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.media-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background-color: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  min-height: 148px;
}

.media-logo-img {
  width: 100%;
  max-width: 180px;
  height: 108px;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (max-width: 767px) {
  .media-logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   AFFILIATIONS
   ============================================================ */
.affiliations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.affiliation-card {
  padding: var(--space-6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background-color: var(--surface-card);
  display: flex;
  flex-direction: column;
}

.affiliation-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  object-position: left;
  margin-bottom: var(--space-4);
}

.affiliation-logo-large {
  height: 72px;
}

.affiliation-logo-small {
  height: 24px;
}

.affiliation-card h4 {
  font-size: var(--text-lg);
  margin-top: auto;
  margin-bottom: var(--space-3);
}

.affiliation-card p {
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* ============================================================
   DOWNLOADS
   ============================================================ */
.download-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  transition: all var(--transition-fast);
}

.download-item:hover {
  border-color: var(--accent-primary);
  background-color: var(--accent-subtle);
}

.download-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  object-fit: contain;
  display: block;
}

.download-title {
  font-weight: 600;
  color: var(--text-primary);
}

.download-format {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--navy-primary);
  color: var(--text-on-dark-secondary);
  font-size: var(--text-base);
  padding: var(--space-12) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.footer-brand .site-logo {
  color: var(--text-on-dark);
  margin-bottom: var(--space-4);
  display: block;
}

.footer-brand p {
  font-size: var(--text-base);
  color: var(--text-on-dark-secondary);
  max-width: 320px;
  line-height: 1.65;
}

.footer-nav h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: var(--space-4);
}

.footer-nav a {
  display: block;
  font-size: var(--text-base);
  color: var(--text-on-dark-secondary);
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--text-on-dark);
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-newsletter-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
}

.footer-newsletter-form input[type="email"]::placeholder {
  color: rgba(240, 237, 232, 0.55);
}

.footer-newsletter-form .btn.btn-sm {
  font-size: var(--text-base);
  padding: 12px 22px;
}

.footer-newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(229, 171, 25, 0.2);
}

@media (min-width: 480px) {
  .footer-newsletter-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .footer-newsletter-form input[type="email"] {
    flex: 1 1 12rem;
    min-width: 0;
  }
}

.footer-bottom {
  border-top: 1px solid var(--border-on-dark);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--text-on-dark-secondary);
}

.footer-bottom p {
  color: var(--text-on-dark-secondary);
  margin-bottom: 0;
}

.footer-bottom a {
  color: var(--text-on-dark-secondary);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--text-on-dark);
}

.footer-legal {
  display: flex;
  gap: var(--space-4);
}

/* ============================================================
   INTERACTION / MOTION POLISH
   ============================================================ */

/* Cards lift on hover */
.service-card,
.engagement-card,
.testimonial-card,
.affiliation-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.service-card:hover,
.engagement-card:hover,
.testimonial-card:hover,
.affiliation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.section-dark .service-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Framed images zoom gently within their rounded frame */
.case-study-image {
  overflow: hidden;
}

.case-study-image img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* Logo tiles lift on hover */
.client-logo,
.media-logo {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.client-logo:hover,
.media-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

/* Download rows nudge on hover */
.download-item:hover {
  transform: translateX(4px);
}

/* Animated underline for desktop nav links */
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: var(--accent-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition-base);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  transform: scaleX(1);
}

/* Header gains depth once the page is scrolled */
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   LEGAL / PROSE PAGES
   ============================================================ */
.legal-page {
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-20);
}

.legal-page .legal-intro {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-10);
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.prose p,
.prose li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.prose ul {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose a {
  color: var(--accent-text);
  text-decoration: underline;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  text-align: center;
  padding: var(--space-20) 0;
}

.error-hero .error-code {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: var(--space-4);
}

/* ============================================================
   FORM STATUS MESSAGES
   ============================================================ */
.form-status {
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-top: var(--space-3);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.form-status:empty {
  display: none;
}

.form-status.is-success,
.form-status.is-error {
  opacity: 1;
  transform: translateY(0);
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--error);
}

/* On dark footer the success/error text needs to stay legible */
.footer-newsletter-form .form-status.is-success {
  color: #8FBF9F;
}

.footer-newsletter-form .form-status.is-error {
  color: #E29A98;
}

button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-accent { color: var(--accent-primary); }
.text-center { text-align: center; }
.link-accent { color: var(--accent-text); }
.justify-center { justify-content: center; }
.border-top-0 { border-top: none; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mx-auto { margin-left: auto; margin-right: auto; }
.pt-4 { padding-top: var(--space-4); }
.pt-16 { padding-top: var(--space-16); }
.pt-below-header { padding-top: calc(var(--header-height) + var(--space-16)); }

/* Content-measure widths — explicit overrides, so they win over component defaults */
.mw-480 { max-width: 480px !important; }
.mw-520 { max-width: 520px !important; }
.mw-560 { max-width: 560px !important; }
.mw-640 { max-width: 640px !important; }
.mw-680 { max-width: 680px !important; }
.mw-720 { max-width: 720px !important; }
.mw-900 { max-width: 900px !important; }

/* Surface backgrounds */
.bg-surface { background-color: var(--surface-primary); }
.bg-secondary { background-color: var(--background-secondary); }

/* Image that fills and covers its rounded frame */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Accessible skip link — off-screen until focused */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 8px 16px;
  background: var(--accent-primary);
  color: #fff;
  z-index: 9999;
  transform: translateY(-120%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Contact-page "based in" note box */
.contact-note {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--accent-subtle);
  border-radius: var(--radius-lg);
}

.contact-note p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

.contact-note strong {
  color: var(--text-primary);
}

/* Small confidentiality note under the contact form */
.form-note {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-3);
  text-align: center;
}

/* Bio "In the Field" photo grid */
.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.field-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

/* Bio "In the Field" photos keep their heights regardless of the global desktop rule */
.field-grid .case-study-image {
  height: 200px;
}

.field-grid .case-study-image--tall {
  height: 280px;
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (min-width: 768px) {
  .section {
    padding: var(--space-20) 0;
  }

  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  .container {
    padding: 0 var(--space-8);
  }

  .hero-credentials {
    flex-wrap: nowrap;
  }

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

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .engagement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .bio-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--space-10);
  }

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

  .affiliations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .case-study-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-8);
    align-items: start;
  }

  .case-study-image {
    height: 160px;
    margin-bottom: 0;
  }
}

/* ============================================================
   RESPONSIVE — Desktop
   ============================================================ */
@media (min-width: 1024px) {
  .section {
    padding: var(--space-24) 0;
  }

  h1 {
    font-size: var(--text-6xl);
  }

  .nav-desktop {
    display: flex;
  }

  .nav-cta {
    display: block;
  }

  .hamburger {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + var(--space-20));
    padding-bottom: var(--space-20);
  }

  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  /* Align photo / quote / author rows across cards (desktop).
     Scope to .testimonials-grid only — standalone .testimonial-card must stay flex column. */
  @supports (grid-template-rows: subgrid) {
    .testimonials-grid {
      grid-template-rows: auto 1fr auto;
      align-items: stretch;
    }

    .testimonials-grid .testimonial-card {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      row-gap: var(--space-6);
    }

    .testimonials-grid .testimonial-photo {
      margin-bottom: 0;
    }

    .testimonials-grid .testimonial-quote {
      margin-bottom: 0;
    }
  }

  @supports not (grid-template-rows: subgrid) {
    .testimonials-grid {
      align-items: start;
    }
  }

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

  .bio-layout {
    grid-template-columns: 340px 1fr;
    gap: var(--space-12);
  }

  .media-logos-grid {
    grid-template-columns: repeat(5, 1fr);
  }

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

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

  .case-study-layout {
    grid-template-columns: 300px 1fr;
  }
}

/* ============================================================
   MEDIA PAGE — VIDEO & GRIDS
   ============================================================ */
.media-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--background-tertiary);
}

.media-video iframe,
.media-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.media-card-title {
  margin-top: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.45;
}

/* Click-to-play YouTube facade — thumbnail until clicked, then swapped for the iframe */
.media-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  display: block;
  cursor: pointer;
  background: var(--background-tertiary);
}

.media-facade-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow), filter var(--transition-base);
}

.media-facade:hover .media-facade-thumb,
.media-facade:focus-visible .media-facade-thumb {
  transform: scale(1.05);
  filter: brightness(0.82);
}

.media-facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(27, 36, 50, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition: background var(--transition-base), transform var(--transition-base);
}

.media-facade-play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}

.media-facade:hover .media-facade-play,
.media-facade:focus-visible .media-facade-play {
  background: var(--accent-primary);
  transform: translate(-50%, -50%) scale(1.08);
}

.oped-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 600px) {
  .oped-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .oped-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.oped-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.oped-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.oped-outlet {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.oped-title {
  font-size: var(--text-lg);
  line-height: 1.3;
  color: var(--text-primary);
}

.oped-desc {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.oped-arrow {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-text);
}

/* Dark-section variant */
.section-dark .oped-card {
  background: var(--surface-dark-card);
  border-color: var(--border-on-dark);
}

.section-dark .oped-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.section-dark .oped-title {
  color: var(--text-on-dark);
}

.section-dark .oped-desc {
  color: var(--text-on-dark-secondary);
}

.section-dark .oped-outlet,
.section-dark .oped-arrow {
  color: var(--accent-primary);
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-consent {
  position: fixed;
  z-index: 1000;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-4);
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.cookie-consent.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-top: 3px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cookie-consent-copy {
  flex: 1 1 280px;
}

.cookie-consent-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--navy-primary);
}

.cookie-consent-text {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-secondary);
}

.cookie-consent-text a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-text a:hover {
  color: var(--accent-hover);
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .cookie-consent-inner {
    padding: var(--space-4);
  }

  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-consent-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
