/* JC Audio — site.css (2026-10 redesign)
   Direction: "the page is the object". Every section is a piece of printed stationery
   (a service sheet, slips, a catalogue, a letter, a receipt, a reply card, a postcard)
   lying on the dark ground of a stage at night. */

@font-face { font-family: "Anton"; src: url("fonts/anton.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/worksans.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/worksans-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --ground: #161311;      /* the stage at night */
  --ground-2: #221d1a;    /* one tone step up */
  --paper: #ebe5e3;       /* the printed sheet */
  --paper-2: #ddd5d1;     /* a second sheet */
  --ink: #2b2622;
  --muted: #514945;       /* secondary notes on paper */
  --light: #ebe5e3;       /* text on the ground */
  --light-muted: #b3aaa5;
  --accent: #ff8a00;      /* JC orange: the action, and the reply card's field */
  --accent-ink: #1a1200;

  --font-display: "Anton", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-text: "Work Sans", -apple-system, "Segoe UI", Roboto, "PingFang TC", "Noto Sans TC", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(2.75rem, 0.6rem + 5.2vw, 5.5rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(4.5rem, 7vw, 7.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--light); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.9; text-wrap: balance; }
.display { font-size: var(--step-display); }
.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.32; }
.small { font-size: var(--step-small); line-height: 1.45; }
p { max-width: 62ch; text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums; }
.on-paper { color: var(--ink); }

/* ---------- frame ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.page { position: relative; z-index: 1; background: var(--ground); }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: var(--step-body); text-decoration: none; white-space: nowrap; border: 0; border-radius: 0; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button.ink { background: var(--ink); color: var(--paper); }
.button.paper { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #ffa033; }
  .button.ink:hover { background: #000; }
  .button.paper:hover { background: #fff; }
}
.button[disabled] { opacity: 0.6; cursor: default; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
.link.always { text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }
.field { width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; background: var(--paper-2); color: var(--ink); border: 0; border-radius: 0; font-size: max(1rem, var(--step-body)); }
.field::placeholder { color: var(--muted); }
.leadform { display: grid; gap: 10px; }
.leadform .row { display: flex; gap: 10px; flex-wrap: wrap; }
.leadform .row .field { flex: 1 1 14rem; }
.leadmsg { font-size: var(--step-small); min-height: 1.45em; }
.leadmsg:empty { min-height: 0; }

/* ---------- top bar (on the ground) ---------- */
.topbar { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--gutter); padding-block: 28px; }
.mark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; justify-self: start; }
.bars { display: flex; align-items: center; gap: 4px; height: 22px; }
.bars i { width: 8px; border-radius: 3px; display: block; }
.bars i:nth-child(1), .bars i:nth-child(5) { height: 9px; }
.bars i:nth-child(2), .bars i:nth-child(4) { height: 15px; }
.bars i:nth-child(3) { height: 22px; }
.bars i:nth-child(1) { background: #ff8c4c; }
.bars i:nth-child(2) { background: #f5599e; }
.bars i:nth-child(3) { background: #8c73f5; }
.bars i:nth-child(4) { background: #4db8fa; }
.bars i:nth-child(5) { background: #66e6b8; }
.mark .word { white-space: nowrap; font-family: var(--font-display); font-size: 1.375rem; line-height: 1; letter-spacing: 0.04em; color: var(--light); }
.topbar nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); }
.topbar nav a { color: var(--light); text-decoration: none; font-weight: 600; font-size: var(--step-body); transition: color var(--t-hover) ease; }
.topbar nav a[aria-current="page"] { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .topbar nav a:hover { color: var(--accent); } }
.topbar .button { justify-self: end; }
@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; padding-block: 20px; }
  .topbar .button { padding: 0 1rem; font-size: 1rem; }
  .topbar nav { display: none; }
}

/* ---------- hero: the service sheet, cropped by the screen ---------- */
.hero { position: relative; padding-top: clamp(24px, 4vw, 64px); padding-bottom: var(--section); }
.hero .card { position: relative; grid-column: 3 / span 8; background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 56px); text-align: center; display: grid; justify-items: center; align-content: start; gap: 22px; }
.hero .card > * { max-width: 46rem; }
.hero h1 { font-size: var(--step-display); max-width: none; color: var(--ink); line-height: 0.88; }
.hero h1 .l1 { white-space: nowrap; }
.hero h1 .l1, .hero h1 .l2 { display: block; }
.hero h1 .tm { font-size: 0.34em; vertical-align: super; margin-left: 0.06em; }
.hero .card .lead { color: var(--ink); max-width: 40rem; }
.details { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; font-size: var(--step-body); }
.details .dia { width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); flex: none; }
.hero .plate { width: min(360px, 70%); margin-top: 8px; }
.hero .plate img { width: 100%; height: auto; }
.hero .plate figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.hero .phone-links { display: none; }
/* four scalloped inner corners, cut in the ground colour */
.corners > i { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--ground); }
.corners > i:nth-child(1) { top: -14px; left: -14px; }
.corners > i:nth-child(2) { top: -14px; right: -14px; }
.corners > i:nth-child(3) { bottom: -14px; left: -14px; }
.corners > i:nth-child(4) { bottom: -14px; right: -14px; }
@media (max-width: 1100px) {
  .hero .card { grid-column: 2 / span 10; min-height: 0; }
}
@media (max-width: 760px) {
  .hero { padding-top: 24px; }
  .hero .card { grid-column: 1 / -1; min-height: 0; padding: 40px 20px 32px; }
  .hero h1 { font-size: 11vw; }
  .hero .phone-links { display: flex; gap: 22px; justify-content: center; font-weight: 600; }
  .hero .phone-links a { text-decoration: underline; text-underline-offset: 0.22em; }
}

