/* Kim Mộc Type Foundry — specimen-book print-core: paper, ink, vermilion riso, cobalt riso */
@property --wg { syntax: '<number>'; inherits: false; initial-value: 200; }
@property --wd { syntax: '<number>'; inherits: false; initial-value: 125; }

:root {
  --paper: #ece5d6; --paper-2: #e2d9c6; --paper-3: #d6cbb4;
  --ink: #191612; --ink-2: #4a4238; --ink-3: #6e6354;
  --son: #e0532d; --son-ink: #b23a18; --lam: #2d48b5; --dong: #9c7b4c;
  --line: rgba(25, 22, 18, .16); --line-2: rgba(25, 22, 18, .08);
  --f-d: 'Fraunces', Georgia, serif; --f-s: 'Bricolage Grotesque', system-ui, sans-serif; --f-m: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .5, 1);
  --g: clamp(20px, 3.2vw, 48px); --max: 1440px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #14120f; --paper-2: #1d1a16; --paper-3: #2a2620;
  --ink: #ece4d3; --ink-2: #bdb19b; --ink-3: #9a8f7c;
  --son: #ff6b40; --son-ink: #ff8a64; --lam: #8a9dff; --dong: #c9a36d;
  --line: rgba(236, 228, 211, .16); --line-2: rgba(236, 228, 211, .08);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--f-s); font-optical-sizing: auto; overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background .4s var(--ease), color .4s var(--ease); }
body::before { content: ''; position: fixed; inset: 0; background: var(--grain); opacity: .32; pointer-events: none; z-index: 100; mix-blend-mode: multiply; }
[data-theme="dark"] body::before { opacity: .5; mix-blend-mode: screen; filter: invert(1); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--son); color: #191612; }
:focus-visible { outline: 2px solid var(--lam); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
code { font: 500 .82em var(--f-m); }
.muted { color: var(--ink-3); }
.sm { font-size: 14px; }

/* ── type scale */
.h1 { font: 500 clamp(40px, 5.6vw, 84px)/1.02 var(--f-d); font-variation-settings: 'opsz' 144, 'SOFT' 30; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.h2 { font: 500 clamp(30px, 3.6vw, 54px)/1.08 var(--f-d); font-variation-settings: 'opsz' 120, 'SOFT' 30; letter-spacing: -.015em; margin: 0 0 20px; text-wrap: balance; }
.h3 { font: 500 clamp(24px, 2.4vw, 34px)/1.15 var(--f-d); margin: 0 0 16px; }
.h4 { font: 600 18px/1.3 var(--f-s); margin: 0 0 16px; }
.eb { display: flex; gap: 14px; align-items: baseline; font: 500 13px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 22px; }
.eb span { color: var(--son-ink); }
.lede { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.4; margin: 0; max-width: 32ch; font-variation-settings: 'opsz' 48; }

/* ── buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; background: var(--ink); color: var(--paper); font: 600 15px/1 var(--f-s); text-decoration: none; letter-spacing: .01em; transition: transform .2s var(--ease), background .25s var(--ease), color .25s; }
.btn:hover { background: var(--son); color: #191612; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn .ico { width: 18px; height: 18px; }
.ib { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; border-radius: 0; transition: background .2s, transform .2s var(--ease); }
.ib:hover { background: var(--line-2); }
.ib:active { transform: scale(.94); }
.ib.txt { font: 600 13px/1 var(--f-m); letter-spacing: .06em; }
.ib.sq { box-shadow: inset 0 0 0 1.5px var(--line); }
.chip { min-height: 44px; padding: 0 16px; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); font: 500 14px/1 var(--f-s); transition: background .2s, box-shadow .2s, color .2s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip[aria-checked="true"], .chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.lnk { background: none; border: 0; padding: 8px 0; min-height: 44px; font: 500 14px var(--f-s); text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.lnk-a { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; }
.lnk-a .ico { transition: transform .3s var(--ease); }
.lnk-a:hover .ico { transform: translateX(5px); }

/* ── header */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s var(--ease), box-shadow .3s; }
.hdr.solid, body:not([data-route="home"]) .hdr { background: color-mix(in srgb, var(--paper) 92%, transparent); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.hdr-in { max-width: var(--max); margin: auto; padding: 10px var(--g); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.logo-mk { width: 34px; height: 34px; color: var(--ink); }
.brand b { white-space: nowrap; display: block; font: 600 20px/1 var(--f-d); font-variation-settings: 'opsz' 48, 'SOFT' 60; }
.brand small { display: block; font: 500 11.5px/1.3 var(--f-m); letter-spacing: .06em; color: var(--ink-2); margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; position: relative; }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: 2px; }
.cartbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; margin-left: 6px; border: 0; background: var(--ink); color: var(--paper); font-weight: 600; }
.cartbtn b { font: 600 12px/1 var(--f-m); min-width: 22px; height: 22px; display: inline-grid; place-items: center; background: var(--son); color: #191612; }
.cartbtn.bump b { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.5); } }
.show-s { display: none; }

