/* Kelvane 01: portfolio sample by Wiggen Digital */

@property --glow { syntax: '<color>'; inherits: true; initial-value: #33474f; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #bccfd9; }

:root {
  --bg: #0b0c0e;
  --line: rgba(255, 255, 255, .12);
  --text: #eeece6;
  --muted: #a9acb1;
  --paper: #ebe7de;
  --ink: #121316;
  --ink-muted: #51555b;
  --ink-line: rgba(18, 19, 22, .16);
  --finish: #a9bcc6;
  --print: #727f85;
  --accent: #bccfd9;
  --glow: #33474f;
  --hot: #ee8152;
  --cold: #93bdd3;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  transition: --glow 1.2s ease, --accent .6s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, ol, ul, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.specs :focus-visible, .reserve :focus-visible { outline-color: var(--ink); }
.card :focus-visible { outline-color: var(--text); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--text); color: var(--ink); padding: .6rem 1rem; border-radius: 999px;
  transition: top .2s;
}
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), 78rem); margin-inline: auto; }

/* ---------- Type ---------- */
h1, h2, h3 { text-wrap: balance; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1;
}
h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); }
h1 em { font-style: italic; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75em;
  min-height: 3.25rem; padding: 0 1.5rem;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 500; font-size: 1rem; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .3s, color .3s, box-shadow .3s;
}
.btn--solid { background: var(--text); color: var(--ink); padding-right: .5rem; }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(255, 255, 255, .35); }
.btn__price {
  display: inline-flex; align-items: center; height: 2.35rem; padding: 0 .9rem;
  border-radius: 999px; background: var(--ink); color: var(--text);
  font-size: .9rem; font-weight: 500;
}
.btn--ghost { padding: 0 .5rem; color: var(--text); }
.btn--ghost span { transition: transform .35s var(--ease); display: inline-block; }
.btn--ghost:hover span { transform: translateY(4px); }
.btn--accent { background: var(--accent); color: var(--ink); gap: .32em; }
.btn--accent:hover { transform: translateY(-2px); }
.btn--accent.is-done { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); cursor: default; transform: none; }
.btn--wide { width: 100%; }

