/* =============================================
   TOKENS
   ============================================= */
:root {
  --terra:        #BF5B3D;
  --terra-dark:   #8B3A24;
  --terra-light:  #CC7055;
  --pink:         #C97090;
  --pink-light:   #E8A8C0;

  /* Theme tokens (light defaults) */
  --bg:           #FFFFFF;
  --bg-alt:       #FDF5F2;
  --text-body:    #2A1810;
  --text-muted:   #7A5A52;
  --card:         #FFFFFF;
  --card-border:  rgba(191, 91, 61, 0.1);
  --nav-bg:       rgba(255, 255, 255, 0.96);
  --nav-shadow:   rgba(191, 91, 61, 0.12);
  --heading:      var(--terra);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --max-w: 1160px;
  --nav-h: 72px;
}

[data-theme="dark"] {
  --bg:          #1C1008;
  --bg-alt:      #251510;
  --text-body:   #F0E8E4;
  --text-muted:  #C4A898;
  --card:        #2E1C12;
  --card-border: rgba(191, 91, 61, 0.25);
  --nav-bg:      rgba(28, 16, 8, 0.97);
  --nav-shadow:  rgba(0, 0, 0, 0.4);
  --heading:     #E8907A;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* =============================================
   UTILITIES
   ============================================= */
.container { width: 90%; max-width: var(--max-w); margin-inline: auto; }

.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}
.section-label.light { color: var(--pink-light); }

.section-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--heading);
}
.section-heading.centered { text-align: center; margin-bottom: 3.5rem; }
.section-heading.light    { color: #FFFFFF; }

.lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  min-height: var(--nav-h);
  padding-inline: 5%;
  z-index: 100;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--nav-shadow);
}

.nav-logo.btn {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
  padding-inline: 0.5rem;
  background: transparent;
  transition: color 0.35s;
}
.nav-logo.btn:hover { background: transparent; }
.nav.scrolled .nav-logo.btn { color: var(--heading); }

.nav-links.menu a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  border-radius: 4px;
  transition: color 0.25s, background 0.25s;
}
.nav-links.menu a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav.scrolled .nav-links.menu a { color: var(--text-muted); }
.nav.scrolled .nav-links.menu a:hover { color: var(--heading); background: rgba(191,91,61,0.07); }

/* =============================================
   HAMBURGER
   ============================================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}
.ham-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.35s;
}
.nav.scrolled .ham-line { background: var(--text-body); }
.hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--bg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 300;
  color: var(--text-body);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--terra); }

/* =============================================
   HERO — full-bleed image, text overlaid left
   ============================================= */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Full-bleed photo layer */
.hero-portrait-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-portrait {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 30% center;
  display: block;
}

/* Gradient overlay: dark on left (behind text), fades to subtle on right */
.hero-portrait-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(100,30,10,0.88) 0%, rgba(100,30,10,0.65) 45%, rgba(0,0,0,0.2) 100%),
    linear-gradient(to top,   rgba(100,30,10,0.5)  0%, transparent 50%);
  animation: heroGradient 10s ease infinite;
  background-size: 300% 300%;
}

@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Text panel — floats over the image */
.hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 55%;
  max-width: 680px;
  padding: calc(var(--nav-h) + 3rem) 0 5rem 5%;
  background: transparent;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  text-align: left;
}

.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pink-light);
}
.hero-name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}
.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  max-width: 480px;
}

.btn.btn-hero {
  margin-top: 0.5rem;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.btn.btn-hero:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.75);
  color: #fff;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 25%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0; transform: scaleY(0.6) translateY(-8px); }
  50%       { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: 6rem 0;
  background: var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 4rem;
  align-items: center;
}
.about-photo {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}
.about-photo:hover img { transform: scale(1.04); }
.about-content { display: flex; flex-direction: column; gap: 1.5rem; }
.about-content .lead { margin-bottom: 0; }

.about-para { font-size: 0.95rem; line-height: 1.8; color: var(--text-muted); }

.credentials-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.credentials-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
  line-height: 1.5;
  color: var(--text-body);
}
.credentials-table td:first-child {
  width: 110px;
  color: var(--heading);
  font-weight: 600;
  white-space: nowrap;
  padding-right: 1.5rem;
}
.credentials-table tr:last-child td { border-bottom: none; }