/* ── images with printed fallback plate */
.pic { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); isolation: isolate; }
.pic .plate { position: absolute; inset: 0; display: grid; place-items: center; background: repeating-linear-gradient(0deg, transparent 0 11px, var(--line-2) 11px 12px), var(--paper-2); z-index: 0; }
.pic .plate b { font: 800 clamp(120px, 22vw, 360px)/1 var(--f-d); font-variation-settings: 'opsz' 144, 'SOFT' 0; color: var(--son); mix-blend-mode: multiply; opacity: .85; text-shadow: .06em .03em 0 color-mix(in srgb, var(--lam) 70%, transparent); }
[data-theme="dark"] .pic .plate b { mix-blend-mode: normal; opacity: .9; }
.pic img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.pic { clip-path: inset(0 0 0 0); }
html:not(.calm) .pic:not(.in) { clip-path: inset(100% 0 0 0); }
.pic.in { clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.pic.in img { animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.18); } }
.pic[data-par] img { will-change: transform; }

/* reveal */
.rv { opacity: 1; }
html:not(.calm) .rv:not(.in) { opacity: 0; transform: translateY(26px); }
.rv.in { transition: opacity .6s var(--ease) calc(var(--i, 0) * 70ms), transform .6s var(--ease) calc(var(--i, 0) * 70ms); }

/* ══ PLAYGROUND */
.hero { position: relative; }
.pg { position: relative; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; }
.pg-hero { min-height: 100svh; padding-top: 72px; }
.pg-stage { position: relative; flex: 1; touch-action: pan-y; cursor: ew-resize; overflow: hidden; outline: none; }
.pg-hero .pg-stage { padding: clamp(20px, 3vw, 40px) var(--g) 0; display: flex; flex-direction: column; justify-content: space-between; }
.pg.axing .pg-stage { cursor: grabbing; }
.pg-guides, .pg-fx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.pg-fx { z-index: 6; }
.pg-guides { z-index: 0; }
.pg-head { position: relative; z-index: 2; max-width: 1440px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.pg-kicker { font: 500 13px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--son-ink); margin: 0 0 14px; grid-column: 1 / -1; }
.pg-h1 { font: 400 clamp(22px, 2.2vw, 32px)/1.2 var(--f-d); font-variation-settings: 'opsz' 36; margin: 0; max-width: 30ch; color: var(--ink-2); }
.pg-h1 em { color: var(--ink); font-style: italic; }
.pg-text { position: relative; z-index: 2; margin: 0; padding: .35em 0 .1em; font-size: clamp(72px, 9.6vw, 176px); line-height: 1.3; letter-spacing: -.01em; color: var(--ink); word-spacing: .06em; }

.pg-inline .pg-text { font-size: clamp(48px, 7.2vw, 116px); padding: .5em 0 .1em; }
.pg-text .w { display: inline-flex; flex-direction: column; align-items: flex-start; vertical-align: baseline; margin-right: .08em; }
.pg-text .ls { display: inline-block; white-space: nowrap; }
.pg-text .l { display: inline-block; transition: color .6s; cursor: inherit; }
.pg-text .l.tn { color: var(--son-ink); }
.pg-text .l.hit { animation: squash .55s var(--spring); }
@keyframes squash { 0% { transform: scale(1, 1); } 25% { transform: scale(1.08, .86) translateY(4%); } 60% { transform: scale(.97, 1.05); } 100% { transform: none; } }
.pg-text .bl { display: inline-block; width: 0; height: 0; }
.pg-text .cap { word-spacing: normal; font: 500 13px/1.2 var(--f-m); letter-spacing: .02em; color: var(--ink-3); margin-top: .1em; padding-left: .2em; white-space: nowrap; font-variation-settings: normal; }
.pg-text .cap i { font-style: normal; color: var(--son-ink); margin-right: 6px; }
.pg-text .w[data-tone="ngang"] .cap i { color: var(--ink-3); }
.pg-text .w.singing .ls { color: var(--son-ink); transform: translateY(-3%); transition: transform .2s var(--ease), color .2s; }
.pg-hint { position: relative; z-index: 2; margin: 0 0 16px; font: 500 13px/1.4 var(--f-m); color: var(--ink-3); }
.pg-hint b { color: var(--ink); font-weight: 500; }
.pg-hud { position: absolute; left: 0; top: 0; z-index: 8; display: flex; gap: 10px; padding: 8px 12px; background: var(--ink); color: var(--paper); font: 500 13px/1 var(--f-m); pointer-events: none; opacity: 0; transition: opacity .25s; }
.pg-hud.on { opacity: 1; }
.pg-hud b { color: var(--son); font-weight: 500; }
.pg-bodies { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.mk { position: absolute; left: 0; top: 0; color: var(--son); pointer-events: auto; cursor: grab; touch-action: none; will-change: transform; }
.mk svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(.04em .03em 0 color-mix(in srgb, var(--lam) 55%, transparent)); }
.mk.held { cursor: grabbing; color: var(--son-ink); }
.mk.held svg { transform: scale(1.12); transition: transform .2s var(--spring); }

