/* =============================================
   BLUE TOMATO GRAPHICS — SHARED STYLES
   Design system: editorial serif, warm cream palette
   Used across: index.html, all /pages/*.html
   ============================================= */

/* =============================================
   BTG HOMEPAGE V3-B
   2020 palette/layout + V2 typography
   ============================================= */

:root {
  /* ── BTG 2026 PALETTE ── */
  --bg-warm-light:  #f5f0e6;   /* cream — primary bg */
  --bg-warm-mid:    #ebe5d8;   /* slightly deeper cream */
  --bg-warm-edge:   #d8d0c0;   /* edge cream */
  --steel-blue:     #1e436b;   /* deep blue — primary text/structure */
  --steel-blue-dk:  #163150;   /* deep blue darker — for hovers/depth */
  --burnt-orange:   #b64d26;   /* rust — CTAs, primary accent */
  --burnt-orange-dk:#964020;   /* rust darker */
  --navy-panel:     #1e436b;   /* navy = deep blue (same as primary) */
  --navy-panel-dk:  #163150;
  --charcoal-cap:   #2a2a2a;
  --offwhite:       #f5f0e6;   /* matches bg cream */
  --warm-text:      #5c5d5d;   /* warm gray — body text (WCAG AA on cream) */
  --soft-rule:      rgba(30,67,107,0.15);
  --yellow:         #ffcc00;   /* yellow — dividers/accent only */
  --yellow-dk:      #e6b800;

  /* ── SECTION BG VARIABLES (override per-section to recolor) ── */
  --bg-hero:        var(--bg-warm-light);
  --bg-ticker:      var(--steel-blue);
  --bg-about:       var(--bg-warm-light);
  --bg-services:    var(--yellow);
  --bg-featured:    #0a0a0a;   /* near-black for full-bleed work imagery */
  --bg-ai-band:     var(--steel-blue);
  --bg-testimonials:var(--bg-warm-light);
  --bg-cta:         var(--bg-warm-light);
  --bg-footer:      var(--steel-blue);
  --bg-carousel:    #0a0a0a;   /* near-black for slider images */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Source Sans 3', sans-serif;
  --font-serif:   'Source Serif 4', Georgia, serif;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

/* =============================================
   FOCUS STATES — keyboard accessibility
============================================= */
:focus { outline: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--burnt-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* On dark backgrounds (nav cta, AI band, partnership band, footer) use yellow for visibility */
.nav-cta:focus-visible,
.btn-primary:focus-visible,
.btn-outline-light:focus-visible,
.ai-band a:focus-visible,
.partnership-band a:focus-visible,
footer a:focus-visible {
  outline-color: var(--yellow);
}

body {
  background: #f5f0e6;
  color: var(--warm-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Homepage-only: bodybg behind the hero region, scrolls away with page */
body.has-hero-bg {
  background:
    url('../images/bodybg.jpg') top center / 100% auto no-repeat,
    #f5f0e6;
}

/* =============================================
   HEADER LOCKUP
============================================= */
.site-header {
  padding: 2.5rem 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-self: end;
}

.header-logo-image {
  display: block;
  line-height: 0;
}

.header-logo-image img {
  display: block;
  height: 100px;
  width: auto;
}

body.inner-page .header-logo-image img {
  height: 48px;
}

.header-rule {
  width: 1px;
  height: 56px;
  background: var(--soft-rule);
  justify-self: center;
}

.header-right {
  justify-self: start;
}

.header-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.24rem;
  color: var(--burnt-orange);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.header-tagline sup {
  font-size: 0.45em;
  vertical-align: super;
  margin-left: 0.15em;
  font-style: normal;
}

.header-tagline-sub {
  margin-top: 0.4rem;
  font-size: 0.52rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--steel-blue);
  opacity: 0.65;
  font-weight: 500;
}

.header-divider-line {
  max-width: 1300px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--soft-rule) 15%, var(--soft-rule) 85%, transparent 100%);
}

/* =============================================
   NAV
============================================= */
.site-nav {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  flex: 0 0 auto;
}

.nav-sep {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--soft-rule) 25%, var(--soft-rule) 75%, transparent 100%);
  align-self: center;
  min-width: 1rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel-blue);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.3rem;
  transition: color 0.2s;
}

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

