:root {
  --paper: #edefee;
  --white: #ffffff;
  --ink: #000000;
  --steel: #666a6f;
  --alu: #c5c8cb;
  --rule: rgba(0, 0, 0, 0.14);
  --dot: rgba(0, 0, 0, 0.22);
  --error: #b42318;

  /* Each product's backdrop colour, sampled from its packshot */
  --tone-creatine: #ccd5dc;
  --tone-whey: #e9d9c9;
  --error-on-dark: #ff8a7a;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --label: "Instrument Sans", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

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

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The label's dot grid, 40px pitch. Used as the field products sit on. */
.field {
  background-color: var(--white);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.4px);
  background-size: 40px 40px;
  background-position: 20px 20px;
}

/* Type */
.wordmark {
  display: inline-block;
  font: 400 20px/1 var(--serif);
  padding: 6px 12px 7px;
  border: 1.25px solid currentColor;
  border-radius: 11px;
  text-decoration: none;
}

/* The jar's spaced capitals. Reserved for product names, as on the packaging. */
.product-name {
  font-family: var(--label);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.display {
  font: 400 clamp(42px, 5.4vw, 82px)/1.02 var(--serif);
  letter-spacing: -0.02em;
}

.display em, .h2 em { font-style: italic; }

.h2 {
  font: 400 clamp(31px, 3.9vw, 54px)/1.08 var(--serif);
  letter-spacing: -0.015em;
}

.h3 {
  font: 400 clamp(22px, 1.9vw, 26px)/1.2 var(--serif);
}

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--steel);
  max-width: 34em;
}

.muted { color: var(--steel); }

/* Buttons and form */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.button:hover { opacity: 0.82; }
.button:disabled { opacity: 0.45; cursor: default; }

.text-link {
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.signup { max-width: 460px; }

.signup-row {
  display: flex;
  padding: 4px;
  border: 1.25px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}

.signup-row:focus-within { box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08); }

.signup input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  padding: 0 18px;
  font: inherit; color: var(--ink);
}

.signup .button { height: 42px; }
.signup .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.signup-status {
  min-height: 1.5em;
  margin-top: 12px;
  padding-left: 22px;
  font-size: 13px;
  color: var(--steel);
}

.on-dark .signup-row { border-color: var(--white); }
.on-dark .signup-status { color: var(--alu); }

/* Signup states: set by js/site.js on the form as data-state="error" | "success" */
.signup-row { transition: border-color 0.15s, box-shadow 0.15s; }
.signup[data-state="error"] .signup-row { border-color: var(--error); box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12); }
.signup[data-state="error"] .signup-status { color: var(--error); }
.signup-status::before { display: none; }
.signup[data-state] .signup-status::before {
  content: "";
  display: inline-block;
  width: 15px; height: 15px;
  margin: 0 7px 0 -22px;
  vertical-align: -3px;
  border-radius: 50%;
  background: currentColor center / 15px no-repeat;
}
.signup[data-state="error"] .signup-status::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.2v4.6' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.4' r='1.05' fill='%23fff'/%3E%3C/svg%3E");
}
.signup[data-state="success"] .signup-status { color: var(--ink); }
.signup[data-state="success"] .signup-status::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.9' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.signup.shake .signup-row { animation: shake 0.36s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake {
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.on-dark .signup[data-state="error"] .signup-row { border-color: var(--error-on-dark); box-shadow: 0 0 0 4px rgba(255, 138, 122, 0.18); }
.on-dark .signup[data-state="error"] .signup-status { color: var(--error-on-dark); }
.on-dark .signup[data-state="error"] .signup-status::before { background-color: var(--error-on-dark); }
.on-dark .signup[data-state="success"] .signup-status { color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.scrolled { border-bottom-color: var(--rule); }

.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}

.site-header .wordmark { justify-self: start; }

.site-nav { display: flex; gap: 36px; }

.site-nav a {
  font-size: 14px;
  text-decoration: none;
  color: var(--steel);
  transition: color 0.15s;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

.site-header .button { justify-self: end; height: 38px; padding: 0 18px; font-size: 13px; }

/* Home: hero */
.hero .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(64px, 8vw, 120px);
}