.pg-bar { position: relative; z-index: 9; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; padding: 14px var(--g); border-top: 1.5px solid var(--ink); background: var(--paper); }
.pg-inline .pg-bar { grid-template-columns: auto 1fr; padding: 14px 0 0; background: transparent; border-top-color: var(--line); }
.tray { display: flex; gap: 6px; }
.tm { display: grid; grid-template-columns: 40px auto; align-items: center; gap: 4px; min-height: 56px; padding: 0 12px 0 6px; border: 0; background: var(--paper-2); color: var(--ink); text-align: left; touch-action: none; transition: background .2s, transform .2s var(--ease); }
.tm:hover { background: var(--paper-3); }
.tm:active { transform: scale(.96); }
.tm-g { width: 40px; height: 40px; color: var(--son); display: block; transition: transform .35s var(--spring); }
.tm:hover .tm-g { transform: translateY(-4px) rotate(-6deg); }
.tm-g svg { width: 100%; height: 100%; }
.tm-n { font: 600 15px/1.1 var(--f-s); }
.tm-n small { display: block; font: 500 11.5px/1.2 var(--f-m); color: var(--ink-3); margin-top: 2px; }
.pg-axes { display: flex; gap: 22px; min-width: 0; }
.ax { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; flex: 1; min-width: 140px; font: 500 13px/1.2 var(--f-s); }
.ax > span { grid-column: 1 / -1; display: flex; gap: 8px; color: var(--ink-2); }
.ax > span code { color: var(--ink-3); }
.ax input { grid-column: 1 / 3; }
.ax output { font: 500 13px var(--f-m); min-width: 3ch; text-align: right; }
.ax.sm { min-width: 120px; flex: none; width: 150px; }
.ax.sm > span { font: 500 13px var(--f-m); color: var(--ink-3); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; background: var(--son); border: 2px solid var(--ink); border-radius: 50%; transition: transform .2s var(--spring); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; background: var(--son); border: 2px solid var(--ink); border-radius: 50%; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.25); }
.pg-act { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.pg-hero .pg-bar { grid-template-columns: auto 1fr; }
.pg-inline .pg-axes { grid-column: 1 / -1; grid-row: 2; max-width: 640px; }
.pg-head .pg-axes { width: min(440px, 40vw); align-self: end; padding-bottom: 6px; }
.pg-act .ib { box-shadow: inset 0 0 0 1.5px var(--line); }
.pg-snd[aria-pressed="true"] { background: var(--son); color: #191612; box-shadow: none; }
.sel { position: relative; display: inline-flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.sel select, .pg-in input, .tb-txt input, .fld input, .fld select, .nl input, .seats input { min-height: 44px; padding: 0 14px; border: 0; background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-size: 15px; border-radius: 0; }
.sel select { padding-right: 36px; -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.pg-in input { width: 200px; font-family: var(--f-s); }
input:focus, select:focus { box-shadow: inset 0 0 0 2px var(--ink); outline: none; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--lam); outline-offset: 2px; }

/* ══ KINETIC MANIFESTO (scroll-driven, IO fallback) */
.kin { padding: clamp(80px, 14vw, 200px) var(--g); max-width: var(--max); margin: auto; overflow: hidden; }
.kin-l { margin: 0; font-family: 'Archivo', sans-serif; font-size: clamp(54px, 10.4vw, 172px); line-height: .94; letter-spacing: -.02em; text-transform: uppercase; font-variation-settings: 'wght' var(--wg), 'wdth' var(--wd); --wg: 900; --wd: 62; white-space: nowrap; }
.kin-l.r { text-align: right; }
.kin-l em { font-style: normal; color: var(--son-ink); }
@supports (animation-timeline: view()) {
  html:not(.calm) .kin-l { animation: kin linear both; animation-timeline: view(); animation-range: entry 0% cover 48%; }
}
@keyframes kin { from { --wg: 140; --wd: 125; opacity: .25; transform: translateX(calc((var(--d) - 1.5) * -4%)); } to { --wg: 900; --wd: 62; opacity: 1; transform: none; } }

/* ══ SECTIONS */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 140px) var(--g); position: relative; }
.sec-h { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 40px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-h .eb { grid-column: 1 / -1; margin: 0; }
.sec-h .h2 { margin: 0; }
.sec-h .lnk-a { justify-self: end; }

.ws { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: end; padding-top: 0; }
.ws-ph { grid-column: 1 / 9; }
.ws-ph .pic { aspect-ratio: 4 / 3.1; }
.ws-tx { grid-column: 9 / 13; padding-bottom: 8px; }
.ws-tx .h2 { font-size: clamp(26px, 2.6vw, 38px); }
.ws-tx p { color: var(--ink-2); max-width: 46ch; }

.fam-list { border-top: 1.5px solid var(--ink); }
.fam { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 270px 150px; gap: 28px; align-items: center; padding: clamp(22px, 2.6vw, 36px) 0; text-decoration: none; border-bottom: 1px solid var(--line); overflow: hidden; transform: perspective(1200px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .4s var(--ease), background .3s; }
.fam:hover { background: var(--paper-2); }
.fam-no { font: 500 13px var(--f-m); color: var(--ink-3); align-self: start; padding: 10px 0 0 6px; }
.fam-sp { font-family: var(--ff); font-variation-settings: var(--fv); font-size: clamp(44px, 6.6vw, 112px); line-height: 1.12; white-space: nowrap; overflow: hidden; text-overflow: clip; transition: font-variation-settings .8s var(--ease), color .3s; }
.fam:hover .fam-sp { font-variation-settings: var(--fv2); color: var(--son-ink); }
.fam-meta { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.fam-meta b { font: 600 19px/1.2 var(--f-s); color: var(--ink); }
.fam-ph .pic { aspect-ratio: 1; width: 150px; }
.fam-ph .plate b { font-size: 96px; }
.sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--paper) 55%, transparent) 50%, transparent 65%); background-size: 250% 100%; background-position: calc(100% - var(--sx, 0%)) 0; opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light; }
.tilt:hover .sheen { opacity: 1; }