.nav-links a:hover { color: var(--burnt-orange); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--offwhite) !important;
  background: var(--burnt-orange);
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--burnt-orange-dk) !important; }
.nav-cta::after { display: none !important; }

/* =============================================
   HERO — 3 ROW: HEADLINE / CAROUSEL / BODY
============================================= */
.hero {
  background: var(--bg-hero);
  padding: 5rem 0 0;
}

.hero-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 3rem;
}

.hero-headline-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* Hero image area — holds the blue tomato hero PNG */
.hero-headline-image {
  width: 360px;
  height: 360px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex-shrink: 0;
}

.hero-headline-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: tomatoFade 1s var(--ease-out) 0.1s backwards;
}

@keyframes tomatoFade {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-headline-image-label {
  display: none;
}

.hero-headline-text {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burnt-orange);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.15s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--burnt-orange);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--steel-blue);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.3s forwards;
}

.hero-headline em {
  font-style: italic;
  color: var(--burnt-orange);
  font-weight: 500;
}

.hero-sub {
  margin-top: 1.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--warm-text);
  max-width: 62ch;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.45s forwards;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.6s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--burnt-orange);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95rem 1.8rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 0 var(--burnt-orange-dk);
}

.btn-primary:hover {
  background: var(--burnt-orange-dk);
  transform: translateY(-1px);
}

.hero-email {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--steel-blue);
  opacity: 0.75;
  text-decoration: none;
  border-bottom: 1px dotted var(--soft-rule);
  padding-bottom: 0.15rem;
  transition: color 0.2s, opacity 0.2s;
}

.hero-email:hover { color: var(--burnt-orange); opacity: 1; }

/* Bold yellow break-band — used as one-shot punctuation between sections */
.section-divider {
  height: 6px;
  background: var(--yellow);
  width: 100%;
}

.break-band {
  background: var(--burnt-orange);
  padding: 2.8rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 6px solid var(--steel-blue);
  border-bottom: 6px solid var(--steel-blue);
}

.break-band-inner {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.break-band-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.01em;
}

/* Inline yellow bullets — wrap them in <span class="break-band-bullet">●</span> */
.break-band-bullet {
  color: var(--yellow);
  margin: 0 0.5rem;
  font-size: 0.75em;
  vertical-align: middle;
}

.break-band-attr {
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}

/* HERO CAROUSEL — cinematic slide */
.hero-carousel {
  position: relative;
  overflow: hidden;
  margin: 4rem auto 0;
  max-width: 1080px;
  width: calc(100% - 6rem);
  aspect-ratio: 1920 / 700;
  max-height: 700px;
}

.hero-carousel-track {
  display: flex;
  width: 300%;
  height: 100%;
  animation: slide 15s infinite;
}

.hero-carousel-slide {
  width: 33.3333%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.hero-carousel-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes slide {
  0%, 28%      { transform: translateX(0%); }
  33%, 61%     { transform: translateX(-33.3333%); }
  66%, 94%     { transform: translateX(-66.6666%); }
  100%         { transform: translateX(0%); }
}

/* =============================================
   TICKER — navy ticker with bold yellow rails
============================================= */
.ticker {
  background: var(--bg-ticker);
  padding: 1.1rem 0;
  overflow: hidden;
  margin-top: 0;
  border-top: 8px solid var(--yellow);
  border-bottom: 8px solid var(--yellow);
}

.ticker-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: scroll 28s linear infinite;
}

.ticker-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--offwhite);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.ticker-dot {
  color: var(--burnt-orange);
  margin: 0 0.5rem;
  font-size: 0.7rem;
  vertical-align: middle;
}

/* =============================================
   ABOUT
============================================= */
.about {
  background: var(--bg-about);
  padding: 5.5rem 0;
}

.about-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burnt-orange);
  margin-bottom: 1.2rem;
}

.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--burnt-orange);
}

.section-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1.1;
  color: var(--steel-blue);
  margin-bottom: 1.8rem;
  letter-spacing: -0.01em;
}

