/* ==========================================================================
   Foxgrain Fabrication — Design System
   Palette + type pulled from the live foxgrainfab.com site (July 2026)
   ========================================================================== */

:root {
  --color-bg: #1a1614;
  --color-bg-elevated: #221d1a;
  --color-bg-elevated-2: #2a231f;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.14);
  --color-text: #e6dfd2;
  --color-text-muted: #a89e8f;
  --color-heading: #f5f1ea;
  --color-accent: #c1934a;
  --color-accent-light: #d9ab63;
  --color-accent-ink: #0b0907;
  --font-serif: "Playfair Display", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container-w: 1280px;
  --radius-pill: 9999px;
  --radius-card: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--color-accent); color: var(--color-accent-ink);
  padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-heading);
  margin: 0 0 0.4em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.6rem, 6vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.35rem; }
em, .italic-accent { font-style: italic; color: var(--color-accent-light); }
p { margin: 0 0 1em; color: var(--color-text); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-accent); font-weight: 600; margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--color-accent);
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 700px) { .container { padding: 0 20px; } }

section.block { padding: 96px 0; border-top: 1px solid var(--color-border); }
section.block:first-child { border-top: none; }
@media (max-width: 700px) { section.block { padding: 56px 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.4s ease;
}
.btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(193,147,74,0.25), 0 10px 40px -10px rgba(193,147,74,0.45);
}
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-outline { background: transparent; color: var(--color-heading); border-color: var(--color-border-strong); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--color-heading); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Header — floating glass pill nav, matching foxgrain.netlify.app */
.site-header {
  position: fixed; left: 0; right: 0; top: 20px; z-index: 50;
  background: none; backdrop-filter: none; pointer-events: none;
}
@media (max-width: 980px) { .site-header { top: 16px; } }
@media (max-width: 640px) { .site-header { top: 12px; } }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; max-width: var(--container-w); margin: 0 auto;
  pointer-events: none;
}
@media (max-width: 700px) { .site-header__inner { padding: 0 20px; } }
.site-header__inner > * { pointer-events: auto; }

main { padding-top: 108px; }
@media (max-width: 640px) { main { padding-top: 92px; } }
/* Hero bleeds edge-to-edge behind the floating header, matching the source site */
.hero { margin-top: -108px; padding-top: 108px; }
@media (max-width: 640px) { .hero { margin-top: -92px; padding-top: 92px; } }

.logo {
  display: flex; align-items: center; gap: 12px;
  transform-origin: left center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.site-header.is-scrolled .logo { opacity: 0.35; transform: scale(0.72); }
.logo svg { width: 42px; height: 42px; flex-shrink: 0; }
.logo-word { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--color-heading); line-height: 1; }
.logo-word b { font-style: italic; color: var(--color-accent); font-weight: 500; }
.logo-sub { font-size: 0.6rem; letter-spacing: 0.3em; color: var(--color-text-muted); display: block; margin-top: 2px; }

.nav-pill {
  display: flex; align-items: center; gap: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(11,9,7,0.45);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.6), inset 0 1px 0 0 rgba(255,255,255,0.06);
  padding: 6px 8px;
}
.main-nav { display: flex; align-items: center; gap: 2px; padding: 0 4px; }
.main-nav a {
  position: relative;
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 500; letter-spacing: -0.01em;
  color: #9a8d79;
  transition: color 0.15s cubic-bezier(0.4,0,0.2,1), background-color 0.15s cubic-bezier(0.4,0,0.2,1);
}
.main-nav a:hover { color: var(--color-heading); background-color: transparent; }
.main-nav a.is-active { background: rgba(255,255,255,0.08); color: var(--color-heading); }
.nav-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.10); margin: 0 4px; flex-shrink: 0; }
.header-actions { display: flex; align-items: center; gap: 6px; padding-right: 4px; }
.header-actions .btn {
  padding: 6px 14px; font-size: 0.75rem; font-weight: 600;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.header-actions .btn:hover { transform: none; }
.header-actions .btn-ghost { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); }
.header-actions .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); box-shadow: none; }
.header-actions .btn-primary:hover { background: var(--color-accent-light); box-shadow: 0 0 24px rgba(193,147,74,0.5); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.10); background: rgba(11,9,7,0.45);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
  color: var(--color-heading); flex-shrink: 0;
}
@media (max-width: 980px) {
  .nav-pill { display: none; }
  .nav-pill.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: calc(100% + 10px); right: 0; left: 0;
    padding: 14px;
  }
  .nav-pill.is-open .main-nav { flex-direction: column; align-items: stretch; padding: 0; gap: 2px; }
  .nav-pill.is-open .main-nav a { padding: 12px 16px; font-size: 0.9rem; }
  .nav-pill.is-open .nav-divider { width: auto; height: 1px; margin: 6px 4px; }
  .nav-pill.is-open .header-actions { flex-direction: column; align-items: stretch; padding: 4px; gap: 8px; }
  .nav-pill.is-open .header-actions .btn { padding: 12px 16px; font-size: 0.85rem; }
  .site-header__inner { position: relative; }
  .nav-toggle { display: inline-flex; }
}

