/* Facesculpt Premium. Tokens first, then base, components, sections. */
:root {
  --bg: #F6F1EC;
  --bg-alt: #EDE5DE;
  --surface: #FBF8F5;
  --blush: #E9D3CD;
  --ink: #2B2725;
  --text: #4A4543;
  --muted: #6F6461;
  --line: #DDD2C9;
  --accent: #85554C;
  --cta: #3A3533;
  --on-cta: #F6F1EC;

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --section-y: clamp(72px, 10vw, 144px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--cta); color: var(--on-cta); padding: 12px 20px; z-index: 100; border-radius: 999px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }

/* Display type: condensed uppercase with an italic serif lead word. */
.display, .rte h2, .rte h3 {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: .94;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.display em, .rte h3 em, .rte h2 em, .lead-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  font-stretch: 100%;
}
.display em { display: block; font-size: .92em; line-height: 1; padding-block: .06em; }
.display-xl em { font-size: .8em; }
.display-xl { font-size: clamp(2.9rem, 6.2vw, 5.6rem); }
.display-l { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.display-m { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.display-s { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; }
.center { text-align: center; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--text); max-width: 46ch; }
.small { font-size: .875rem; color: var(--muted); }
.kicker { font-size: .875rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 32px; border-radius: 999px; border: 1px solid var(--cta); background: var(--cta); color: var(--on-cta); font: 500 1rem/1 var(--font-body); text-decoration: none; transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--on-cta); }
.btn-light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-light:hover { background: var(--blush); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 500; white-space: nowrap; }
.link-arrow svg { width: 20px; height: 20px; flex: none; }

/* Announcement and header */
.announce { background: var(--cta); color: var(--on-cta); font-size: .8125rem; text-align: center; padding: 10px var(--gutter); }
.announce a { text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 241, 236, .94); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-nav { display: flex; gap: 32px; font-size: .9375rem; }
.site-nav a { text-decoration: none; position: relative; padding-block: 8px; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.wordmark { font-family: var(--font-display); font-stretch: 75%; font-weight: 600; font-size: 1.6rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink); line-height: 1; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.icon-btn { background: none; border: 0; width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%; position: relative; }
.icon-btn:hover { background: rgba(43, 39, 37, .06); }
.icon-btn svg { width: 24px; height: 24px; }
.menu-btn { display: none; justify-self: start; margin-left: -12px; }
.cart-count { position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .6875rem; line-height: 18px; text-align: center; font-weight: 600; }
.cart-count[hidden] { display: none; }

.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 24px var(--gutter); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; display: flex; flex-direction: column; }
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-menu a.mobile-link { font-family: var(--font-display); font-stretch: 75%; font-weight: 600; text-transform: uppercase; font-size: 2.6rem; letter-spacing: -.02em; line-height: 1.1; text-decoration: none; color: var(--ink); padding-block: 8px; }