.section-headline em {
  font-style: italic;
  color: var(--burnt-orange);
  font-weight: 500;
}

.about-body {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  color: var(--warm-text);
  line-height: 1.75;
}

.about-body p + p { margin-top: 1.1rem; }

.about-body strong {
  font-weight: 600;
  color: var(--steel-blue-dk);
}

.about-fit {
  margin-top: 1.6rem !important;
  padding-top: 1.2rem;
  border-top: 1px solid var(--soft-rule);
  font-size: 0.96rem;
  color: var(--steel-blue);
  font-style: italic;
}

.about-fit strong {
  font-style: normal;
  color: var(--burnt-orange);
  letter-spacing: 0.02em;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-portrait {
  background-image: url('../images/dave_btg_2026.jpg');
  background-size: cover;
  background-position: center 15%;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--soft-rule);
  box-shadow:
    0 20px 50px -20px rgba(30,67,107,0.25),
    0 2px 8px rgba(30,67,107,0.08);
  filter: contrast(1.04) saturate(0.95);
  position: relative;
  overflow: hidden;
}

.about-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

.about-portrait-caption {
  position: absolute;
  bottom: 1.2rem;
  left: 1.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--offwhite);
  letter-spacing: 0.01em;
  z-index: 2;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--soft-rule);
  border: 1px solid var(--soft-rule);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 8px 24px -10px rgba(30,67,107,0.2);
}

.stat-card {
  background: #fbf7ed;
  padding: 1.1rem 1.6rem;
  transition: background 0.25s;
}

.stat-card:hover { background: #fff; }

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--burnt-orange);
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-blue);
}

.about-mantra {
  grid-column: span 2;
  background: var(--steel-blue);
  padding: 1.6rem 1.8rem;
  border-top: 1px solid var(--soft-rule);
}

.about-mantra blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--offwhite);
  line-height: 1.45;
}

.about-mantra cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,240,230,0.65);
  font-weight: 500;
}

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

.services-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* Stronger border + steel-blue eyebrow on yellow bg */
.services .section-head-bar {
  border-bottom-color: rgba(30,67,107,0.3);
}
.services .section-eyebrow {
  color: var(--steel-blue);
}
.services .section-eyebrow::before {
  background: var(--steel-blue);
}

.section-head-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--soft-rule);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #fbf7ed;
  border: 1px solid var(--soft-rule);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(30,67,107,0.25);
}

.service-num-bar {
  background: var(--steel-blue);
  color: var(--offwhite);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
  gap: 0.8rem;
}

.service-num-bar > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-num-bar .num { color: var(--burnt-orange); font-style: normal; font-weight: 700; }

.service-content {
  padding: 1.6rem 1.4rem 1.8rem;
}

.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--steel-blue);
  margin-bottom: 0.7rem;
}

.service-title em {
  font-style: italic;
  color: var(--burnt-orange);
  font-weight: 500;
}

.service-body {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--warm-text);
  margin-bottom: 0;
}

/* =============================================
   FEATURED
============================================= */
.featured {
  background: var(--bg-featured);
  padding: 5.5rem 0;
}

.featured-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* On dark featured band, flip the section head colors */
.featured .section-head-bar {
  border-bottom-color: rgba(245,240,230,0.12);
}
.featured .section-headline {
  color: var(--offwhite);
}
.featured .section-eyebrow {
  color: var(--burnt-orange);
}

.feature-panel {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
  background: #000;
  min-height: 540px;
}

.feature-image {
  position: absolute;
  inset: 0;
  background:
    url('../images/portfolio/eagle_hero.jpg') center / contain no-repeat,
    #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-image-label {
  display: none;
}

.feature-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 75%, transparent 100%);
  padding: 2.5rem 2rem 1.6rem;
  color: var(--offwhite);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.feature-caption-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.feature-caption-text span {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: rgba(245,240,230,0.8);
  margin-top: 0.25rem;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--offwhite);
  text-decoration: none;
  border: 1px solid var(--burnt-orange);
  background: var(--burnt-orange);
  padding: 0.7rem 1.3rem;
  border-radius: 2px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-outline-light:hover { background: var(--burnt-orange-dk); }

