/* Zerra · HandPeeled™. Wet slate, one face of Jost set wide like the wordmark, and the colour of whatever stone you hold. */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/fonts/jost-latin.woff2) format('woff2'); }

:root {
  /* forest slate: a green-black wall like Verde marble after rain, with a pool of light where the stone hangs */
  --wall: #1F2A26;            /* the hero wall and the rack */
  --slate: #18221E;           /* the ledger, how it's made */
  --deep: #101814;            /* talk to us, the footer, the viewer */
  --floor: #2C3934;           /* the ledge the rack stands on */
  --light: rgba(255, 246, 228, .17);   /* the showroom light on the wall */
  --chalk: #ECE9E2; --chalk-80: rgba(236, 233, 226, .8); --chalk-60: rgba(236, 233, 226, .58); --hair: rgba(236, 233, 226, .14); --hair-2: rgba(236, 233, 226, .3);
  --ink: #1C211F;
  --stone: #E2CDBF; --stone-ink: #1C211F;     /* the colour of the stone in your hand, set from the sheet */
  --sans: "Jost", "Futura", "Avenir Next", sans-serif;
  --fs-display: clamp(44px, 5vw, 72px);
  --fs-h2: clamp(38px, 4.4vw, 68px);
  --fs-row: clamp(30px, 3vw, 46px);
  --fs-lead: clamp(20px, calc(1.1rem + .3vw), 22px);
  --fs-body: clamp(20px, calc(1.05rem + .3vw), 22px);
  --fs-small: 20px;           /* every sentence that is not a lead */
  --fs-ui: 18px; --fs-meta: 17px; --fs-label: 16px; --fs-legal: 16px;
  --wide: .07em; --wider: .16em;
  --gutter: 40px; --container: 1320px; --bar: 80px;
  --space-section: clamp(104px, calc(7vw + 56px), 184px);
  --space-head: 72px; --space-items: 96px; --space-actions: 40px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --safe-l: max(var(--gutter), env(safe-area-inset-left)); --safe-r: max(var(--gutter), env(safe-area-inset-right));
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); -webkit-text-size-adjust: 100%; }
body { background: var(--wall); color: var(--chalk); font-family: var(--sans); font-weight: 400; font-size: var(--fs-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; }
h1, h2 { font-weight: 300; text-transform: uppercase; letter-spacing: var(--wide); line-height: 1.02; }
h2 { font-size: var(--fs-h2); }
[hidden] { display: none !important; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--chalk); color: var(--ink); padding: 14px 20px; font-size: var(--fs-ui); font-weight: 500; }
.skip:focus { top: 12px; }
.wrap { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.label { display: block; font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--wider); color: var(--chalk-80); margin-bottom: 20px; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--chalk-80); margin-top: 28px; max-width: 30em; }
.meta { font-size: var(--fs-small); color: var(--chalk-80); }
.link { display: inline-flex; align-items: center; min-height: 48px; font-size: var(--fs-ui); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.link:hover { opacity: .75; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: var(--space-actions); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 30px; border-radius: 2px; font-size: var(--fs-ui); font-weight: 500; letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent; transition: background-color .5s var(--ease), color .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--stone); color: var(--stone-ink); }
.btn-primary:hover { background: var(--chalk); color: var(--ink); }
.btn-secondary { border-color: var(--hair-2); color: var(--chalk); }
.btn-secondary:hover { border-color: var(--chalk); background: rgba(238, 239, 234, .08); }
.arrow { width: 56px; height: 56px; display: inline-grid; place-items: center; border: 1px solid var(--hair-2); border-radius: 50%; font-size: 22px; transition: background .2s, border-color .2s; }
.arrow:hover { border-color: var(--chalk); background: rgba(238, 239, 234, .08); }
/* nothing here selects like text, or opens the iPhone's press-and-hold menu */
.peel, .grip, .rk, .fam, .v-bar, .hand-bar, .viewer { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- the bar ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--bar); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--safe-r) 0 var(--safe-l); transition: background-color .3s, box-shadow .3s; }
.top.is-solid { background: color-mix(in srgb, var(--deep) 96%, transparent); box-shadow: 0 1px 0 var(--hair); }
.menu-btn { justify-self: start; display: inline-flex; align-items: center; gap: 12px; height: 56px; margin-left: -12px; padding: 0 12px; font-size: var(--fs-ui); font-weight: 500; }
.menu-btn i { display: grid; gap: 6px; width: 24px; } .menu-btn i::before, .menu-btn i::after { content: ""; height: 1.5px; background: currentColor; }
.logo { justify-self: center; display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.logo img { width: auto; }
.logo .mk { height: 36px; }
.logo .wm { height: 20px; }
.words { justify-self: end; display: flex; gap: 36px; font-size: var(--fs-ui); font-weight: 500; }
.words a { position: relative; padding: 10px 0; }
.words a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--stone); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease), background-color .5s; }
.words a:hover::after, .words a.is-on::after { transform: scaleX(1); }
.menu { position: fixed; inset: 0; z-index: 50; background: var(--deep); display: grid; grid-template-rows: var(--bar) 1fr auto; padding: 0 var(--safe-r) 40px var(--safe-l); }
.menu-close { justify-self: start; align-self: center; height: 56px; font-size: var(--fs-ui); font-weight: 500; }
.menu nav { display: flex; flex-direction: column; justify-content: center; max-width: var(--container); width: 100%; margin: 0 auto; }
.menu nav a { display: flex; align-items: center; min-height: 64px; font-size: clamp(32px, 4.6vw, 60px); font-weight: 300; text-transform: uppercase; letter-spacing: var(--wide); line-height: 1.15; }
.menu nav a:last-child { font-size: var(--fs-ui); font-weight: 500; text-transform: none; letter-spacing: 0; margin-top: 16px; }
.menu nav a:hover { color: var(--stone); }
.menu-direct { display: flex; flex-wrap: wrap; gap: 0 32px; font-size: var(--fs-ui); max-width: var(--container); width: 100%; margin: 0 auto; }
.menu-direct a { display: inline-flex; align-items: center; min-height: 48px; }
.thumb { display: none; }

