/* Hanei catalog site. One stylesheet. Responsive and preference blocks stay at the end. */

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/fonts/montserrat-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/fonts/montserrat-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/fonts/montserrat-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/fonts/montserrat-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url("/fonts/montserrat-latin-800-normal.woff2") format("woff2");
}

/* Metric-matched stand-in so the swap to Montserrat moves no lines. */
@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial");
  size-adjust: 113.5%;
  ascent-override: 84.9%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --gold: #c59416;
  --gold-hover: #d6a321;
  --red: #df2121;
  --ink: #0b0b0b;
  --ink-2: #3d3d3f;
  --paper: #ffffff;
  --mist: #f5f3ef;
  --line: rgba(11, 11, 11, 0.12);
  --glass: rgba(12, 12, 12, 0.82);
  --radius: 14px;
  --radius-lg: 22px;
  --hh: 4.5;
  --header-h: calc(var(--hh) * 1rem);
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 12vh, 9rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background: #000;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 Montserrat, "Montserrat Fallback", system-ui, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

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

a {
  color: var(--red);
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
}

h2 {
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38em;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.nowrap {
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip:focus {
  top: 1rem;
}

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

/* Placeholder chip for facts we do not have yet. */
.ph {
  display: inline-block;
  background: #fff3cd;
  color: #5c4300;
  border: 1px dashed #b38b00;
  border-radius: 6px;
  padding: 0.05em 0.45em;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0;
}

/* Buttons. Feedback on press, not on release. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 1rem/1 Montserrat, system-ui, sans-serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 100ms ease-out,
    background-color 160ms ease-out;
  user-select: none;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-hover);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

/* Header: fixed dark glass. It condenses with transforms, never height. */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  color: #fff;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.header-glass {
  position: absolute;
  inset: 0;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform-origin: top;
  transition: transform 200ms var(--ease-out);
}

.header-row {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
  transition: translate 200ms var(--ease-out);
}

.logo {
  display: block;
  flex: none;
  transform-origin: left center;
  transition: transform 200ms var(--ease-out);
}

.logo-img {
  width: 125px;
  height: auto;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.site-nav a[aria-current="page"] {
  box-shadow: 0 2px 0 var(--gold);
}

.list-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0 0.9rem 0 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 600 0.92rem/1 Montserrat, system-ui, sans-serif;
  cursor: pointer;
  transition: transform 100ms ease-out;
}

.list-button:active {
  transform: scale(0.96);
}

.list-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  content: "";
}

.menu-bars::before {
  transform: translateY(-7px);
}

.menu-bars::after {
  transform: translateY(5px);
}

.site-header.is-condensed .header-glass {
  transform: scaleY(0.84);
}

.site-header.is-condensed .header-row {
  translate: 0 -0.36rem;
}

.site-header.is-condensed .logo {
  transform: scale(0.92);
}

/* With the phone menu open, the header stays full height so the menu meets it flush. */
.site-header.menu-open .header-glass,
.site-header.menu-open .logo {
  transform: none;
}

.site-header.menu-open .header-row {
  translate: 0 0;
}

/* Page heads on inner pages clear the fixed header. */
.page-head {
  padding: calc(var(--header-h) + clamp(2.5rem, 7vh, 5rem)) 0 clamp(2rem, 5vh, 3.5rem);
  background: var(--mist);
}

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

/* Home: the scroll story. One idea per screen. */
/* Hero entrance: transform only, so the copy is painted from the first frame with or without JS. */
@keyframes hero-rise {
  from {
    transform: translateY(14px);
  }
}

html.motion .hero h1,
html.motion .hero .eyebrow,
html.motion .hero-sub {
  animation: hero-rise 600ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

html.motion .hero .eyebrow {
  animation-duration: 450ms;
}

html.motion .hero-sub {
  animation-delay: 120ms;
}

@media (prefers-reduced-motion: reduce) {
  html.motion .hero h1,
  html.motion .hero .eyebrow,
  html.motion .hero-sub {
    animation: none;
  }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  background: var(--ink);
  color: #fff;
  overflow: clip;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(4.5rem, 14vh, 8rem);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero h1 {
  max-width: 11.5em;
  margin-bottom: 0.4em;
}

.nowrap-sentence {
  white-space: nowrap;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-ctas.center {
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  width: 28px;
  height: 44px;
  margin-left: -14px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: cue 1.8s var(--ease-out) 3;
  animation-iteration-count: 3; /* a hint, not a loop beside a hero that already moves */
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.hero-inner-page {
  min-height: min(88svh, 760px);
}

.proof-band {
  background: var(--ink);
  color: #fff;
}

.proof-band .eyebrow {
  color: var(--gold);
}

.proof-band .lede {
  color: rgba(255, 255, 255, 0.82);
}

.narrow {
  max-width: 920px;
}

.big {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin-bottom: 0.6em;
}

.problem .lede {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--ink-2);
  max-width: 34em;
}

.band {
  position: relative;
  min-height: min(92svh, 820px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: clip;
  background: var(--ink);
}

.band-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 12vh, 7rem);
}

.band-copy {
  max-width: 32em;
}

.band-copy p:not(.eyebrow) {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
}

.band-copy .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.band-center {
  text-align: center;
  align-self: center;
}

.band-center h2 {
  margin-inline: auto;
}

.band-lede {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  max-width: 32em;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.88);
}

.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
}