/* =============================================
   PORTFOLIO GRID — homepage thumbnail strip
============================================= */
.portfolio-grid-section {
  background: #0a0a0a;
  padding: 5.5rem 0;
}

/* On near-black, flip section head colors for legibility */
.portfolio-grid-section .section-head-bar {
  border-bottom-color: rgba(245,240,230,0.12);
}
.portfolio-grid-section .section-headline {
  color: var(--offwhite);
}
.portfolio-grid-section .section-eyebrow {
  color: var(--burnt-orange);
}
.portfolio-grid-section .section-eyebrow::before {
  background: var(--burnt-orange);
}
.portfolio-grid-section .portfolio-footer a {
  color: var(--burnt-orange);
  border-bottom-color: var(--burnt-orange);
}
.portfolio-grid-section .portfolio-footer a:hover {
  color: var(--offwhite);
  border-bottom-color: var(--offwhite);
}

.portfolio-grid-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 3rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #1a2f44 0%, #1e436b 50%, #b64d26 110%);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  display: block;
  text-decoration: none;
  box-shadow: 0 8px 24px -10px rgba(30,67,107,0.3);
}

.portfolio-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -10px rgba(30,67,107,0.45);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.portfolio-item:hover img {
  transform: scale(1.04);
}

/* Caption that fades in on hover */
.portfolio-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem 1.4rem 1.2rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.portfolio-item:hover .portfolio-caption {
  opacity: 1;
}

.portfolio-client {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--offwhite);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.portfolio-category {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burnt-orange);
}

/* Footer link out to full Work page */
.portfolio-footer {
  margin-top: 2.5rem;
  text-align: center;
}

.portfolio-footer a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burnt-orange);
  text-decoration: none;
  border-bottom: 1px solid var(--burnt-orange);
  padding-bottom: 0.25rem;
}

.portfolio-footer a:hover {
  color: var(--burnt-orange-dk);
  border-bottom-color: var(--burnt-orange-dk);
}

/* =============================================
   AI BAND
============================================= */
.ai-band {
  background: var(--bg-ai-band);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.ai-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(182,77,38,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.ai-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  position: relative;
}

.ai-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.15;
  color: var(--offwhite);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.ai-headline em {
  font-style: italic;
  color: var(--burnt-orange);
  font-weight: 500;
}

.ai-body {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgba(245,240,230,0.78);
}

.ai-body + .ai-body { margin-top: 1rem; }

.ai-body em { color: var(--offwhite); font-style: italic; }

.ai-tools {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: flex-start;
}

.ai-tools-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--burnt-orange);
  margin-bottom: 0.6rem;
}

.tool-pill {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(245,240,230,0.9);
  background: rgba(245,240,230,0.06);
  border: 1px solid rgba(245,240,230,0.12);
  padding: 0.45rem 1rem;
  border-radius: 2px;
}

/* =============================================
   TESTIMONIALS
============================================= */
.testimonials {
  background: var(--bg-testimonials);
  padding: 5.5rem 0;
}

.testimonials-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 3rem;
}

.testimonial {
  background: #fbf7ed;
  border: 1px solid var(--soft-rule);
  border-radius: 3px;
  padding: 2.2rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 0.6rem;
  left: 1.3rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--burnt-orange);
  opacity: 0.35;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--warm-text);
  margin-top: 2.4rem;
  flex: 1;
}

.testimonial-text strong {
  font-weight: 600;
  font-style: normal;
  color: var(--steel-blue-dk);
}

.testimonial-attr {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--soft-rule);
}

.testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--steel-blue);
}

.testimonial-co {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--burnt-orange);
  margin-top: 0.2rem;
}

/* =============================================
   CTA
============================================= */
.cta {
  text-align: center;
  padding: 7rem 3rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(182,77,38,0.10) 0%, transparent 60%),
    var(--bg-cta);
}

.cta-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burnt-orange);
  margin-bottom: 1.5rem;
}

.cta-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  color: var(--steel-blue);
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}

