/* ============================================
   HOME PAGE
   ============================================ */

.accent-text {
  color: var(--accent);
}

/* ======== HERO ======== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.05);
  transform: scale(1.05);
  animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(126, 217, 87, 0.08), transparent 60%),
    linear-gradient(180deg,
      rgba(10, 10, 10, 0.2) 0%,
      rgba(10, 10, 10, 0.4) 45%,
      rgba(10, 10, 10, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: 4rem;
  padding-bottom: 4rem;
  width: 100%;
}

.hero-meta {
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.9;
  margin-bottom: 2rem;
}

.hero-lede {
  max-width: 540px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: var(--container-padding);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: bounce 2.4s ease-in-out infinite;
}

.hero-scroll svg {
  width: 14px;
  height: 14px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* Hero two-column layout: copy left, brand photo + metrics right */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-secondary);
}

.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 35%;
}

.hero-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 10, 0.45) 100%);
  pointer-events: none;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--border-strong);
  padding-top: 1.25rem;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 620px; }
}

/* Stagger reveal animations */
.hero-meta.reveal   { transition-delay: 0.1s; }
.hero-title.reveal  { transition-delay: 0.25s; }
.hero-lede.reveal   { transition-delay: 0.45s; }
.hero-actions.reveal { transition-delay: 0.6s; }

/* Prevent initial hidden state — reveal on load for hero */
.hero .reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.9s var(--ease-out) forwards;
}
.hero-meta   { animation-delay: 0.2s; }
.hero-title  { animation-delay: 0.4s; }
.hero-lede   { animation-delay: 0.6s; }
.hero-actions { animation-delay: 0.8s; }

.hero-visual.reveal { animation-delay: 0.9s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======== INTRO SECTION ======== */
.intro-section {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: flex-start;
}

.intro-right {
  padding-top: 3rem;
}

.intro-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.intro-values {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.intro-values li {
  padding: 1.25rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
  font-weight: 400;
}

.intro-values li:nth-child(odd) {
  padding-right: 1.5rem;
}
.intro-values li:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}

.intro-values li span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .intro-right { padding-top: 0; }
  .intro-values { grid-template-columns: 1fr; }
  .intro-values li:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
}

/* ======== PILLARS PREVIEW ======== */
.pillars-preview {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  position: relative;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pillar-card {
  background: var(--bg-secondary);
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
  min-height: 320px;
  justify-content: space-between;
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, var(--pc), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}

.pillar-card:hover::before { opacity: 0.18; }

.pillar-card:hover {
  background: var(--bg-elevated);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.pillar-dot {
  width: 10px;
  height: 10px;
  background: var(--pc);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--pc);
}

.pillar-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.pillar-card p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pc);
  position: relative;
  z-index: 1;
}

.pillar-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.25s;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.pillar-card:hover .pillar-link {
  color: var(--text-primary);
}

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

@media (max-width: 560px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .pillar-card { min-height: 220px; }
}

/* ======== CTA SECTION ======== */
.cta-section {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.cta-block {
  position: relative;
  border: 1px solid var(--border);
  padding: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 40%, var(--accent-dim) 100%);
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 720px;
}

.cta-inner h2 {
  margin: 1.5rem 0 2rem;
}

.cta-inner p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.6;
}

/* ============================================
   SINGLE-SCREEN LANDING (hero + footer, no scroll)
   ============================================ */
html, body { height: 100%; }

body {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero {
  min-height: 0;
  flex: 1 1 auto;
}

/* Compact the footer so hero + footer fit one viewport */
.site-footer {
  margin-top: 0;
  padding: 2rem 0 1.5rem;
  flex: 0 0 auto;
}

.site-footer .footer-grid {
  margin-bottom: 1.75rem;
  gap: 2rem 3rem;
}

.site-footer .footer-brand .nav-logo {
  margin-bottom: 0.85rem;
}

@media (max-height: 860px) {
  .hero-title { font-size: clamp(2.4rem, 4.2vw, 3.5rem); margin-bottom: 1.25rem; }
  .hero-meta { margin-bottom: 1.25rem; }
  .hero-lede { margin-bottom: 1.75rem; font-size: 0.95rem; line-height: 1.55; max-width: 500px; }
  .hero-content { padding-top: 2rem; padding-bottom: 1.5rem; }
  .hero-grid { gap: clamp(1.5rem, 4vw, 3.5rem); }
  .hero-visual { gap: 1.1rem; }
  /* Keep the full photo (no top/bottom crop): shrink the frame's width instead of its height */
  .hero-figure { max-width: calc(clamp(200px, 34vh, 380px) * 4 / 3); }
  .hero-metrics { padding-top: 1rem; }
  .metric-value { font-size: 1.85rem; }
}

/* Really short viewports: stop clipping, let the page scroll. */
@media (max-height: 620px) {
  html, body { height: auto; }
  body { overflow: visible; }
  .hero { min-height: 0; flex: none; padding-bottom: 2rem; }
  .site-footer { flex: none; }
}

/* Below the two-column breakpoint the hero no longer fits one viewport —
   drop the no-scroll trick and let the page scroll like every other one. */
@media (max-width: 1100px) {
  html, body { height: auto; }
  body { overflow: visible; }
  .hero {
    min-height: 100vh;
    flex: none;
  }
  .site-footer { flex: none; }
}

/* Slim single-line footer (home only) */
.site-footer--slim { padding: 1.1rem 0; background: var(--bg-primary); border-top: 1px solid var(--border); }
.footer-slim { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem 2rem; font-size: 0.8rem; color: var(--text-muted); }
.footer-slim-info, .footer-slim-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-slim a { color: var(--text-muted); transition: color var(--t-fast); }
.footer-slim a:hover { color: var(--accent); }
.footer-slim-social { display: inline-flex; }
@media (max-width: 700px) { .footer-slim { flex-direction: column; align-items: flex-start; } }