.step {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
}

.step-n {
  display: block;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.step p {
  color: var(--ink-2);
}

.promise-section {
  background: var(--ink);
  color: #fff;
}

.promise-section .eyebrow {
  color: var(--gold);
}

.promise-grid {
  list-style: none;
  margin: clamp(2rem, 5vh, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.promise-item {
  border-top: 2px solid var(--gold);
  padding-top: 1.25rem;
}

.promise-n {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.promise-item h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.promise-item p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.vcards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 2rem;
}

.vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--mist);
  color: var(--ink);
  text-decoration: none;
  min-height: 15rem;
  transition: transform 100ms ease-out;
}

.vcard:active {
  transform: scale(0.985);
}

.vcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 220ms ease-out;
  pointer-events: none; /* the shadow layer sits over the card's links; let taps through */
}

.vcard h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 800;
}

.vcard p {
  color: var(--ink-2);
}

.vcard-cta {
  margin-top: auto;
  font-weight: 700;
  color: var(--red);
}

/* Background loops: animated WebP over its own poster. Reduced motion gets the still. */
.bg-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--ink);
  background-size: cover;
}

.bg-video picture,
.bg-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-loop {
  object-fit: cover;
}

/* A hosted loop stays invisible until it plays, so a blocked autoplay shows the still. */
.bg-clip {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bg-clip.is-playing {
  opacity: 1;
}

/* Instagram as a normal ghost button in the band's button row. */
.btn-ig svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.42) 35%, rgba(0, 0, 0, 0.8) 100%);
}

/* Catalog: sticky filter bar, category sections, cards. */
.filter-bar {
  position: sticky;
  top: calc(var(--header-h) * 0.84);
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  padding-block: 0.7rem;
}

.segmented {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--line);
}

