@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("/fonts/PlayfairDisplay-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  /* lib/design_system/hg_colors.dart, plus the page's own warm white. */
  --bg: #FBFAF9;
  --paper: #F3F1EE;
  --text: #1A1614;
  --body: #5C5754;
  --ink: #3D2F5C;
  --ink-deep: #241C38;
  --tint: #E7DFF2;
  --accent: #6F5A99;
  --accent-on-dark: #C7B8E5;
  --cream: #F5EFE6;
  --hairline: rgba(26, 22, 20, 0.08);
  --radius: 28px;
  --gutter: clamp(16px, 2vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

h1, h2 {
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 7vw, 92px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; }
h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; margin: 32px 0 8px; }
em { font-style: normal; color: var(--accent); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 30;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 99px;
}
.skip:focus { left: 16px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px clamp(16px, 3vw, 40px);
  background: rgba(251, 250, 249, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 21px/1 "Playfair", Georgia, serif;
  letter-spacing: -0.01em; color: var(--ink); text-decoration: none;
}
.wordmark img { border-radius: 7px; }
.wordmark-small { margin: 0 0 16px; font-size: 19px; }
.nav > nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--body); transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(26, 22, 20, .1); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before { display: block; width: 16px; height: 1.6px; background: var(--ink); transition: transform .25s ease; }
.menu summary span { transform: translateY(-3px); }
.menu summary span::before { content: ""; transform: translateY(6px); }
.menu[open] summary span { transform: rotate(45deg); }
.menu[open] summary span::before { transform: translateY(0) rotate(-90deg); }
.menu nav { position: absolute; right: 0; top: 48px; min-width: 200px; padding: 8px; background: #fff; border-radius: 18px; box-shadow: 0 14px 34px rgba(26, 22, 20, .14); display: grid; }
.menu nav a { padding: 11px 14px; border-radius: 12px; font-size: 16px; color: var(--text); }
.nav-pill {
  padding: 7px 14px; border-radius: 99px; background: #fff;
  box-shadow: 0 1px 3px rgba(26, 22, 20, .1);
  font-size: 14px; font-weight: 500; white-space: nowrap;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  margin: 0 var(--gutter);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tint);
  min-height: clamp(560px, 54vw, 84vh);
  display: flex;
  align-items: center;
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 100%; }
.hero-copy {
  position: relative;
  width: 50%;
  padding: clamp(40px, 5vw, 72px) 0 clamp(40px, 5vw, 72px) clamp(32px, 5vw, 80px);
}
.hero h1 { font-size: clamp(44px, 5.6vw, 88px); }
.eyebrow { margin: 0 0 14px; font-size: 15px; font-weight: 500; color: var(--ink); }
.lede {
  max-width: 520px; margin: 20px 0 26px;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: #453F3C;
}
.pill {
  display: inline-block; margin: 0; padding: 14px 26px; border-radius: 99px;
  font-weight: 500; font-size: 16px; line-height: 1.2;
}
.pill-solid { background: var(--ink); color: #fff; }
.pill-white { background: #fff; color: var(--ink); }

.strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px;
  padding: 22px 24px 6px; font-size: 14.5px; color: var(--body);
}
.strip li { display: inline-flex; align-items: center; gap: 9px; }
.strip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---- Split sections ---- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 88px) var(--gutter) 0;
  max-width: 1360px; margin: 0 auto;
}
.split-flip > :first-child { order: 2; }
.split-copy { padding: 0 clamp(8px, 2vw, 24px); }
.body { color: var(--body); margin: 16px 0 0; max-width: 52ch; }

.panel {
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 64px) 0 0;
  height: clamp(480px, 50vw, 680px);
  overflow: hidden;
  display: flex; justify-content: center;
}
.panel-lavender { background: linear-gradient(180deg, var(--tint), var(--cream)); }
.panel-cream { background: linear-gradient(180deg, var(--cream), var(--tint)); }
.phone { width: min(74%, 380px); height: auto; align-self: flex-start; filter: drop-shadow(0 18px 34px rgba(20, 14, 36, .2)); }

