/* ============================================================
   KENAN WEAVER | ELITE ADVISORY DESIGN SYSTEM
   Navy #0B132B / Cream #FDFBF7 / Gold #D4AF37
   ============================================================ */

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('../assets/fonts/big-shoulders-display-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../assets/fonts/instrument-sans-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../assets/fonts/instrument-sans-italic-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #0B132B;
  --navy-deep: #060B1C;
  --cream: #FDFBF7;
  --gold: #D4AF37;
  --stone: #6C5E53;
  --preloader-bg: #EFEAE4;
  --cream-14: rgba(253, 251, 247, 0.14);
  --cream-55: rgba(253, 251, 247, 0.55);
  --card-bg: rgba(11, 19, 43, 0.55);
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --halo: 0 1px 2px rgba(6, 11, 28, 0.85), 0 2px 24px rgba(6, 11, 28, 0.55);
}

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

html { scroll-behavior: auto; }

body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--cream); }

::selection { background: var(--gold); color: var(--navy); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Brand logo (shared geometry: preloader morphs into hero) ---------- */

.brand-logo {
  font-family: var(--font-display);
  font-weight: 780;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em; /* balances tracking so the mark stays optically centered */
  white-space: nowrap;
}

.preloader-logo,
.hero-logo {
  position: absolute;
  top: 17vh;
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Preloader ---------- */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--preloader-bg);
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.65, 0.05, 0.36, 1);
  /* Dead-man switch: if scripting never releases the preloader, CSS does */
  animation: preloader-failsafe 0.8s cubic-bezier(0.65, 0.05, 0.36, 1) 4s forwards;
}
#preloader .preloader-logo { color: var(--stone); }
#preloader.is-leaving { opacity: 0; pointer-events: none; }
#preloader[hidden] { display: none; animation: none; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }

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

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2.2rem);
  transition: background-color 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(11, 19, 43, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(253, 251, 247, 0.08);
}
.header-brand {
  font-family: var(--font-display);
  font-weight: 760;
  font-size: 1.02rem;
  letter-spacing: 0.3em;
  text-decoration: none;
  text-shadow: var(--halo);
}
.header-nav { display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.5rem); }
.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-shadow: var(--halo);
  opacity: 0.92;
}
.nav-link:hover { color: var(--gold); opacity: 1; }

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 640;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 3px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  padding: 0.95rem 1.7rem;
  font-size: 0.95rem;
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.25);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 38px rgba(212, 175, 55, 0.38);
}
.btn-compact { padding: 0.55rem 0.95rem; font-size: 0.8rem; }
.btn-large { padding: 1.1rem 2.2rem; font-size: 1.05rem; }
.btn-outline {
  border: 1px solid var(--cream-55);
  color: var(--cream);
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  background: rgba(11, 19, 43, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ---------- Acts (pinned scenes) ---------- */

.act {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--navy-deep);
}

.act-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.act-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Vignette plus a soft central plate so copy never sits on the brightest frame area */
.scene-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 65% at 50% 52%, rgba(6, 11, 28, 0.48) 0%, rgba(6, 11, 28, 0.18) 55%, rgba(6, 11, 28, 0) 78%),
    linear-gradient(to bottom, rgba(6, 11, 28, 0.62) 0%, rgba(6, 11, 28, 0.06) 26%, rgba(6, 11, 28, 0.06) 68%, rgba(6, 11, 28, 0.72) 100%);
}
.scene-scrim-deep {
  background:
    radial-gradient(ellipse 95% 75% at 50% 50%, rgba(6, 11, 28, 0.58) 0%, rgba(6, 11, 28, 0.3) 55%, rgba(6, 11, 28, 0.1) 80%),
    linear-gradient(to bottom, rgba(6, 11, 28, 0.7) 0%, rgba(6, 11, 28, 0.22) 30%, rgba(6, 11, 28, 0.22) 62%, rgba(6, 11, 28, 0.82) 100%);
}

.act-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.2rem, 4vw, 3rem);
  max-width: 78rem;
  margin-inline: auto;
}

/* The wordmark is absolutely pinned at 17vh and the logo band sits along the
   bottom, so the hero's centered block needs its own vertical safe area to keep
   the headline from riding up into the name. */
.hero-content {
  padding-top: clamp(9rem, 25vh, 16rem);
  padding-bottom: clamp(5rem, 11vh, 8rem);
}

/* ---------- Type ---------- */

.headline {
  font-family: var(--font-display);
  font-weight: 750;
  text-transform: uppercase;
  line-height: 0.97;
  letter-spacing: 0.015em;
  text-shadow: var(--halo);
  text-wrap: balance;
}
.hero-headline { font-size: clamp(2.7rem, 8vw, 6rem); max-width: 16ch; }
.act-headline { font-size: clamp(2.1rem, 5.6vw, 4.2rem); max-width: 20ch; margin-inline: auto; }
.section-headline { font-size: clamp(2.1rem, 5vw, 3.6rem); }

.headline .word { display: inline-block; }

/* Champagne-gold emphasis on the pivot phrases, set per-word via data-accent
   on the headline (the kinetic splitter rebuilds the words, so inline tags
   would not survive). Ties the headline to the gold CTA. */
