/* MedBed site design: a night in light. Header and footer also load over the older pages' stylesheets. */
:root {
    --night: #0c0809;
    --night-2: #171011;
    --ink: #1b1412;
    --ink-soft: #5d524c;
    --linen: #efe8dc;
    --linen-2: #e4dbcc;
    --cream: #f8f3ea;
    --rule: rgba(27, 20, 18, .18);
    --rule-night: rgba(248, 243, 234, .16);
    --on-night-soft: #b4a89f;
    --ember: #ff4a24;
    --ember-deep: #c32f12;
    --ice: #34beff;
    --plum: #b78cc4;
    --glow: var(--ember);
    --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'DM Mono', ui-monospace, Menlo, Consolas, monospace;
    --gutter: clamp(20px, 3.4vw, 56px);
    --space: clamp(80px, 11vw, 176px);
}
html[data-light="blue"] { --glow: var(--ice); }
html[data-light="both"] { --glow: #c06bff; }

/* Base ------------------------------------------------------------- */
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
.mb-site, .mb-site *, .mb-site *::before, .mb-site *::after { box-sizing: border-box; }
.mb-site {
    margin: 0;
    background: var(--night);
    color: var(--ink);
    font: 400 18px/1.6 var(--sans);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
:where(.mb-site) img { display: block; max-width: 100%; height: auto; }
:where(.mb-site) a { color: inherit; }
:where(.mb-site) :is(h1, h2, h3) { margin: 0 0 .4em; font-family: var(--display); font-weight: 400; line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
:where(.mb-site) h2 { font-size: clamp(2.6rem, 5.5vw, 5rem); }
:where(.mb-site) h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.08; }
:where(.mb-site) p { margin: 0 0 1em; }
:where(.mb-site) p:where(:last-child) { margin-bottom: 0; }
:where(.mb-site) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
:where(.mb-site) em { font-style: italic; }
.mb-site :focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 3px; }

.mb-skip { position: fixed; left: 12px; top: -80px; z-index: 300; padding: 10px 16px; background: #fff; color: #000 !important; border-radius: 6px; }
.mb-skip:focus { top: 12px; }

.x-wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: var(--gutter); }
.x-linen { background: var(--linen); color: var(--ink); }
.x-label { font: 400 .78rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.x-small { font-size: .9rem; opacity: .75; }
.x-lead { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.4; }
.x-display { font-size: clamp(3rem, 8vw, 8rem); line-height: .96; }
.x-display em { color: var(--ember-deep); }

.x-btn, .mb-site a.x-btn {
    display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 30px;
    border: 0; border-radius: 100px; background: var(--ink); color: var(--cream);
    font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
    transition: background .25s, color .25s, transform .25s;
}
.x-btn::after { content: '\2192'; transition: transform .25s; }
.x-btn:hover { background: var(--ember); color: #190500; }
.x-btn:hover::after { transform: translateX(5px); }
.mb-site a.x-btn--light, .x-btn--light { background: var(--cream); color: var(--ink); }

/* Arrival */
.x-arrive { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.x-arrive.is-in { opacity: 1; transform: none; }

/* Rows: ruled lists used across the page */
.x-rows { border-top: 1px solid var(--rule); margin-top: 28px; }
.x-rows li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.3; }
.x-rows--num { counter-reset: row; }
.x-rows--num li { counter-increment: row; display: flex; gap: 20px; }
.x-rows--num li::before { content: counter(row, decimal-leading-zero); font: 400 .78rem/1.9 var(--mono); opacity: .6; }

/* Header: one floating capsule ------------------------------------- */
.mb-header { position: fixed; left: 0; right: 0; top: 14px; z-index: 100; display: flex; justify-content: center; padding-inline: 14px; pointer-events: none; font-family: var(--sans); }
.mb-header__inner {
    display: flex; align-items: center; gap: 28px; width: min(100%, 880px); min-height: 58px; padding: 8px 10px 8px 20px;
    border: 1px solid rgba(248, 243, 234, .16); border-radius: 100px;
    background: rgba(12, 8, 9, .72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    pointer-events: auto;
}
.mb-brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.mb-brand__mark { display: block; width: 30px; height: 30px; }
.mb-brand__word { display: block; width: 104px; height: auto; }
.mb-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.mb-nav a { position: relative; color: #f8f3ea !important; font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.mb-nav a::before { content: ''; position: absolute; left: 50%; bottom: -9px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px 2px var(--glow); opacity: 0; transition: opacity .2s; }
.mb-nav a:hover::before, .mb-nav a.is-active::before { opacity: 1; }
.mb-header__date { flex: none; padding: 9px 16px; border-radius: 100px; background: #f8f3ea; color: #1b1412; font: 400 .72rem/1.2 var(--mono); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.mb-burger { display: none; position: relative; flex: none; width: 42px; height: 42px; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: #f8f3ea; cursor: pointer; }
.mb-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #1b1412; transition: transform .2s, top .2s; }
.mb-burger span:nth-child(1) { top: 16px; }
.mb-burger span:nth-child(2) { top: 24px; }
.mb-menu-open .mb-burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.mb-menu-open .mb-burger span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 820px) {
    .mb-header__date { display: none; }
    .mb-burger { display: block; }
    .mb-nav {
        position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; margin: 0;
        padding: 96px var(--gutter) 40px; background: var(--night); visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
    }
    .mb-menu-open { overflow: hidden; }
    .mb-menu-open .mb-nav { visibility: visible; opacity: 1; }
    .mb-nav a { font: 400 clamp(3rem, 15vw, 4.5rem)/1.1 var(--display); }
    .mb-nav a::before { display: none; }
    .mb-nav a.is-active { color: var(--ember) !important; }
    .mb-header__inner { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 8, 9, .9); }
}

/* Fiber field */
.x-field { position: absolute; inset: 0; }
.x-field canvas { display: block; width: 100%; height: 100%; }

/* Hero ------------------------------------------------------------- */
.x-hero { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding: 92px var(--gutter) 24px; background: radial-gradient(120% 70% at 50% 110%, color-mix(in srgb, var(--glow) 26%, transparent), transparent 70%), var(--night); color: var(--cream); overflow: hidden; touch-action: pan-y; transition: background .6s; }
.x-hero__top { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; color: var(--on-night-soft); }
.x-hero__top p { margin: 0; }
.x-hero__title { position: relative; z-index: 1; max-width: 12ch; margin: clamp(18px, 4vh, 44px) 0 auto !important; font-size: clamp(4rem, 13.6vw, 15rem) !important; line-height: .86 !important; letter-spacing: -.028em !important; pointer-events: none; }
.x-hero__title em { color: var(--ember); text-shadow: 0 0 .32em color-mix(in srgb, var(--ember) 60%, transparent); }
.x-hero__foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 28px; }
.x-hero__hint { margin: 0; padding: 8px 14px; border-radius: 100px; background: rgba(12, 8, 9, .72); font: 400 .78rem/1.5 var(--mono); letter-spacing: .03em; color: var(--cream); }
.x-switch { display: inline-flex; padding: 4px; border: 1px solid var(--rule-night); border-radius: 100px; background: rgba(12, 8, 9, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.x-switch button { display: inline-flex; gap: 8px; min-height: 44px; align-items: center; padding: 8px 18px; border: 0; border-radius: 100px; background: none; color: var(--cream); font: 400 .82rem/1 var(--mono); cursor: pointer; white-space: nowrap; transition: background .3s, color .3s; }
.x-switch button span { opacity: .6; }
.x-switch button.is-on { background: var(--glow); color: #120503; }
.x-switch button.is-on span { opacity: .8; }

/* Scroll-opening window */
.x-reveal { height: 240vh; background: var(--night); }
.x-reveal__stage { --open: 0; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; color: var(--cream); }
.x-reveal__stage img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 66% 50%; clip-path: inset(calc((1 - var(--open)) * 26%) calc((1 - var(--open)) * 32%) round calc((1 - var(--open)) * 28px)); transform: scale(calc(1.18 - var(--open) * .18)); }
.x-reveal__line { position: relative; margin: 0; font: 400 clamp(3.4rem, 11vw, 12rem)/.95 var(--display); letter-spacing: -.02em; text-align: center; text-shadow: 0 4px 60px rgba(0, 0, 0, .55); opacity: clamp(0, calc((var(--open) - .72) * 4), 1); }

/* Statement */
.x-statement { padding-block: var(--space) calc(var(--space) * .7); }
.x-statement__text { max-width: 22em; margin: 24px 0 clamp(48px, 7vw, 96px); font: 400 clamp(2.2rem, 5.1vw, 5.4rem)/1.04 var(--display); letter-spacing: -.012em; }
.x-statement__text span { color: rgba(27, 20, 18, .17); transition: color .35s; }
.x-statement__text span.is-lit { color: var(--ink); }
.x-statement__foot { display: grid; grid-template-columns: 1.7fr 1fr; align-items: end; gap: clamp(24px, 5vw, 80px); }
.x-statement__foot p { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.35; }

/* Benefits */
.x-benefits { padding-block: calc(var(--space) * .4) var(--space); }
.x-benefits__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 3vw, 40px); }
.x-benefits__head h2 { margin: 0; font-size: clamp(3rem, 8vw, 8rem); line-height: .96; }
.x-benefits__head p { margin: 0; }
.x-benefits__list { border-top: 1px solid var(--ink); counter-reset: b; }
.x-benefits__list li { counter-increment: b; position: relative; display: grid; grid-template-columns: clamp(44px, 7vw, 120px) 1fr; align-items: baseline; padding: clamp(10px, 1.4vw, 20px) 0; border-bottom: 1px solid var(--rule); font: 400 clamp(1.9rem, 4.6vw, 4.8rem)/1.02 var(--display); letter-spacing: -.012em; transition: color .35s, padding .35s, background .35s; }
.x-benefits__list li::before { content: counter(b, decimal-leading-zero); font: 400 .8rem/1 var(--mono); letter-spacing: 0; }
@media (hover: hover) {
    .x-benefits__list li:hover { padding-left: 18px; color: var(--ember-deep); font-style: italic; }
}
.x-diagram { display: grid; grid-template-columns: 1fr 1.9fr; align-items: end; gap: clamp(24px, 5vw, 80px); margin-top: clamp(56px, 8vw, 112px); }
.x-diagram img { width: 100%; padding: clamp(10px, 1.6vw, 24px); background: #fff; }

/* Pinned before / after */
.x-pinned { position: relative; background: var(--night); color: var(--cream); }
.x-pinned__media { position: sticky; top: 0; height: 100vh; height: 100svh; }
.x-pinned__media img { width: 100%; height: 100%; object-fit: cover; }
.x-pinned__media::after { content: ''; position: absolute; inset: 0; background: rgba(12, 8, 9, .22); }
.x-pinned__cards { position: relative; z-index: 1; display: grid; gap: 62vh; margin-top: -60vh; padding: 0 var(--gutter) 34vh; }
.x-glass { width: min(100%, 680px); padding: clamp(24px, 3.2vw, 48px); background: rgba(12, 8, 9, .74); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border: 1px solid var(--rule-night); }
.x-glass h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); }
.x-glass p { color: #ddd3ca; }
.x-glass--right { justify-self: end; }

/* What it is */
.x-what { padding-block: var(--space); }
.x-what .x-display { max-width: 11em; margin-bottom: clamp(36px, 6vw, 80px); }
.x-what__grid { display: grid; grid-template-columns: 1.75fr 1fr; align-items: end; gap: clamp(24px, 4vw, 64px); }

/* How: sideways track */
.x-how { background: var(--ink); color: var(--cream); }
.x-how .x-display em { color: var(--ember); }
.x-how__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.x-how__track { display: flex; align-items: center; gap: clamp(32px, 5vw, 96px); padding-inline: var(--gutter) 12vw; width: max-content; will-change: transform; }
.x-how__intro { width: min(70vw, 900px); flex: none; }
.x-step { flex: none; display: grid; grid-template-columns: auto minmax(240px, 340px); align-items: end; gap: clamp(20px, 3vw, 44px); }
.x-step img { height: min(74vh, 720px); width: auto; max-width: none; aspect-ratio: 508 / 694; object-fit: cover; }
.x-step__n { margin: 0 0 8px; font: 400 clamp(6rem, 12vw, 12rem)/.8 var(--display); color: var(--ember); }
.x-step p:last-child { color: #d5cbc1; }

/* Modes: the inactive half of the bed falls into shadow */
.x-modes { position: relative; background: var(--night); color: var(--cream); overflow: hidden; }
.x-modes__frame { position: relative; aspect-ratio: 1536 / 575; min-height: 300px; width: 100%; overflow: hidden; }
.x-modes__tag { position: absolute; z-index: 1; bottom: clamp(14px, 3vw, 40px); margin: 0; padding: 10px 18px; border-radius: 100px; font: 400 .8rem/1.3 var(--mono); color: #120503; transition: opacity .8s; }
.x-modes__tag strong { font-weight: 400; margin-left: 6px; }
.x-modes__tag--red { left: clamp(14px, 3vw, 40px); background: var(--ember); }
.x-modes__tag--blue { right: clamp(14px, 3vw, 40px); background: var(--ice); }
.x-modes[data-mode="red"] .x-modes__tag--blue, .x-modes[data-mode="blue"] .x-modes__tag--red { opacity: .35; }
.x-spectrum { display: flex; justify-content: space-between; gap: 16px; max-width: 560px; margin-top: 28px; padding-top: 16px; border-top: 6px solid; border-image: linear-gradient(90deg, var(--ice), #8b5cf6 35%, var(--ember) 70%, #7a1206) 1; font: 400 .78rem/1.4 var(--mono); color: var(--on-night-soft); }
.x-modes__frame img { width: 100%; height: 100%; object-fit: cover; }
.x-modes__frame::before, .x-modes__frame::after { content: ''; position: absolute; top: 0; bottom: 0; width: 50%; background: rgba(12, 8, 9, .8); transition: opacity .8s; }
.x-modes__frame::before { left: 0; opacity: 0; }
.x-modes__frame::after { right: 0; opacity: 1; }
.x-modes[data-mode="blue"] .x-modes__frame::before { opacity: 1; }
.x-modes[data-mode="blue"] .x-modes__frame::after { opacity: 0; }
.x-modes__panel { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: clamp(24px, 4vw, 72px); padding: clamp(32px, 5vw, 72px) var(--gutter) var(--space); }
.x-modes .x-display em { color: var(--cream); }
.x-modes__tabs { display: grid; gap: 10px; }
.x-mode { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; gap: 16px; width: 100%; padding: 18px 20px; border: 1px solid var(--rule-night); background: rgba(12, 8, 9, .6); color: var(--on-night-soft); font: 400 1rem/1.35 var(--sans); text-align: left; cursor: pointer; transition: border-color .3s, color .3s, background .3s; }
.x-mode strong { font: 400 1.05rem/1.2 var(--mono); }
.x-mode.is-on { color: var(--cream); }
.x-mode--red.is-on { border-color: var(--ember); background: rgba(255, 74, 36, .16); }
.x-mode--red strong { color: var(--ember); }
.x-mode--blue.is-on { border-color: var(--ice); background: rgba(52, 190, 255, .14); }
.x-mode--blue strong { color: var(--ice); }

/* Size */
.x-size { padding-block: var(--space) calc(var(--space) * .6); }
.x-size__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 56px); }
.x-size__head .x-display { max-width: 11em; margin: 0; }
.x-size__tabs { display: inline-flex; padding: 4px; border: 1px solid var(--ink); border-radius: 100px; }
.x-size__tabs button { min-height: 46px; padding: 8px 24px; border: 0; border-radius: 100px; background: none; color: var(--ink); font: 400 .85rem/1 var(--mono); cursor: pointer; transition: background .3s, color .3s; }
.x-size__tabs button.is-on { background: var(--ink); color: var(--cream); }
.x-size__stage { display: grid; grid-template-columns: 1.75fr 1fr; align-items: end; gap: clamp(24px, 4vw, 64px); }
.x-size__photos { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.x-size__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s; }
.x-size__b { opacity: 0; }
.x-size[data-size="double"] .x-size__b { opacity: 1; }
.x-size__num { margin: 0 0 8px; font: 400 clamp(4.4rem, 9.5vw, 10rem)/.9 var(--display); letter-spacing: -.03em; color: var(--ember-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.x-size__data > p:nth-child(2) { min-height: 3em; font-size: 1.1rem; line-height: 1.35; }
.x-size__data dl { display: grid; grid-template-columns: 1fr auto; margin: 22px 0 0; border-top: 1px solid var(--rule); font-size: 1.05rem; }
.x-size__data dt, .x-size__data dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.x-size__data dd { font-family: var(--mono); font-size: .9rem; }

/* Comfort */
.x-comfort { padding-block: calc(var(--space) * .5) var(--space); }
.x-comfort__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; gap: clamp(32px, 6vw, 110px); }
.x-comfort__disc { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 110px 12px rgba(255, 74, 36, .42); }
.x-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.x-tags li { padding: 10px 20px; border: 1px solid var(--ink); border-radius: 100px; font-size: 1.02rem; }

/* App: the one full-colour moment */
.x-app { padding-block: var(--space); background: var(--ember); color: #190500; }
.x-app .x-display em { color: #fff3e6; }
.x-app .x-rows, .x-app .x-rows li { border-color: rgba(25, 5, 0, .3); }
.x-app__grid { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: clamp(32px, 5vw, 88px); }
.x-app__grid > img { width: 100%; }

/* Tech */
.x-tech { position: relative; min-height: 112vh; display: flex; background: var(--night); color: var(--cream); overflow: hidden; }
.x-tech__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.x-tech::after { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 100%, rgba(255, 74, 36, .3), transparent 70%), linear-gradient(rgba(12, 8, 9, .72), rgba(12, 8, 9, .5) 45%, rgba(12, 8, 9, .9)); }
.x-tech .x-field { z-index: 1; }
.x-tech__body { position: relative; z-index: 2; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; gap: 72px; padding-block: clamp(90px, 12vw, 150px) clamp(32px, 5vw, 72px); }
.x-tech .x-display { font-size: clamp(3.6rem, 12vw, 13rem); line-height: .9; }
.x-tech .x-display em { display: block; color: var(--cream); }
.x-tech__foot { display: grid; grid-template-columns: 1fr minmax(0, 420px); align-items: end; gap: clamp(24px, 5vw, 80px); }
.x-tech figure { margin: 0; }
.x-tech figure img { width: 100%; }
.x-tech figcaption { margin-top: 8px; font: 400 .75rem/1.4 var(--mono); }

/* Make */
.x-make { padding-block: var(--space); }
.x-make .x-display { margin-bottom: clamp(36px, 6vw, 80px); max-width: 10em; }
.x-make__grid { display: grid; grid-template-columns: 1.4fr 1fr; align-items: start; gap: clamp(28px, 5vw, 88px); }
.x-make__photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1vw, 16px); }
.x-make__photos img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.75) contrast(1.05); transition: opacity .9s, transform .9s, filter .4s; }
.x-make__photos img:hover { filter: none; }
.x-make__photos img:nth-child(even) { margin-top: clamp(16px, 4vw, 64px); }
.x-make__date { margin-top: 28px; padding: 12px 16px; background: var(--ink); color: var(--cream); display: inline-block; }

/* In the box */
.x-box { padding-block: clamp(48px, 7vw, 112px); background: #fff; color: var(--ink); }
.x-box__grid { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: clamp(24px, 5vw, 80px); }
.x-box__grid > img { width: 100%; }

/* Inventor */
.x-inventor { padding-block: var(--space); background: var(--night); color: var(--cream); }
.x-inventor__grid { display: grid; grid-template-columns: minmax(0, 380px) 1fr; align-items: end; gap: clamp(28px, 6vw, 96px); }
.x-inventor__grid > img { width: 100%; }
.x-inventor__name { font-size: clamp(3.4rem, 9.6vw, 10rem) !important; line-height: .9 !important; margin-bottom: .3em !important; }
.x-inventor p:last-child { max-width: 38em; color: var(--on-night-soft); }
.x-inventor .x-lead { max-width: 30em; }

/* Research */
.x-research { padding-block: var(--space); }
.x-research__grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: clamp(32px, 6vw, 96px); }
.x-research .x-display { margin-bottom: 32px; font-size: clamp(2.8rem, 6.4vw, 6.6rem); }
.x-research__grid > div:last-child > img { width: 100%; }
.x-sources { margin-top: 20px; border-top: 1px solid var(--ink); }
.x-sources a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); font: 400 1.5rem/1.1 var(--display); text-decoration: none; transition: color .25s, padding .25s; }
.x-sources a:hover { padding-left: 10px; color: var(--ember-deep); }
.x-sources span { align-self: center; font: 400 .78rem/1.4 var(--mono); }

/* Medical */
.x-medical { padding-block: var(--space); background: var(--night-2); color: var(--cream); }
.x-medical__head { max-width: 1100px; margin-bottom: clamp(36px, 5vw, 72px); }
.x-medical__head h2 { font-size: clamp(2.2rem, 4.8vw, 4.6rem); }
.x-medical__grid { display: grid; grid-template-columns: 1fr 1.9fr; align-items: start; gap: clamp(32px, 5vw, 80px); }
.x-medical__acne { position: sticky; top: 96px; color: var(--on-night-soft); font-size: .98rem; }
.x-medical__acne strong { display: block; margin-bottom: 4px; font: 400 1.7rem/1.1 var(--display); color: var(--cream); }
.x-medical__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; color: var(--on-night-soft); font-size: .95rem; line-height: 1.45; }
.x-medical__list li { padding: 14px 0; border-top: 1px solid var(--rule-night); }
.x-medical__list strong { display: block; margin-bottom: 2px; font: 400 1.45rem/1.1 var(--display); color: var(--cream); }