.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; }

/* Rows, in the references' list manner. */
.rows { margin-top: 28px; display: grid; gap: 10px; }
.row {
  display: grid; gap: 2px; padding: 20px 22px; border-radius: 20px;
  background: #fff; border: 1px solid var(--hairline);
}
.row-title { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.row-note { font-size: 15px; color: var(--body); }

/* Verdicts */
.verdicts { margin-top: 26px; display: grid; gap: 10px; }
.verdicts details { background: #fff; border: 1px solid var(--hairline); border-radius: 20px; }
.verdicts summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer; list-style: none;
}
.verdicts summary::-webkit-details-marker { display: none; }
.verdicts p { margin: -4px 20px 18px; color: var(--body); font-size: 15.5px; }
.chev {
  width: 9px; height: 9px; border-right: 1.6px solid var(--body); border-bottom: 1.6px solid var(--body);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s;
}
details[open] .chev { transform: rotate(225deg) translate(-2px, -2px); }
.badge { padding: 5px 14px; border-radius: 99px; font-size: 15px; font-weight: 500; }
.badge-low { background: #DDEBDF; color: #255130; }
.badge-caution { background: #F5E7D8; color: #6B4D0F; }
.badge-avoid { background: #F0DADA; color: #8A3A3A; }
.badge-unknown { background: #ECEAE8; color: #4A4542; }

/* ---- The plum panel ---- */
.feature {
  margin: clamp(48px, 7vw, 96px) var(--gutter) 0;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink), var(--ink-deep));
  color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
  padding: clamp(44px, 6vw, 88px) clamp(24px, 6vw, 96px) 0;
  overflow: hidden;
}
.feature em { color: var(--accent-on-dark); }
.feature p { color: rgba(255, 255, 255, .78); max-width: 46ch; margin: 18px 0 0; }
.feature-copy { padding-bottom: clamp(44px, 6vw, 88px); }
.feature-phone { display: flex; justify-content: center; height: clamp(460px, 44vw, 620px); }
.feature-phone .phone { filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .4)); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips li {
  padding: 10px 18px; border-radius: 99px; background: #fff;
  border: 1px solid var(--hairline); font-weight: 500; font-size: 16px;
}
.chips-dark li { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .14); font-size: 14.5px; padding: 7px 14px; }

.list { margin-top: 24px; }
.list li { padding: 15px 0; border-top: 1px solid var(--hairline); }
.list li:last-child { border-bottom: 1px solid var(--hairline); }

/* ---- Plans ---- */
.plans {
  max-width: 1000px; margin: 0 auto; text-align: center;
  padding: clamp(56px, 8vw, 112px) 24px 0;
}
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; text-align: left; }
.plan { background: var(--paper); border-radius: var(--radius); padding: 28px; }
.plan h3 { margin: 0 0 6px; }
.plan p { margin: 0; color: var(--body); }

/* ---- Close ---- */
.closing {
  position: relative; overflow: hidden;
  margin: clamp(48px, 7vw, 96px) var(--gutter) 0;
  border-radius: var(--radius);
  background: var(--cream);
  min-height: clamp(540px, 52vw, 780px);
  display: flex; justify-content: center; text-align: center;
}
.closing-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 69%; }
.closing-copy { position: relative; padding: clamp(40px, 5vw, 72px) 24px; }
.closing .pill { margin-top: 24px; }

.footer { max-width: 1360px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) calc(var(--gutter) + clamp(8px, 2vw, 24px)) 48px; font-size: 14.5px; color: var(--body); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid > div { display: grid; gap: 9px; align-content: start; }
.footer a { color: var(--body); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer-grid p { margin: 0; }
.footer-heading { font-weight: 500; color: var(--text); }
.footer .wordmark-small { margin: 0 0 4px; font-size: 21px; }
.footer-small { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--hairline); font-size: 13px; line-height: 1.55; }
.footer-small p { margin: 0 0 8px; max-width: 86ch; }
.footer-small a { text-decoration: underline; }

