/* ═══════════════════════════════════════════════════════════════
   BAMBOCHIP — Heritage Website
   Design: Forged carbon + acid lime theme, Playfair Display + Inter
   ═══════════════════════════════════════════════════════════════ */

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

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ─── Design Tokens ─── */
:root {
  /* Palette: Forged Carbon */
  --bg:            #0e0e0e;
  --bg-alt:        #1a1a1a;
  --surface:       #1e1e1e;
  --surface-2:     #2a2a2a;
  --border:        #333333;
  --border-light:  #3a3a3a;

  /* Text */
  --text:          #e8e8e8;
  --text-muted:    #999999;
  --text-faint:    #555555;

  /* Accents */
  --gold:          #b4d335;
  --gold-dim:      #8aa828;
  --gold-bright:   #c8e54a;
  --warm-white:    #f0f0f0;

  /* Type Scale */
  --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.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3.5rem,   1rem    + 8vw,    9rem);

  /* 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;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-script: 'Dancing Script', 'Pinyon Script', cursive;

  /* Brand Colors */
  --navy: #1a2744;
  --gold-brand: #b4d335;

  /* Sizing */
  --content-narrow: 680px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Body ─── */
body {
  min-height: 100dvh;
  line-height: 1.7;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.15;
  font-weight: 400;
}

p, li, figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

::selection {
  background: rgba(180, 211, 53, 0.3);
  color: var(--warm-white);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
a:hover { color: var(--gold-bright); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-6);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

.nav--scrolled {
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(180, 211, 53, 0.08);
  padding: var(--space-3) var(--space-6);
}

.nav__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--warm-white);
  text-decoration: none;
}
.nav__logo:hover { color: var(--gold); }
.nav__logo svg,
.nav__crest { flex-shrink: 0; }

.nav__logo-text {
  font-family: var(--font-script);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--navy);
  text-shadow: 2px 2px 0px var(--gold-brand), 3px 3px 6px rgba(180, 211, 53, 0.3);
  line-height: 1;
  position: relative;
  top: 2px;
}
.nav__logo:hover .nav__logo-text { color: var(--navy); text-shadow: 2px 2px 0px var(--gold-bright), 3px 3px 8px rgba(180, 211, 53, 0.5); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  flex-wrap: nowrap;
}

.nav__links a {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition-interactive);
  position: relative;
  white-space: nowrap;
}

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

.nav__links a:hover { color: var(--warm-white); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--gold); }
.nav__links a.active::after { width: 100%; }

/* Mobile Nav Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 101;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--warm-white);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-24) var(--space-8) var(--space-8);
    background: rgba(14, 14, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    gap: var(--space-4);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    border-left: 1px solid var(--border);
  }
  .nav__links--open {
    transform: translateX(0);
  }
  .nav__links a {
    font-size: var(--text-sm);
  }
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-24) var(--space-6);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,14,14,0.3) 0%, transparent 30%, transparent 70%, rgba(14,14,14,0.8) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__kicker {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  color: var(--warm-white);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.hero__title--script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--navy);
  text-shadow: 2px 2px 0px var(--gold-brand), 3px 3px 6px rgba(180, 211, 53, 0.3);
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

.hero__location {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  margin-bottom: var(--space-8);
}

.hero__line {
  width: 60px;
  height: 1px;
  background: var(--gold-dim);
  margin: 0 auto var(--space-8);
}

.hero__intro {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-faint);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════ */
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-6);
  position: relative;
}

.section--accent {
  background: var(--bg-alt);
}

.section--accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section__header {
  max-width: var(--content-wide);
  margin: 0 auto var(--space-12);
  text-align: center;
}

.section__number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.section__title {
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--warm-white);
  letter-spacing: 0.01em;
}

.section__body {
  max-width: var(--content-wide);
  margin: 0 auto;
}

/* ─── Content Blocks ─── */
.content-block {
  max-width: var(--content-default);
  margin: 0 auto var(--space-10);
}

.lead {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--warm-white);
  line-height: 1.7;
  max-width: 65ch;
  margin-bottom: var(--space-8);
}