/* Clouds */
.x-cloud { padding-block: clamp(48px, 7vw, 112px); background: #fff; color: var(--ink); }
.x-cloud__grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(20px, 4vw, 64px); }
.x-cloud__grid > img { width: 100%; }
.x-cloud .x-display { font-size: clamp(2.8rem, 6vw, 6.2rem); margin-bottom: 24px; }
.x-cloud p { max-width: 28em; font-size: 1.15rem; }

/* Closing */
.x-closing { position: relative; min-height: 96vh; display: flex; background: var(--night); color: var(--cream); overflow: hidden; touch-action: pan-y; }
.x-closing__body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 72px; padding-block: clamp(88px, 11vw, 150px) clamp(28px, 4vw, 56px); pointer-events: none; }
.x-closing__body a { pointer-events: auto; }
.x-closing__title { max-width: 13ch; margin: 0 !important; font-size: clamp(3.6rem, 11.5vw, 13rem) !important; line-height: .9 !important; letter-spacing: -.024em !important; }
.x-closing__title em { color: var(--ember); }
.x-closing__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.x-closing__row .x-label { margin-bottom: 4px; color: var(--on-night-soft); }
.x-closing__row a:not(.x-btn) { font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid var(--rule-night); overflow-wrap: anywhere; }

/* Inner pages ------------------------------------------------------ */
.x-pagehero { position: relative; display: flex; align-items: flex-end; min-height: 62vh; padding: 110px var(--gutter) 36px; background: var(--night); color: var(--cream); overflow: hidden; touch-action: pan-y; }
.x-pagehero__body { position: relative; z-index: 1; width: 100%; pointer-events: none; }
.x-pagehero__body a { pointer-events: auto; }
.x-pagehero h1 { margin: 0; font-size: clamp(3.8rem, 13vw, 13rem); line-height: .88; letter-spacing: -.025em; }
.x-crumbs { display: flex; gap: 10px; margin-bottom: 18px; font: 400 .78rem/1.4 var(--mono); text-transform: uppercase; color: var(--on-night-soft); }
.x-crumbs li + li::before { content: '/'; margin-right: 10px; opacity: .6; }
.x-crumbs a { text-decoration: none; }
.x-crumbs a:hover { color: var(--cream); }

