/* =============================================
   PAGES — Section styles for all pages
   andrewpower.org
   ============================================= */

/* ────────────────────────────────────────
   HOMEPAGE — HERO
   ──────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) var(--space-xl);
  overflow: hidden;
  background: var(--purple-deepest);
}

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

/* Deep aurora-style radial gradient background */
.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(ellipse at center,
    rgba(107, 42, 159, 0.6) 0%,
    rgba(75, 0, 130, 0.35) 35%,
    transparent 70%);
  will-change: transform;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(ellipse at center,
    rgba(201, 168, 76, 0.08) 0%,
    transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  margin-bottom: var(--space-md);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: var(--space-lg);
}

.hero-headline em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  max-width: 560px;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-scroll-cue {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0.4;
}
.hero-scroll-cue span {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: var(--cream);
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ────────────────────────────────────────
   HOMEPAGE — SOCIAL PROOF MARQUEE
   ──────────────────────────────────────── */

.proof-strip {
  overflow: hidden;
  background: var(--gold);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
}

.proof-marquee-wrap {
  display: flex;
  overflow: hidden;
}

.proof-marquee {
  display: flex;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}

.proof-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0 var(--space-xl);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-deepest);
}

.proof-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-dark);
  flex-shrink: 0;
  opacity: 0.4;
}

/* ────────────────────────────────────────
   HOMEPAGE — THREE OFFERS
   ──────────────────────────────────────── */

.offers {
  background: var(--purple-deepest);
  padding: var(--space-2xl) 0;
}

.offers-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: 0 var(--gutter);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.offers-headline {
  font-family: var(--font-display);
  font-size: var(--text-headline);
  font-weight: 700;
  color: var(--cream);
  line-height: 0.95;
}

.offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
  border-top: var(--border-gold);
}

.offer:nth-child(even) .offer-content { order: 2; }
.offer:nth-child(even) .offer-visual   { order: 1; }

.offer-content {
  padding: var(--space-xl) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--purple-deepest);
}

