/* SolmOne marketing site — cinematic dark identity
   Mirrors the in-app Cinema palette and Fonts so the
   marketing pages feel like the same product as the app. */

@font-face {
  font-family: 'Gordita';
  src: url('/assets/fonts/Gordita-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gordita';
  src: url('/assets/fonts/Gordita-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gordita';
  src: url('/assets/fonts/Gordita-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal: #0F0C09;
  --charcoal-soft: #15110D;
  --on-dark: #E8DFCB;
  --on-dark-muted: rgba(232, 223, 203, 0.65);
  --on-dark-subtle: rgba(232, 223, 203, 0.42);
  --gold: #C9A84C;
  --gold-light: #E8D5A0;
  --gold-line-soft: rgba(232, 213, 160, 0.18);
  --gold-line-medium: rgba(232, 213, 160, 0.28);
  --gold-glow: rgba(232, 180, 110, 0.16);
  --gold-chip-bg: rgba(201, 168, 76, 0.08);
  --card-bg: rgba(15, 12, 9, 0.45);
  --card-bg-light: rgba(15, 12, 9, 0.32);

  --font-display: 'Cormorant Garamond', 'EB Garamond', Garamond, 'Apple Garamond', Georgia, 'Times New Roman', serif;
  --font-ui: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-wordmark: 'Gordita', 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--charcoal);
  color: var(--on-dark);
  font-family: var(--font-ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ─── Navigation ─────────────────────────────────────────── */
.site-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.nav-wordmark {
  font-family: var(--font-wordmark);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 1.5px;
  color: var(--on-dark);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 13px;
  color: var(--on-dark-muted);
  letter-spacing: 0.4px;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--on-dark); }

.nav-links a[aria-current="page"] {
  color: var(--on-dark);
  border-bottom: 1px solid var(--gold-line-medium);
  padding-bottom: 2px;
}

.nav-cta {
  font-weight: 500 !important;
  color: var(--on-dark) !important;
  background: var(--gold-chip-bg);
  border: 1px solid var(--gold-line-medium);
  padding: 9px 18px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  background: rgba(201, 168, 76, 0.16);
  border-color: rgba(232, 213, 160, 0.45);
}

@media (max-width: 720px) {
  .nav-links { gap: 18px; }
  /* Mobile nav keeps the CTA, the current page indicator, and the always-on
     Download link visible. Other nav links collapse to keep the bar light. */
  .nav-links a:not(.nav-cta):not(.nav-download) { display: none; }
  .nav-links a[aria-current="page"],
  .nav-links .nav-download,
  .nav-links .nav-cta { display: inline-flex; }
}

/* ─── Hero ───────────────────────────────────────────────── */
.atmosphere {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

.atmosphere-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.atmosphere::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 12, 9, 0.20) 0%,
    rgba(15, 12, 9, 0.35) 35%,
    rgba(15, 12, 9, 0.78) 78%,
    rgba(15, 12, 9, 0.97) 100%
  );
  z-index: 1;
}

.atmosphere::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(
    to bottom,
    var(--gold-glow) 0%,
    rgba(232, 180, 110, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: clamp(620px, 94vh, 860px);
  display: flex;
  flex-direction: column;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 28px 96px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Two-column hero (copy + phone) on desktop, stacked on mobile.
   Phone is visible at every viewport — on mobile it stacks below the copy
   at a smaller, tasteful size; on desktop it sits in the right column. */
.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
}

@media (min-width: 920px) {
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    column-gap: 64px;
    max-width: 1200px;
    padding-bottom: 120px;
  }
  .hero-phone {
    margin-top: 0;
  }
}

.hero-phone-frame {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  background: #060503;
  padding: 7px;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(232, 213, 160, 0.18) inset,
    0 0 70px rgba(232, 180, 110, 0.14);
}

@media (min-width: 920px) {
  .hero-phone-frame {
    max-width: 320px;
    border-radius: 44px;
    padding: 9px;
    box-shadow:
      0 28px 70px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(232, 213, 160, 0.18) inset,
      0 0 90px rgba(232, 180, 110, 0.16);
  }
}

.hero-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--charcoal);
  position: relative;
}

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

.hero-eyebrow {
  font-family: var(--font-wordmark);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  margin-bottom: 28px;
  opacity: 0.85;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.4px;
  color: var(--on-dark);
  max-width: 14ch;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}

.hero-sub {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  color: var(--on-dark-muted);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.4px;
  color: var(--charcoal);
  background: var(--gold-light);
  border: 1px solid var(--gold-light);
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 32px rgba(232, 213, 160, 0.18);
}

.cta-pill:hover {
  background: #F2DEAB;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(232, 213, 160, 0.28);
}