.x-page { padding-block: clamp(64px, 9vw, 136px); }
.x-prose { max-width: 800px; }
.cms_area h2, .cms_area h3 { margin-top: 1.3em; }
.cms_area h3:first-child, .cms_area h2:first-child { margin-top: 0; }
.x-prose ul { margin-bottom: 1em; }
.x-prose ul li { position: relative; padding-left: 22px; }
.x-prose ul li::before { content: ''; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--ember-deep); }
.x-prose a { color: var(--ember-deep); }
.cms_area hr { margin-block: 2em; border: 0; border-top: 1px solid var(--rule); }
.cms_area table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cms_area th, .cms_area td { padding: 12px 14px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.table-responsive { overflow-x: auto; }
.x-center { text-align: center; }

/* About */
.x-about__lead { max-width: 25em; margin-bottom: clamp(40px, 6vw, 88px); font: 400 clamp(2rem, 4.1vw, 4.2rem)/1.06 var(--display); letter-spacing: -.01em; }
.x-about > img { width: 100%; }
.x-about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); max-width: 1100px; margin: clamp(32px, 5vw, 64px) 0 0 auto; }
.x-duo { display: grid; grid-template-columns: 1fr 1fr; background: var(--night); color: var(--cream); }
.x-duo article { padding: clamp(40px, 6vw, 96px) var(--gutter); font: 400 clamp(1.5rem, 2.5vw, 2.4rem)/1.14 var(--display); }
.x-duo article + article { background: var(--ember); color: #190500; }
.x-duo .x-label { margin-bottom: 28px; }
.x-faqwrap { display: grid; grid-template-columns: 1fr 2.2fr; align-items: start; gap: clamp(24px, 5vw, 80px); }

/* FAQ */
.x-faq { border-top: 1px solid var(--ink); }
.x-faq details { border-bottom: 1px solid var(--rule); }
.x-faq summary { position: relative; padding: 22px 52px 22px 0; font: 400 clamp(1.35rem, 2.1vw, 1.9rem)/1.14 var(--display); cursor: pointer; list-style: none; }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font: 300 2rem/1.2 var(--sans); color: var(--ember-deep); transition: transform .25s; }
.x-faq details[open] summary::after { transform: rotate(45deg); }
.x-faq details p { padding: 0 52px 26px 0; color: var(--ink-soft); }

