/* Atlas product page. Shared brand tokens and site chrome remain authoritative.
   Scrolling is the site's own snap system (snap-scroll.css/js, as on Services):
   on desktop each section is one screen under the fixed nav; on phones and
   with reduced motion the page scrolls normally. */
body.atlas-page { background: var(--surface-0); color: var(--text-primary); font-family: var(--font-body); }
/* clip, not hidden: overflow: hidden would make <main> a scroll container and
   take the sections away from the page's snap points. */
.atlas-page main { overflow-x: clip; }
.atlas-wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--grid-margin); box-sizing: border-box; }
.atlas-eyebrow { color: var(--accent-blue); font: 600 12px/1.5 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; margin: 0; }

.atlas-page main > .snap-slide { display: flex; flex-direction: column; justify-content: center; }
/* A snapped section lands just below the fixed nav (scroll-margin-top), so
   it is exactly the screen under the nav: no extra top padding (the shared
   .snap-interior rule adds the nav height again) and no height hidden below
   the fold. This is what keeps the whole film player on screen. */
@media (min-width: 900px) {
  /* Specific enough to beat snap-scroll.css, which loads after this file. */
  .snap-page.snap-interior .atlas-page main > .snap-slide {
    min-height: calc(100vh - var(--nav-h, 90px));
    min-height: calc(100svh - var(--nav-h, 90px));
    padding-top: 0;
  }
  /* The first section starts at the very top of the page, under the nav. */
  .snap-page.snap-interior .atlas-page main > .atlas-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--nav-h, 90px);
  }
}

/* ---- Real product screens, in one frame treatment everywhere ---- */
.atlas-shot { margin: 0; position: relative; }
.atlas-shot::before {
  content: ""; position: absolute; inset: -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, oklch(62% 0.18 262 / 0.22), transparent);
}
.atlas-shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid oklch(78% 0.16 235 / 0.28);
  box-shadow: 0 0 50px -14px oklch(68% 0.19 255 / 0.45), 0 30px 60px -30px oklch(0% 0 0 / 0.9);
}

/* ---- Hero: the ATLAS wordmark is the identity ---- */
.atlas-hero { background: radial-gradient(ellipse 60% 70% at 78% 50%, oklch(40% 0.12 262 / 0.28), transparent 70%), var(--surface-0); }
.atlas-hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 4vw, 72px); align-items: center; padding-block: var(--space-xl); }
.atlas-lockup { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
/* The wordmark file carries transparent margins around the mark; this frame
   shows exactly the mark (357x105 of the 480x360 file) without editing it. */
.atlas-wordmark { position: relative; display: block; width: clamp(240px, 30vw, 460px); aspect-ratio: 357 / 105; overflow: hidden; }
.atlas-wordmark img { position: absolute; left: -17.927%; top: -117.143%; width: 134.454%; max-width: none; height: auto; }
.atlas-lockup-by { display: flex; align-items: center; gap: var(--space-sm); margin: 0 0 0 0.4%; font: 400 clamp(14px, 1.1vw, 17px)/1 var(--font-mono); color: var(--text-secondary); }
.atlas-lockup-by img { width: clamp(118px, 10vw, 156px); height: auto; }
.atlas-hero h1 { font: 700 clamp(30px, 2.6vw + 10px, 52px)/1.1 var(--font-display); letter-spacing: -.035em; margin: clamp(24px, 4vh, 40px) 0 0; }
.atlas-hero h1 span { background: var(--accent-gradient); background-clip: text; -webkit-background-clip: text; color: transparent; }
.atlas-lede { font-size: clamp(17px, 1.2vw, 20px); line-height: 1.6; color: var(--text-secondary); max-width: 34em; margin: var(--space-lg) 0 0; }
.atlas-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: clamp(24px, 4vh, 36px); }
.atlas-actions .btn-primary { min-height: 48px; display: inline-flex; align-items: center; }
.atlas-text-link { font-weight: 600; font-size: var(--fs-small); color: var(--text-primary); display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; }
.atlas-text-link:hover { color: var(--accent-blue); }
.atlas-text-link-time { font-family: var(--font-mono); font-weight: 400; color: var(--text-secondary); }
.atlas-hero-shot { width: 100%; }

/* ---- The film: its own screen, sized so the whole 16:9 player fits under
   the nav with its heading and CTA. Nothing is cropped. ---- */
