:root {
  --paper: #f8f7f2;
  --ink: #1c1c1a;
  --mute: #5a5a56;
  --line: #d4d1c8;
  --slot: #efeee8;
  --house-red: #c1272d;
  --capsule-blue: #8ca2b7;
  --nav-h: 80px;
  --sky-pos: 50%;
  --page: 1120px;
  --air: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 2.5rem;
  background: var(--paper);
}
.nav-rule {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  height: 1px;
  background: var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}
.logo-slot {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.wordmark {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 1.75rem;
  margin-left: auto;
}
.links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
}
.links a:hover { color: var(--house-red); }

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h) - 1px);
  width: 100%;
  background-image: url("sky.jpg");
  background-repeat: no-repeat;
  background-position: center var(--sky-pos);
  background-size: cover;
  display: grid;
  place-items: center;
}
.hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248,247,242,0.12) 0%, rgba(248,247,242,0) 24%, rgba(248,247,242,0.2) 100%);
  pointer-events: none;
}
.hero-stage {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

.capsule-link { text-decoration: none; color: inherit; }
.capsule-stage { filter: drop-shadow(0 24px 40px rgba(28, 28, 26, 0.18)); }
.capsule {
  position: relative;
  display: block;
  width: min(68vw, 400px);
}
.capsule-svg { display: block; width: 100%; height: auto; }
.imprint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(0.68rem, 2.2vw, 0.88rem);
  letter-spacing: 0.08em;
  font-weight: 500;
  pointer-events: none;
  text-transform: none;
}
.imprint-drug {
  left: 10%;
  width: 34%;
  text-align: center;
  color: #2a2a28;
}
.imprint-code {
  right: 10%;
  width: 34%;
  text-align: center;
  color: rgba(28, 28, 26, 0.55);
}

.headline {
  max-width: 18em;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--ink);
}
.headline em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.block {
  scroll-margin-top: calc(var(--nav-h) + 8px);
  min-height: calc(100vh - var(--nav-h));
  padding: var(--air) 2.5rem;
  max-width: var(--page);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.block h2 {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mute);
}

.bento {
  flex: 1;
  display: grid;
  gap: 16px;
  min-height: 480px;
}
.slot {
  background: var(--slot);
  border: 1px solid var(--line);
  min-height: 160px;
}
.slot span { display: none; }
.slot.text {
  background: var(--paper);
  padding: 2rem 1.75rem;
  display: flex;
  align-items: flex-start;
}
.slot.text p {
  color: var(--mute);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 36em;
}

.bento-science {
  grid-template-columns: 1.15fr 1fr 0.85fr;
  grid-template-rows: 1.1fr 0.9fr;
}
.bento-science .photo:nth-child(1) { grid-column: 1; grid-row: 1; }
.bento-science .photo:nth-child(2) { grid-column: 2; grid-row: 1; }
.bento-science .tall { grid-column: 3; grid-row: 1 / 3; }
.bento-science .text { grid-column: 1 / 3; grid-row: 2; }

.bento-foundations {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 0.75fr 1.25fr;
}
.bento-foundations .text { grid-column: 1; grid-row: 1 / 3; }
.bento-foundations .wide { grid-column: 2 / 4; grid-row: 1; }

.bento-partners {
  grid-template-columns: 1fr 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.bento-partners .photo:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.bento-partners .text { grid-column: 2; grid-row: 1; }
.bento-partners .photo:nth-child(3) { grid-column: 2; grid-row: 2; }
.bento-partners .photo:nth-child(4) { grid-column: 3; grid-row: 1 / 3; }

.bento-quotes {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 48px 64px;
}
.quote-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
}
.quote {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  max-width: 240px;
}
.photo-sq {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--slot);
  border: 1px solid var(--line);
  justify-self: center;
  max-width: 240px;
}
.who {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  max-width: 240px;
}
.who strong { color: var(--ink); font-weight: 500; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 2.5rem 2rem;
  background: var(--paper);
}
.social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.35rem;
  margin-bottom: 2rem;
}
.social a {
  color: var(--ink);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}
.social a:hover { color: var(--house-red); }
.social svg { width: 20px; height: 20px; display: block; }
.legal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--mute);
}
.legal a {
  color: var(--ink);
  text-decoration: none;
}
.legal a:hover { color: var(--house-red); }

@media (max-width: 800px) {
  .nav, .block { padding-left: 1.25rem; padding-right: 1.25rem; }
  --air: 56px;
  .bento-science,
  .bento-foundations,
  .bento-partners {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    min-height: 0;
  }
  .bento-science .tall,
  .bento-science .text,
  .bento-foundations .text,
  .bento-foundations .wide,
  .bento-partners .photo:nth-child(1),
  .bento-partners .text,
  .bento-partners .photo:nth-child(3),
  .bento-partners .photo:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }
  .bento-quotes { gap: 32px 24px; }
}
@media (max-width: 560px) {
  .links { display: none; }
  .bento-quotes { grid-template-columns: 1fr; }
  .capsule { width: min(86vw, 400px); }
  .legal { flex-direction: column; align-items: center; text-align: center; }
  .site-footer { padding: 2rem 1.25rem; }
}