/* ---------- showcase: slips standing along the edge of a photograph ---------- */
.slips { position: relative; min-height: max(96svh, 880px); overflow: hidden; isolation: isolate; color: var(--light); }
.slips > .photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.slips > .photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.slips .copy { position: relative; margin-left: 18%; width: min(36rem, 64%); margin-top: clamp(48px, 6vw, 88px); padding: 32px; background: rgba(12, 10, 9, 0.72); }
.slips .copy h2 { font-size: var(--step-head); color: var(--light); }
.slips .copy p { margin-top: 18px; font-size: var(--step-lead); line-height: 1.32; color: var(--light); }
.chooser { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chooser a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 14px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step-small); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chooser a:active { transform: scale(0.97); }
.chooser a[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .chooser a:hover { background: #fff; } .chooser a[aria-pressed="true"]:hover { background: var(--accent); } }
.slip-row { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; padding-inline: var(--margin); align-items: flex-end; }
.slip { flex: 1 1 0; min-width: 0; background: var(--paper); color: var(--ink); padding: 18px 16px calc(56px + var(--tail, 40px)); font-size: var(--step-body); line-height: 1.45; transform: translateY(40px) rotate(var(--tilt, 0deg)); transition: transform 520ms var(--ease-out), opacity var(--t-ui) ease; }
.slip:nth-child(1) { --tail: 96px; --tilt: -1.5deg; }
.slip:nth-child(2) { --tail: 40px; }
.slip:nth-child(3) { --tail: 128px; --tilt: 1.2deg; }
.slip:nth-child(4) { --tail: 64px; }
.slip:nth-child(5) { --tail: 24px; --tilt: -1deg; }
.slip:nth-child(6) { --tail: 80px; }
.slip b { display: block; font-size: var(--step-body); }
.slip .cut { display: block; letter-spacing: 0.2em; color: var(--muted); overflow: hidden; white-space: nowrap; margin: 4px 0 6px; }
.slip a { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.slip:target, .slip.is-chosen { transform: translateY(-4svh) rotate(0deg); }
.slip-row.has-choice .slip:not(.is-chosen) { opacity: 0.72; }
@media (max-width: 1100px) {
  .slip-row { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; gap: 10px; }
  .slip-row::-webkit-scrollbar { display: none; }
  .slip { flex: 0 0 calc((100vw - 2 * var(--margin) - 20px) / 3); scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .slips { min-height: 100svh; }
  .slips .copy { margin: 24px var(--margin) 0; width: auto; padding: 22px; }
  .slips .copy p { font-size: 1.25rem; }
  .slip-row { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; gap: 10px; }
  .slip-row::-webkit-scrollbar { display: none; }
  .slip { flex: 0 0 62vw; scroll-snap-align: start; font-size: 0.875rem; }
}

/* ---------- list: the printed catalogue sheet ---------- */
.band { padding-block: var(--section); }
.band.tone { background: var(--ground-2); }
.sheet { position: relative; background: var(--paper); color: var(--ink); margin-inline: auto; width: min(1000px, 100%); padding: clamp(28px, 5vw, 64px); }
.sheet.narrow { width: min(640px, 100%); }
/* shallow scallops bitten into the top and bottom edges, in the colour of the ground behind */
.sheet.scalloped::before, .sheet.scalloped::after { content: ""; position: absolute; left: 0; right: 0; height: 16px; background: var(--edge, var(--ground)); -webkit-mask: url("img/edge-bites-top.svg") repeat-x 0 0 / 32px 16px; mask: url("img/edge-bites-top.svg") repeat-x 0 0 / 32px 16px; }
.sheet.scalloped::before { top: 0; }
.sheet.scalloped::after { bottom: 0; -webkit-mask-image: url("img/edge-bites-bottom.svg"); mask-image: url("img/edge-bites-bottom.svg"); }
.band.tone .sheet { --edge: var(--ground-2); }
.sheet > header { text-align: center; display: grid; gap: 14px; justify-items: center; margin-bottom: 56px; }
.sheet > header h2 { font-size: var(--step-head); color: var(--ink); }
.sheet > header p { color: var(--ink); }
.group + .group { margin-top: 56px; }
.group > h3 { font-size: var(--step-lead); text-align: center; color: var(--ink); letter-spacing: 0.01em; margin-bottom: 22px; }
.item { display: grid; grid-template-columns: 168px 1fr auto; gap: 22px; align-items: start; padding-block: 16px; }
.item + .item { margin-top: 8px; }
.item .thumb { background: var(--ink); }
.item .thumb img { width: 100%; height: auto; aspect-ratio: 820 / 570; object-fit: cover; }
.item h4 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-lead); text-transform: uppercase; line-height: 1; letter-spacing: 0.01em; }
.item .means { margin-top: 4px; font-size: var(--step-small); color: var(--muted); font-style: italic; }
.item .desc { margin-top: 8px; }
.item .acts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.item .acts a, .item .acts button { font-weight: 600; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; color: var(--ink); }
.item .acts .button { text-decoration: none; color: var(--accent-ink); }
.item .price { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.item .price small { display: block; font-weight: 400; font-size: var(--step-small); color: var(--muted); }
.item .leadform { grid-column: 2 / -1; margin-top: 4px; }
.item .pro { margin-top: 10px; font-size: var(--step-small); color: var(--ink); }
.sheet > footer { margin-top: 56px; text-align: center; display: grid; gap: 4px; justify-items: center; }
@media (max-width: 760px) {
  .band { padding-block: 96px; }
  .band .wrap.sheet-wrap { padding-inline: 10px; }
  .sheet { padding: 40px 28px; }
  .item { grid-template-columns: 96px 1fr; gap: 6px 14px; }
  .item .thumb { grid-row: 1 / span 2; align-self: start; }
  .item .price { grid-column: 2; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .item .price small { display: inline; }
  .item .leadform { grid-column: 1 / -1; }
  .group + .group { margin-top: 40px; }
  .sheet > header { margin-bottom: 36px; }
}

/* ---------- gallery: prints with their swing tags ---------- */
.tiles-head { display: flex; justify-content: space-between; align-items: end; gap: var(--gutter); margin-bottom: 40px; }
.tiles-head h2 { font-size: var(--step-head); }
.tiles-head p { color: var(--light); max-width: 34rem; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 12px; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ground-2); }
.tile .strip { min-height: 96px; padding: 12px; font-size: var(--step-small); line-height: 1.4; display: grid; gap: 4px; align-content: start; background: var(--paper); color: var(--ink); }
.tile .strip .r1 { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.tile .strip .r1 b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-lead); line-height: 1; text-transform: uppercase; }
.tile .strip .r2 { display: flex; justify-content: space-between; gap: 8px; }
.tile:nth-child(4n+2) .strip { background: var(--ink); color: var(--paper); }
.tile:nth-child(4n+3) .strip { background: var(--paper-2); color: var(--ink); }
.tile:nth-child(4n+4) .strip { background: #3a332e; color: var(--paper); }
@media (max-width: 1100px) {
  .tiles-head { display: grid; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tiles-head { display: grid; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; }
  .tile .strip .r2 { display: none; }
}

/* ---------- about: the founder's letter with a tear-off strip ---------- */
.letter-band { padding-block: var(--section); }
.letter { position: relative; margin-inline: auto; width: min(640px, 100%); background: var(--paper); color: var(--ink); padding: 60px 60px 72px; }
.letter .from { width: 44px; height: 44px; border-radius: 50%; }
.letter h2 { margin-top: 28px; font-size: var(--step-lead); color: var(--ink); }
.letter p { margin-top: 1em; }
.letter mark { background: var(--accent); color: var(--accent-ink); padding: 0 0.15em; }
.letter .sign { margin-top: 28px; font-style: italic; font-size: var(--step-lead); }
.letter .role { font-size: var(--step-small); color: var(--muted); }
.letter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--ground); -webkit-mask: url("img/edge-bites-bottom.svg") repeat-x 0 0 / 32px 16px; mask: url("img/edge-bites-bottom.svg") repeat-x 0 0 / 32px 16px; }
.tear { margin-inline: auto; width: min(640px, 100%); margin-top: 10px; border-top: 5px dotted var(--paper); padding-top: 10px; }
.tear .stub { background: var(--paper); color: var(--ink); min-height: 72px; padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.tear .stub a { font-weight: 600; }
@media (max-width: 760px) {
  .letter-band { padding-block: 96px; }
  .letter { padding: 40px 24px 56px; }
  .tear .stub { display: grid; }
  .tear .stub .button { width: 100%; }
}

/* ---------- how it works: the itinerary slip ---------- */
.itin { align-items: start; row-gap: 40px; }
.itin .intro { grid-column: 1 / span 5; }
.itin .intro h2 { font-size: var(--step-head); }
.itin .intro p { margin-top: 22px; max-width: 30ch; font-size: var(--step-lead); line-height: 1.32; }
.receipt { grid-column: 7 / span 6; background: var(--paper); color: var(--ink); padding: 32px 32px 56px; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100.000% calc(100% - 12px), 97.222% 100%, 94.444% calc(100% - 12px), 91.667% 100%, 88.889% calc(100% - 12px), 86.111% 100%, 83.333% calc(100% - 12px), 80.556% 100%, 77.778% calc(100% - 12px), 75.000% 100%, 72.222% calc(100% - 12px), 69.444% 100%, 66.667% calc(100% - 12px), 63.889% 100%, 61.111% calc(100% - 12px), 58.333% 100%, 55.556% calc(100% - 12px), 52.778% 100%, 50.000% calc(100% - 12px), 47.222% 100%, 44.444% calc(100% - 12px), 41.667% 100%, 38.889% calc(100% - 12px), 36.111% 100%, 33.333% calc(100% - 12px), 30.556% 100%, 27.778% calc(100% - 12px), 25.000% 100%, 22.222% calc(100% - 12px), 19.444% 100%, 16.667% calc(100% - 12px), 13.889% 100%, 11.111% calc(100% - 12px), 8.333% 100%, 5.556% calc(100% - 12px), 2.778% 100%, 0.000% calc(100% - 12px)); }
.receipt h3 { font-family: var(--font-text); text-transform: none; font-weight: 600; font-size: var(--step-body); line-height: 1.4; letter-spacing: 0; color: var(--ink); }
.receipt h3:not(:first-child) { margin-top: 28px; }
.receipt .row { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.receipt .row .what { flex: 0 1 auto; }
.receipt .row .dots { flex: 1 1 auto; min-width: 24px; border-bottom: 4px dotted var(--muted); transform: translateY(-5px); }
.receipt .row .val { flex: none; font-weight: 600; }
.receipt .total { margin: 28px -32px 0; min-height: 44px; padding: 10px 32px; background: var(--ink); color: var(--paper); display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
@media (max-width: 1100px) {
  .itin .intro, .receipt { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .receipt { padding: 24px 20px 48px; }
  .receipt .total { margin-inline: -20px; padding-inline: 20px; }
}

/* ---------- cta: the reply card on an orange field ---------- */
.reply { position: relative; background: var(--accent); color: var(--accent-ink); overflow: hidden; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 120px var(--margin) 0; align-items: end; }
.reply .note { grid-column: 1 / span 4; align-self: end; margin-bottom: 64px; font-size: var(--step-lead); line-height: 1.32; }
.reply .card { grid-column: 6 / span 7; justify-self: center; width: min(44vw, 640px); aspect-ratio: 7 / 5; background: var(--paper); color: var(--ink); padding: 48px; text-align: center; display: grid; align-content: center; gap: 16px; transform: translateY(60px) rotate(2deg); margin-bottom: 0; }
.reply .card h2 { font-size: var(--step-lead); color: var(--ink); }
.reply .card p { margin-inline: auto; }
.reply .card .field { background: var(--paper-2); }
.reply .card .button { width: 100%; min-height: 56px; }
@media (max-width: 1100px) {
  .reply { display: block; padding: 88px var(--margin) 0; min-height: 0; }
  .reply .note { max-width: 36rem; margin-inline: auto; }
  .reply .card { width: min(560px, 90%); aspect-ratio: auto; margin-inline: auto; transform: translateY(48px) rotate(1.5deg); }
}
@media (max-width: 760px) {
  .reply { display: block; padding: 72px var(--margin) 0; min-height: 0; }
  .reply .note { margin-bottom: 40px; font-size: 1.25rem; }
  .reply .card { width: 90%; aspect-ratio: auto; padding: 32px 20px 72px; margin-inline: auto; transform: translateY(40px) rotate(1deg); }
  .reply .card .button { min-height: 52px; }
}

/* ---------- footer: the back of the postcard, revealed under the page ---------- */
.end { position: relative; }
.end > .reply { z-index: 1; }
/* each line of the postcard fades in at the moment the reply card slides off it (site.js) */
.curtain [data-under] { transition: opacity 360ms var(--ease-out), transform 520ms var(--ease-out); }
.curtain [data-under="yes"] { opacity: 0; transform: translateY(12px); }
.curtain { position: sticky; bottom: 0; z-index: 0; background: var(--ground); padding: 96px var(--margin) 32px; }
.postcard { position: relative; margin-inline: auto; width: min(1180px, 100%); background: var(--paper); color: var(--ink); padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; min-height: 420px; }
.postcard::before { content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 40px; background: var(--paper); -webkit-mask: url("img/edge-scallops-up.svg") repeat-x 0 0 / calc(100% / 12) 40px; mask: url("img/edge-scallops-up.svg") repeat-x 0 0 / calc(100% / 12) 40px; }
.postcard h2 { font-size: var(--step-head); color: var(--ink); }
.postcard .msg p { margin-top: 16px; }
.postcard .addr { position: relative; padding-top: 204px; display: grid; gap: 12px; align-content: start; font-size: var(--step-lead); }
.postcard .addr a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .postcard .addr a:hover { text-decoration-color: currentColor; } }
.postcard .stamp { position: absolute; top: 0; right: 0; width: 112px; padding: 6px; background: var(--paper); outline: 0; }
.postcard .stamp img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.postcard .stamp figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 4px; text-align: right; }
.postcard .imprint { grid-column: 1 / -1; display: grid; gap: 10px; text-align: left; font-size: 1rem; color: var(--muted); }
.postcard .imprint p { max-width: 72ch; }
.postcard .imprint nav { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink); font-weight: 600; }
.postcard .imprint nav a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .postcard .imprint nav a:hover { text-decoration: underline; } }
.postcard details { text-align: left; }
.postcard details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.postcard details ul { margin: 12px 0 0; padding-left: 1.1em; display: grid; gap: 4px; }
@media (max-width: 760px) {
  .curtain { padding: 72px 0 0; position: relative; }
  .postcard { grid-template-columns: 1fr; padding: 40px 24px 28px; }
  .postcard::before { -webkit-mask-size: calc(100% / 6) 40px; mask-size: calc(100% / 6) 40px; }
  .postcard .addr { padding-top: 0; font-size: 1.0625rem; }
  .postcard .stamp { top: -104px; width: 64px; }
}

/* ---------- motion (content stays visible without JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .slip[data-reveal] { transform: translateY(70%) rotate(var(--tilt, 0deg)); transition: transform 1000ms var(--ease-out), opacity 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .slip[data-reveal].is-in { transform: translateY(40px) rotate(var(--tilt, 0deg)); }
  .js .slip[data-reveal].is-in.is-chosen, .js .slip[data-reveal].is-in:target { transform: translateY(-4svh) rotate(0deg); }
  .slips > .photo img { animation: drift 28s var(--ease-soft) infinite alternate; }
  .js .hero [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js .hero .card[data-rise] { transform: translateY(48px); }
  .tile img { transition: transform 600ms var(--ease-out); }
  @media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.03); } }
  .tile { overflow: hidden; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.12) translateY(-2%); } }
@media (prefers-reduced-motion: reduce) {
  .curtain { position: relative; }
  * { scroll-behavior: auto !important; }
}

/* ---------- inner pages: product and document pages share these ---------- */
.doc { padding-block: 24px var(--section); }
.doc .sheet h1 { font-size: var(--step-head); color: var(--ink); text-align: center; }
.doc .sheet h2 { font-size: var(--step-lead); color: var(--ink); margin-top: 48px; }
.doc .sheet h3 { font-family: var(--font-text); text-transform: none; font-weight: 600; font-size: var(--step-body); line-height: 1.4; letter-spacing: 0; color: var(--ink); margin-top: 28px; }
.doc .sheet p, .doc .sheet li { color: var(--ink); }
.doc .sheet p { margin-top: 0.9em; max-width: 68ch; }
.doc .sheet ul, .doc .sheet ol { margin: 0.9em 0 0; padding-left: 1.2em; display: grid; gap: 6px; max-width: 68ch; }
.doc .sheet a { text-decoration: underline; text-underline-offset: 0.2em; font-weight: 600; }
.doc .sheet .meta { text-align: center; color: var(--muted); font-size: var(--step-small); margin: 14px auto 0; }
.doc .sheet table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: var(--step-small); }
.doc .sheet th, .doc .sheet td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--paper-2); }
.doc .sheet th { font-weight: 600; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 22px; font-size: var(--step-small); }
.doc .figure { margin-top: 24px; }
.doc .figure img { width: 100%; height: auto; }
.doc .figure figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 8px; }