.content-block p {
  margin-bottom: var(--space-6);
  color: var(--text);
}

.content-block p:last-child { margin-bottom: 0; }

/* ─── Two Column Layout ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  max-width: var(--content-wide);
  margin: 0 auto var(--space-10);
}

.col p {
  margin-bottom: var(--space-5);
  color: var(--text);
}
.col p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ─── Photo Placeholders (kept for any remaining) ─── */
.photo-placeholder {
  aspect-ratio: 4/3;
  border-radius: 2px;
  overflow: hidden;
}

.photo-placeholder--wide {
  max-width: var(--content-wide);
  margin: var(--space-10) auto 0;
  aspect-ratio: 21/9;
}

.photo-placeholder__inner {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.photo-placeholder__label {
  font-size: var(--text-xs);
  font-style: italic;
  color: var(--text-faint);
  text-align: center;
  letter-spacing: 0.03em;
}

/* ─── Photo Figures ─── */
.photo {
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.photo figcaption {
  font-size: var(--text-xs);
  font-style: italic;
  color: var(--text-muted);
  padding: var(--space-3) 0 0;
  letter-spacing: 0.02em;
  line-height: 1.5;
  max-width: none;
}

/* Aspect ratio variants */
.photo--landscape {
  aspect-ratio: 16 / 9;
}

.photo--standard {
  aspect-ratio: 4 / 3;
}

.photo--wide {
  max-width: var(--content-wide);
  margin: var(--space-10) auto 0;
  aspect-ratio: 21 / 9;
}

.photo--full {
  max-width: var(--content-wide);
  margin: var(--space-10) auto 0;
}

/* Two-column photo grid */
.photo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin: var(--space-10) auto 0;
}

.photo-grid-2 .photo {
  overflow: hidden;
}

@media (max-width: 768px) {
  .photo-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Three-column photo grid */
.photo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin: var(--space-10) auto 0;
}

.photo-grid-3 .photo {
  overflow: hidden;
}

@media (max-width: 900px) {
  .photo-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .photo-grid-3 {
    grid-template-columns: 1fr;
  }
  .photo-grid-3 .photo {
    aspect-ratio: 4 / 3;
  }
}

/* Four-column (2x2) photo grid */
.photo-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin: var(--space-10) auto 0;
}

.photo-grid-4 .photo {
  aspect-ratio: auto;
  overflow: hidden;
}

.photo-grid-4 .photo img,
.photo-grid-4 .photo video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 600px) {
  .photo-grid-4 {
    grid-template-columns: 1fr;
  }
  .photo-grid-4 .photo {
    aspect-ratio: 4 / 3;
  }
}

/* ─── Pull Quote ─── */
.pullquote {
  max-width: var(--content-default);
  margin: var(--space-10) auto 0;
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.pullquote blockquote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  line-height: 1.5;
  max-width: 55ch;
  margin: 0 auto;
}

/* ─── Stats Row ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin: 0 auto var(--space-12);
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.stat__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

/* ─── Detail Grid (Engineering) ─── */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: var(--content-wide);
  margin: 0 auto var(--space-10);
}

.detail-card {
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.3s ease;
}

.detail-card:hover {
  border-color: var(--gold-dim);
}

.detail-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.detail-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

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

/* ═══════════════════════════════════════════
   REFIT SECTION
   ═══════════════════════════════════════════ */
.refit-category {
  margin-bottom: var(--space-12);
}

.refit-category__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--gold);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
}

.refit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.refit-item {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
}

.refit-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--warm-white);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.refit-item p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   SPECS TABLE
   ═══════════════════════════════════════════ */
