/* Low Sun — styles
   Display face: Unbounded (wide, upright). Body and UI: Instrument Sans. Data: IBM Plex Mono.
   The page is one hour of light. --bg, --ink and --acc are rewritten on scroll
   by app.js, so almost everything here is painted in those three variables. */

:root {
  --bg: #F0DCB0;
  --ink: #241A10;
  --ink-rgb: 36, 26, 16;
  --bg-rgb: 240, 220, 176;
  --acc: #B9541A;
  --display: 'Unbounded', 'Instrument Sans', system-ui, sans-serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --line: rgba(var(--ink-rgb), .16);
  --line-strong: rgba(var(--ink-rgb), .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
  min-height: 100vh;
  transition: background-color .25s linear, color .25s linear;
  -webkit-font-smoothing: antialiased;
}
html.has-overlay, html.has-overlay body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 3px; }
.skip:focus { top: 12px; }

.mono { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dim { opacity: .68; }
.small { font-size: 14px; }
.tiny { font-size: 11px; opacity: .55; }
.mt { margin-top: 20px; }
.center { display: block; margin: 0 auto; }
.wrap { max-width: var(--max); margin: 0 auto; }

/* Grain. A real texture, fixed in place. */
.grain {
  position: fixed; inset: 0;
  background: url(../assets/grain.png) repeat; background-size: 160px 160px;
  opacity: .32; pointer-events: none; z-index: 100;
}

/* Nav */
:root { --nav-h: 57px; }
.nav {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s linear, color .25s linear, border-color .3s;
}
.nav.over-hero { background: transparent; border-color: transparent; color: #241A10; }
.nav .clock { transition: opacity .4s; }
.nav.over-hero .clock { opacity: 0; }
.wordmark { font: 500 19px/1 var(--display); letter-spacing: -.01em; }
.clock { display: flex; gap: 9px; align-items: center; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .08em; }
.sun { width: 18px; height: 18px; }
.bag-link { justify-self: end; font-weight: 500; font-size: 15px; padding: 6px 0; }
#bag-count { font-family: var(--mono); font-size: 12px; }

/* Sections */
section { padding: clamp(72px, 13vh, 170px) var(--gutter); }
.stamp { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 26px; }
.title { font: 400 clamp(44px, 8.4vw, 124px)/.98 var(--display); letter-spacing: -.03em; }
.title-md { font: 400 clamp(34px, 5.5vw, 80px)/1 var(--display); letter-spacing: -.03em; }
.h2 { font: 400 clamp(30px, 4.3vw, 58px)/1.02 var(--display); letter-spacing: -.03em; }
.sub { font: 300 clamp(17px, 2.3vw, 29px)/1.25 var(--display); margin-top: 22px; opacity: .85; }
.lede { font: 300 clamp(20px, 2.6vw, 35px)/1.28 var(--display); letter-spacing: -.02em; max-width: 30ch; }
.lede-sm { font: 300 clamp(17px, 2vw, 26px)/1.3 var(--display); letter-spacing: -.01em; max-width: 26ch; }



/* Hero. The stage is pinned while the section's extra height scrolls past; app.js maps that
   scroll to the sun, the sky and the clock. The picture is CSS and two SVG ridges. */
.hero { position: relative; height: calc(300svh - var(--nav-h)); margin-top: calc(-1 * var(--nav-h)); padding: 0; }
.hero-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  color: #241A10;
  --sky-top: #F1D49C; --sky-mid: #EAB167; --sky-low: #E9A463;
  --sun-y: 34%; --sun-x: 56%; --sun-y0: 34; --sun-y1: 94;
}
.hero-sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-low) 100%); }
.hero-haze { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(to top, rgba(255, 226, 176, .42) 0%, rgba(255, 226, 176, .3) 45%, rgba(255, 226, 176, 0) 100%); }
.hero-sun {
  position: absolute; left: var(--sun-x); top: var(--sun-y);
  width: clamp(96px, 13vw, 196px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #FFF9E6 0%, #FFF0C8 58%, #FFE8B4 100%);
  box-shadow: 0 0 44px 16px rgba(255, 228, 165, .34), 0 0 140px 70px rgba(255, 200, 120, .16);
}
.hero-ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; }
.hero-ridge-far path { fill: url(#ridge-far-fill); }
.hero-ridge-near path { fill: #2E1A14; }
.hero-title {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + clamp(28px, 5vh, 60px));
  font: 400 clamp(36px, 5.2vw, 76px)/1 var(--display); letter-spacing: -.035em; max-width: 10ch;
  animation: hero-in 1.2s ease both;
}
.hero-clock {
  position: absolute; left: var(--gutter); bottom: calc(42% + clamp(12px, 2vh, 24px));
  font: 400 clamp(64px, 13vw, 190px)/.86 var(--display); letter-spacing: -.07em; margin-left: -.05em;
  font-variant-numeric: tabular-nums;
  animation: hero-in 1.2s .15s ease both;
}
/* The section after the hero overlaps the ridge with a jagged top edge in the page colour */
.hero + section {
  --z: 40px;
  position: relative; z-index: 2; background: var(--bg);
  margin-top: calc(-1 * var(--z));
  padding-top: calc(clamp(72px, 13vh, 170px) + var(--z));
  clip-path: polygon(
    0 calc(var(--z) * .7), 11% calc(var(--z) * .25), 24% calc(var(--z) * .85), 38% calc(var(--z) * .15),
    50% calc(var(--z) * .6), 63% calc(var(--z) * .05), 77% calc(var(--z) * .75), 89% calc(var(--z) * .3),
    100% calc(var(--z) * .55), 100% 100%, 0 100%);
}

/* The three products that scrub past while the sun goes down */
.hero-prods { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-52%); width: min(30vw, 400px); aspect-ratio: 4 / 5; }
.hero-prod { position: absolute; inset: 0; display: block; opacity: 0; will-change: transform, opacity; }
.hero-prod .ph { height: 100%; box-shadow: 0 40px 70px -40px rgba(40, 20, 10, .5); }
.hero-prod .ph-product > svg { top: 12%; height: 76%; }
.hero-prod-meta { position: absolute; top: 100%; left: 0; right: 0; margin-top: 12px; display: flex; gap: 10px; align-items: baseline; font-size: 15px; font-weight: 500; }
.hero-prod-meta .mono { opacity: .55; font-size: 11px; }
.hero-prod-meta .n { flex: 1; }
@keyframes hero-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .hero-stage { --sun-x: 58%; --sun-y0: 30; --sun-y1: 93; }
  .hero-prods { width: 46%; right: var(--gutter); top: 27%; transform: none; }
  .hero-prod-meta { font-size: 13px; }
  .hero-ridge { height: 34%; }
  .hero-haze { height: 50%; }
  .hero-clock { bottom: calc(34% + 14px); }
  .hero + section { --z: 24px; }
}
@media (prefers-reduced-motion: reduce) { .hero-title, .hero-clock { animation: none; } }

