/* Hallmark · macrostructure: Split Studio · tone: warm, plain-spoken, after-dark · anchor hue: coral 10 · pre-emit critique: P4 H4 E4 S5 R4 V4 */

*,
*::before,
*::after { box-sizing: border-box; }

html,
body { overflow-x: clip; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-ink-2);
  background-color: var(--color-paper);
  background-image:
    radial-gradient(60rem 40rem at 90% -5%, var(--color-bloom-warm), transparent 70%),
    radial-gradient(50rem 40rem at -10% 45%, var(--color-bloom-cool), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0; }
.sprite { position: absolute; }

h1,
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}

h2 { font-size: var(--text-2xl); line-height: 1.1; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* ── Nav · N5 floating pill ─────────────────────────── */
.nav {
  position: sticky;
  top: var(--space-sm);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: min(var(--page-max), calc(100% - 2 * var(--space-md)));
  margin: var(--space-sm) auto 0;
  padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md);
  background: var(--color-nav);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

.nav__brand img { width: 2.25rem; height: auto; }

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--space-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.nav__link:hover { background: var(--color-paper-3); border-color: var(--color-ink-3); }
.nav__link:active { transform: translateY(1px); }

/* ── Layout shell ───────────────────────────────────── */
main,
.footer {
  width: min(var(--page-max), calc(100% - 2 * var(--space-md)));
  margin-inline: auto;
}

/* ── Hero (split) ───────────────────────────────────── */
.hero {
  display: grid;
  gap: var(--space-2xl);
  padding-block: var(--space-2xl);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-self: center;
}

.hero__title { font-size: var(--text-display); }

.hero__lede {
  max-width: var(--measure);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.hero__photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-rule);
  aspect-ratio: 4 / 5;
  max-height: 34rem;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 72%;
}

/* ── Store badges · coming soon (not links yet) ─────── */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.stores--center { justify-content: center; }

.store {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-sm);
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-sm);
  cursor: default;
}

.store__icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--color-ink);
}

.store__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store__soon {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.01em;
}

.store__name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ── Split rows ─────────────────────────────────────── */
.split {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  padding-block: var(--space-2xl);
}

.split__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: var(--measure);
}

.split__text h2 { margin-bottom: var(--space-xs); }

.shot {
  justify-self: center;
  width: min(100%, 20rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-rule);
  background: var(--color-paper);
}

.note {
  padding-bottom: var(--space-2xl);
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  text-align: center;
}

/* ── Belief ─────────────────────────────────────────── */
.belief {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  background: var(--color-paper-2);
  border-radius: var(--radius-lg);
}

.belief__title { font-size: var(--text-display-s); }

.belief p {
  max-width: var(--measure);
  font-size: var(--text-lg);
}

/* ── Download ───────────────────────────────────────── */
.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-4xl) var(--space-3xl);
  text-align: center;
}

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

/* ── Footer · Ft5 statement ─────────────────────────── */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--color-rule);
}

.footer__statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-ink);
}

.footer__meta {
  font-size: var(--text-sm);
  color: var(--color-ink-3);
}

/* ── Reveal (JS adds .js-reveal; content is visible without it) ── */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}

.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.js-reveal figure.reveal { transition-delay: 120ms; }

/* ── Wider screens: true diptychs ───────────────────── */
@media (min-width: 52rem) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--space-3xl);
    padding-block: var(--space-3xl) var(--space-4xl);
  }

  .hero__photo { aspect-ratio: 3 / 4; max-height: none; }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-3xl);
    padding-block: var(--space-3xl);
  }

  .split--flip .split__text { order: 2; }
  .split--flip .shot { order: 1; }

  .shot { width: min(100%, 21rem); }
}

/* ── Narrowest phones: keep the nav on one line ───── */
@media (max-width: 23.5rem) {
  .nav { padding-left: var(--space-sm); }
  .nav__brand { font-size: var(--text-base); }
  .nav__brand img { width: 1.875rem; }
  .nav__link { padding: 0 var(--space-sm); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 1ms !important; }
}
