/* ══════════════════════════════════════════
   WithLore — Homepage Styles
   Only loaded on index.njk
   ══════════════════════════════════════════ */

/* ── HERO ── */
.hero { min-height: 100vh; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.hero__video { position: absolute; inset: 0; z-index: 0; }
.hero__video video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(9,9,9,0.95) 0%, rgba(9,9,9,0.6) 40%, rgba(9,9,9,0.2) 100%); z-index: 1; }
.hero__content { position: relative; z-index: 2; padding: 0 0 80px; width: 100%; }
.hero__kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.hero__kicker::before { content: ''; width: 32px; height: 2px; background: var(--gold); }
.hero__headline { font-family: var(--font-display); font-size: clamp(48px, 6vw, 88px); line-height: 1.0; color: #fff; letter-spacing: -0.03em; max-width: 900px; margin-bottom: 24px; }
.hero__headline em { font-style: italic; color: var(--gold); }
.hero__sub { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.6); max-width: 550px; margin-bottom: 40px; }
.hero__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ── STATS BAR ── */
.stats-bar { background: var(--black); border-top: 1px solid rgba(255,255,255,0.08); padding: 48px 0; }
.stats-bar__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stats-bar__item { text-align: center; }
.stats-bar__number { font-family: var(--font-display); font-size: 42px; color: #fff; line-height: 1; }
.stats-bar__label { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.4); margin-top: 8px; letter-spacing: 0.02em; }

/* ── LOGO BAR ── */
.logo-bar { padding: 48px 0; border-bottom: 1px solid var(--light-gray); }
.logo-bar__label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid-gray); text-align: center; margin-bottom: 28px; }
.logo-bar__logos { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.logo-bar__item { display: flex; align-items: center; justify-content: center; }
.logo-bar__item img { height: 24px; width: auto; object-fit: contain; opacity: 0.45; filter: grayscale(100%) brightness(0.4); transition: opacity 0.3s ease, filter 0.3s ease; }
.logo-bar__item img:hover { opacity: 0.7; filter: grayscale(100%) brightness(0.5); }
.logo-bar__item:nth-child(1) img { height: 26px; } /* Solstice +10% */
.logo-bar__item:nth-child(2) img { height: 26px; } /* World Labs +10% */
.logo-bar__item:nth-child(4) img { height: 22px; } /* Lamina 90% */
.logo-bar__item:nth-child(5) img { height: 14px; } /* GAM3S.GG 60% */
.logo-bar__item:nth-child(6) img { height: 17px; } /* Redacted 70% */

/* ── SHOWREEL MARQUEE ── */
.showreel { padding: 0; overflow: hidden; }
.showreel__marquee { overflow: hidden; width: 100%; }
.showreel__track {
  display: flex;
  gap: 3px;
  width: max-content;
  animation: showreel-scroll 60s linear infinite;
}
.showreel__track:hover { animation-play-state: paused; }
@keyframes showreel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.showreel__item { flex: 0 0 clamp(260px, 20vw, 340px); aspect-ratio: 1/1; overflow: hidden; position: relative; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.showreel__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.showreel__item:hover img { transform: scale(1.08); }
.showreel__overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 50%, transparent 100%); pointer-events: none; }
.showreel__label { font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); color: #fff; line-height: 1.1; letter-spacing: -0.01em; }
.showreel__sublabel { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 6px; }