/* ---- Inner pages ---- */
.page-head { margin: 0 var(--gutter); padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 88px); border-radius: var(--radius); background: linear-gradient(160deg, var(--tint), var(--cream)); }
.page-head h1 { font-size: clamp(38px, 5.4vw, 72px); max-width: 16em; }
.page-head .lede { margin-bottom: 0; max-width: 640px; }
.crumbs { display: flex; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--body); }
.crumbs a { color: var(--ink); }
.step-label { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--accent); }
.on-dark { color: #fff; }
.page-empty { max-width: 760px; margin: 40px auto; padding: 0 24px; text-align: center; color: var(--body); }

.prose { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) 24px 0; font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.022em; margin: 44px 0 12px; }
.prose h3 { font-size: 20px; margin: 30px 0 8px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: #453F3C; }
.prose ul, .prose ol { list-style: revert; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--ink); }
.prose img { border-radius: 18px; margin: 20px 0; }
.prose blockquote { margin: 20px 0; padding: 4px 20px; border-left: 3px solid var(--tint); }
.table { overflow-x: auto; margin: 18px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.prose th { font-weight: 500; color: var(--text); }
.prose > table { display: block; overflow-x: auto; }
.notice { margin: 36px 0 0; padding: 18px 22px; border-radius: 18px; background: var(--paper); font-size: 15px; line-height: 1.55; color: var(--body); }
.prose-pill { margin-top: 28px; color: #fff; }
.prose .prose-pill { color: #fff; }
.prose .chips { list-style: none; padding: 0; margin-top: 12px; }
.prose .chips li { margin: 0; }
.chips-links li { padding: 0; }
.chips-links a { display: block; padding: 10px 18px; color: inherit; text-decoration: none; }
.chips-links a:hover { color: var(--accent); }
.prose .chips-links a { padding: 7px 14px; font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0 0 8px; }
.facts dt { font-size: 13.5px; color: var(--body); }
.facts dd { margin: 0; font-weight: 500; }
.sources li { margin: 10px 0; }
.sources span { color: var(--body); font-size: 15px; }

.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--hairline); border-radius: 20px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq details > div { padding: 0 22px 18px; }
.faq details p { margin: 0; }

.ing-search { max-width: 1000px; margin: 28px auto 0; padding: 0 24px; }
.ing-search label { display: block; margin-bottom: 8px; font-weight: 500; }
.ing-search input { width: 100%; padding: 14px 20px; border-radius: 99px; border: 1px solid var(--hairline); background: #fff; font: inherit; color: var(--text); }
.ing-list { max-width: 1000px; margin: 20px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ing-list li[hidden] { display: none; }
.ing-list a { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--hairline); text-decoration: none; font-size: 15px; line-height: 1.45; color: var(--body); transition: border-color .2s; }
.ing-list a:hover { border-color: var(--accent); }
.ing-list strong { color: var(--text); font-weight: 500; font-size: 17px; }
.ing-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ing-tags span { padding: 3px 10px; border-radius: 99px; background: var(--paper); font-size: 12.5px; color: var(--ink); }

.topic-grid { max-width: 1200px; margin: 28px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.topic-grid a { display: grid; align-content: start; gap: 10px; height: 100%; padding: 26px; border-radius: 24px; background: var(--paper); text-decoration: none; color: var(--body); font-size: 15.5px; transition: background .25s; }
.topic-grid a:hover { background: var(--tint); }
.topic-grid h2 { font-size: 25px; color: var(--text); }
.topic-grid p { margin: 0; }
.topic-grid span { color: var(--ink); font-weight: 500; font-size: 14px; }

.post-grid { max-width: 1200px; margin: 28px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card a { display: block; text-decoration: none; color: var(--body); }
.post-cover { border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper); margin-bottom: 14px; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-date { margin: 0 0 6px; font-size: 13.5px; }
.post-card h2 { font-size: 24px; line-height: 1.15; color: var(--text); }
.post-card p:last-child { margin: 8px 0 0; font-size: 15.5px; }
.post-meta { font-size: 14.5px; color: var(--body); }
.post-hero { width: 100%; }

/* ---- Moments ---- */
.moments { max-width: 1360px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) 0; }
.moments h2 { max-width: 16em; padding: 0 clamp(8px, 2vw, 24px); }
.moment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(24px, 3vw, 40px); }
.moment { margin: 0; }
.frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--paper); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.moment:last-child .frame img { object-position: 62% 50%; }
.moment figcaption { padding: 14px 8px 0; color: var(--body); font-size: 15.5px; }
.moment figcaption strong { display: block; color: var(--text); font-size: 19px; font-weight: 500; letter-spacing: -0.012em; }

/* ---- Verdict phones ---- */
.phone-stack { position: relative; aspect-ratio: 656 / 1383; }
.phone-stack img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.phone-stack img.is-on { opacity: 1; }
.panel-texture { position: relative; background: var(--tint); }
.panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel-texture .phone { position: relative; }

/* ---- Real products ---- */
.real { padding: clamp(56px, 8vw, 112px) 0 0; }
.real-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  max-width: 1360px; margin: 0 auto; padding: 0 calc(var(--gutter) + clamp(8px, 2vw, 24px));
}
.carousel-nav { display: flex; gap: 8px; flex: none; }
.carousel-nav[hidden] { display: none; }
.carousel-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hairline);
  background: #fff; color: var(--ink); font: 500 18px/1 "Inter", system-ui, sans-serif; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.carousel-nav button:hover { background: var(--ink); color: #fff; }