/* ---------- Fixed layers ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 68% 48%, color-mix(in srgb, var(--glow) 62%, transparent), transparent 72%),
    radial-gradient(50% 40% at 12% 100%, color-mix(in srgb, var(--glow) 30%, transparent), transparent 70%),
    var(--bg);
}
.stage {
  position: fixed; left: 0; top: 0; z-index: 1;
  width: 100%; height: 100vh; height: 100lvh;
  pointer-events: none;
  opacity: 0; transition: opacity .5s ease;
}
.stage-ready .stage { opacity: 1; }
.stage.is-idle { visibility: hidden; }
.no-webgl .stage, .no-js .stage { display: none; }
/* A whisper of film grain over the dark stage: it breaks up banding in the gradients. */
.grain {
  position: fixed; left: 0; top: 0; z-index: 1;
  width: 100%; height: 100vh; height: 100lvh;
  pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 -.08'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .footer { position: relative; z-index: 2; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 20; top: .9rem; left: 50%; transform: translateX(-50%);
  width: min(100% - 1.5rem, 46rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .4rem .4rem .4rem 1.1rem;
  border-radius: 999px;
  background: rgba(17, 18, 21, .6);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background-color .4s;
}
.nav.is-scrolled { background: rgba(17, 18, 21, .9); }
.nav__brand { display: flex; align-items: center; gap: .5rem; font-weight: 600; letter-spacing: .01em; }
.nav__mark { width: 1.35rem; height: 1.35rem; color: var(--accent); }
.nav__links { display: flex; gap: 1.75rem; font-size: .92rem; color: #c3c6ca; }
.nav__links a { transition: color .2s; padding: .4rem 0; }
.nav__links a:hover { color: #fff; }
.nav__cta {
  display: inline-flex; align-items: center; gap: .45em; height: 2.4rem; padding: 0 1.05rem;
  border-radius: 999px; background: var(--text); color: var(--ink);
  font-size: .9rem; font-weight: 500; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: clip;   /* the poster's light pool is wider than the page */
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding: 7.5rem max(var(--gutter), calc((100% - 78rem) / 2)) clamp(1.75rem, 4vh, 3rem);
}
.hero__copy { align-self: center; max-width: min(46rem, 56vw); padding-bottom: 2vh; }
.hero__title { font-size: clamp(2.6rem, 7.4vw, 7.25rem); line-height: .98; margin: 0 0 1.6rem; }
.hero__title > * { display: block; }
.hero__lede { max-width: 32rem; font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 2.1rem; }

.hero__stats { display: flex; gap: clamp(1.5rem, 4vw, 3.75rem); padding-top: 1.4rem; border-top: 1px solid var(--line); max-width: 46rem; }
.hero__stats dt { font-size: .88rem; color: var(--muted); }
.hero__stats dd { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.1; }
.hero__stats small { font-family: var(--sans); font-size: .42em; color: var(--muted); margin-left: .2em; letter-spacing: 0; }

/* Load-in: the hero copy waits for its fonts, then rises into place once. */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js .hero [data-in] { visibility: hidden; }
.js.fonts-ready .hero [data-in] {
  visibility: visible;
  animation: rise .9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms + 60ms);
}

/* ---------- Static bottle: loading poster and no-WebGL artwork ---------- */
.poster { position: absolute; margin: 0; pointer-events: none; aspect-ratio: 120 / 276.7; transform: translate(-50%, -50%); }
.poster svg { width: 100%; height: 100%; overflow: visible; }
.poster::before, .poster::after { content: ''; position: absolute; left: 50%; z-index: -1; transform: translateX(-50%); }
.poster::before { bottom: -9%; width: 520%; height: 22%; background: radial-gradient(closest-side, color-mix(in srgb, var(--finish) 26%, transparent), transparent); }
.poster::after { bottom: -2.4%; width: 132%; height: 6%; background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent); }
/* Once the model has drawn, the poster fades out underneath it. It stays in the accessibility
   tree (opacity, not visibility) because it carries the product's text description. */
.poster--hero { left: 75%; top: 51.5vh; top: 51.5svh; height: 72vh; height: 72svh; transition: opacity .3s ease .45s; }
.stage-ready .poster--hero { opacity: 0; }
.poster--anatomy, .poster--finishes { display: none; }
.no-webgl .poster--finishes, .no-js .poster--finishes { display: block; left: 27%; top: 51%; height: 70vh; height: 70svh; }

/* ---------- Construction sequence ---------- */
.anatomy { position: relative; height: 560vh; overflow-x: clip; }
.anatomy__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.anatomy__grid {
  --cols: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  height: 100%; width: min(100% - 2 * var(--gutter), 78rem); margin-inline: auto;
  display: grid; grid-template-columns: var(--cols); grid-template-rows: auto minmax(0, 1fr);
  column-gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(7.25rem, 15vh, 10rem) 0 clamp(4.5rem, 14vh, 9rem);
}
.anatomy__head { grid-column: 1; grid-row: 1; }
.anatomy__head h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); }

.callouts { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: var(--cols); column-gap: clamp(1rem, 2vw, 2rem); align-items: center; pointer-events: none; }
.callout { grid-row: 1; will-change: opacity, transform; }
.callout--a { grid-column: 1; }
.callout--b { grid-column: 3; }
.js .callout { opacity: 0; }
.callout h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.5vw, 2.4rem); line-height: 1.06; letter-spacing: -.01em; margin: 0 0 1rem; }
.callout p { color: var(--muted); font-size: 1.02rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.chips li {
  font-size: .85rem; line-height: 1.2;
  padding: .42rem .85rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text);
}
/* Section-cut labels: a dot on the layer, a hairline, and the name in the right-hand column. */
.layers { position: absolute; inset: 0; pointer-events: none; opacity: 0; visibility: hidden; }
.layer { position: absolute; left: 0; top: 0; height: 0; border-top: 1px solid rgba(255, 255, 255, .34); will-change: transform, width; }
.layer::before { content: ''; position: absolute; left: -3px; top: -3.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px rgba(11, 12, 14, .55); }
.layer span { position: absolute; left: 100%; top: 0; transform: translateY(-50%); padding-left: .75rem; white-space: nowrap; font-size: .92rem; color: var(--text); }
:is(.no-js, .static-anatomy) .layers { display: none; }

.anatomy__rail {
  position: absolute; right: var(--gutter); bottom: clamp(1.75rem, 4vh, 3rem); width: 1px; height: 5.5rem;
  background: var(--line);
}
.anatomy__rail span { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: top; }

