/* alter-mode — sales site
   Look taken from alter-mode-visual-menu-v10 (reference/): graph-paper ground,
   taped polaroids, coloured number blobs, kraft tags, Courier captions. */

:root {
  color-scheme: light;
  --paper: #efe4d3;
  --paper-2: #f5ecdf;
  --polaroid: #faf7f0;
  --ink: #241f1a;
  --ink-2: #473d34;
  --muted: #6d6053;
  --orange: #dc6035;
  --blue: #2e4594;
  --ochre: #bf8d38;
  --kraft: #c69c6a;
  --kraft-2: #b98e5d;
  --stamp: #c4502e;
  --tape: rgba(212, 190, 143, .82);
  --grid: rgba(146, 116, 80, .13);
  --rule: rgba(36, 31, 26, .22);

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "opsz" 14;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    url("../img/paper.jpg");
  background-size: 28px 28px, 28px 28px, 1100px auto;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75, "opsz" 96;
  letter-spacing: -.025em;
  line-height: .92;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 7.4vw, 6.6rem); }
h2 { font-size: clamp(2.5rem, 6vw, 4.9rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: 14.5px; line-height: 1.5; letter-spacing: .01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 60ch; color: var(--ink-2); }
.muted { color: var(--muted); }

.eyebrow {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  font-family: var(--mono); font-size: 14px; color: var(--ink-2);
  border-top: 1.5px dashed var(--rule);
  padding-top: 12px; margin-bottom: clamp(20px, 2.6vw, 32px);
}

@media (max-width: 560px) { .eyebrow span + span { display: none; } }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(239, 228, 211, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1.5px dashed var(--rule);
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.wordmark {
  font-family: var(--display); font-weight: 800; font-stretch: 75%;
  font-variation-settings: "wdth" 75, "opsz" 48;
  font-size: 27px; letter-spacing: -.02em; text-decoration: none; line-height: 1;
}
.site-head .tagline { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); }
.site-head .cctc { height: 26px; width: auto; margin-left: auto; }
.lang {
  font-family: var(--mono); font-weight: 700; font-size: 14px; text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 11px; line-height: 1;
}
.lang:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 900px) { .site-head .tagline { display: none; } }
@media (max-width: 640px) {
  .site-head .cctc { display: none; }
  .site-head .lang { margin-left: auto; }
  .site-head .btn { padding: 9px 14px; font-size: 16px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-stretch: 85%;
  font-variation-settings: "wdth" 85, "opsz" 24;
  font-size: 19px; line-height: 1.1; letter-spacing: -.005em;
  padding: 13px 22px; border: 2px solid var(--ink);
  border-radius: 12px 16px 13px 17px / 16px 12px 17px 13px;
  background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer;
  box-shadow: 3px 3px 0 var(--orange);
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--orange); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--orange); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: 3px 3px 0 var(--rule); }
.btn.ghost:hover { box-shadow: 5px 5px 0 var(--rule); }
.btn.small { font-size: 16px; padding: 9px 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.email-link {
  font-family: var(--display); font-weight: 800; font-stretch: 75%;
  font-variation-settings: "wdth" 75, "opsz" 48;
  font-size: clamp(1.45rem, 4.4vw, 2.5rem); letter-spacing: -.02em;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px;
  text-decoration-color: var(--orange); overflow-wrap: anywhere;
}
.email-link:hover { text-decoration-color: var(--ink); }

/* ---------- polaroids + tape ---------- */
.polaroid {
  position: relative; margin: 0;
  background: var(--polaroid);
  padding: clamp(8px, 1.3vw, 14px);
  box-shadow: 0 1px 2px rgba(40, 25, 10, .1), 0 18px 30px -18px rgba(60, 35, 15, .5);
  transform: rotate(var(--r, -1deg));
}
.polaroid img { width: 100%; height: auto; object-fit: cover; }
.polaroid figcaption { font-family: var(--mono); font-size: 13.5px; padding: 10px 2px 2px; color: var(--ink-2); }
.tape::before {
  content: ""; position: absolute; z-index: 2;
  top: -15px; left: 50%; width: min(118px, 40%); height: 30px;
  transform: translateX(-50%) rotate(var(--tr, -2deg));
  background: var(--tape);
  clip-path: polygon(2% 12%, 7% 0, 14% 10%, 22% 2%, 30% 8%, 100% 0, 97% 30%, 100% 55%, 96% 80%, 100% 100%, 0 96%, 4% 70%, 0 45%, 3% 25%);
  box-shadow: inset 0 0 0 100px rgba(255, 255, 255, .06);
}
.tape.corners::before { top: -6px; left: -22px; transform: rotate(-38deg); width: 110px; }
.tape.corners::after {
  content: ""; position: absolute; z-index: 2; right: -22px; bottom: -4px; width: 110px; height: 30px;
  transform: rotate(-38deg); background: var(--tape);
  clip-path: polygon(2% 12%, 7% 0, 14% 10%, 100% 0, 97% 30%, 100% 55%, 96% 80%, 100% 100%, 0 96%, 4% 70%, 0 45%);
}

@media (max-width: 600px) { .tape.corners::before { left: -8px; width: 80px; } .tape.corners::after { right: -8px; width: 80px; } }

/* ---------- number blobs ---------- */
.num {
  flex: none; display: inline-grid; place-items: center;
  width: 44px; height: 41px; color: #fff; background: var(--c, var(--orange));
  font-family: var(--mono); font-weight: 700; font-size: 13.5px; letter-spacing: .12em; padding-left: .12em;
  border-radius: 54% 46% 50% 50% / 52% 55% 45% 48%;
}
.num.n2 { --c: var(--blue); border-radius: 48% 52% 55% 45% / 50% 46% 54% 50%; }
.num.n3 { --c: var(--ochre); border-radius: 52% 48% 44% 56% / 58% 50% 50% 42%; }

section { padding: clamp(28px, 3vw, 40px) 0; }
section .wrap > :last-child { margin-bottom: 0; }
section[id] { scroll-margin-top: 70px; }

/* ---------- 01 hero ----------
   Proportions are taken from the reference deck (slide 01) and applied as rules:
   - Column split 42 / 58 (text / photo), as on the slide.
   - Fit to measure: the headline's longest line fills 79% of the text column on
     desktop (deck ratio) and 96% of the screen when stacked. --w is that line's
     width in em (Bricolage 800, wdth 75, -0.025em), measured per language:
       EN desktop "remade in" 3.051   EN stacked "remade in Montréal." 6.103
       FR desktop "promotionnels," 4.586   FR stacked "refaits à Montréal." 5.579
   - Leading 0.90em = deck line pitch / cap height (1.36) x cap height (0.66em).
   - Photo shares the text block's top and bottom edges.
   - Vertical gaps are multiples of the 28px graph-paper grid. */
.hero { padding-top: 28px; padding-bottom: 28px; }
@media (max-width: 999px) { .hero { padding-top: 14px; } }
.hero > .wrap:first-child {
  display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  column-gap: clamp(32px, 4vw, 56px); align-items: stretch;
}
.hero .eyebrow { grid-column: 1 / -1; margin-bottom: 28px; }
.hero-text { container-type: inline-size; display: flex; flex-direction: column; justify-content: flex-start; }
.hero h1 {
  --w: 3.051; --fill: 79;
  font-size: clamp(3.4rem, 6.6vw, 6.2rem); /* fallback without container units */
  font-size: min(8rem, calc(var(--fill) * 1cqi / var(--w)));
  line-height: .9; overflow-wrap: normal; hyphens: manual; text-wrap: wrap;
  margin: -.12em 0 28px; /* trims the space above the cap height so the first line sits on the photo's top edge */
}
.hero h1:lang(fr) { --w: 4.586; }
.hero-photo { --r: 1.2deg; margin: 0; display: flex; flex-direction: column; }
.hero-photo picture { flex: 1 1 0; min-height: 0; display: flex; }
.hero-photo figcaption { flex: none; }
.hero-photo figcaption b { color: var(--ink); }
.hero-photo img { flex: 1 1 0; min-height: 0; height: 100%; aspect-ratio: auto; }
.hero h1 .keep { white-space: nowrap; } /* keeps "in Montréal." / "à Montréal." together */
.price-note {
  display: flex; gap: 10px; align-items: baseline; width: fit-content;
  background: var(--polaroid); border: 1.5px solid var(--ink);
  border-radius: 6px 10px 7px 12px; padding: 10px 16px; margin: 0 0 28px; max-width: 100%;
  box-shadow: 3px 3px 0 var(--ochre);
}
.price-note strong { font-family: var(--display); font-stretch: 85%; font-variation-settings: "wdth" 85, "opsz" 24; font-size: 1.15rem; line-height: 1.2; }
.price-note .mark { font-size: 22px; line-height: 1; }
.price-note strong { text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.cta-row .or { font-family: var(--mono); font-size: 14px; }


/* Stacked (tablet + phone): photo on top, headline wraps naturally at 96% fill. */
@media (max-width: 999px) {
  .hero > .wrap:first-child { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { order: -1; width: min(94%, 640px); margin: 0 auto 28px; }
  .hero-photo picture { flex: none; display: block; }
  .hero-photo img { flex: none; height: auto; aspect-ratio: 2 / 1; object-position: 55% 40%; }
  .hero-photo figcaption { font-size: 12px; line-height: 1.35; padding-top: 7px; }
  .hero h1 { --w: 6.103; --fill: 96; font-size: min(6rem, calc(var(--fill) * 1cqi / var(--w))); margin-top: 0; }
  .hero h1:lang(fr) { --w: 5.579; }
  .hero h1 .br-d { display: none; }
}
@media (max-width: 599px) { .hero .eyebrow { margin-bottom: 14px; padding-top: 10px; } .hero .price-note { margin-bottom: 14px; } }

/* ---------- 02 process ---------- */
.process h2 { max-width: 16ch; margin-bottom: 22px; }
.process .lead { margin-bottom: clamp(28px, 3.5vw, 44px); }
/* Desktop: headline and paragraph share one row instead of stacking under a narrow headline. */
@media (min-width: 1000px) {
  .process .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: end; }
  .process .eyebrow, .process .steps { grid-column: 1 / -1; }
  .process h2 { max-width: none; margin-bottom: 0; }
  .process .lead { margin: 0; }
  .process .steps { margin-top: 56px; }
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 40px); list-style: none; padding: 0; margin: 0; }
.steps .polaroid img { aspect-ratio: 4 / 3; }
.steps li:nth-child(1) .polaroid { --r: -1.4deg; }
.steps li:nth-child(2) .polaroid { --r: .8deg; }
.steps li:nth-child(3) .polaroid { --r: -.5deg; }
.step-head { display: flex; gap: 14px; align-items: center; margin: 26px 0 12px; }
.steps p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 28px; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .steps li { display: grid; grid-template-columns: 108px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .steps .polaroid { grid-row: 1 / span 2; padding: 5px; --r: 0deg !important; }
  .steps .polaroid::before { display: none; }
  .steps .polaroid img { aspect-ratio: 1 / 1; }
  .step-head { margin: 2px 0 6px; gap: 10px; }
  .step-head h3 { font-size: 1.35rem; }
  .step-head .num { width: 30px; height: 28px; font-size: 11px; }
  .steps p { font-size: 15px; line-height: 1.45; }
}

/* ---------- 03 ideas / configurator ---------- */
.ideas h2 { margin-bottom: 14px; }
.ideas .motto { margin: 0 0 14px; color: var(--ink-2); }
/* Desktop: the intro text takes only the viewer column, so the control panel
   starts right under the headline instead of below the intro. .studio becomes
   display: contents so its two children join this grid. */
@media (min-width: 981px) {
  .ideas .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: clamp(24px, 3.5vw, 48px); align-items: start; }
  .ideas .eyebrow, .ideas h2, .ideas .real { grid-column: 1 / -1; }
  .ideas .motto { grid-column: 1; grid-row: 3; }
  .ideas .lead { grid-column: 1; grid-row: 4; margin-bottom: 28px; }
  .ideas .studio { display: contents; }
  .ideas .stage-col { grid-column: 1; grid-row: 5; }
  .ideas .fiche { grid-column: 2; grid-row: 3 / span 3; }
  .ideas .real { grid-row: 6; }
}
.ideas .lead { margin-bottom: clamp(30px, 4vw, 48px); }
.studio { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.stage { --r: -.8deg; }
.stage-canvas-wrap { position: relative; background: #f2ede3; aspect-ratio: 600 / 640; overflow: hidden; }
.stage canvas { width: 100%; height: 100%; display: block; }
.stage canvas.swap { animation: swap .38s ease; }
@keyframes swap { from { opacity: .35; transform: scale(.975) rotate(-.6deg); } to { opacity: 1; transform: none; } }
.stage-bar { display: flex; align-items: center; gap: 8px; padding: 12px 2px 2px; }
.stage-label { font-family: var(--mono); font-size: 14px; margin-right: auto; min-width: 0; flex: 1; line-height: 1.3; }
@media (max-width: 480px) { .stage-label { font-size: 12.5px; } .icon-btn { width: 36px; height: 36px; } }
.stage-label b { font-weight: 700; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--ink);
  background: transparent; border-radius: 50% 46% 52% 48%; cursor: pointer; font-size: 15px; line-height: 1;
}
.icon-btn:hover { background: var(--ink); color: var(--paper); }
.run {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 22px;
}
.run button {
  padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 6px;
  outline-offset: 2px; transition: transform .15s;
}
.run button:hover { transform: translateY(-3px) rotate(-1deg); }
.run button[aria-current="true"] { outline: 2px solid var(--ink); }
.run canvas { width: 100%; height: auto; display: block; }
.run-caption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.fiche {
  background: var(--polaroid); border: 1.5px solid var(--ink);
  border-radius: 8px 12px 9px 14px; padding: clamp(18px, 2.4vw, 28px);
  box-shadow: 4px 4px 0 var(--kraft);
}
.fiche-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1.5px dashed var(--rule); padding-bottom: 12px; margin-bottom: 6px; }
.fiche-title h3 { font-size: 1.7rem; }
.field { border: 0; margin: 0; padding: 16px 0; border-bottom: 1px dashed var(--rule); min-width: 0; }
.field:last-of-type { border-bottom: 0; }
.field legend, .field .label {
  font-family: var(--mono); font-weight: 700; font-size: 13.5px; letter-spacing: .02em;
  padding: 0; margin-bottom: 10px; display: block; float: left; width: 100%;
}
.field legend + * { clear: both; }
.field legend .muted { font-weight: 400; }
.hint { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 8px 0 0; clear: both; }