.cta-pill .cta-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex-shrink: 0;
  margin-right: 2px;
}

.cta-secondary {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--on-dark-muted);
  border-bottom: 1px solid var(--gold-line-soft);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.cta-secondary:hover {
  color: var(--on-dark);
  border-color: var(--gold-line-medium);
}

/* ─── Section primitives ─────────────────────────────────── */
.section-lede {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 56ch;
}

/* ─── Field weather page ────────────────────────────────── */
.fw-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 28px 96px;
}

.fw-header {
  text-align: left;
  margin-bottom: 32px;
}

.fw-datetime {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  color: var(--on-dark-muted);
  letter-spacing: 0.3px;
  margin-top: 14px;
}

.fw-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--gold-line-soft);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.fw-modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .fw-modules { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
}

.fw-module { display: flex; flex-direction: column; gap: 6px; }

.fw-module-label {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.85;
}

.fw-module-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--on-dark);
}

.fw-module-detail {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 13px;
  color: var(--on-dark-muted);
}

.fw-loading {
  text-align: center;
  padding: 24px;
  color: var(--on-dark-subtle);
  font-size: 13px;
}

.fw-outlook { margin-top: 32px; }

.fw-outlook-label {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.85;
  margin-bottom: 16px;
}

.fw-outlook-days {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fw-outlook-day {
  background: var(--card-bg-light);
  border: 1px solid var(--gold-line-soft);
  border-radius: 16px;
  padding: 20px 22px;
}

.fw-outlook-day-label {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--on-dark);
  margin-bottom: 10px;
}

.fw-outlook-day-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fw-outlook-day-item {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 13px;
  color: var(--on-dark-muted);
}

.fw-footer-note {
  text-align: center;
  padding: 36px 24px 0;
  max-width: 640px;
  margin: 0 auto;
}

.fw-footer-note p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--on-dark-muted);
}

/* ─── Download page ─────────────────────────────────────── */
.waitlist-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 28px 96px;
}

.waitlist-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  color: var(--on-dark);
  margin-bottom: 12px;
}

.waitlist-section p {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-dark-muted);
  margin-bottom: 24px;
  max-width: 52ch;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin-bottom: 14px;
}

.waitlist-form input {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  color: var(--on-dark);
  background: var(--card-bg);
  border: 1px solid var(--gold-line-soft);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input::placeholder { color: var(--on-dark-subtle); }
.waitlist-form input:focus { border-color: var(--gold-line-medium); }

.waitlist-form button {
  padding: 14px 26px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--on-dark);
  background: var(--gold-chip-bg);
  border: 1px solid var(--gold-line-medium);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.waitlist-form button:hover {
  background: rgba(201, 168, 76, 0.16);
  border-color: rgba(232, 213, 160, 0.5);
}

.waitlist-form button:disabled { opacity: 0.5; cursor: default; }

.waitlist-feedback {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 13px;
  min-height: 20px;
  color: var(--on-dark-muted);
}

.waitlist-feedback.success { color: var(--gold-light); }
.waitlist-feedback.error { color: #D9A66E; }

/* Compact modifier — Android waitlist on /download sits below the fold
   as a secondary CTA, not a hero section */
.waitlist-section--compact {
  padding: 24px 28px 56px;
  border-top: 1px solid var(--gold-line-soft);
  max-width: 720px;
  margin-top: 16px;
}

.waitlist-section--compact h2 {
  font-size: clamp(16px, 1.8vw, 20px);
  margin-bottom: 8px;
  opacity: 0.7;
}

.waitlist-section--compact p {
  font-size: 13px;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .waitlist-form { flex-direction: column; }
}

/* ─── Download page — conversion landing layout ─────────── */
.download-companion-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .download-companion-actions {
    flex-direction: row;
    align-items: center;
    gap: 22px;
  }
}

.download-recap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 28px 72px;
}

.download-recap-eyebrow {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.8;
  margin-bottom: 18px;
}

.download-recap h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.2px;
  color: var(--on-dark);
  margin-bottom: 40px;
  max-width: 24ch;
}

.download-recap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 720px) {
  .download-recap-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

.download-recap-tile {
  padding: 26px 24px 28px;
  background: var(--card-bg);
  border: 1px solid var(--gold-line-soft);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.download-recap-label {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.85;
  margin-bottom: 4px;
}

.download-recap-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--on-dark);
}

.download-recap-body {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.download-trust {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px 80px;
  text-align: center;
}

.download-trust p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
  color: var(--gold-light);
  opacity: 0.85;
  max-width: 38ch;
  margin: 0 auto;
}

/* Companion phone visual on /download */
.download-phone-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 28px 24px;
  display: flex;
  justify-content: center;
}