.stk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.stk-tx p { color: var(--ink-2); max-width: 44ch; }
.stk-demo { background: var(--paper-2); padding: clamp(20px, 3vw, 40px); }
.stk-demo .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.stk-box { font-size: clamp(38px, 4.6vw, 76px); overflow: hidden; padding: .2em 0; }
.stk-box span { display: block; white-space: nowrap; }
.stk-a { color: var(--ink-3); }
.stk-ctl { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.stk-ctl label { display: flex; gap: 12px; align-items: center; font-size: 14px; flex: 1; min-width: 220px; }
.stk-ctl output { font: 500 14px var(--f-m); min-width: 4ch; }
.vd { margin: 0; font: 500 13px var(--f-m); padding: 8px 12px; }
.vd.bad { background: var(--son); color: #191612; }
.vd.ok { background: var(--ink); color: var(--paper); }
.vd.good { box-shadow: inset 0 0 0 1.5px var(--line); }

.nums { padding-top: 0; }
.num-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.num-list li { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.num-list li:last-child { border: 0; }
.num-list b { display: block; font: 400 clamp(56px, 6.4vw, 104px)/1 var(--f-d); font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 300; font-variant-numeric: lining-nums; }
.num-list span { display: block; margin-top: 12px; font-size: 15px; color: var(--ink-2); max-width: 26ch; }

.use-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; }
.use { margin: 0; }
.use .pic { aspect-ratio: 4 / 5; }
.use.u0 { grid-column: 1 / 7; grid-row: span 2; }
.use.u0 .pic { aspect-ratio: 4 / 5.2; }
.use.u1 { grid-column: 8 / 13; }
.use.u1 .pic { aspect-ratio: 5 / 4; }
.use.u2 { grid-column: 7 / 12; }
.use.u2 .pic { aspect-ratio: 5 / 3.6; }
.use figcaption { display: grid; gap: 4px; margin-top: 14px; font-size: 15px; }
.use figcaption span { font: 500 13px var(--f-m); color: var(--ink-3); }

.q-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; border-top: 1.5px solid var(--ink); padding-top: 40px; }
.q { margin: 0; }
.q:nth-child(2) { margin-top: 80px; }
.q:nth-child(3) { margin-top: 30px; }
.q p { font-size: clamp(22px, 2vw, 28px); line-height: 1.3; margin: 0 0 20px; }
.q footer { display: grid; gap: 2px; font-size: 14px; color: var(--ink-2); }
.q footer b { color: var(--ink); font-size: 15px; }

.cta { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.cta-j { position: relative; text-decoration: none; display: block; }
.cta-j .pic { aspect-ratio: 4 / 3; }
.cta-tx { display: grid; gap: 8px; padding: 22px 24px; background: var(--paper); position: relative; margin: -70px 0 0 28px; max-width: 420px; box-shadow: 0 0 0 1.5px var(--ink); }
.cta-tx .eb { margin: 0; }
.cta-tx b { font: 500 30px/1.1 var(--f-d); }
.cta-tx > span:last-child { color: var(--ink-2); font-size: 15px; }
.cta-j:hover .cta-tx b { color: var(--son-ink); }
.cta-t p { color: var(--ink-2); max-width: 44ch; margin: 0 0 24px; }

/* ══ CATALOGUE / TESTER */
.pg-top { max-width: var(--max); margin: auto; padding: 120px var(--g) 100px; min-height: 80vh; }
.pg-top.narrow { max-width: 1200px; }
.cat-h { margin-bottom: 40px; max-width: 980px; }
.tbar { position: sticky; top: 64px; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) 260px 280px; gap: 12px; align-items: center; padding: 14px 0; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
.tb-txt input { width: 100%; }
.tb-sz { display: grid; grid-template-columns: auto 1fr 54px; gap: 12px; align-items: center; font-size: 14px; }
.tb-sz output { font: 500 13px var(--f-m); text-align: right; }
.tbar .sel select { width: 100%; }
.t-row { padding: 32px 0 36px; border-bottom: 1px solid var(--line); }
.t-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 16px; }
.t-name { font: 600 20px var(--f-s); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.t-name:hover { color: var(--son-ink); }
.t-kind { font-size: 14px; color: var(--ink-3); margin-right: auto; }
.t-axes { display: flex; gap: 18px; flex-wrap: wrap; }
.t-go { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 14px; font-weight: 500; }
.t-go .pic { width: 56px; height: 56px; }
.t-go .plate b { font-size: 40px; }
.t-go:hover span { text-decoration: underline; }
.t-sample { outline: none; line-height: 1.22; overflow-wrap: anywhere; min-height: 1.2em; padding: 4px 0; cursor: text; transition: font-size .25s var(--ease); }
.t-sample:focus { box-shadow: -10px 0 0 -8px var(--son); }
.sk { position: relative; color: transparent !important; background: linear-gradient(100deg, var(--paper-2) 30%, var(--paper-3) 50%, var(--paper-2) 70%) 0 0 / 300% 100%; animation: shim 1.3s linear infinite; }
@keyframes shim { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk.line { height: 18px; margin-top: 12px; }

/* ══ FAMILY DETAIL */
.fd-hero { max-width: var(--max); margin: auto; padding: 110px var(--g) 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-size: 14px; color: var(--ink-2); }
.fd-name { font-size: clamp(64px, 8.6vw, 164px); line-height: .96; margin: 18px 0 12px; letter-spacing: -.02em; font-weight: normal; }
.fd-kind { font: 500 14px var(--f-m); color: var(--ink-2); margin: 0 0 28px; }
.fd-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 0 0 32px; border-top: 1.5px solid var(--ink); }
.fd-facts div { padding: 14px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.fd-facts div:last-child { border: 0; }
.fd-facts dt { font: 500 13px var(--f-m); color: var(--ink-3); }
.fd-facts dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
.fd-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.fd-ph .pic { aspect-ratio: 4 / 5; }
.fd-about { padding-bottom: 0; }
.fd-about .lede { max-width: 40ch; margin-left: auto; margin-right: 8%; }
.wf { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.wf li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.wf-n { font-size: 14px; color: var(--ink-2); }
.wf-n code { color: var(--ink-3); margin-left: 6px; }
.wf-s { font-size: clamp(32px, 4.2vw, 64px); line-height: 1.2; white-space: nowrap; overflow: hidden; }
.gl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.gl-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.gl { aspect-ratio: 1; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; font-size: 34px; line-height: 1; transition: background .15s, color .15s; font-family: inherit; font-variation-settings: inherit; }
.gl:hover { background: var(--paper-2); }
.gl[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.gl-insp { position: sticky; top: 90px; background: var(--paper-2); padding: 24px; }
.gi-g { position: relative; height: 280px; display: grid; place-items: center; font-size: 200px; line-height: 1; overflow: hidden; }
.gi-g span { position: relative; z-index: 1; }
.gi-l { position: absolute; left: 0; right: 0; height: 1px; background: var(--son); opacity: .5; }
.gi-l.l1 { top: 22%; } .gi-l.l2 { top: 50%; } .gi-l.l3 { top: 76%; opacity: .8; }
.gl-insp dl { margin: 16px 0 0; display: grid; gap: 10px; }
.gl-insp dt { font: 500 13px var(--f-m); color: var(--ink-3); }
.gl-insp dd { margin: 2px 0 0; font-size: 15px; }
.stk-show { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); margin-bottom: 32px; }
.ss-col { display: grid; justify-items: center; padding: 14px 0; border-right: 1px solid var(--line); font-size: clamp(30px, 3.6vw, 56px); line-height: 1.32; }
.ss-col:last-child { border: 0; }
.ss-b { color: var(--son-ink); }

/* licence picker */
.lic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.lic fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.lic legend, .pay legend, .tr legend { font: 500 13px var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; padding: 0; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt > span { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 18px; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, background .2s; }
.opt b { font-weight: 600; }
.opt small { grid-column: 1; color: var(--ink-3); font-size: 13.5px; }
.opt em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font: 500 14px var(--f-m); }
.opt:hover > span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.opt input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); background: var(--paper-2); }
.opt input:checked + span b::before { content: ''; display: inline-block; width: 9px; height: 9px; background: var(--son); margin-right: 8px; vertical-align: 1px; }
.opt input:focus-visible + span { outline: 2px solid var(--lam); outline-offset: 2px; }
.sel.wide select { width: 100%; }
.use-c { box-shadow: inset 0 0 0 1.5px var(--line); padding: 4px 16px 4px; transition: box-shadow .2s, background .2s; }
.use-c.on { box-shadow: inset 0 0 0 2px var(--ink); background: var(--paper-2); padding-bottom: 16px; }
.uc-h { display: grid; grid-template-columns: 22px 22px 1fr; gap: 12px; align-items: center; min-height: 64px; cursor: pointer; }
.uc-h input { width: 20px; height: 20px; accent-color: var(--son); margin: 0; }
.uc-h b { display: block; font-weight: 600; }
.uc-h small { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.35; }
.use-c .sel { width: 100%; margin-top: 4px; }
.use-c .sel select { width: 100%; }
.seats { display: grid; grid-template-columns: 1fr 44px 76px 44px; grid-template-rows: auto auto; gap: 6px; align-items: center; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.seats input { width: 76px; text-align: center; padding: 0 6px; font: 500 16px var(--f-m); -moz-appearance: textfield; }
.seats input::-webkit-inner-spin-button { -webkit-appearance: none; }
.seats small { grid-column: 1 / -1; font: 500 13px var(--f-m); color: var(--ink-3); }
.lic-sum { position: sticky; top: 90px; background: var(--ink); color: var(--paper); padding: 28px; display: grid; gap: 6px; }
.lic-sum .muted { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.ls-sp { font-size: 56px; line-height: 1.05; margin: 0 0 10px; overflow-wrap: anywhere; }
.ls-d { margin: 0; font-size: 14.5px; }
.ls-p { font: 400 46px/1 var(--f-d); font-variation-settings: 'opsz' 144; margin: 18px 0 2px; font-variant-numeric: lining-nums tabular-nums; }
.lic-sum .btn { background: var(--son); color: #191612; margin-top: 16px; }
.lic-sum .btn:hover { background: var(--paper); }

.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.more-c { position: relative; display: grid; gap: 4px; text-decoration: none; transform: perspective(1000px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .4s var(--ease); }
.more-c .pic { aspect-ratio: 4 / 3; margin-bottom: 10px; }
.more-c b { font-size: 34px; font-weight: normal; line-height: 1.1; }
.more-c > span:not(.pic) { font-size: 14px; color: var(--ink-3); }
.more-c .sheen { bottom: auto; aspect-ratio: 4 / 3; }

/* ══ CART / CHECKOUT */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.co-sum { position: sticky; top: 90px; background: var(--paper-2); padding: 28px; display: grid; gap: 10px; }
.dr-list { list-style: none; margin: 0; padding: 0; }
.cl { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cl-sp { width: 72px; height: 72px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 30px; text-decoration: none; overflow: hidden; }
.cl-tx h3 { margin: 0; font: 600 17px var(--f-s); }
.cl-tx h3 a { text-decoration: none; }
.cl-tx p { margin: 2px 0 0; font-size: 14px; }
.cl-p { display: grid; justify-items: end; }
.cl-p b { font: 500 15px var(--f-m); }
.dr-list.big .cl { grid-template-columns: 96px minmax(0, 1fr) auto; }
.dr-list.big .cl-sp { width: 96px; height: 96px; font-size: 40px; }
.tot { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0; font-size: 15px; }
.tot b { font: 400 34px var(--f-d); font-variation-settings: 'opsz' 144; font-variant-numeric: lining-nums; }
.form { display: grid; gap: 20px; }
.fld { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld label { font-weight: 500; font-size: 15px; }
.fld input, .fld select { width: 100%; }
.fld input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--son-ink); }
.hint { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.err { margin: 0; font-size: 14px; color: var(--son-ink); min-height: 0; font-weight: 500; }
.err:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay { gap: 10px; }
.note { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); margin: 4px 0 0; }
.chk { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; cursor: pointer; min-height: 44px; padding-top: 10px; }
.chk input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--son); }
.btn.busy { pointer-events: none; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 14px; }
.mini li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mini b { font-size: 22px; font-weight: normal; }
.mini span { grid-column: 1; font-size: 13.5px; color: var(--ink-2); }
.mini em { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 500 14px var(--f-m); font-style: normal; }
.empty { text-align: center; max-width: 460px; margin: 40px auto; display: grid; gap: 8px; justify-items: center; }
.empty h3, .empty h1 { margin: 0; font: 500 28px var(--f-d); }
.empty p { margin: 0 0 12px; color: var(--ink-2); }
.empty-g { font: 300 140px/1 var(--f-d) !important; font-variation-settings: 'opsz' 144, 'SOFT' 100; color: var(--son-ink) !important; margin: 0 !important; }

/* certificate */
.cert { position: relative; max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 64px); background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 0 0 8px var(--paper-2), inset 0 0 0 9px var(--ink); }
.cert-k { font: 500 13px var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--son-ink); margin: 0 0 16px; }
.cert-h { font: 400 clamp(40px, 5vw, 68px)/1.05 var(--f-d); margin: 0 0 16px; }
.cert-h span { font-style: italic; }
.cert-l { list-style: none; padding: 0; margin: 28px 0 16px; border-top: 1.5px solid var(--ink); }
.cert-l li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cert-sp { font-size: 30px; line-height: 1.1; }
.cert-l b { font: 500 15px var(--f-m); }
.cert-f { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 20px; }
.stamp { flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; text-align: center; border: 2.5px solid var(--son); color: var(--son); font: 600 18px/1.1 var(--f-d); transform: rotate(-12deg); mix-blend-mode: multiply; }
.stamp small { font: 500 11.5px var(--f-m); }
.cert-a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ══ JOURNAL */
.jr-h { max-width: 1200px; margin: auto; padding: 130px var(--g) 40px; }
.jr-t { font: 400 clamp(56px, 9vw, 150px)/.96 var(--f-d); font-variation-settings: 'opsz' 144, 'SOFT' 50; letter-spacing: -.02em; margin: 0 0 28px; }
.jr-t em { color: var(--son-ink); }
.jr-by { font-size: 19px; color: var(--ink-2); max-width: 48ch; margin: 0; }
.jr-hero { max-width: var(--max); margin: 0 auto; padding: 0 var(--g); }
.jr-hero .pic { aspect-ratio: 21 / 9; }
.jr-body { max-width: 760px; margin: 0 auto; padding: 64px var(--g) 120px; font-family: var(--jf); font-size: 19px; line-height: 1.72; font-variation-settings: 'opsz' 18; }
.jr-body p { margin: 0 0 1.2em; }
.jr-body h2 { font: 600 clamp(26px, 2.6vw, 34px)/1.2 var(--f-s); margin: 2.2em 0 .7em; letter-spacing: -.01em; }
.jr-lede { font-size: 24px; line-height: 1.55; }
.jr-lede::first-letter { float: left; font: 400 5.2em/.8 var(--f-d); font-variation-settings: 'opsz' 144; margin: .06em .1em 0 0; color: var(--son-ink); }
.jf { margin: 40px -60px; font-family: var(--f-s); font-size: 16px; }
.jf figcaption { margin-top: 14px; font: 500 13.5px/1.5 var(--f-m); color: var(--ink-3); }
.jf-six { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.jf-six figcaption { grid-column: 1 / -1; }
.six { border: 0; background: transparent; padding: 20px 0 16px; display: grid; justify-items: center; gap: 6px; border-right: 1px solid var(--line); font-family: inherit; font-variation-settings: inherit; transition: background .2s; min-height: 44px; }
.six:last-of-type { border-right: 0; }
.six b { font-size: clamp(36px, 5vw, 64px); line-height: 1.15; font-weight: inherit; }
.six small { font: 500 13px var(--f-m); color: var(--son-ink); }
.six:hover { background: var(--paper-2); }
.six.hit b { animation: squash .55s var(--spring); }
.side-tog { display: flex; gap: 6px; margin-bottom: 16px; }
.side-box { display: flex; justify-content: space-around; background: var(--paper-2); padding: 30px 10px 16px; font-size: clamp(80px, 11vw, 150px); line-height: 1.3; }
.sd { position: relative; display: inline-block; }
.sd-s { display: none; position: relative; }
.sd-s i { position: absolute; left: 50%; top: -.06em; width: .28em; height: .28em; transform: translateX(-50%); color: var(--ink); }
.sd-s i svg { width: 100%; height: 100%; display: block; }
.side-box[data-mode="s"] .sd-r { display: none; }
.side-box[data-mode="s"] .sd-s { display: inline-block; }
.mk-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.mk-c { display: grid; justify-items: center; gap: 4px; padding: 20px 0; border-right: 1px solid var(--line); }
.mk-c:last-child { border: 0; }
.mk-c span { width: 72px; height: 72px; color: var(--son); }
.mk-c span svg { width: 100%; height: 100%; }
.mk-c b { font-weight: 600; }
.mk-c small { font: 500 13px var(--f-m); color: var(--ink-3); }
.jf-hard p { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: clamp(24px, 3vw, 38px); line-height: 1.3; }
.jf-hard span { display: block; font: 500 13px var(--f-m); color: var(--ink-3); }
.jr-ph { margin: 40px -120px; }
.jr-ph .pic { aspect-ratio: 16 / 9; }
.jr-end { margin-top: 2em !important; }
.jr-auth { display: grid; gap: 4px; margin-top: 56px; padding-top: 20px; border-top: 1.5px solid var(--ink); font-family: var(--f-s); font-size: 15px; color: var(--ink-2); }
.jr-auth b { color: var(--ink); font-size: 17px; }

/* ══ TRIAL */
.tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.tr-tx p { color: var(--ink-2); max-width: 46ch; margin: 0 0 28px; }
.tr-tx .pic { aspect-ratio: 4 / 3; }
.tr-f { background: var(--paper-2); padding: clamp(24px, 3vw, 40px); }
.tr-fams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tf { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 16px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-size: 24px; }
.tf input { width: 20px; height: 20px; accent-color: var(--son); margin: 0; flex: none; }
.tf:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--paper); }
.packing p { font-weight: 600; }
.packing .bar { height: 4px; background: var(--paper-3); overflow: hidden; margin-bottom: 20px; }
.packing .bar i { display: block; height: 100%; background: var(--son); animation: pack 1.5s var(--ease) forwards; }
@keyframes pack { from { width: 0; } to { width: 100%; } }
.tr-done h2 { margin: 6px 0 8px; }
.tr-done .empty-g { font-size: 100px !important; }
.tr-l { list-style: none; padding: 0; margin: 20px 0; border-top: 1.5px solid var(--ink); }
.tr-l li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 26px; }