/* Static layout: used without WebGL, without JS, and for reduced motion */
:is(.no-js, .static-anatomy) .anatomy { height: auto; background: var(--bg); }
:is(.no-js, .static-anatomy) .anatomy__sticky { position: static; height: auto; overflow: visible; }
:is(.no-js, .static-anatomy) .anatomy__grid {
  height: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); grid-template-rows: auto auto;
  gap: 3.5rem clamp(2rem, 6vw, 6rem); padding: clamp(5rem, 12vh, 9rem) 0; align-items: center;
}
:is(.no-js, .static-anatomy) .anatomy__head { grid-column: 1 / -1; }
:is(.no-js, .static-anatomy) .anatomy__head h2 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); }
:is(.no-js, .static-anatomy) .anatomy__rail { display: none; }
:is(.no-js, .static-anatomy) .poster--anatomy { display: block; position: relative; transform: none; grid-column: 1; grid-row: 2; height: min(34rem, 70vh); justify-self: center; }
:is(.no-js, .static-anatomy) .callouts { grid-column: 2; grid-row: 2; grid-template-columns: 1fr 1fr; gap: 3rem 3.5rem; align-items: start; pointer-events: auto; }
:is(.no-js, .static-anatomy) .callout { grid-column: auto; grid-row: auto; opacity: 1; }

/* ---------- Specifications ---------- */
.specs { background: var(--paper); color: var(--ink); padding: clamp(5.5rem, 14vh, 10rem) 0; border-radius: 2rem 2rem 0 0; }
.specs__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: end; }
.specs__intro { color: var(--ink-muted); font-size: 1.06rem; max-width: 27rem; padding-bottom: .4rem; }
.specs__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 7vh, 5rem); align-items: start; }

.chart { background: var(--ink); color: var(--text); border-radius: 1.5rem; padding: clamp(1.25rem, 2.6vw, 2.25rem); }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6rem 1.5rem; margin-bottom: 1.4rem; }
.chart__title { font-size: 1.02rem; font-weight: 500; }
.chart__legend { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .88rem; color: #b4b7bc; }
.chart__legend > span { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.k { width: .9rem; height: 3px; border-radius: 2px; display: inline-block; }
.k--hot { background: var(--hot); }
.k--cold { background: var(--cold); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__grid path { stroke: rgba(255, 255, 255, .09); stroke-width: 1; fill: none; }
.chart__axis text, .chart__roomlabel { font-family: var(--sans); font-size: 12px; fill: #b4b7bc; }
.chart__room { stroke: rgba(255, 255, 255, .4); stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
.chart__line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart__line--hot { stroke: var(--hot); }
.chart__line--cold { stroke: var(--cold); }
.chart__mark circle { stroke: var(--ink); stroke-width: 3; }
.chart__mark .m--hot { fill: var(--hot); }
.chart__mark .m--cold { fill: var(--cold); }
.chart__mark text { font-family: var(--sans); font-size: 13.5px; font-weight: 500; fill: var(--text); }

.speclist > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--ink-line); align-items: baseline; }
.speclist > div:last-child { border-bottom: 1px solid var(--ink-line); }
.speclist dt { font-size: .95rem; color: var(--ink-muted); }
.speclist dd { font-size: 1.2rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.speclist dd span { display: block; font-size: .9rem; font-weight: 400; color: var(--ink-muted); letter-spacing: 0; }

/* Spare parts */
.parts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(4rem, 10vh, 7rem); align-items: start; }
.parts h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.05; letter-spacing: -.01em; margin-bottom: 1rem; }
.parts p { color: var(--ink-muted); max-width: 26rem; }
.parts__table { width: 100%; }
.parts__table th, .parts__table td { text-align: left; padding: 1.05rem 1.25rem 1.05rem 0; border-top: 1px solid var(--ink-line); vertical-align: baseline; }
.parts__table thead th { font-size: .9rem; font-weight: 400; color: var(--ink-muted); border-top: 0; padding-top: 0; padding-bottom: .7rem; }
.parts__table tbody th { font-size: 1.12rem; font-weight: 500; letter-spacing: -.01em; }
.parts__table tbody td { color: var(--ink-muted); }
.parts__table :is(th, td):last-child { text-align: right; padding-right: 0; white-space: nowrap; }
.parts__table tbody td:last-child { color: var(--ink); font-weight: 500; font-size: 1.12rem; }
.parts__table tbody tr:last-child > * { border-bottom: 1px solid var(--ink-line); }

/* ---------- Colours ---------- */
.finishes { position: relative; height: 170vh; overflow-x: clip; }
.finishes__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; padding: 6rem var(--gutter) 2rem; }
.finishes__panel { width: min(31rem, 44vw); margin-left: 52%; }
.finishes__panel h2 { font-size: clamp(2.1rem, 3.9vw, 3.6rem); margin: 0 0 1.3rem; }
.finishes__intro { color: var(--muted); font-size: 1.05rem; }

.swatches { display: flex; gap: clamp(.5rem, 1.4vw, 1.1rem); margin-top: 2.25rem; }
.swatch { position: relative; display: grid; justify-items: center; gap: .6rem; cursor: pointer; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.swatch__dot {
  width: 3.1rem; height: 3.1rem; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .5), transparent 46%),
    var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  outline: 1.5px solid transparent; outline-offset: 4px;
  transition: outline-color .35s var(--ease), transform .35s var(--ease);
}
.swatch:hover .swatch__dot { transform: scale(1.06); }
.swatch input:checked + .swatch__dot { outline-color: var(--text); }
.swatch input:focus-visible + .swatch__dot { outline: 3px solid var(--accent); outline-offset: 4px; }
.swatch__name { font-size: .88rem; color: var(--muted); transition: color .3s; }
.swatch input:checked ~ .swatch__name { color: var(--text); }