.download-phone-wrap .hero-phone-frame {
  max-width: 280px;
}

@media (min-width: 920px) {
  .download-phone-wrap {
    padding-top: 80px;
  }
  .download-phone-wrap .hero-phone-frame {
    max-width: 300px;
  }
}

/* ─── Page header (companion pages) ─────────────────────── */
.companion-header {
  position: relative;
  padding: 64px 28px 48px;
  max-width: 880px;
  margin: 0 auto;
  z-index: 2;
}

.companion-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: var(--on-dark);
  margin-bottom: 14px;
  max-width: 16ch;
}

.companion-header h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}

.companion-header p {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 52ch;
}

/* ─── Companion atmosphere (shorter than home hero) ─────── */
.atmosphere-companion {
  min-height: 420px;
}

.atmosphere-companion .atmosphere-image { height: 100%; }

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 56px 28px 64px;
  border-top: 1px solid var(--gold-line-soft);
  max-width: 1100px;
  margin: 64px auto 0;
}

.footer-attribution {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--on-dark-subtle);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--on-dark-subtle);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--on-dark-muted); }

@media (min-width: 768px) {
  .hero-actions { flex-direction: row; align-items: center; gap: 22px; }
}

/* ─── Narrative sections (What SolmOne is, Your matrix) ──── */
.narrative-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 56ch;
}

.narrative-body p {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--on-dark-muted);
}

/* ─── Pull quote ─────────────────────────────────────────── */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--gold-light);
  opacity: 0.75;
  max-width: 52ch;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--gold-line-soft);
}

.pull-quote--inline {
  display: block;
  margin-top: 22px;
  padding-top: 18px;
}

/* ─── Layers section ─────────────────────────────────────── */
.layer-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.layer-tag {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

.layer-tag--live {
  color: var(--gold-light);
  background: var(--gold-chip-bg);
  border: 1px solid var(--gold-line-medium);
}

.layer-tag--soon {
  color: var(--on-dark-subtle);
  background: transparent;
  border: 1px dashed var(--gold-line-soft);
}

.layer-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 58ch;
}

.layer-body p {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--on-dark-muted);
}

/* ─── Full-bleed atmospheric layer sections ─────────────── */

.layer-atm {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  min-height: clamp(500px, 68vh, 780px);
  display: flex;
  flex-direction: column;
}

.layer-atm-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Dark bottom gradient so text sits cleanly on the photo */
.layer-atm::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 12, 9, 0.06) 0%,
    rgba(15, 12, 9, 0.22) 38%,
    rgba(15, 12, 9, 0.80) 70%,
    rgba(15, 12, 9, 0.97) 100%
  );
  z-index: 1;
}

/* Warm gold blush at the top */
.layer-atm::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(
    to bottom,
    var(--gold-glow) 0%,
    rgba(232, 180, 110, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.layer-atm-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 52px 28px 76px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Layer name eyebrow */
.layer-eyebrow {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.9;
  margin-bottom: 0;
}

/* Layer body text inside atmospheric sections */
.layer-atm .layer-body {
  margin-top: 20px;
}

.layer-atm .layer-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-dark);
  max-width: 62ch;
}

.layer-atm .pull-quote {
  color: var(--gold-light);
  opacity: 0.8;
  max-width: 60ch;
}

/* ─── Narrative atmospheric sections (What SolmOne is, Three layers, Privacy) ──
   Tighter than layer-atm so a short narrative + pull-quote doesn't float in
   a half-empty band. Pull-quote is sized as a real closing call-out. */
.layer-atm.narrative-atm {
  min-height: clamp(320px, 44vh, 480px);
}

/* Heavier overlay for narrative sections — dense body copy needs strong contrast */
.layer-atm.narrative-atm::before {
  background: linear-gradient(
    to bottom,
    rgba(15, 12, 9, 0.42) 0%,
    rgba(15, 12, 9, 0.62) 35%,
    rgba(15, 12, 9, 0.88) 68%,
    rgba(15, 12, 9, 0.97) 100%
  );
}

/* Centre content vertically, constrain width for readability */
.layer-atm.narrative-atm .layer-atm-inner {
  justify-content: center;
  max-width: 720px;
}

.layer-atm.narrative-atm .narrative-section-eyebrow {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.8;
  margin-bottom: 18px;
}

.layer-atm.narrative-atm h2 {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.2px;
  color: var(--on-dark-muted);
  max-width: 34ch;
  margin-bottom: 22px;
}

.layer-atm.narrative-atm .narrative-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 56ch;
}

.layer-atm.narrative-atm .narrative-body p {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--on-dark-muted);
}

.layer-atm.narrative-atm .section-lede {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 56ch;
}

