/* sealed-desk/team-recorder: One desk of real stationery in daylight: kraft paper, glassine envelope, graphite pencil, aubergine sealing wax. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/fraunces-300-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/hanken-grotesk-400-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{--kraft:#C6A473;--kraft-deep:#A9864F;--graphite:#26231F;--glassine:#D9DECF;--wax:#4E1F3D;--display:'Fraunces', 'Iowan Old Style', Georgia, serif;--text:'Hanken Grotesk', -apple-system, system-ui, sans-serif;--display-set:'SOFT' 100, 'WONK' 1}
/* sealed-desk: one kraft desk in daylight. Type sits naked on the paper; the 3D desk (canvas) is the ground.
   Module: the No. 10 envelope (2.303:1). Columns are envelope widths: 4 phone, 6 tablet, 12 laptop+, with a side rail
   at 1920 and a spread at 2560+. Every tier is composed, not reflowed (see the @media blocks at the end). */
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; color: var(--graphite); font-family: var(--text); font-size: 1.0625rem; line-height: 1.55;
  background-color: var(--kraft);
  /* kraft fibre: two turbulence layers + long fibres, so the ground is never one flat colour even without WebGL */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.45'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .03' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .16 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.5'/%3E%3C/svg%3E");
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wax); text-decoration-thickness: .09em; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, var(--wax) 55%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--wax); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skipnav .skip { position: fixed; left: 1rem; top: -4rem; z-index: 50; padding: .7rem 1rem; color: var(--graphite); font-weight: 700; background: var(--glassine); }
.skipnav .skip:focus { top: calc(env(safe-area-inset-top) + .5rem); }

