/* Foreman page — extends styles.css */

.foreman-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 32px 56px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Video-backed variant */
.foreman-hero.has-video {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 96px clamp(32px, 6vw, 88px) 80px;
  isolation: isolate;
  overflow: hidden;
  color: #f5f1ea;
  --ink-soft: rgba(245,241,234,0.74);
  --ink-line: rgba(245,241,234,0.18);
}
.foreman-hero.has-video::after {
  /* bottom fade into page color so it transitions cleanly to next section */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), var(--bg));
  pointer-events: none;
  z-index: 2;
}
.foreman-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1a1612;
}
.foreman-hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05);
  transform: scale(1.02);
}
.foreman-hero-video-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(20,16,12,0.88) 0%,
      rgba(20,16,12,0.72) 38%,
      rgba(20,16,12,0.42) 62%,
      rgba(20,16,12,0.55) 100%),
    radial-gradient(120% 80% at 0% 50%, rgba(20,16,12,0.55), rgba(20,16,12,0) 60%);
}
.foreman-hero-video-grain {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(245,241,234,0.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(245,241,234,0.02) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
.foreman-hero.has-video > .foreman-hero-text,
.foreman-hero.has-video > .foreman-hero-photo {
  position: relative;
  z-index: 1;
}
.foreman-hero.has-video .section-eyebrow,
.foreman-hero.has-video .section-eyebrow span {
  color: rgba(245,241,234,0.7);
}
.foreman-hero.has-video .section-eyebrow::before,
.foreman-hero.has-video .section-eyebrow::after {
  background: rgba(245,241,234,0.28);
}
.foreman-hero.has-video .foreman-h1 { color: #f5f1ea; }
.foreman-hero.has-video .foreman-lede { color: rgba(245,241,234,0.82); }
.foreman-hero.has-video .foreman-creds {
  border-top-color: rgba(245,241,234,0.2);
}
.foreman-hero.has-video .foreman-creds b { color: #f5f1ea; }
.foreman-hero.has-video .foreman-creds b span,
.foreman-hero.has-video .foreman-creds > div > span:last-child {
  color: rgba(245,241,234,0.62);
}
.foreman-hero.has-video .btn-ghost {
  color: #f5f1ea;
  border-color: rgba(245,241,234,0.4);
}
.foreman-hero.has-video .btn-ghost:hover {
  background: rgba(245,241,234,0.08);
}
.foreman-hero-text { display: flex; flex-direction: column; gap: 22px; }
.foreman-h1 {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 700;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 4px 0 0;
  font-variation-settings: 'opsz' 96;
}
.foreman-h1 em {
  font-style: italic;
  font-weight: 500;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05em;
}
.foreman-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 48ch;
  text-wrap: pretty;
}
.foreman-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.foreman-creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid var(--ink-line);
  margin-top: 12px;
}
.foreman-creds > div { display: flex; flex-direction: column; gap: 6px; padding-right: 24px; }
.foreman-creds b {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.foreman-creds b span {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 2px;
  letter-spacing: -0.01em;
}
.foreman-creds > div > span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.foreman-hero-photo {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow:
    0 1px 0 rgba(24,22,18,0.10),
    0 18px 36px rgba(24,22,18,0.16),
    0 48px 72px rgba(24,22,18,0.10);
  background: color-mix(in srgb, var(--ink) 6%, var(--bg));
}
.foreman-hero-photo img,
.foreman-hero-photo .foreman-photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.foreman-hero-photo .foreman-photo-placeholder svg {
  width: 100%;
  height: 100%;
  display: block;
}
.foreman-photo-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.foreman-photo-caption .caption-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-soft);
}
.foreman-photo-caption .caption-name {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Body */
.foreman-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 32px 32px;
}
.foreman-body-head { margin-bottom: 56px; max-width: 880px; }
.foreman-body-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px 32px;
}
.foreman-block {
  grid-column: span 3;
  padding: 32px 28px;
  background: color-mix(in srgb, var(--ink) 3%, var(--bg));
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foreman-block-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.foreman-block-h {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
.foreman-block p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}
.foreman-block-pull {
  grid-column: span 6;
  background: var(--accent, var(--ink));
  color: #fff;
  border: none;
  padding: 48px 56px;
  text-align: center;
  align-items: center;
  position: relative;
}
.foreman-block-pull p {
  color: rgba(255,255,255,0.92);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.35;
  max-width: 28ch;
  text-wrap: balance;
}
.foreman-pull-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 110px;
  line-height: 0.6;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0;
}

/* License */
.foreman-license {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.foreman-license-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  margin-top: 16px;
}
.foreman-license-h {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
.foreman-license-h em {
  font-style: italic;
  font-weight: 500;
  font-family: 'Cormorant Garamond', serif;
}
.foreman-license p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
  max-width: 44ch;
}

@media (max-width: 900px) {
  .foreman-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 24px 32px;
  }
  .foreman-hero-photo { aspect-ratio: 3/4; max-width: 460px; margin: 0 auto; width: 100%; }
  .foreman-body { padding: 64px 24px 16px; }
  .foreman-body-grid { grid-template-columns: 1fr; }
  .foreman-block, .foreman-block-pull { grid-column: span 1; }
  .foreman-block-pull { padding: 32px 24px; }
  .foreman-block-pull p { font-size: 22px; }
  .foreman-creds { grid-template-columns: 1fr 1fr; }
  .foreman-license { padding: 32px 24px 56px; }
  .foreman-license-grid { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
}