.finish-note { margin-top: 2.25rem; padding-top: 1.4rem; border-top: 1px solid var(--line); min-height: 9.5rem; }
.finish-note__name { font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--accent); }
.finish-note__text { margin-top: .7rem; color: var(--muted); }

/* ---------- Reserve ---------- */
.reserve { background: var(--paper); color: var(--ink); padding: clamp(5.5rem, 14vh, 10rem) 0; border-radius: 2rem; }
.reserve__wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.reserve__copy h2 { margin: 0 0 1.5rem; }
.reserve__copy > p { color: var(--ink-muted); font-size: 1.08rem; max-width: 32rem; }
.terms { margin-top: 2.25rem; max-width: 34rem; }
.terms > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--ink-line); }
.terms > div:last-child { border-bottom: 1px solid var(--ink-line); }
.terms dt { color: var(--ink-muted); font-size: .95rem; }
.terms dd { font-weight: 500; }

.card { background: var(--ink); color: var(--text); border-radius: 1.75rem; padding: clamp(1.4rem, 2.6vw, 2.25rem); box-shadow: 0 40px 80px -40px rgba(18, 19, 22, .55); }
.card__top { display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center; }
.card__thumb {
  width: 4.5rem; height: 5.75rem; border-radius: 1rem; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--glow) 90%, #fff 8%), #191a1e 80%);
}
.card__thumb svg { height: 4.6rem; width: auto; }
.card__name { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; }
.card__variant { color: var(--muted); font-size: .95rem; }
.card__price { font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -.02em; }
.card__cur { font-size: .45em; vertical-align: .85em; margin-right: .08em; color: var(--muted); }
.card__lines { margin: 1.6rem 0 1.5rem; }
.card__lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: .78rem 0; border-top: 1px solid var(--line); font-size: .97rem; }
.card__lines dt { color: var(--muted); }
.card__total { font-weight: 600; }
.card__total dt { color: var(--text); }
.card__note { margin-top: 1rem; font-size: .9rem; color: var(--muted); text-align: center; min-height: 2.9em; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); padding: clamp(3.5rem, 8vh, 6rem) 0 2rem; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1.1rem; }
.footer__brand svg { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.footer__line { color: var(--muted); }
.footer__nav { display: flex; gap: 1.75rem; font-size: .95rem; color: var(--muted); }
.footer__nav a { padding: .4rem 0; transition: color .2s; }
.footer__nav a:hover { color: var(--text); }
.footer__word {
  font-family: var(--serif); font-size: clamp(5rem, 25vw, 24rem); line-height: .8; letter-spacing: -.03em;
  text-align: center; margin: clamp(2rem, 6vh, 4rem) 0 clamp(1.5rem, 4vh, 3rem); white-space: nowrap;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, transparent), transparent 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

/* ---------- Short desktop windows ---------- */
@media (min-width: 900px) and (max-height: 720px) {
  .hero__title { font-size: clamp(2.6rem, 6vw, 5rem); }
  .anatomy__grid { padding-top: 7rem; padding-bottom: 3.5rem; }
  .callout h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: .7rem; }
  .callout p { font-size: .97rem; line-height: 1.5; }
}
@media (min-width: 900px) and (max-height: 600px) {
  .callout .chips { display: none; }
}