.segmented button {
  min-height: 36px;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 600 0.88rem/1 Montserrat, system-ui, sans-serif;
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.segmented button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.chips {
  flex: 1 1 320px;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips ul {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0 2rem 0 0;
  list-style: none;
  width: max-content;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
}

.chip:hover {
  border-color: var(--ink);
}

.catalog {
  padding-bottom: var(--section);
}

.cat-section {
  padding-top: clamp(2.5rem, 6vh, 4rem);
  scroll-margin-top: calc(var(--header-h) + 4.5rem);
}

.cat-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 1.25rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.card {
  position: relative;
  min-width: 0;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 100ms ease-out;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 220ms ease-out;
  pointer-events: none;
}

.card-link:active {
  transform: scale(0.985);
}

/* Every tile is the same square image (built in site_data.make_tile). */
.card-media {
  aspect-ratio: 1 / 1;
  background: #f3f2ef;
  overflow: hidden;
}

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

.card-body {
  padding: 0.9rem 1rem 1.1rem;
}

/* Fixed line counts keep every card the same height. */
.card-name {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 0.25rem;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-spec {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-2);
  margin: 0 0 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-price {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quick view: a sheet that grows out of its card. */
.quick {
  width: min(880px, calc(100vw - 2rem));
  max-height: min(92svh, 760px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.quick::backdrop {
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.quick-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.quick-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(11, 11, 11, 0.08);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.quick-media {
  background: #f3f2ef;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

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

.quick-body {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.quick-body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  padding-right: 2.5rem;
}

.quick-desc {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.quick-body.single .field-label,
.quick-body.single .select {
  display: none;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.select,
.input {
  width: 100%;
  min-height: 48px;
  padding: 0 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(11, 11, 11, 0.25);
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.2 Montserrat, system-ui, sans-serif;
}

.quick-price {
  margin: 1rem 0 0.15rem;
  font-size: 1.1rem;
}

.quick-price span {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.quick-count {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}

.quick-more {
  font-weight: 600;
}

/* Product page */
.product {
  padding: calc(var(--header-h) + clamp(1.5rem, 5vh, 3rem)) 0 var(--section);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}

.product-media {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: #f3f2ef;
  overflow: hidden;
}

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

.crumbs {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--ink-2);
}

.crumbs a {
  color: var(--ink-2);
}

.variants {
  list-style: none;
  margin: 1.5rem 0 1rem;
  padding: 0;
  border-top: 1px solid var(--line);
}

.variant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.variant p {
  margin: 0;
}

.variant-label {
  font-weight: 700;
}

.variant-count,
.variant-unit {
  font-size: 0.85rem;
  color: var(--ink-2);
}

.variant-price {
  text-align: right;
}

.variant-case {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.variant-case span {
  font-weight: 500;
  color: var(--ink-2);
  font-size: 0.85rem;
}

.variant .add {
  min-height: 42px;
  padding: 0 1.1rem;
  font-size: 0.9rem;
}

.product-note {
  font-size: 0.85rem;
  color: var(--ink-2);
}

.related {
  background: var(--mist);
}

.band-cta {
  background: var(--ink);
  color: #fff;
  padding-block: var(--section);
  text-align: center;
}

.band-cta .lede {
  color: rgba(255, 255, 255, 0.75);
  margin-inline: auto;
}

/* My list drawer: slides in from the right and leaves the same way. */
html.drawer-open {
  overflow: hidden;
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.42);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: min(440px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.4);
  padding-top: env(safe-area-inset-top);
}

.drawer[hidden],
.drawer-scrim[hidden] {
  display: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.drawer-title {
  font-size: 1.3rem;
  margin: 0;
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(11, 11, 11, 0.06);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem 1.25rem;
}

.list-empty {
  margin: 2rem 0;
  color: var(--ink-2);
}

.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.list-row p {
  margin: 0;
}

.row-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.row-label,
.row-price {
  font-size: 0.85rem;
  color: var(--ink-2);
}

.row-qty {
  display: inline-flex;
  align-items: center;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.qty-step {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.15rem;
  cursor: pointer;
}

.qty-input {
  width: 3rem;
  height: 36px;
  border: 0;
  text-align: center;
  font: 600 16px/1 Montserrat, system-ui, sans-serif;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.row-remove {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--red);
  font: 600 0.85rem/1.4 Montserrat, system-ui, sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

.drawer-foot {
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
}

.drawer-total {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.drawer-send[hidden] {
  display: none;
}

.add.is-added {
  background: var(--ink);
  color: #fff;
}

/* Savings calculator */
.calc {
  background: var(--mist);
  scroll-margin-top: var(--header-h);
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2rem;
  align-items: start;
}

.calc-inputs,
.calc-results {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.calc-meta {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0.6rem 0 1.25rem;
}

.calc-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.calc-example {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7a5a00;
}

.calc-example[hidden],
.calc-note[hidden] {
  display: none;
}

.tile p {
  margin: 0;
}

.tile-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.tile-value {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.tile-big {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.tile-big .tile-value {
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr));
  gap: 1rem 1.5rem;
}

.calc-note {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Scrims tuned per band so white type holds contrast over the brightest frame. */
.hero .bg-scrim {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 35%, rgba(0, 0, 0, 0.82) 100%);
}

.guide-band .bg-scrim {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.1) 75%),
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
}

.close-band .bg-scrim {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.5) 100%);
}

/* Lean cookie notice: a small glass card, bottom right, clear of the hero buttons. */
.consent {
  position: fixed;
  z-index: 55;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 360px;
  padding: 0.7rem 0.7rem 0.7rem 1rem;
  border-radius: 16px;
  background: rgba(12, 12, 12, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  line-height: 1.4;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
  @starting-style {
    opacity: 0;
    transform: translateY(8px);
  }
}

.consent[hidden] {
  display: none;
}

.consent p {
  margin: 0;
}

.consent a {
  color: #fff;
}

.consent-ok {
  flex: none;
  min-height: 36px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 700 0.85rem/1 Montserrat, system-ui, sans-serif;
  cursor: pointer;
}

/* Send your list */
.send-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.account-wrap .send-form {
  max-width: 44rem;
}

.send-list,
.send-form {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
}

.send-list {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  background: var(--mist);
}

.send-h2 {
  font-size: 1.3rem;
}

.send-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.send-row p {
  margin: 0;
}

.send-row span {
  font-size: 0.85rem;
  color: var(--ink-2);
}

.send-row-qty {
  text-align: right;
  white-space: nowrap;
}

.send-calc {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fff3cd;
  color: #5c4300;
  font-weight: 600;
  font-size: 0.9rem;
}

.send-calc[hidden],
.send-empty[hidden],
.field-error[hidden],
.form-success[hidden],
#quote-form[hidden],
#account-form[hidden] {
  display: none;
}

.send-total {
  margin: 1rem 0 0;
  font-weight: 700;
}

.field {
  margin-bottom: 1rem;
}

.opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--ink-2);
}

.textarea {
  min-height: 7rem;
  padding: 0.75rem 0.9rem;
  resize: vertical;
}

.file {
  padding: 0.6rem 0.9rem;
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 600;
}

.input[aria-invalid="true"] {
  border-color: var(--red);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit {
  width: 100%;
  margin-top: 0.5rem;
}

.submit:disabled {
  opacity: 0.6;
}

.form-success h2 {
  font-size: 1.8rem;
}

.send-call {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* FAQ: native details, a quiet open and close where the browser supports it. */
.faq-list {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold);
  transition: transform 200ms var(--ease-out);
}

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

.faq details p {
  margin: 0 0 1.15rem;
  color: var(--ink-2);
}

/* The answer fades in; no height animation (height re-lays out the page every frame). */
.faq details[open] p {
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

@starting-style {
  .faq details[open] p {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* Legal pages: plain, readable, narrow. */
.legal {
  padding-block: clamp(2rem, 6vh, 4rem) var(--section);
}

.legal-section h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.6rem;
}

.legal-section p {
  color: var(--ink-2);
  max-width: 40em;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* Reel cards: covers that open the post on Instagram, placed at proof points. */
.reel {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 100ms ease-out;
}

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

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

.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.78) 100%);
}

.reel-play {
  position: absolute;
  z-index: 1;
  top: 0.9rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.reel-play::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}

.reel-line {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.steps-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reel-aside {
  width: 100%;
}

.vcard {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
  min-height: 0;
}

.vcard .reel-thumb {
  border-radius: 0;
  aspect-ratio: auto;
  min-height: 100%;
}

.vcard .reel-thumb .reel-line {
  font-size: 0.8rem;
}

.vcard-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--ink);
  text-decoration: none;
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.proof-reels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.reel-product {
  max-width: 260px;
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(3rem, 8vh, 5rem) 0 calc(2rem + env(safe-area-inset-bottom));
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-line {
  margin: 1rem 0 0.5rem;
  max-width: 22em;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-label-sub {
  margin-top: 1.5rem;
}

.footer-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-social {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---- Preferences and responsive blocks stay last. ---- */

/* Hover shadows only where a real pointer hovers; a tap on a phone fires :hover and sticks. */
@media (hover: hover) and (pointer: fine) {
  .card-link:hover::after,
  .vcard:hover::after {
    opacity: 1;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .header-glass {
    background: #111;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span {
    animation: none;
  }

  /* Reduced motion keeps the fades and drops the slides. */
  .consent,
  .faq details[open] p {
    transition: opacity 200ms ease-out;
  }

  .faq summary::after {
    transition: none;
  }

  .header-glass,
  .header-row,
  .logo,
  .btn,
  .list-button {
    transition: none;
  }
}

@media (max-width: 1000px) {
  .promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --hh: 4;
  }

  .menu-button {
    display: grid;
    place-items: center;
    order: 3;
  }

  .scroll-cue {
    display: none;
  }

  .consent {
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    max-width: none;
  }

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

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

  .reel-aside {
    max-width: 210px;
    justify-self: center;
  }

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

  .vcard .reel-thumb .reel-line {
    display: none;
  }

  .card-body {
    padding: 0.75rem 0.8rem 0.9rem;
  }

  .card-name {
    font-size: 0.92rem;
  }

  .card-price {
    font-size: 0.85rem;
  }

  .list-button {
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.1rem;
  }

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

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

  .send-list {
    position: static;
  }

  .quick-inner,
  .calc-grid,
  .vcards,
  .steps,
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-media {
    max-height: 46svh;
    aspect-ratio: auto;
  }

  .product-media {
    position: static;
    max-width: 440px;
    width: 100%;
    margin-inline: auto;
  }

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

  .variant .add {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .footer-col a {
    overflow-wrap: anywhere;
  }

  .footer-brand,
  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .guide-band .bg-scrim {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.82) 72%);
  }
}

@media (max-width: 380px) {
  .header-row {
    gap: 0.5rem;
  }

  .logo-img {
    width: 108px;
  }

  .list-button {
    padding: 0 0.45rem 0 0.75rem;
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  .menu-button {
    width: 40px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  :root {
    --hh: 3.5;
  }

  /* A sideways phone is short: the hero keeps its buttons on the first screen. */
  .hero-inner {
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 1.5rem;
  }

  .hero .display {
    font-size: clamp(1.8rem, 5.2vw, 2.6rem);
    max-width: none;
  }

  .hero .eyebrow,
  .scroll-cue {
    display: none;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    max-width: 44em;
  }

  .site-nav {
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
}