.cta-headline em {
  font-style: italic;
  color: var(--burnt-orange);
  font-weight: 500;
}

.cta-sub {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--warm-text);
  max-width: 48ch;
  margin: 0 auto 2.8rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-email {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--steel-blue);
  opacity: 0.8;
  text-decoration: none;
  border-bottom: 1px dotted var(--steel-blue);
  padding-bottom: 0.15rem;
}

.cta-email:hover { color: var(--burnt-orange); opacity: 1; }

/* =============================================
   FOOTER
============================================= */
footer {
  background: var(--bg-footer);
  padding: 2.5rem 3rem;
  color: rgba(245,240,230,0.7);
  font-family: var(--font-body);
  font-size: 0.78rem;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--offwhite);
}

.footer-logo .tomato { color: var(--burnt-orange); font-style: italic; }

.footer-copy {
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

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

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

/* =============================================
   INNER PAGE OVERRIDES
   Apply <body class="inner-page"> to use these
   ============================================= */

body.inner-page {
  background: #f5f0e6;
  background-image: none;
}

/* Smaller inner-page header — single row, no bodybg drama */
body.inner-page .site-header {
  padding: 2rem 3rem 1rem;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
}

body.inner-page .header-left {
  justify-self: start;
  gap: 0.7rem;
}

body.inner-page .header-rule {
  display: none;
}

body.inner-page .header-right {
  justify-self: end;
  text-align: right;
}

body.inner-page .header-tagline {
  font-size: 0.95rem;
}

body.inner-page .header-tagline-sub {
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  margin-top: 0.3rem;
}

/* Inner page hero panel — replaces homepage two-column hero */
.inner-hero {
  max-width: 1300px;
  margin: 2rem auto 0;
  padding: 0 3rem;
}

.inner-hero-inner {
  background: #fbf7ed;
  border: 1px solid var(--soft-rule);
  border-radius: 4px;
  padding: 4rem 3.5rem;
  position: relative;
  box-shadow:
    0 12px 40px -15px rgba(30,67,107,0.2),
    0 2px 6px rgba(30,67,107,0.06);
}

.inner-hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burnt-orange);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.inner-hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--burnt-orange);
}

.inner-hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--steel-blue);
  max-width: 22ch;
}

.inner-hero-headline em {
  font-style: italic;
  color: var(--burnt-orange);
  font-weight: 500;
}

.inner-hero-sub {
  margin-top: 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--warm-text);
  max-width: 58ch;
}

/* Case study specific: three-column then/work/now strip */
.timeline-strip {
  max-width: 1300px;
  margin: 5rem auto 0;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 40px -15px rgba(30,67,107,0.2);
}

.timeline-col {
  padding: 3rem 2.2rem;
  background: #fbf7ed;
}

.timeline-col.center {
  background: var(--burnt-orange);
  color: var(--offwhite);
}

.timeline-col + .timeline-col {
  border-left: 1px solid var(--soft-rule);
}

.timeline-col.center + .timeline-col {
  border-left: none;
}

.timeline-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burnt-orange);
  margin-bottom: 1.2rem;
}

.timeline-col.center .timeline-label {
  color: var(--offwhite);
  opacity: 0.85;
}

.timeline-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--steel-blue);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.timeline-col.center .timeline-headline {
  color: var(--offwhite);
}

.timeline-body {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--warm-text);
}

.timeline-body p + p { margin-top: 0.8rem; }

.timeline-col.center .timeline-body {
  color: rgba(245,240,230,0.92);
}

.timeline-body strong {
  font-weight: 600;
  font-style: normal;
  color: var(--steel-blue-dk);
}

.timeline-col.center .timeline-body strong {
  color: var(--offwhite);
}

/* Deliverables grid */
.deliverables {
  max-width: 1300px;
  margin: 0 auto;
  padding: 5.5rem 3rem;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.deliverable-card {
  background: #fbf7ed;
  border: 1px solid var(--soft-rule);
  border-radius: 3px;
  padding: 2rem 1.8rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.deliverable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -10px rgba(30,67,107,0.22);
}

.deliverable-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--burnt-orange);
  margin-bottom: 0.5rem;
}