/* ---------- 1. peel ---------- */
/* on the wall every line is solid chalk: the mid slate can't carry anything fainter */
.peel, .rack-sec { --chalk-80: var(--chalk); }
.peel { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--wall); }
.peel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .025), rgba(0, 0, 0, 0) 60%), radial-gradient(90% 70% at 50% 110%, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 70%); pointer-events: none; }
/* the grid sets no stacking context, so the words and buttons sit above the 3D layer and the slot stays under it */
.peel-grid { position: relative; height: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: calc(var(--bar) + 24px) var(--safe-r) 32px var(--safe-l); display: grid; grid-template-columns: 6fr 5fr; gap: 40px; align-items: center; }
.peel-copy { position: relative; z-index: 3; transition: opacity .45s var(--ease), translate .5s var(--ease); }
.peel h1 { font-size: var(--fs-display); line-height: .98; }
.peel .lead { max-width: 24em; }
.families { display: flex; gap: 12px; margin-top: 52px; }
.fam { display: grid; justify-items: center; align-content: start; gap: 10px; width: 84px; padding: 0; }
.fam img { width: 44px; height: 88px; object-fit: cover; border-radius: 1px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .55); transition: transform .4s var(--ease), box-shadow .3s; }
.fam span { font-size: 15px; line-height: 1.25; text-align: center; color: var(--chalk); }
.fam:hover img { transform: translateY(-4px) rotate(-2deg); }
.fam.is-on img { box-shadow: 0 0 0 2px var(--chalk), 0 8px 18px -8px rgba(0, 0, 0, .55); }
.fam.is-on span { font-weight: 500; }
.peel-sheet { position: relative; z-index: 1; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.slot { position: relative; height: min(calc(100svh - var(--bar) - 150px), 860px); aspect-ratio: 1 / 2; container-type: inline-size; }
/* the showroom light: it falls on the wall where the sheet hangs, and stays there when the sheet is lifted */
.slot::before { content: ""; position: absolute; left: -110%; right: -110%; top: -38%; bottom: -30%; background: radial-gradient(closest-side, var(--light), rgba(0, 0, 0, 0)); pointer-events: none; }
/* printed on the wall, behind the sheet: you only read it once the sheet is off */
.wall-label { position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; border: 1px solid var(--hair); }
.wall-label b { font-size: clamp(18px, 14cqw, 48px); font-weight: 300; text-transform: uppercase; letter-spacing: var(--wide); line-height: 1.05; padding: 0 8px; }
.wall-label span { font-size: var(--fs-meta); padding: 0 8px; }
.wall-label i { font-style: normal; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--wider); }
@container (max-width: 170px) { .wall-label i { display: none; } }
.caption { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 14px; font-size: var(--fs-meta); transition: opacity .4s; }
.caption b, .caption span { white-space: nowrap; }
.caption b { font-size: var(--fs-ui); font-weight: 500; text-transform: uppercase; letter-spacing: var(--wider); }
.caption::before { content: ""; width: 48px; height: 2px; background: var(--stone); align-self: center; transition: background-color .5s; }
.peel-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.peel.is-hand .peel-canvas { touch-action: none; cursor: grab; z-index: 5; }
.peel.is-hand .peel-canvas:active { cursor: grabbing; }
.peel-flat { position: absolute; z-index: 2; object-fit: cover; box-shadow: 8px 14px 30px -12px rgba(0, 0, 0, .55); pointer-events: none; }
/* the grip: a big invisible handle on the lifted corner. A pull across peels; a plain upward swipe still scrolls the page */
.grip { position: absolute; left: 0; top: 0; z-index: 4; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%; touch-action: pan-y; cursor: grab; transition: opacity .3s; }
.grip:active { cursor: grabbing; }
.grip.is-away { opacity: 0; pointer-events: none; }
.grip-ring { position: absolute; inset: 40px; border: 1.5px solid var(--chalk); border-radius: 50%; box-shadow: 0 0 0 1px rgba(12, 16, 14, .45), inset 0 0 0 1px rgba(12, 16, 14, .3); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(.6); opacity: .95; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.grip.is-used .grip-ring { opacity: 0; animation: none; }
.peel.is-hand .peel-copy, .peel.is-moving .peel-copy { opacity: 0; translate: -24px 0; }
.peel.is-hand .caption, .peel.is-moving .caption { opacity: 0; }
/* the hand bar is pinned to the bottom of the screen, so its buttons are always in reach */
.hand-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px 24px; padding: 20px var(--safe-r) calc(28px + env(safe-area-inset-bottom)) var(--safe-l); background: linear-gradient(to top, color-mix(in srgb, var(--deep) 94%, transparent), transparent); visibility: hidden; opacity: 0; translate: 0 14px; transition: opacity .4s var(--ease), translate .5s var(--ease), visibility 0s .4s; }
.peel.is-hand .hand-bar { visibility: visible; opacity: 1; translate: 0 0; transition: opacity .4s var(--ease), translate .5s var(--ease), visibility 0s; }
.hand-name { display: grid; gap: 4px; }
.hand-name b, .hand-name h2 { font-size: clamp(28px, 2.6vw, 40px); font-weight: 300; text-transform: uppercase; letter-spacing: var(--wide); line-height: 1.05; }
.hand-name span { font-size: var(--fs-meta); color: var(--chalk); }
.hand-bar .actions { margin: 0; justify-self: end; flex-wrap: nowrap; }