/* ---------- product pages ---------- */
.hero .plate.wide { width: min(620px, 92%); }
.letter blockquote { margin-top: 28px; font-size: var(--step-lead); line-height: 1.3; font-weight: 600; max-width: 30ch; }
.letter blockquote cite { display: block; margin-top: 10px; font-size: var(--step-small); font-weight: 400; font-style: normal; color: var(--muted); }
.faq-list { display: grid; gap: 10px; max-width: 760px; margin-inline: auto; }
.faq-list details { background: var(--paper-2); padding: 18px 22px; }
.faq-list summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq-list details p { margin-top: 10px; }
.reply .note ul { margin-top: 14px; padding-left: 1.1em; display: grid; gap: 6px; font-size: var(--step-body); }
.reply .note h3 { font-family: var(--font-text); text-transform: none; font-weight: 600; font-size: var(--step-body); letter-spacing: 0; line-height: 1.4; }
.reply .card .small { color: var(--muted); }
.reply .card .manuals { font-size: var(--step-small); }
.reply .card .manuals a { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.curtain.static { position: relative; }
.sheet .lead-note { text-align: center; margin-top: 10px; color: var(--muted); font-size: var(--step-small); }

/* ---------- document pages (manuals and legal text keep their own markup) ---------- */
.legacy main, .legacy > header { width: min(860px, calc(100% - 2 * var(--margin))); margin-inline: auto; background: var(--paper); color: var(--ink); }
.legacy > header { margin-top: 8px; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px) 8px; text-align: center; position: relative; }
.legacy > header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px; background: var(--ground); -webkit-mask: url("img/edge-bites-top.svg") repeat-x 0 0 / 32px 16px; mask: url("img/edge-bites-top.svg") repeat-x 0 0 / 32px 16px; }
.legacy > header .wrap { padding: 0; }
.legacy > header h1 { font-size: var(--step-head); color: var(--ink); }
.legacy > header h1 span { display: inline; }
.legacy > header .sub, .legacy > header .updated { margin: 16px auto 0; color: var(--ink); max-width: 46ch; }
.legacy > header .updated { color: var(--muted); font-size: var(--step-small); }
.legacy > header .pdfs { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.legacy main { padding: 24px clamp(24px, 5vw, 64px) 72px; margin-bottom: var(--section); position: relative; }
.legacy main::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--ground); -webkit-mask: url("img/edge-bites-bottom.svg") repeat-x 0 0 / 32px 16px; mask: url("img/edge-bites-bottom.svg") repeat-x 0 0 / 32px 16px; }
.legacy main .wrap { padding: 0; }
.legacy main h2 { font-size: var(--step-lead); color: var(--ink); margin-top: 48px; }
.legacy main h2 .num { display: none; }
.legacy main h3 { font-family: var(--font-text); text-transform: none; font-weight: 600; font-size: var(--step-body); line-height: 1.4; letter-spacing: 0; color: var(--ink); margin-top: 26px; }
.legacy main p, .legacy main li, .legacy main td, .legacy main th { color: var(--ink); }
.legacy main p { margin-top: 0.9em; max-width: 68ch; }
.legacy main ul, .legacy main ol { margin: 0.9em 0 0; padding-left: 1.2em; display: grid; gap: 6px; max-width: 68ch; }
.legacy main a { text-decoration: underline; text-underline-offset: 0.2em; font-weight: 600; }
.legacy main .note { margin-top: 20px; background: var(--paper-2); padding: 14px 18px; }
.legacy main .note p { margin-top: 0; }
.legacy main .ctrl { margin-top: 20px; background: var(--paper-2); padding: 4px 20px 18px; }
.legacy main .toc { background: var(--paper-2); padding: 18px 22px; }
.legacy main .toc b { display: block; }
.legacy main table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: var(--step-small); }
.legacy main th, .legacy main td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--paper-2); }
.legacy main th { font-weight: 600; }
.legacy main .tablewrap, .legacy main table { overflow-x: auto; }
@media (max-width: 760px) {
  .legacy main, .legacy > header { width: calc(100% - 20px); }
  .legacy main table { display: block; }
}
.slips .copy p.body-note { font-size: var(--step-body); line-height: 1.5; }
.hero .hero-form { width: min(100%, 34rem); }
.hero .card .small { color: var(--muted); font-size: var(--step-small); margin-top: -10px; }
.itin .intro .name-tile { margin-top: 32px; max-width: 280px; }