/* ---------- Phones and tablets, portrait ---------- */
@media (max-width: 899px) {
  .nav__links { display: none; }

  .hero { padding-top: 5.75rem; grid-template-rows: auto 1fr; }
  .hero__copy { align-self: start; max-width: 38rem; padding-bottom: 0; }
  .hero__title { font-size: clamp(2.5rem, 12.2vw, 5rem); margin: 0 0 1rem; }
  .hero__lede { font-size: .98rem; max-width: 34rem; }
  .hero__actions { margin-top: 1.4rem; }
  .hero__actions .btn--ghost { display: none; }
  .hero__stats {
    align-self: end; max-width: none; border-top: 0; padding-top: 0;
    display: grid; grid-auto-flow: column; grid-template-rows: auto auto; justify-content: space-between; gap: 1.1rem 0;
    min-height: 38svh; align-content: end;
  }
  .hero__stats div:nth-child(n + 3) { text-align: right; }
  .hero__stats dd { font-size: 1.9rem; }
  .poster--hero { left: 50%; top: 74.5vh; top: 74.5svh; height: 39vh; height: 39svh; }

  .anatomy { height: 520vh; }
  .anatomy__grid { display: flex; flex-direction: column; justify-content: space-between; padding: 5.4rem 0 clamp(1.25rem, 4svh, 2.5rem); }
  .anatomy__head h2 { font-size: clamp(1.3rem, 5.6vw, 1.9rem); max-width: 12em; color: var(--muted); }
  .callouts { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; }
  .callout, .callout--a, .callout--b { grid-area: 1 / 1; min-height: 27svh; padding-right: 1.25rem; max-width: 34rem; }
  .callout h3 { font-size: clamp(1.55rem, 6.6vw, 2.1rem); margin: 0 0 .6rem; }
  .callout p { font-size: .95rem; line-height: 1.5; }
  .chips { margin-top: .9rem; }
  .anatomy__rail { height: 4rem; right: 1rem; }
  .layers { display: none; }

  :is(.no-js, .static-anatomy) .anatomy__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding: 5rem 0; }
  :is(.no-js, .static-anatomy) .anatomy__head h2 { font-size: clamp(2.25rem, 9vw, 3.25rem); max-width: none; color: inherit; }
  :is(.no-js, .static-anatomy) .poster--anatomy { grid-column: 1; grid-row: auto; height: 46svh; }
  :is(.no-js, .static-anatomy) .callouts { grid-column: 1; grid-row: auto; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  :is(.no-js, .static-anatomy) .callout { grid-area: auto; min-height: 0; padding-right: 0; }

  .specs { border-radius: 1.5rem 1.5rem 0 0; }
  .reserve { border-radius: 1.5rem; }
  .specs__head, .specs__grid, .reserve__wrap, .parts { grid-template-columns: minmax(0, 1fr); }
  .chart__axis text, .chart__roomlabel { font-size: 16px; }
  .chart__mark text { font-size: 18px; }
  .parts__table th, .parts__table td { padding-right: .8rem; }
  .parts__table tbody th { font-size: 1rem; }
  .parts__table tbody td { font-size: .92rem; }
  .parts__table tbody td:last-child { font-size: 1rem; }
  .terms > div { grid-template-columns: 6.5rem minmax(0, 1fr); }

  .finishes { height: 150vh; }
  .finishes__sticky { align-items: end; padding: 0 var(--gutter) clamp(1.25rem, 4svh, 2.5rem); }
  .finishes__panel { width: auto; margin-left: 0; max-width: 34rem; }
  .finishes__panel h2 { font-size: clamp(1.8rem, 7.6vw, 2.6rem); margin: 0; }
  .finishes__intro { display: none; }
  .swatches { margin-top: 1.3rem; justify-content: space-between; }
  .swatch__dot { width: 2.75rem; height: 2.75rem; }
  .swatch__name { font-size: .8rem; }
  .finish-note { margin-top: 1.2rem; padding-top: 1rem; min-height: 8.5rem; }
  .finish-note__name { font-size: 1.6rem; }
  .finish-note__text { font-size: .93rem; line-height: 1.5; margin-top: .4rem; }
  .no-webgl .poster--finishes, .no-js .poster--finishes { left: 50%; top: 30%; height: 40vh; height: 40svh; }

  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem 1.5rem; max-width: 22rem; margin-top: .5rem; }
  .footer__word { font-size: clamp(5rem, 37vw, 20rem); }
}