/* ── CONTENT GAP TEASER ── */
.gap-teaser { padding: 100px 0; background: var(--black); color: #fff; }
.gap-teaser__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.gap-teaser__headline { font-family: var(--font-display); font-size: clamp(32px, 3.5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin-bottom: 20px; }
.gap-teaser__headline em { font-style: italic; color: var(--gold); }
.gap-teaser__body { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.55); margin-bottom: 32px; max-width: 520px; }
.gap-teaser__note { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.3); }
.gap-teaser__preview { background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 36px; position: relative; overflow: hidden; }
.gap-teaser__preview::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold) 0%, rgba(254,193,6,0.2) 100%); }
.gap-teaser__preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.gap-teaser__preview-label { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.gap-teaser__preview-tag { font-size: 11px; font-weight: 600; color: var(--gold); background: rgba(254,193,6,0.1); padding: 4px 12px; border-radius: 20px; letter-spacing: 0.02em; }
.gap-teaser__preview-hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 28px; padding: 12px 0; }
.gap-teaser__preview-hero-sub { font-size: 13px; color: rgba(255,255,255,0.4); }
.gap-teaser__preview-hero-number { font-family: var(--font-display); font-size: clamp(40px, 4vw, 52px); color: var(--gold); line-height: 1.1; letter-spacing: -0.02em; margin: 4px 0; }
.gap-teaser__preview-hero-unit { font-size: 0.5em; color: rgba(254,193,6,0.6); }
.gap-teaser__preview-bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.gap-teaser__preview-bar-row { display: flex; align-items: center; gap: 12px; }
.gap-teaser__preview-bar-label { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.4); width: 72px; flex-shrink: 0; text-align: right; }
.gap-teaser__preview-bar-track { flex: 1; height: 24px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.gap-teaser__preview-bar-fill { height: 100%; border-radius: 4px; width: 0; transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.gap-teaser__preview-bar-fill--current { background: rgba(255,255,255,0.15); }
.gap-teaser__preview-bar-fill--optimized { background: linear-gradient(90deg, var(--gold), rgba(254,193,6,0.7)); }
.gap-teaser__preview-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.gap-teaser__preview-stat { display: flex; flex-direction: column; gap: 2px; }
.gap-teaser__preview-number { font-family: var(--font-display); font-size: 28px; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.gap-teaser__preview-desc { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.35); letter-spacing: 0.02em; }

/* ── PROBLEM ── */
.problem { padding: 120px 0; background: var(--cream); position: relative; }
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.problem__headline { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); line-height: 1.1; letter-spacing: -0.02em; color: var(--black); margin-bottom: 32px; }
.problem__headline em { font-style: italic; color: var(--red-accent); }
.problem__body { font-size: 17px; line-height: 1.7; color: var(--mid-gray); margin-bottom: 24px; }
.problem__list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.problem__list li { font-size: 15px; color: var(--mid-gray); display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.problem__list li::before { content: '//'; color: var(--red-accent); font-weight: 700; font-size: 13px; flex-shrink: 0; margin-top: 2px; }
.problem__visual { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 8px; overflow: hidden; }
.problem__card { padding: 32px; position: relative; overflow: hidden; }
.problem__card--bad { background: var(--dark-gray); }
.problem__card--good { background: var(--black); border: 1px solid rgba(254,193,6,0.5); box-shadow: inset 0 0 40px rgba(254,193,6,0.06), 0 0 20px rgba(254,193,6,0.08); }
.problem__card-label { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px; }
.problem__card--bad .problem__card-label { color: var(--red-accent); }
.problem__card--good .problem__card-label { color: var(--gold); }
.problem__card--good .problem__card-text { color: rgba(255,255,255,0.8); }
.problem__card-text { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.6); }

/* ── WORK / PORTFOLIO ── */
.work { padding: 120px 0; background: var(--black); color: #fff; }
.work__header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; flex-wrap: wrap; gap: 24px; }
.work__headline { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); line-height: 1.1; letter-spacing: -0.02em; }
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.work__item { position: relative; aspect-ratio: 16/10; overflow: hidden; cursor: pointer; }
.work__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; filter: brightness(0.75); }
.work__item:hover img { transform: scale(1.04); filter: brightness(0.9); }
.work__item-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); }
.work__item-title { font-family: var(--font-display); font-size: 28px; color: #fff; margin-bottom: 8px; }
.work__item-meta { display: flex; gap: 16px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.5); letter-spacing: 0.05em; text-transform: uppercase; }
.work__item-stat { color: var(--gold); }