/* Placeholder frames. Each one says what the real photograph should be. */
.ph {
  position: relative; overflow: hidden; border-radius: 3px;
  background: linear-gradient(180deg, #F1E1C3, #D7B084);
  color: #1E120A;
}
.ph > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.slate {
  position: absolute; left: 10px; right: 10px; bottom: 9px;
  font: 400 10px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  color: rgba(30, 18, 10, .78);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.ph-product {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 236, 190, .95), rgba(255, 236, 190, 0) 44%),
    linear-gradient(180deg, #EFDDBC 0%, #D9B386 100%);
}
.ph-product > svg { inset: auto; top: 7%; left: 12%; width: 76%; height: 68%; }
.ph-product > svg path { fill: var(--c); stroke: rgba(0, 0, 0, .22); stroke-width: .7; stroke-linejoin: round; }
.ph-product > svg path[fill="none"] { fill: none; }

/* Shop */
.shop-head .h2 { margin-bottom: 14px; }
.filters { display: flex; gap: 8px; overflow-x: auto; margin-top: 36px; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 15px; border: 1px solid var(--line-strong); border-radius: 3px; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 14px; margin-top: 26px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 56px 28px; margin-top: 40px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 56px 24px; } }
.card { display: block; -webkit-tap-highlight-color: transparent; }
.card .ph { transition: filter .5s ease; }
.card:hover .ph { filter: brightness(1.04) contrast(1.02); }
.card-meta { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; font-size: 15px; font-weight: 500; }
.card-meta .mono { opacity: .55; font-size: 11px; }
.card-name { flex: 1; min-width: 0; }
.card-price { font-variant-numeric: tabular-nums; }
.card-short { font-size: 14px; opacity: .68; margin-top: 2px; }
@media (max-width: 420px) { .card-meta { flex-wrap: wrap; } .card-meta .mono { display: none; } }

