:root {
  /* Typography */
  --font-sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Apple Color Emoji, Segoe UI Emoji;
  --lh-tight: 1.15;
  --lh-snug: 1.25;
  --lh-normal: 1.45;
  --lh-relaxed: 1.6;

  /* Color tokens */
  --bg-page: #1a1a1a;
  --bg-section: #2a2a2a;
  --bg-surface: #333333;
  --bg-elevated: #404040;
  --bg-muted-surface: #4a4a4a;

  --border-subtle: rgba(255,255,255,0.08);
  --border-strong: #555555;
  --focus-ring: #C53E3E;

  --text-primary: #FFFFFF;
  --text-secondary: #E0E0E0;
  --text-tertiary: #B0B0B0;
  --text-muted: #808080;
  --text-inverse: #1a1a1a;
  --text-on-accent: #FFFFFF;

  --icon-default: #E0E0E0;
  --icon-subtle: #B0B0B0;
  --icon-inverse: #1a1a1a;
  --icon-on-accent: #FFFFFF;

  --accent-blue: #B91C1C;
  --accent-cyan: #DC2626;
  --accent-indigo: #991B1B;
  --accent-purple: #7F1D1D;
  --accent-magenta: #B91C1C;
  --accent-orange: #DC2626;
  --accent-teal: #991B1B;
  --accent-lime: #7F1D1D;

  --overlay-strong: rgba(26,26,26,0.85);
  --overlay-med: rgba(26,26,26,0.6);
  --overlay-soft: rgba(26,26,26,0.35);
  --overlay-red: rgba(185,28,28,0.40);

  --shadow-ambient: rgba(0,0,0,0.40);
  --shadow-lift: rgba(0,0,0,0.45);
  --shadow-ring: rgba(185,28,28,0.55);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-xxl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --sh-surface: 0 1px 2px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04) inset;
  --sh-card: 0 8px 24px rgba(0,0,0,0.45);
  --sh-card-hover: 0 12px 32px rgba(0,0,0,0.55);
  --sh-header: 0 6px 16px rgba(0,0,0,0.35);
  --sh-focus: 0 0 0 3px rgba(185,28,28,0.55);

  /* Gradients */
  --grad-hero-vignette: linear-gradient(180deg, rgba(26,26,26,0) 0%, rgba(26,26,26,0.6) 70%, rgba(26,26,26,0.85) 100%);
  --grad-hero-red: radial-gradient(120% 80% at 20% 0%, rgba(185,28,28,0.4) 0%, rgba(185,28,28,0) 60%);
  --grad-primary-btn: linear-gradient(135deg, #B91C1C 0%, #DC2626 100%);
  --grad-card-a: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
  --grad-card-b: linear-gradient(135deg, #DC2626 0%, #7F1D1D 100%);
  --grad-chip-red: linear-gradient(135deg, #B91C1C 0%, #DC2626 100%);

  --container-max: 1200px;
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;  --space-4: 16px;  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;  --space-10: 40px;  --space-12: 48px;  --space-16: 64px;  --space-20: 80px;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body.app-shell {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: var(--lh-normal);
}

.container {
  width: min(100%, var(--container-max));
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16,18,24,0.75);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--sh-header);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: var(--space-6) 0; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--text-primary); text-decoration: none; font-weight: 700; padding-left: var(--space-4); }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--grad-chip-red); color: var(--text-on-accent); font-size: 14px; font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: var(--space-4); }
.main-nav a { color: var(--text-secondary); text-decoration: none; font-weight: 600; }
.main-nav a:hover { color: var(--text-primary); }

.nav-toggle { display: none; }

/* Hero */
.hero-section { position: relative; padding: clamp(100px, 14vw, 190px) 0 var(--space-16); overflow: hidden; min-height: clamp(480px, 60vh, 740px); }
.hero-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-layer .hero-img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.hero-bg-image { z-index: 0; animation: bg-zoom 22s ease-in-out infinite alternate; }
.hero-bg-image .hero-img.bg { filter: saturate(108%) contrast(103%); opacity: 0.45; }
.hero-subject-image { z-index: 2; display: block; --subject-scale: .73; }
.hero-subject-image .hero-img.subject { object-fit: contain; object-position: center bottom; opacity: 0.92; transform: scale(var(--subject-scale)) translateY(-100px); transform-origin: center bottom; will-change: transform; }
.hero-bg { position: absolute; inset: 0; background: var(--grad-hero-red), var(--grad-hero-vignette); pointer-events: none; z-index: 1; }
.hero-inner { position: relative; z-index: 3; min-height: clamp(440px, 58vh, 700px); display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-4); padding-bottom: var(--space-8); }

