/* style.css — Inspired Culinary Collective design tokens + components */

/* ============ TYPE SCALE ============ */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.4rem, 1.15rem + 1.1vw, 2.1rem);
  --text-2xl: clamp(1.9rem, 1.3rem + 2vw, 3.1rem);
  --text-3xl: clamp(2.3rem, 1.3rem + 3vw, 4.2rem);
  --text-hero: clamp(2.6rem, 1.2rem + 4.6vw, 5.6rem);

  /* 4px spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1220px;
  --content-full: 100%;

  /* Fixed light color for text over photos — independent of theme,
     since photo overlays are always dark regardless of light/dark mode */
  --color-on-photo: #f4f2ea;
  --color-on-photo-primary: #e0a487;

  /* Fonts — REAL brand fonts, do not substitute */
  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', sans-serif;
}

/* ============ LIGHT MODE (default) — real ICC brand palette ============ */
:root,
[data-theme='light'] {
  --color-bg: #e5e3dc;
  --color-surface: #ede9de;
  --color-surface-2: #f5f2e9;
  --color-surface-offset: #dcd9cf;
  --color-surface-offset-2: #d2cec1;
  --color-surface-dynamic: #c8c3b3;
  --color-divider: #cfccc0;
  --color-border: #c2beaf;

  --color-text: #303636;
  --color-text-muted: #5c6362;
  --color-text-faint: #8b9190;
  --color-text-inverse: #f4f2ea;

  /* Primary accent — terracotta */
  --color-primary: #d4967d;
  --color-primary-hover: #c17e62;
  --color-primary-active: #a8664c;
  --color-primary-highlight: #ecd8cd;

  /* Secondary accent — brand ink navy (GatheringHaus / dark panels) */
  --color-navy: #1c2340;
  --color-navy-hover: #262f52;
  --color-navy-active: #141a30;
  --color-navy-highlight: #d6d9e3;

  --color-success: #4c7a5b;
  --color-success-highlight: #d7e4da;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 60 / 0.08);
  --shadow-md: 0 4px 14px oklch(0.2 0.02 60 / 0.1);
  --shadow-lg: 0 14px 36px oklch(0.2 0.02 60 / 0.16);
}

/* ============ DARK MODE — deep navy/charcoal base ============ */
[data-theme='dark'] {
  --color-bg: #14182c;
  --color-surface: #1a2038;
  --color-surface-2: #202844;
  --color-surface-offset: #232b4a;
  --color-surface-offset-2: #2b3456;
  --color-surface-dynamic: #333c60;
  --color-divider: #303a5c;
  --color-border: #3a4468;

  --color-text: #ece9e0;
  --color-text-muted: #b7bad0;
  --color-text-faint: #7d82a3;
  --color-text-inverse: #1c2340;

  --color-primary: #e0a487;
  --color-primary-hover: #e8b89e;
  --color-primary-active: #c98a6c;
  --color-primary-highlight: #3a2e2a;

  --color-navy: #e5e3dc;
  --color-navy-hover: #f0eee6;
  --color-navy-active: #cfccc0;
  --color-navy-highlight: #2b3456;

  --color-success: #85b898;
  --color-success-highlight: #24352b;

  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.35);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #14182c;
    --color-surface: #1a2038;
    --color-surface-2: #202844;
    --color-surface-offset: #232b4a;
    --color-surface-offset-2: #2b3456;
    --color-surface-dynamic: #333c60;
    --color-divider: #303a5c;
    --color-border: #3a4468;
    --color-text: #ece9e0;
    --color-text-muted: #b7bad0;
    --color-text-faint: #7d82a3;
    --color-text-inverse: #1c2340;
    --color-primary: #e0a487;
    --color-primary-hover: #e8b89e;
    --color-primary-active: #c98a6c;
    --color-primary-highlight: #3a2e2a;
    --color-navy: #e5e3dc;
    --color-navy-hover: #f0eee6;
    --color-navy-active: #cfccc0;
    --color-navy-highlight: #2b3456;
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.35);
    --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);
  }
}

/* ============ BASE TYPE ============ */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h4,
h5,
h6 {
  font-family: var(--font-body);
  font-weight: 700;
}

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

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow--navy {
  color: var(--color-navy);
}
[data-theme='dark'] .eyebrow--navy {
  color: var(--color-primary);
}

