/* ============================================
   DEAR HUMAN. — Home Page Styles
   ============================================ */

/* ── Hero ───────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 20vh) var(--gutter) 15vh;
  position: relative;
  overflow: hidden;
}

/* ── Parallax background ────────────────────── */
.hero-bg {
  position: absolute;
  inset: -20% 0;          /* oversized vertically so layers have room to travel */
  pointer-events: none;
  z-index: 0;
}

.hero-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
}

/* Layer 3 (astronaut) — right side, vertically centered */
.hero-layer--3 {
  position: absolute;
  top: 38%;
  right: 5%;
  left: auto;
  width: 42%;
  height: 70%;
  bottom: auto;
  transform: translateY(-50%);
}

.hero-layer--3 img {
  object-fit: contain;   /* keep the full image intact, nothing cropped */
  object-position: right bottom;
  width: 100%;
  height: 100%;
}

/* Gradient overlay: dark-left → semi-transparent-right */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.65) 40%,
    rgba(10,10,10,0.30) 100%
  );
}

/* Hero content must sit above background */
.hero-inner,
.hero-scroll-hint { position: relative; z-index: 1; }

/* Kill the old pure-CSS radial glow — layers replace it */
.hero::before { display: none; }

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,208,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  width: 60%;
  margin: 0;
}

/* Hero lines — staggered reveal */
.hero-lines {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-line {
  font-family: var(--fraunces);
  font-size: clamp(1.5rem, 3.2vw, 2.9rem);
  font-weight: 900;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--white);
  opacity: 0;
  transform: translateY(40px) skewY(1deg);
  display: block;
  will-change: transform, opacity;
}

/* Line 1 — italic opener, lighter weight */
.hero-line:nth-child(1) {
  font-weight: 400;
  font-style: italic;
}

/* Gold line — color and space only, no size change */
.hero-line:nth-child(5) {
  color: var(--gold);
  margin-top: 2.5rem;
}

.hero-line.revealed {
  animation: lineReveal 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes lineReveal {
  to {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
  }
}

/* Hero sub */
.hero-sub {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}
.hero-sub.revealed {
  opacity: 1;
  transform: none;
}

.hero-tagline {
  font-family: var(--geist);
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  color: var(--warm-gray);
  margin-bottom: 2rem;
  max-width: 52ch;
  text-wrap: pretty;
}

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

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeIn 0.6s 2.2s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}

.scroll-bar {
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: translateX(-100%);
  animation: scrollSlide 1.8s 2.2s var(--ease-out-expo) infinite;
}

@keyframes scrollSlide {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ── Ticker ─────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
  background: rgba(255,255,255,0.02);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  will-change: transform;
}

.ticker-track span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  flex-shrink: 0;
}

.ticker-dot {
  color: var(--gold) !important;
  font-size: 0.5rem !important;
}

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

/* ── Story Section ──────────────────────────── */
.story-section {
  background: var(--soft-black);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.story-left .headline {
  margin-top: 1.25rem;
}

.story-body {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
  max-width: 65ch;
  text-wrap: pretty;
}

.story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.story-half-label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.story-half p {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.65;
}

/* ── Work Section ───────────────────────────── */
.work-section { background: var(--void); }

.work-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.work-card--large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.work-card--large .card-thumb {
  aspect-ratio: 3 / 4;
}

/* ── Proof Statement ────────────────────────── */
.proof-section {
  background: var(--soft-black);
  padding: clamp(60px, 10vw, 100px) 0;
}

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

.proof-statement {
  font-family: var(--fraunces);
  font-size: clamp(1.375rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--white);
  text-wrap: balance;
  margin-bottom: 1.25rem;
}

.proof-sub {
  display: block;
  color: var(--warm-gray);
}

/* ── CTA Section ────────────────────────────── */
.cta-section {
  background: var(--void);
}

.cta-box {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 6vw, 5rem);
  background: linear-gradient(135deg, rgba(255,208,0,0.03) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,208,0,0.06) 0%, transparent 70%);
  transform: translate(30%, -30%);
  pointer-events: none;
}

.cta-sign {
  font-family: var(--fraunces);
  font-style: italic;
  color: var(--warm-gray);
  margin-top: 3rem;
  font-size: 0.9375rem;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-card--large {
    grid-column: auto;
    grid-row: auto;
  }
  .work-card--large .card-thumb {
    aspect-ratio: 16 / 10;
  }
  .story-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .work-header-row .btn { display: none; }
}
