/* ============================================================
   ESSENTIAL LINENS — Modern sans-serif house, corehome.com pattern
   Full-bleed hero, auto carousel, dark stat bands, brand grid,
   4-column CTA cards. Single long page.
   ============================================================ */

:root {
  --bg: #f7f5f1;
  --bg-paper: #ffffff;
  --bg-stone: #ebe8e2;
  --bg-dark: #221e19;
  --bg-dark-2: #1a1612;
  --text: #111111;
  --text-soft: #555555;
  --text-muted: #888888;
  --line: #e0ddd6;
  --line-dark: #2c2c2c;
  --accent: #b08d57;
  --accent-dark: #8d6f40;
  --max: 1280px;
  --max-narrow: 880px;
  --max-prose: 680px;
  --header-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1rem; color: var(--text-soft); font-size: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; transition: color 0.2s, opacity 0.2s; }

img { max-width: 100%; display: block; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.eyebrow-light { color: rgba(255,255,255,0.7); }

.lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 400;
}

.container        { max-width: var(--max);        margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 2rem; }
.container-prose  { max-width: var(--max-prose);  margin: 0 auto; padding: 0 2rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  background: rgba(247, 245, 241, 0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  padding: 0.85rem 0;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* When over the dark hero, switch nav text/logo to light */
.site-header:not(.scrolled) .nav-links > li > a { color: rgba(255,255,255,0.92); }
.site-header:not(.scrolled) .nav-links > li > a:hover { color: var(--accent); }
.site-header:not(.scrolled) .nav-toggle { color: #fff; border-color: rgba(255,255,255,0.6); }
.site-header:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

/* CSS wordmark — used in header and on the Essential Linens brand card.
   A typographic stand-in until real logo files arrive. */
.brand-mark-link { display: inline-block; }

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px solid currentColor;
  padding: 0.35rem 0.95rem 0.3rem;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.brand-mark .mark-line {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand-mark .mark-sub {
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  border-top: 1px solid currentColor;
  padding-top: 0.28rem;
  margin-top: 0.32rem;
  width: 100%;
}

/* Bigger version used inside the brand portfolio card */
.brand-mark-card {
  padding: 0.55rem 1.3rem 0.45rem;
}
.brand-mark-card .mark-line { font-size: 1.45rem; letter-spacing: 0.16em; }
.brand-mark-card .mark-sub  { font-size: 0.75rem; letter-spacing: 0.32em; padding-top: 0.45rem; margin-top: 0.5rem; }


.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.nav-links > li > a {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links > li > a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--text);
  padding: 0.4rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--header-h) 1.5rem 4rem;
  background:
    linear-gradient(rgba(15,15,15,0.55), rgba(15,15,15,0.5)),
    linear-gradient(135deg, #2a2520 0%, #131210 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero[data-bg] {
  background:
    var(--hero-img) center/cover no-repeat,
    linear-gradient(135deg, #3a3128, #1a1612);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: transparent;
}

.hero-video[poster] {
  /* poster only shows if video fails — keep it invisible */
  object-position: 200% 200%;
}

.hero-video:not([src]):not(:has(source[src])) { display: none; }

/* Warmer, lighter veil — keeps the headline readable without the heavy
   pure-black weight the designer flagged. */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(30, 25, 20, 0.35) 0%,
      rgba(30, 25, 20, 0.42) 50%,
      rgba(20, 16, 12, 0.55) 100%
    ),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.25) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.hero h1 {
  color: #fff;
  font-weight: 200;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
}

.hero .lead {
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.6);
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.95rem 2.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover { background: #fff; color: var(--text); }

.btn-dark { color: var(--text); border-color: var(--text); }
.btn-dark:hover { background: var(--text); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--text);
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}

.btn-link::after { content: '→'; font-size: 1rem; transition: transform 0.2s; }
.btn-link:hover { color: var(--accent); border-color: var(--accent); gap: 0.85rem; }
.btn-link.on-dark { color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-link.on-dark:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Generic sections ---------- */

section { padding: 7rem 0; position: relative; }

.section-title { text-align: center; max-width: 760px; margin: 0 auto 4rem; }
.section-title h2 { margin-bottom: 1rem; }
.section-title p { font-size: 1.1rem; color: var(--text-soft); }

.section-dark {
  background: var(--bg-dark);
  color: #e8e8e6;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.65); }

/* ---------- Mission Block ---------- */

.mission {
  padding: 8rem 0 7rem;
  text-align: center;
}

.mission h2 { font-weight: 200; margin-bottom: 1.75rem; }

.mission p {
  font-size: 1.2rem;
  line-height: 1.65;
  font-weight: 300;
  color: var(--text-soft);
}

.mission-cta {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Founder Section ---------- */

.founder { background: var(--bg-paper); padding: 7rem 0; }

.founder-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-narrow);
  margin: 0 auto;
}

.founder-portrait {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #2a2520, #131210);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.founder-portrait .monogram {
  font-family: 'Inter', sans-serif;
  font-size: 5.5rem;
  font-weight: 200;
  color: var(--accent);
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
}

.founder-body .quote {
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
}

.founder-body .quote::before { content: '"'; color: var(--accent); margin-right: 0.1rem; }
.founder-body .quote::after  { content: '"'; color: var(--accent); margin-left: 0.1rem; }

.founder-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.founder-meta strong { color: var(--text); font-weight: 600; }

/* ---------- Origin narrative ---------- */

.origin {
  background: var(--bg);
  padding: 6rem 0;
  text-align: center;
}

.origin p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-soft);
}

/* ---------- Retail Partners Band ---------- */

.partners {
  background: var(--bg-dark);
  padding: 6rem 0;
  text-align: center;
}

.partners h2 { color: #fff; font-weight: 300; margin-bottom: 0.75rem; }
.partners > .container > p { color: rgba(255,255,255,0.55); max-width: 540px; margin: 0 auto 3rem; }

/* Retail-partner logo wall */
.partner-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.partner-logo {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  background: #fbfaf6;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.partner-logo:hover {
  background: #ffffff;
  border-color: rgba(176, 141, 87, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.partner-logo img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s;
}

.partner-logo:hover img {
  transform: scale(1.04);
}

.partner-logo .logo-fallback {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 1024px) {
  .partner-logos { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

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

/* ---------- Split sections (Private Label / Licensing) ---------- */

.split-section {
  background: var(--bg-paper);
  padding: 0;
}

.split-section + .split-section { border-top: 1px solid var(--line); }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  align-items: stretch;
}

.split-media {
  background-size: cover;
  background-position: center;
  background-color: var(--bg-stone);
  min-height: 60vh;
}

.split-media[data-bg] { background-image: var(--split-img); }

.split-body {
  padding: 5rem clamp(2rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-body h2 { font-weight: 300; margin-bottom: 1.5rem; }
.split-body p { font-size: 1.05rem; margin-bottom: 1rem; }
.split-body .btn-link { margin-top: 1.5rem; }

.split-reverse .split-grid { direction: rtl; }
.split-reverse .split-grid > * { direction: ltr; }

/* ---------- Stats Band ---------- */

.stats {
  background: var(--bg-dark-2);
  padding: 6rem 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.stats-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.85;
}

.stats-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.stats > .container {
  position: relative;
  z-index: 2;
}

.stats-eyebrow { color: rgba(255,255,255,0.55); margin-bottom: 3rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: var(--max-narrow);
  margin: 0 auto;
}

.stat .number {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 200;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

.stat .number .unit { color: var(--accent); }

.stat .label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ---------- Product Categories Icon Grid ---------- */

.categories-grid {
  background: var(--bg-paper);
  padding: 7rem 0;
  border-top: 1px solid var(--line);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.photo-cell {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: #1f1d1a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  cursor: default;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0.78) 100%);
  transition: opacity 0.4s;
  pointer-events: none;
}

.photo-cell:hover { transform: scale(1.015); }
.photo-cell:hover::before { opacity: 0.85; }

.photo-cell-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.5rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  z-index: 1;
}

@media (max-width: 1024px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
}

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

/* ---------- Location Section ---------- */

.location {
  background: var(--bg);
  padding: 7rem 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-narrow);
  margin: 0 auto;
}

.location-media {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-stone);
}

.location-media[data-bg] { background-image: var(--location-img); }

.location-body h2 { font-weight: 300; margin-bottom: 1.5rem; }
.location-body address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  margin-top: 1.5rem;
}

/* ---------- Brand Showcase Grid ---------- */

.brands {
  background: var(--bg-stone);
  padding: 8rem 0;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.brand-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  cursor: default;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(176, 141, 87, 0.12) 0%, transparent 55%),
    linear-gradient(160deg, #1f1c18 0%, #14110f 70%, #0c0a09 100%);
  color: #f5f1ea;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.brand-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 100%, rgba(176, 141, 87, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  border-color: rgba(176, 141, 87, 0.35);
}

.brand-logo-area {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.5rem;
  min-height: 0;
  position: relative;
  z-index: 1;
}

/* Each brand logo lives inside a soft white "badge" so the logo's original
   colors read cleanly against the dark card. */
.brand-logo-area::before {
  content: '';
  position: absolute;
  inset: 1rem 1rem auto 1rem;
  bottom: 1rem;
  background: #fbfaf6;
  border-radius: 10px;
  z-index: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.brand-logo-img {
  position: relative;
  z-index: 1;
  max-width: 78%;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 0.5rem;
}

/* Fallback wordmarks (for brands without logo files) sit on the same white badge */
.brand-wordmark {
  position: relative;
  z-index: 1;
  padding: 1rem 1.5rem;
}

.brand-wordmark {
  text-align: center;
  line-height: 1;
  display: block;
}

.brand-info {
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  position: relative;
  z-index: 1;
}

.brand-info .tagline {
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.82);
  opacity: 1;
}

.brand-info .more {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.2s, letter-spacing 0.25s;
}

.brand-card:hover .brand-info .more {
  color: var(--accent-soft, #d4ae72);
  letter-spacing: 0.24em;
}

/* ----- Brand wordmark fallback typography (for cards without real logo files) ----- */

.wm-marbella {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  color: #2a2520;
  text-transform: uppercase;
}

.wm-aquo {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.32em;
  color: #2a2520;
}

.wm-drift {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: 0.28em;
  color: #2a2520;
}

/* Stone & Kitchen Collection — section background (kept light to differentiate
   from the main brand portfolio's dark base) */
.stone-collection {
  background: var(--bg-paper);
  border-top: 1px solid var(--line);
}

/* ---------- 4-Column CTA Section ---------- */

.cta-grid-section {
  background: var(--bg);
  padding: 8rem 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cta-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s;
}

.cta-card:hover { transform: translateY(-4px); }

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: var(--cta-bg);
  background-color: var(--cta-color, #2a2520);
  filter: brightness(0.55);
  z-index: 0;
}

.cta-card > * { position: relative; z-index: 1; }

.cta-card h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

.cta-card p {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.cta-card .more {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Contact Section ---------- */

.contact {
  background: var(--bg-paper);
  padding: 8rem 0;
  border-top: 1px solid var(--line);
}

.contact-inner { text-align: center; max-width: var(--max-narrow); margin: 0 auto; }
.contact-inner h2 { font-weight: 300; margin-bottom: 1.25rem; }
.contact-inner p { font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 540px; margin-left: auto; margin-right: auto; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.25rem;
  margin-top: 3rem;
  text-align: left;
}

.contact-form .full { grid-column: 1 / -1; }

.contact-form label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 100px; }

.contact-form .submit-row { grid-column: 1 / -1; text-align: center; margin-top: 1rem; }

.contact-emails {
  margin-top: 2.5rem;
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-emails a {
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
  transition: border-color 0.2s, color 0.2s;
}

.contact-emails a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-dark-2);
  color: #a8a8a5;
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.footer-brand .logo-text {
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.footer-brand p { font-size: 0.92rem; color: #888581; max-width: 320px; line-height: 1.65; }

.footer-grid h4 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.footer-grid a { color: #a8a8a5; transition: color 0.2s; }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1.5rem 2rem 0;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: #6a6864;
}

.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: #888581; font-size: 0.85rem; }
.footer-social a:hover { color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .icon-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; gap: 4rem; }

  .split-grid { grid-template-columns: 1fr; min-height: auto; }
  .split-media { min-height: 50vh; }
  .split-body { padding: 4rem 2rem; }
  .split-reverse .split-grid { direction: ltr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

  .founder-card { grid-template-columns: 1fr; gap: 2.5rem; max-width: 540px; }
  .founder-portrait { aspect-ratio: 4/3; max-height: 320px; }

  .location-grid { grid-template-columns: 1fr; max-width: 520px; }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }

  section { padding: 5rem 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(247, 245, 241, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links > li > a { display: block; padding: 1rem 2rem; }
  .nav-toggle { display: block; }

  .hero { min-height: 92vh; }
  .scroll-indicator { display: none; }

  .icon-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid, .cta-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 3rem; }

  .carousel-item { flex-basis: 220px; }
}

/* ---------- Reveal / scroll-triggered fade-in ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .carousel-track { animation: none; }
  .scroll-indicator { animation: none; }
}

/* Initial hero reveal on first paint */
.hero .reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-enter 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes hero-enter {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Print stylesheet — used when generating PDFs.
   Force everything visible, disable animations, hide videos, etc.
   ============================================================ */

@media print {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  /* Force every reveal/lazy element into final visible state */
  .reveal, .reveal.is-visible, .hero .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  /* Header should appear once at the top, not stick to every page */
  .site-header {
    position: absolute !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--line) !important;
    backdrop-filter: none !important;
  }
  .site-header:not(.scrolled) .nav-links > li > a { color: var(--text) !important; }
  .site-header:not(.scrolled) .brand-logo { filter: none !important; }

  /* Hero — replace looping video with a solid dark scene so the text stays readable */
  .hero-video { display: none !important; }
  .hero {
    background: linear-gradient(135deg, #2a2520 0%, #131210 100%) !important;
    min-height: auto !important;
    padding: 8rem 1.5rem 5rem !important;
  }

  /* Stats band — drop the video too, keep the solid dark color */
  .stats-video { display: none !important; }
  .stats { padding: 4rem 0 !important; }

  /* Scroll indicator is meaningless on paper */
  .scroll-indicator { display: none !important; }

  /* Avoid splitting key blocks across pages where possible */
  .brand-card, .photo-cell, .cta-card, .pillar, .stat,
  .founder-card, .leader, .partner-logo, .icon-cell { break-inside: avoid; }

  section { break-inside: avoid-page; }

  /* Slightly tighter section padding for print */
  section { padding: 4rem 0 !important; }

  /* Make sure body uses light bg */
  body { background: #fff !important; }
}