.carousel-nav button:active { transform: scale(.94); }
.products {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: clamp(24px, 3vw, 40px);
  padding: 0 max(var(--gutter), calc((100vw - 1360px) / 2 + var(--gutter))) 8px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1360px) / 2 + var(--gutter)));
  overflow: auto hidden; overscroll-behavior-x: none; touch-action: pan-x pan-y;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.products::-webkit-scrollbar { display: none; }
.product { flex: 0 0 clamp(248px, 25vw, 330px); scroll-snap-align: start; }
.product-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-brand { margin: 14px 4px 0; font-size: 14px; color: var(--body); }
.product h3 { margin: 0 4px 10px; font-size: 19px; line-height: 1.25; }
.product details { background: #fff; border: 1px solid var(--hairline); border-radius: 16px; }
.product summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 500; color: var(--ink);
}
.product summary::-webkit-details-marker { display: none; }
.ingredients { max-height: 340px; overflow-y: auto; padding: 0 16px; font-size: 14px; line-height: 1.4; }
.ingredients li { padding: 9px 0; border-top: 1px solid var(--hairline); }
.ingredients strong { display: block; font-weight: 500; }
.ingredients span { color: var(--body); }
.ing-none { font-style: italic; }
.product-source { margin: 0; padding: 10px 16px 14px; border-top: 1px solid var(--hairline); font-size: 12.5px; color: var(--body); }
.real-note {
  max-width: 1360px; margin: 18px auto 0; padding: 0 calc(var(--gutter) + clamp(8px, 2vw, 24px));
  font-size: 13px; line-height: 1.5; color: var(--body);
}

/* Accordions open smoothly where the browser can; elsewhere they simply open. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  /* Not the menu: its panel floats outside its box and would be cut off. */
  .motion details:not(.menu)::details-content {
    block-size: 0; overflow: clip;
    transition: block-size .45s cubic-bezier(.16, 1, .3, 1), content-visibility .45s allow-discrete;
  }
  .motion details:not(.menu)[open]::details-content { block-size: auto; }
}

/* ---- Motion: only once motion.js has run, never for those who ask for less. ---- */
.nav { transition: padding .35s ease, box-shadow .35s ease; }
.nav.scrolled { padding-block: 8px; box-shadow: 0 1px 0 var(--hairline); }