.hero-copy {
  grid-column: 1 / span 7;
  align-self: end;
  padding-bottom: 8px;
  position: relative;
  z-index: 1;
}

.hero-copy .display { margin-bottom: 36px; }
.hero-copy .lede { margin-bottom: 36px; }

.hero-media {
  grid-column: 8 / span 5;
}

.stage {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
}

.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.stage-caption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 16px;
  font-size: 14px;
}

.stage-caption a { white-space: nowrap; text-decoration: none; border-bottom: 1px solid currentColor; }


/* Sections */
.section { padding: clamp(88px, 11vw, 168px) 0; }

.section + .section { border-top: 1px solid var(--rule); }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.section-head .h2 { grid-column: 1 / span 6; }
.section-head .lede { grid-column: 8 / span 5; align-self: end; }

/* Standards: a checklist every product has to pass */
.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  border-top: 1px solid var(--ink);
}
.checklist li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 20px;
  padding: 28px clamp(0px, 4vw, 56px) 32px 0;
  border-bottom: 1px solid var(--rule);
}
.check {
  grid-row: span 2;
  width: 30px; height: 30px;
  border: 1.25px solid var(--ink);
  border-radius: 8px;
}
.check svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.check path { stroke-dasharray: 18; stroke-dashoffset: 0; }
[data-reveal]:not(.in) .check path { stroke-dashoffset: 18; }
.in .check path { transition: stroke-dashoffset 0.4s cubic-bezier(.6, 0, .2, 1); transition-delay: calc(0.15s + var(--i, 0) * 110ms); }
.check-title { font: 400 clamp(22px, 1.9vw, 26px)/1.2 var(--serif); margin: 1px 0 8px; }
.checklist p { color: var(--steel); font-size: 15px; max-width: 30em; }


/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.product-card { grid-column: span 6; text-decoration: none; }
.product-card.upcoming { grid-column: span 6; }
.product-card .stage { aspect-ratio: auto; height: clamp(420px, 44vw, 640px); border-radius: 4px; overflow: hidden; }
.product-card .stage svg { position: absolute; inset: 0; margin: auto; height: 56%; width: auto; }
.product-meta { padding-top: 20px; }
.product-meta .h3 { margin-bottom: 6px; }
.product-meta p { color: var(--steel); font-size: 15px; }
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px 4px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 400 12px/1.2 var(--sans);
  color: var(--steel);
  vertical-align: middle;
}
.footer-col .tag { margin-left: 6px; padding: 1px 8px 2px; font-size: 11px; }

/* Dark band: packaging */
.on-dark {
  background: var(--ink);
  color: var(--white);
}

.on-dark .lede, .on-dark .muted { color: var(--alu); }

.vessel .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
}

.vessel-copy { grid-column: 1 / span 5; }
.vessel-copy .h2 { margin-bottom: 28px; }
.vessel-copy .lede { margin-bottom: 48px; }

.vessel-media { grid-column: 7 / span 6; }
.vessel-media .stage { aspect-ratio: 1; background: transparent; }

.specs { border-top: 1px solid rgba(255, 255, 255, 0.3); }

.specs div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15px;
}

.specs dt { color: var(--alu); }

/* About */
.about .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.about .statement {
  grid-column: 1 / span 8;
  font: 400 clamp(26px, 3vw, 42px)/1.2 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.about .body {
  grid-column: 7 / span 5;
  margin-top: clamp(40px, 5vw, 72px);
  color: var(--steel);
  font-size: 17px;
}

.about .body p + p { margin-top: 1em; }

/* Waitlist band */
.join .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}

.join .h2 { grid-column: 1 / span 6; }
.join .signup-wrap { grid-column: 8 / span 5; }
.join .signup-wrap p { margin-bottom: 20px; color: var(--steel); }

/* Footer */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 24px;
}

.footer-brand { grid-column: 1 / span 5; }
.footer-brand p { margin-top: 16px; color: var(--steel); max-width: 22em; }

.footer-col { grid-column: span 2; }
.footer-col h2 { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 6px; }
.footer-col a { color: var(--steel); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }

.footer-legal {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; gap: 24px;
  padding-top: 32px;
  margin-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--steel);
}