.headline .accent { color: var(--gold); }

.hero-sub {
  max-width: 46rem;
  margin-top: 1.6rem;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.7;
  color: var(--cream);
  text-shadow: var(--halo);
}
.hero-cta { margin-top: 2.1rem; }

.act-body {
  max-width: 44rem;
  margin-top: 1.8rem;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.75;
  text-shadow: var(--halo);
}

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  margin-top: clamp(1.6rem, 3.5vh, 2.8rem);
  width: 100%;
  max-width: 62rem;
}
.pillars-2 { grid-template-columns: repeat(2, 1fr); max-width: 52rem; }
.pillars-3 { grid-template-columns: repeat(3, 1fr); }

.pillar {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--cream-14);
  border-radius: 10px;
  padding: clamp(1.1rem, 2.2vw, 1.7rem);
  text-align: left;
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.pillar p { font-size: clamp(0.88rem, 1.4vw, 0.98rem); line-height: 1.65; color: var(--cream); opacity: 0.94; }

.method-cta { margin-top: clamp(1.4rem, 3vh, 2.2rem); }

/* ---------- Gallery ---------- */

#gallery {
  position: relative;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0) 55%),
    var(--navy);
  padding: clamp(4rem, 10vh, 7rem) clamp(1rem, 4vw, 3rem) clamp(4.5rem, 11vh, 8rem);
}
.gallery-inner { max-width: 74rem; margin-inline: auto; }
#gallery .section-headline { margin-bottom: clamp(1.8rem, 4vh, 3rem); }

.masonry { columns: 3 260px; column-gap: 1.1rem; }
.shot {
  margin: 0 0 1.1rem;
  break-inside: avoid;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  outline: 1px solid rgba(253, 251, 247, 0.07);
  outline-offset: -1px;
  transition: outline-color 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(26px);
}
.shot.visible { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease, outline-color 0.3s ease; }
.shot:hover { outline: 2px solid var(--gold); outline-offset: -2px; }
.shot img { width: 100%; height: auto; transition: transform 0.6s ease; }
.shot:hover img { transform: scale(1.025); }

/* ---------- Lightbox ---------- */

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(4, 7, 18, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.9rem;
  padding: 3.5rem 4.5rem;
}
#lightbox[hidden] { display: none; }
#lb-img { max-width: min(92vw, 1400px); max-height: 80vh; width: auto; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
#lb-caption { color: var(--cream-55); font-size: 0.85rem; letter-spacing: 0.03em; }
#lightbox button {
  position: absolute;
  background: rgba(11, 19, 43, 0.6);
  color: var(--cream);
  border: 1px solid var(--cream-14);
  border-radius: 50%;
  width: 2.9rem;
  height: 2.9rem;
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
#lightbox button:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- Logo band ---------- */

.logo-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 0 1.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.marquee { display: flex; width: max-content; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(2.4rem, 5vw, 4.2rem);
  padding-right: clamp(2.4rem, 5vw, 4.2rem);
  list-style: none;
  animation: marquee 46s linear infinite;
}
@keyframes marquee { to { transform: translateX(-100%); } }

.mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  opacity: 0.62;
  flex-shrink: 0;
}
.mark-columbia { flex-direction: column; gap: 0.25rem; }

/* Real marks rendered as cream silhouettes via alpha mask */
.mark-img {
  display: block;
  height: var(--mh, 24px);
  aspect-ratio: var(--ar, 3);
  background: var(--cream);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.logo-apple { -webkit-mask-image: url('../assets/logos/apple.svg'); mask-image: url('../assets/logos/apple.svg'); }
.logo-columbia { -webkit-mask-image: url('../assets/logos/columbia-crown.svg'); mask-image: url('../assets/logos/columbia-crown.svg'); }
.logo-verizon { -webkit-mask-image: url('../assets/logos/verizon.svg'); mask-image: url('../assets/logos/verizon.svg'); }
.logo-chase { -webkit-mask-image: url('../assets/logos/chase.svg'); mask-image: url('../assets/logos/chase.svg'); }
.logo-att { -webkit-mask-image: url('../assets/logos/att.svg'); mask-image: url('../assets/logos/att.svg'); }
.logo-exxonmobil { -webkit-mask-image: url('../assets/logos/exxonmobil.svg'); mask-image: url('../assets/logos/exxonmobil.svg'); }
.logo-bofa { -webkit-mask-image: url('../assets/logos/bofa.svg'); mask-image: url('../assets/logos/bofa.svg'); }
.logo-monsanto { -webkit-mask-image: url('../assets/logos/monsanto-alpha.png'); mask-image: url('../assets/logos/monsanto-alpha.png'); }
.logo-fis { -webkit-mask-image: url('../assets/logos/fis.svg'); mask-image: url('../assets/logos/fis.svg'); }

/* Serif text marks, per the approved reference treatment */
.mark-serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  white-space: nowrap;
}
.mark-serif-lines { font-size: 0.7rem; }

/* ---------- Act 5 climax ---------- */