/* Hero */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  padding-bottom: 80px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,8,7,0.94) 0%, rgba(10,8,7,0.72) 40%, rgba(10,8,7,0.25) 75%),
              linear-gradient(0deg, rgba(10,8,7,0.85), transparent 55%);
  z-index: 0;
}
.hero__content { position: relative; z-index: 1; max-width: 720px; }
.hero p.lede { font-size: 1.1rem; color: var(--color-text); max-width: 520px; margin: 20px 0 32px; }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-bg-elevated); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); overflow: hidden; position: relative;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.4s ease;
}
a.card:hover, .card--photo:hover {
  transform: translateY(-3px);
  border-color: rgba(193,147,74,0.5);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}
.card--photo { min-height: 340px; display: flex; align-items: flex-end; background-size: cover; background-position: center; }
.card--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,8,7,0.92), rgba(10,8,7,0.35) 60%, transparent); }
.card__body { position: relative; z-index: 1; padding: 26px; }
.card__body h3 { text-transform: uppercase; font-size: 1.1rem; letter-spacing: 0.02em; }
.card__body p { color: var(--color-text-muted); font-size: 0.94rem; }
.card__arrow {
  position: absolute; z-index: 1; right: 22px; bottom: 22px;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--color-border-strong);
  display: flex; align-items: center; justify-content: center; color: var(--color-heading);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), background-color 0.3s ease, border-color 0.3s ease;
}
.card--photo:hover .card__arrow {
  background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink);
  transform: scale(1.1) rotate(45deg);
}

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head .lede { max-width: 380px; color: var(--color-text-muted); }
.section-head .lede a { color: var(--color-accent); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* Process steps */
.process-list { counter-reset: step; display: flex; flex-direction: column; }
.process-step { counter-increment: step; display: flex; gap: 24px; padding: 26px 0; border-top: 1px solid var(--color-border); }
.process-step:first-child { border-top: none; }
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif); font-size: 1.4rem; color: var(--color-accent); flex-shrink: 0; width: 60px;
}
.process-step h3 { margin-bottom: 4px; font-size: 1.1rem; }
.process-step p { color: var(--color-text-muted); margin: 0; }

/* Timeline (About) */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--color-border); }
.timeline-item:first-child { border-top: none; }
.timeline-item .year { font-family: var(--font-serif); font-style: italic; color: var(--color-accent); font-size: 1.1rem; }

/* Principles */
.principle { padding: 28px 0; border-top: 1px solid var(--color-border); }
.principle:first-child { border-top: none; }
.principle .num { font-size: 0.75rem; letter-spacing: 0.15em; color: var(--color-accent); display: block; margin-bottom: 8px; }

/* Tables (Capabilities tolerances) */
.tol-table { width: 100%; border-collapse: collapse; }
.tol-table th, .tol-table td { text-align: left; padding: 16px; border-top: 1px solid var(--color-border); }
.tol-table th { color: var(--color-text-muted); font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tol-table .value { color: var(--color-accent); font-family: var(--font-serif); font-size: 1.1rem; }

/* Material tags */
.tag-list { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tag-list li { font-size: 0.92rem; color: var(--color-text); display: flex; justify-content: space-between; border-bottom: 1px dashed var(--color-border); padding-bottom: 6px; }
.tag-list li span { color: var(--color-accent); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; background: var(--color-bg-elevated); border: 1px solid var(--color-border-strong);
  border-radius: 10px; padding: 14px 16px; color: var(--color-heading); font-family: var(--font-sans); font-size: 0.95rem;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .checkbox-grid { grid-template-columns: 1fr 1fr; } }
.checkbox-pill { display: flex; align-items: center; gap: 8px; background: var(--color-bg-elevated); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); padding: 10px 14px; font-size: 0.88rem; }
.checkbox-pill input { width: auto; }
.checkbox-pill.pill-preselected { border-color: var(--color-accent); animation: pillPulse 1.8s ease-out 1; }
@keyframes pillPulse { 0% { background-color: rgba(193,147,74,0.35); } 100% { background-color: var(--color-bg-elevated); } }
.form-note { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 8px; }

/* CTA banner */
.cta-banner { text-align: center; padding: 110px 0; }
.cta-banner h2 { margin-bottom: 18px; }
.cta-banner .btn-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); padding: 64px 0 32px; background: #120f0d; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-sans); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: var(--color-text); font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }
.footer-tagline { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 10px; }

/* Placeholder photo blocks (used until real photography is dropped in) */
.ph-photo {
  background: repeating-linear-gradient(45deg, #241f1c, #241f1c 12px, #1c1815 12px, #1c1815 24px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--color-text-muted); font-size: 0.78rem; letter-spacing: 0.05em; padding: 20px;
  border: 1px dashed var(--color-border-strong);
}

/* Product / Collection (board shop) */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }
.product-card { background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card { transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease, box-shadow 0.4s ease; }
.product-card:hover { transform: translateY(-3px); border-color: rgba(193,147,74,0.5); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6); }
.product-card__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--color-heading); }
.product-card__price { color: var(--color-accent); font-weight: 600; }
.product-card__cta { margin-top: auto; padding-top: 14px; }