.drop {
  clear: both; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 2px dashed var(--ink-2); border-radius: 10px; padding: 12px 14px; background: var(--paper-2);
  transition: background .15s, border-color .15s;
}
.drop.over { background: #efe0c6; border-color: var(--orange); }
.drop .thumb { width: 52px; height: 52px; border-radius: 6px; background: #fff center/contain no-repeat; border: 1px solid var(--rule); flex: none; }
.drop .drop-text { font-size: 14.5px; line-height: 1.35; flex: 1; min-width: 140px; }
.drop input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; margin-top: 10px; margin-right: 16px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; font-family: var(--mono); font-size: 13px; text-decoration: underline; cursor: pointer; color: var(--ink-2); }

.ink-row { display: grid; grid-template-columns: 118px 1fr; gap: 10px; align-items: center; clear: both; margin-bottom: 10px; }
.ink-row:last-child { margin-bottom: 0; }
.ink-row .row-label { font-size: 14px; line-height: 1.2; color: var(--ink-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch span {
  display: block; width: 30px; height: 30px; background: var(--sw);
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); cursor: pointer;
}
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--polaroid), 0 0 0 4px var(--ink); }
.swatch input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 4px; }
.swatch.custom span { background: conic-gradient(#dc6035, #bf8d38, #6a8f4e, #2e4594, #7e6378, #dc6035); }
.swatch.custom input[type=color] { opacity: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 13px; font-size: 14.5px; line-height: 1.2;
  background: transparent; transition: background .12s;
}
.chip span i { width: 14px; height: 14px; border-radius: 50%; background: var(--sw, transparent); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); display: inline-block; }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.range { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; clear: both; }
.range input { flex: 1; accent-color: var(--ink); }

.studio-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 22px; }

