/* ============================================================
   Last Light Collective — site styles
   Brand: ink navy, honey gold (one accent per screen), warm bone
   Type:  Cormorant Garamond (wordmark), Fraunces (headlines),
          system-ui (body/UI). Sentence case in marketing copy.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500&family=Fraunces:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --ink: #1A1F2E;
  --ink-soft: #5a5750;
  --ink-muted: #9a9284;
  --gold: #D9B264;
  --bone: #F4EFE8;
  --bone-deep: #ece5d9;
  --rule: rgba(26, 31, 46, 0.12);

  --serif-display: 'Cormorant Garamond', Georgia, serif;
  --serif-editorial: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max-w: 1080px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bone);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--ink);
}

.brand-video {
  display: block;
  height: 56px;
  width: auto;
  max-width: 320px;
  background: var(--bone);
}

@media (max-width: 720px) {
  .brand-video { height: 44px; }
}

/* Larger nav logo (used on all pages) */
.brand-video--large {
  height: 150px;
  max-width: 860px;
}

@media (max-width: 720px) {
  .brand-video--large { height: 150px; }
}

/* Fallback wordmark — only shown if <video> can't play */
.brand .brand-name {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.005em;
}

.nav {
  /* Half the visual space between nav items.
     The other half comes from the ::after bullet's margin-left. */
  --nav-spacing: 0.875rem;
  display: flex;
  align-items: center;
  gap: var(--nav-spacing);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.nav a {
  color: var(--ink);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover { border-bottom-color: var(--ink); }
.nav a.active { border-bottom-color: var(--ink); }

/* Small circular separator between nav items */
.nav a:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  margin-left: var(--nav-spacing);
  opacity: 0.45;
  pointer-events: none;
  vertical-align: middle;
}

@media (max-width: 720px) {
  .site-header .wrap { flex-direction: column; align-items: center; gap: 1rem; }
  .nav {
    --nav-spacing: clamp(0.4rem, 1.5vw, 0.875rem);
    flex-wrap: nowrap;
    justify-content: center;
    font-size: clamp(12px, 3.4vw, 16px);
  }
  .nav a { white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  text-align: center;
}

.hero .eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--serif-editorial);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.12;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.hero .lede {
  font-family: var(--serif-editorial);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 38rem;
  line-height: 1.5;
}

.gold-rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  border: none;
}

/* ---------- Home: wordmark hero ---------- */
.wordmark {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2rem);
}

.wordmark .mark {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 4.75rem);
  letter-spacing: 0.005em;
  line-height: 1;
  color: var(--ink);
}

.wordmark .suffix {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  margin-top: 18px;
}

.wordmark .tagline {
  font-family: var(--serif-editorial);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  margin-top: 2rem;
}

.hero-video {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 520px;
  height: auto;
  background: var(--bone);
}

@media (max-width: 720px) {
  .hero-video { max-width: 360px; }
}

/* ---------- Router (home page two-button picker) ---------- */
.router {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.router h2 {
  font-family: var(--serif-editorial);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  text-align: center;
  margin: 0 0 2.5rem;
  color: var(--ink);
}

.router-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .router-grid { grid-template-columns: 1fr; }
}

.router-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 2rem 1.75rem;
  min-height: 240px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  color: var(--ink);
}

.router-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  background: var(--bone-deep);
}

