/* HiMask homepage (src/brand-pages/home.html): Apple product-page style, mobile first.
   Measured against apple.com/ae/iphone-duo: SF Pro type scale, #1d1d1f ink, #6e6e73 grey copy,
   #f5f5f7 sections, 28px card radius, #0071e3 actions, 87.5% phone column, 980px desktop column. */
.hm {
  --ink: #1d1d1f; --grey: #6e6e73; --grey2: #86868b; --line: #d2d2d7; --hair: #e8e8ed;
  --page: #f5f5f7; --card: #fff; --blue: #0071e3; --red: #ff3b30; --link: #0066cc; --dark-card: #1d1d1f;
  --r: 28px; --gutter: 24px; --col: 980px;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "__Inter_d8ebd1", Inter, Arial, sans-serif;
  --text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "__Inter_d8ebd1", Inter, Arial, sans-serif;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  font-family: var(--text);
  color: var(--ink); background: var(--card); -webkit-font-smoothing: antialiased;
  font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; overflow-x: clip;
}
:where(.hm) *, :where(.hm) *::before, :where(.hm) *::after { box-sizing: border-box; }
:where(.hm) :where(img, video) { display: block; max-width: 100%; height: auto; }
:where(.hm) :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
:where(.hm) :where(h1, h2, h3, p, figure, blockquote, dl, dd) { margin: 0; }
:where(.hm) :where(a) { color: inherit; }
:where(.hm) :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.hm :is(h1, h2, h3, .hm-h2, .hm-story__title, .hm-hero__title, .hm-card__big, .hm-stat__num, .hm-value__price) { font-family: var(--display); }