@media (max-width: 899px) and (max-height: 700px) {
  .callout .chips { display: none; }
  .hero__lede { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- Tablets, portrait: the same stacked layout with a larger bottle ---------- */
@media (min-width: 600px) and (max-width: 899px) and (min-height: 521px) {
  .poster--hero { top: 72vh; top: 72svh; height: 44vh; height: 44svh; }
  .hero__stats { min-height: 34svh; }
  .callout, .callout--a, .callout--b { min-height: 20svh; }
  .no-webgl .poster--finishes, .no-js .poster--finishes { height: 46vh; height: 46svh; }
}

/* ---------- Phones on their side: bottle left or right, copy beside it ---------- */
@media (max-width: 899px) and (min-width: 560px) and (max-height: 520px) and (orientation: landscape) {
  .hero { padding-top: 4.75rem; grid-template-rows: 1fr auto; }
  .hero__copy { max-width: 52vw; align-self: center; }
  .hero__title { font-size: clamp(2rem, 5.6vw, 3rem); margin-bottom: .7rem; }
  .hero__lede { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero__actions { margin-top: 1rem; }
  .btn { min-height: 2.75rem; }
  .hero__stats { display: flex; min-height: 0; max-width: 52vw; gap: 1.5rem; padding-top: .8rem; border-top: 1px solid var(--line); margin-top: 1.25rem; }
  .hero__stats div:nth-child(n + 3) { text-align: left; }
  .hero__stats dd { font-size: 1.5rem; }
  .poster--hero { left: 77%; top: 58vh; top: 58svh; height: 66vh; height: 66svh; }

  .anatomy__grid {
    --cols: minmax(0, 1fr) minmax(0, 1fr);
    display: grid; grid-template-columns: var(--cols); grid-template-rows: auto minmax(0, 1fr);
    padding: 4.6rem 0 1rem; column-gap: 1.5rem;
  }
  .anatomy__head { grid-column: 2; }
  .anatomy__head h2 { font-size: 1.2rem; max-width: none; }
  .callouts { grid-column: 1 / -1; grid-row: 2; grid-template-columns: var(--cols); column-gap: 1.5rem; align-items: center; }
  .callout, .callout--a, .callout--b { grid-area: 1 / 2; min-height: 0; padding-right: 2rem; }
  .callout h3 { font-size: 1.45rem; margin-bottom: .45rem; }
  .callout p { font-size: .9rem; line-height: 1.45; }
  .callout .chips { display: none; }

  .finishes__sticky { align-items: center; padding: 4.5rem var(--gutter) .75rem; }
  .finishes__panel { margin-left: 50%; width: auto; }
  .finishes__panel h2 { font-size: 1.6rem; }
  .swatches { margin-top: .9rem; justify-content: flex-start; gap: .9rem; }
  .swatch__dot { width: 2.3rem; height: 2.3rem; }
  .finish-note { margin-top: .8rem; padding-top: .7rem; min-height: 0; }
  .finish-note__name { font-size: 1.3rem; }
  .finish-note__text { font-size: .88rem; line-height: 1.4; }
  .no-webgl .poster--finishes, .no-js .poster--finishes { left: 24%; top: 58%; height: 66vh; height: 66svh; }
}

/* ---------- Reduced motion (system setting, or ?still) ---------- */
.reduced-motion { scroll-behavior: auto; }
.reduced-motion .hero [data-in] { visibility: visible; animation: none; }
.reduced-motion .finishes { height: auto; }
.reduced-motion .finishes__sticky { position: relative; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .js .hero [data-in] { visibility: visible; animation: none; }
  .finishes { height: auto; }
  .finishes__sticky { position: relative; }
}