.deliverable-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--steel-blue);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.deliverable-body {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--warm-text);
}

/* Eagle Bar hero image placeholder (gradient until real asset arrives) */
.casestudy-image {
  max-width: 1300px;
  margin: 5rem auto 0;
  padding: 0 3rem;
}

.casestudy-image-inner {
  height: 520px;
  border-radius: 4px;
  background:
    url('../images/portfolio/eagle_hero.jpg') center / contain no-repeat,
    #000;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.casestudy-image-inner::before {
  display: none;
}

.casestudy-image-label {
  display: none;
}

.casestudy-image-label small {
  display: none;
}

/* Ongoing partnership stats — Eagle Bar specific */
.partnership-band {
  background: var(--navy-panel);
  padding: 5rem 0;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

.partnership-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(182,77,38,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.partnership-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
}

.partnership-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.15;
  color: var(--offwhite);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  max-width: 28ch;
}

.partnership-headline em {
  font-style: italic;
  color: var(--burnt-orange);
  font-weight: 500;
}

.partnership-sub {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(245,240,230,0.78);
  max-width: 60ch;
  margin-bottom: 3rem;
}

.partnership-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(245,240,230,0.08);
  border: 1px solid rgba(245,240,230,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.partnership-stat {
  background: var(--navy-panel);
  padding: 1.8rem 1.6rem;
  transition: background 0.25s;
}

.partnership-stat:hover {
  background: var(--navy-panel-dk);
}

.partnership-stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: var(--burnt-orange);
  letter-spacing: -0.02em;
}

.partnership-stat-label {
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,240,230,0.7);
}