.real { margin-top: 56px; }
/* Examples: one 3-column grid so every photo is the same width.
   Row 1: light print, dark print, their caption. Row 2: the three cuts. */
.real > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px; align-items: start; }
.real .pair, .real .cuts { display: contents; }
.real .kicker { grid-column: 1 / -1; font-family: var(--mono); font-size: 14px; margin: 0 0 -14px; }
.pair .polaroid:nth-child(1) { --r: -1deg; }
.pair .polaroid:nth-child(2) { --r: 1.2deg; }
.pair img { aspect-ratio: 4 / 3.1; }
.caption-block { margin: 0; align-self: center; }
.caption-block h3 { font-size: 1.55rem; margin-bottom: 6px; }
.caption-block p { font-family: var(--mono); font-size: 14px; margin: 0; }
.cuts .polaroid:nth-child(1) { --r: .8deg; }
.cuts .polaroid:nth-child(2) { --r: -1deg; }
.cuts .polaroid:nth-child(3) { --r: .5deg; }
.cuts img { aspect-ratio: 1 / 1; object-fit: contain; background: #faf6ee; }
.cuts figcaption { padding-top: 14px; }
.cuts figcaption strong { display: block; font-family: var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75, "opsz" 24; font-weight: 800; font-size: 1.3rem; color: var(--ink); line-height: 1; margin-bottom: 4px; }

@media (max-width: 980px) {
  .studio { grid-template-columns: 1fr; }
  .stage-col { display: contents; }
  .stage { position: sticky; top: 72px; z-index: 5; max-width: 620px; width: 100%; margin: 0 auto; }
  .stage-canvas-wrap { aspect-ratio: auto; height: min(28vh, 300px); display: flex; justify-content: center; }
  .stage .stage-bar { padding-top: 6px; }
  .stage canvas { width: auto; height: 100%; }
  .run, .run-caption { max-width: 620px; width: 100%; margin-left: auto; margin-right: auto; }
  .stage-col { max-width: 620px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .run { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ink-row { grid-template-columns: 1fr; gap: 6px; }

}

/* ---------- 04 atelier ---------- */
.atelier-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 4.5vw, 64px); align-items: start; }
.atelier-copy .mono { margin: 0 0 14px; }
.atelier-copy h2 { margin: 0 0 20px; font-size: clamp(2.6rem, 5vw, 4.4rem); }
.atelier-copy h3 { font-size: clamp(1.35rem, 1.9vw, 1.65rem); line-height: 1.05; color: var(--ink-2); margin: 0 0 20px; letter-spacing: -.01em; }
.atelier-photo { --r: 1.2deg; margin-top: 6px; }
.atelier-photo img { aspect-ratio: 4 / 3; }
.atelier-copy p { color: var(--ink-2); }
.bxb-sign { display: flex; gap: 14px; align-items: center; margin-top: 26px; font-family: var(--mono); font-size: 13.5px; }
.bxb-sign img { width: 120px; height: auto; }
.values {
  margin-top: 56px; padding-top: 28px; border-top: 1.5px dashed var(--rule); font-family: var(--display); font-weight: 800; font-stretch: 75%;
  font-variation-settings: "wdth" 75, "opsz" 48; font-size: clamp(1.7rem, 3.3vw, 2.6rem); line-height: 1.02; letter-spacing: -.02em;
}
@media (max-width: 860px) { .atelier-grid { grid-template-columns: 1fr; } .atelier-photo { max-width: 560px; } }

/* ---------- pricing ---------- */
.pricing h2 { margin-bottom: 18px; max-width: 18ch; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(22px, 3vw, 32px); list-style: none; padding: 0; }
.tier {
  background: var(--polaroid); border: 1.5px solid var(--ink); padding: 20px 18px 18px;
  border-radius: 7px 11px 8px 12px; position: relative;
}
.tier:nth-child(odd) { transform: rotate(-.5deg); }
.tier:nth-child(even) { transform: rotate(.4deg); }
.tier .qty { font-family: var(--mono); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.tier .price { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75, "opsz" 72; font-size: 3rem; line-height: .9; letter-spacing: -.02em; }
.tier .unit { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 6px; }
.tier .soon {
  position: absolute; top: -12px; right: 12px; background: var(--ochre); color: #fff;
  font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; transform: rotate(3deg);
}
.pricing .fineprint { margin-top: 16px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr 1fr; } }

/* ---------- 05 your next run ---------- */
.next-card { width: 100%; }
/* 05 intro: headline + budget copy beside the finished-run photo (was a cropped background). */
.next-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.next-intro .budget { font-size: clamp(1.05rem, 1.5vw, 1.18rem); max-width: 56ch; margin: 0 0 14px; }
.terms { list-style: none; margin: 0; padding: 0; max-width: 60ch; font-size: 14px; color: var(--ink-2); }
.terms li { position: relative; padding: 3px 0 3px 22px; line-height: 1.45; }
.terms li::before { content: "✓"; position: absolute; left: 2px; top: 3px; font-weight: 700; color: var(--orange); }
.terms li:first-child { color: var(--ink); font-weight: 700; }
.next .stack-photo { --r: 1.8deg; max-width: 420px; justify-self: end; width: 100%; margin-top: 6px; }
.next .stack-photo img { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .next-intro { grid-template-columns: 1fr; gap: 0; }
  .next-intro > div { display: contents; }
  .next .stack-photo { order: 1; }
  .next .clothesline { order: 2; }
  .next .stack-photo { justify-self: center; max-width: 300px; width: 80%; margin-top: 14px; }
}
.next h2 { margin-bottom: 14px; }
.clothesline { position: relative; margin: 42px 0 0; }
.clothesline svg.string { position: absolute; left: 0; top: 0; width: 100%; height: 40px; overflow: visible; }
.tags { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); list-style: none; margin: 0; padding: 22px 0 0; }
.tag {
  position: relative; padding: 58px 18px 24px; color: var(--ink); text-align: center;
  background: var(--kraft) url("../img/paper.jpg") center / 700px auto; background-blend-mode: multiply;
  clip-path: polygon(0 12%, 10% 1%, 90% 0, 100% 11%, 99% 100%, 1% 98%);
  transform: rotate(var(--r, 0deg)); transform-origin: 50% 0;
}
.tag:nth-child(1) { --r: -1.4deg; }
.tag:nth-child(2) { --r: .8deg; }
.tag:nth-child(3) { --r: -.6deg; }
.tag::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: #efe4d3; box-shadow: 0 0 0 5px #dcc6a3;
}
.tag h3 { font-size: 1.9rem; margin: 10px 0 8px; }
.tag p { margin: 0 auto; font-size: 15px; line-height: 1.4; max-width: 26ch; }
.tag .num { width: 36px; height: 34px; font-size: 12px; }
.loop { position: absolute; top: -26px; left: 50%; width: 16px; height: 58px; transform: translateX(-50%); z-index: 2; pointer-events: none; }
.next .aside { margin-top: clamp(20px, 3vw, 32px); max-width: 62ch; color: var(--ink-2); }