/* Bottom veil: expanded boundary so more top area shows */
.hero-bottom-veil { z-index: 3; display: block; overflow: visible; height: 230%; bottom: 0; position: absolute; opacity: 0.35; }
.hero-bottom-veil .hero-img { object-fit: cover; object-position: center bottom; transform: translateY(20%); }

@keyframes bg-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-image { animation: none; }
}
.hero-inner { position: relative; }
.hero-title { font-size: clamp(28px, 5vw, 48px); line-height: var(--lh-tight); margin: 0 0 var(--space-4); font-weight: 800; }
.hero-subtitle { color: var(--text-secondary); max-width: 820px; margin: 0 0 var(--space-6); font-size: 18px; }
.cta-group { display: flex; gap: var(--space-4); }

/* Our Work hero split layout (keep BRCC palette) */
.our-work-hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 48px); }
.hero-copy { max-width: 680px; }
.hero-mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); box-shadow: var(--sh-card); }
.mosaic-tile { aspect-ratio: 1/1; overflow: hidden; border-radius: 12px; background: var(--bg-surface); position: relative; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .5s ease; }
.mosaic-tile:hover img { transform: scale(1.06); }

@media (max-width: 960px) {
  .our-work-hero-inner { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: var(--space-16) 0; background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.02) 100%); }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%); }
.section-header { margin-bottom: var(--space-8); }
.section-header h2 { margin: 0 0 var(--space-2); font-size: clamp(22px, 3.2vw, 36px); line-height: var(--lh-snug); }
.section-sub { color: var(--text-tertiary); margin: 0; }

/* Video card */
.video-card {
  overflow: hidden;
}

.video-embed {
  margin-top: var(--space-4);
  border-radius: var(--r-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--sh-card);
}

.video-embed-inner {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
}

.video-embed-inner iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  border-radius: var(--r-lg);
}

/* Grid */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .section-nav { display: none; }
}

/* Cards */
.card { background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); box-shadow: var(--sh-card); overflow: hidden; transition: box-shadow .2s ease, transform .18s ease, border-color .2s ease; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--sh-card-hover); transform: translateY(-2px); border-color: var(--border-strong); }
.card .content { padding: var(--space-6); }
.card .title { margin: 0 0 var(--space-3); font-size: 22px; font-weight: 700; }
.card .body { color: var(--text-secondary); margin: 0; }
.card .list { margin: 0; padding-left: 1.1rem; color: var(--text-secondary); }
.card .media { height: 120px; background: var(--bg-surface); position: relative; }
.card .media.gradient-a::after { content: ""; position: absolute; inset: 0; background: var(--grad-card-a); opacity: .25; }
.card .media.gradient-b::after { content: ""; position: absolute; inset: 0; background: var(--grad-card-b); opacity: .25; }

.card.emphasis { display: grid; align-content: center; text-align: left; }
.card.pricing .price { font-size: 32px; font-weight: 800; margin: 0 0 var(--space-4); }
.card.pricing .price small { font-size: 14px; color: var(--text-tertiary); margin-left: 6px; }
.card.pricing.highlight { outline: 2px solid rgba(185,28,28,.25); background: linear-gradient(180deg, rgba(185,28,28,0.08), rgba(185,28,28,0.02)); }

