/* =====================================================================
   BASALT MACHINES · rebuild 03 (sequel to WMF Professional Coffee Machines)
   One family (Mona Sans, variable width + weight), one accent (ember),
   one curve. Restraint, like the reference; heat, unlike it.
   ===================================================================== */
:root {
  --basalt: #0c0c0b; --card: #171716; --back: #201f1d; --graphite: #3a3936; --ash: #8b877f;
  --pumice: #c9c5bc; --bone: #ece8df; --paper: #f6f4ef; --ember: #ff5b1f; --ember-d: #d9440f; --oxide: #8c3a22;
  --f: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.65, 0, .12, 1);
  --r: 6px;
  --gap: 16px;
  --pad-x: 4vw;
  --hdr: 72px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--basalt); color: var(--bone); font: 450 16px/1.5 var(--f); font-stretch: 100%; -webkit-font-smoothing: antialiased; }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--ember); color: var(--basalt); border-radius: var(--r); font-weight: 640; text-decoration: none; transition: top .3s var(--ease); }
.skip:focus { top: 12px; }
.ember { color: var(--ember); }
.soft { color: var(--ash); }
.eyebrow { margin: 0 0 8px; font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ash); }
.is-light .eyebrow { color: #5c5953; }
.is-light .soft { color: #67635c; }

/* ---------------- buttons ---------------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 20px; font: 640 14px/1 var(--f); text-decoration: none; white-space: nowrap; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .2s var(--ease); }
.pill:active { transform: scale(.97); }
.pill--ember { background: var(--ember); color: var(--basalt); }
.pill--ember:hover { background: var(--bone); }
.pill--ghost { border: 1px solid #ffffff38; color: var(--bone); }
.pill--ghost:hover { border-color: var(--bone); background: #ffffff12; }
.is-light .pill--ghost { border-color: #0c0c0b38; color: var(--basalt); }
.pill--block { width: 100%; height: 48px; border-radius: 24px; font-size: 15px; }
.pill__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ember); color: var(--basalt); font: 640 11px/1 var(--f); }
.pill__n.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }
.iconbtn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #ffffff14; transition: background-color .15s var(--ease); }
.iconbtn:hover { background: #ffffff26; }
.iconbtn i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .45s var(--ease); }
.iconbtn i:first-child { transform: translateY(-3px); }
.iconbtn i:last-child { transform: translateY(3px); }
.iconbtn.is-x i:first-child { transform: rotate(45deg); }
.iconbtn.is-x i:last-child { transform: rotate(-45deg); }
.go, .flipbtn { position: absolute; z-index: 6; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: background-color .15s var(--ease), transform .35s var(--ease); }
.go { right: 14px; top: 14px; background: var(--ember); color: var(--basalt); }
.go:hover { background: var(--bone); transform: translateX(2px); }
.go svg, .flipbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flipbtn { right: 14px; bottom: 14px; background: #ffffff1f; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.flipbtn:hover { background: #ffffff3a; transform: rotate(-90deg); }
.is-light .flipbtn { background: #0c0c0b14; }
.is-light .flipbtn:hover { background: #0c0c0b26; }
.flipbtn--b { bottom: 14px; }

/* ---------------- header ---------------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hdr); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad-x); transition: transform .5s var(--ease), color .3s; }
.hdr.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 30px; height: 24px; fill: currentColor; }
.logo__mark path:last-child { fill: var(--ember); }
.logo__word { font: 800 19px/1 var(--f); font-stretch: 125%; letter-spacing: .12em; }
.hdr__right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.hdr__live { margin: 0; justify-self: start; display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--ash); letter-spacing: .03em; }
.hdr__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 #ff5b1f88; animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 #ff5b1f88; } 70%, 100% { box-shadow: 0 0 0 8px #ff5b1f00; } }
.hdr.is-scrolled { background: #0c0c0bcc; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.page-home .hdr.is-scrolled { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hdr.is-on-light { color: var(--basalt); }
.hdr.is-on-light.is-scrolled { background: #ece8dfcc; }
.hdr.is-on-light .iconbtn { background: #0c0c0b12; }
.hdr.is-on-light .pill--ghost { color: var(--basalt); border-color: #0c0c0b38; }

/* =====================================================================
   HOME · the horizontal bento
   ===================================================================== */
.bento { position: relative; height: 100vh; height: 100dvh; overflow: hidden; padding: var(--hdr) 0 56px; }
.bento__track { position: relative; display: flex; gap: var(--gap); height: 100%; padding: 0 var(--pad-x); width: max-content; will-change: transform; }
.bento.is-hidden .card { opacity: 0; }
.col { display: flex; flex-direction: column; gap: var(--gap); height: 100%; flex: none; }
.col > .card--s { flex: 0.62; }
.col > .card--l { flex: 1; }
.col > .card--m { flex: 1; }
.col > .card--l.card--wide { flex: 1.45; }
.row-cards { flex: 1; display: flex; gap: var(--gap); min-height: 0; }
.row-cards > .card { flex: 1; }
.bar { position: absolute; left: var(--pad-x); bottom: 22px; width: 140px; height: 3px; border-radius: 2px; background: #ffffff1f; cursor: grab; touch-action: none; }
.bar::before { content: ""; position: absolute; inset: -10px 0; }
.bar__thumb { position: absolute; left: 0; top: 0; height: 100%; width: 56px; border-radius: 2px; background: var(--bone); transition: height .2s var(--ease), top .2s var(--ease), background-color .2s; }
.bar:hover .bar__thumb, .bar.is-drag .bar__thumb { top: -1px; height: 5px; background: var(--ember); }
.bar.is-drag { cursor: grabbing; }

/* ---------------- the card ---------------- */
.card { position: relative; flex: none; min-height: 0; border-radius: var(--r); perspective: 1500px; }
.card__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; border-radius: var(--r); }
.card__face { position: absolute; inset: 0; border-radius: var(--r); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--card); }
.is-light .card__face { background: var(--bone); color: var(--basalt); }
/* the hidden face never takes clicks (3D depth sorting can put it on top) */
.card.is-flipped .card__front, .card:not(.is-flipped) .card__back { pointer-events: none; }
.card__back { background: var(--back); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; transform: rotateY(-180deg); }
.is-light .card__back { background: #dcd7cc; }
.card__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0c0c0b00 45%, #0c0c0bcc 100%); pointer-events: none; }
.card--wide .card__shade { background: linear-gradient(200deg, #0c0c0b00 40%, #0c0c0bd9 88%); }
.card__shade--soft { background: radial-gradient(70% 60% at 50% 50%, #0c0c0b10, #0c0c0b99); }
.card__text { position: absolute; left: 22px; right: 60px; bottom: 20px; z-index: 4; pointer-events: none; }
.card__text--top { top: 20px; bottom: auto; }
.card__text--mid { top: 50%; bottom: auto; transform: translateY(-50%); text-align: center; left: 16px; right: 16px; }
.card__title { margin: 0; font: 640 clamp(17px, 1.45vw, 24px)/1.18 var(--f); letter-spacing: -.01em; }
.card__title--big { font-size: clamp(28px, 2.6vw, 44px); font-stretch: 112%; letter-spacing: -.02em; }
.card__title--xl { font-size: clamp(36px, 4.2vw, 74px); line-height: 1.02; font-stretch: 118%; font-weight: 720; letter-spacing: -.03em; }
.card__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.card--xl .eyebrow { color: var(--pumice); }
/* tilt glare: a soft light that follows the pointer (our own touch) */
.card__glare { position: absolute; inset: 0; z-index: 5; border-radius: var(--r); pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), #ffffff26, #ffffff00 60%); mix-blend-mode: soft-light; }
.card:hover .card__glare { opacity: 1; }
.card__edge { position: absolute; inset: 0; z-index: 5; border-radius: var(--r); pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  box-shadow: inset 0 0 0 1px #ff5b1f00; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), #ff5b1f1f, transparent 70%); }
.card.is-dark:hover .card__edge { opacity: 1; }
.card.is-flipped .card__glare, .card.is-flipped .card__edge { opacity: 0; }

/* sizes (desktop): widths come from js (column maths) */
.card--xl .card__text { left: 34px; bottom: 32px; right: 34px; }
.card--xl .go { top: 20px; right: 20px; width: 40px; height: 40px; }
.card--foot { background: none; }

/* live 3D card: the Core 90 comes apart as the wall slides */
.card--inside .card__face { background: radial-gradient(80% 60% at 50% 62%, #262523, #121211 80%); }
.card__3d { position: absolute; inset: 0; }
.card--inside .card__face::after { content: ""; position: absolute; inset: 0 0 auto; height: 40%; z-index: 3; pointer-events: none; background: linear-gradient(#141413 34%, #14141300); border-radius: var(--r) var(--r) 0 0; }
.card__3d img { position: absolute; left: 50%; top: 58%; width: 92%; max-width: none; translate: -50% -50%; transition: opacity .6s var(--ease); }
.card__3d.is-ready img { opacity: 0; }
.card__3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.inside-labels { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.inside-meter { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 4; height: 2px; border-radius: 1px; background: #ffffff1a; }
.inside-meter i { display: block; height: 100%; background: var(--ember); transform: scaleX(0); transform-origin: left; }
.hotspot--compact span { padding: 4px 8px; font-size: 11px; }
/* gutter labels with leader lines (wide viewers) */
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.leaders path { fill: none; stroke: #ff5b1f; stroke-width: 1; opacity: 0; transition: opacity .35s var(--ease); }
.leaders circle { fill: #ff5b1f; stroke: #0c0c0b; stroke-width: 2; opacity: 0; transition: opacity .35s var(--ease); }
.has-gutter .hotspot i { display: none; }
.has-gutter .hotspot span { border-left: 2px solid var(--ember); border-radius: 0 6px 6px 0; min-width: 190px; }
.has-gutter.is-dense .hotspot span { padding: 4px 9px; font-size: 11.5px; min-width: 170px; }
.has-gutter.is-dense .hotspot small { display: none; }
.cue { position: absolute; left: calc(var(--pad-x) + 156px); bottom: 15px; margin: 0; display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ash); transition: opacity .5s var(--ease); }
.cue i { position: relative; width: 34px; height: 1px; background: #ffffff2a; overflow: hidden; }
.cue i::after { content: ""; position: absolute; inset: 0; background: var(--ember); animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.cue.is-off { opacity: 0; }

/* ---------------- back faces ---------------- */
.back__copy { margin: 0; font-size: 15px; line-height: 1.45; color: var(--pumice); max-width: 36ch; }
.is-light .back__copy { color: #3d3b37; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.facts li { font-size: 13px; color: var(--ash); }
.facts b { display: block; font: 640 26px/1 var(--f); font-stretch: 112%; color: var(--basalt); }
.ilist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ilist li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid #ffffff14; }
.ilist b { font-weight: 640; }
.ilist span { font-size: 13px; color: var(--ash); }
.mini-specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.mini-specs dt { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ash); }
.mini-specs dd { margin: 2px 0 0; font: 640 20px/1.1 var(--f); }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.card__back--photo { padding: 0; }
.card__back--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.back__over { position: relative; z-index: 1; margin-top: auto; padding: 22px; background: linear-gradient(180deg, transparent, #0c0c0bdd 40%); color: var(--bone); }
.back__over .eyebrow { color: var(--pumice); }
.back__over .back__copy { color: var(--bone); }
.cups { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; }
.cups span { grid-column: 1 / -1; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ash); }
.cups output { font: 640 28px/1 var(--f); font-stretch: 112%; min-width: 3ch; text-align: right; }
.cups input { width: 100%; accent-color: var(--ember); }
.cups__pick { margin: 0; font-size: 15px; color: var(--pumice); }
.cups__pick a { color: var(--ember); font-weight: 640; text-underline-offset: 3px; }

/* ---------------- live cards ---------------- */
.card__stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 6s linear; }
.card__stack img.is-on { opacity: 1; transform: scale(1); }
.card__crema { overflow: hidden; background: #0c0c0b; }
.card__crema img { position: absolute; left: 50%; top: 50%; width: 132%; max-width: none; aspect-ratio: 1; object-fit: cover; translate: -50% -50%; animation: crema 50s linear infinite; }
@keyframes crema { to { rotate: 360deg; } }
.chat { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; padding: 18px 18px 56px; }
.bubble { margin: 0; padding: 8px 12px; border-radius: 12px 12px 2px 12px; font: 640 13px/1.3 var(--f); background: #b7743f; color: #fff; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .4s var(--ease), transform .5s var(--ease); max-width: 90%; }
.bubble.is-on { opacity: 1; transform: none; }
.bubble--in { align-self: flex-start; border-radius: 12px 12px 12px 2px; background: var(--ember); color: var(--basalt); }
.bubble--typing { display: inline-flex; gap: 4px; background: var(--bone); padding: 10px 12px; }
.bubble--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--basalt); animation: dot 1s infinite; }
.bubble--typing i:nth-child(2) { animation-delay: .15s; }
.bubble--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.bubble--out { background: var(--bone); color: var(--basalt); }
.seismo { position: absolute; inset: 0; padding: 18px 18px 0; display: flex; flex-direction: column; }
.seismo__stack { position: relative; flex: 1; }
.note { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 10px; align-items: start; padding: 10px 12px; border-radius: 8px; background: #262523; border: 1px solid #ffffff10; font-size: 12px; line-height: 1.35; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.note__ico { grid-row: span 2; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: #ff5b1f22; color: var(--ember); font: 700 13px/1 var(--mono); }
.note--ok .note__ico { background: #5fd3a822; color: #7fdcb6; }
.note--info .note__ico { background: #8fb7e022; color: #a9c8ea; }
.note__m { font-weight: 640; color: var(--bone); }
.note__t { grid-column: 2 / -1; color: var(--pumice); }
.note__time { font: 500 10px/1.6 var(--mono); color: #b9b5ad; }
.note.is-peek > * { visibility: hidden; }
.seismo__line { position: relative; width: calc(100% + 36px); margin: 0 -18px 82px; height: 56px; flex: none; }
.range { position: absolute; inset: 86px 12px 12px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; }
.range li { position: relative; min-height: 0; }
.range a { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 4px 6px 8px; border-radius: 6px; text-decoration: none; color: var(--basalt); transition: background-color .25s var(--ease); }
.range a:hover { background: #0c0c0b0d; }
.range .tt { position: absolute; left: 50%; top: 46%; width: min(100%, 40vh); aspect-ratio: 1; translate: -50% -50%; }
.range b { position: relative; font-weight: 640; font-size: 14px; }
.range small { position: relative; font: 500 10.5px/1.3 var(--mono); color: #5c5953; letter-spacing: .03em; }
.tt { pointer-events: none; }
.lineup a { position: relative; }
.tt--sprite { background-repeat: no-repeat; background-size: 600% 500%; }
.card--addons .card__face { padding: 18px 18px 14px; display: flex; flex-direction: column; }
.addons { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; overflow: auto; }
.addons li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #ffffff10; }
.addons li:last-child { border-bottom: 0; }
.addons b { display: block; font-size: 13.5px; font-weight: 640; }
.addons span { font: 500 11px/1.3 var(--mono); color: var(--ash); }
.addons button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #ffffff14; transition: background-color .15s var(--ease), color .15s var(--ease), transform .3s var(--ease); }
.addons button:hover { background: var(--ember); color: var(--basalt); transform: rotate(90deg); }
.addons button svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

/* ---------------- footer card ---------------- */
.foot { position: relative; height: 100%; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "links title" "legal title"; padding: 56px 4% 40px 2%; }
.foot__head { grid-area: title; align-self: center; margin: 0 0 10vh; }
.foot__title { margin: 0 0 28px; font: 720 clamp(44px, 5.4vw, 96px)/1 var(--f); font-stretch: 118%; letter-spacing: -.035em; }
.foot__live { margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.foot__live div { display: flex; flex-direction: column-reverse; gap: 2px; }
.foot__live dt { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ash); }
.foot__live dd { margin: 0; font: 640 clamp(22px, 2vw, 32px)/1 var(--f); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.foot__addr { margin: 0; font-size: 13px; color: var(--ash); }
.foot__links { grid-area: links; align-self: center; display: grid; grid-template-columns: auto auto; gap: 26px 64px; }
.foot__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.foot__links a { font-size: 14px; font-weight: 640; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.foot__links a:hover { color: var(--ember); }
.foot__links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.foot__contact { grid-column: 1 / -1; }
.foot__social { display: flex !important; gap: 8px; }
.foot__social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ffffff2a; justify-content: center; font: 600 12px/1 var(--mono); }
.foot__legal { grid-area: legal; align-self: end; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--ash); }
.foot__legal a { text-decoration: none; }
.foot__legal a:hover { color: var(--bone); }
.foot__legal span { flex-basis: 100%; }
/* the logo mark, oversized and deliberate, behind the content */
.foot > :not(.foot__mark) { position: relative; z-index: 1; }
.foot__mark { position: absolute; z-index: 0; right: -3%; bottom: -16%; height: 74%; width: auto; fill: #141413; pointer-events: none; }
.foot__mark path:last-child { fill: #ff5b1f; opacity: .1; }
.foot__oncall { margin: 0 0 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--pumice); }
.foot__oncall i { width: 8px; height: 8px; border-radius: 50%; background: #5fd3a8; box-shadow: 0 0 0 0 #5fd3a888; animation: live 2.4s ease-out infinite; }
.foot__oncall b { color: var(--bone); font-weight: 640; }
.foot__news { margin: 0 0 16px; display: grid; gap: 8px; max-width: 460px; }
.foot__news label { font-size: 13px; color: var(--ash); }
.foot__news span { display: flex; gap: 8px; }
.foot__news input { flex: 1; min-width: 0; height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid #ffffff2a; background: #ffffff08; color: var(--bone); font: inherit; font-size: 14px; }
.foot__news input:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.foot__thanks { margin: 0; color: var(--bone); font-weight: 640; }
.foot__word { position: absolute; right: -2%; bottom: -10%; margin: 0; font: 900 clamp(120px, 19vw, 330px)/.8 var(--f); font-stretch: 125%; letter-spacing: -.02em; color: #1a1a19; pointer-events: none; user-select: none; }

/* =====================================================================
   MENU · full-screen layers
   ===================================================================== */
.menu { position: fixed; inset: 0; z-index: 90; background: #0c0c0bf5; display: grid; }
.menu[hidden] { display: none; }
.menu__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4vw; padding: calc(var(--hdr) + 3vh) var(--pad-x) 5vh; height: 100%; }
.menu__label { margin: 0 0 10px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ash); }
.menu__machines { list-style: none; margin: 0 0 4vh; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu__machines a { position: relative; display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 12px; padding: 8px 12px 8px 6px; border-radius: var(--r); text-decoration: none; background: #ffffff08; transition: background-color .2s var(--ease); }
.menu__machines a:hover, .menu__machines a:focus-visible { background: #ffffff14; }
.menu__machines .tt { width: 84px; height: 84px; }
.menu__machines b { display: block; font: 640 18px/1.1 var(--f); font-stretch: 110%; }
.menu__machines small { font: 500 11px/1.4 var(--mono); color: var(--ash); }
.menu__links { list-style: none; margin: 0; padding: 0; }
.menu__links a { display: inline-block; padding: 6px 0; font: 640 clamp(26px, 3.2vw, 46px)/1.1 var(--f); font-stretch: 112%; letter-spacing: -.02em; text-decoration: none; color: var(--pumice); transition: color .2s var(--ease), transform .4s var(--ease); }
.menu__links a:hover, .menu__links a.is-on { color: var(--bone); transform: translateX(10px); }
.menu__links a.is-on::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px; border-radius: 2px; background: var(--ember); vertical-align: .2em; }
.menu__media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--card); }
.menu__media figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s var(--ease); }
.menu__media figure.is-on { opacity: 1; }
.menu__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.2s var(--ease); }
.menu__media figure.is-on img { transform: scale(1); }
.menu__media figure.is-machine { background: radial-gradient(60% 55% at 50% 55%, #2a2926, #141413 80%); }
.menu__media figure.is-machine img { object-fit: contain; padding: 6% 10% 12%; }
.menu__media figcaption { position: absolute; left: 20px; bottom: 18px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; background: #0c0c0bb0; padding: 8px 12px; border-radius: 20px; }
.menu__close { position: absolute; right: var(--pad-x); top: 16px; }

/* =====================================================================
   QUOTE DRAWER (cart)
   ===================================================================== */
.scrim { position: fixed; inset: 0; z-index: 94; background: #0c0c0b99; opacity: 0; transition: opacity .4s var(--ease); }
.scrim.is-on { opacity: 1; }
.quote { position: fixed; top: 8px; right: 8px; bottom: 8px; z-index: 95; width: min(440px, calc(100vw - 16px)); display: flex; flex-direction: column; background: var(--back); border-radius: 10px; color: var(--bone); transform: translateX(calc(100% + 16px)); visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s; box-shadow: -30px 0 80px #0008; }
.quote.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
.quote__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px; border-bottom: 1px solid #ffffff12; }
.quote__head h2 { margin: 0; font: 640 22px/1 var(--f); font-stretch: 112%; }
.quote__body { flex: 1; overflow: auto; padding: 8px 20px; }
.quote__list { list-style: none; margin: 0; padding: 0; }
.qi { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #ffffff10; }
.qi.is-new { animation: qi-in .6s var(--ease); }
@keyframes qi-in { from { opacity: 0; transform: translateX(24px); } }
.qi__img { width: 72px; height: 72px; border-radius: 6px; background: #2a2926; display: grid; place-items: center; overflow: hidden; }
.qi__img img { width: 100%; height: 100%; object-fit: contain; }
.qi__img svg { width: 30px; height: 30px; stroke: var(--ember); fill: none; stroke-width: 1.6; }
.qi b { display: block; font-weight: 640; }
.qi small { display: block; font: 500 11px/1.4 var(--mono); color: var(--ash); }
.qi__price { font-weight: 640; text-align: right; }
.qi__qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; border: 1px solid #ffffff1f; border-radius: 14px; }
.qi__qty button { width: 26px; height: 26px; border-radius: 50%; }
.qi__qty button:hover { color: var(--ember); }
.qi__qty span { min-width: 18px; text-align: center; font: 500 12px/1 var(--mono); }
.quote__empty { display: grid; justify-items: center; gap: 12px; padding: 12vh 0; text-align: center; color: var(--ash); }
.quote__empty svg { width: 64px; height: 52px; fill: var(--graphite); }
.quote__empty p { margin: 0; }
.quote.has-items .quote__empty { display: none; }
.quote__foot { padding: 16px 20px 20px; border-top: 1px solid #ffffff12; display: grid; gap: 12px; }
.quote:not(.has-items) .quote__foot { display: none; }
.quote__foot dl { margin: 0; display: grid; gap: 6px; }
.quote__foot dl div { display: flex; justify-content: space-between; }
.quote__foot dt { color: var(--ash); font-size: 14px; }
.quote__foot dd { margin: 0; font-weight: 640; }
.quote__note { margin: 0; font-size: 12px; color: var(--ash); text-align: center; }
.quote.is-sent .quote__body, .quote.is-sent .quote__foot dl, .quote.is-sent [data-quote-send] { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; translate: -50% 20px; padding: 12px 18px; border-radius: 22px; background: var(--bone); color: var(--basalt); font-weight: 640; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), translate .5s var(--ease); }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* =====================================================================
   MOBILE · the bento becomes a stack (like the reference)
   ===================================================================== */
@media (max-width: 767px) {
  :root { --gap: 8px; --pad-x: 12px; --hdr: 60px; }
  .hdr__live { display: none; }
  .hdr { grid-template-columns: auto 1fr; }
  .hdr .logo { justify-self: start; }
  .page-home .hdr.is-scrolled { background: #0c0c0bcc; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .bento { height: auto; overflow: visible; padding: var(--hdr) 0 var(--gap); }
  .bento__track { flex-direction: column; width: auto; height: auto; padding: 0 var(--pad-x); }
  .col, .row-cards { height: auto; }
  .card { width: 100% !important; height: auto; flex: none !important; }
  .card--xl { height: calc(100svh - var(--hdr) - 30px); min-height: 520px; }
  .card--l { aspect-ratio: 3 / 4; }
  .card--l.card--wide { aspect-ratio: 1; }
  .card--wide .card__shade { background: linear-gradient(180deg, #0c0c0b00 42%, #0c0c0bf0 94%); }
  .card--m { aspect-ratio: 1; }
  .card--s { aspect-ratio: 16 / 10; }
  .card--range { aspect-ratio: auto; height: 560px; }
  .card--addons { aspect-ratio: auto; height: auto; }
  .card--addons .card__inner, .card--addons .card__face { position: relative; height: auto; }
  .row-cards { flex-direction: row; }
  .row-cards > .card { aspect-ratio: 3 / 4; width: auto !important; flex: 1 !important; }
  .row-cards .card__title { font-size: 16px; }
  .card__title { font-size: 21px; }
  .card__title--xl { font-size: clamp(38px, 11vw, 52px); }
  .card--xl .card__text { left: 20px; right: 20px; bottom: 24px; }
  .bar, .cue { display: none; }
  .card--inside { aspect-ratio: 3 / 4; }
  .card--foot { height: auto; }
  .foot { display: block; padding: 40px 8px 120px; }
  .foot__head { margin: 0 0 36px; }
  .foot__title { margin: 0 0 22px; font-size: 48px; }
  .foot__links { grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
  .foot__mark { height: 46%; bottom: -6%; }
  .menu__inner { grid-template-columns: 1fr; overflow: auto; }
  .menu__media { display: none; }
  .menu__machines { grid-template-columns: 1fr; }
  .chat { padding-bottom: 52px; }
}

/* =====================================================================
   PRODUCT PAGES (machine-*.html)
   ===================================================================== */
.page-machine { background: var(--basalt); }
.pbar { position: fixed; left: 8px; right: 8px; top: 8px; z-index: 58; height: 56px; display: flex; align-items: center; gap: 24px; padding: 0 8px 0 20px; border-radius: 30px; background: #171716e8; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid #ffffff10; transform: translateY(-140%); transition: transform .6s var(--ease); }
.pbar.is-on { transform: none; }
.pbar__name { font: 700 16px/1 var(--f); font-stretch: 112%; white-space: nowrap; }
.pbar nav { display: flex; gap: 4px; margin-right: auto; }
.pbar nav a { padding: 8px 12px; border-radius: 16px; font-size: 13.5px; font-weight: 560; text-decoration: none; color: var(--pumice); transition: background-color .15s var(--ease), color .15s; }
.pbar nav a:hover, .pbar nav a.is-on { color: var(--bone); background: #ffffff12; }
.pbar__price { font: 500 12px/1.2 var(--mono); color: var(--ash); text-align: right; }
.pbar__price b { display: block; font: 640 15px/1.2 var(--f); color: var(--bone); }
.stage { position: relative; height: 260vh; }
.stage__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage__glow { position: absolute; inset: 0; background: radial-gradient(48% 60% at 68% 58%, #ff5b1f24, transparent 70%), radial-gradient(30% 40% at 72% 90%, #ffffff10, transparent 70%); pointer-events: none; }
.stage__titlewrap { position: absolute; left: var(--pad-x); top: 46%; translate: 0 -50%; z-index: 1; pointer-events: none; }
.stage__title { margin: 0; font: 800 clamp(84px, 11.8vw, 220px)/.84 var(--f); font-stretch: 125%; letter-spacing: -.05em; white-space: nowrap; color: #ece8df; }
.stage__titlewrap .eyebrow { margin-bottom: 14px; }
.stage__copy { position: absolute; left: var(--pad-x); bottom: 9vh; z-index: 3; max-width: 420px; }
.stage__kind { font-size: clamp(16px, 1.4vw, 20px); color: var(--pumice); margin: 0 0 6px; }
.stage__cups { margin: 0 0 28px; font: 500 13px/1.4 var(--mono); color: var(--ember); letter-spacing: .04em; text-transform: uppercase; }
.stage__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.stage__canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.stage__deg { position: absolute; right: var(--pad-x); top: calc(var(--hdr) + 18px); z-index: 3; margin: 0; font: 500 12px/1 var(--mono); color: var(--ash); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.stage__deg span { color: var(--bone); }
.stage__hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 3; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ash); display: flex; align-items: center; gap: 10px; }
.stage__hint i { width: 1px; height: 26px; background: linear-gradient(var(--ember), transparent); animation: hint 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.stage__scale { position: absolute; right: var(--pad-x); bottom: 26px; z-index: 3; font: 500 11px/1.6 var(--mono); color: var(--ash); text-align: right; }
.stage__scale b { color: var(--bone); font-weight: 500; }
.statement { background: var(--bone); color: var(--basalt); padding: 18vh var(--pad-x); }
.statement [data-statement] { margin: 0 auto; max-width: 1180px; font: 680 clamp(36px, 5.4vw, 92px)/1.02 var(--f); font-stretch: 114%; letter-spacing: -.035em; }
.statement .chip { display: inline-block; width: 1.8em; height: .82em; margin: 0 .12em; border-radius: .41em; vertical-align: -.05em; overflow: hidden; background: #2a2926; }
.statement .chip img { width: 100%; height: 100%; object-fit: cover; }
.statement .w { display: inline-block; color: #87827a; transition: color .4s; }
.statement .w.is-on { color: inherit; }
.statement .chip.w { opacity: .35; transition: opacity .4s; }
.statement .chip.w.is-on { opacity: 1; }
.statement .statement__sub { max-width: 640px; margin: 6vh auto 0; font: 450 clamp(17px, 1.4vw, 20px)/1.55 var(--f); color: #3d3b37; }
.sec { padding: 14vh var(--pad-x); }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.sec__head h2 { margin: 0; font: 700 clamp(34px, 4.2vw, 68px)/1 var(--f); font-stretch: 116%; letter-spacing: -.035em; }
.sec__head p { margin: 0; max-width: 420px; color: var(--pumice); }
.fbento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 260px; grid-auto-flow: dense; gap: var(--gap); }
.fbento .card { width: auto; height: auto; }
.fbento .f-wide { grid-column: span 2; }
.fbento .f-tall { grid-row: span 2; }
.f-screen img { position: absolute; left: 50%; top: 42%; width: 78%; translate: -50% -50%; border-radius: 10px; box-shadow: 0 30px 60px #000a, 0 0 0 6px #2a2926, 0 0 0 7px #4a4844; }
.f-seismo .seismo { padding-top: 54px; }

/* in the field */
.field { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.story { margin: 0; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid #ffffff0c; }
.story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story blockquote { margin: 0; padding: 22px 22px 12px; font: 600 clamp(18px, 1.5vw, 23px)/1.3 var(--f); letter-spacing: -.01em; }
.story figcaption { margin-top: auto; padding: 0 22px 22px; font: 500 12px/1.5 var(--mono); color: var(--ash); }
.story figcaption b { display: block; font: 640 14px/1.4 var(--f); color: var(--bone); }

/* the 3D viewer */
.viewer { position: relative; height: min(calc(100vh - 100px), 920px); min-height: 520px; border-radius: 10px; overflow: hidden; background: radial-gradient(70% 70% at 50% 55%, #1f1e1c, #0c0c0b 80%); }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer__load { position: absolute; left: 50%; top: 50%; width: 180px; translate: -50% -50%; text-align: center; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ash); transition: opacity .5s var(--ease); }
.viewer__load i { display: block; height: 2px; margin-top: 12px; background: #ffffff1f; border-radius: 1px; overflow: hidden; }
.viewer__load i::after { content: ""; display: block; height: 100%; background: var(--ember); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .3s; }
.viewer.is-ready .viewer__load { opacity: 0; pointer-events: none; }
.viewer__ui { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 3; display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; pointer-events: none; }
.viewer__ui > * { pointer-events: auto; }
.explode { display: grid; gap: 8px; width: min(340px, 100%); padding: 14px 16px; border-radius: 10px; background: #171716d9; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid #ffffff10; }
.explode label { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ash); }
.explode label output { color: var(--ember); }
.explode input { width: 100%; accent-color: var(--ember); }
.viewer__hint { margin: 0; font: 500 11px/1.5 var(--mono); color: var(--ash); text-transform: uppercase; letter-spacing: .06em; text-align: right; }
.viewer__btns { display: flex; gap: 8px; }
.hotspot { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); white-space: nowrap; will-change: transform; }
.hotspot.is-on { opacity: 1; }
.hotspot i { width: 10px; height: 10px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px #ff5b1f33; flex: none; }
.hotspot span { padding: 6px 10px; border-radius: 6px; background: #0c0c0bd9; border: 1px solid #ffffff14; font-size: 12px; line-height: 1.3; }
.hotspot b { display: block; font-weight: 640; }
.hotspot small { color: var(--ash); }
.viewer__note { margin: 14px 0 0; font-size: 12px; color: var(--ash); }

/* inside: the viewer with the configurator beside it */
.inside { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: var(--gap); align-items: start; }
.inside .viewer { position: sticky; top: 84px; }
.config__form { padding: 24px; border-radius: 10px; background: var(--card); border: 1px solid #ffffff0c; }
.hdr.is-tucked { transform: translateY(-100%); }
.f-screen .card__face { background: radial-gradient(70% 60% at 50% 40%, #262523, #121211 80%); }

/* configurator */
.config { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4vw; align-items: start; }
.config__still { position: sticky; top: 90px; aspect-ratio: 1; border-radius: 10px; background: radial-gradient(60% 60% at 50% 50%, #262523, #141413 75%); overflow: hidden; }
.config__still canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.config__form { display: grid; gap: 28px; }
.opt h3 { margin: 0 0 12px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ash); }
.opt__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid #ffffff24; font-size: 14px; font-weight: 560; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.chipbtn:hover { border-color: var(--bone); }
.chipbtn[aria-pressed="true"] { border-color: var(--ember); background: #ff5b1f14; }
.chipbtn .sw { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #ffffff40; }
.chipbtn small { font: 500 11px/1 var(--mono); color: var(--ash); }
.config__sum { display: grid; gap: 14px; padding: 22px; border-radius: 10px; background: var(--card); border: 1px solid #ffffff10; }
.config__sum .tot { display: flex; align-items: baseline; justify-content: space-between; }
.config__sum .tot b { font: 700 34px/1 var(--f); font-stretch: 112%; }
.config__sum .tot small { color: var(--ash); }
.config__sum p { margin: 0; font-size: 13px; color: var(--ash); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4vw; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid #ffffff14; }
.specs dt { color: var(--ash); }
.specs dd { margin: 0; font-weight: 640; text-align: right; }
.lineup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.lineup a { position: relative; display: grid; justify-items: center; gap: 4px; padding: 20px 12px 22px; border-radius: 10px; background: var(--card); text-decoration: none; transition: background-color .25s var(--ease); }
.lineup a:hover { background: #22211f; }
.lineup a.is-current { outline: 1px solid var(--ember); outline-offset: -1px; }
.lineup .tt { width: 100%; aspect-ratio: 1; }
.lineup b { font: 640 18px/1.1 var(--f); font-stretch: 110%; }
.lineup small { font: 500 11px/1.4 var(--mono); color: var(--ash); }
.addrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.addcard { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 10px; background: var(--card); border: 1px solid #ffffff0c; }
.addcard b { display: block; font-weight: 640; }
.addcard small { font: 500 11px/1.4 var(--mono); color: var(--ash); }
.pfoot { position: relative; overflow: hidden; margin: 0 8px 8px; border-radius: 10px; background: var(--card); }
.pfoot .foot { min-height: 640px; }

@media (max-width: 1023px) {
  .fbento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pbar { gap: 10px; padding-left: 16px; }
  .pbar nav, .pbar__price { display: none; }
  .pbar .pill { margin-left: auto; }
  .stage { height: 220vh; }
  .stage__titlewrap { top: calc(var(--hdr) + 18px); translate: none; }
  .stage__title { font-size: 25vw; }
  .stage__copy { bottom: 64px; right: var(--pad-x); }
  .stage__scale { display: none; }
  .statement { padding: 12vh var(--pad-x); }
  .statement [data-statement] { font-size: 38px; }
  .fbento { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .fbento .f-wide, .fbento .f-tall { grid-column: auto; grid-row: auto; }
  .viewer { height: 74vh; }
  .config { grid-template-columns: 1fr; }
  .inside { grid-template-columns: 1fr; }
  .inside .viewer { position: relative; top: 0; }
  .config__still { position: relative; top: 0; }
  .specs { grid-template-columns: 1fr; }
  .addrow { grid-template-columns: 1fr; }
  .field { grid-template-columns: 1fr; }
  .stage__deg { top: auto; bottom: 26px; }
  .sec__head { flex-direction: column; align-items: start; }
}

/* page to page: a cross-document View Transition (the header stays put, the page fades through) */
@view-transition { navigation: auto; }
.hdr { view-transition-name: hdr; }
::view-transition-old(root) { animation: vt-out .32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-18px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(24px); } }

/* CSS loops pause while their card is off screen (js: pauseOffscreen) */
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