.router-card .card-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.router-card .card-headline {
  font-family: var(--serif-editorial);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.1vw, 1.6rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.router-card .card-arrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.router-card .card-arrow::after {
  content: "→";
  transition: transform 0.25s ease;
}

.router-card:hover .card-arrow::after {
  transform: translateX(4px);
}

/* ---------- Sections (service + about pages) ---------- */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

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

/* Tighten the gap between a hero and the section directly below it.
   Each has its own generous padding; together they double up. */
.hero + .section { padding-top: 0; }

/* The pullquote is a small decorative beat, not a content block — its wrapping
   section doesn't need the full section padding. */
.section:has(> .wrap-narrow > .pullquote) {
  padding: clamp(1rem, 2.5vw, 2rem) 0;
}

/* CTA band sitting directly after a section already has the section's bottom
   padding above it; skip the band's own top padding to avoid doubling up. */
.section + .cta-band { padding-top: 0; }

.section h2,
.ticker-section h2 {
  font-family: var(--serif-editorial);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.section h3 {
  font-family: var(--serif-editorial);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.section p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1rem;
}

.section p.muted { color: var(--ink-soft); }

.section .eyebrow,
.ticker-section .eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  display: block;
}

/* Two-column "what you get" grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem 2rem;
  margin-top: 1rem;
}

.feature-item h3 { margin-bottom: 0.4rem; }
.feature-item p { font-size: 0.975rem; color: var(--ink-soft); margin: 0; }

/* Numbered process steps */
.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.step:first-child { border-top: none; padding-top: 0; }

.step .step-num {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ink-muted);
}

.step h3 { margin-bottom: 0.35rem; }
.step p { font-size: 1rem; margin: 0; color: var(--ink-soft); }

/* Pull-quote block */
.pullquote {
  font-family: var(--serif-editorial);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.4;
  text-align: center;
  color: var(--ink);
  padding: 0;
  max-width: 36rem;
  margin: 0 auto;
}

/* ---------- CTA band (one per page; uses honey gold sparingly) ---------- */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.cta-band h2 {
  font-family: var(--serif-editorial);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 1.25rem;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 1.75rem;
  border-radius: 2px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bone);
}