.offer-visual {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.offer-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Each offer gets a distinct visual treatment */
.offer--ai .offer-visual-inner {
  background: radial-gradient(ellipse at 60% 50%,
    rgba(107, 42, 159, 0.8) 0%,
    rgba(26, 0, 46, 0.9) 60%);
}
.offer--psychometric .offer-visual-inner {
  background: radial-gradient(ellipse at 40% 50%,
    rgba(201, 168, 76, 0.2) 0%,
    rgba(26, 0, 46, 0.95) 60%);
}
.offer--strategy .offer-visual-inner {
  background: radial-gradient(ellipse at 60% 50%,
    rgba(26, 0, 46, 0.5) 0%,
    rgba(75, 0, 130, 0.6) 60%);
}

/* Decorative number */
.offer-num {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 14rem);
  font-weight: 700;
  font-style: italic;
  color: rgba(201, 168, 76, 0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.offer-label {
  margin-bottom: var(--space-md);
}

.offer-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: var(--space-md);
}

.offer-body {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: var(--space-lg);
}

.offer-icon {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 8rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(201, 168, 76, 0.3);
  line-height: 1;
}

@media (max-width: 900px) {
  .offer {
    grid-template-columns: 1fr;
  }
  .offer:nth-child(even) .offer-content { order: 1; }
  .offer:nth-child(even) .offer-visual   { order: 2; }
  .offer-visual { min-height: 240px; }
}

/* ────────────────────────────────────────
   HOMEPAGE — STORY BRIDGE (PINNED)
   ──────────────────────────────────────── */

.story {
  position: relative;
  background: var(--charcoal);
}

.story-pin-wrap {
  /* GSAP ScrollTrigger pin target */
}

.story-sticky {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  overflow: hidden;
}

.story-left {
  padding: var(--space-2xl) var(--gutter) var(--space-2xl) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: sticky;
  top: 0;
  height: 100vh;
}

.story-headline {
  font-family: var(--font-display);
  font-size: var(--text-headline);
  font-weight: 700;
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: var(--space-md);
}

.story-headline em {
  font-style: italic;
  color: var(--gold);
}

.story-aside {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

.story-right {
  padding: var(--space-2xl) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  border-left: var(--border-cream);
}

.story-beat {
  padding-left: var(--space-lg);
  border-left: 2px solid transparent;
  transition: border-color 0.4s;
}
.story-beat.active {
  border-left-color: var(--gold);
}

.story-beat-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.story-beat-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .story-sticky { grid-template-columns: 1fr; }
  .story-left { 
    position: relative;
    height: auto;
    min-height: unset;
    padding-bottom: var(--space-lg);
  }
  .story-right { border-left: none; border-top: var(--border-cream); padding-top: var(--space-lg); }
}

/* ────────────────────────────────────────
   HOMEPAGE — THE CLOSE / CTA
   ──────────────────────────────────────── */

.close-cta {
  background: var(--purple);
  padding: var(--space-2xl) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.close-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(ellipse,
    rgba(201, 168, 76, 0.08) 0%,
    transparent 60%);
  pointer-events: none;
}

.close-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.close-headline {
  font-family: var(--font-display);
  font-size: var(--text-headline);
  font-weight: 700;
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: var(--space-md);
}

.close-body {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ────────────────────────────────────────
   ABOUT PAGE
   ──────────────────────────────────────── */

.about-hero {
  background: var(--purple-deepest);
  padding: calc(var(--nav-height) + var(--space-xl)) var(--gutter) var(--space-xl);
}

.about-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-headline {
  font-family: var(--font-display);
  font-size: var(--text-headline);
  font-weight: 700;
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: var(--space-md);
}

.about-intro {
  max-width: 680px;
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Timeline */
.about-timeline {
  background: var(--charcoal);
  padding: var(--space-2xl) var(--gutter);
}

.timeline-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin-left: calc(var(--gutter) * -1 + 2rem);
}

.timeline-entry {
  padding: var(--space-xl) 0;
  padding-left: var(--space-xl);
  border-bottom: var(--border-cream);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.timeline-entry:last-child { border-bottom: none; }

.timeline-year {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
}

.timeline-chapter {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.timeline-text {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
}

@media (max-width: 768px) {
  .timeline-entry {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* Credentials strip */
.about-credentials {
  background: var(--purple-dark);
  padding: var(--space-xl) var(--gutter);
}

.credentials-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.credential-item {
  border-left: 2px solid var(--gold);
  padding-left: var(--space-md);
}

.credential-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.credential-detail {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ────────────────────────────────────────
   SERVICES PAGE
   ──────────────────────────────────────── */

.services-hero {
  background: var(--purple-deepest);
  padding: calc(var(--nav-height) + var(--space-xl)) var(--gutter) var(--space-xl);
}

.services-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-grid {
  background: var(--charcoal);
  padding: var(--space-2xl) var(--gutter);
}

.services-grid-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(244, 239, 230, 0.08);
}

.service-card {
  background: var(--charcoal);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease-out);
  cursor: none;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover { background: var(--charcoal-mid); }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  font-style: italic;
  color: rgba(201, 168, 76, 0.1);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.service-features {
  margin-bottom: var(--space-lg);
}

.service-feature {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.5;
  padding: 0.5rem 0;
  border-bottom: var(--border-cream);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-feature::before {
  content: '—';
  color: var(--gold);
  font-style: normal;
}

.service-price {
  font-family: var(--font-display);
  font-size: var(--text-subhead);
  font-weight: 700;
  color: var(--gold);
}

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

/* ────────────────────────────────────────
   PROJECT NOVI PAGE
   ──────────────────────────────────────── */

.novi-hero {
  background: var(--purple-deepest);
  padding: calc(var(--nav-height) + var(--space-xl)) var(--gutter) var(--space-xl);
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
}

.novi-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.novi-number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 22rem);
  font-weight: 700;
  font-style: italic;
  color: rgba(201, 168, 76, 0.12);
  line-height: 0.85;
  position: absolute;
  top: var(--nav-height);
  right: var(--gutter);
  pointer-events: none;
  user-select: none;
}

.novi-headline {
  font-family: var(--font-display);
  font-size: var(--text-headline);
  font-weight: 700;
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: var(--space-md);
}

.novi-sub {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.novi-framework {
  background: var(--charcoal);
  padding: var(--space-2xl) var(--gutter);
}

.novi-framework-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.novi-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.novi-pillar {
  border: var(--border-gold);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}
.novi-pillar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom left,
    rgba(201, 168, 76, 0.05),
    transparent 60%);
  pointer-events: none;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: var(--space-xs);
}

.pillar-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.novi-cta-section {
  background: var(--purple);
  padding: var(--space-2xl) var(--gutter);
  text-align: center;
}

/* ────────────────────────────────────────
   CONTACT PAGE
   ──────────────────────────────────────── */

.contact-hero {
  background: var(--purple-deepest);
  padding: calc(var(--nav-height) + var(--space-xl)) var(--gutter) var(--space-xl);
}

.contact-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-layout {
  background: var(--charcoal);
  padding: var(--space-2xl) var(--gutter);
}

.contact-layout-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-direct h3 {
  font-family: var(--font-display);
  font-size: var(--text-subhead);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: var(--space-lg);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: var(--border-cream);
  transition: border-color 0.3s, background 0.3s;
}
.contact-channel:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.04);
}

.contact-channel-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-gold);
  flex-shrink: 0;
  color: var(--gold);
}

.contact-channel-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.contact-channel-value {
  font-size: var(--text-sm);
  color: var(--cream);
}

/* Book Like a Boss embed column */
.contact-booking h3 {
  font-family: var(--font-display);
  font-size: var(--text-subhead);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: var(--space-lg);
}

.blab-embed-wrap {
  border: var(--border-gold);
  overflow: hidden;
  min-height: 600px;
  background: rgba(75, 0, 130, 0.1);
}

.blab-embed-wrap iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

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

/* ────────────────────────────────────────
   404 PAGE — Fully styled
   ──────────────────────────────────────── */

.error-page {
  min-height: 100svh;
  background: var(--purple-deepest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(ellipse at center,
    rgba(107, 42, 159, 0.35) 0%,
    transparent 65%);
  pointer-events: none;
}

.error-number {
  font-family: var(--font-display);
  font-size: clamp(10rem, 25vw, 28rem);
  font-weight: 700;
  font-style: italic;
  line-height: 0.85;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.6) 0%, rgba(201, 168, 76, 0.1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  user-select: none;
}

.error-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.error-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.error-body {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto var(--space-xl);
  position: relative;
  z-index: 1;
}

.error-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.error-nav-links {
  margin-top: var(--space-2xl);
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.error-nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.35;
  transition: opacity 0.3s, color 0.3s;
}
.error-nav-link:hover {
  opacity: 1;
  color: var(--gold);
}