.cred-link {
  color: var(--heading);
  text-decoration: underline;
  text-decoration-color: rgba(191,91,61,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}
.cred-link:hover { text-decoration-color: var(--heading); }

/* =============================================
   CREDENTIAL BAR
   ============================================= */
.credential-bar {
  padding: 2rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  overflow: hidden;
}
.credential-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 2.5rem;
}
.cred-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.cred-item:hover { opacity: 1; }

/* Logo images in credential bar — fixed box, transparent background */
.cred-logo {
  width: 110px;
  height: 38px;
  object-fit: contain;
  object-position: center;
  display: block;
  mix-blend-mode: multiply;   /* removes white bg on light backgrounds */
  filter: grayscale(15%);
  transition: filter 0.2s, opacity 0.2s;
}
.cred-item:hover .cred-logo {
  filter: grayscale(0%);
}

/* Dark mode: invert first so white bg becomes black, screen blend removes the black */
[data-theme="dark"] .cred-logo {
  mix-blend-mode: screen;
  filter: invert(1) grayscale(15%) brightness(1.3);
}
[data-theme="dark"] .cred-item:hover .cred-logo {
  filter: invert(1) grayscale(0%) brightness(1.3);
}

.cred-divider {
  width: 1px;
  height: 22px;
  background: var(--card-border);
  flex-shrink: 0;
}

/* =============================================
   DIVIDER
   ============================================= */
.divider-wave { line-height: 0; margin-bottom: -1px; background: var(--bg); }
.divider-wave svg { width: 100%; height: 60px; }

/* =============================================
   SERVICES
   ============================================= */
.services { padding: 6rem 0 7rem; background: var(--bg-alt); }

/* Base layout — flex fallback for all browsers */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 64px rgba(191,91,61,0.18);
  border-color: rgba(191,91,61,0.25);
}
.service-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(201,112,144,0.25);
  line-height: 1;
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--heading);
  line-height: 1.35;
}
.service-card p { font-size: 0.9rem; line-height: 1.75; color: var(--text-muted); }
.service-best-for { margin-top: auto; }

/* =============================================
   SERVICES — SUBGRID ALIGNMENT (desktop only)
   Ensures "Best for" text starts at the SAME
   vertical position across all 3 cards.
   ============================================= */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 901px) {
    .services-grid {
      /* 4 shared rows: number | h3 | description | best-for */
      grid-template-rows: auto auto auto auto;
      gap: 1rem 1.5rem;
    }
    .service-card {
      /* Each card spans all 4 shared rows */
      grid-row: 1 / 5;
      display: grid;
      grid-template-rows: subgrid;
      gap: 0; /* spacing comes from parent row-gap */
    }
    .service-best-for {
      margin-top: 0; /* subgrid handles positioning */
      align-self: start;
    }
  }
}

/* =============================================
   WORK — case studies
   ============================================= */
.work { padding: 6rem 0 7rem; background: var(--bg); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.work-card:hover {
  box-shadow: 0 16px 48px rgba(191,91,61,0.12);
  transform: translateY(-5px);
}

.work-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.work-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}
.work-card:hover .work-img-wrap img { transform: scale(1.05); }

.work-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.work-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: rgba(201,112,144,0.25);
  line-height: 1;
}
.work-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--heading);
  line-height: 1.3;
}
.work-content p { font-size: 0.875rem; line-height: 1.75; color: var(--text-muted); }

.work-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
}
.work-scope span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--card-border);
  border-radius: 2px;
  color: var(--text-muted);
}

/* =============================================
   PRESS
   ============================================= */
.press { padding: 6rem 0 7rem; background: var(--bg-alt); }