.section-title {
  font-size: var(--text-2xl);
  line-height: 1.05;
  max-width: 20ch;
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 42rem;
  font-weight: 400;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 97%, transparent);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.1);
}
@supports (backdrop-filter: blur(1px)) {
  @media (min-width: 861px) {
    .site-header {
      background: color-mix(in oklab, var(--color-bg) 88%, transparent);
      backdrop-filter: blur(14px);
    }
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  min-width: 0;
}

.brand img {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.brand__word {
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 0.6rem + 0.4vw, 0.92rem);
  letter-spacing: 0.02em;
  color: var(--color-navy);
  text-transform: uppercase;
  line-height: 1.05;
  white-space: nowrap;
}
[data-theme='dark'] .brand__word {
  color: var(--color-text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.main-nav ul {
  display: flex;
  gap: var(--space-5);
  align-items: center;
}

.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  padding: var(--space-2) var(--space-1);
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--color-primary);
}
.main-nav a[aria-current='page'] {
  color: var(--color-primary);
}
.main-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: var(--space-1);
  right: var(--space-1);
  bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text);
  border: 1px solid oklch(from var(--color-text) l c h / 0.14);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.nav-toggle:hover {
  background: var(--color-surface-offset);
}

/* Mobile nav */
@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-6) var(--space-5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
      visibility 220ms;
    overflow-y: auto;
    z-index: 90;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    width: 100%;
  }
  .main-nav a {
    display: block;
    padding: var(--space-4) var(--space-2);
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--color-divider);
  }
  .main-nav__toggle-row {
    margin-top: var(--space-6);
    display: flex;
    justify-content: flex-start;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  min-height: 44px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: #26211d;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}
[data-theme='dark'] .btn--primary {
  color: #241a13;
}

.btn--navy {
  background: var(--color-navy);
  color: var(--color-text-inverse);
}
.btn--navy:hover {
  background: var(--color-navy-hover);
}
[data-theme='dark'] .btn--navy {
  /* In dark mode --color-navy inverts to a light fill, so the label needs
     dark ink. --color-navy-active is also light and left it unreadable. */
  color: #171d33;
}

.btn--outline {
  background: transparent;
  border-color: oklch(from var(--color-text) l c h / 0.28);
  color: var(--color-text);
}
.btn--outline:hover {
  border-color: var(--color-text);
  background: var(--color-surface-offset);
}

.btn--outline-inverse {
  background: transparent;
  border-color: oklch(from var(--color-on-photo) l c h / 0.45);
  color: var(--color-on-photo);
}
.btn--outline-inverse:hover {
  background: oklch(from var(--color-on-photo) l c h / 0.12);
}

.btn-row {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 12vw, var(--space-32));
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

.hero h1 {
  font-size: var(--text-hero);
  line-height: 1.02;
}

.hero-photo {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  color: var(--color-on-photo);
  isolation: isolate;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    oklch(0.15 0.03 265 / 0.35) 0%,
    oklch(0.13 0.03 265 / 0.72) 68%,
    oklch(0.11 0.03 265 / 0.9) 100%
  );
  z-index: -1;
}
.hero-photo__content {
  position: relative;
  z-index: 1;
  padding: clamp(var(--space-8), 8vw, var(--space-20)) var(--space-5);
  width: 100%;
}
.hero-photo .eyebrow {
  color: var(--color-on-photo-primary);
}
.hero-photo h1 {
  color: var(--color-on-photo);
}
.hero-photo p {
  color: oklch(from var(--color-on-photo) l c h / 0.88);
}

/* ============ CARDS ============ */
.card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-size: var(--text-lg);
  text-transform: none;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-weight: 700;
}

.card p {
  color: var(--color-text-muted);
}

.grid {
  display: grid;
  gap: var(--space-6);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 860px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

/* ============ VENTURE CARDS (What We Own) ============ */
.venture-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  color: var(--color-on-photo);
  isolation: isolate;
}
.venture-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.venture-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.15 0.03 265 / 0.1) 0%, oklch(0.1 0.03 265 / 0.88) 100%);
  z-index: -1;
}
.venture-card__body {
  position: relative;
  z-index: 1;
  padding: var(--space-8);
}
.venture-card__tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-photo-primary);
  margin-bottom: var(--space-2);
  display: block;
}
.venture-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--text-xl);
  color: var(--color-on-photo);
  margin-bottom: var(--space-2);
}
.venture-card p {
  color: oklch(from var(--color-on-photo) l c h / 0.85);
  margin-bottom: var(--space-4);
}
.venture-card .btn {
  margin-top: var(--space-2);
}

