/* ============================================================
   Blue Planet — editorial landing page
   Static styles, single breakpoint at 768px
   ============================================================ */

:root {
  --bg:        #0a0d12;
  --bg-soft:   #0e131a;
  --text:      #f2efe9;
  --text-mute: #a8a59d;
  --rule:      #1f242c;
  --accent:    #1B3A78;
  --accent-2:  #6d9bd6;

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --section-pad: clamp(6rem, 12vw, 12rem);
  --gutter:      clamp(1.5rem, 5vw, 4rem);
  --measure:     38rem;
}

/* ---------- reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

/* ---------- fade-in (script.js toggles .is-visible) ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  will-change: opacity, transform;
}
.fade-in.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   1. Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #000;
}

.hero__video,
.hero__poster,
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Mobile: hide the video, show poster <img> */
.hero__video { display: none; }
@media (min-width: 768px) {
  .hero__video  { display: block; }
  .hero__poster { display: none; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 0%, rgba(10,13,18,0.55) 65%, rgba(10,13,18,0.92) 100%),
    linear-gradient(180deg, rgba(10,13,18,0.35) 0%, transparent 25%, transparent 70%, rgba(10,13,18,0.85) 100%);
}

.hero__content {
  text-align: center;
  padding: 0 var(--gutter);
  max-width: 60rem;
  animation: heroIn 1.8s cubic-bezier(.2,.7,.2,1) both;
}

.hero__eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 1.6rem;
}

.hero__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(4rem, 14vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 2px 40px rgba(0,0,0,0.6);
}

.hero__subtitle {
  font-family: var(--sans);
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 1.6rem 0 0;
}

.hero__scroll {
  position: absolute;
  bottom: clamp(2rem, 4vw, 3.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-mute);
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.hero__scroll:hover { color: var(--text); }
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, currentColor 0%, transparent 100%);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes heroIn {
  0%   { opacity: 0; transform: translateY(20px); filter: blur(8px); }
  100% { opacity: 1; transform: none;             filter: none; }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1);   opacity: 0.5; transform-origin: top; }
  50%      { transform: scaleY(0.4); opacity: 1;   transform-origin: top; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__content { animation: none; }
  .hero__scroll-line { animation: none; }
}

/* ============================================================
   shared: section padding, kickers
   ============================================================ */

section {
  padding-block: var(--section-pad);
  padding-inline: var(--gutter);
}

.kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 2rem;
}
.kicker--centered { text-align: center; }

/* ============================================================
   2. Intro
   ============================================================ */

.intro {
  max-width: 64rem;
  margin: 0 auto;
  text-align: left;
}
.intro__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.intro__lede span {
  display: block;
}
.intro__lede span:last-child {
  font-style: italic;
  color: var(--accent-2);
}

/* ============================================================
   3 & 5. Two-column "spread" sections
   ============================================================ */

.spread {
  max-width: 78rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.spread__copy {
  max-width: var(--measure);
}

.spread__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.15;
  margin: 0 0 2rem;
}

.spread__body {
  font-family: var(--sans);
  font-weight: 300;
  margin: 0 0 1.5rem;
  color: var(--text);
}
.spread__body--muted {
  color: var(--text-mute);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.15em;
  line-height: 1.55;
}

.spread__media {
  margin: 0;
  position: relative;
}
.spread__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 2px;
  filter: saturate(1.05) contrast(1.02);
}

/* mobile: stack with image first */
@media (max-width: 767px) {
  .spread {
    grid-template-columns: 1fr;
  }
  .spread__media { order: -1; }
  .spread--reverse .spread__media { order: -1; }
}

/* on desktop, reverse variant flips order */
@media (min-width: 768px) {
  .spread--reverse .spread__media { order: 0; }
  .spread--reverse .spread__copy  { order: 1; }
}

/* ============================================================
   4. Specs
   ============================================================ */

.specs {
  max-width: 64rem;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.specs__header { margin-bottom: 3.5rem; }
.specs__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.15;
  margin: 0;
}
.specs__grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: 0;
}
.specs__row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.specs__row:last-child,
.specs__row:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}
.specs__row dt {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0;
}
.specs__row dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 400;
  color: var(--text);
}

@media (max-width: 767px) {
  .specs__grid {
    grid-template-columns: 1fr;
  }
  .specs__row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.2rem 0;
  }
  .specs__row dt { font-size: 0.7rem; }
  .specs__row:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
}

/* ============================================================
   6. CTA
   ============================================================ */

.cta {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}
.cta__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.cta__price {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 3rem;
}
.cta__button {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 2.25rem;
  min-height: 56px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, gap 0.35s ease;
}
.cta__button:hover {
  background: var(--text);
  color: var(--bg);
  gap: 1.15rem;
}
.cta__arrow {
  display: inline-block;
  transition: transform 0.35s ease;
}
.cta__button:hover .cta__arrow { transform: translateX(4px); }
.cta__small {
  margin: 2.5rem 0 0;
  font-size: 0.75rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .cta__button {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   7. Footer
   ============================================================ */

.footer {
  padding: 4rem var(--gutter) 5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  background: var(--bg-soft);
}
.footer__line {
  margin: 0.4rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
}
.footer__line--muted {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ============================================================
   focus
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}