/* Honey-gold accent button — ONE per page max */
.btn-accent {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.btn-accent:hover {
  background: transparent;
  color: var(--ink);
}

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.about-hero h1 {
  font-family: var(--serif-editorial);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.about-hero .intro {
  font-family: var(--serif-editorial);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

@media (max-width: 760px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about-hero-photo {
  display: flex;
  justify-content: center;
}

.about-hero-photo img {
  display: block;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact-link {
  font-family: var(--serif-editorial);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  display: inline-block;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-link:hover {
  color: var(--ink-soft);
  border-bottom-color: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
  margin-top: 3rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }

.site-footer .footer-brand {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.005em;
}

/* ---------- Homepage: ocean below nav ---------- */
.page-home-ocean {
  background: var(--bone);
}

.page-home-ocean .site-header {
  position: relative;
  z-index: 2;
  background: var(--bone);
  border-bottom-color: var(--rule);
}

.page-home-ocean .nav a {
  color: var(--ink);
}

.page-home-ocean .nav a:hover,
.page-home-ocean .nav a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.page-home-ocean .brand-video {
  background: var(--bone);
}

.page-home-ocean .home-ocean-stage {
  position: relative;
  min-height: calc(100vh - 120px);
  overflow: hidden;
  background: #000;
}

.page-home-ocean #ocean-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.page-home-ocean .home-ocean-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-home-ocean .router h2 {
  color: #fff;
}

.page-home-ocean .router-card {
  background: rgba(26, 31, 46, 0.55);
  border-color: rgba(244, 239, 232, 0.28);
  color: #fff;
  backdrop-filter: blur(8px);
}

.page-home-ocean .router-card:hover {
  background: rgba(26, 31, 46, 0.72);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.page-home-ocean .router-card .card-eyebrow {
  color: rgba(244, 239, 232, 0.65);
}

.page-home-ocean .router-card .card-headline,
.page-home-ocean .router-card .card-arrow {
  color: #fff;
}

.page-home-ocean .site-footer {
  background: var(--bone);
  border-top: 1px solid var(--rule);
  margin-top: 0;
}

.page-home-ocean .site-footer .wrap,
.page-home-ocean .site-footer a {
  color: var(--ink-muted);
}

.page-home-ocean .site-footer a:hover {
  color: var(--ink);
}

.page-home-ocean .site-footer .footer-brand {
  color: var(--ink);
}

/* Homepage: ocean behind nav too */
.page-home-ocean--nav-ocean {
  background: #000;
}

.page-home-ocean--nav-ocean .home-ocean-stage--full {
  min-height: 100vh;
}

.page-home-ocean--nav-ocean .site-header {
  background: transparent;
  border-bottom: none;
}

.page-home-ocean--nav-ocean .nav {
  padding: 0.65rem 1.35rem;
}

.page-home-ocean--nav-ocean .nav a {
  color: var(--bone);
}

.page-home-ocean--nav-ocean .nav a:hover,
.page-home-ocean--nav-ocean .nav a.active {
  color: #fff;
  border-bottom-color: var(--gold);
}

.page-home-ocean--nav-ocean .brand-video {
  background: transparent;
}

.page-home-ocean--nav-ocean .site-footer {
  background: transparent;
  border-top: none;
}

.page-home-ocean--nav-ocean .site-footer .wrap,
.page-home-ocean--nav-ocean .site-footer a {
  color: rgba(244, 239, 232, 0.75);
}

.page-home-ocean--nav-ocean .site-footer a:hover {
  color: #fff;
}

.page-home-ocean--nav-ocean .site-footer .footer-brand {
  color: #fff;
}

/* ---------- Brand logo ticker (marquee) ---------- */
.ticker-section {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  overflow: hidden;
}

.ticker {
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  animation: ticker-scroll 90s linear infinite;
  will-change: transform;            /* hint to keep this on the GPU */
  backface-visibility: hidden;       /* iOS Safari flicker workaround */
}

@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-logo {
  height: 100px;     /* matches the source PNGs exactly */
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Mobile: shrink the logos so 2–3 fit on screen and the marquee
   feels like an actual ticker instead of one-logo-at-a-time. */
@media (max-width: 720px) {
  .ticker-logo { height: 56px; }
  .ticker-track {
    gap: 1.5rem;
    animation-duration: 45s;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Respect the user's motion preference: kill the autoplay,
     but keep the logos in a single horizontally-scrollable row
     instead of stacking them vertically. */
  .ticker {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ticker-track {
    animation: none;
  }
}

/* Ticker spacing — when sandwiched between content sections, avoid doubled padding. */
.section + .ticker-section { padding-top: 0; }
.ticker-section + .section { padding-top: clamp(1.5rem, 4vw, 3rem); }

/* Tighten the gap when content sits directly under the About hero
   (whether that's the Background section or the brand ticker). */
.about-hero + .section,
.about-hero + .ticker-section { padding-top: 0; }
.about-hero:has(+ .section),
.about-hero:has(+ .ticker-section) { padding-bottom: clamp(1rem, 3vw, 2rem); }

/* ---------- Stats ticker (animated count-up cards) ---------- */
.stats-ticker {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.stats-ticker-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.stats-ticker .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
  display: block;
}

.stats-ticker-cta {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}

/* Contact page LinkedIn icon */
.linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  color: var(--gold);
  transition: color 0.2s ease, transform 0.2s ease;
}

.linkedin-icon svg {
  display: block;
  width: 36px;
  height: 36px;
}

.linkedin-icon:hover,
.linkedin-icon:focus-visible {
  color: var(--ink);
  transform: translateY(-2px);
  outline: none;
}

.stat-stage {
  overflow: hidden;
  width: 100%;
}

.stat-track {
  --slides: 1;
  display: flex;
  width: calc(var(--slides) * 100%);
  transition: transform 0.7s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.stat-card {
  flex: 0 0 calc(100% / var(--slides));
  min-width: 0;
  padding: 0.5rem 0.25rem 1rem;
}

.stat-date {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.stat-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(2rem, 6vw, 4rem);
  flex-wrap: wrap;
}

.stat-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.stat-number {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-divider {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto;
  border: none;
}

.stat-label {
  font-family: var(--serif-editorial);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 14rem;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .stat-track {
    flex-direction: column;
    transform: none !important;
    width: 100% !important;
    transition: none;
    gap: 2rem;
  }
  .stat-card { flex: 0 0 auto; }
}

/* Stats ticker spacing — keep adjacent gaps from doubling up. */
.section + .stats-ticker { padding-top: 0; }
.stats-ticker + .section { padding-top: clamp(1.5rem, 4vw, 3rem); }