.atlas-film { background: radial-gradient(ellipse 70% 55% at 50% 60%, oklch(68% 0.19 255 / 0.12), transparent 70%), var(--surface-0); }
.atlas-film-layout { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 2vh, 24px); padding-block: clamp(12px, 2.5vh, 32px); text-align: center; }
.atlas-film h2 { font: 700 clamp(28px, 1.8vw + 16px, 48px)/1.1 var(--font-display); letter-spacing: -.03em; margin: var(--space-xs) 0 0; }
.atlas-film h2 .grad { background: linear-gradient(100deg, var(--accent-blue), oklch(78% 0.15 218), var(--accent-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.film-sub { max-width: 640px; margin: var(--space-sm) auto 0; font-size: var(--fs-body-lg); line-height: 1.55; color: var(--text-secondary); }
.film-player {
  position: relative; margin: 0;
  /* Heading, caption, CTA, gaps and padding take about 330px besides the nav. */
  width: min(100%, 1280px, calc((100svh - var(--nav-h, 90px) - 330px) * 16 / 9));
  min-width: min(100%, 480px);
}
@media (max-height: 820px) and (min-width: 900px) {
  .film-sub { display: none; }
  .film-player { width: min(100%, 1280px, calc((100svh - var(--nav-h, 90px) - 260px) * 16 / 9)); }
}
.film-video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: oklch(12% 0.012 250);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(78% 0.16 235 / 0.35);
  box-shadow: 0 0 60px -12px oklch(68% 0.19 255 / 0.45), 0 24px 60px -24px oklch(0% 0 0 / 0.8);
}
.film-play {
  position: absolute; inset: 0; bottom: auto; aspect-ratio: 16 / 9; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: var(--space-sm);
  padding: 0 0 clamp(var(--space-md), 6%, var(--space-2xl));
  border: 0; border-radius: var(--radius-lg);
  background: linear-gradient(to top, oklch(10% 0.01 262 / 0.75), transparent 45%);
  color: var(--text-primary); font: inherit; cursor: pointer;
}
.film-play-icon {
  position: relative; width: clamp(56px, 7vw, 84px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 0 6px oklch(68% 0.19 255 / 0.18), 0 10px 32px -6px oklch(68% 0.19 275 / 0.6);
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.film-play-icon::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-top: 0.42em solid transparent; border-bottom: 0.42em solid transparent; border-left: 0.7em solid var(--text-on-accent);
  font-size: clamp(22px, 2.6vw, 32px);
}
.film-play:hover .film-play-icon, .film-play:focus-visible .film-play-icon {
  transform: scale(1.06);
  box-shadow: 0 0 0 10px oklch(68% 0.19 255 / 0.22), 0 14px 40px -6px oklch(68% 0.19 275 / 0.7);
}
.film-play-label { font: 600 var(--fs-body) var(--font-display); }
.film-play-time { margin-left: var(--space-xs); font: 400 var(--fs-body) var(--font-mono); color: var(--text-secondary); }
.film-player.is-playing .film-play { display: none; }
.film-status { margin-top: var(--space-sm); font-size: var(--fs-small); color: var(--state-warning); }
.film-caption { margin-top: var(--space-xs); font-size: var(--fs-micro); color: var(--text-tertiary); }
.film-cta-row a { min-height: 48px; display: inline-flex; align-items: center; }

/* ---- Benefits: plain-English copy beside a real Atlas screen ---- */
.atlas-benefit:nth-of-type(odd) { background: linear-gradient(180deg, var(--surface-1), var(--surface-0)); }
.atlas-benefit-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 88px); align-items: center; padding-block: var(--space-xl); }
.atlas-benefit-flip .atlas-benefit-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.atlas-benefit-flip .atlas-benefit-copy { order: 2; }
.atlas-benefit-copy h2 { font: 700 clamp(32px, 2.4vw + 14px, 56px)/1.08 var(--font-display); letter-spacing: -.035em; margin: var(--space-md) 0 var(--space-lg); }
.atlas-benefit-copy p:not(.atlas-eyebrow):not(.atlas-stage):not(.atlas-note) { font-size: clamp(16px, 1.1vw, 19px); line-height: 1.65; color: var(--text-secondary); margin: 0 0 var(--space-md); max-width: 32em; }
/* The product's real stage, stated plainly. */
.atlas-stage { display: inline-block; margin: var(--space-sm) 0 0; padding: 8px 14px; border: 1px solid oklch(68% 0.12 255 / 0.4); border-radius: var(--radius-lg); color: oklch(84% 0.08 255); font: 600 12px/1.5 var(--font-mono); letter-spacing: .04em; max-width: 36em; }
.atlas-note { font-size: var(--fs-small); line-height: 1.6; color: var(--text-tertiary); margin: var(--space-md) 0 0; max-width: 32em; }
.atlas-benefit .atlas-shot { width: min(100%, calc((100svh - var(--nav-h, 90px) - 120px) * 16 / 9)); justify-self: center; }

.atlas-ai-choices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.atlas-ai-choices li {
  display: flex; align-items: center; gap: var(--space-md); padding: clamp(18px, 2vw, 28px);
  border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  background: oklch(19% 0.012 262 / 0.85);
  font: 600 clamp(16px, 1.2vw, 20px)/1.3 var(--font-display);
}
.atlas-ai-choices img { width: 40px; height: 40px; flex: none; box-sizing: border-box; padding: 7px; border-radius: var(--radius-md); background: oklch(98% 0 0); }
.atlas-ai-local { width: 40px; height: 40px; flex: none; border-radius: var(--radius-md); background: var(--accent-gradient); position: relative; }
.atlas-ai-local::after { content: ""; position: absolute; inset: 11px 9px 14px; border: 2px solid var(--text-on-accent); border-radius: 3px; }
.atlas-ai-local::before { content: ""; position: absolute; left: 6px; right: 6px; bottom: 9px; height: 2px; background: var(--text-on-accent); border-radius: 1px; }
.atlas-ai-keep {
  grid-column: 1 / -1; flex-direction: column; align-items: flex-start !important; gap: var(--space-xs) !important;
  border-color: oklch(78% 0.16 235 / 0.45) !important;
  background: linear-gradient(135deg, oklch(30% 0.08 255 / 0.5), oklch(26% 0.08 300 / 0.4)) !important;
}
.atlas-ai-keep span { font: 600 12px/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); }
.atlas-ai-keep strong { font: 700 clamp(18px, 1.5vw, 24px)/1.3 var(--font-display); }