/* ══ LAYERS */
.layer { position: fixed; inset: 0; z-index: 80; }
.scrim { position: absolute; inset: 0; background: rgba(15, 12, 9, .45); opacity: 0; transition: opacity .3s var(--ease); }
.sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--paper); padding: 20px 28px 28px; overflow-y: auto; transform: translateX(100%); transition: transform .42s var(--ease); outline: none; display: flex; flex-direction: column; }
.layer.on .scrim { opacity: 1; }
.layer.on .sheet { transform: none; }
.dr-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); }
.dr-h h2 { margin: 0; font: 500 26px var(--f-d); }
.dr-f { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; }
.brand-s { font: 600 22px var(--f-d); }
.m-nav { display: grid; }
.m-nav a { font: 500 34px/1.2 var(--f-d); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.m-prefs { margin-top: 24px; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: var(--ink); color: var(--paper); font-size: 15px; transform: translateY(20px); opacity: 0; transition: transform .35s var(--spring), opacity .3s; }
.toast.on { transform: none; opacity: 1; }
.toast a { color: var(--son); font-weight: 600; }
.toast .ico { color: var(--son); }
.flyer { background: var(--ink) !important; color: var(--paper) !important; }

/* ══ FOOTER */
.ftr { background: var(--ink); color: var(--paper); margin-top: 40px; }
[data-theme="dark"] .ftr { background: #0c0b09; color: var(--ink); }
.ftr-in { max-width: var(--max); margin: auto; padding: 40px var(--g) 32px; }
.ftr-big { font: 400 clamp(90px, 19vw, 300px)/.9 var(--f-d); font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 300; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; padding-bottom: .1em; border-bottom: 1px solid rgba(236, 228, 211, .2); }
.ftr-big span { color: var(--son); }
.ftr-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.8fr; gap: 40px; padding: 40px 0; font-size: 15px; }
.ftr-h { font: 500 13px var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--son); margin: 0 0 14px; }
.ftr p { margin: 0 0 10px; color: rgba(236, 228, 211, .78); }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr ul a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.ftr ul a:hover { color: var(--son); }
.credits { display: grid; gap: 8px; font-size: 14px; color: rgba(236, 228, 211, .78); }
.credits b { color: #ece4d3; font-weight: 600; }
.nl { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.nl input { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(236, 228, 211, .3); color: #ece4d3; width: 100%; }
.nl .btn { background: var(--son); color: #191612; }
.nl .err { grid-column: 1 / -1; color: var(--son); }
.nl .ok { display: flex; gap: 8px; color: #ece4d3; }
.ftr-note { border-top: 1px solid rgba(236, 228, 211, .2); padding-top: 20px; font-size: 14px; }
.ftr-note a { color: var(--son); }

/* view transitions */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

/* ══ RESPONSIVE */
@media (max-width: 1180px) {
  .pg-bar { grid-template-columns: 1fr auto; }
  .pg-axes { grid-column: 1 / -1; grid-row: 2; }
  .lic { grid-template-columns: 1fr 1fr; }
  .lic-sum { grid-column: 1 / -1; position: static; }
  .fam { grid-template-columns: 40px minmax(0, 1fr) 220px; }
  .fam-ph { display: none; }
  .gl-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .jf { margin-left: 0; margin-right: 0; }
  .jr-ph { margin-left: 0; margin-right: 0; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .tools { margin-left: auto; }
  .show-s { display: inline-grid; }
  .hide-s { display: none; }
  .cartbtn { padding: 0 12px; }
  .pg-head { grid-template-columns: 1fr; }
  .pg-inline .pg-axes { grid-column: 1 / -1; grid-row: 2; max-width: 640px; }
.pg-head .pg-axes { width: 100%; }
  .ws, .stk, .cta, .tr, .co, .fd-hero { grid-template-columns: 1fr; }
  .ws-ph, .ws-tx { grid-column: 1 / -1; }
  .sec-h { grid-template-columns: 1fr; }
  .sec-h .lnk-a { justify-self: start; }
  .num-list { grid-template-columns: 1fr 1fr; }
  .num-list li:nth-child(2) { border-right: 0; }
  .use-grid { grid-template-columns: 1fr; }
  .use.u0, .use.u1, .use.u2 { grid-column: 1; grid-row: auto; }
  .q-list { grid-template-columns: 1fr; }
  .q:nth-child(n) { margin-top: 0; }
  .tbar { grid-template-columns: 1fr 1fr; top: 64px; }
  .tb-txt { grid-column: 1 / -1; }
  .gl-body { grid-template-columns: 1fr; }
  .gl-insp { position: static; order: -1; }
  .gi-g { height: 200px; font-size: 140px; }
  .stk-show { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ss-col:nth-child(5) { border-right: 0; }
  .more { grid-template-columns: 1fr 1fr; }
  .co-sum, .lic-sum { position: static; }
  .fd-ph { order: -1; }
  .fd-ph .pic { aspect-ratio: 16 / 10; }
  .fd-hero { padding-top: 84px; gap: 20px; }
  .fd-about .lede { margin: 0; }
  .cta-tx { margin: -40px 0 0 16px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand small { display: none; }
  .pg-hero { padding-top: 64px; }
  .pg-text { font-size: clamp(64px, 21vw, 110px); line-height: 1.32; }
  .pg-text .cap { font-size: 12px; }
  .pg-hint { display: none; }
  .pg-bar, .pg-hero .pg-bar, .pg-inline .pg-bar { grid-template-columns: 1fr; gap: 12px; }
  .pg-hero .pg-bar { padding: 12px var(--g) 16px; }
  .pg-act { justify-content: flex-start; }
  .tray { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .tm { grid-template-columns: 1fr; justify-items: center; padding: 6px 0; min-height: 64px; text-align: center; }
  .tm-g { width: 32px; height: 32px; }
  .tm-n small { display: none; }
  .pg-axes { grid-row: auto; flex-wrap: wrap; gap: 8px 18px; }
  .ax { min-width: 130px; }
  .pg-act { flex-wrap: wrap; }
  .pg-in { flex: 1 1 100%; order: -1; }
  .pg-in input { width: 100%; }
  .pg-act .sel { flex: 1; }
  .pg-act .sel select { width: 100%; }
  .pg-sing span { display: none; }
  .kin-l { font-size: clamp(36px, 12.4vw, 72px); }
  .fam { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .fam-no { display: none; }
  .fam-sp { font-size: clamp(40px, 13vw, 64px); }
  .num-list { grid-template-columns: 1fr; }
  .num-list li { border-right: 0; border-bottom: 1px solid var(--line); margin: 0; }
  .tbar { grid-template-columns: 1fr; position: static; }
  .t-head { gap: 8px 14px; }
  .t-kind { margin-right: 0; flex-basis: 100%; }
  .t-axes { flex-basis: 100%; }
  .ax.sm { width: calc(50% - 9px); min-width: 0; }
  .lic { grid-template-columns: 1fr; }
  .fd-facts { grid-template-columns: 1fr 1fr; }
  .fd-facts div:nth-child(2) { border-right: 0; }
  .fd-facts div { margin-right: 16px; padding-right: 16px; }
  .wf li { grid-template-columns: 1fr; gap: 0; }
  .stk-box { font-size: clamp(30px, 10vw, 46px); }
  .more { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .cl, .dr-list.big .cl { grid-template-columns: 60px minmax(0, 1fr); }
  .cl-sp, .dr-list.big .cl-sp { width: 60px; height: 60px; font-size: 26px; }
  .cl-p { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .cert-l li { grid-template-columns: 1fr auto; }
  .cert-l li > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .cert-f { flex-direction: column; align-items: flex-start; }
  .jf-six { grid-template-columns: repeat(3, 1fr); }
  .six:nth-of-type(3) { border-right: 0; }
  .mk-row { grid-template-columns: repeat(5, 1fr); }
  .mk-c span { width: 44px; height: 44px; }
  .mk-c small { display: none; }
  .jr-body { font-size: 17.5px; }
  .jr-lede { font-size: 20px; }
  .tr-fams { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; gap: 28px; }
  .pg-top { padding-top: 96px; }
}

/* calm / reduced motion */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
html.calm .kin-l { animation: none; }

@media print {
  .hdr, .ftr, .toasts, .cert-a, body::before { display: none !important; }
  .pg-top { padding: 0; }
}
