/* ============================================================
   PIVOT POWER — Homepage Styles (index.html)
   v0.8.1 · 2026.03.20

   4-Act structure:
   Act 1 — The Hook (dark, full-screen)
   Act 2 — The Reframe (light)
   Act 3 — The Reveal (light)
   Act 4 — The Invitation (dark CTA band — styles in global.css)
   ============================================================ */

/* ─────────────────────────────────────────────
   ACT 1 — THE HOOK
   Full-screen dark hero. Emotional punch.
   ───────────────────────────────────────────── */
.act1 {
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-7);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Video background */
.act1-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay — ensures text readability over video */
.act1-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 14, 17, 0.55) 0%,
    rgba(12, 14, 17, 0.70) 50%,
    rgba(12, 14, 17, 0.85) 100%
  );
  z-index: 1;
}

/* Triskelion sits above video overlay */
#hero-bg-mount {
  z-index: 2;
}

/* Gold glow above triskelion */
.act1-glow {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(200, 169, 110, 0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 3;
}

/* Text above everything */
.act1-content {
  position: relative;
  z-index: 4;
  max-width: 800px;
}

.act1-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.15s forwards;
}

.act1-title em {
  color: var(--gold);
}

.act1-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  color: var(--text-2);
  line-height: 1.8;
  max-width: 48ch;
  margin: 0 auto var(--space-7);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.35s forwards;
}

.act1-cta {
  padding: 1rem 2.2rem;
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.5s forwards;
}

.act1-note {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: var(--space-5);
  opacity: 0;
  animation: fadeIn 1s ease 0.8s forwards;
}

/* Scroll cue — subtle animated chevron */
.act1-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
  z-index: 4;
}

.act1-scroll-cue span {
  display: block;
  width: 18px;
  height: 18px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg);
  animation: scrollCueBounce 2s ease infinite;
}

@keyframes scrollCueBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50%      { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* Scalloped edge — bottom of hero flowing into cream */
.act1::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-cream, #F5F3EE);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0,80 C150,0 350,0 600,40 C850,80 1050,0 1200,0 L1200,80 Z' fill='%23fff'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath d='M0,80 C150,0 350,0 600,40 C850,80 1050,0 1200,0 L1200,80 Z' fill='%23fff'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: 5;
}

/* ─────────────────────────────────────────────
   IMAGE DIVIDERS
   Full-width photo strips between sections
   ───────────────────────────────────────────── */
.img-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  position: relative;
}

.img-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gold spark trail — thin dramatic strip */
.img-divider--spark {
  height: 120px;
  background: #000;
}

.img-divider--spark img {
  opacity: 0.85;
  object-position: center center;
}

/* Dark ocean wave — moody transition into CTA */
.img-divider--ocean {
  height: 240px;
}

.img-divider--ocean img {
  object-position: center 40%;
}

/* ─────────────────────────────────────────────
   ACT 2 — THE REFRAME
   Light bg. Teaching the insight.
   ───────────────────────────────────────────── */
.act2 {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  position: relative;
  overflow: hidden;
}

/* Subtle erosion pattern background */
.act2-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.act2-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.04;
  filter: grayscale(0.5) contrast(1.2);
}

.act2-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.act2-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--space-5);
}

.act2-headline em {
  color: var(--gold);
}

.act2-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-2);
  max-width: 56ch;
  margin-bottom: var(--space-9);
}

/* Insight blocks */
.act2-insights {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  margin-bottom: var(--space-9);
}

.act2-insight {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.act2-insight:hover {
  border-color: var(--gold-border);
  box-shadow: 0 4px 24px rgba(184, 134, 11, 0.06);
}

/* Icon */
.act2-insight-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity var(--transition), transform var(--transition);
}

.act2-insight:hover .act2-insight-icon {
  opacity: 1;
  transform: scale(1.08);
}

.act2-insight-icon svg {
  width: 100%;
  height: 100%;
}

.act2-insight-body {
  flex: 1;
  min-width: 0;
}

.act2-insight-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.act2-insight-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 56ch;
}

.act2-insight-text strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-1);
}

/* Act 2 z-index layering handled by .act2 rule above */

/* Kicker line */
.act2-kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 42ch;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

/* Testimonial */
.testimonial {
  margin: var(--space-8) 0 0;
  padding: var(--space-6) var(--space-7);
  border-left: 3px solid var(--gold);
  background: rgba(184, 134, 11, 0.04);
  border-radius: 0 8px 8px 0;
  max-width: 52ch;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 var(--space-3);
}

.testimonial-cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────
   ACT 3 — THE REVEAL
   Introduce PivotType. Make it real.
   ───────────────────────────────────────────── */
.act3 {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

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

/* Example type card */
.act3-example {
  margin-bottom: var(--space-9);
}

.act3-example-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-7);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-card);
}

.act3-example-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.act3-example-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.act3-example-code {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 10vw, 5rem);
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.act3-example-name {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--gold);
  margin-bottom: var(--space-5);
}

.act3-example-pills {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.act3-pill {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.act3-pill b {
  color: var(--gold);
  font-weight: 700;
  margin-right: 3px;
}

.act3-example-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 42ch;
  margin: 0 auto;
}

/* Ambient glow between Act 2 and Act 3 */
.act3 {
  position: relative;
}

.act3::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(184, 134, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Three dimensions */
.act3-dims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.act3-dim {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-5);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.act3-dim:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(184, 134, 11, 0.08);
}

/* Dimension icon */
.act3-dim-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: var(--space-4);
  transition: opacity var(--transition), transform var(--transition);
}

.act3-dim:hover .act3-dim-icon {
  opacity: 0.8;
  transform: scale(1.1);
}

.act3-dim-icon svg {
  width: 100%;
  height: 100%;
}

.act3-dim-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}

.act3-dim-title {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.act3-dim-body {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: var(--space-5);
}

.act3-dim-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Type chips hover */
.type-chip {
  transition: border-color var(--transition), color var(--transition);
}

.type-chip:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
/* CTA band fingerprint + sparkler styles moved to global.css */

/* ─────────────────────────────────────────────
   SCROLL REVEAL ENHANCEMENTS
   Staggered fade-up with scale for richer feel
   ───────────────────────────────────────────── */
.act2-insight.reveal,
.act3-dim.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.act2-insight.reveal.visible,
.act3-dim.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .act3-dims {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .act2-insight {
    gap: var(--space-4);
    padding: var(--space-5);
  }

  .act2-insight-icon {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 600px) {
  .img-divider--spark {
    height: 80px;
  }

  .img-divider--ocean {
    height: 160px;
  }

  .act1 {
    padding: var(--space-7) var(--space-5);
  }

  .act1-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .act2,
  .act3 {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }

  .act2-insight {
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-4);
  }

  .act2-insight-icon {
    width: 36px;
    height: 36px;
  }

  .act3-example-card {
    padding: var(--space-6) var(--space-5);
  }

  .act3-dim-icon {
    width: 32px;
    height: 32px;
  }
}