/* Forms */
.x-form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 28px; }
.x-form--stack { grid-template-columns: 1fr; }
.x-input label { display: block; margin-bottom: 4px; font: 400 .75rem/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.x-input input, .x-input textarea { display: block; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; background: none; color: inherit; font: 400 1.2rem/1.4 var(--sans); }
.x-input input:focus, .x-input textarea:focus { outline: 0; border-bottom: 2px solid var(--ember); padding-bottom: 9px; }
.x-input textarea { resize: vertical; }
.x-input--full { grid-column: 1 / -1; }
.v_error { display: block; margin-top: 6px; font-size: .88rem; color: #b5230c; }
.v_error:empty { display: none; }
.x-night-card .v_error { color: #ff9b84; }
.x-night-card { padding: clamp(28px, 3.5vw, 52px); background: var(--night); color: var(--cream); }
.x-night-card h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); margin-bottom: 28px; }

.x-contact { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: clamp(36px, 6vw, 110px); }
.x-contact h2 { font-size: clamp(2.6rem, 4.6vw, 4.6rem); margin-bottom: 32px; }
.x-contact__big { display: block; padding: 14px 0; border-top: 1px solid var(--rule); font: 400 clamp(1.5rem, 2.8vw, 2.7rem)/1.1 var(--display); text-decoration: none; overflow-wrap: anywhere; transition: color .25s, padding .25s; }
.x-contact__big:hover { padding-left: 10px; color: var(--ember-deep); }
.x-contact__name { margin-bottom: 18px; font-size: .78rem; }

.x-reviews { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; gap: clamp(36px, 5vw, 88px); }
.x-reviews__form { position: sticky; top: 92px; }
.x-quote { margin: 0; padding-block: clamp(32px, 5vw, 64px); border-top: 1px solid var(--rule); }
.x-quote:first-child { padding-top: 0; border-top: 0; }
.x-quote__lead { margin-bottom: 18px; font: 400 clamp(1.9rem, 3.4vw, 3.4rem)/1.05 var(--display); letter-spacing: -.01em; }
.x-quote blockquote { margin: 0; }
.x-quote figcaption { margin-top: 20px; font: 400 .8rem/1.4 var(--mono); text-transform: uppercase; color: var(--ember-deep); }

/* Footer ----------------------------------------------------------- */
.mb-footer { padding: 28px 0 28px; background: var(--night); color: var(--on-night-soft); font: 400 .88rem/1.6 var(--sans); }
.mb-footer__inner { max-width: 1560px; margin-inline: auto; padding-inline: var(--gutter); }
.mb-footer a { color: #f8f3ea !important; }
.mb-footer__word { display: block; width: 100%; height: auto; margin-bottom: 28px; opacity: .96; }
.mb-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 36px; padding-bottom: 20px; border-bottom: 1px solid rgba(248, 243, 234, .16); }
.mb-footer__links { display: flex; gap: 24px; margin: 0; }
.mb-social { display: flex; align-items: center; gap: 18px; }
.mb-social a { display: block; opacity: .8; transition: opacity .2s; }
.mb-social a:hover { opacity: 1; }
.mb-social img { display: block; width: 17px; height: 17px; object-fit: contain; }
.mb-footer__note { max-width: 860px; margin: 18px 0 12px; }
.mb-footer__copy { margin: 0; font-size: .8rem; }

/* Responsive ------------------------------------------------------- */
@media (max-width: 1080px) {
    .x-how__intro { width: 76vw; }
    .x-medical__grid { grid-template-columns: 1fr; }
    .x-medical__acne { position: static; }
}
@media (max-width: 899px) {
    .x-how { padding-block: var(--space); }
    .x-how__stage { position: static; height: auto; overflow: visible; display: block; }
    .x-how__track { display: grid; gap: 56px; width: 100%; padding-inline: var(--gutter); }
    .x-how__intro { width: 100%; }
    .x-step { grid-template-columns: minmax(0, 1fr); }
    .x-step img { width: 100%; height: auto; }
    .x-step__n { font-size: 6rem; }
}
@media (max-width: 820px) {
    .mb-site { font-size: 17px; }
    .x-statement__foot, .x-diagram, .x-what__grid, .x-modes__panel, .x-size__head, .x-size__stage, .x-comfort__grid, .x-app__grid, .x-tech__foot, .x-make__grid, .x-box__grid, .x-inventor__grid, .x-research__grid, .x-cloud__grid, .x-faqwrap, .x-contact, .x-reviews, .x-about__cols, .x-duo { grid-template-columns: minmax(0, 1fr); }
    .x-hero__title { font-size: clamp(3.8rem, 19vw, 7rem) !important; line-height: .88 !important; }
    .x-hero__top { flex-direction: column; gap: 2px; }
    .x-hero__foot { flex-direction: column; align-items: stretch; }
    .x-switch { display: grid; grid-template-columns: repeat(3, 1fr); }
    .x-switch button { flex-direction: column; justify-content: center; gap: 3px; padding: 8px 2px; border-radius: 22px; font-size: .74rem; min-height: 54px; }
    .x-reveal { height: 200vh; }
    .x-pinned__cards { gap: 40vh; }
    .x-glass--right { justify-self: start; }
    .x-size__tabs { justify-self: start; }
    .x-comfort__disc { width: 72%; margin-inline: auto; }
    .x-inventor__grid > img { width: 72%; }
    .x-reviews__form { position: static; }
    .x-tech { min-height: 100svh; }
    .x-pagehero { min-height: 48vh; }
    .x-make__photos img:nth-child(even) { margin-top: 0; }
}
@media (max-width: 560px) {
    .x-modes__tag { font-size: .7rem; padding: 7px 12px; }
    .x-modes__tag--blue { top: 14px; bottom: auto; }
    .x-medical__list, .x-form { grid-template-columns: 1fr; }
    .x-mode { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    .x-arrive { opacity: 1; transform: none; transition: none; }
    .x-reveal { height: auto; }
    .x-reveal__stage { --open: 1; position: relative; }
    .mb-site * { transition: none !important; }
}

/* Blog */
.x-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 3vw, 40px); }
.x-card { display: block; color: inherit; text-decoration: none; border-top: 1px solid var(--ink); padding-top: 18px; }
.x-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 18px; transition: filter .3s; }
.x-card:hover img { filter: saturate(1.2) contrast(1.05); }
.x-card h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.x-card:hover h2 { color: var(--ember-deep); }
.x-back { margin-bottom: 32px; }
.x-back a { text-decoration: none; }
.x-article__img { width: 100%; margin-bottom: 32px; }

/* Spam trap, kept out of sight and out of the tab order */
.x-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