/* ---- Final call to action ---- */
.atlas-final { background: radial-gradient(ellipse 60% 60% at 50% 55%, oklch(55% 0.18 275 / 0.16), transparent 70%), var(--surface-0); border-top: 1px solid var(--border-subtle); }
.atlas-final-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: var(--space-2xl); }
.atlas-final h2 { font: 700 clamp(32px, 3vw + 12px, 60px)/1.1 var(--font-display); letter-spacing: -.04em; margin: var(--space-md) 0; max-width: 16em; }
.atlas-final p:not(.atlas-eyebrow) { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.7; color: var(--text-secondary); max-width: 38em; margin: 0 0 var(--space-xl); }
.atlas-final .btn-primary { min-height: 52px; display: inline-flex; align-items: center; padding-inline: 32px; font-size: var(--fs-body); }
.atlas-page .site-footer { position: relative; }

/* ---- Tablet and phone: one column, natural scrolling (snap-scroll.css
   turns snapping off below 900px). ---- */
@media (max-width: 899px) {
  .atlas-page main > .snap-slide { min-height: 0; }
  .atlas-hero { padding-top: calc(var(--nav-h, 72px) + var(--space-lg)); }
  .atlas-hero-grid, .atlas-benefit-grid, .atlas-benefit-flip .atlas-benefit-grid { grid-template-columns: 1fr; }
  .atlas-benefit-flip .atlas-benefit-copy { order: 0; }
  .atlas-benefit, .atlas-film, .atlas-final { padding-block: var(--space-2xl); }
  .atlas-benefit .atlas-shot, .film-player { width: 100%; min-width: 0; }
  .film-video, .film-play, .atlas-shot img { border-radius: var(--radius-md); }
}
@media (max-width: 480px) {
  .atlas-wrap { padding-inline: var(--space-md); }
  .atlas-actions { flex-direction: column; align-items: stretch; }
  .atlas-actions .btn-primary { justify-content: center; }
  .atlas-text-link { justify-content: center; }
  .atlas-ai-choices { grid-template-columns: 1fr; }
  .atlas-final .btn-primary { align-self: stretch; justify-content: center; }
}