/* Materials */
.mat-list { margin-top: 48px; border-top: 1px solid var(--line); max-width: 1040px; }
.mat-list > div { display: grid; grid-template-columns: 1fr; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .mat-list > div { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding: 26px 0; } }
.mat-list dt { font: 400 clamp(18px, 2vw, 24px)/1.15 var(--display); letter-spacing: -.02em; }
.mat-list dd { font-size: 17px; opacity: .88; max-width: 54ch; }

/* Stills */
.stills .dim { max-width: 44ch; }
.stills-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
@media (max-width: 700px) {
  .stills-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .stills-row::-webkit-scrollbar { display: none; }
  .stills-row .ph { flex: 0 0 76%; scroll-snap-align: start; }
}
.ph-still { aspect-ratio: 4 / 5; }
.still-van { background: linear-gradient(180deg, #E8B266 0%, #D8824A 60%, #8E4634 100%); }
.still-hands { background: radial-gradient(circle at 40% 45%, #F0C98A 0%, #C9793F 55%, #6E3225 100%); }
.still-dark { background: linear-gradient(180deg, #3F2C4C 0%, #2A2236 55%, #16121C 100%); }
.still-dark .slate, .still-van .slate { color: rgba(255, 238, 210, .82); }

/* Letter, mail */
.letter-body { margin-top: 28px; max-width: 54ch; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.letter-body p + p { margin-top: 1em; }
.mail-form { display: flex; align-items: center; gap: 12px; max-width: 480px; margin-top: 32px; border-bottom: 1px solid var(--ink); }
.mail-form input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 14px 0; color: inherit; font: inherit; font-size: 17px; }
.mail-form input::placeholder { color: inherit; opacity: .45; }
.mail-form input:focus { outline: none; }
.mail-form button { font-weight: 500; padding: 14px 0; white-space: nowrap; }
.mail-thanks { margin-top: 32px; font: 300 19px/1.3 var(--display); }

/* Footer */
.foot { padding: clamp(56px, 10vh, 120px) var(--gutter) 40px; border-top: 1px solid var(--line); }
.foot-word { font: 400 clamp(48px, 11vw, 156px)/.95 var(--display); letter-spacing: -.04em; margin-top: 10px; }
.foot-tag { margin-top: 18px; font-size: 18px; opacity: .8; }
.foot-cols { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 56px; font-size: 15px; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.foot-cols li + li { margin-top: 8px; }
.foot-cols a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--ink-rgb), .4); }
.foot-plain { opacity: .7; }
.foot .tiny { margin-top: 56px; }

/* Buttons and controls */
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  padding: 16px 22px; border-radius: 3px;
  font: 500 16px var(--sans);
  transition: opacity .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { opacity: .9; }
.btn:active { transform: translateY(1px); }
.btn-big { width: 100%; padding: 18px; font-size: 17px; }
.btn .dim-inv { opacity: .5; }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
/* While a Shopify cart call is in flight */
.overlay.busy .qty button, .overlay.busy [data-checkout] { opacity: .5; pointer-events: none; }
.bag-note { margin: 0 0 14px; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--ink-rgb), .45); font-size: 15px; }
.x { font-weight: 500; font-size: 14px; padding: 8px 0; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 1.1s ease, transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Overlays: product sheet, bag, checkout, confirmation */
.overlay { position: fixed; inset: 0; z-index: 60; }
.scrim { position: absolute; inset: 0; background: rgba(18, 10, 6, .5); opacity: 0; transition: opacity .35s; }
.overlay.open .scrim { opacity: 1; }
.panel {
  position: absolute; inset: 0;
  background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(100%);
  transition: transform .5s var(--ease), opacity .35s;
}
.overlay.open .panel { transform: none; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); flex: none; min-height: 56px; }
.panel-title { font: 400 20px/1 var(--display); letter-spacing: -.02em; }
.panel-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* Product sheet */
.sheet-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-media .ph { border-radius: 0; }
.sheet-media .ph-product > svg { top: 9%; height: 66%; }
.sheet-media .slate { font-size: 11px; -webkit-line-clamp: 4; }
.sheet-info { padding: 22px var(--gutter) 28px; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sheet-title { font: 400 clamp(24px, 3vw, 34px)/1.05 var(--display); letter-spacing: -.03em; }
.sheet-price { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sheet-line { margin-top: 16px; font-size: 17px; max-width: 46ch; }
.opt { margin-top: 26px; }
.opt-label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 14px; font-weight: 500; }
.opt-label .link { margin-left: auto; font-size: 13px; }
.few { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.swatches { display: flex; gap: 12px; }
.swatch {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .25);
  box-shadow: 0 0 0 2px var(--bg);
  transition: box-shadow .2s;
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-width: 54px; height: 48px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 3px;
  font: 500 14px var(--mono);
  transition: background-color .15s, color .15s, border-color .15s;
}
.size[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.sizes.nudge { animation: nudge .4s ease; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.opt-hint { margin-top: 10px; font-size: 14px; color: var(--acc); font-weight: 500; }
.fit { margin-top: 22px; font-size: 15px; opacity: .8; }
.acc { margin-top: 26px; }
.acc details { border-top: 1px solid var(--line); }
.acc details:last-child { border-bottom: 1px solid var(--line); }
.acc summary { padding: 16px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 15px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-family: var(--mono); opacity: .6; }
.acc details[open] summary::after { content: '−'; }
.acc details > :not(summary) { padding-bottom: 18px; font-size: 15px; opacity: .85; }
.plain li { padding: 3px 0; }
.plain li::before { content: '— '; opacity: .5; }
.meas { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; margin-bottom: 10px; }
.meas th, .meas td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.meas thead th { opacity: .6; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.sheet-cta {
  flex: none; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .panel.sheet {
    inset: 5vh auto auto 50%; width: min(1100px, 92vw); height: 90vh;
    transform: translate(-50%, 24px); opacity: 0; border-radius: 4px;
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto;
  }
  .overlay.open .panel.sheet { transform: translate(-50%, 0); opacity: 1; }
  .panel.sheet .panel-bar { grid-column: 1 / -1; }
  .sheet-scroll { display: contents; }
  .sheet-media { grid-column: 1; grid-row: 2 / 4; min-height: 0; overflow: hidden; }
  .sheet-media .ph { height: 100%; aspect-ratio: auto; }
  .sheet-info { grid-column: 2; grid-row: 2; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px 40px 28px; }
  .sheet-cta { grid-column: 2; grid-row: 3; padding: 14px 40px 18px; }
}

/* Bag */
.bag-list { padding: 8px var(--gutter); }
.bag-item { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-thumb .ph { aspect-ratio: 4 / 5; }
.bag-thumb .ph-product > svg { top: 10%; height: 80%; }
.bag-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; font-size: 15px; }
.bag-info .small { margin-top: 2px; }
.qty { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.qty button:not(.link) { width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 3px; font-family: var(--mono); }
.qty span { min-width: 28px; text-align: center; font-family: var(--mono); font-size: 13px; }
.qty .link { margin-left: 12px; font-size: 13px; }
.empty { padding: 48px var(--gutter); font: 300 20px/1.3 var(--display); }
.bag-foot { flex: none; padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.tot { display: flex; justify-content: space-between; font-weight: 500; font-size: 17px; }
.hint { margin-top: 8px; margin-bottom: 14px; font-size: 14px; opacity: .72; }
.bag-foot .link { margin-top: 14px; }

@media (min-width: 900px) {
  .panel.bag { inset: 0 0 0 auto; width: min(470px, 100vw); transform: translateX(100%); }
  .overlay.open .panel.bag { transform: none; }
}

/* Checkout */
.co-wrap { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 8px var(--gutter) 40px; max-width: 1100px; margin: 0 auto; }
.co-summary { order: -1; border: 1px solid var(--line); border-radius: 4px; padding: 16px; }
.co-summary h3 { font: 400 17px/1 var(--display); margin-bottom: 8px; }
.co-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.co-line .dim { font-size: 13px; }
.co-tots { margin-top: 10px; font-size: 15px; }
.co-tots div { display: flex; justify-content: space-between; padding: 4px 0; }
.co-tots .grand { font-weight: 500; font-size: 17px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.co-form h2 { font: 400 clamp(26px, 3.1vw, 37px)/1.05 var(--display); letter-spacing: -.03em; }
fieldset { border: 0; padding: 0; margin: 30px 0 0; min-width: 0; }
legend { font: 400 18px/1 var(--display); letter-spacing: -.02em; padding: 0; margin-bottom: 4px; }
.field { display: block; margin-top: 14px; }
.field > span { display: block; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 13px 12px;
  border: 1px solid var(--line-strong); border-radius: 3px;
  background: transparent; color: inherit;
  font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none;
}
.field select { background: var(--bg); }
.field input::placeholder { color: inherit; opacity: .35; }
.field input:focus, .field select:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: transparent; }
.field.bad input { border-color: var(--acc); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.radio input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.radio .r { margin-left: auto; font-variant-numeric: tabular-nums; }
.form-error { margin-top: 20px; font-size: 15px; color: var(--acc); font-weight: 500; }
.co-form .btn-big { margin-top: 26px; }
.proto { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; opacity: .55; }

@media (min-width: 900px) {
  .panel.checkout { inset: 4vh auto auto 50%; width: min(1140px, 94vw); height: 92vh; transform: translate(-50%, 24px); opacity: 0; border-radius: 4px; }
  .overlay.open .panel.checkout { transform: translate(-50%, 0); opacity: 1; }
  .co-wrap { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; padding: 24px 48px 56px; }
  .co-summary { order: 0; align-self: start; position: sticky; top: 0; padding: 20px; }
}

/* Confirmation */
.done-body { padding: clamp(32px, 6vh, 64px) var(--gutter); max-width: 560px; }
.done-body h2 { font: 400 clamp(30px, 4.7vw, 50px)/1.05 var(--display); letter-spacing: -.03em; }
.done-body p { margin-top: 18px; font-size: 18px; }
.done-body .btn { margin-top: 32px; }
@media (min-width: 900px) {
  .panel.done { inset: 50% auto auto 50%; width: min(600px, 92vw); height: auto; transform: translate(-50%, calc(-50% + 20px)); opacity: 0; border-radius: 4px; }
  .overlay.open .panel.done { transform: translate(-50%, -50%); opacity: 1; }
}

/* Reduced motion: no reveals, no slides */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .panel, .scrim, .btn, .card .ph { transition: none; }
  .sizes.nudge { animation: none; }
}