/* ---------- sections ---------- */
.sec { padding: var(--space-section) 0; }
.sec-head { margin-bottom: var(--space-head); }

/* 2. buildings: the ledger */
.ledger { background: var(--wall); }
.ledger-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.rows { border-top: 1px solid var(--hair); counter-reset: row; padding-bottom: 36svh; }
.row { border-bottom: 1px solid var(--hair); }
.row button { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; width: 100%; padding: 30px 0 28px; text-align: left; color: var(--chalk-80); transition: color .3s; }
.row button::before { counter-increment: row; content: counter(row, decimal-leading-zero); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--wider); padding-top: 12px; }
.row button::after { content: ""; position: absolute; left: -20px; top: 28px; bottom: 26px; width: 2px; background: var(--stone); transform: scaleY(0); transition: transform .35s var(--ease), background-color .5s; }
.row .what { font-size: var(--fs-row); font-weight: 300; text-transform: uppercase; letter-spacing: var(--wide); line-height: 1.08; text-wrap: balance; }
.row .where { grid-column: 2; font-size: var(--fs-meta); margin-top: 8px; color: inherit; }
.row.is-on button, .row button:hover { color: var(--chalk); }
.row.is-on button::after { transform: scaleY(1); }
.row .pic-m, .row .line-m { display: none; }
.ledger-pic { position: sticky; top: calc(var(--bar) + 24px); height: calc(100svh - var(--bar) - 48px); max-height: 900px; overflow: hidden; background: var(--floor); }
.ledger-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.ledger-pic img.is-on { opacity: 1; }
.ledger-pic figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 72px 28px 26px; background: linear-gradient(to top, rgba(18, 22, 20, .9), rgba(18, 22, 20, 0)); font-size: var(--fs-small); line-height: 1.45; }