.brief { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(32px, 4vw, 48px); align-items: start; }
.brief-form { background: var(--polaroid); border: 1.5px solid var(--ink); border-radius: 8px 12px 9px 14px; padding: clamp(18px, 2.6vw, 30px); box-shadow: 4px 4px 0 var(--orange); }
.brief-form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.brief-form .full { grid-column: 1 / -1; }
.brief-form label.f { display: block; font-family: var(--mono); font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.brief-form input[type=text], .brief-form input[type=number], .brief-form input[type=date], .brief-form input[type=email], .brief-form textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--ink-2); background: transparent; padding: 8px 2px; font-size: 16px; border-radius: 0;
}
.brief-form textarea { resize: vertical; min-height: 64px; border: 1.5px solid var(--ink-2); border-radius: 6px; padding: 8px 10px; }
.brief-form input:focus, .brief-form textarea:focus { outline: none; border-color: var(--blue); background: rgba(46, 69, 148, .05); }
.brief-form .chips { margin-top: 4px; }
.mockup-summary { display: flex; gap: 12px; align-items: center; border: 1.5px dashed var(--ink-2); border-radius: 8px; padding: 10px 12px; font-size: 14.5px; background: var(--paper-2); }
.mockup-summary canvas { width: 64px; height: auto; flex: none; }
.mockup-summary[hidden] { display: none; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 22px; }
.toast { font-family: var(--mono); font-size: 13.5px; color: var(--blue); margin: 10px 0 0; }
.toast:empty { display: none; }
.brief-side .mono { margin-bottom: 8px; }
.brief-side .email-link { display: inline-block; margin-bottom: 24px; }
.checklist { list-style: none; padding: 0; margin: 0 0 26px; columns: 2; column-gap: 18px; }
.checklist li { padding: 4px 0 4px 26px; position: relative; break-inside: avoid; font-size: 16px; }
.checklist li::before { content: "✓"; position: absolute; left: 2px; top: 3px; font-family: var(--mono); font-weight: 700; color: var(--orange); }
.stamp { width: 150px; height: 150px; transform: rotate(-12deg); display: block; margin-top: 10px; opacity: .92; }