.layer-atm.narrative-atm .pull-quote {
  color: var(--gold-light);
  opacity: 0.85;
  max-width: 52ch;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  margin-top: 32px;
  padding-top: 26px;
}

@media (max-width: 640px) {
  .layer-atm.narrative-atm {
    min-height: clamp(300px, 60vh, 480px);
  }

  .layer-atm.narrative-atm .layer-atm-inner {
    padding: 40px 20px 52px;
  }
}

/* Matrix layer — seeds image focal point on mobile */
@media (max-width: 640px) {
  .layer-atm--matrix .layer-atm-bg {
    object-position: center 55%;
  }
}

/* Muted variant for coming-soon layers */
.layer-atm--muted .layer-atm-bg {
  opacity: 0.55;
}

.layer-atm--muted .layer-eyebrow {
  color: var(--on-dark-muted);
  opacity: 0.75;
}

.layer-atm--muted .layer-tag {
  opacity: 0.8;
}

.layer-atm--muted .layer-body p {
  color: var(--on-dark-muted);
}

@media (min-width: 860px) {
  .layer-atm-inner {
    padding: 64px 48px 88px;
  }
  .layer-atm .layer-body p {
    font-size: 17px;
  }
}

/* ─── Atmospheric layers — mobile polish ────────────────── */
@media (max-width: 640px) {
  /* Reduce section height so content stays on screen on short phones */
  .layer-atm {
    min-height: clamp(340px, 78vh, 520px);
  }

  /* Per-image focal points tuned to each photo's natural subject on
     portrait viewports — replaces the old single center 30% rule */

  /* blue-flowers: glowing flowers cluster sits in the lower-center
     of the frame; pull down to show them rather than dark canopy */
  .layer-atm--cognition .layer-atm-bg {
    object-position: center 62%;
  }

  /* mist-hills: the horizon mist and rolling hills sit in the mid
     section; 35% keeps the atmospheric valley in view without
     dipping into the dark foreground */
  .layer-atm--environment .layer-atm-bg {
    object-position: center 35%;
  }

  /* mineral-stream: the water and mineral textures concentrate near
     mid-frame; 65% pulls the most colourful area into the mobile
     crop rather than showing sky or dark edges */
  .layer-atm--biology .layer-atm-bg {
    object-position: center 65%;
  }

  /* Tighten horizontal padding to 20px; reduce bottom to 48px so the
     dark gradient doesn't consume half the screen */
  .layer-atm-inner {
    padding: 36px 20px 48px;
  }

  /* Body text: 15px keeps readability without going below 14px;
     no max-width override needed — ch units already collapse gracefully */
  .layer-atm .layer-body p {
    font-size: 15px;
    line-height: 1.65;
  }

  /* Pull-quote: smaller font, no artificial width cap on narrow screens */
  .layer-atm .pull-quote {
    font-size: clamp(14px, 4vw, 16px);
    max-width: none;
    margin-top: 18px;
    padding-top: 16px;
  }

  /* Layer header: allow wrapping so the tag never causes overflow */
  .layer-header {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
  }

  /* Body margin top reduced to match tighter layout */
  .layer-atm .layer-body {
    margin-top: 14px;
  }

  /* Muted (Biology coming-soon) — keep the lower opacity intact;
     slightly raise it so text stays legible at small sizes */
  .layer-atm--muted .layer-atm-bg {
    opacity: 0.50;
  }
}

/* ─── Hero atmospheric section — mobile polish ─────────── */
@media (max-width: 640px) {
  /* Shift focal point downward so the warm dusk band stays in
     frame on portrait viewports (dusk-sky's interesting band is
     in the lower-middle of the image) */
  .hero .atmosphere-image {
    object-position: center 65%;
  }

  /* Tighten horizontal padding to 20px; cut the generous 96px bottom
     down to 56px so the gradient doesn't consume half the screen */
  .hero-inner {
    padding: 32px 20px 56px;
  }
}

/* ─── Companion atmosphere — mobile image focus & padding ── */
@media (max-width: 640px) {
  /* Shift each image's focal point so the atmospheric subject
     stays in frame on portrait viewports, same approach as hero
     and layer-atm treatments above */
  .atmosphere-companion .atmosphere-image[src*="night-snow-warm"] {
    object-position: center 25%;
  }

  .atmosphere-companion .atmosphere-image[src*="mist-hills"] {
    object-position: center 35%;
  }

  /* Tighten horizontal padding to 20px; reduce top/bottom to match
     the hero-inner and layer-atm-inner compact treatment */
  .companion-header {
    padding: 32px 20px 40px;
  }
}

/* ─── Prevent any horizontal overflow site-wide on mobile ── */
@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }
}