.footer-legal p:first-child { max-width: 640px; }

/* Product page */
.pdp .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-top: 24px;
  padding-bottom: clamp(88px, 10vw, 140px);
}

.pdp-media { grid-column: 1 / span 7; }

.pdp-media-inner { position: sticky; top: 96px; }

.gallery-main { aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.thumb {
  padding: 0; border: 0; background: none; cursor: pointer;
  aspect-ratio: 1; border-radius: 3px; overflow: hidden;
  opacity: 0.55; transition: opacity 0.2s;
  outline: 1px solid transparent; outline-offset: 2px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.85; }
.thumb[aria-pressed="true"] { opacity: 1; outline-color: var(--ink); }

.pdp-info { grid-column: 9 / span 4; padding-top: clamp(8px, 3vw, 48px); }

.pdp-info h1 { font: 400 clamp(36px, 3.7vw, 52px)/1.06 var(--serif); letter-spacing: -0.015em; margin-bottom: 24px; }
.pdp-info .lede { margin-bottom: 32px; font-size: 17px; }

.facts { margin: 40px 0 0; border-top: 1px solid var(--rule); }

.facts div {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.facts dt { color: var(--steel); }

.details { margin-top: 32px; }

.details details { border-bottom: 1px solid var(--rule); }

.details summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.details summary::after {
  content: "";
  width: 11px; height: 11px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.25px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.25px 100% no-repeat;
  transition: transform 0.2s;
}

.details details[open] summary::after { transform: rotate(45deg); }

.details details p {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--steel);
  max-width: 34em;
}

/* Product page: the label's three-part argument */
.sequence { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.sequence li { border-top: 1px solid var(--ink); padding-top: 20px; }

.sequence .word {
  display: block;
  font: italic 400 20px/1.1 var(--serif);
  color: var(--steel);
  margin-bottom: 40px;
}

.sequence .h3 { margin-bottom: 12px; }
.sequence p { color: var(--steel); max-width: 26em; }

.label-quote {
  max-width: 1040px;
  font: 400 clamp(25px, 2.8vw, 40px)/1.22 var(--serif);
  letter-spacing: -0.01em;
  margin-bottom: clamp(64px, 8vw, 112px);
}

.faq { border-top: 1px solid var(--ink); max-width: 880px; }
.faq summary { font: 400 20px/1.3 var(--serif); padding: 22px 0; }
.faq details p { font-size: 16px; }

/* Responsive */
@media (max-width: 1080px) {
  .site-nav { gap: 24px; }
  .pdp-media { grid-column: 1 / span 6; }
  .pdp-info { grid-column: 7 / span 6; }
}

@media (max-width: 820px) {
  .site-header .wrap { grid-template-columns: auto 1fr; height: 64px; }
  .site-nav { display: none; }

  .checklist { grid-template-columns: minmax(0, 1fr); }
  .checklist li { padding-right: 0; }
  .hero .wrap, .section-head, .products, .vessel .wrap, .about .wrap, .join .wrap, .pdp .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero .wrap > *, .section-head > *, .vessel .wrap > *, .about .wrap > *,
  .join .wrap > *, .pdp .wrap > *, .products > *,
  .section-head .h2, .section-head .lede,
  .about .statement, .about .body, .join .h2, .join .signup-wrap,
  .pdp-media, .pdp-info { grid-column: 1; }

  .hero-media { order: -1; margin-bottom: 40px; }
  .hero-copy .display { margin-bottom: 24px; }

  .section-head { gap: 20px; }

  .product-card, .product-card.upcoming { grid-column: 1; }
  .product-card .stage { height: auto; aspect-ratio: 4 / 5; }
  .products { gap: 48px; }

  .vessel-media { order: -1; }
  .about .body { margin-top: 32px; }
  .join .wrap { gap: 32px; }

  .footer-brand { grid-column: 1 / -1; }
  .footer-col { grid-column: span 6; }
  .footer-legal { flex-direction: column; }

  .pdp-media-inner { position: static; }
  .pdp-info { padding-top: 16px; }
  .sequence { grid-template-columns: 1fr; gap: 40px; }
  .sequence .word { margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Richer home page ---------- */

/* Film grain over everything, very light. */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header over the dark hero */
.site-header.over-dark:not(.scrolled-past) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--white);
  border-bottom-color: transparent;
}
.site-header.over-dark:not(.scrolled-past) .site-nav a { color: rgba(255, 255, 255, 0.66); }
.site-header.over-dark:not(.scrolled-past) .site-nav a:hover { color: var(--white); }
.site-header.over-dark:not(.scrolled-past) .button { background: var(--white); color: var(--ink); }
.home .site-header { position: fixed; left: 0; right: 0; }

/* Dark hero */
.hero-dark {
  position: relative;
  min-height: max(100svh, 680px);
  overflow: hidden;
  background: #000;
}

.hero-dark-inner {
  position: relative;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  padding-bottom: 40px;
  pointer-events: none;
}
.hero-dark-inner > * { pointer-events: auto; }

.hero-dark .hero-copy { align-self: flex-start; width: 100%; max-width: 720px; padding-bottom: clamp(48px, 9vh, 112px); }
.hero-dark .display { margin-bottom: 28px; font-size: clamp(42px, 5.1vw, 80px); }
.hero-dark .lede { margin-bottom: 36px; max-width: 30em; }
.hero-dark .signup-row { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.5); }
.hero-dark .signup input { color: var(--white); }
.hero-dark .signup input::placeholder { color: rgba(255, 255, 255, 0.5); }
.hero-dark .signup .button { background: var(--white); color: var(--ink); }

.intro .line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.intro .line > * { display: inline-block; animation: rise 1.1s cubic-bezier(.2, .75, .15, 1) both; }
.intro .line:nth-child(2) > * { animation-delay: 0.12s; }
.intro-fade { animation: fade 1s 0.55s ease both; }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Ticker */
.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker span {
  font: italic 400 clamp(21px, 2.1vw, 30px)/1.1 var(--serif);
  white-space: nowrap;
  display: inline-flex; align-items: center;
}
.ticker span::after {
  content: "";
  width: 5px; height: 5px;
  margin: 0 clamp(28px, 3vw, 48px);
  border-radius: 50%;
  background: var(--alu);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* What we left out */
.left-out { background: var(--paper); }

.strike-list {
  font: 400 clamp(29px, 4.2vw, 66px)/1.16 var(--serif);
  letter-spacing: -0.015em;
  max-width: 15em;
}
.strike-list s {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.3);
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 58% / 0% 0.055em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.55s cubic-bezier(.6, 0, .2, 1), color 0.6s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.in .strike-list s { color: rgba(0, 0, 0, 0.2); background-size: 100% 0.055em; }
.strike-list strong {
  display: block;
  margin-top: 0.25em;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
}
.left-out-note { margin-top: 48px; max-width: 30em; font-size: 17px; color: var(--steel); }

/* Photos */
picture, picture img { display: block; width: 100%; }
picture img { height: 100%; object-fit: cover; }
.hero-photo, .photo-band picture, .stage picture { height: 100%; }

.hero-photo { position: absolute; inset: 0; }
.hero-photo img { object-position: 72% 50%; }
@media (min-aspect-ratio: 16/9) {
  .hero-photo img { object-fit: contain; object-position: right center; }
}

.photo-band { position: relative; margin: 0; background: var(--ink); }
.photo-band picture { height: clamp(420px, 56vw, 860px); }

.glass-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.glass-grid figure { margin: 0; }
.glass-grid picture { border-radius: 4px; overflow: hidden; }
.glass-grid figcaption { padding-top: 14px; font-size: 15px; color: var(--steel); max-width: 30em; }
.glass-grid figcaption strong { font-weight: 500; color: var(--ink); }
.g-lid { grid-column: 1 / 8; grid-row: 1; }
.g-lid picture { aspect-ratio: 1; }
.g-back { grid-column: 8 / 13; grid-row: 1; }
.g-back { display: flex; flex-direction: column; }
.g-back picture { flex: 1; min-height: 0; }
.g-powder picture { aspect-ratio: 4 / 5; }
.g-powder { grid-column: 1 / 6; grid-row: 2; }
.g-specs {
  grid-column: 8 / 13;
  grid-row: 2;
  align-self: end;
  border-top: 1px solid var(--ink);
}
.g-specs div {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.g-specs dt { color: var(--steel); }

.stage.photo { background: #edefee; }
.stage.photo.tone-creatine { background: var(--tone-creatine); }
.stage.photo.tone-whey { background: var(--tone-whey); }
.stage.photo picture img { transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
a.product-card:hover .stage.photo picture img { transform: scale(1.03); }

.about.on-dark .wrap { grid-template-rows: auto 1fr; row-gap: clamp(40px, 5vw, 72px); }
.about.on-dark .statement { grid-column: 1 / span 7; grid-row: 1; }
.about-photo { grid-column: 8 / span 5; grid-row: 1 / span 2; margin: 0; }
.about-photo picture { aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; }
.about.on-dark .body { grid-column: 1 / span 6; grid-row: 2; align-self: end; margin-top: 0; max-width: 34em; }

/* About on black */
.about.on-dark .body { color: var(--alu); }

/* Footer: the wordmark, at full width */
.footer-mark {
  grid-column: 1 / -1;
  margin-top: clamp(40px, 6vw, 88px);
}
.footer-mark span {
  display: block;
  font: 400 clamp(56px, 14.6vw, 222px)/1 var(--serif);
  letter-spacing: -0.02em;
  text-align: center;
  padding: 0.06em 0 0.14em;
  border: clamp(2px, 0.3vw, 4px) solid var(--ink);
  border-radius: clamp(20px, 4vw, 64px);
}
.footer-brand p { margin-top: 0; font: italic 400 24px/1.25 var(--serif); color: var(--ink); }
.footer-brand .wordmark + p { margin-top: 16px; }

@media (max-width: 820px) {
  .hero-photo { bottom: auto; height: 62vh; }
  .hero-photo img { object-position: 76% 50%; }
  .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, #000); }
  .hero-dark { min-height: 0; }
  .hero-dark-inner { padding-top: 62vh; }
  .hero-dark .hero-copy { padding-bottom: 8px; }

  .glass-grid { grid-template-columns: minmax(0, 1fr); }
  .glass-grid > * { grid-column: 1 !important; grid-row: auto !important; }
  .g-back picture { flex: none; aspect-ratio: 4 / 5; }
  .about.on-dark .wrap { grid-template-rows: none; row-gap: 32px; }
  .about.on-dark .statement, .about-photo, .about.on-dark .body { grid-column: 1; grid-row: auto; }
  .photo-band picture { height: 64vw; min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .intro .line > *, .intro-fade { animation: none; }
  .in .check path { transition: none; }
  .signup.shake .signup-row { animation: none; }
}

/* Header: Products dropdown (hover, keyboard focus, Escape to close) */
.nav-menu { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-chevron { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  padding-top: 18px; /* hover bridge between the link and the panel */
  transform: translate(-50%, 6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.16s, transform 0.16s, visibility 0s 0.16s;
}
.nav-menu:is(:hover, :focus-within):not(.is-closed) .nav-dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition-delay: 0s;
}
.nav-menu:is(:hover, :focus-within):not(.is-closed) .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-inner {
  width: 300px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
/* Doubled class outranks the white over-dark-hero link color. */
.site-header .site-nav .nav-menu .nav-item.nav-item {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 8px 10px 8px 8px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.site-header .site-nav .nav-menu a.nav-item:hover,
.site-header .site-nav .nav-menu a.nav-item:focus-visible { background: var(--paper); color: var(--ink); outline: none; }
.nav-item img { width: 48px; height: 60px; border-radius: 6px; background: var(--paper); object-fit: cover; }
.nav-item-name { display: block; font: 400 18px/1.2 var(--serif); }
.nav-item-note { display: block; margin-top: 3px; font-size: 12px; color: var(--steel); }
.nav-item .tag { margin: 5px 0 0; }
.nav-item.is-soon { cursor: default; }
.nav-item.is-soon img, .nav-item.is-soon .nav-item-name { opacity: 0.55; }

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown, .nav-chevron { transition: none; }
}