/* 3. stones: the rack */
.rack-sec { background: var(--slate); padding-bottom: 72px; }
.rack-head { display: grid; grid-template-columns: 6fr 6fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 28px; }
.tab { position: relative; min-height: 56px; font-size: var(--fs-ui); font-weight: 500; color: var(--chalk); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 3px; background: var(--stone); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease), background-color .5s; }
.tab[aria-pressed="true"]::after { transform: scaleX(1); }
.tab:hover::after { transform: scaleX(.35); }
.tab[aria-pressed="true"]:hover::after { transform: scaleX(1); }
.rack { position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; }
.rack::-webkit-scrollbar { display: none; }
.rack.is-drag { cursor: grabbing; }
.rack-row { position: relative; display: flex; align-items: flex-end; gap: 30px; width: max-content; padding: 40px var(--gutter) 0; padding-left: max(var(--safe-l), calc((100vw - var(--container)) / 2)); padding-right: max(var(--safe-r), calc((100vw - var(--container)) / 2)); }
.rack-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 64px; height: 26px; background: var(--floor); box-shadow: inset 0 1px 0 var(--hair-2); z-index: 0; }
.rk { position: relative; z-index: 1; flex: none; display: grid; justify-items: center; padding: 0; -webkit-user-drag: none; }
.rk .face { position: relative; display: block; height: clamp(300px, 46svh, 470px); transform-origin: 50% 100%; transform: rotate(var(--lean, -1deg)); transition: transform .45s var(--ease); margin-bottom: 18px; }
.rk img { height: 100%; width: auto; box-shadow: -12px 16px 26px -14px rgba(10, 14, 12, .6); pointer-events: none; -webkit-user-drag: none; }
.rk .name { position: relative; z-index: 1; display: grid; place-items: center; height: 64px; font-size: var(--fs-meta); text-align: center; white-space: nowrap; }
@media (hover: hover) { .rk:hover .face { transform: translateY(-12px) rotate(0deg); } }
.rk:focus-visible { outline: none; } .rk:focus-visible .face { outline: 2px solid var(--chalk); outline-offset: 6px; }
.rack-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.rack-line { font-size: var(--fs-small); max-width: 40em; }
.rack-nav { display: flex; gap: 12px; }