/* =============================================
   RESPONSIVE — TABLET (≤ 900px)
============================================= */
@media (max-width: 900px) {
  /* Header collapse to single row centered */
  .site-header {
    padding: 1.8rem 1.5rem 1rem;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .header-left { justify-self: center; }
  .header-logo-image img { height: 72px; }
  .header-rule { display: none; }
  .header-right { justify-self: center; text-align: center; }
  .header-tagline { font-size: 1.1rem; }

  body.inner-page .site-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  body.inner-page .header-left { justify-self: center; }
  body.inner-page .header-right { justify-self: center; text-align: center; }

  /* Nav wraps */
  .site-nav {
    padding: 0.9rem 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  .nav-links { gap: 1.5rem; }
  .nav-sep { display: none; }

  /* Hero — stack and shrink */
  .hero { padding: 3rem 0 0; }
  .hero-inner { padding: 0 1.5rem; }
  .hero-headline-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-headline-image {
    width: 240px;
    height: 240px;
    justify-self: center;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-carousel { width: calc(100% - 3rem); margin-top: 2.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }

  /* About — stack columns */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1.5rem;
  }

  /* Services — 2 col */
  .services { padding: 4rem 0; }
  .services-inner { padding: 0 1.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Featured */
  .featured { padding: 4rem 0; }
  .featured-inner { padding: 0 1.5rem; }
  .feature-panel { min-height: 360px; }
  .feature-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
  }

  /* AI band — stack */
  .ai-band { padding: 4rem 0; }
  .ai-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }
  .ai-tools { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
  .ai-tools-label { width: 100%; margin-bottom: 0.2rem; }

  /* Testimonials — single column */
  .testimonials { padding: 4rem 0; }
  .testimonials-inner { padding: 0 1.5rem; }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  /* CTA */
  .cta { padding: 5rem 1.5rem; }
  .cta-actions { flex-direction: column; gap: 1.2rem; }

  /* Footer */
  footer { padding: 2rem 1.5rem; }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }

  /* Inner page hero */
  .inner-hero { padding: 0 1.5rem; }
  .inner-hero-inner { padding: 2.5rem 1.8rem; }

  /* Case study image */
  .casestudy-image { padding: 0 1.5rem; }
  .casestudy-image-inner { height: 340px; }

  /* Timeline — stack */
  .timeline-strip {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }
  .timeline-col + .timeline-col { border-left: none; border-top: 1px solid var(--soft-rule); }
  .timeline-col.center + .timeline-col { border-top: none; }

  /* Deliverables — 2 col */
  .deliverables { padding: 4rem 1.5rem; }
  .deliverables-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Partnership stats — 2x2 */
  .partnership-band { padding: 4rem 0; margin-top: 4rem; }
  .partnership-inner { padding: 0 1.5rem; }
  .partnership-stats { grid-template-columns: repeat(2, 1fr); }

  /* Section head bars stack */
  .section-head-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Portfolio grid — 2 col on tablet */
  .portfolio-grid-section { padding: 4rem 0; }
  .portfolio-grid-inner { padding: 0 1.5rem; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  /* Show caption always on touch — no hover */
  .portfolio-caption { opacity: 1; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 640px)
============================================= */
@media (max-width: 640px) {
  /* Header even tighter */
  .site-header { padding: 1.4rem 1.2rem 0.8rem; }
  .header-logo-image img { height: 60px; }
  .header-tagline { font-size: 0.95rem; }
  .header-tagline-sub { font-size: 0.5rem; letter-spacing: 0.28em; }

  /* Nav stack */
  .site-nav { padding: 0.7rem 1.2rem; gap: 0.7rem; }
  .nav-links {
    gap: 1.1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links a { font-size: 0.65rem; letter-spacing: 0.22em; }
  .nav-cta { font-size: 0.65rem; padding: 0.5rem 1rem; }

  /* Hero */
  .hero-inner { padding: 0 1.2rem; }
  .hero-headline-image { width: 180px; height: 180px; }
  .hero-headline { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-sub { font-size: 1rem; }
  .btn-primary { font-size: 0.7rem; padding: 0.85rem 1.4rem; }

  /* Section paddings reduced everywhere */
  .about { padding: 4rem 0; }
  .about-inner { padding: 0 1.2rem; gap: 2.5rem; }
  .about-stats { grid-template-columns: 1fr; }
  .about-mantra { grid-column: span 1; }
  .stat-num { font-size: 2rem; }

  /* Services 1 col on mobile */
  .services-inner { padding: 0 1.2rem; }
  .services-grid { grid-template-columns: 1fr; }

  /* Featured */
  .featured-inner { padding: 0 1.2rem; }
  .feature-panel { min-height: 300px; }
  .feature-caption-text strong { font-size: 1.1rem; }

  /* AI band */
  .ai-inner { padding: 0 1.2rem; }
  .ai-headline { font-size: clamp(1.6rem, 6vw, 2rem); }
  .ai-body { font-size: 0.92rem; }

  /* Testimonials */
  .testimonials-inner { padding: 0 1.2rem; }
  .testimonial { padding: 1.8rem 1.5rem; }

  /* CTA */
  .cta { padding: 4rem 1.2rem; }
  .cta-headline { font-size: clamp(2.2rem, 10vw, 3rem); }
  .cta-sub { font-size: 1rem; }

  /* Inner page */
  .inner-hero { padding: 0 1.2rem; }
  .inner-hero-inner { padding: 2rem 1.4rem; }
  .inner-hero-headline { font-size: clamp(2rem, 8vw, 2.6rem); }
  .inner-hero-sub { font-size: 1rem; }

  /* Case study image */
  .casestudy-image { padding: 0 1.2rem; }
  .casestudy-image-inner { height: 240px; }
  .casestudy-image-label { font-size: 1.1rem; }

  /* Timeline & deliverables tighter */
  .timeline-strip { padding: 0 1.2rem; }
  .timeline-col { padding: 2rem 1.4rem; }
  .deliverables { padding: 3rem 1.2rem; }
  .deliverables-grid { grid-template-columns: 1fr; }

  /* Partnership */
  .partnership-inner { padding: 0 1.2rem; }
  .partnership-stats { grid-template-columns: 1fr; }
  .partnership-stat { padding: 1.4rem 1.2rem; }
  .partnership-stat-num { font-size: 2.4rem; }

  /* Ticker tighter */
  .ticker-item { font-size: 0.9rem; }

  /* Portfolio grid — 1 col on mobile */
  .portfolio-grid-inner { padding: 0 1.2rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