.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__gallery-main { border-radius: var(--radius-card); overflow: hidden; margin-bottom: 12px; aspect-ratio: 1; }
.product-detail__gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__thumbs { display: flex; gap: 10px; }
.product-detail__thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--color-border-strong); cursor: pointer; }
.product-detail__price { font-family: var(--font-serif); font-size: 1.8rem; color: var(--color-accent); margin: 10px 0 20px; }
.product-detail__form select, .product-detail__form input[type=number] { margin-bottom: 16px; }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.badge { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); padding: 6px 12px; }

.breadcrumb { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--color-accent); }

.collection-intro { max-width: 640px; margin-bottom: 48px; }
.empty-collection { text-align: center; padding: 80px 20px; color: var(--color-text-muted); }

/* ==========================================================================
   Design system upgrade — fluid type, glass, texture fills, motion
   ========================================================================== */

/* Fluid kinetic typography, extended beyond h1/h2 */
h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
.hero p.lede, .section-head .lede p { font-size: clamp(1rem, 1.3vw, 1.15rem); }
.eyebrow { font-size: clamp(0.66rem, 0.9vw, 0.76rem); }
.product-detail__price { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }

/* Frosted glass utility, used for elevated surfaces over photography/texture */
.glass {
  background: rgba(26, 22, 20, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 40px -14px rgba(0,0,0,0.55), inset 0 1px 0 0 rgba(255,255,255,0.05);
}
.card--photo .card__body { background: linear-gradient(0deg, rgba(10,8,7,0.55), transparent); }

/* Texture fills — stand in for photography until real shots are dropped in.
   Grain overlay (shared) + a rotating set of directional gradients in the
   walnut/gold palette so cards in the same grid don't look identical. */
.tex { position: relative; background-color: var(--color-bg-elevated); }
.tex::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Base gradient fill lives on the element itself (not ::after), so it never
   collides with .hero::after / .card--photo::after, which already use that
   pseudo-element for the text-legibility darkening scrim on top. */
.tex-1 { background: radial-gradient(120% 100% at 15% 20%, rgba(193,147,74,0.35), transparent 55%), linear-gradient(135deg, #2a231f 0%, #1a1614 60%, #100d0b 100%); }
.tex-2 { background: radial-gradient(90% 90% at 85% 15%, rgba(217,171,99,0.28), transparent 55%), linear-gradient(160deg, #221d1a 0%, #171310 100%); }
.tex-3 { background: radial-gradient(100% 80% at 50% 100%, rgba(193,147,74,0.22), transparent 60%), linear-gradient(200deg, #26201c 0%, #14110f 100%); }
.tex-4 { background: radial-gradient(80% 100% at 10% 85%, rgba(217,171,99,0.25), transparent 55%), linear-gradient(115deg, #201a17 0%, #191512 100%); }
.tex-5 { background: radial-gradient(110% 90% at 90% 90%, rgba(193,147,74,0.3), transparent 55%), linear-gradient(150deg, #241e1a 0%, #15110e 100%); }
.tex-6 { background: radial-gradient(90% 100% at 50% 0%, rgba(217,171,99,0.26), transparent 55%), linear-gradient(180deg, #211b18 0%, #17130f 100%); }

/* Scroll-reveal targets (GSAP-driven, see animations.js). Visible by default
   so content never depends on JS running — animations.js flips this class
   on load, and GSAP takes it from there. */
[data-reveal] { opacity: 1; transform: none; }
.js-anim [data-reveal] { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  .js-anim [data-reveal] { opacity: 1; transform: none; }
}

/* Magnetic buttons get a dedicated inner span so the label can lag the
   magnet offset slightly for a tactile, high-end feel. */
.btn-magnetic { position: relative; will-change: transform; }

/* Image slot cycler (see image-cycler.js). Once a slot resolves to a real
   photo, background-size/position need to behave like the old inline
   background-image did. The .tex-N gradient stays underneath as a fallback
   for any slot with nothing uploaded yet. */
[data-img-slot] { background-size: cover; background-position: center; }
[data-img-slot].img-slot-ready { background-color: transparent; }
[data-img-slot] img.img-slot-ready { object-fit: cover; transition: opacity 0.9s ease; }

/* Real <img data-img-slot> elements (used instead of CSS backgrounds so
   photos are crawlable/indexable and can carry real alt text). Starts
   invisible so the .tex-N gradient shows through until a photo resolves,
   then fades in once image-cycler.js adds .img-slot-ready. */
img[data-img-slot] { opacity: 0; object-fit: cover; transition: opacity 0.4s ease; }
img[data-img-slot].img-slot-ready { opacity: 1; }
/* Full-bleed mode: hero + card photos sit behind the text/scrim as an
   absolutely-positioned layer instead of a normal block image. */
img[data-img-slot].slot-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
