/* Atmo web — page-level layout only.
   Every colour, radius, space, type size, tracking and duration comes from the
   design system. This file defines no design values of its own; if you need a
   new one, add it to brand/design-system/tokens/ first. */

@import url("design-system/styles.css");

/* ---------- page scaffold ---------- */

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter-app);
}

section { padding: 96px 0; }
section + section { border-top: var(--border-width) solid var(--border-hairline); }

/* Section labels: uppercased by CSS, sentence case in the source.
   No text-indent — the design system pairs tracking with a matching text-indent
   only to keep CENTRED type optically centred. Everything here is left-aligned,
   where an indent would just push the line off the gutter. */
.section-label {
  color: var(--text-meta);
  font-size: var(--text-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  margin-bottom: var(--space-10);
}

h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: var(--weight-regular);
  letter-spacing: var(--track-normal);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-6);
  max-width: 22ch;
}

p { margin: 0 0 var(--space-6); max-width: 62ch; line-height: var(--leading-prose); }
p:last-child { margin-bottom: 0; }
.muted { color: var(--text-muted); }
.meta  { color: var(--text-meta); font-size: var(--text-tagline); }

/* ---------- wordmark ---------- */

.wordmark {
  font-family: var(--font-wordmark);
  font-weight: var(--weight-wordmark);
  letter-spacing: var(--track-wordmark);
  line-height: 1;
  margin: 0;
}
.wordmark--hero { font-size: clamp(38px, 9vw, 74px); }
.wordmark--foot  { font-size: 22px; color: var(--text-meta); }

/* Centred lockups get the matching text-indent the design system specifies. */
.wordmark--centred { text-align: center; text-indent: var(--track-wordmark); }

.tagline {
  color: var(--text-meta);
  font-size: var(--text-tagline);
  letter-spacing: var(--track-tagline);
  text-transform: uppercase;
  margin-top: var(--space-4);
}

/* ---------- hero: full-bleed scene art behind a protection gradient ---------- */

.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-top: 0;
}
/* The still is the floor: it always covers, so the hero is never letterboxed and
   never empty. The loop is layered over it and fades in only once it can actually
   play — if the CDN is slow, blocked, or the file never arrives, the still stands. */
.hero__still,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__still { opacity: 0.85; }
.hero__video {
  opacity: 0;
  transition: opacity var(--dur-fade) var(--ease);
}
.hero__video.is-ready { opacity: 0.85; }
.hero__shade { position: absolute; inset: 0; background: var(--shade-scene); }
.hero__inner { position: relative; padding-bottom: 64px; padding-top: 96px; }

/* ---------- buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hit-min);
  padding: 0 26px;
  border-radius: var(--radius-pill);
  border: var(--border-width) solid transparent;
  font-family: inherit;
  font-size: var(--text-body);
  letter-spacing: var(--track-normal);
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease),
              background-color var(--dur-press) var(--ease),
              color var(--dur-press) var(--ease),
              border-color var(--dur-press) var(--ease);
}
.btn:active { transform: scale(var(--press-scale)); }

/* Sand is the only accent that invites a tap. */
.btn--primary { background: var(--accent); color: var(--text-on-accent); }
.btn--ghost {
  background: var(--surface-chip);
  border-color: var(--border-chip);
  color: var(--text-primary);
  backdrop-filter: blur(var(--blur-soft));
  -webkit-backdrop-filter: blur(var(--blur-soft));
}
.btn--ghost:hover { color: var(--text-primary); border-color: var(--accent); }

/* Not yet shipped — say so plainly rather than linking nowhere. */
.btn[aria-disabled="true"] { cursor: default; opacity: 1; }
.btn[aria-disabled="true"]:active { transform: none; }

/* ---------- the honest trade ---------- */

.trade { font-size: clamp(19px, 2.4vw, 26px); line-height: var(--leading-tight); max-width: 30ch; }
.trade em { font-style: normal; color: var(--accent); }

/* ---------- scene grid ---------- */

.scenes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.scene {
  position: relative;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-hairline);
}
.scene img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.scene__shade { position: absolute; inset: 0; background: var(--shade-card); }
.scene__label { position: absolute; left: var(--space-7); bottom: var(--space-7); }
.scene__name {
  font-size: var(--text-scene);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-normal);
}
.scene__sub { font-size: var(--text-caption); color: var(--text-muted); margin-top: var(--space-1); }

/* ---------- feature list ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-11);
  margin: 0; padding: 0;
  list-style: none;
}
.features h3 {
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-normal);
  margin: 0 0 var(--space-3);
}
.features p { font-size: var(--text-tagline); color: var(--text-muted); margin: 0; max-width: none; }

/* ---------- footer ---------- */

footer { padding: 64px 0 80px; border-top: var(--border-width) solid var(--border-hairline); }
.footer__grid { display: flex; flex-wrap: wrap; gap: var(--space-8); justify-content: space-between; align-items: flex-end; }
.footer__links { display: flex; gap: var(--space-8); font-size: var(--text-tagline); }
/* Hover barely exists — text lifts from meta to primary, nothing else. */
.footer__links a { color: var(--text-meta); transition: color var(--dur-press) var(--ease); }
.footer__links a:hover { color: var(--text-primary); }

.promise {
  color: var(--text-meta);
  font-size: var(--text-label);
  letter-spacing: var(--track-micro);
  margin-top: var(--space-4);
}

/* ---------- prose pages ---------- */

.prose { padding: 96px 0; }
.prose h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: var(--weight-regular);
  letter-spacing: var(--track-normal);
  margin: 0 0 var(--space-12);
}
.prose h2 { font-size: 19px; margin-top: var(--space-12); }
.prose ul { margin: 0 0 var(--space-6) 20px; padding: 0; line-height: var(--leading-prose); }
.prose li { margin-bottom: var(--space-3); max-width: 62ch; }
.prose .back { display: inline-block; margin-bottom: var(--space-10); font-size: var(--text-tagline); color: var(--text-meta); }
.prose__footnote { margin-top: var(--space-12); }
.prose .back:hover { color: var(--text-primary); }

/* ---------- motion preference ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  /* The loop is removed by script; the still remains. */
  .hero__video { display: none; }
}

@media (max-width: 620px) {
  section { padding: 72px 0; }
  .hero__inner { padding-bottom: 48px; }
  .scene { height: 190px; }
}