.climax-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.climax-stack {
  width: min(92vw, 66rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.4rem, 6vh, 4.5rem);
  text-align: center;
  padding: 12vh 0 14vh;
}
.climax-sub {
  max-width: 40rem;
  margin: 1.2rem auto 0;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.7;
  text-shadow: var(--halo);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  width: 100%;
}
.stat { display: flex; flex-direction: column; gap: 0.45rem; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 790;
  font-size: clamp(2.3rem, 5.5vw, 4.3rem);
  line-height: 1;
  text-shadow: var(--halo);
}
.stat-label {
  font-size: clamp(0.76rem, 1.2vw, 0.88rem);
  letter-spacing: 0.04em;
  color: var(--cream);
  opacity: 0.85;
  max-width: 15rem;
  margin-inline: auto;
  text-shadow: var(--halo);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.4vw, 1.8rem);
  width: 100%;
}
.quote-card {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--cream-14);
  border-radius: 14px;
  padding: clamp(1.3rem, 2.6vw, 2rem);
  text-align: left;
}
.quote-card p { font-size: clamp(0.88rem, 1.35vw, 0.99rem); line-height: 1.7; font-style: italic; }
.quote-attrib { margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.attrib-name { font-weight: 700; font-size: 0.92rem; color: var(--gold); }
.attrib-role { font-size: 0.8rem; opacity: 0.8; letter-spacing: 0.04em; }

.climax-final { display: flex; flex-direction: column; align-items: center; gap: 1.7rem; }
.final-headline { font-size: clamp(1.7rem, 4.2vw, 3.1rem); max-width: 24ch; }

/* ---------- About + FAQ (entity and answer blocks) ---------- */

#about, #faq {
  background: var(--navy);
  padding: clamp(3.5rem, 9vh, 6rem) clamp(1.2rem, 5vw, 3rem);
}
#faq { border-top: 1px solid rgba(253, 251, 247, 0.08); }
.about-inner, .faq-inner { max-width: 46rem; margin-inline: auto; }
#about .section-headline, #faq .section-headline { margin-bottom: clamp(1.4rem, 3.5vh, 2.4rem); }
.about-lead { font-size: 1.05rem; line-height: 1.75; margin-bottom: 1.2rem; }
.about-body { font-size: 0.98rem; line-height: 1.75; opacity: 0.88; margin-bottom: 1.6rem; }
.about-body strong { color: var(--gold); font-weight: 600; }
.about-body a, .faq-item a { color: var(--gold); text-decoration-color: rgba(212, 175, 55, 0.4); }
.about-links { display: flex; gap: 0.9rem; flex-wrap: wrap; font-weight: 600; font-size: 0.9rem; }
.about-links a { text-decoration: none; color: var(--cream); opacity: 0.85; }
.about-links a:hover { color: var(--gold); opacity: 1; }
.about-sep { opacity: 0.3; }
.faq-list { display: grid; gap: clamp(1.4rem, 3vh, 2rem); }
.faq-item dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.faq-item dd { margin: 0; font-size: 0.98rem; line-height: 1.75; opacity: 0.88; }

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

#site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(253, 251, 247, 0.08);
  padding: clamp(2.6rem, 6vh, 4rem) 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  text-align: center;
}
.footer-logo { position: static; transform: none; font-size: 1.1rem; }
.footer-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 0.85rem; font-weight: 600; text-decoration: none; opacity: 0.85; }
.footer-nav a:hover { color: var(--gold); opacity: 1; }
.footer-line { font-size: 0.8rem; opacity: 0.55; letter-spacing: 0.04em; }
.footer-joke a { color: var(--gold); text-decoration-color: rgba(212, 175, 55, 0.4); }

/* ---------- Film grain ---------- */

#grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 70;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  animation: grain 900ms steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.4%); }
  50% { transform: translate(1.6%, -1.2%); }
  75% { transform: translate(-1%, -1.8%); }
  100% { transform: translate(1.2%, 1.6%); }
}

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

@media (max-width: 900px) {
  .pillars-3 { grid-template-columns: 1fr; max-width: 30rem; }
  .testimonials { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .pillars-2 { grid-template-columns: 1fr; max-width: 30rem; }
  .header-brand { letter-spacing: 0.18em; font-size: 0.86rem; }
  .nav-link { display: none; }
  .hero-sub { font-size: 0.92rem; }
  .pillar p { font-size: 0.86rem; }
  #lightbox { padding: 3rem 0.6rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lb-prev { left: 25%; }
  .lb-next { right: 25%; }
}

@media (max-width: 480px) {
  .preloader-logo, .hero-logo { top: 14vh; }
  .brand-logo { letter-spacing: 0.22em; text-indent: 0.22em; }
  .hero-content { padding-top: clamp(7.5rem, 21vh, 12rem); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  #grain { display: none; }
  .marquee-track { animation: none; }
  .shot { opacity: 1; transform: none; }
  .act { height: auto; min-height: 100svh; }
  .act-content { position: relative; min-height: 100svh; }
  .climax-viewport { position: relative; }
  * { transition-duration: 0.01ms !important; }
}