/* Buttons */
.btn { --pad-y: 12px; --pad-x: 18px; display: inline-flex; align-items: center; gap: 10px; padding: var(--pad-y) var(--pad-x); border-radius: var(--r-pill); font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: box-shadow .2s ease, background .2s ease, transform .15s ease, border-color .2s ease; }
.btn.small { --pad-y: 8px; --pad-x: 14px; font-size: 14px; }
.btn--primary { color: var(--text-on-accent); background: var(--grad-primary-btn); box-shadow: 0 6px 16px rgba(185,28,28,0.45); }
.btn--primary:hover { box-shadow: 0 8px 20px rgba(185,28,28,0.55); background: linear-gradient(135deg, #991B1B 0%, #DC2626 100%); }
.btn--primary:active { background: #7F1D1D; box-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.btn--secondary { color: var(--text-primary); background: var(--bg-surface); border: 1px solid var(--border-subtle); box-shadow: var(--sh-surface); }
.btn--secondary:hover { background: var(--bg-elevated); border-color: var(--border-strong); }
.btn--secondary:active { background: var(--bg-surface); }
.btn:focus-visible { outline: none; box-shadow: var(--sh-focus); }

/* Icons / Icon buttons */
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; background: rgba(255,255,255,0.06); border: 1px solid var(--border-subtle); border-radius: var(--r-sm); color: var(--icon-default); }
.icon-button:hover { background: rgba(255,255,255,0.10); }
.icon-button:active { background: rgba(255,255,255,0.14); }

/* Inputs */
input, select, textarea { width: 100%; background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: 12px 14px; outline: none; box-shadow: none; }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus-visible, select:focus-visible, textarea:focus-visible { box-shadow: var(--sh-focus); border-color: var(--focus-ring); }

/* Contact CTA */
.section-final { padding-bottom: calc(var(--space-20) + 40px); }
.cta-panel { display: grid; gap: var(--space-6); grid-template-columns: 1.2fr 1.8fr; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--r-xl); padding: var(--space-8); box-shadow: var(--sh-card); }
.cta-text h2 { margin: 0 0 var(--space-2); font-size: clamp(22px, 3.2vw, 36px); }
.contact-form .row { display: grid; gap: var(--space-4); grid-template-columns: 1fr 1fr; margin-bottom: var(--space-4); }
.contact-form .actions { margin-top: var(--space-4); }
.form-success { color: var(--accent-cyan); margin-top: var(--space-3); }

@media (max-width: 900px) {
  .cta-panel { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { background: #0B0C10; border-top: 1px solid var(--border-subtle); margin-top: var(--space-16); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: start; padding: var(--space-8) 0; }
.legal { color: var(--text-tertiary); margin: 0; }
.brand-compact { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--text-secondary); }

.footer-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-contact h4 {
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
  font-size: 16px;
  font-weight: 600;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--text-primary);
}

.contact-link svg {
  color: var(--accent-blue);
}

@media (max-width: 740px) {
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
}

/* Utilities */
.hidden { display: none !important; }

/* Section navigation */
.section-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* Nav dots */
.nav-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border-subtle);
  transition: background 0.2s, box-shadow 0.2s;
  border: 2px solid var(--accent-blue);
}
.nav-dot:hover, .nav-dot.active {
  background: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(185,28,28,0.15);
}

/* Brand logo */
.brand-logo {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

/* Icons */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-large {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--accent-blue);
}

/* Card gradient tops - Cohesive color system complementary to light blue (#52A5FF) */
.card-gradient-top {
  height: 120px;
  width: 100%;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  margin-bottom: var(--space-4);
}

/* Section 1: Three Ways We Can Help - Deep Red family */
.gradient-blue {
  background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
}

.gradient-blue-light {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
}