.testimonial-carousel {
  max-width: 780px;
  margin: 0 auto 4rem;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.testimonial-featured {
  padding: 3rem;
  background: var(--card);
  border-left: 4px solid var(--terra);
  border-radius: 0 4px 4px 0;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.testimonial-prev,
.testimonial-next {
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  border-color: var(--terra);
  color: var(--terra);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-border);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.testimonial-dot.active {
  background: var(--terra);
  transform: scale(1.3);
}
.testimonial-featured-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-body);
}
.testimonial-featured-quote p::before { content: '\201C'; }
.testimonial-featured-quote p::after  { content: '\201D'; }
.testimonial-featured-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1.5rem;
}
.testimonial-featured-author strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
}
.testimonial-featured-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.press-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--card-border);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  overflow: hidden;
}
.press-item {
  background: var(--card);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.2s;
}
.press-item:hover { background: var(--bg-alt); }
.press-outlet {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
}
.press-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--terra); padding: 7rem 0; }
.contact-inner {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 1rem;
}
.contact-subtext {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin-top: 0.25rem;
}
.contact-email-alt {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.contact-email-alt:hover { color: rgba(255,255,255,0.85); }

.btn.btn-connect {
  margin-top: 2rem;
  padding-inline: 3rem;
  background: #fff;
  color: var(--terra);
  border: none;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.btn.btn-connect:hover {
  background: var(--pink-light);
  color: #fff;
  box-shadow: 0 12px 32px rgba(232,168,192,0.4);
}

/* =============================================
   FOOTER — Brandcast image background
   ============================================= */
.footer {
  position: relative;
  padding: 5rem 5% 2.5rem;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/photo-footer.jpg') 40% 30% / cover no-repeat;
  z-index: 0;
}
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 60%, transparent 100%);
  z-index: 1;
}
.footer-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.75rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.5); }
.footer-socials { display: flex; gap: 1.5rem; }
.footer-social-link {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.75rem; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-social-link:hover { color: var(--pink-light); }
.footer-social-link svg { flex-shrink: 0; }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}
.lightbox.open { display: flex; }

.lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.lightbox-caption {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.lightbox-close {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  font-size: 2rem;
  color: rgba(255,255,255,0.7);
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
  padding: 0.5rem;
}
.lightbox-close:hover { color: #fff; transform: rotate(90deg); }

/* =============================================
   DARK MODE TOGGLE
   ============================================= */
.dark-toggle {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 99;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: background 0.3s ease, transform 0.2s ease;
}
.dark-toggle:hover { background: var(--terra-dark); transform: scale(1.08); }
.dark-toggle svg { width: 20px; height: 20px; }

/* =============================================
   MOTION ONE — initial hidden states
   ============================================= */
.split-left,
.split-right,
.service-card,
.work-card,
.testimonial-carousel,
.about .section-label,
.about .section-heading,
.services .section-label,
.services .section-heading,
.work .section-label,
.work .section-heading,
.press .section-label,
.press .section-heading,
.contact-inner .section-label,
.contact-inner .section-heading,
.contact-inner .btn-connect,
.contact-inner .contact-subtext,
.contact-inner .contact-email-alt {
  opacity: 0;
}

/* =============================================
   RESPONSIVE — Tablet (≤ 900px)
   ============================================= */
@media (max-width: 900px) {
  .hero-text { width: 75%; padding-left: 6%; }
  .hero-inner { align-items: center; text-align: center; }
  .hero-tagline { max-width: 540px; }
  .hero-scroll-hint { left: 50%; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { aspect-ratio: 3 / 2; max-height: 340px; }

  .services-grid { grid-template-columns: 1fr; gap: 1rem; }

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

  /* Reset subgrid on tablet/mobile — revert to flex */
  .service-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    grid-row: auto;
  }
  .service-best-for { margin-top: auto; }
}

/* =============================================
   RESPONSIVE — Mobile (≤ 640px)
   ============================================= */
@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  /* Show hamburger, hide desktop nav */
  .hamburger { display: flex; }
  #desktop-nav { display: none !important; }

  /* Hero text sizing */
  .hero-name { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero-tagline { font-size: 0.95rem; }
  .hero-text { width: 100%; padding: calc(var(--nav-h) + 2rem) 6% 4rem; }

  /* About */
  .about-photo { aspect-ratio: 4 / 3; max-height: 280px; }

  /* Services / work single column */
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-content { padding: 1.5rem; }
  .testimonial-featured { padding: 1.75rem; }
  .testimonial-nav { margin-top: 1rem; }

  /* Section text */
  .section-heading { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  /* Contact */
  .contact { padding: 5rem 0; }
  .btn.btn-connect { padding-inline: 2rem; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-socials { flex-wrap: wrap; gap: 1rem; }

  /* Dark toggle spacing */
  .dark-toggle { bottom: 1rem; left: 1rem; width: 40px; height: 40px; }

  /* Credential bar — smaller logos on mobile */
  .cred-logo { width: 80px; height: 28px; }
}