/* ---------- the desk (one WebGL context, fixed behind everything) ---------- */
.desk { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.desk canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s ease; }
.gl-on .desk canvas { opacity: 1; }
.desk .grain { position: absolute; inset: 0; mix-blend-mode: multiply; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .14 0 0 0 0 .08 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- bar: brand mark top-left is quiet; controls live in the thumb zone on phones ---------- */
.bar { position: fixed; z-index: 30; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: .75rem;
  padding: calc(env(safe-area-inset-top) + .5rem) max(1rem, env(safe-area-inset-right)) .5rem max(1rem, env(safe-area-inset-left)); pointer-events: none; }
.bar > * { pointer-events: auto; }
.mark { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--graphite); text-decoration: none; font: 600 1.05rem/1 var(--display); font-variation-settings: var(--display-set); letter-spacing: -.01em; }
.mark-env { width: 34px; height: 22px; position: relative; display: inline-block; border: 1.5px solid var(--graphite); background: color-mix(in srgb, var(--glassine) 70%, transparent); }
.mark-env::before { content: ''; position: absolute; inset: -1px; background: linear-gradient(to bottom right, transparent 49%, var(--graphite) 49.5% 51%, transparent 51.5%), linear-gradient(to bottom left, transparent 49%, var(--graphite) 49.5% 51%, transparent 51.5%); clip-path: polygon(0 0, 100% 0, 50% 64%); }
.mark-env::after { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; left: 50%; top: 58%; transform: translate(-50%, -50%); background: var(--wax); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--wax) 40%, var(--kraft)); }
.where { margin: 0 auto 0 0; font: 500 .9375rem/1.2 var(--display); font-variation-settings: var(--display-set); font-style: normal; color: color-mix(in srgb, var(--graphite) 80%, var(--kraft)); }
.snd { display: inline-flex; }
.snd button, .snd [role=switch] { min-height: 44px; min-width: 44px; }
.menu-slot { display: inline-flex; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-variation-settings: var(--display-set), 'opsz' 144; font-weight: 380; line-height: .95; letter-spacing: -.025em; margin: 0 0 .35em; text-wrap: balance; }
h1 { font-size: clamp(3.1rem, 13vw, 6.2rem); }
h1 .h1b { display: block; color: var(--wax); font-weight: 560; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; transform: rotate(-1.2deg); transform-origin: left; }
h2 { font-size: clamp(2.3rem, 9.5vw, 4.4rem); }
h3 { font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 460; }
p { margin: 0 0 .9em; max-width: 34em; }
.kicker { font: 600 1rem/1.2 var(--display); font-variation-settings: var(--display-set); color: var(--wax); margin-bottom: .8rem; }
.lede { font-size: 1.25rem; line-height: 1.45; }
.fine, .credit, .sample { font-size: .9375rem; color: color-mix(in srgb, var(--graphite) 86%, var(--kraft)); }
.privacy-line { font: 500 clamp(1.45rem, 4.6vw, 2.2rem)/1.15 var(--display); font-variation-settings: var(--display-set); color: var(--wax); max-width: 18em; }
.tlink { appearance: none; background: none; border: 0; padding: .55rem 0; min-height: 44px; color: var(--wax); font: 600 1.0625rem/1.3 var(--text); cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.tlink::after { content: ' \2192'; }

/* ---------- sections: three areas (.col = words + toy, .art = the desk station, Ember's line) ---------- */
main { position: relative; z-index: 2; display: block; outline: none; }
.sec { position: relative; min-height: 100svh; padding: calc(env(safe-area-inset-top) + 4.5rem) max(1.25rem, env(safe-area-inset-right)) 4rem max(1.25rem, env(safe-area-inset-left));
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "col" "art" "ember"; align-content: start; }
.col { grid-area: col; min-width: 0; display: grid; gap: .2rem; align-content: start; }
.col > *, .toys > * { min-width: 0; }
.toys { display: grid; gap: .4rem; align-content: start; }
.art { grid-area: art; height: 46svh; min-height: 240px; pointer-events: none; }
.ember-says { grid-area: ember; }
.toy { position: relative; z-index: 3; margin-top: 1rem; }
.ember-says { font: 400 1.125rem/1.35 var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 1; color: var(--graphite); max-width: 20em; margin: 1.2rem 0 0; padding-left: 1.4rem; position: relative; z-index: 3; }
.ember-says::before { content: ''; position: absolute; left: 0; top: .2em; width: .8rem; height: 1.05rem; border-radius: 50% 50% 45% 45% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 70%, #f6d27a, #e2763a 60%, #a8401d); }
.es-k { font-weight: 700; color: var(--wax); }
.stub-note { font: italic 400 1rem/1.3 var(--display); color: var(--wax); border-top: 1px dashed currentColor; padding-top: .5rem; }
/* phones: the station sits between the words and the toy, so you see the desk answer the toy you are about to touch */
@media (max-width: 699px) {
  .col { display: contents; }
  .sec { grid-template-areas: none; grid-template-columns: minmax(0, 1fr); }
  .sec > *, .col > * { grid-area: auto !important; grid-column: 1 / -1 !important; }
  .col > .copy { order: 1; } .sec > .art { order: 2; } .sec > .ember-says { order: 3; margin-top: -2.5rem; } .col > .toys { order: 4; }
}

/* hero */
.s-wake .h1a { display: block; }
.s-wake .how { font-size: .9375rem; }
.toy-meter { min-height: 48px; }
/* steps */
.steps3 { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; counter-reset: s; font: 500 1.0625rem/1.2 var(--display); font-variation-settings: var(--display-set); }
.steps3 li { counter-increment: s; }
.steps3 li::before { content: counter(s) ' '; color: var(--wax); font-weight: 700; }
/* film */
.film { margin-top: 2.2rem; }
.film-pending { margin: 0; display: grid; grid-template-columns: minmax(110px, 30%) 1fr; max-width: 26rem; gap: 1rem; align-items: end; }
.film-pending img { transform: rotate(-2deg); box-shadow: 0 18px 30px -18px rgba(40, 26, 10, .55), 0 2px 0 rgba(255,255,255,.3) inset; border-radius: 28px; }
.film-pending figcaption { font-style: italic; font-family: var(--display); }
/* moments: prints on the desk */
.prints { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .8rem .2rem 1.2rem; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.print { appearance: none; border: 0; flex: 0 0 62%; max-width: 280px; scroll-snap-align: start; padding: .55rem .55rem 1.6rem; background: #f4efe4; color: var(--graphite); cursor: pointer; position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 16px 24px -16px rgba(50, 30, 10, .6); transform: rotate(var(--r, -1.5deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1); min-height: 44px; text-align: left; }
.print:nth-child(2n) { --r: 1.8deg; } .print:nth-child(3n) { --r: -.6deg; }
.print img { filter: sepia(.45) saturate(.75) contrast(1.02) brightness(1.02); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.print-n { display: block; margin-top: .5rem; font: 500 1rem/1.15 var(--display); font-variation-settings: var(--display-set); }
.print[aria-pressed=true] { transform: rotate(0) translateY(-10px) scale(1.04); z-index: 2; }
.print[aria-pressed=true]::after { content: ''; position: absolute; right: .7rem; bottom: .55rem; width: 14px; height: 14px; border-radius: 50%; background: var(--wax); }
.moment-line { font: 400 1.3rem/1.3 var(--display); font-variation-settings: var(--display-set); }
/* type size */
.toy-type { display: grid; gap: 1rem; }
.type-target { --ts: 1; }
.type-sample { font-size: inherit; line-height: 1.3; max-width: 22em; transition: font-size .2s ease; }
.type-screen { margin: 0; max-width: 200px; }
.type-screen img { border-radius: 26px; box-shadow: 0 20px 34px -22px rgba(40,26,10,.7); }
/* limits: index cards that flip */
.toy-limits { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr; gap: .9rem; perspective: 900px; }
.ix { appearance: none; border: 0; width: 100%; min-height: 6.5rem; position: relative; display: grid; cursor: pointer; text-align: left; padding: 0; background: none; color: var(--graphite); transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3,.7,.2,1); }
.ix > span:not(.sr) { grid-area: 1 / 1; padding: 1rem 1.1rem 1rem 1.2rem; backface-visibility: hidden; -webkit-backface-visibility: hidden; font: 400 1.125rem/1.3 var(--text);
  background: #f2ecdf repeating-linear-gradient(transparent 0 1.55rem, rgba(78, 31, 61, .16) 1.55rem 1.6rem) 0 2.4rem / 100% calc(100% - 2.4rem) no-repeat; box-shadow: 0 12px 18px -14px rgba(50,30,10,.55); border-top: 3px solid color-mix(in srgb, var(--wax) 55%, #f2ecdf); }
.ix .ix-f { font: 500 1.25rem/1.2 var(--display); font-variation-settings: var(--display-set); }
.ix .ix-b { transform: rotateX(180deg); background-color: var(--glassine); }
.ix[aria-pressed=true] { transform: rotateX(180deg); }
.toy-limits li:nth-child(odd) .ix { rotate: -.6deg; } .toy-limits li:nth-child(even) .ix { rotate: .7deg; }
/* compare teaser */
.horizon { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.horizon button { appearance: none; background: none; border: 0; min-height: 44px; padding: .4rem 0; font: 500 1.125rem/1 var(--display); font-variation-settings: var(--display-set); color: var(--graphite); cursor: pointer; border-bottom: 2px solid transparent; }
.horizon button[aria-checked=true] { color: var(--wax); border-bottom-color: var(--wax); }
.receipts { list-style: none; margin: 1rem 0; padding: 1rem 1.1rem 1.4rem; background: #f6f3ec; box-shadow: 0 18px 26px -20px rgba(50,30,10,.6);
  -webkit-mask: radial-gradient(circle at 7px 100%, transparent 6px, #000 6.5px) -7px 100% / 14px 12px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 11px) no-repeat;
          mask: radial-gradient(circle at 7px 100%, transparent 6px, #000 6.5px) -7px 100% / 14px 12px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 11px) no-repeat; }
.receipts li { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; padding: .55rem 0; border-bottom: 1px dashed rgba(38,35,31,.35); }
.receipts li:last-child { border-bottom: 0; color: var(--wax); font-weight: 700; }
.r-n { font-weight: 600; } .r-v { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; } .r-a { grid-column: 1 / -1; font-size: .875rem; }
.mini { list-style: none; padding: 0; margin: 1rem 0 0; font-size: .9375rem; display: grid; gap: .6rem; }
.mini cite { font-style: normal; color: color-mix(in srgb, var(--graphite) 80%, var(--kraft)); }
/* ending */
.name-form { margin-top: 1rem; display: grid; gap: .35rem; max-width: 26rem; }
.name-form label, .letter label { font: 600 1rem/1.2 var(--text); }
.name-form input, .letter input, .letter textarea { font: 400 1.25rem/1.3 var(--display); font-variation-settings: var(--display-set); color: var(--graphite); background: transparent; border: 0; border-bottom: 2px solid var(--graphite); padding: .5rem 0; min-height: 48px; border-radius: 0; }
.letter textarea { border: 2px solid rgba(38,35,31,.5); padding: .6rem; font-size: 1.0625rem; }
.name-form input:focus, .letter input:focus, .letter textarea:focus { outline: 3px solid var(--wax); outline-offset: 4px; }
.get { margin-top: 2rem; }
.badge-slot { min-height: 44px; margin: .4rem 0 .8rem; }

/* ---------- footer: the envelope's address card ---------- */
.foot { position: relative; z-index: 2; padding: 3rem max(1.25rem, env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left)); }
.addr { position: relative; background: #f3eee2; color: var(--graphite); padding: 2rem 1.4rem 1.6rem; display: grid; gap: 1.6rem; max-width: 1180px; margin: 0 auto;
  box-shadow: 0 30px 50px -30px rgba(50,30,10,.7), 0 1px 0 rgba(255,255,255,.7) inset;
  background-image: repeating-linear-gradient(135deg, var(--wax) 0 14px, transparent 14px 28px, #6e8a7e 28px 42px, transparent 42px 56px); background-size: 100% 8px; background-repeat: no-repeat; background-position: 0 0; }
.addr::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: inherit; background-position: 0 0; }
.addr-k { font: 700 .9375rem/1 var(--text); color: var(--wax); margin-bottom: .3rem; }
.addr-n { font: 400 clamp(1.7rem, 6vw, 2.6rem)/1 var(--display); font-variation-settings: var(--display-set); margin-bottom: .5rem; }
.addr p { margin: 0 0 .25rem; }
.addr a { display: inline-block; padding: .55rem 0; }
.foot-nav { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.stamp { position: absolute; right: 1rem; top: 1.6rem; width: 72px; height: 86px; display: grid; place-items: center; background: var(--glassine); color: var(--wax); font: 600 .75rem/1.05 var(--display); text-align: center; padding: .5rem;
  -webkit-mask: radial-gradient(circle, transparent 3.5px, #000 4px) -5px -5px / 10px 10px; mask: radial-gradient(circle, transparent 3.5px, #000 4px) -5px -5px / 10px 10px; transform: rotate(4deg); }
.stamp span { font: 600 1.9rem/1 var(--display); font-variation-settings: var(--display-set); }
.tm { max-width: 1180px; margin: 1rem auto 0; font-size: .875rem; color: color-mix(in srgb, var(--graphite) 86%, var(--kraft)); }

/* ---------- document pages ---------- */
.doc-top { min-height: 92svh; }
.eff { font-size: .9375rem; }
.plain { padding-left: 1.2rem; font-size: 1.125rem; max-width: 34em; }
.plain li { margin-bottom: .45rem; }
.plain-h { font-size: clamp(1.6rem, 6vw, 2.4rem); margin-top: 1.4rem; }
.draft { font: italic 400 1.0625rem/1.4 var(--display); color: var(--wax); }
.envelopes { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; max-width: 820px; }
.env details { position: relative; background: var(--glassine); color: var(--graphite); box-shadow: 0 16px 26px -20px rgba(50,30,10,.6);
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.5px), linear-gradient(170deg, rgba(255,255,255,.35), rgba(255,255,255,0) 40%); background-size: 7px 7px, 100% 100%; }
.env summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: .8rem; min-height: 64px; padding: .6rem 1rem; font: 500 1.35rem/1.15 var(--display); font-variation-settings: var(--display-set); }
.env summary::-webkit-details-marker { display: none; }
.env-flap { width: 40px; height: 26px; position: relative; border: 1.5px solid var(--graphite); }
.env-flap::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 48%, var(--graphite) 49% 52%, transparent 53%), linear-gradient(to bottom left, transparent 48%, var(--graphite) 49% 52%, transparent 53%); clip-path: polygon(0 0, 100% 0, 50% 66%); transform-origin: top; transition: transform .4s ease; }
.env-flap::after { content: ''; position: absolute; width: 11px; height: 11px; border-radius: 50%; left: 50%; top: 60%; transform: translate(-50%, -50%); background: var(--wax); transition: transform .3s ease, opacity .3s; }
.env details[open] .env-flap::before { transform: scaleY(-1) translateY(2px); }
.env details[open] .env-flap::after { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
.env-body { padding: .2rem 1.2rem 1.2rem 4.2rem; }
.env-body p { max-width: 38em; }
.policy-intro { max-width: 40em; margin-top: 1rem; font-size: 1.125rem; }
.cards { display: grid; gap: 1rem; margin-top: 1rem; }
.ixcard { background: #f2ecdf repeating-linear-gradient(transparent 0 1.6rem, rgba(78,31,61,.12) 1.6rem 1.65rem) 0 3.2rem / 100% calc(100% - 3.2rem) no-repeat; padding: 1rem 1.2rem; box-shadow: 0 14px 22px -18px rgba(50,30,10,.6); border-top: 3px solid color-mix(in srgb, var(--wax) 55%, #f2ecdf); }
.ixcard:nth-child(odd) { rotate: -.5deg; } .ixcard:nth-child(even) { rotate: .6deg; }
.ixcard h3 { font-size: 1.45rem; }
.letter { display: grid; gap: .35rem; max-width: 32rem; margin-top: 1rem; }
.cards-how { list-style: none; padding: 0; margin: 0; }
.s-step { min-height: 88svh; align-content: center; }
.step-n { font: 300 clamp(5rem, 24vw, 11rem)/.8 var(--display); font-variation-settings: var(--display-set); color: var(--wax); margin: 0; }
.step-shot { margin: 1rem 0 0; max-width: 220px; }
.step-shot img { border-radius: 26px; box-shadow: 0 24px 40px -26px rgba(40,26,10,.75); transform: rotate(var(--r, 2deg)); }
.s-step:nth-child(even) .step-shot img { --r: -2.4deg; }
.ledger-wrap { overflow-x: auto; margin-top: 1rem; -webkit-overflow-scrolling: touch; }
.ledger { border-collapse: collapse; min-width: 760px; background: #f6f3ec; box-shadow: 0 20px 30px -24px rgba(50,30,10,.6); }
.ledger caption { text-align: left; font: 500 1.4rem/1.2 var(--display); padding: 0 0 .8rem; caption-side: top; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: .8rem .9rem; border-bottom: 1px dashed rgba(38,35,31,.35); font-size: .9688rem; }
.ledger thead th { font: 700 .9375rem/1.2 var(--text); border-bottom: 2px solid var(--graphite); }
.ledger tr.ours th, .ledger tr.ours td { color: var(--wax); font-weight: 600; }
.ledger cite { font-style: normal; }
.s-table { min-height: auto; }

/* ---------- tiers: each is its own composition ---------- */
/* tablet 700-1179: words + toy in a 7/12 column; the station overlaps their far edge; Ember under the station */
@media (min-width: 700px) {
  .sec { grid-template-columns: 7fr 5fr; grid-template-areas: "col art" "col ember"; column-gap: 1.5rem; padding-left: 2.5rem; padding-right: 2.5rem; align-content: center; }
  .sec:nth-of-type(even) { grid-template-columns: 5fr 7fr; grid-template-areas: "art col" "ember col"; }
  .art { height: 58svh; position: sticky; top: 18svh; align-self: start; }
  .toy-limits { grid-template-columns: 1fr 1fr; }
  .print { flex-basis: 44%; }
  .addr { grid-template-columns: 1fr 1fr; padding: 2.6rem 2.4rem 2.2rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .s-step, .doc .sec.s-table, .doc .sec.s-group, .doc .sec.s-policy, .doc .sec.s-tbody, .doc .sec.s-write { grid-template-columns: 1fr; grid-template-areas: "col"; }
  .s-step { grid-template-columns: 2fr 1fr; grid-template-areas: none; }
}
/* laptop 1180-1699: 5/12 words, 7/12 desk; sides swap every section so the page swings across the desk */
@media (min-width: 1180px) {
  .sec { grid-template-columns: 5fr 7fr; padding: 6.5rem 4vw 4rem; column-gap: 3vw; }
  .sec:nth-of-type(even) { grid-template-columns: 7fr 5fr; }
  .art { height: 74svh; top: 13svh; }
  .sec > .ember-says { grid-area: art; align-self: start; justify-self: end; margin: 0; max-width: 17em; }
  .sec:nth-of-type(even) > .ember-says { justify-self: start; }
  h1 { font-size: clamp(5rem, 7.2vw, 8.4rem); }
  h2 { font-size: clamp(3.4rem, 5vw, 5.6rem); }
  .addr { grid-template-columns: 1.2fr 1fr; padding: 3rem 3.4rem 2.6rem; }
  .doc .sec.s-table > .col, .doc .sec.s-group > .col, .doc .sec.s-policy > .col, .doc .sec.s-tbody > .col, .doc .sec.s-write > .col { max-width: 1100px; margin: 0 auto; width: 100%; }
  .cards { grid-template-columns: 1fr 1fr 1fr; }
  .s-step { grid-template-columns: 1fr 1fr; padding-left: 10vw; padding-right: 10vw; }
  .film-pending { max-width: 30rem; }
}
/* desktop 1700-2299 (1920): the extra width becomes a rail: words | station | the toy in its own rail */
@media (min-width: 1700px) {
  .sec, .sec:nth-of-type(even) { grid-template-columns: 4.2fr 6fr 3.4fr; grid-template-areas: "col art toys" "col ember toys"; column-gap: 2.6vw; }
  .sec:nth-of-type(even) { grid-template-areas: "toys art col" "toys ember col"; grid-template-columns: 3.4fr 6fr 4.2fr; }
  .sec > .ember-says, .sec:nth-of-type(even) > .ember-says { grid-area: ember; justify-self: center; }
  .col { display: contents; }
  .col > .copy { grid-area: col; align-self: center; }
  .col > .toys { grid-area: toys; align-self: center; }
  body { font-size: 1.125rem; }
}
/* widescreen 2300+ (2560, 3440): a spread, two facing pages of a desk diary, gutter drawn as a fold */
@media (min-width: 2300px) {
  .sec, .sec:nth-of-type(even) { grid-template-columns: 5fr 9fr 4fr; grid-template-areas: "col art toys" "col ember toys"; padding: 8rem 4vw 5rem; column-gap: 3vw; }
  .art { height: 80svh; }
  body { font-size: 1.25rem; }
  h1 { font-size: clamp(9rem, 6.6vw, 14rem); }
  h2 { font-size: clamp(5rem, 4.2vw, 8.4rem); }
  .sec::before { content: ''; position: absolute; top: 8%; bottom: 8%; left: 31%; width: 1px; background: linear-gradient(transparent, rgba(38,35,31,.35), transparent); }
}
/* phones: the bar moves to the thumb zone */
@media (max-width: 699px) {
  .bar { top: auto; bottom: 0; padding: .4rem max(1rem, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + .4rem) max(1rem, env(safe-area-inset-left));
    background: linear-gradient(to top, color-mix(in srgb, var(--kraft) 96%, transparent) 60%, transparent); }
  .where { display: none; }
  .sec { padding-top: calc(env(safe-area-inset-top) + 2.5rem); padding-bottom: 5rem; }
  .foot { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (prefers-contrast: more) {
  :root { --kraft: #D8BE93; }
  .fine, .credit, .sample, .tm, .mini cite { color: var(--graphite); }
}
.nogl .art { background: center / contain no-repeat var(--still, none); }
.ember-hit { position: fixed; left: 0; top: 0; z-index: 4; width: 64px; height: 80px; border: 0; background: transparent; cursor: pointer; border-radius: 40%; }
.ember-hit:focus-visible { outline: 3px solid var(--wax); }
.nogl .ember-hit, .rm .ember-hit { display: none; }
.menu-slot .mf-brand { display: none; }

/* the sound switch and menu button are words, not boxes */
.snd .sound-toggle { appearance: none; background: none; border: 0; min-height: 44px; padding: 0 .3rem; font: 600 .9375rem/1 var(--text); color: var(--graphite); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .3em; }
.snd .sound-toggle[aria-pressed=true] { color: var(--wax); }
/* the bar fades the paper under it (ground, not a box), so headlines scroll under it cleanly */
@media (min-width: 700px) { .bar { background: linear-gradient(to bottom, color-mix(in srgb, var(--kraft) 92%, transparent) 55%, transparent); padding-bottom: 1.4rem; } }
.film-pending img { max-width: 150px; }
.type-screen { max-width: 170px; }
.menu-slot.mf-root { position: fixed; inset: 0; z-index: 40; pointer-events: none; background: transparent; }
.menu-slot .mf-head { position: absolute; left: auto; right: max(1rem, env(safe-area-inset-right)); top: calc(env(safe-area-inset-top) + .5rem); padding: 0; background: none; pointer-events: auto; }
.menu-slot .mf-panel { pointer-events: auto; }
.bar .snd { margin-right: 5.5rem; }
@media (max-width: 699px) { .menu-slot .mf-head { top: auto; bottom: calc(env(safe-area-inset-bottom) + .4rem); } }
.menu-slot .mf-btn { color: var(--graphite); letter-spacing: .04em; text-transform: none; font: 600 .9375rem/1 var(--text); }
.sec, .foot { overflow-x: clip; }
.env-body, .ixcard, .ledger td { overflow-wrap: anywhere; }
.ledger td:nth-child(5) { white-space: nowrap; }
.ledger td:nth-child(2) { min-width: 15rem; }
/* listening */
.hear { display: grid; gap: .25rem; }
.hear-btn::after { content: none; }
.hear-btn::before { content: ''; display: inline-block; width: .7em; height: .7em; margin-right: .5em; border-radius: 50%; background: var(--wax); vertical-align: .05em; }
.hear-btn.is-playing::before { border-radius: 1px; animation: rec 1s steps(2, start) infinite; }
.hear-btn:disabled { color: var(--graphite); text-decoration: none; cursor: default; font-weight: 500; }
.hear-btn:disabled::before { background: var(--wax); box-shadow: 0 0 0 2px color-mix(in srgb, var(--wax) 35%, var(--kraft)); }
@keyframes rec { to { opacity: .25; } }
.caption { font: italic 400 1.1875rem/1.35 var(--display); font-variation-settings: var(--display-set); min-height: 1.4em; margin: .2rem 0; max-width: 26em; }
.caption:empty { min-height: 0; margin: 0; }
.sample-note { font-size: .875rem; }
.print.is-playing::before { content: ''; position: absolute; left: .7rem; top: .7rem; width: 12px; height: 12px; border-radius: 50%; background: var(--wax); box-shadow: 0 0 0 3px #f4efe4; animation: rec 1s steps(2, start) infinite; z-index: 2; }
/* the door: a glassine flap over the lower half of the first screen; equal-weight choices */
.door { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; min-height: 44svh; display: grid; align-items: end; padding: 2.5rem max(1.25rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--glassine) 94%, transparent); box-shadow: 0 -20px 40px -24px rgba(50,30,10,.55); transition: transform .6s cubic-bezier(.6,0,.3,1), opacity .5s; }
.door::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 64px; transform: translateY(-100%); background: linear-gradient(to bottom left, transparent 49.6%, color-mix(in srgb, var(--glassine) 94%, transparent) 50%) left / 50.1% 100% no-repeat, linear-gradient(to bottom right, transparent 49.6%, color-mix(in srgb, var(--glassine) 94%, transparent) 50%) right / 50.1% 100% no-repeat; }
.door-in { max-width: 44rem; margin: 0 auto; width: 100%; }
.door-t { font: 400 clamp(2rem, 7vw, 3.4rem)/1 var(--display); font-variation-settings: var(--display-set); margin: 0 0 .5rem; }
.door-b { font-size: 1.125rem; }
.door-ch { display: flex; flex-wrap: wrap; gap: .5rem 2.4rem; margin: .4rem 0 .6rem; }
.door-btn { appearance: none; background: none; border: 0; padding: .4rem 0; min-height: 48px; font: 500 clamp(1.4rem, 4.4vw, 1.9rem)/1.1 var(--display); font-variation-settings: var(--display-set); color: var(--wax); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; cursor: pointer; }
.door-n { font-size: .9375rem; margin: 0; }
.door-open { transform: translateY(105%); opacity: 0; }
.rm .door { transition: opacity .2s; } .rm .door-open { transform: none; }
/* a graphite pencil cursor on pointer devices (the desk's own tool); text fields keep the caret */
@media (hover: hover) and (pointer: fine) {
  body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M3 25l2.2-6.6L19.6 4a2.2 2.2 0 0 1 3.1 0l1.3 1.3a2.2 2.2 0 0 1 0 3.1L9.6 22.8z' fill='%232f3a34' stroke='%23f3eee2' stroke-width='1.2'/%3E%3Cpath d='M3 25l2.2-6.6 4.4 4.4z' fill='%23d9b98a'/%3E%3Cpath d='M3 25l.9-2.7 1.8 1.8z' fill='%2326231F'/%3E%3C/svg%3E") 2 26, auto; }
  a, button, summary, [role=radio], label { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='9' fill='%234E1F3D' stroke='%23f3eee2' stroke-width='1.5'/%3E%3Ctext x='15' y='18.5' font-family='Georgia' font-size='9' text-anchor='middle' fill='%23f3eee2'%3ETR%3C/text%3E%3C/svg%3E") 15 15, pointer; }
}
/* with the desk running, the step's screen is on the 3D phone; the flat image stays for no-WebGL and screen readers */
.gl-on .step-shot img { opacity: 0; }
.footage { max-width: 240px; }
.footage .clip { border-radius: 26px; overflow: hidden; box-shadow: 0 24px 40px -26px rgba(40,26,10,.75); }
.tlink { display: inline-flex; align-items: center; }
.foot a, .addr a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.toy-counter .rc-list, .toy-counter2 .rc-list { max-height: none !important; overflow: visible !important; }
/* no WebGL: the graded Blender render of the same desk stands in for the hero station */
.nogl .s-wake .art { background: center / cover no-repeat url(../media/renders/a-hero.webp); }
@media (max-width: 699px) { .nogl .s-wake .art { background-image: url(../media/renders/a-hero-phone.webp); } }
