/*
  Layout: page structure — how the big regions (header, hero, sections,
  footer) are positioned and sized. Visual styling of the small reusable
  pieces inside them (buttons, cards, nav links) lives in components.css.
*/

/* ---------- Header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  /* explicit width (not just default block auto-fill) so the nested
     nav.links flex container has a definite size to shrink/wrap against
     on narrow screens — see README's "known browser quirk" note */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 12px 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.03;
  margin-top: 14px;
}

.hero .tagline {
  font-weight: 500;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-soft);
  margin-top: 20px;
  max-width: 46ch;
}

.hero .body-copy {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 16px;
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.aperture-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.aperture-frame {
  position: relative;
  width: min(74vw, 380px);
  aspect-ratio: 1;
}

.eye-hero {
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  animation: eyeOpen 900ms cubic-bezier(0.16, 0.84, 0.44, 1) both;
}
@keyframes eyeOpen {
  0% {
    transform: scaleY(0.05);
    opacity: 0.7;
  }
  55% {
    transform: scaleY(1.06);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .eye-hero {
    animation: none;
  }
}

/* ---------- Readout strip ---------- */
.readout {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.readout .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 16px clamp(20px, 4vw, 56px);
}

/* ---------- Generic section spacing ---------- */
section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h1,
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 12px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}

.foot-row {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (min-width: 720px) {
  .foot-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
