/* ============================================================
   THE THROUGHLINE — Homepage Styles
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--cream);
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Subtle background treatment */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 40%, rgba(139, 111, 78, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(28, 43, 58, 0.04) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-4xl);
  max-width: 680px;
}

/* Eyebrow */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.8s var(--ease-out) both;
}

.hero__eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background-color: var(--sepia);
  flex-shrink: 0;
}

/* Practice name lockup */
.hero__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
  animation: fadeUp 0.9s var(--ease-out) 0.1s both;
  margin-bottom: 0.3rem;
}

.hero__descriptor {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  animation: fadeUp 0.9s var(--ease-out) 0.18s both;
  margin-bottom: var(--space-lg);
}

.hero__tagline {
  animation: fadeUp 0.9s var(--ease-out) 0.26s both;
  margin-bottom: 0;
}

.hero__tagline.t-tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--sepia);
}

/* Rule */
.hero .rule {
  animation: fadeIn 1s var(--ease-out) 0.3s both;
  margin-bottom: var(--space-xl);
}

/* Descriptor */
.hero__desc {
  animation: fadeUp 0.9s var(--ease-out) 0.35s both;
  color: var(--warm-gray);
  max-width: 520px;
  margin-bottom: var(--space-2xl);
}

/* CTAs */
.hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
  animation: fadeUp 0.9s var(--ease-out) 0.45s both;
}

/* ============================================================
   FIXED WATERMARK — pinned to viewport, visible from hero
   through about-bridge, hidden over navy and footer
   ============================================================ */

.scroll-watermark {
  position: fixed;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(380px, 55vw, 700px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  transition: opacity 0.5s ease;
  will-change: opacity;
}

.scroll-watermark.watermark-hidden {
  opacity: 0;
}

/* Hidden on mobile */
@media (max-width: 900px) {
  .scroll-watermark {
    display: none;
  }
}

.scroll-watermark__img {
  width: 100%;
  height: auto;
}

/* Ensure all section text renders above the fixed watermark */
.hero__content,
.intro .container,
.cost-section .container,
.reframe-section .container,
.worthy-bridge .container,
.about-bridge .container,
.details-section .container {
  position: relative;
  z-index: 1;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1.2s var(--ease-out) 1s both;
  z-index: 1;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--sepia), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   INTRO SECTION
   ============================================================ */

.intro {
  background-color: var(--cream);
}

.intro__heading {
  margin-bottom: var(--space-2xl);
}

.intro__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Standalone beat line */
.intro__beat {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem) !important;
  color: var(--navy);
  border-left: 2px solid var(--sepia);
  padding-left: var(--space-lg);
  margin-block: var(--space-sm);
}

/* ============================================================
   COST SECTION
   ============================================================ */

.cost-section {
  border-top: 1px solid var(--cream-darker);
  border-bottom: 1px solid var(--cream-darker);
}

.cost-section__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* "Cue shame." standalone */
.cost-section__beat {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem) !important;
  color: var(--navy);
  text-align: center;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--cream-darker);
  border-bottom: 1px solid var(--cream-darker);
  margin-block: var(--space-md);
}

/* ============================================================
   REFRAME SECTION
   ============================================================ */

.reframe-section {
  background-color: var(--cream);
}

.reframe-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (min-width: 768px) {
  .reframe-section__inner {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-4xl);
    align-items: center;
  }
}

/* Pull quote */
.reframe-quote {
  position: relative;
}

.reframe-quote p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--navy);
  position: relative;
}

.reframe-quote p::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--sepia-pale);
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  line-height: 1;
  opacity: 0.5;
}

.reframe-quote__attr {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.reframe-quote__attr .rule {
  margin: 0;
}

.reframe-section__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* ============================================================
   TOPICS — Navy section
   ============================================================ */

.topics-section {
  position: relative;
}

/* Header row — text left, blueprint right */
.topics-section__top {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .topics-section__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.topics-section__header {
  /* no bottom margin needed — handled by grid gap */
}

/* Blueprint illustration */
.topics-blueprint {
  display: flex;
  justify-content: center;
  align-items: center;
}

.topics-blueprint__img {
  width: 100%;
  max-width: 420px;
  height: auto;
  opacity: 0.75;
  mix-blend-mode: screen; /* cream strokes on navy = luminous effect */
}

/* Placeholder state when image not yet loaded */
.topics-blueprint--placeholder {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border: 1px dashed rgba(245, 240, 232, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topics-blueprint--placeholder::after {
  content: 'Blueprint illustration coming soon';
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.25);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1rem;
}

.topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: rgba(245, 240, 232, 0.08);
  border: 1px solid rgba(245, 240, 232, 0.08);
}

@media (min-width: 600px) {
  .topics-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .topics-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-xl);
  background-color: var(--navy);
  transition: background-color var(--duration-base) var(--ease-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background-color: var(--sepia);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-smooth);
}

.topic-card:hover {
  background-color: var(--navy-mid);
}

.topic-card:hover::before {
  transform: scaleX(1);
}

.topic-card__num {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--sepia-pale);
}

.topic-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--cream);
}

.topic-card__desc {
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.6;
  flex: 1;
}

.topic-card__link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sepia-pale);
  margin-top: auto;
  transition: color var(--duration-base) var(--ease-smooth);
}

.topic-card:hover .topic-card__link {
  color: var(--cream);
}

/* "And more" card */
.topic-card--more {
  justify-content: center;
  align-items: flex-start;
  border: 1px dashed rgba(245, 240, 232, 0.12);
  background-color: rgba(245, 240, 232, 0.03);
}

.topic-card--more:hover {
  background-color: rgba(245, 240, 232, 0.06);
}

.topic-card__more-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  font-weight: 300;
}

.topic-card__more-sub {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.4);
  line-height: 1.6;
  margin-top: var(--space-sm);
}

/* TL;DR line */
.intro__tldr {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--warm-gray);
  border-left: 2px solid var(--sepia);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--cream-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.intro__tldr-label {
  font-weight: 600;
  color: var(--sepia);
  margin-right: var(--space-sm);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   WORTHY BRIDGE — Before topics
   ============================================================ */

.worthy-bridge {
  background-color: var(--cream);
  border-bottom: 1px solid var(--cream-darker);
}

.worthy-bridge__line {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: var(--space-md);
}

.worthy-bridge__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  color: var(--sepia);
  margin-top: var(--space-md);
}

/* ============================================================
   ABOUT BRIDGE
   ============================================================ */

.about-bridge {
  border-top: 1px solid var(--cream-darker);
}

.about-bridge__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (min-width: 768px) {
  .about-bridge__inner {
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-4xl);
  }
}

/* Photo placeholder */
.about-bridge__photo {
  width: 100%;
}

.about-bridge__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  display: block;
}

.about-bridge__photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background-color: var(--cream-darker);
  border: 1px solid var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  max-width: 380px;
}

.about-bridge__photo-placeholder span {
  font-size: 0.75rem;
  color: var(--warm-gray-light);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}

.about-bridge__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.about-bridge__text .t-h2 {
  margin-bottom: 0;
}

/* ============================================================
   DETAILS SECTION
   ============================================================ */

.details-section {
  border-top: 1px solid var(--cream-darker);
  background-color: var(--cream);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl) var(--space-3xl);
}

@media (min-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

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

.detail-item__icon {
  font-size: 1.2rem;
  color: var(--sepia);
  line-height: 1;
}

.detail-item__title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.detail-item__text {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.65;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.15); }
}