/* ============ STAT BAND ============ */
.stat-band {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
}
[data-theme='dark'] .stat-band {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
}
.stat-band .container--wide {
  padding-block: clamp(var(--space-8), 6vw, var(--space-16));
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: var(--space-8);
}
.stat-grid dt {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}
.stat-grid dd {
  font-size: var(--text-sm);
  color: oklch(from var(--color-text-inverse) l c h / 0.82);
  max-width: 22ch;
}
[data-theme='dark'] .stat-grid dd {
  color: var(--color-text-muted);
}

/* Generic stat cards (terracotta-forward, used on Orchid7 / Home) */
.stat-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: left;
}
.stat-card .stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}
.stat-card--navy .stat-num {
  color: var(--color-navy);
}
[data-theme='dark'] .stat-card--navy .stat-num {
  color: var(--color-primary);
}
.stat-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 8vw, var(--space-16));
  text-align: left;
  color: #26211d;
}
[data-theme='dark'] .cta-band {
  color: #241a13;
}
.cta-band--navy {
  background: var(--color-navy);
  color: var(--color-text-inverse);
}
.cta-band h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.cta-band p {
  margin-bottom: var(--space-6);
  max-width: 46ch;
}
.cta-band--navy p {
  color: oklch(from var(--color-text-inverse) l c h / 0.85);
}

/* ============ TABLE ============ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
}
.data-table {
  width: 100%;
  min-width: 480px;
  font-family: var(--font-body);
}
.data-table th,
.data-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.1);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .data-table {
    min-width: 0;
  }
  .data-table th,
  .data-table td {
    padding: var(--space-2) var(--space-2);
    font-size: var(--text-xs);
  }
}
.data-table th {
  font-weight: 700;
  background: var(--color-surface-offset);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--text-xs);
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr.total td {
  font-weight: 700;
  background: var(--color-surface-offset);
}

/* ============ TIMELINE ============ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-6);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.timeline-item:first-child {
  border-top: none;
}
.timeline-item time {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
}
.timeline-item h3 {
  font-family: var(--font-body);
  text-transform: none;
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}
.timeline-item .role-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
@media (max-width: 700px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

/* ============ LIST STYLES ============ */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.check-list li {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  color: var(--color-text-muted);
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  margin-top: 0.5em;
}
.check-list--navy li::before {
  background: var(--color-navy);
}
[data-theme='dark'] .check-list--navy li::before {
  background: var(--color-primary);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
  margin-top: clamp(var(--space-16), 8vw, var(--space-24));
}
[data-theme='dark'] .site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-10);
}
@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
.footer-logo img {
  height: 74px;
  width: auto;
  margin-bottom: var(--space-5);
}
.footer-founder {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.footer-founder img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--color-divider);
}
.footer-founder span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.site-footer p {
  color: oklch(from var(--color-text-inverse) l c h / 0.75);
  font-size: var(--text-sm);
  max-width: 34ch;
}
.footer-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  color: oklch(from var(--color-text-inverse) l c h / 0.85);
  font-size: var(--text-sm);
}
.footer-links a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(from var(--color-text-inverse) l c h / 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: oklch(from var(--color-text-inverse) l c h / 0.6);
}

/* ============ UTILITY ============ */
.text-center {
  text-align: center;
}
.mt-2 {
  margin-top: var(--space-2);
}
.mt-4 {
  margin-top: var(--space-4);
}
.mt-6 {
  margin-top: var(--space-6);
}
.mt-8 {
  margin-top: var(--space-8);
}
.mt-12 {
  margin-top: var(--space-12);
}
.mb-4 {
  margin-bottom: var(--space-4);
}
.mb-6 {
  margin-bottom: var(--space-6);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mb-10 {
  margin-bottom: var(--space-10);
}
.mb-12 {
  margin-bottom: var(--space-12);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
.two-col--reverse {
  direction: rtl;
}
.two-col--reverse > * {
  direction: ltr;
}
@media (max-width: 860px) {
  .two-col--reverse {
    direction: ltr;
  }
}
.rounded-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rounded-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.surface-panel {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}
.surface-panel--navy {
  background: var(--color-navy);
  color: var(--color-text-inverse);
}
[data-theme='dark'] .surface-panel--navy {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}
.surface-panel--navy p {
  color: oklch(from var(--color-text-inverse) l c h / 0.85);
}
[data-theme='dark'] .surface-panel--navy p {
  color: var(--color-text-muted);
}
.section-header {
  margin-bottom: var(--space-10);
}
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary-active);
}
[data-theme='dark'] .badge {
  color: var(--color-primary);
}
.press-row {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: center;
}
.press-row a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-text-faint);
  padding-bottom: 2px;
}
.press-row a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #1a1a1a;
  padding: var(--space-3) var(--space-5);
  z-index: 999;
  border-radius: var(--radius-md);
  font-weight: 600;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ============ LEAD GATE MODAL ============ */