/* ── EXTRA WORK ROW (Scrolling) ── */
.work-extra { padding: 0 0 120px; background: var(--black); }
.work-extra__scroll { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 0 24px; justify-content: center; }
.work-extra__scroll::-webkit-scrollbar { display: none; }
.work-extra__card { flex: 0 0 320px; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; position: relative; text-decoration: none; color: inherit; display: block; }
.work-extra__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.work-extra__card:hover img { transform: scale(1.05); }
.work-extra__card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%); }
.work-extra__card-title { font-family: var(--font-display); font-size: 22px; color: #fff; }
.work-extra__card-meta { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ── MANIFESTO ── */
.manifesto { padding: 120px 0; background: var(--cream); }
.manifesto__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

/* Sticky left column */
.manifesto__left { position: sticky; top: 120px; }
.manifesto__headline { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.025em; color: var(--black); margin-bottom: 28px; }
.manifesto__headline-line { display: block; }
.manifesto__period { color: var(--gold); }
.manifesto__sub { font-size: 17px; line-height: 1.7; color: var(--mid-gray); }

/* Right column — stacked cards */
.manifesto__right { display: flex; flex-direction: column; gap: 48px; }

/* Individual card — icon + content side by side */
.manifesto__card { display: flex; gap: 24px; align-items: flex-start; }
.manifesto__card-icon { flex-shrink: 0; width: 44px; height: 44px; margin-top: 2px; }

/* SVG icon styles + stroke draw animation */
.manifesto__icon { width: 44px; height: 44px; color: var(--red-accent); transition: color 0.4s ease; }
.manifesto__icon-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}
/* Draw the icons when they scroll into view */
.manifesto__card.visible .manifesto__icon-path { stroke-dashoffset: 0; }
/* Hover: shift to gold */
.manifesto__card:hover .manifesto__icon { color: var(--gold); }

.manifesto__card-content { flex: 1; min-width: 0; }
.manifesto__card-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 12px; }
.manifesto__card-title { font-family: var(--font-display); font-size: 22px; color: var(--black); margin-bottom: 10px; line-height: 1.2; }
.manifesto__card-body { font-size: 14px; line-height: 1.65; color: var(--mid-gray); }

/* Staggered card reveals — 80ms apart */
.manifesto__right .manifesto__card:nth-child(1) .manifesto__icon-path { transition-delay: 0.3s; }
.manifesto__right .manifesto__card:nth-child(2) { transition-delay: 0.08s; }
.manifesto__right .manifesto__card:nth-child(2) .manifesto__icon-path { transition-delay: 0.38s; }
.manifesto__right .manifesto__card:nth-child(3) { transition-delay: 0.16s; }
.manifesto__right .manifesto__card:nth-child(3) .manifesto__icon-path { transition-delay: 0.46s; }
.manifesto__right .manifesto__card:nth-child(4) { transition-delay: 0.24s; }
.manifesto__right .manifesto__card:nth-child(4) .manifesto__icon-path { transition-delay: 0.54s; }

/* ── COMPARISON ── */
.comparison { padding: 120px 0; background: var(--black); }
.comparison .section-label { color: rgba(255,255,255,0.4); }
.comparison__headline { font-family: var(--font-display); font-size: clamp(36px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; color: #fff; text-align: center; margin-bottom: 16px; }
.comparison__subline { font-size: 16px; color: rgba(255,255,255,0.45); text-align: center; margin-bottom: 64px; line-height: 1.5; }

/* Grid layout */
.comparison__grid { max-width: 1000px; margin: 0 auto; }

/* Header row */
.comparison__header { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.12); margin-bottom: 0; }
.comparison__header-label { }
.comparison__header-col { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); padding: 0 20px; }
.comparison__header-col--hero { color: var(--gold); font-weight: 700; }

/* Data rows */
.comparison__row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.comparison__question { font-family: var(--font-display); font-size: 19px; color: #fff; padding: 28px 24px 28px 0; line-height: 1.3; display: flex; align-items: flex-start; }
.comparison__cell { font-size: 14px; line-height: 1.55; padding: 28px 20px; }
.comparison__cell--weak { color: rgba(255,255,255,0.35); }
.comparison__cell--mid { color: rgba(255,255,255,0.5); }
.comparison__cell--hero { color: var(--gold); font-weight: 500; background: rgba(254,193,6,0.04); border-left: 2px solid rgba(254,193,6,0.25); }

/* Verdict bar */
.comparison__verdict { margin-top: 32px; padding: 28px 32px; background: rgba(254,193,6,0.06); border: 1px solid rgba(254,193,6,0.15); border-radius: 4px; text-align: center; }
.comparison__verdict-text { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.6); }
.comparison__verdict-text strong { color: var(--gold); font-weight: 700; }
.comparison__cta { text-align: center; margin-top: 40px; }