/* 4. how it's made */
.made { background: var(--slate); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps svg { width: 100%; height: auto; margin-bottom: 18px; overflow: visible; }
.ln path { fill: none; stroke: var(--chalk); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ln .dim { stroke: var(--chalk-60); }
.ln .mesh { stroke: var(--stone); stroke-dasharray: 2 4; transition: stroke .5s; }
.ln .peel-path { stroke: var(--stone); stroke-width: 2; transition: stroke .5s; }
.steps b { display: flex; align-items: baseline; gap: 14px; font-size: 24px; font-weight: 400; text-transform: uppercase; letter-spacing: var(--wide); }
.steps b i { font-style: normal; font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--wider); color: var(--chalk-80); }
.steps span { font-size: var(--fs-small); line-height: 1.5; color: var(--chalk-80); max-width: 20em; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--space-items); border-top: 1px solid var(--hair); }
.facts li { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 8px; align-content: start; }
.facts li:not(:nth-child(4n + 1)) { padding-left: 28px; border-left: 1px solid var(--hair); }
.made-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 56px; }
.also { margin-top: 48px; font-size: var(--fs-small); color: var(--chalk-80); max-width: 46em; }
.desc { margin-top: 10px; max-width: 30em; font-size: var(--fs-meta); line-height: 1.45; color: var(--chalk-80); }
.facts b { font-size: clamp(22px, 1.8vw, 28px); font-weight: 300; text-transform: uppercase; letter-spacing: var(--wide); line-height: 1.15; }
.facts span { font-size: var(--fs-small); color: var(--chalk-80); }