/* ---------- layout ---------- */
.hm-wrap { width: calc(100% - 2 * var(--gutter)); max-width: var(--col); margin: 0 auto; }
.hm-wrap--narrow { max-width: 692px; }
.hm-section { padding: 72px 0; background: var(--card); }
.hm-section--grey { background: var(--page); }
.hm-section--black { background: #000; color: #f5f5f7; }
.hm-section--tight { padding: 24px 0 48px; }
.hm-section--end { padding: 88px 0 120px; }
.hm-center { text-align: center; }
.hm-center > .hm-btn { margin-top: 28px; }

/* ---------- type ---------- */
.hm-h2 { font-size: 32px; line-height: 1.125; font-weight: 600; letter-spacing: 0.004em; }
.hm-h2--big { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
.hm-h3 { font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: 0.009em; margin: 40px 0 8px; }
.hm-eyebrow { font-size: 17px; line-height: 1.24; font-weight: 600; color: var(--blue); margin-bottom: 10px; letter-spacing: -0.022em; }
.hm-eyebrow--grey { color: var(--grey); font-size: 14px; letter-spacing: -0.016em; }
.hm-eyebrow--light { color: #2997ff; }
.hm-lead { font-size: 19px; line-height: 1.42; font-weight: 600; margin-top: 16px; letter-spacing: 0.012em; }
.hm-lead--muted { color: var(--grey); font-weight: 400; font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; }
.hm-section--black .hm-lead--muted { color: #a1a1a6; }
.hm-body { font-size: 17px; line-height: 1.47; margin-top: 14px; color: var(--grey); }
.hm-body strong, .hm-body b { color: var(--ink); font-weight: 600; }
.hm-fine { font-size: 12px; line-height: 1.33; color: var(--grey); margin-top: 14px; letter-spacing: -0.01em; }
.hm-blue { color: var(--blue); }
.hm-link { color: var(--link); font-size: 17px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; margin-top: 16px; }
.hm-link:hover { text-decoration: underline; }
.hm-section--black .hm-link { color: #2997ff; }

/* ---------- buttons ---------- */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 22px; border-radius: 980px; font-size: 17px; line-height: 1.18; font-weight: 400; text-decoration: none; white-space: nowrap; letter-spacing: -0.022em; transition: background-color .25s, color .25s, box-shadow .25s; }
.hm-btn--blue { background: var(--blue); color: #fff; }
.hm-btn--blue:hover { background: #0077ed; }
.hm-btn--ghost { box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.hm-btn--ghost:hover { background: var(--blue); color: #fff; }
.hm-btn--sm { min-height: 0; padding: 8px 16px; font-size: 14px; letter-spacing: -0.016em; }
.hm-btn--lg { min-height: 52px; padding: 15px 32px; font-size: 18px; }
.hm-btn--wide { width: 100%; margin-top: 28px; }

/* ---------- hero ---------- */
.hm-hero { text-align: center; background: #fff; position: relative; overflow: hidden; padding-top: 24px; display: flex; flex-direction: column; height: calc(100vh - 48px); height: calc(100svh - 48px); min-height: 440px; max-height: 980px; }
.hm-hero__kicker { font-family: var(--display); font-size: 21px; line-height: 1; font-weight: 600; letter-spacing: 0.011em; }
.hm-hero__title { font-size: 64px; line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; margin-top: 6px; }
.hm-hero__media { flex: 1 1 0; min-height: 0; margin-top: 8px; display: flex; justify-content: center; align-items: flex-end; }
.hm-hero .hm-hero__img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: center bottom; }
.hm-platter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px var(--gutter) 20px; background: var(--page); text-align: left; }
.hm-platter__price { font-size: 14px; line-height: 1.29; font-weight: 600; letter-spacing: -0.016em; }
.hm-platter__sub { display: block; font-weight: 400; color: var(--grey); }

/* ---------- local nav (floating product bar) ---------- */
/* Fixed, not sticky: iOS Safari shakes sticky bars while its toolbar collapses and expands. */
.hm-localnav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 0; }
.hm-localnav__inner { display: flex; align-items: center; gap: 10px; position: absolute; top: 8px; left: 10px; right: 10px; height: 56px; padding: 0 8px 0 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.88); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 6px 24px rgba(0, 0, 0, 0.08); transform: translate3d(0, -120%, 0); opacity: 0; transition: transform .45s var(--ease), opacity .3s; pointer-events: none; will-change: transform, opacity; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.hm-localnav.is-shown .hm-localnav__inner { transform: translate3d(0, 0, 0); opacity: 1; pointer-events: auto; }
.hm [id] { scroll-margin-top: 76px; }
.hm-localnav__title { font-family: var(--display); font-size: 19px; font-weight: 600; margin-right: auto; letter-spacing: 0.012em; }
.hm-seg { display: inline-flex; align-items: center; border-radius: 980px; box-shadow: inset 0 0 0 1px var(--line); }
.hm-seg a { padding: 8px 16px; font-size: 14px; line-height: 1.2; border-radius: 980px; text-decoration: none; letter-spacing: -0.016em; }
.hm-seg__a { color: var(--ink); }
.hm-seg__b { background: var(--blue); color: #fff !important; margin-left: -6px; }
.hm-seg__b:hover { background: #0077ed; }

/* ---------- highlights gallery ---------- */
.hm-hl-head { display: flex; flex-direction: column; }
.hm-gallery { margin-top: 32px; }
.hm-gallery__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.hm-gallery__track::-webkit-scrollbar { display: none; }
.hm-hl { position: relative; flex: 0 0 82%; max-width: 372px; scroll-snap-align: start; background: var(--card); border-radius: var(--r); height: 480px; padding: 32px 26px 0; display: flex; flex-direction: column; overflow: hidden; }
.hm-hl--dark { background: #000; color: #f5f5f7; }
.hm-hl__lead { font-family: var(--display); font-size: 17px; line-height: 1.24; font-weight: 600; text-align: center; letter-spacing: -0.022em; color: rgba(0, 0, 0, 0.88); }
.hm-hl--dark .hm-hl__lead { color: rgba(255, 255, 255, 0.92); }
.hm-hl .hm-hl__product { flex: 1 1 0; min-height: 0; width: calc(100% + 32px); max-width: none; margin: 8px -16px 18px; object-fit: contain; }
.hm-hl .hm-hl__photo { margin: auto -26px 0; width: calc(100% + 52px); max-width: none; height: 64%; object-fit: cover; }
.hm-hl .hm-hl__photo:first-child { margin: -32px -26px 18px; height: 46%; }
.hm-hl__eyebrow { font-size: 14px; font-weight: 600; color: var(--blue); letter-spacing: -0.016em; }
.hm-hl__body { font-size: 14px; line-height: 1.43; color: var(--grey); margin-top: 8px; letter-spacing: -0.016em; }
.hm-gallery__controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; }
.hm-dots { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 24px; border-radius: 28px; background: rgba(232, 232, 237, 0.7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.hm-dots button { position: relative; width: 8px; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.42); overflow: hidden; transition: width .5s var(--ease), background .3s; }
.hm-dots button[aria-selected="true"] { width: 48px; background: rgba(0, 0, 0, 0.2); }
.hm-dots button[aria-selected="true"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(0, 0, 0, 0.6); transform-origin: left; transform: scaleX(1); }
.hm-gallery.is-playing .hm-dots button[aria-selected="true"]::after { animation: hm-progress var(--hm-slide, 5s) linear both; }
@keyframes hm-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hm-play { width: 56px; height: 56px; border-radius: 50%; background: rgba(232, 232, 237, 0.7); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: inline-flex; align-items: center; justify-content: center; }
.hm-play .hm-play__play { display: none; }
.hm-play.is-paused .hm-play__play { display: inline; }
.hm-play.is-paused .hm-play__pause { display: none; }

/* ---------- story block (Apple "product story") ---------- */
.hm-story__eyebrow { font-family: var(--display); font-size: 21px; line-height: 1.19; font-weight: 600; letter-spacing: 0.011em; }
.hm-story__title { font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: 0; margin-top: 8px; }
.hm-story__body { font-family: var(--display); font-size: 19px; line-height: 1.42; color: var(--grey); margin-top: 24px; letter-spacing: 0.012em; max-width: 692px; }
.hm-story__body b { color: var(--ink); font-weight: 600; }

/* ---------- stat ---------- */
.hm-stat { display: grid; grid-template-columns: auto auto 1fr; align-items: start; column-gap: 6px; margin-top: 6px; }
.hm-stat__num { font-size: 56px; line-height: 0.92; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hm-stat__unit { font-size: 22px; font-weight: 600; color: var(--blue); }
.hm-stat__label { font-size: 14px; line-height: 1.3; font-weight: 600; align-self: center; letter-spacing: -0.016em; }

/* ---------- colours ---------- */
.hm-colours { margin: 40px auto 0; width: calc(100% - 2 * var(--gutter)); max-width: 692px; text-align: center; }
.hm-colours__stage { background: #f3f3f3; border-radius: var(--r); overflow: hidden; display: grid; }
.hm-colours__stage img { grid-area: 1 / 1; width: 100%; transition: opacity .6s var(--ease); }
.hm-colours__stage img[hidden] { display: block; opacity: 0; }
.hm-colours__picker { margin-top: 20px; }
.hm-swatches { display: inline-flex; gap: 16px; padding: 12px 18px; border-radius: 28px; background: var(--page); }
.hm-swatch { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .25s; }
.hm-swatch[aria-checked="true"] { outline-color: var(--blue); }
.hm-swatch--black { background: linear-gradient(145deg, #4a4a4e, #1d1d1f); }
.hm-swatch--white { background: linear-gradient(145deg, #ffffff, #e6e4de); }
.hm-colours__name { font-family: var(--display); font-size: 17px; font-weight: 600; margin-top: 12px; }

/* ---------- facts ---------- */
.hm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hm-facts li { background: var(--card); border-radius: 20px; padding: 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.hm-facts strong { font-family: var(--display); font-size: 19px; line-height: 1.21; font-weight: 600; letter-spacing: 0.012em; white-space: nowrap; }
.hm-facts span { font-size: 14px; line-height: 1.36; color: var(--grey); letter-spacing: -0.016em; }

/* ---------- cards and grids ---------- */
.hm-grid { display: grid; gap: 16px; margin-top: 36px; }
.hm-card { background: var(--card); border-radius: var(--r); padding: 30px 26px; display: flex; flex-direction: column; }
.hm-card--grey { background: var(--page); }
.hm-section--grey .hm-card--grey { background: var(--card); }
.hm-card--dark { background: var(--dark-card); color: #f5f5f7; }
.hm-card--black { background: #000; color: #f5f5f7; }
.hm-card__big { font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: 0.007em; }
.hm-card__title { font-family: var(--display); font-size: 21px; line-height: 1.19; font-weight: 600; margin-top: 8px; letter-spacing: 0.011em; }
.hm-card__body { font-size: 17px; line-height: 1.47; color: var(--grey); margin-top: 10px; }
.hm-card--dark .hm-card__body, .hm-card--black .hm-card__body { color: #a1a1a6; }
.hm-card__source { font-size: 12px; color: var(--grey2); margin-top: auto; padding-top: 22px; }
.hm-card--dark .hm-link { margin-top: 10px; font-size: 17px; }

/* ---------- clinician ---------- */
.hm-clinician { margin-top: 36px; }
.hm-clinician__who { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.hm-clinician__who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.hm-clinician__name { font-size: 17px; font-weight: 600; }
.hm-clinician__meta { font-size: 14px; color: var(--grey); }
.hm-clinician blockquote { margin-top: 12px; }
.hm-clinician__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.hm-clinician__foot .hm-fine { margin: 0; }
.hm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hm-tags span, .hm-chips li { font-size: 14px; padding: 7px 14px; border-radius: 980px; background: var(--page); color: var(--ink); letter-spacing: -0.016em; }
.hm-section--grey .hm-chips li { background: var(--card); }

/* ---------- results ---------- */
.hm-result { padding: 14px 14px 28px; }
.hm-result > :not(img) { padding: 0 12px; }
.hm-result img { width: 100%; border-radius: 18px; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 18px; }

/* ---------- horizontal scrollers ---------- */
.hm-scroller { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 32px var(--gutter) 8px; scrollbar-width: none; }
.hm-scroller::-webkit-scrollbar { display: none; }
.hm-scroller > li { flex: 0 0 82%; max-width: 372px; scroll-snap-align: start; }
.hm-photo { padding: 12px; }
.hm-photo img { border-radius: 18px; width: 100%; }
.hm-photo p { font-size: 14px; color: var(--grey); padding: 14px 8px 6px; }
.hm-scroller--videos > li { flex-basis: 62%; max-width: 280px; }
.hm-video { position: relative; border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 9 / 16; }
.hm-video video { width: 100%; height: 100%; object-fit: cover; }
.hm-video__btn { position: absolute; left: 14px; bottom: 14px; padding: 9px 16px 9px 34px; border-radius: 980px; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 14px; font-weight: 600; color: var(--ink); }
.hm-video__btn::before { content: ""; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hm-video.is-playing .hm-video__btn::before { border: 0; width: 8px; height: 10px; box-shadow: inset 3px 0 0 var(--ink), inset -3px 0 0 var(--ink); }
.hm-review { height: 100%; }
.hm-stars { color: var(--ink); letter-spacing: 2px; font-size: 15px; }

/* ---------- ritual ---------- */
.hm-steps .hm-steps__n { font-family: var(--display); font-size: 56px; line-height: 1; font-weight: 200; color: var(--grey2); letter-spacing: -0.03em; margin-bottom: 16px; }
.hm-note { margin-top: 16px; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hm-chips--center { justify-content: center; margin-top: 32px; }

/* ---------- value ---------- */
.hm-value { padding: 36px 28px; }
.hm-value__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--hair); }
.hm-value__price { font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: 0; }
.hm-value__price--was { color: var(--grey2); text-decoration: line-through; text-decoration-thickness: 2px; }
.hm-value__save { font-family: var(--display); font-size: 21px; font-weight: 600; margin-top: 28px; }

/* ---------- layers ---------- */
.hm-layers { display: grid; gap: 20px; margin-top: 36px; }
.hm-layers__diagram { position: relative; border-radius: var(--r); overflow: hidden; background: var(--page); display: grid; grid-template-rows: repeat(4, 66px); }
.hm-layers__band { padding: 10px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey); display: flex; align-items: flex-end; justify-content: flex-start; }
.hm-layers__band:nth-child(2) { background: #ececf0; } .hm-layers__band:nth-child(3) { background: #e3e3e8; } .hm-layers__band:nth-child(4) { background: #d8d8de; }
.hm-beam { position: absolute; left: var(--x); top: 22px; height: calc(var(--d) - 22px); width: 3px; border-radius: 2px; background: var(--red); box-shadow: 0 0 8px rgba(255, 59, 48, 0.55); font-style: normal; transform-origin: top; }
.hm-beam::after { content: ""; position: absolute; bottom: -4px; left: -2.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hm-beam:first-of-type, .hm-beam:first-of-type::after { background: var(--blue); }
.hm-beam:first-of-type { box-shadow: 0 0 8px rgba(0, 113, 227, 0.5); }
.hm-beam b { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hm-layers.is-in .hm-beam { animation: hm-beam 1.2s var(--ease) both; }
.hm-layers.is-in .hm-beam:nth-of-type(2) { animation-delay: .15s; } .hm-layers.is-in .hm-beam:nth-of-type(3) { animation-delay: .3s; } .hm-layers.is-in .hm-beam:nth-of-type(4) { animation-delay: .45s; }
@keyframes hm-beam { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hm-accordion, .hm-faq { display: flex; flex-direction: column; }
.hm-acc { border-radius: 18px; background: var(--page); margin-bottom: 10px; }
.hm-faq { padding: 8px 26px; }
.hm-faq .hm-acc { background: none; border-radius: 0; margin: 0; box-shadow: 0 1px 0 var(--hair); }
.hm-faq .hm-acc:last-child { box-shadow: none; }
.hm-acc summary { list-style: none; cursor: pointer; display: grid; gap: 2px; padding: 18px 52px 18px 18px; position: relative; }
.hm-faq .hm-acc summary { padding-left: 0; }
.hm-acc summary::-webkit-details-marker { display: none; }
.hm-acc summary::after { content: ""; position: absolute; right: 14px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 9v10M9 14h10' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 28px no-repeat; transition: transform .35s var(--ease); }
.hm-faq .hm-acc summary::after { right: 0; background-color: var(--page); }
.hm-acc[open] summary::after { transform: rotate(45deg); }
.hm-acc p { padding: 0 18px 20px; font-size: 17px; line-height: 1.47; color: var(--grey); }
.hm-faq .hm-acc p { padding-left: 0; padding-right: 0; }
.hm-acc__k { font-size: 12px; font-weight: 600; color: var(--grey); display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.hm-acc__t { font-family: var(--display); font-size: 19px; line-height: 1.26; font-weight: 600; letter-spacing: 0.012em; }
.hm-acc__s { font-size: 14px; color: var(--grey); }
.hm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; }
.hm-dot--blue { background: var(--blue); }

/* ---------- position ---------- */
.hm-position { gap: 28px; padding: 34px 26px; }
.hm-index li a { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding: 16px 0; text-decoration: none; }
.hm-index li + li a { box-shadow: inset 0 1px 0 var(--hair); }
.hm-index span { grid-row: span 2; font-size: 14px; color: var(--grey2); padding-top: 3px; font-variant-numeric: tabular-nums; }
.hm-index strong { font-size: 17px; font-weight: 600; }
.hm-index em { font-style: normal; font-size: 14px; color: var(--grey); }
.hm-index a:hover strong { color: var(--link); }

/* ---------- laser vs LED ---------- */
.hm-beams { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: center; padding: 32px 18px; }
.hm-beams__name { font-family: var(--display); font-size: 21px; font-weight: 600; }
.hm-beams .hm-fine { color: #a1a1a6; min-height: 32px; }
.hm-beams__laser { height: 130px; display: flex; justify-content: center; gap: 8px; margin: 20px 0; }
.hm-beams__laser i { width: 10px; border-radius: 5px; background: linear-gradient(#ff6961, #ff3b30); box-shadow: 0 0 18px rgba(255, 59, 48, 0.75); transform-origin: top; }
.hm-beams.is-in .hm-beams__laser i { animation: hm-beam 1.1s var(--ease) both; }
.hm-beams.is-in .hm-beams__laser i:nth-child(2) { animation-delay: .12s; } .hm-beams.is-in .hm-beams__laser i:nth-child(3) { animation-delay: .24s; }
.hm-beams__led { height: 130px; margin: 20px auto; width: 80%; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.04)); }
.hm-beams__cap { font-size: 14px; font-weight: 600; }
.hm-specs3 li { padding: 4px 4px 0; }
.hm-specs3 + .hm-grid { margin-top: 28px; }

/* ---------- clinical results ---------- */
.hm-clinical { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px 0 20px; }
.hm-clinical li { background: var(--page); border-radius: 20px; padding: 22px 18px; }
.hm-clinical li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hm-clinical__num { font-family: var(--display); font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.hm-clinical__num .hm-stat__num { font-size: inherit; line-height: inherit; font-weight: inherit; letter-spacing: inherit; }
.hm-clinical__t { font-family: var(--display); font-size: 17px; line-height: 1.24; font-weight: 600; margin-top: 10px; }
.hm-clinical__s { font-size: 14px; line-height: 1.36; color: var(--grey); margin-top: 2px; }

/* ---------- compare (Apple "Compare with") ---------- */
.hm-compare { margin-top: 36px; background: var(--page); border-radius: var(--r); padding: 36px 20px 40px; text-align: center; }
.hm-compare__label { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; }
.hm-compare__select { position: relative; display: inline-block; margin-top: 12px; width: min(100%, 300px); }
.hm-compare__select select { -webkit-appearance: none; appearance: none; width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 1px solid #86868b; border-radius: 980px; padding: 10px 44px 10px 22px; cursor: pointer; }
.hm-compare__select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--ink); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); pointer-events: none; }
.hm-compare__rows { display: grid; gap: 36px; margin-top: 44px; }
.hm-compare__rows dt { font-size: 17px; color: var(--ink); }
.hm-compare__rows dd { margin: 2px 0 0; font-family: var(--display); font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.hm-compare__rows p { font-size: 17px; color: var(--grey); margin-top: 4px; }
.hm-compare + .hm-fine { margin-top: 14px; }
#compare .hm-specs { margin-top: 28px; background: var(--page); }

/* ---------- specs list ---------- */
.hm-specs { margin-top: 32px; padding: 6px 26px; }
.hm-specs li { box-shadow: inset 0 -1px 0 var(--hair); }
.hm-specs li:last-child { box-shadow: none; }
.hm-section--grey .hm-specs { background: var(--card); }

/* ---------- offer ---------- */
.hm-ticks { margin-top: 20px; display: grid; gap: 12px; }
.hm-ticks li { padding-left: 28px; position: relative; font-size: 17px; line-height: 1.35; }
.hm-ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.hm-protect { margin-top: 10px; }
.hm-protect div { padding: 16px 0; }
.hm-protect div + div { box-shadow: inset 0 1px 0 var(--hair); }
.hm-protect dt { font-size: 17px; font-weight: 600; }
.hm-protect dd { font-size: 14px; line-height: 1.43; color: var(--grey); margin-top: 3px; }

/* ---------- film ---------- */
.hm-film { border: 0; padding: 0; background: #000; border-radius: 20px; width: min(94vw, 960px); max-height: 90vh; overflow: hidden; }
.hm-film::backdrop { background: rgba(0, 0, 0, 0.8); }
.hm-film video { width: 100%; max-height: 90vh; }
.hm-film__close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.85) !important; color: #000; font-size: 22px; line-height: 1; }

/* ---------- motion (Apple-style reveals) ---------- */
.hm-hero__head, .hm-hero__media, .hm-platter { animation: hm-rise 1.1s var(--ease) both; }
.hm-hero__media { animation-name: hm-zoom; animation-duration: 1.6s; animation-delay: .1s; }
.hm-platter { animation-delay: .5s; }
@keyframes hm-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hm-zoom { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
.hm-js .hm-reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--hm-delay, 0s); }
.hm-js .hm-reveal.is-in { opacity: 1; transform: none; }

/* ---------- larger screens ---------- */
@media (min-width: 734px) {
  .hm { --gutter: 40px; }
  .hm-section { padding: 100px 0; }
  .hm-h2 { font-size: 48px; line-height: 1.08; letter-spacing: -0.003em; }
  .hm-h2--big { font-size: 64px; }
  .hm-hero { padding-top: 56px; }
  .hm-hero__kicker { font-size: 28px; }
  .hm-hero__title { font-size: 80px; line-height: 1.05; letter-spacing: -0.015em; }
  .hm-platter { width: 100%; max-width: var(--col); margin: 0 auto; border-radius: 18px 18px 0 0; padding: 20px 28px; }
  .hm-lead { font-size: 21px; }
  .hm-lead--muted { font-size: 21px; line-height: 1.38; letter-spacing: 0.011em; }
  .hm-story__eyebrow { font-size: 24px; }
  .hm-story__title { font-size: 64px; line-height: 1.06; letter-spacing: -0.009em; }
  .hm-story__body { font-size: 21px; line-height: 1.38; letter-spacing: 0.011em; }
  .hm-facts { grid-template-columns: repeat(4, 1fr); }
  .hm-grid--2 { grid-template-columns: 1fr 1fr; }
  .hm-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .hm-hl { flex-basis: 372px; height: 600px; padding: 40px 32px 0; }
  .hm-hl__lead { font-size: 24px; line-height: 1.17; letter-spacing: 0.009em; }
  .hm-hl .hm-hl__photo { margin-inline: -32px; width: calc(100% + 64px); }
  .hm-hl .hm-hl__photo:first-child { margin: -40px -32px 20px; }
  .hm-gallery__track { padding-inline: max(var(--gutter), calc((100vw - var(--col)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--col)) / 2)); }
  .hm-scroller { padding-inline: max(var(--gutter), calc((100vw - var(--col)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--col)) / 2)); }
  .hm-scroller > li { flex-basis: 372px; }
  .hm-scroller--videos > li { flex-basis: 280px; }
  .hm-layers { grid-template-columns: 1fr 1fr; align-items: start; }
  .hm-layers__diagram { grid-template-rows: repeat(4, 92px); }
  .hm-position { display: grid; grid-template-columns: 1fr 1fr; padding: 52px; }
  .hm-card { padding: 40px 36px; }
  .hm-result { padding: 16px 16px 32px; }
  .hm-localnav__inner { top: 10px; max-width: 1004px; margin-inline: auto; padding: 0 10px 0 24px; }
  .hm-clinical { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .hm-clinical li:last-child:nth-child(odd) { grid-column: auto; }
  .hm-clinical__num { font-size: 56px; }
  .hm-compare { padding: 56px 40px 64px; }
  .hm-compare__rows { grid-template-columns: repeat(3, 1fr); gap: 48px 24px; }
  .hm-compare__rows dd { font-size: 48px; }
}
@media (min-width: 1069px) {
  .hm-section { padding: 120px 0; }
  .hm-h2 { font-size: 56px; line-height: 1.07; }
  .hm-hero__title { font-size: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm *, .hm *::before, .hm *::after { animation: none !important; transition: none !important; }
  .hm-js .hm-reveal { opacity: 1; transform: none; }
}

/* ---------- buy page (/himask): Apple "Buy iPhone" layout ---------- */
.hm-buy__top { padding: 40px 0 8px; }
.hm-buy__new { font-size: 14px; font-weight: 600; color: #b64400; letter-spacing: -0.016em; }
.hm-buy__title { font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: 0; margin-top: 4px; }
.hm-buy__from { font-size: 17px; margin-top: 10px; color: var(--ink); }
.hm-buy__gallery { margin-top: 24px; }
.hm-buy-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter); scrollbar-width: none; }
.hm-buy-cards::-webkit-scrollbar { display: none; }
.hm-buy-cards > li { flex: 0 0 100%; scroll-snap-align: start; background: #f2f2f2; border-radius: var(--r); aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hm-buy-cards > li[hidden] { display: none; }
.hm-buy-cards img { width: 100%; height: 100%; object-fit: cover; }
.hm-buy-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.hm-buy-dots button { width: 8px; height: 8px; border-radius: 50%; background: #d2d2d7; }
.hm-buy-dots button[aria-current="true"] { background: var(--ink); }
.hm-buy__step { padding: 40px 0 0; }
.hm-buy__h2 { font-family: var(--display); font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: 0.009em; }
.hm-buy__h2 span { color: var(--grey); }
.hm-finishes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.hm-finish { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 12px; border-radius: 18px; box-shadow: inset 0 0 0 1px #86868b; font-size: 17px; font-weight: 600; transition: box-shadow .2s; }
.hm-finish[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--blue); }
.hm-finish .hm-swatch { outline: none; width: 34px; height: 34px; }
.hm-bag { background: var(--page); border-radius: var(--r); padding: 28px 24px; display: grid; gap: 20px; }
.hm-bag__title { font-family: var(--display); font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: 0.007em; }
.hm-bag__name { font-size: 17px; color: var(--grey); margin-top: 6px; }
.hm-bag__price { font-family: var(--display); font-size: 28px; font-weight: 600; }
.hm-bag__note { font-size: 14px; color: var(--grey); margin-top: 2px; }
.hm-bag__add { width: 100%; margin-top: 16px; min-height: 50px; font-size: 17px; }
.hm-bag__perks { display: grid; gap: 14px; padding-top: 18px; box-shadow: inset 0 1px 0 var(--line); }
.hm-bag__perks li { display: grid; font-size: 14px; }
.hm-bag__perks strong { font-weight: 600; font-size: 15px; }
.hm-bag__perks span { color: var(--grey); }
.hm-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.hm-box li { background: #fff; border-radius: 20px; padding: 18px 14px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hm-box img { width: 100%; max-width: 180px; aspect-ratio: 1 / 1; object-fit: contain; }
.hm-box .hm-box__main { grid-column: 1 / -1; }
.hm-box .hm-box__main img { max-width: 300px; aspect-ratio: 424 / 376; }
.hm-box p { font-size: 14px; line-height: 1.3; font-weight: 600; margin-top: 10px; letter-spacing: -0.016em; }
.hm-buy__faq { padding: 0; margin-top: 24px; }
.hm-buy__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin-top: 20px; }
@media (min-width: 734px) {
  .hm-buy__top { padding-top: 56px; }
  .hm-buy__title { font-size: 56px; }
  .hm-buy-cards::after { content: ""; flex: 0 0 1px; }
  .hm-buy-cards > li { flex-basis: 440px; aspect-ratio: 4 / 5; }
  .hm-buy-cards { padding-inline: max(var(--gutter), calc((100vw - 980px) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - 980px) / 2)); }
  .hm-buy__h2 { font-size: 28px; }
  .hm-finishes { max-width: 480px; }
  .hm-bag { grid-template-columns: 1fr auto; align-items: start; padding: 40px; }
  .hm-bag__buy { text-align: right; min-width: 260px; }
  .hm-bag__perks { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .hm-box { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hm-box .hm-box__main { grid-column: span 3; }
}
#hm-buy-bag { padding-bottom: 56px; }
.hm-box li:last-child:nth-child(even) { grid-column: 1 / -1; }
@media (min-width: 734px) { .hm-box li:last-child:nth-child(even) { grid-column: auto; } #hm-buy-bag { padding-bottom: 88px; } }
/* The base stylesheet sets overflow-x:hidden on html, body and main, which makes each a scroll
   container and stops position:sticky. clip hides sideways overflow without that side effect. */
html:has(main.hm), html:has(main.hm) body, html main.hm { overflow-x: clip !important; overflow-y: visible !important; }