/* ── FOUNDER ── */
.founder { padding: 120px 0; background: var(--cream); }
.founder__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.founder__image { aspect-ratio: 3/4; overflow: hidden; border-radius: 4px; }
.founder__image img { width: 100%; height: 100%; object-fit: cover; }
.founder__headline { font-family: var(--font-display); font-size: clamp(32px, 3.5vw, 44px); line-height: 1.15; letter-spacing: -0.02em; color: var(--black); margin-bottom: 32px; }
.founder__body { font-size: 16px; line-height: 1.8; color: var(--mid-gray); }
.founder__body p { margin-bottom: 20px; }
.founder__body strong { color: var(--black); font-weight: 600; }
.founder__sig { margin-top: 32px; font-family: var(--font-display); font-size: 24px; font-style: italic; color: var(--black); }

/* ── IMMERSIVE WEB BRIDGE ── */
.bridge { padding: 120px 0; background: var(--cream); position: relative; overflow: hidden; }
.bridge__grid { display: grid; grid-template-columns: 2fr 3fr; gap: 60px; align-items: center; }
.bridge__headline { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; color: var(--black); margin-bottom: 28px; }
.bridge__headline em { font-style: italic; color: var(--gold-dim); }
.bridge__body { font-size: 17px; line-height: 1.7; color: var(--mid-gray); margin-bottom: 0; }
.bridge__video { aspect-ratio: 16/9; background: var(--dark-gray); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid var(--light-gray); }
.bridge__video video { width: 100%; height: 100%; object-fit: cover; }

/* ── FINAL CTA (homepage version with bg image) ── */
.final-cta { padding: 120px 0; background: var(--black); color: #fff; text-align: center; position: relative; overflow: hidden; }
.final-cta__bg { position: absolute; inset: 0; opacity: 0.12; }
.final-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.final-cta__inner { position: relative; z-index: 2; }
.final-cta__label { font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.final-cta__headline { font-family: var(--font-display); font-size: clamp(40px, 5vw, 72px); line-height: 1.05; letter-spacing: -0.03em; max-width: 800px; margin: 0 auto 24px; }
.final-cta__sub { font-size: 18px; color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto 48px; line-height: 1.6; }
.final-cta .btn-primary { margin: 0 auto; }
.final-cta__note { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,0.35); }

/* ── RESPONSIVE (homepage) ── */
@media (max-width: 900px) {
  .gap-teaser__grid, .problem__grid, .manifesto__grid, .founder__grid, .bridge__grid { grid-template-columns: 1fr; gap: 48px; }
  .manifesto__left { position: static; }
  .work__grid { grid-template-columns: 1fr; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .showreel__item { flex: 0 0 240px; }
  .comparison__header { display: none; }
  .comparison__row { grid-template-columns: 1fr; gap: 0; padding: 24px 0; }
  .comparison__question { padding: 0 0 16px; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 0; }
  .comparison__cell { padding: 12px 0; font-size: 13px; }
  .comparison__cell::before { content: attr(data-label); display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; color: rgba(255,255,255,0.25); }
  .comparison__cell--hero { border-left: none; border-top: 1px solid rgba(254,193,6,0.15); padding: 16px 0; background: none; }
  .comparison__cell--hero::before { color: var(--gold); opacity: 0.6; }
}
@media (max-width: 600px) {
  .hero__headline { font-size: 40px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .problem__visual { grid-template-columns: 1fr; }
  .stats-bar__inner { grid-template-columns: 1fr 1fr; }
  .showreel__item { flex: 0 0 200px; }
}
