/* Components. Every value comes from tokens.css. */

/* ---- shell -------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.shell--narrow { max-width: var(--shell-narrow); }

.section { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.section--alt { background: var(--surface-alt); }

/* ---- navigation ---------------------------------------------------- */
/* One line at desktop, 68px tall, collapses to a disclosure below 720px. */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 68px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav__brand {
  font-weight: 660;
  font-size: var(--step-0);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav__links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 520;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--ink); }
.nav__toggle { display: none; }

@media (max-width: 720px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: none;
    border: 1px solid var(--control-border);
    border-radius: var(--radius-interactive);
    padding: var(--space-2) var(--space-4);
    color: var(--ink);
    font: inherit;
    font-size: var(--step--1);
    cursor: pointer;
  }
  .nav__links {
    position: absolute;
    inset-inline: 0;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-3) var(--space-5) var(--space-5);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav__links a {
    display: block;
    padding-block: var(--space-4);
    font-size: var(--step-0);
    border-bottom: 1px solid var(--line);
  }
}

/* ---- buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-interactive);
  border: 1px solid transparent;
  font: inherit;
  font-size: var(--step-0);
  font-weight: 580;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;      /* CTA labels never wrap */
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 90ms ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--control-border);
}
.btn--ghost:hover { background: var(--surface-alt); color: var(--ink); }

/* ---- hero ---------------------------------------------------------- */
/* Asymmetric split. Text left at 7 columns, asset right at 5. */
.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: var(--space-8);
  padding-block: var(--space-8) var(--space-9);
}
.hero__copy { display: grid; gap: var(--space-5); justify-items: start; }
.hero__copy p { font-size: var(--step-1); color: var(--ink-2); max-width: 32ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__media {
  border-radius: var(--radius-media);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  aspect-ratio: 4 / 5;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: var(--space-6); padding-block: var(--space-7); }
  .hero__media { aspect-ratio: 16 / 10; }
}

/* ---- editorial rows ------------------------------------------------ */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-8);
}
.row--reverse > :first-child { order: 2; }
.row__text { display: grid; gap: var(--space-4); }
.row__text p { color: var(--ink-2); }
.row img { border-radius: var(--radius-media); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }

@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: var(--space-5); }
  .row--reverse > :first-child { order: 0; }
}

/* ---- staggered grid ------------------------------------------------ */
/* Deliberately not three equal cards. Two columns, offset, unequal weight. */
.stagger {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-7) var(--space-6);
}
.stagger > :nth-child(even) { margin-block-start: var(--space-7); }
.stagger__item { display: grid; gap: var(--space-3); }
.stagger__item h3 { letter-spacing: var(--tracking-tight); }
.stagger__item p { color: var(--ink-2); font-size: var(--step--1); }
.stagger__rule { height: 1px; background: var(--line-strong); }

@media (max-width: 720px) {
  .stagger { grid-template-columns: 1fr; gap: var(--space-6); }
  .stagger > :nth-child(even) { margin-block-start: 0; }
}

/* ---- specification groups ------------------------------------------ */
/* Grouped into clusters with sparse dividers, not a hairline under every row. */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.specs__group { display: grid; gap: var(--space-4); align-content: start; }
.specs__group h3 { font-size: var(--step-0); letter-spacing: 0; }
.specs__list { list-style: none; display: grid; gap: var(--space-3); }
.specs__list div { font-size: var(--step--1); color: var(--ink-3); }
.specs__list strong { display: block; color: var(--ink); font-weight: 560; font-size: var(--step-0); }
@media (max-width: 860px) { .specs { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ---- form ----------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); max-width: 34rem; }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--step--1); font-weight: 580; color: var(--ink); }
.field input, .field textarea {
  font: inherit;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-container);
  background: var(--surface);
  color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field__hint { font-size: var(--step--1); color: var(--ink-2); }
.field__error { font-size: var(--step--1); color: var(--ink); font-weight: 560; }
.consent { display: flex; gap: var(--space-3); align-items: start; font-size: var(--step--1); color: var(--ink-2); }
.consent input { margin-top: 0.3em; }

/* ---- footer ---------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: var(--space-7); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-6); }
.footer__heading { color: var(--ink-3); font-size: var(--step--1); font-weight: 600; margin-bottom: var(--space-3); }
.footer ul { list-style: none; display: grid; gap: var(--space-2); }
.footer a { color: var(--ink-2); text-decoration: none; font-size: var(--step--1); }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__legal { margin-top: var(--space-6); color: var(--ink-3); font-size: var(--step--1); }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: var(--space-5); } }

/* ---- prose (legal pages) --------------------------------------------- */
.prose { display: grid; gap: var(--space-4); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-5); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: var(--space-5); display: grid; gap: var(--space-2); list-style: disc; }

/* ---- motion ---------------------------------------------------------- */
/* MOTION_INTENSITY 3. One entrance reveal, nothing looping. Each reveal
   communicates reading order; nothing animates for decoration. */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  @keyframes reveal-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}