/* 5. talk to us, and the footer */
.talk { background: var(--deep); }
.talk-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px 72px; align-items: start; }
.phone-big { display: inline-flex; align-items: center; min-height: 56px; margin-top: 48px; font-size: clamp(34px, 3.2vw, 48px); font-weight: 300; letter-spacing: .03em; line-height: 1.1; }
.phone-big:hover { color: var(--stone); }
.talk .meta { margin-top: 8px; }
.mail { display: inline-flex; align-items: center; min-height: 48px; margin-top: 12px; font-size: var(--fs-ui); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.form { display: grid; gap: 26px; }
.form label { display: grid; gap: 10px; }
.form label > span, .chips legend { font-size: var(--fs-small); font-weight: 500; color: var(--chalk); }
.form input:not([type=checkbox]), .form textarea { width: 100%; height: 58px; padding: 0 18px; border: 1px solid var(--hair-2); border-radius: 2px; background: rgba(238, 239, 234, .06); color: var(--chalk); font: inherit; font-size: 21px; transition: border-color .2s, background .2s; }
.form textarea { height: 140px; padding: 14px 18px; resize: vertical; }
.form textarea::placeholder { color: var(--chalk-60); }
.form input:focus, .form textarea:focus { border-color: var(--chalk); background: rgba(238, 239, 234, .1); outline: none; }
.form .is-bad { border-color: #F2B8A6; box-shadow: 0 0 0 2px rgba(242, 184, 166, .4); }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { margin-bottom: 12px; }
.chips label { display: inline-flex; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; height: 56px; padding: 0 22px; border: 1px solid var(--hair-2); border-radius: 2px; font-size: var(--fs-ui); transition: background .15s, color .15s, border-color .15s; }
.chips input:checked + span { background: var(--stone); color: var(--stone-ink); border-color: var(--stone); }
.chips input:focus-visible + span { outline: 2px solid var(--chalk); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.status { min-height: 1.5em; font-size: var(--fs-small); color: var(--chalk-80); }
.status a { color: var(--chalk); text-decoration: underline; }
.foot { background: var(--deep); padding: 0 0 48px; border-top: 1px solid var(--hair); }
.foot .wrap { padding-top: 96px; }
.foot-logo { width: min(34vw, 440px); height: auto; margin: 0 auto; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; margin-top: 80px; font-size: 20px; }
.foot-h { font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: var(--wider); color: var(--chalk-80); margin-bottom: 12px; }
.foot-cols li { min-height: 48px; display: flex; align-items: center; }
.foot-cols a { display: inline-flex; align-items: center; min-height: 48px; }
.foot-cols a:hover { color: var(--stone); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--hair); font-size: var(--fs-legal); color: var(--chalk-80); }
.foot-legal > * { display: inline-flex; align-items: center; min-height: 48px; }
.foot-legal a:hover { color: var(--chalk); }

/* ---------- the stone in your hand (from the rack) ---------- */
.viewer { position: fixed; inset: 0; z-index: 60; background: radial-gradient(60% 70% at 50% 42%, color-mix(in srgb, var(--wall) 100%, #fff 6%), var(--deep) 75%); animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; } }
.viewer.is-closing { animation: fadeout .45s .3s ease both; }
@keyframes fadeout { to { opacity: 0; } }
.viewer-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.viewer-canvas:active { cursor: grabbing; }
.viewer-flat { position: absolute; left: 50%; top: 45%; translate: -50% -50%; height: 62svh; width: auto; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.viewer .close { position: absolute; top: 12px; right: var(--safe-r); z-index: 2; display: inline-flex; align-items: center; height: 56px; padding: 0 4px; font-size: var(--fs-ui); font-weight: 500; }
.viewer .close::before { content: "×"; margin-right: 10px; font-size: 26px; font-weight: 300; }
.v-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name actions"; align-items: end; gap: 16px 32px; padding: 0 var(--safe-r) calc(28px + env(safe-area-inset-bottom)) var(--safe-l); pointer-events: none; }
.v-bar > * { pointer-events: auto; }
.v-bar .hand-name { grid-area: name; } .v-bar .actions { grid-area: actions; margin: 0; flex-wrap: nowrap; }
.v-nav { position: fixed; top: 46%; left: var(--safe-l); right: var(--safe-r); translate: 0 -50%; display: flex; justify-content: space-between; pointer-events: none; z-index: 2; }
.v-nav .arrow { pointer-events: auto; background: color-mix(in srgb, var(--deep) 60%, transparent); }

/* ---------- the palette, for the founder to pick: ?palette=midnight | aubergine (empty = forest) ---------- */
html[data-palette="midnight"] { --wall: #1C222B; --slate: #161B23; --deep: #0E1218; --floor: #29313D; --light: rgba(236, 240, 255, .16); }
html[data-palette="aubergine"] { --wall: #2A1F28; --slate: #221921; --deep: #160F15; --floor: #3A2C37; --light: rgba(255, 238, 230, .16); }

/* ---------- smaller laptops ---------- */
@media (min-width: 1024px) and (max-height: 800px) {
  .families { margin-top: 32px; }
  .peel .lead { margin-top: 18px; }
  .peel-copy .actions { margin-top: 26px; }
}

/* ---------- tablets and phones ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 24px; --bar: 64px; --space-head: 48px; --space-items: 72px; }
  .words { display: none; }
  .logo { position: absolute; left: 50%; translate: -50% 0; gap: 10px; }
  .logo .mk { height: 28px; }
  .logo .wm { height: 15px; }
  .thumb { position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; display: grid; grid-template-columns: repeat(3, 1fr); height: 60px; border-radius: 4px; background: color-mix(in srgb, var(--deep) 96%, transparent); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); transition: opacity .3s, translate .3s var(--ease); }
  .thumb a { display: grid; place-items: center; font-size: var(--fs-ui); font-weight: 500; }
  .thumb a.is-on { color: var(--stone); }
  body.in-hand .thumb, body.at-peel .thumb, body.in-viewer .thumb { opacity: 0; translate: 0 20px; pointer-events: none; }
  /* the phone hero: the headline, the sheet, its name, one button */
  .peel { min-height: 520px; }
  .peel-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; align-items: stretch; gap: 0; padding: calc(var(--bar) + 6px) var(--safe-r) 18px var(--safe-l); }
  .peel-copy { display: contents; }
  .peel-copy > .label, .peel .lead, .families { display: none; }
  .peel-copy > h1 { grid-row: 1; position: relative; z-index: 3; font-size: min(40px, calc((100vw - 48px) / 10.6)); white-space: nowrap; margin-bottom: 14px; transition: opacity .4s; }
  .peel-sheet { grid-row: 2; gap: 12px; justify-content: center; }
  .slot { height: auto; flex: 1 1 auto; min-height: 180px; max-height: 58svh; width: auto; }
  .peel-copy > .actions { grid-row: 3; position: relative; z-index: 3; margin: 14px 0 0; transition: opacity .4s; }
  .peel-copy > .actions .btn { width: 100%; }
  .peel.is-hand .peel-copy > *, .peel.is-moving .peel-copy > * { opacity: 0; }
  .grip { width: 112px; height: 112px; margin: -56px 0 0 -56px; }
  .grip-ring { inset: 32px; }
  .hand-bar { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; padding-top: 28px; }
  .hand-bar .actions, .v-bar .actions { justify-self: stretch; justify-content: center; }
  .hand-bar .actions .btn { flex: 1 1 0; padding: 0 14px; }
  .hand-name b { font-size: 26px; }
  .hand-bar .desc, .v-bar .desc { margin: 6px auto 0; font-size: 16px; }
  .ledger-grid { grid-template-columns: 1fr; gap: 0; }
  .rows { padding-bottom: 0; }
  .ledger-pic { display: none; }
  .row button { color: var(--chalk); padding: 26px 0 30px; }
  .row button::after { display: none; }
  .row .pic-m { display: block; grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 18px; background: var(--floor); }
  .row .line-m { display: block; grid-column: 1 / -1; margin-top: 12px; font-size: var(--fs-small); color: var(--chalk-80); }
  .rack-head { grid-template-columns: 1fr; margin-bottom: 32px; }
  .tabs { justify-content: flex-start; gap: 0 24px; }
  .rack { scroll-snap-type: x proximity; }
  .rk { scroll-snap-align: center; }
  .rk .face { height: clamp(260px, 50svh, 420px); }
  .rack-row { gap: 22px; }
  .rack-nav { display: none; }
  .rack-sec { padding-bottom: 104px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 48px 24px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li, .facts li:not(:nth-child(4n + 1)) { padding: 28px 20px 30px 0; border-left: 0; }
  .facts li:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--hair); }
  .talk-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot { padding-bottom: 104px; }
  .foot-logo { width: min(64vw, 320px); }
  .v-bar { grid-template-columns: 1fr; grid-template-areas: "name" "actions"; justify-items: center; text-align: center; gap: 10px; }
  .v-bar .actions { flex-direction: column; gap: 4px; }
  .v-bar .actions .btn { width: 100%; }
  .v-nav { top: 38%; }
  .viewer .close { right: auto; left: var(--safe-l); }
}
@media (max-width: 560px) {
  .menu-btn b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .row .what { font-size: 30px; }
}
/* a phone on its side: copy on the left, the sheet on the right, everything on one screen */
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 540px) {
  .peel { min-height: 0; }
  .peel-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 24px; padding-top: calc(var(--bar) + 4px); }
  .peel-copy > h1 { grid-column: 1; grid-row: 1; align-self: center; white-space: normal; font-size: clamp(28px, 4.4vw, 40px); }
  .peel-copy > .actions { grid-column: 1; grid-row: 2; }
  .peel-sheet { grid-column: 2; grid-row: 1 / 3; }
  .slot { max-height: none; }
  .caption { display: none; }
  .hand-bar { grid-template-columns: 1fr auto; text-align: left; justify-items: start; padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .hand-bar .actions { justify-self: end; }
  .thumb { height: 52px; }
  .v-bar { grid-template-columns: 1fr auto; grid-template-areas: "name actions"; text-align: left; justify-items: start; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .v-bar .actions { flex-direction: row; justify-self: end; }
  .v-bar .actions .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grip-ring { animation: none; }
  .ledger-pic img, .rk .face, .btn, .hand-bar, .peel-copy { transition: none; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 40px; padding: 40px var(--gutter); text-align: center; background: var(--wall); }
.nf-logo { width: min(56vw, 280px); height: auto; }
.nf h1 { font-size: var(--fs-h2); }