/* Hero */
.hero { position: relative; background: var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1fr; }
.hero__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-alt); }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.hero__video.is-ready { opacity: 1; }
.hero__copy { padding: 40px var(--gutter) 56px; }
.hero__copy .lede { margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__price { margin-top: 20px; font-size: .9375rem; color: var(--muted); }
.hero__price strong { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .hero { min-height: min(calc(100dvh - 114px), 820px); display: grid; }
  .hero__grid { position: relative; min-height: inherit; }
  .hero__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero__copy { position: relative; align-self: end; max-width: 640px; padding: 0 var(--gutter) clamp(56px, 8vh, 96px); margin-left: max(0px, calc((100vw - var(--maxw)) / 2)); }
}

/* Trust strip */
.trust { border-block: 1px solid var(--line); }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item:first-child { padding-left: 0; }
.trust__item { display: flex; gap: 14px; align-items: center; padding: 22px 20px; font-size: .9375rem; line-height: 1.35; }
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__item svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.trust__item strong { display: block; color: var(--ink); font-weight: 600; }
.trust__item span { color: var(--muted); font-size: .8125rem; }
@media (max-width: 899px) {
  .trust__list { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(odd) { padding-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) { .trust__item { padding: 18px 10px; gap: 10px; } }

/* Stacked benefits: alternating image and stacked headline */
.benefit { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.benefit + .benefit { margin-top: clamp(64px, 9vw, 128px); }
.benefit__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-alt); border-radius: var(--radius); }
.benefit__media img { width: 100%; height: 100%; object-fit: cover; }
.benefit__copy .lede { margin-top: 20px; }
.benefit__copy .display { text-align: left; }
@media (min-width: 900px) {
  .benefit { grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); }
  .benefit:nth-child(even) .benefit__media { order: 2; }
  .benefit__copy { max-width: 480px; justify-self: center; }
}
.benefit-stack { text-align: center; }
.benefit-stack .display { text-align: center; }

/* Product feature on the home page and the product page */
.pdp { display: grid; grid-template-columns: 1fr; gap: 32px; padding-top: 24px; padding-bottom: var(--section-y); }
.pdp__gallery { position: relative; min-width: 0; }
.pdp__track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.pdp__track::-webkit-scrollbar { display: none; }
.pdp__item { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; margin: 0; }
.pdp__item img { width: 100%; height: 100%; object-fit: cover; }
.pdp__counter { position: absolute; right: 12px; bottom: 12px; background: rgba(246, 241, 236, .9); color: var(--ink); font-size: .8125rem; padding: 4px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.pdp__info { min-width: 0; }
.pdp__title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.pdp-home { padding-block: 0; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; font-family: var(--font-display); font-stretch: 75%; font-size: 1.9rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pdp__price s { font-size: 1.2rem; color: var(--muted); font-weight: 500; }
.pdp__short { margin-top: 20px; max-width: 46ch; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-top: 40px; }
  .pdp__track { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; margin: 0; padding: 0; }
  .pdp__item { aspect-ratio: 4 / 5; }
  .pdp__item:first-child { grid-column: 1 / -1; aspect-ratio: 1 / 1; }
  .pdp__item:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .pdp__counter { display: none; }
  .pdp__info { position: sticky; top: calc(var(--header-h) + 24px); }
}
.option { margin-top: 28px; border: 0; padding: 0; }
.option legend, .option__label { font-size: .875rem; color: var(--muted); padding: 0; margin: 0 0 10px; float: none; }
.option { min-inline-size: 0; margin-inline: 0; }
.option__values { display: flex; flex-wrap: wrap; gap: 10px; }
.option__values input { position: absolute; opacity: 0; pointer-events: none; }
.option__values label { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--ink); background: var(--surface); transition: border-color .2s; }
.option__values input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option__values input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 28px; }
.qty { display: inline-grid; grid-template-columns: 44px 44px 44px; align-items: center; height: 52px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { background: none; border: 0; height: 100%; font-size: 1.25rem; border-radius: 999px; }
.qty input { width: 100%; text-align: center; border: 0; background: none; font: 500 1rem var(--font-body); color: var(--ink); -moz-appearance: textfield; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.form-error { color: #9B2C2C; font-size: .875rem; margin-top: 12px; min-height: 1.2em; }
.pdp__assure { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; font-size: .9375rem; }
.pdp__assure li { display: flex; gap: 12px; align-items: center; }
.pdp__assure svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.accordion { margin-top: 32px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-weight: 500; color: var(--ink); min-height: 56px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.5rem; line-height: 1; font-weight: 400; transition: transform .25s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 22px; color: var(--text); max-width: 60ch; }
.acc-body ul { padding-left: 1.1em; margin: .5em 0; }
.sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(246, 241, 236, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 16px; transform: translateY(110%); transition: transform .35s var(--ease); }
.sticky-atc.is-visible { transform: none; }
.sticky-atc__name { font-weight: 500; color: var(--ink); line-height: 1.2; }
.sticky-atc__name span { display: block; font-size: .875rem; color: var(--muted); font-weight: 400; }
@media (max-width: 899px) { .sticky-atc { display: flex; } body.template-product { padding-bottom: 72px; } }

/* Rich text from product description: the stacked headline pattern */
.rte > * + * { margin-top: 1em; }
.rte h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 1.6em; line-height: .96; }
.rte h3 em { display: block; font-size: .92em; }
.rte h3:first-child { margin-top: 0; }
.rte ul { padding-left: 1.1em; }
.rte small { color: var(--muted); }

/* Anatomy */
.anatomy { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.anatomy__figure { position: relative; margin: 0; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.anatomy__figure img { width: 100%; height: 100%; object-fit: cover; }
.anatomy__list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.anatomy__list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 2px; }
.anatomy__list strong { color: var(--ink); font-weight: 600; }
.anatomy__list span { color: var(--muted); }
@media (min-width: 900px) { .anatomy { grid-template-columns: 1.1fr 1fr; gap: clamp(48px, 8vw, 120px); } }

/* Spec table */
.specs { width: 100%; border-collapse: collapse; font-size: 1rem; }
.specs th, .specs td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; color: var(--muted); font-weight: 400; padding-right: 16px; }
.specs td { color: var(--ink); font-weight: 500; }
.specs-wrap { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .specs-wrap { grid-template-columns: 1fr 1.2fr; gap: clamp(48px, 8vw, 120px); align-items: start; } }

/* Gallery band */
.band { display: grid; grid-template-columns: 1fr; gap: 12px; }
.band figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.band img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .band { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq .accordion { margin-top: 40px; }

/* Final CTA */
.final { background: var(--ink); color: var(--bg); text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.final .display { color: var(--bg); }
.final .lede { margin: 24px auto 0; color: #D9CEC6; }
.final .btn { margin-top: 36px; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 96px); font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 56px; }
.footer__brand p { max-width: 36ch; color: var(--muted); margin: 16px 0 0; }
.footer__col h2 { font: 600 .8125rem/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a { text-decoration: none; color: var(--text); }
.footer__col a:hover { text-decoration: underline; }
.newsletter { display: flex; gap: 8px; border-bottom: 1px solid var(--ink); }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; padding: 14px 0; font: 400 1rem var(--font-body); color: var(--ink); }
.newsletter input::placeholder { color: var(--muted); }
.newsletter button { background: none; border: 0; font-weight: 600; color: var(--ink); padding: 0 4px; min-height: 48px; }
.newsletter-msg { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.footer__legal { border-top: 1px solid var(--line); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; color: var(--muted); font-size: .8125rem; }
.payment-icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.payment-icons svg { width: 38px; height: 24px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }

/* Cart drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(43, 39, 37, .4); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; z-index: 70; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bg); z-index: 71; transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; }
body.cart-open .drawer { transform: none; }
body.cart-open .drawer-overlay { opacity: 1; visibility: visible; }
body.cart-open, body.menu-open { overflow: hidden; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--font-display); font-stretch: 75%; font-weight: 600; text-transform: uppercase; font-size: 1.5rem; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.line { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line__img { aspect-ratio: 4 / 5; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__title { color: var(--ink); font-weight: 500; text-decoration: none; line-height: 1.3; }
.line__meta { color: var(--muted); font-size: .875rem; }
.line__row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.line .qty { height: 40px; grid-template-columns: 36px 36px 36px; }
.line__remove { background: none; border: 0; color: var(--muted); font-size: .8125rem; text-decoration: underline; padding: 8px 0; }
.drawer__total { display: flex; justify-content: space-between; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.drawer__empty { text-align: center; padding: 64px 0; }
.drawer__empty .display { margin-bottom: 24px; }

/* Generic pages */
.page { padding-block: clamp(48px, 7vw, 96px); max-width: 820px; margin-inline: auto; }
.page__title { margin-bottom: 40px; }
.page .rte h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2em; }
.page .rte h3 { font-size: 1.4rem; }
.form-grid { display: grid; gap: 28px; max-width: 560px; }
.field label { display: block; font-size: .875rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 12px 0; font: 400 1rem var(--font-body); color: var(--ink); border-radius: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-width: 2px; }
.notice { padding: 16px 20px; background: var(--blush); color: var(--ink); border-radius: var(--radius); }
.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
@media (min-width: 900px) { .collection-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }
.card { text-decoration: none; display: block; }
.card__img { aspect-ratio: 4 / 5; background: var(--bg-alt); overflow: hidden; border-radius: var(--radius); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.03); }
.card__title { margin-top: 14px; color: var(--ink); font-weight: 500; }
.card__price { color: var(--muted); font-variant-numeric: tabular-nums; }
.empty-state { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.empty-state .display { margin-bottom: 28px; }
.cart-page__line { grid-template-columns: 120px 1fr; }
.cart-summary { margin-top: 32px; max-width: 440px; margin-left: auto; }
.password { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.password .wordmark { font-size: 2.4rem; }

/* Motion: one entrance, guarded. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__video { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Header on small screens */
@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .site-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .wordmark { font-size: 1.35rem; }
}

/* Functions with hotspots */
.functions { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.functions-figure { margin: 0; }
.functions-stage { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; overflow: clip; background: var(--bg-alt); }
.functions-zoom { position: absolute; inset: 0; }
.functions-zoom > img { width: 100%; height: 100%; object-fit: cover; }
.hotspots { position: absolute; inset: 0; }
.hotspot { position: absolute; width: 44px; height: 44px; transform: translate(-50%, -50%); background: none; border: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; transition: opacity .3s var(--ease); }
.hotspot-dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1.5px var(--ink); transition: transform .3s var(--ease), background-color .3s var(--ease); }
.hotspot-dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid var(--bg); opacity: 0; transform: scale(.6); animation: hotspot-pulse 2.6s var(--ease) infinite; }
.hotspot:nth-child(2) .hotspot-dot::after { animation-delay: .35s; }
.hotspot:nth-child(3) .hotspot-dot::after { animation-delay: .7s; }
.hotspot:nth-child(4) .hotspot-dot::after { animation-delay: 1.05s; }
@keyframes hotspot-pulse { 0% { opacity: .9; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(1.7); } }
.hotspot-label { position: absolute; right: calc(50% + 22px); top: 50%; transform: translate(8px, -50%); white-space: nowrap; background: var(--bg); color: var(--ink); font-size: .8125rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); box-shadow: 0 6px 20px rgba(43, 39, 37, .12); }
.hotspot-label::after { content: ""; position: absolute; left: 100%; top: 50%; width: 12px; height: 1px; background: var(--bg); }
[data-functions].has-active .hotspot { opacity: .6; }
[data-functions].has-active .hotspot.is-active { opacity: 1; }
.hotspot.is-active .hotspot-dot { background: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); transform: scale(1.15); }
.hotspot.is-active .hotspot-dot::after { animation: none; opacity: 0; }
.hotspot.is-active .hotspot-label { opacity: 1; transform: translate(0, -50%); }
.hotspot:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.fn-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.fn-item { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 18px 0; cursor: pointer; color: var(--text); }
.fn-item::before { content: ""; grid-row: 1 / 3; align-self: start; margin-top: 7px; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); transition: background-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.fn-title { font-weight: 600; color: var(--ink); line-height: 1.3; }
.fn-text { grid-column: 2; color: var(--muted); transition: color .3s var(--ease); }
.fn-item[aria-pressed="true"] .fn-title { color: var(--accent); }
.fn-item[aria-pressed="true"] .fn-text { color: var(--ink); }
.fn-item[aria-pressed="true"]::before { background: var(--accent); box-shadow: none; transform: scale(1.2); }
.fn-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (min-width: 900px) { .functions { grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); } .functions-copy { max-width: 520px; } }
@media (max-width: 899px) {
  .functions-zoom { transform: scale(1.6); transform-origin: 50% 50%; }
  .hotspot { width: 52px; height: 52px; transform: translate(-50%, -50%) scale(.625); }
  .hotspot-label { font-size: .75rem; padding: 6px 10px; right: calc(50% + 16px); }
}
@media (prefers-reduced-motion: reduce) { .hotspot-dot::after { animation: none; } }