.motion .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.motion .reveal.in { opacity: 1; transform: none; }
/* A row you swipe sideways must not move or grow vertically: cards fade in only. */
.motion .products > .reveal, .motion .moment-grid > .reveal { transform: none; }

/* Pictures open like a shutter as they arrive. */
.motion .moment.reveal .frame, .motion .photo.reveal, .motion .panel.reveal {
  clip-path: inset(10% 4% 0 4% round var(--radius));
  transition: clip-path 1.3s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.motion .moment.reveal.in .frame, .motion .photo.reveal.in, .motion .panel.reveal.in {
  clip-path: inset(0 0 0 0 round var(--radius));
}

/* Headlines rise word by word. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .14em; margin: 0 -.03em -.14em; }
.w > span { display: inline-block; }
.motion .words .w > span {
  transform: translateY(112%);
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--w, 0) * 55ms);
}
.motion .words.in .w > span { transform: none; }

/* Scroll-linked: motion.js sets --lift and --drift. */
.motion [data-parallax] { transform: translate3d(0, var(--lift, 0px), 0); will-change: transform; }
.motion [data-drift] { transform: translate3d(0, var(--drift, 0px), 0) scale(1.12); will-change: transform; }
.motion .phone-stack img { transition: opacity .6s ease, transform .8s cubic-bezier(.16, 1, .3, 1); transform: scale(.985); }
.motion .phone-stack img.is-on { transform: none; }

/* The hero settles on arrival. */
.motion .hero-image { animation: settle 2.8s cubic-bezier(.16, 1, .3, 1) both; }
.motion .hero-copy > :not(h1) { animation: rise 1.1s cubic-bezier(.16, 1, .3, 1) both; }
.motion .hero-copy > .eyebrow { animation-delay: .1s; }
.motion .hero-copy > .lede { animation-delay: .55s; }
.motion .hero-copy > .pill { animation-delay: .7s; }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (hover: hover) {
  .frame img, .product-photo img, .row { transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
  .product:hover .product-photo img { transform: scale(1.04); }
  .row { transition: transform .35s ease, box-shadow .35s ease; }
  .motion .row.reveal.in:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26, 22, 20, .06); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Phones ---- */
@media (max-width: 860px) {
  .nav > nav { display: none; }
  .nav-pill { margin-left: auto; }
  .menu { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .topic-grid, .post-grid { grid-template-columns: 1fr 1fr; }
  .ing-list { grid-template-columns: 1fr; }
  .hero { min-height: 740px; align-items: flex-start; justify-content: center; }
  .hero-image { object-position: 50% 100%; }
  .hero-copy { width: auto; max-width: 620px; padding: 44px 20px 300px; text-align: center; }
  .hero h1 { font-size: clamp(42px, 8vw, 64px); }
  .lede { margin: 20px auto 26px; }
  .split, .feature { grid-template-columns: 1fr; }
  .split-flip > :first-child { order: 0; }
  .split-copy { padding: 0 8px; }
  .panel { height: 500px; }
  .feature-copy { padding-bottom: 8px; }
  .feature-phone { height: 460px; }
  .phone { width: min(70%, 300px); }
  .moment-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 340px);
    overflow: auto hidden; overscroll-behavior-x: none; touch-action: pan-x pan-y;
    scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .moment-grid::-webkit-scrollbar { display: none; }
  .moment { scroll-snap-align: start; }
  .carousel-nav { display: none; }
  .product { flex-basis: min(72%, 300px); }
}
@media (max-width: 620px) {
  .topic-grid, .post-grid { grid-template-columns: 1fr; }
  /* The wordmark and the menu need the room; the hero says it is coming soon. */
  .nav-pill { display: none; }
  .menu { margin-left: auto; }
}
@media (max-width: 700px) {
  .plan-grid { grid-template-columns: 1fr; }
  .strip { display: grid; gap: 6px; justify-content: start; padding-left: 28px; }
}