.crops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; max-width: 560px; }
.crops img { width: 100%; aspect-ratio: 4 / 3; object-fit: none; background: var(--ink); }
.crops img.photo { object-fit: cover; }
.crops figcaption { margin-top: 8px; font-size: var(--step-small); color: var(--light-muted); }
.wide-crops { max-width: none; }
.wide-crops { grid-template-columns: 1fr 1fr; }
.wide-crops img { aspect-ratio: 2.4 / 1; }
@media (max-width: 760px) { .crops { grid-template-columns: 1fr; } }
.itin .intro:has(.name-tile) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 210px); column-gap: var(--gutter); align-items: start; }
.itin .intro:has(.name-tile) h2 { grid-column: 1 / -1; }
.itin .intro:has(.name-tile) .name-tile { margin-top: 22px; max-width: none; }
@media (max-width: 760px) { .itin .intro:has(.name-tile) { grid-template-columns: 1fr; } .itin .intro:has(.name-tile) .name-tile { max-width: 260px; } }
.band.wrap + .letter-band { padding-top: 24px; }
.legacy > header .sub { font-size: var(--step-lead); line-height: 1.32; }
.legacy > header .updated { font-size: var(--step-lead); line-height: 1.32; color: var(--ink); }
.legacy > header .doc-plate { margin: 32px auto 0; max-width: 560px; background: var(--ink); }
.legacy > header .doc-plate img { width: 100%; height: auto; }
.legacy main p, .legacy main ul, .legacy main ol { max-width: none; }
.legacy main pre { overflow-x: auto; max-width: 100%; background: var(--paper-2); padding: 14px 16px; margin-top: 16px; font-size: var(--step-small); }
.legacy main code { font-size: 0.92em; overflow-wrap: anywhere; }
.legacy main pre code { overflow-wrap: normal; }
@media (max-width: 760px) { .legacy > header { margin-top: 32px; } }
.legacy .curtain.static .postcard { width: min(860px, 100%); }
.ui-shot { margin-top: 32px; background: var(--ink); }
.ui-shot img { width: 100%; height: auto; }
.ui-shot figcaption { padding: 10px 12px; font-size: var(--step-small); color: var(--light-muted); background: var(--ground); }
.wide-shot { margin-top: 0; }
.itin > .side-tile { grid-column: 8 / span 4; }
.itin .intro .say { font-size: var(--step-lead); line-height: 1.32; margin-top: 18px; }
@media (max-width: 1100px) { .itin > .side-tile { grid-column: 1 / -1; max-width: 320px; } }
.receipt .row-note { margin-top: 8px; padding: 10px 12px; background: var(--paper-2); color: var(--ink); font-size: var(--step-body); line-height: 1.45; max-width: none; }

/* ---------- app icons (2026-10): product lists and page tops show the app icon; the interface moves just below the hero ---------- */
.item .thumb.icon { background: transparent; display: flex; justify-content: center; }
.item .thumb.icon img { width: min(132px, 100%); height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.hero .plate.icon { width: auto; }
.hero .plate.icon img { width: min(200px, 46vw); margin-inline: auto; }
.interface { padding-top: 0; }
.interface .plate { margin-inline: auto; width: min(720px, 100%); }
.interface .plate.tall { width: min(420px, 86%); }
.interface .plate img { display: block; width: 100%; height: auto; }
.interface .plate figcaption { margin-top: 12px; text-align: center; font-size: var(--step-small); color: var(--light-muted); }