@media (max-width: 900px) {
  .tags { grid-template-columns: 1fr; max-width: 420px; gap: 22px; margin: 0 auto; }
  .tag { padding: 46px 18px 18px; }
  .tag::before { top: 12px; width: 20px; height: 20px; }
  .tag h3 { font-size: 1.6rem; margin: 6px 0 4px; }
  .clothesline svg.string { display: none; }
  .tag { min-height: 0; }
  .brief { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brief-form .grid { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
}

/* ---------- FAQ (empty for now) ---------- */
.faq details { border-top: 1.5px dashed var(--rule); padding: 16px 0; }
.faq summary { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 1.4rem; cursor: pointer; }

/* ---------- footer ---------- */
.site-foot { padding: 20px 0 96px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; border-top: 1.5px dashed var(--rule); padding-top: 20px; }
.site-foot .logos { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.site-foot .logos .bxb { width: 108px; height: auto; }
.site-foot .logos .cctc { height: 34px; width: auto; }
.site-foot .mono a { text-decoration-color: var(--orange); }
@media (min-width: 761px) { .site-foot { padding-bottom: 24px; } }

/* ---------- mobile sticky CTA ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; gap: 10px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(239, 228, 211, .96); border-top: 1.5px dashed var(--rule); backdrop-filter: blur(6px);
  transform: translateY(110%); transition: transform .25s ease;
}
.dock .btn { flex: 1; }
.dock.show { transform: none; }
@media (max-width: 760px) { .dock { display: flex; } }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } .stage canvas.swap { animation: none; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* Examples on tablets/phones: pair = halves, cuts = thirds, caption full width. */
@media (max-width: 760px) {
  .real > div { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 14px; }
  .real .kicker { margin: 0; }
  .pair .polaroid { grid-column: span 3; }
  .caption-block { grid-column: 1 / -1; }
  .cuts .polaroid { grid-column: span 2; padding: 6px; }
  .cuts figcaption { font-size: 0; padding-top: 8px; } /* title only at this size */
  .cuts figcaption strong { font-size: 1.05rem; margin: 0; }
}
