@import url("/tokens.css");

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  min-width: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-focus);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}

a:hover {
  opacity: 0.72;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  overflow-wrap: anywhere;
  min-width: 0;
}

p {
  margin: 0 0 var(--space-md);
  max-width: var(--measure);
  color: var(--color-ink-2);
}

p:last-child {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

.wrap--wide {
  width: var(--page-wide);
}

/* ---------- Nav — floating frosted bar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1.75rem var(--space-md) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  max-width: var(--page-wide);
  margin-inline: auto;
  padding: 0.85rem 1.25rem 0.85rem 1.35rem;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.nav__logo img {
  height: 56px;
  width: auto;
  max-width: min(320px, 52vw);
  object-fit: contain;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  font-size: var(--text-sm);
  font-weight: 500;
}

.nav__links a {
  color: var(--color-ink-2);
  white-space: nowrap;
}

.nav__links a:hover {
  color: var(--color-ink);
  opacity: 1;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 1rem;
  background: var(--color-ink);
  color: #fff !important;
  border-radius: var(--radius-pill);
  font-weight: 500;
  opacity: 1 !important;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.nav__cta:hover {
  background: #000;
  opacity: 1 !important;
}

.nav__store {
  font-size: var(--text-xs);
  color: var(--color-ink-3) !important;
  font-weight: 400;
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-2xl) 0 var(--space-2xl);
  text-align: center;
}

.section--tight-top {
  padding-top: var(--space-2xl);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto var(--space-lg);
  padding: 0.4rem 0.9rem;
  background: var(--color-paper-2);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-2);
  letter-spacing: -0.01em;
}

.hero__eyebrow strong {
  color: var(--color-accent);
  font-weight: 600;
}

.hero__title {
  margin: 0 auto var(--space-lg);
  font-size: var(--text-display);
  font-weight: 600;
  max-width: 14ch;
  color: var(--color-ink);
}

.hero__lede {
  margin: 0 auto var(--space-2xl);
  font-size: clamp(1.125rem, 1.5vw + 0.75rem, 1.35rem);
  line-height: 1.45;
  color: var(--color-ink-3);
  max-width: 36rem;
  font-weight: 400;
}

.hero__form {
  max-width: 32rem;
  margin: 0 auto var(--space-md);
}

.hero__form-row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  padding: 0.4rem;
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-rule);
}

.hero__form-row input[type="email"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.85rem 1.15rem;
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--color-ink);
  border-radius: var(--radius-pill);
}

.hero__form-row input::placeholder {
  color: var(--color-ink-3);
}

.hero__form-row input:focus {
  outline: none;
}

.hero__form-row input:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

.hero__form-row input[aria-invalid="true"] {
  color: var(--color-error);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.75rem 1.35rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

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

.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  white-space: nowrap;
  flex-shrink: 0;
}

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

.btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--dark {
  background: var(--color-ink);
  color: #fff;
}

.btn--dark:hover {
  background: #000;
  color: #fff;
  opacity: 1;
}

.hero__meta {
  margin: 0 auto;
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  max-width: 28rem;
}

.form-status {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  min-height: 1.4em;
  text-align: center;
}

.form-status[data-state="error"] { color: var(--color-error); }
.form-status[data-state="success"] { color: var(--color-success); }
.form-status[data-state="loading"] { color: var(--color-ink-3); }

/* ---------- Hero visual band ---------- */
.hero-visual {
  padding: 0 0 var(--space-3xl);
}

.hero-visual__frame {
  width: var(--page-wide);
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 21 / 9;
  background: var(--color-paper-3);
}

.hero-visual__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-3xl);
}

.section--soft {
  background: var(--color-paper-2);
}

.section__head {
  text-align: center;
  margin: 0 auto var(--space-2xl);
  max-width: 36rem;
}

.section__head h2 {
  margin: 0 0 var(--space-md);
  font-size: var(--text-display-s);
  max-width: none;
}

.section__head p {
  margin: 0 auto;
  font-size: var(--text-md);
  color: var(--color-ink-3);
  max-width: 32rem;
}

/* Why — soft cards, not grid boxes */
.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.why__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.why__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.why__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-lg);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 1.25rem;
  font-weight: 600;
}

.why__card h3 {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.why__card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  line-height: 1.5;
  max-width: none;
}