.gradient-blue-dark {
  background: linear-gradient(135deg, #7F1D1D 0%, #B91C1C 100%);
}

/* Section 2: 90-Day Growth Path - Deep Red variants */
.gradient-teal {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
}

.gradient-teal-light {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.gradient-teal-dark {
  background: linear-gradient(135deg, #991B1B 0%, #7F1D1D 100%);
}

/* Section 3: Why This Works for You - Darker red variants */
.gradient-indigo {
  background: linear-gradient(135deg, #7F1D1D 0%, #991B1B 100%);
}

.gradient-indigo-light {
  background: linear-gradient(135deg, #B91C1C 0%, #7F1D1D 100%);
}

.gradient-indigo-dark {
  background: linear-gradient(135deg, #5B1717 0%, #7F1D1D 100%);
}

/* Section 4: Expected Results - Lighter red variants */
.gradient-cyan {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.gradient-cyan-light {
  background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
}

.gradient-cyan-dark {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
}

/* Card headers with icons */
.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.card-header .title {
  margin: 0;
}

.card .content {
  padding-top: var(--space-4);
  flex: 1;
}

/* Section headers with icons */
.section-header-with-icon {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section-header-with-icon .title {
  margin: 0;
}

/* Content highlights */
.content-highlight {
  background: rgba(185,28,28,0.1);
  border-left: 4px solid var(--accent-blue);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

/* Feature lists */
.feature-list {
  margin: var(--space-3) 0;
  padding-left: var(--space-5);
  color: var(--text-secondary);
}

.feature-list li {
  margin-bottom: var(--space-2);
  line-height: var(--lh-relaxed);
}

/* Format sections */
.format-section,
.purpose-section,
.impact-section {
  margin-bottom: var(--space-4);
}

.subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-blue);
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Steps flow */
.steps-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin: var(--space-8) 0;
  flex-wrap: wrap;
}

.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  text-align: center;
  min-width: 220px;
  max-width: 280px;
  box-shadow: var(--sh-card);
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
}

.step-body {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
  line-height: var(--lh-relaxed);
}

.step-arrow {
  color: var(--accent-blue);
  display: flex;
  align-items: center;
}

/* Contact options */
.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.contact-card.primary {
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(185,28,28,0.1), rgba(220,38,38,0.05));
}

.contact-card.secondary {
  border-color: var(--border-subtle);
  background: var(--bg-elevated);
  transform: scale(0.9);
  opacity: 0.8;
}

.contact-card.secondary:hover {
  transform: scale(0.95);
  opacity: 1;
}

/* Schedule CTA */
.schedule-cta {
  margin-top: var(--space-12);
}

.schedule-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--space-10);
  text-align: center;
  box-shadow: var(--sh-card);
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, rgba(185,28,28,0.1), rgba(220,38,38,0.05));
}

.schedule-content .cta-title {
  margin: 0 0 var(--space-4);
  color: var(--text-primary);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: var(--lh-tight);
}

.schedule-content .cta-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  margin: 0 0 var(--space-6);
  max-width: 600px;
  margin-inline: auto;
}

.btn--large {
  --pad-y: 16px;
  --pad-x: 24px;
  font-size: 18px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-content h4 {
  margin: 0 0 var(--space-2);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.contact-content .cta-title {
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 800;
  line-height: var(--lh-snug);
}

.contact-content p {
  margin: 0 0 var(--space-3);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.contact-content .btn {
  margin-top: var(--space-3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .steps-flow {
    flex-direction: column;
    gap: var(--space-6);
  }
  
  .step-arrow {
    transform: rotate(90deg);
  }
  
  .contact-options {
    grid-template-columns: 1fr;
  }
}

/* 
 * ADD YOUR BRAND CUSTOMIZATIONS BELOW THIS LINE
 * 
 * Example brand overrides:
 * 
 * :root {
 *   --accent-blue: #your-brand-color;
 *   --accent-teal: #your-secondary-color;
 *   --text-primary: #your-text-color;
 * }
 * 
 * See Tyler Labuave example for reference on how to override colors
 * while maintaining the layout structure.
 */

/* Development Fee Section Spacing */
.development-fee-section {
  margin-top: 6rem !important;
  margin-bottom: 2rem;
}

.development-fee-section .card.emphasis {
  background: linear-gradient(135deg, rgba(185,28,28,0.08), rgba(185,28,28,0.02));
  border: 1px solid rgba(185,28,28,0.2);
}

/* Pricing Card Images */
.card-image-top {
  height: 195px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
}

.card-image-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Our Work: Portfolio grid using current BRCC color palette */
.our-work .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

.our-work .portfolio-item {
  position: relative;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: box-shadow .3s ease, transform .3s ease;
  border: 1px solid rgba(0,0,0,0.06);
  aspect-ratio: 16/12;
}

.trusted-strip { background: #0E0F13; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.trusted-inner { padding: var(--space-10) 0; text-align: center; }
.trusted-heading { color: var(--text-secondary); margin: 0 0 var(--space-6); font-size: 18px; }
.trusted-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 40px; opacity: .9; }
.trusted-logo { color: var(--text-tertiary); font-weight: 700; letter-spacing: .02em; }

/* Stats section */
.stats-section { background: #0B0C10; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-10); align-items: start; }
.stat-item { text-align: center; }
.stat-number { font-size: clamp(32px, 5vw, 56px); font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.stat-label { color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.stat-desc { color: var(--text-tertiary); margin: 6px 0 0; font-size: 14px; }

/* Comparison table */
.comparison-section { background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%); }
.comparison-table { border: 1px solid var(--border-subtle); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-card); }
.comparison-head, .comparison-table .row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; }
.comparison-head .cell { background: var(--bg-elevated); padding: 14px; font-weight: 700; border-right: 1px solid var(--border-subtle); }
.comparison-head .cell:last-child { border-right: 0; }
.comparison-table .row .cell { padding: 14px; border-top: 1px solid var(--border-subtle); border-right: 1px solid var(--border-subtle); text-align: center; }
.comparison-table .row .cell.row-label { text-align: left; font-weight: 600; color: var(--text-secondary); }
.comparison-table .row .cell:last-child { border-right: 0; }
.comparison-table .cell.highlight { background: linear-gradient(135deg, rgba(185,28,28,0.10), rgba(220,38,38,0.05)); font-weight: 800; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* "Made to flex" three-card row */
.made-to-flex { background: #0E1216; }
.made-to-flex .section-label { text-align: center; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; margin: 0 0 var(--space-6); }
.flex-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.flex-card { background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 18px; overflow: hidden; box-shadow: var(--sh-card); display: grid; grid-template-rows: auto auto; }
.flex-card .flex-media { aspect-ratio: 16/11; background: var(--bg-surface); }
.flex-card .flex-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flex-caption { padding: 16px 18px; font-size: 18px; line-height: 1.35; font-weight: 600; }
.flex-caption em { font-style: italic; font-weight: 600; }
.tone-1 .flex-caption { background: rgba(185,28,28,0.18); color: var(--text-primary); }
.tone-2 .flex-caption { background: rgba(220,38,38,0.18); color: var(--text-primary); }
.tone-3 .flex-caption { background: rgba(127,29,29,0.20); color: var(--text-primary); }

@media (max-width: 980px) {
  .flex-grid { grid-template-columns: 1fr; }
}

/* Horizontal carousel */
.carousel-section { background: #0E0F13; }
.carousel-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: var(--space-6); }
.carousel-title { margin: 0; font-size: clamp(26px, 3.4vw, 42px); line-height: var(--lh-snug); }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 38vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.carousel-track::-webkit-scrollbar { height: 10px; }
.carousel-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
.carousel-card { scroll-snap-align: start; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; box-shadow: var(--sh-card); }
.carousel-card .media { aspect-ratio: 4/3; background: var(--bg-surface); }
.carousel-card .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-card .caption { padding: 14px 16px; font-weight: 600; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-subtle); background: var(--bg-surface); color: var(--text-secondary); cursor: pointer; }
.carousel-btn:hover { color: var(--text-primary); border-color: var(--border-strong); }

/* THEME TOGGLING
   Default = existing BRCC theme (no attribute).
   Superside-like visual style is applied when body[data-style="ss"] is present. */

/* Superside-like overrides (scoped to Our Work page) */
/* neutral container for future page-wide overrides */
body[data-style="ss"] .our-work { /* style namespace hook */ transform: translateZ(0); }

/* Hero split remains, but typography spacing closer to references */
body[data-style="ss"] .our-work .hero-title {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.02em;
}
body[data-style="ss"] .our-work .hero-subtitle { font-size: 18px; max-width: 560px; }

/* Trusted strip on off‑white */
body[data-style="ss"] .trusted-strip { background: #F4F5F7; border-top: none; border-bottom: none; }
body[data-style="ss"] .trusted-heading { color: #1F2937; }
body[data-style="ss"] .trusted-logo { color: #374151; opacity: .9; }

/* Three image features (no heavy card chrome) */
body[data-style="ss"] .made-to-flex { background: #0F1E1A; }
body[data-style="ss"] .flex-card { border: 0; box-shadow: none; }
body[data-style="ss"] .flex-card .flex-media { border-radius: 16px; overflow: hidden; }
body[data-style="ss"] .flex-caption { background: transparent; color: #D1FAE5; padding: 16px 6px; }

/* Carousel spacing and lighter chrome */
body[data-style="ss"] .carousel-section { background: #F7F7F7; }
body[data-style="ss"] .carousel-card { border: 0; box-shadow: none; background: #FFFFFF; }
body[data-style="ss"] .carousel-card .media { border-radius: 16px; overflow: hidden; }
body[data-style="ss"] .carousel-btn { background: #FFFFFF; }

/* Portfolio grid: exactly 3 columns, no overlays, no card look */
body[data-style="ss"] .our-work .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) {
  body[data-style="ss"] .our-work .portfolio-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body[data-style="ss"] .our-work .portfolio-grid { grid-template-columns: 1fr; }
}
body[data-style="ss"] .our-work .portfolio-item { border: 0; box-shadow: none; background: transparent; aspect-ratio: auto; }
body[data-style="ss"] .our-work .portfolio-image { border-radius: 16px; height: auto; }
body[data-style="ss"] .our-work .portfolio-overlay { display: none !important; }

.our-work .portfolio-item:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.our-work .portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.our-work .portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

.our-work .portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.92) 0%, rgba(220, 38, 38, 0.88) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.our-work .portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.our-work .portfolio-overlay-content {
  text-align: center;
  color: #FFFFFF;
  transform: translateY(20px);
  transition: transform .3s ease;
  padding: 0 var(--space-4);
}

.our-work .portfolio-item:hover .portfolio-overlay-content {
  transform: translateY(0);
}

.our-work .portfolio-overlay-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.our-work .portfolio-overlay-text {
  font-size: 14px;
  opacity: 0.92;
  margin: 0;
}