.gate-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.2 0.02 60 / 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  z-index: 300;
}
.gate-overlay[hidden] {
  display: none;
}
.gate-dialog {
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.gate-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  cursor: pointer;
}
.gate-close:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.gate-dialog h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  padding-right: var(--space-8);
}
.gate-dialog p.gate-sub {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.gate-field {
  margin-bottom: var(--space-4);
}
.gate-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.gate-field input,
.gate-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
  background: var(--color-bg);
  color: var(--color-text);
}
.gate-field input:focus,
.gate-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.gate-field textarea {
  resize: vertical;
  min-height: 80px;
}
.gate-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.gate-error {
  color: #b3261e;
  font-size: var(--text-sm);
  margin-top: var(--space-1);
  min-height: 1.2em;
}
.gate-submit {
  width: 100%;
  margin-top: var(--space-2);
}
.gate-success {
  text-align: center;
}
.gate-success svg {
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.gate-success h3 {
  padding-right: 0;
}
.gate-success .btn {
  margin-top: var(--space-4);
}

/* ============ PHOTO GALLERY ============ */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 860px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}
@media (max-width: 520px) {
  .photo-gallery {
    grid-template-columns: 1fr;
  }
}
.photo-gallery__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.photo-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.photo-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: oklch(from var(--color-navy) l c h / 0);
  transition: background 0.2s ease;
}
.photo-gallery__item:hover,
.photo-gallery__item:focus-visible {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.photo-gallery__item:hover img,
.photo-gallery__item:focus-visible img {
  transform: scale(1.04);
}
.photo-gallery__item:hover::after,
.photo-gallery__item:focus-visible::after {
  background: oklch(from var(--color-navy) l c h / 0.08);
}
.photo-gallery__item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.15 0.02 260 / 0.92);
  padding: var(--space-6);
  animation: lightbox-fade 0.18s ease;
}
.lightbox[hidden] {
  display: none;
}
@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox__figure {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
}
.lightbox__figure figcaption {
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
  text-align: center;
  max-width: 60ch;
}
.lightbox__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: none;
  background: oklch(1 0 0 / 0.12);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: oklch(1 0 0 / 0.22);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: none;
  background: oklch(1 0 0 / 0.12);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: oklch(1 0 0 / 0.22);
}
.lightbox__nav--prev {
  left: var(--space-5);
}
.lightbox__nav--next {
  right: var(--space-5);
}
@media (max-width: 640px) {
  .lightbox__nav {
    width: 40px;
    height: 40px;
  }
  .lightbox__nav--prev { left: var(--space-2); }
  .lightbox__nav--next { right: var(--space-2); }
  .lightbox__close {
    top: var(--space-3);
    right: var(--space-3);
  }
}

/* ============ VENTURE BRAND LOCKUP (theme-aware) ============ */
/* The primary lockup's wordmark is near-black and disappears on the dark
   theme, so swap to the reverse (knockout) colorway. */
.venture-lockup {
  max-width: 340px;
  width: 100%;
  height: auto;
  margin-bottom: var(--space-6);
}
.venture-lockup--reverse { display: none; }
[data-theme='dark'] .venture-lockup--light { display: none; }
[data-theme='dark'] .venture-lockup--reverse { display: block; }

/* The CTA band keeps its warm terracotta fill in dark mode, so buttons inside
   it need dark ink rather than the inverted light text. */
[data-theme='dark'] .cta-band .btn--outline {
  color: #241a13;
  border-color: rgba(36, 26, 19, 0.38);
}
[data-theme='dark'] .cta-band .btn--outline:hover {
  background: rgba(36, 26, 19, 0.08);
}