/* Audience chips */
.audience {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 48rem;
  margin-inline: auto;
}

.audience span {
  display: inline-flex;
  padding: 0.65rem 1.15rem;
  background: #fff;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-2);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-rule);
}

/* Deliverables — soft list cards */
.deliver {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.deliver__item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-lg);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.deliver__item strong {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-ink-2);
}

.deliver__item span {
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  line-height: 1.5;
}

/* Image mosaic */
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-md);
}

.mosaic__cell {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-paper-3);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.mosaic__cell--tall {
  grid-row: span 2;
}

.mosaic__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  transition: transform 0.6s var(--ease-out);
}

.mosaic__cell:hover img {
  transform: scale(1.03);
}

.mosaic__cell--tall img {
  min-height: 420px;
}

/* Story split */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-2xl);
  align-items: center;
}

.story__media {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--color-paper-3);
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__copy h2 {
  margin: 0 0 var(--space-md);
  font-size: var(--text-display-s);
  max-width: 14ch;
}

.story__copy p {
  color: var(--color-ink-3);
  font-size: var(--text-md);
  max-width: 34ch;
}

.story__copy p + p {
  margin-top: var(--space-md);
}

.story__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-focus);
  opacity: 1;
}

.story__link:hover {
  opacity: 0.72;
}

/* Gallery strip */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-paper-3);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.gallery figure:hover img {
  transform: scale(1.04);
}

/* FAQ */
.faq {
  max-width: 40rem;
  margin-inline: auto;
}

.faq details {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-ink-3);
  border-bottom: 2px solid var(--color-ink-3);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out);
  margin-top: -4px;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

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

.faq details p {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  font-size: var(--text-sm);
  color: var(--color-ink-3);
  max-width: none;
  line-height: 1.55;
}

/* CTA band */
.cta {
  padding: var(--space-4xl) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(225, 29, 46, 0.06), transparent 60%),
    var(--color-paper);
}

.cta h2 {
  margin: 0 auto var(--space-md);
  font-size: var(--text-display-s);
  max-width: 16ch;
}

.cta > .wrap > p {
  margin: 0 auto var(--space-2xl);
  color: var(--color-ink-3);
  font-size: var(--text-md);
  max-width: 28rem;
}

.cta .hero__form {
  margin-bottom: var(--space-sm);
}

/* Footer */
.site-footer {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--color-paper-2);
  border-top: 1px solid var(--color-rule);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-footer__brand img {
  height: 24px;
  width: auto;
  opacity: 0.85;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
}

.site-footer__links a {
  color: var(--color-ink-3);
}

.site-footer__copy {
  margin-top: var(--space-lg);
  font-size: var(--text-xs);
  color: var(--color-ink-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 60rem) {
  .why,
  .deliver,
  .story,
  .mosaic,
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .mosaic__cell--tall {
    grid-row: auto;
  }

  .mosaic__cell--tall img {
    min-height: 240px;
  }

  .hero-visual__frame {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
  }

  .nav__store {
    display: none;
  }
}

@media (max-width: 40rem) {
  .nav {
    padding: 1.25rem 0.85rem 0;
  }

  .nav__inner {
    padding: 0.75rem 0.9rem;
    gap: 0.65rem;
  }

  .nav__logo img {
    height: 44px;
    max-width: min(220px, 58vw);
  }

  .nav__links {
    gap: 0.35rem;
  }

  .nav__links a:not(.nav__cta) {
    display: none;
  }

  .nav__cta {
    min-height: 40px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
  }

  .hero {
    padding: var(--space-xl) 0 var(--space-xl);
  }

  .hero__title {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .hero__lede {
    font-size: 1.05rem;
    padding-inline: 0.25rem;
  }

  .hero__form-row {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 0.65rem;
  }

  .hero__form-row input[type="email"] {
    padding: 0.75rem 0.85rem;
    font-size: 16px; /* avoid iOS zoom */
  }

  .btn--primary {
    width: 100%;
  }

  .section {
    padding-block: var(--space-2xl);
  }

  .section--tight-top {
    padding-top: var(--space-xl);
  }

  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .story__copy h2 {
    max-width: none;
  }

  .deliver__item {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .mosaic__cell:hover img,
  .gallery figure:hover img {
    transform: none;
  }
}