.specs-table-wrap {
  max-width: var(--content-default);
  margin: 0 auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table th,
.specs-table td {
  padding: var(--space-4) var(--space-4);
  text-align: left;
  font-size: var(--text-sm);
  vertical-align: top;
}

.specs-table th {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  width: 35%;
  white-space: nowrap;
}

.specs-table td {
  color: var(--warm-white);
  font-weight: 300;
}

@media (max-width: 600px) {
  .specs-table th {
    width: 40%;
    white-space: normal;
  }
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact-block {
  max-width: var(--content-default);
  margin: 0 auto;
  text-align: center;
}

.contact-block .lead {
  margin-left: auto;
  margin-right: auto;
}

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

.contact-card {
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  text-align: left;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.contact-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.contact-card p:last-child { margin-bottom: 0; }

.contact-placeholder {
  font-style: italic;
  color: var(--text-faint) !important;
  font-size: var(--text-xs) !important;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.contact-note {
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  padding: var(--space-12) var(--space-6);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--warm-white);
  margin-bottom: var(--space-4);
}

.footer__logo-text {
  font-family: var(--font-script);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--warm-white);
  line-height: 1;
}

.footer__text {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.footer__text--muted {
  color: var(--text-faint);
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children slightly */
.fade-in:nth-child(2) { transition-delay: 0.05s; }
.fade-in:nth-child(3) { transition-delay: 0.1s; }
.fade-in:nth-child(4) { transition-delay: 0.15s; }

/* ═══════════════════════════════════════════
   RESPONSIVE REFINEMENTS
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-32) var(--space-4) var(--space-16);
  }
  
  .section {
    padding: clamp(var(--space-12), 6vw, var(--space-24)) var(--space-4);
  }

  .section__header {
    margin-bottom: var(--space-8);
  }

  .hero__title {
    font-size: clamp(2.5rem, 1rem + 10vw, 5rem);
  }

  .hero__title--script {
    text-shadow: 1.5px 1.5px 0px var(--gold-brand), 2px 2px 4px rgba(180, 211, 53, 0.3);
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }

  .pullquote blockquote p {
    font-size: var(--text-lg);
  }
}

@media (max-width: 480px) {
  .nav {
    padding: var(--space-3) var(--space-4);
  }

  .hero__kicker {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
  }

  .section__number {
    font-size: var(--text-xs);
  }

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

  .lead {
    font-size: var(--text-base);
  }
}

/* ─── Print Styles ─── */
@media print {
  .nav, .hero__scroll, .fade-in { opacity: 1 !important; transform: none !important; }
  body { color: #000; background: #fff; }
  .section--accent { background: #f5f5f5; }
}

/* Three-stat centered row */
.stats-row--three {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 600px) {
  .stats-row--three {
    grid-template-columns: 1fr;
  }
}

/* Hero video background */
.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
}
.hero__scroll {
  position: relative;
  z-index: 2;
}

/* Mobile: keep video but provide fallback background if video fails to load */
@media (max-width: 768px) {
  .hero__bg {
    background-image: url('./photos/hero-mobile.jpg');
    background-size: cover;
    background-position: center;
  }
  .hero__video {
    /* Keep video visible on mobile -- iOS supports muted autoplay with playsinline */
  }
}

/* ===== PHOTO CROP OVERRIDES ===== */

/* Grid photos: fixed height, cover, with per-image positioning */
.photo-grid-2 .photo img,
.photo-grid-3 .photo img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center center;
}

/* Section IV - DSC_0108 is ultra-wide (2412x1080), needs no special treatment */
img[src*="dsc-0108"] {
  object-position: center center;
}

/* Section VII - Pitons marketing (1438x1080 landscape) - center the boat lower */
img[src*="bambochip-marketing-1"] {
  object-position: center 70%;
}

/* Section VII - IMG_0831 pre-cropped */
img[src*="img-0831"] {
  object-position: center center;
}

/* Section VIII - keel-2 (1440x1080 landscape) */
img[src*="keel-2"] {
  object-position: center center;
}

/* Section VIII - p4070013 (1440x1080 landscape) */
img[src*="p4070013"] {
  object-position: center center;
}

/* Section VIII - IMG_4027 (1920x1080 landscape, travel lift/Derektor) - show the boat in the slings */
img[src*="img-4027"] {
  object-position: center 20%;
}

/* Section VIII - IMG_0980 pre-cropped */
img[src*="img-0980"] {
  object-position: center center;
}

/* Section IX - IMG_9065 pre-cropped */
.photo--full img[src*="img-9065"] {
  object-position: center center;
}
