/* ==========================================================================
   Lake Oswego Agency — conceptual boutique brand + web studio
   Editorial giant type on a 12-column grid. Fog, fir, chartreuse.
   ========================================================================== */

:root {
  --fog: #E8EBE6;
  --fog-2: #DDE2DB;
  --fir: #163025;
  --fir-2: #1E3F32;
  --lime: #CFE04A;
  --ink: #0E1512;
  --mist: #BFC8C0;
  --white: #FFFFFF;
  --muted: #43544A;      /* secondary text on fog / white / fog-2 (>= 6:1) */
  --edge: #5E7066;       /* control borders (>= 3:1 on white and fog) */
  --hair: #AEB9B1;       /* decorative hairlines */
  --alert: #8A1F11;      /* error text on white / fog (>= 7:1) */
  --focus: #163025;

  --f-display: "Helvetica Neue", Helvetica, "Nimbus Sans", "Arial Nova", Arial, sans-serif;
  --f-body: "Helvetica Neue", Helvetica, "Nimbus Sans", Arial, sans-serif;
  --f-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --pad: clamp(1rem, 4vw, 3.5rem);
  --gap: clamp(0.75rem, 2vw, 1.75rem);
  --maxw: 1440px;

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;

  --shadow-1: 0 1px 1px rgba(14, 21, 18, 0.08), 0 2px 4px rgba(14, 21, 18, 0.06);
  --shadow-2: 0 1px 2px rgba(14, 21, 18, 0.1), 0 6px 12px -4px rgba(14, 21, 18, 0.14), 0 24px 40px -20px rgba(14, 21, 18, 0.28);
  --shadow-3: 0 2px 3px rgba(14, 21, 18, 0.1), 0 14px 24px -8px rgba(14, 21, 18, 0.2), 0 44px 70px -30px rgba(14, 21, 18, 0.4);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
svg { display: block; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark { --focus: var(--lime); }
.on-lime { --focus: var(--fir); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--s-3); top: -4rem; z-index: 200;
  background: var(--lime); color: var(--ink); font-weight: 800; padding: 0.8rem 1.1rem;
  border-radius: 10px; text-decoration: none; box-shadow: var(--shadow-2);
}
.skip:focus-visible { top: var(--s-3); outline-color: var(--ink); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: var(--s-5); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
.section { padding-block: clamp(3.5rem, 8vw, 8rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.on-dark { background: var(--fir); color: var(--fog); }
.on-lime { background: var(--lime); color: var(--ink); }
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 180px 180px; opacity: 0.07; mix-blend-mode: screen;
}
.on-lime.grain::before, .paper.grain::before { mix-blend-mode: multiply; opacity: 0.05; filter: invert(1); }

@media (min-width: 900px) {
  .s-1-4 { grid-column: 1 / 5; } .s-1-5 { grid-column: 1 / 6; } .s-1-6 { grid-column: 1 / 7; }
  .s-1-7 { grid-column: 1 / 8; } .s-1-8 { grid-column: 1 / 9; } .s-2-7 { grid-column: 2 / 8; }
  .s-2-8 { grid-column: 2 / 9; } .s-3-9 { grid-column: 3 / 10; } .s-4-12 { grid-column: 4 / 13; }
  .s-5-11 { grid-column: 5 / 12; } .s-5-12 { grid-column: 5 / 13; } .s-6-12 { grid-column: 6 / 13; }
  .s-6-11 { grid-column: 6 / 12; } .s-7-12 { grid-column: 7 / 13; } .s-8-12 { grid-column: 8 / 13; }
  .s-9-12 { grid-column: 9 / 13; } .s-1-12 { grid-column: 1 / 13; } .s-3-7 { grid-column: 3 / 8; } .s-1-9 { grid-column: 1 / 10; } .s-5-8 { grid-column: 5 / 9; }
}

/* ---------- type ---------- */
.display, h1, h2 { font-family: var(--f-display); font-weight: 900; letter-spacing: -0.055em; line-height: 0.9; }
h1 { font-size: clamp(3rem, 1rem + 9.6vw, 9.5rem); }
h2 { font-size: clamp(2.3rem, 1rem + 5vw, 5.6rem); line-height: 0.92; letter-spacing: -0.05em; }
h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; font-size: clamp(1.35rem, 1rem + 1.1vw, 2rem); }
h4 { font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; line-height: 1.3; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-weight: 800; font-size: 0.8rem; line-height: 1.2; letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: currentColor; flex: none; }
.lede { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem); line-height: 1.4; max-width: 38em; }
.muted { color: var(--muted); }
.on-dark .muted { color: var(--mist); }
.on-lime .muted { color: var(--fir); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 40em; }
.line-block { display: block; }
.hl {
  background: var(--lime); color: var(--ink); padding: 0 0.1em 0.04em; margin-inline: -0.02em;
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.04em;
  border-radius: 0.05em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.on-dark .hl { background: var(--lime); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.7rem 1.5rem; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--lime); color: var(--ink);
  font-weight: 800; font-size: 1rem; line-height: 1.2; letter-spacing: -0.01em; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 2px 3px rgba(14, 21, 18, 0.2), 0 12px 20px -10px rgba(14, 21, 18, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset, 0 3px 5px rgba(14, 21, 18, 0.2), 0 18px 26px -12px rgba(14, 21, 18, 0.5); }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--fir); color: var(--fog); border-color: var(--fir); }
.btn-dark:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: var(--fog); box-shadow: none; }
.on-dark .btn { border-color: var(--lime); }
.on-dark .btn-ghost { color: var(--fog); border-color: var(--mist); }
.on-dark .btn-ghost:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.on-lime .btn-ghost:hover { background: var(--fir); color: var(--lime); }
.btn[aria-disabled="true"], .btn:disabled {
  background: var(--fog-2); color: var(--muted); border: 2px dashed var(--edge); box-shadow: none; cursor: not-allowed; transform: none;
}
.btn-small { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.arrow { display: inline-block; flex: none; width: 1.2em; height: 1.2em; }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--fog); border-bottom: 1px solid var(--hair); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; min-height: 44px; }
.brand svg { width: 2.4rem; height: 2.4rem; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; font-weight: 900; letter-spacing: -0.04em; font-size: 1.1rem; }
.brand-name em { font-family: var(--f-serif); font-weight: 400; letter-spacing: -0.01em; font-size: 0.95rem; margin-top: 0.15rem; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.95rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; letter-spacing: -0.01em; border-bottom: 3px solid transparent; border-radius: 0;
}
.site-nav a:hover { background: var(--fog-2); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 900; }
.site-nav li:last-child a { background: var(--lime); border: 2px solid var(--ink); border-radius: 999px; margin-left: 0.4rem; padding-inline: 1.15rem; }
.site-nav li:last-child a:hover { background: var(--fir); color: var(--lime); }
.site-nav li:last-child a[aria-current="page"] { background: var(--fir); color: var(--lime); }
.menu-btn {
  display: none; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 1.1rem;
  border: 2px solid var(--ink); background: var(--fog); border-radius: 999px; font-weight: 800;
}
.menu-btn .bars { width: 1.1rem; height: 0.8rem; position: relative; display: block; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 0.2s ease, top 0.2s ease; }
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: calc(100% - 2px); }
.menu-btn[aria-expanded="true"] .bars::before { top: calc(50% - 1px); transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: calc(50% - 1px); transform: rotate(-45deg); }

@media (max-width: 860px) {
  .js .menu-btn { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none;
    background: var(--fir); color: var(--fog); padding: var(--s-5) var(--pad) var(--s-6);
    border-bottom: 1px solid var(--ink); box-shadow: var(--shadow-3); --focus: var(--lime);
    max-height: calc(100vh - 4.25rem); overflow-y: auto;
  }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav a {
    min-height: 60px; font-size: clamp(2rem, 9vw, 3rem); font-weight: 900; letter-spacing: -0.05em;
    border-bottom: 1px solid var(--fir-2); padding: 0; width: 100%;
  }
  .js .site-nav a:hover { background: transparent; color: var(--lime); }
  .js .site-nav a[aria-current="page"] { border-bottom-color: var(--lime); color: var(--lime); }
  .js .site-nav li:last-child a, .js .site-nav li:last-child a[aria-current="page"] {
    background: transparent; border: 0; border-bottom: 1px solid var(--fir-2); margin: 0; color: var(--lime); border-radius: 0;
  }
  .js .site-nav li:last-child a:hover { background: transparent; color: var(--fog); }
  .no-js-fallback { display: none; }
  html:not(.js) .bar { flex-wrap: wrap; padding-block: var(--s-3); }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--fog); --focus: var(--lime); padding-block: clamp(3rem, 6vw, 5.5rem) var(--s-6); }
.foot-mail {
  display: block; font-family: var(--f-display); font-weight: 900; letter-spacing: -0.05em; line-height: 1;
  font-size: clamp(1.15rem, 0.2rem + 5.2vw, 4.2rem); color: var(--lime); text-decoration: none; overflow-wrap: anywhere;
  padding-bottom: var(--s-3); border-bottom: 2px solid var(--fir-2);
}
.foot-mail:hover { text-decoration: underline; text-decoration-thickness: 0.06em; }
.foot-grid { margin-top: var(--s-6); }
.foot-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.foot-nav a:hover { color: var(--lime); text-decoration: underline; }
.foot-brand { font-weight: 900; letter-spacing: -0.04em; font-size: 1.5rem; line-height: 1.1; }
.foot-brand em { font-family: var(--f-serif); font-weight: 400; display: block; font-size: 1.1rem; letter-spacing: 0; color: var(--mist); }
.foot-note { color: var(--mist); font-size: 0.95rem; max-width: 36em; }
.foot-note + .foot-note { margin-top: var(--s-2); }
.foot-mail-small { color: var(--lime); font-weight: 800; }

/* ---------- hero (home) ---------- */
.hero { padding-top: clamp(1.75rem, 4vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 5.5rem); }
.hero h1 { margin-top: var(--s-5); }
.hero h1 .line-block:nth-child(2) { padding-left: clamp(0rem, 11vw, 12rem); }
.hero-foot { margin-top: clamp(2rem, 5vw, 4rem); align-items: end; }
.hero-copy .lede { margin-bottom: var(--s-5); }
.badge { width: clamp(8.5rem, 16vw, 14rem); aspect-ratio: 1; filter: drop-shadow(0 18px 18px rgba(14, 21, 18, 0.22)); }
.badge .ring { transform-origin: 100px 100px; animation: spin 48s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ripple-rule { display: block; width: 100%; height: 2.4rem; margin-top: var(--s-6); color: var(--fir); }

/* ---------- marquee ---------- */
.marquee-band { padding-block: clamp(2.5rem, 5vw, 4.5rem); overflow: clip; }
.marquee-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); }
.marquee { display: grid; gap: clamp(0.5rem, 1.5vw, 1.25rem); }
.mq-row { overflow: clip; }
.mq-track { display: flex; width: max-content; }
.js .mq-track { animation: mq 46s linear infinite; }
.js .mq-row[data-dir="right"] .mq-track { animation-direction: reverse; animation-duration: 58s; }
.marquee.is-paused .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-set { display: flex; flex: none; list-style: none; padding: 0; margin: 0; }
.mq-word {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); padding-right: clamp(1rem, 3vw, 2.5rem);
  font-family: var(--f-display); font-weight: 900; letter-spacing: -0.06em; line-height: 1;
  font-size: clamp(3.2rem, 0.6rem + 9vw, 9.5rem); color: var(--fog);
}
.mq-row[data-dir="right"] .mq-word { color: var(--mist); font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.04em; }
.mq-word > span {
  display: inline-block; transform-origin: 50% 70%;
  transform: scale(calc(1 + var(--p, 0) * 0.2)) skewX(calc(var(--p, 0) * -9deg));
  will-change: transform;
}
.mq-word[data-hot="1"] > span { color: var(--lime); }
.mq-word:hover > span { color: var(--lime); }
.mq-word::after {
  content: ""; flex: none; width: 0.32em; height: 0.32em; background: var(--lime);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.mq-static-note { color: var(--mist); font-size: 0.95rem; }

/* ---------- statement ---------- */
.statement-quote { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(2.3rem, 1rem + 5.2vw, 6rem); }
.statement-quote strong { font-family: var(--f-display); font-style: normal; font-weight: 900; letter-spacing: -0.06em; }
.rule-list { list-style: none; border-top: 2px solid var(--ink); }
.rule-list li { padding: var(--s-4) 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-3); }
.rule-list b { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.3rem; line-height: 1.3; color: var(--muted); }
.rule-list strong { display: block; font-weight: 900; letter-spacing: -0.03em; font-size: 1.25rem; line-height: 1.2; }

/* ---------- numbered index ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.index { list-style: none; border-top: 2px solid var(--ink); }
.index li { border-bottom: 1px solid var(--ink); }
.index a {
  display: grid; grid-template-columns: clamp(3rem, 8vw, 6rem) minmax(0, 1fr) auto; align-items: center; gap: var(--s-3) var(--gap);
  padding: clamp(1rem, 2vw, 1.6rem) 0.5rem; text-decoration: none; min-height: 64px;
  transition: background-color 0.2s ease, padding 0.25s ease;
}
.index .num { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.6rem); color: var(--muted); line-height: 1; }
.index .name { font-family: var(--f-display); font-weight: 900; letter-spacing: -0.05em; line-height: 0.95; font-size: clamp(1.7rem, 1rem + 3.2vw, 4rem); }
.index .desc { grid-column: 2 / 3; color: var(--muted); max-width: 34em; }
.index .go { width: clamp(2.5rem, 4vw, 3.4rem); height: clamp(2.5rem, 4vw, 3.4rem); border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; grid-column: 3; grid-row: 1; }
.index .go svg { width: 1.2rem; height: 1.2rem; }
.index a:hover, .index a:focus-visible { background: var(--lime); padding-inline: clamp(0.5rem, 2vw, 1.5rem); }
.index a:hover .num, .index a:focus-visible .num, .index a:hover .desc, .index a:focus-visible .desc { color: var(--ink); }
.index a:hover .go, .index a:focus-visible .go { background: var(--ink); color: var(--lime); }
.index a:focus-visible { outline-offset: -3px; border-radius: 0; }
@media (min-width: 900px) {
  .index a { grid-template-columns: clamp(3rem, 8vw, 6rem) minmax(0, 1.1fr) minmax(0, 1fr) auto; }
  .index .desc { grid-column: 3; }
  .index .go { grid-column: 4; }
}

/* ---------- lab teaser (home) ---------- */
.lab-teaser { padding-block: clamp(3.5rem, 8vw, 8rem); overflow: clip; }
.lab-teaser h2 .hl { font-size: 0.95em; }
.mini-lab { background: var(--fog); color: var(--ink); border-radius: 24px; padding: clamp(1.1rem, 3vw, 2rem); box-shadow: var(--shadow-3); --focus: var(--fir); }
.mini-lab label { display: block; font-weight: 800; margin-bottom: var(--s-2); }
.mini-stage { margin-top: var(--s-4); border-radius: 16px; background: var(--white); border: 1px solid var(--hair); padding: var(--s-4); min-height: 11rem; display: grid; place-items: center; }
.mini-stage svg { width: 100%; max-height: 14rem; }
.mini-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-3); list-style: none; }
.mini-swatches li { border-radius: 10px; min-height: 3.2rem; display: flex; align-items: end; padding: 0.35rem 0.4rem; font-family: var(--f-mono); font-size: 0.68rem; line-height: 1.1; border: 1px solid rgba(14, 21, 18, 0.18); overflow-wrap: anywhere; }
.mini-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); }

/* ---------- process teaser (home) ---------- */
.steps-mini { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); counter-reset: s; }
.steps-mini li { border-top: 2px solid var(--ink); padding-top: var(--s-3); }
.steps-mini .n { display: block; font-family: var(--f-serif); font-style: italic; color: var(--muted); font-size: 1.4rem; line-height: 1; margin-bottom: 0.4rem; }
.steps-mini strong { display: block; font-family: var(--f-display); font-weight: 900; letter-spacing: -0.045em; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem); line-height: 1; }
.steps-mini span.t { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.97rem; line-height: 1.45; }
@media (min-width: 900px) { .steps-mini { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- CTA band ---------- */
.cta { padding-block: clamp(3.5rem, 8vw, 7.5rem); }
.cta h2 { max-width: 12em; }
.cta .mail-link { font-weight: 900; letter-spacing: -0.03em; font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); overflow-wrap: anywhere; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem); }
.page-hero h1 { margin-top: var(--s-5); }
.page-hero .lede { margin-top: var(--s-5); }
.outline-num {
  display: inline-block; background: var(--lime); color: var(--ink); border-radius: 0.08em; padding: 0.08em 0.12em 0.02em;
  font-family: var(--f-display); font-weight: 900; letter-spacing: -0.07em; line-height: 0.85;
  font-size: clamp(5rem, 1rem + 14vw, 14rem); box-shadow: var(--shadow-2); transform: rotate(-3deg);
}

/* ---------- services page ---------- */
.svc-layout { align-items: start; }
.svc-side { position: relative; }
@media (min-width: 900px) { .svc-side-sticky { position: sticky; top: 6rem; } }
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.chip {
  min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 2px solid var(--ink); background: transparent;
  font-weight: 800; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.chip:hover { background: var(--fog-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--lime); }
.chip[aria-pressed="true"]::before { content: ""; width: 0.55rem; height: 0.55rem; background: var(--lime); border-radius: 50%; }
.count-line { margin-top: var(--s-3); color: var(--muted); font-weight: 700; }
.tools-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.row { border-bottom: 1px solid var(--ink); }
.row[hidden] { display: none; }
.rows { list-style: none; border-top: 2px solid var(--ink); }
.row-head { margin: 0; font-size: inherit; line-height: inherit; font-family: inherit; letter-spacing: normal; font-weight: inherit; }
.row-btn {
  width: 100%; display: grid; grid-template-columns: clamp(3rem, 8vw, 5.5rem) minmax(0, 1fr) auto; gap: var(--s-3) var(--gap);
  align-items: center; text-align: left; background: transparent; border: 0; padding: clamp(1rem, 2vw, 1.6rem) 0.5rem; min-height: 72px;
  transition: background-color 0.2s ease;
}
.row-btn:hover { background: var(--fog-2); }
.row-btn .num { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.6rem); color: var(--muted); line-height: 1; }
.row-btn .name { font-family: var(--f-display); font-weight: 900; letter-spacing: -0.05em; line-height: 0.95; font-size: clamp(1.6rem, 1rem + 2.8vw, 3.6rem); display: block; }
.row-btn .sum { grid-column: 2 / 3; color: var(--muted); display: block; max-width: 34em; margin-top: 0.35rem; }
.row-btn .tog { grid-column: 3; grid-row: 1; width: 2.8rem; height: 2.8rem; border: 2px solid var(--ink); border-radius: 50%; position: relative; flex: none; }
.row-btn .tog::before, .row-btn .tog::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1rem; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.25s ease; }
.row-btn .tog::after { transform: translate(-50%, -50%) rotate(90deg); }
.row.open .row-btn .tog { background: var(--ink); color: var(--lime); }
.row.open .row-btn .tog::after { transform: translate(-50%, -50%) rotate(0deg); }
.row.open .row-btn { background: var(--lime); }
.row.open .row-btn .num, .row.open .row-btn .sum { color: var(--ink); }
.row-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.35s ease, visibility 0s; }
.js .row:not(.open) .row-panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.35s ease, visibility 0s 0.35s; }
.row-panel > div { overflow: hidden; min-height: 0; }
.row-cols { display: grid; gap: var(--s-5) var(--gap); padding: clamp(1.25rem, 3vw, 2.25rem) 0.5rem clamp(1.5rem, 3vw, 2.5rem); }
.row-cols h4 { margin-bottom: var(--s-3); padding-bottom: var(--s-2); border-bottom: 2px solid var(--ink); }
.row-cols ul { list-style: none; display: grid; gap: 0.5rem; }
.row-cols li { padding-left: 1.4rem; position: relative; }
.row-cols li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.7rem; height: 2px; background: var(--ink); }
.row-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: var(--s-3); list-style: none; }
.row-tags li { padding: 0.15rem 0.7rem; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.row-tags li::before { display: none; }
@media (min-width: 760px) { .row-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.shapes { counter-reset: sh; }
.shape-card { background: var(--white); border: 1px solid var(--hair); border-radius: 22px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: var(--s-3); }
.shape-card svg { width: 3.4rem; height: 3.4rem; color: var(--fir); }
.shape-card p { color: var(--muted); }
.no-list { display: grid; gap: var(--s-3); list-style: none; }
.no-list li { display: grid; grid-template-columns: 2rem 1fr; gap: var(--s-3); align-items: start; padding-top: var(--s-3); border-top: 1px solid var(--mist); }
.no-list .x { width: 2rem; height: 2rem; border: 2px solid var(--lime); border-radius: 50%; position: relative; }
.no-list .x::before, .no-list .x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.9rem; height: 2px; background: var(--lime); transform: translate(-50%, -50%) rotate(45deg); }
.no-list .x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.no-list strong { display: block; font-weight: 900; letter-spacing: -0.02em; font-size: 1.15rem; }

/* ---------- process page ---------- */
.process-hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.process-hero h1 { margin-top: var(--s-5); }
.strip-wrap { padding-bottom: clamp(3rem, 6vw, 6rem); }
.strip-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); justify-content: space-between; margin-bottom: var(--s-5); }
.strip-status { font-weight: 800; letter-spacing: -0.01em; }
.strip-status .serif { font-size: 1.4em; margin-right: 0.35rem; color: var(--lime); }
.strip-buttons { display: flex; gap: var(--s-2); }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--fog); background: transparent; color: var(--fog); display: grid; place-items: center; transition: background-color 0.15s ease, color 0.15s ease; }
.round-btn svg { width: 1.3rem; height: 1.3rem; }
.round-btn:hover:not(:disabled) { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.round-btn:disabled { border-style: dashed; color: var(--mist); border-color: var(--mist); cursor: not-allowed; }
.strip {
  --strip-pad: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--strip-pad);
  padding: 1.5rem var(--strip-pad) 2.5rem; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--lime) var(--fir-2);
  -webkit-overflow-scrolling: touch;
}
.strip-list { display: flex; flex-wrap: nowrap; gap: var(--gap); list-style: none; margin: 0; padding: 0; position: relative; }
.strip-list::after { content: ""; flex: 0 0 calc(var(--strip-pad) - var(--gap)); }
.strip:focus-visible { outline-offset: -4px; }
.strip::-webkit-scrollbar { height: 10px; }
.strip::-webkit-scrollbar-track { background: var(--fir-2); }
.strip::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 99px; }
.step {
  flex: 0 0 min(88vw, 620px); scroll-snap-align: start; scroll-snap-stop: always;
  background: var(--fog); color: var(--ink); border-radius: 28px; padding: clamp(1.25rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; gap: var(--s-4); box-shadow: var(--shadow-2); position: relative; --focus: var(--fir);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.35s ease, box-shadow 0.45s ease;
}
.step.is-active { background: var(--lime); transform: translateY(-12px); box-shadow: var(--shadow-3); }
.step-top { display: flex; align-items: start; justify-content: space-between; gap: var(--s-4); }
.step-num { font-family: var(--f-display); font-weight: 900; letter-spacing: -0.08em; line-height: 0.78; font-size: clamp(6rem, 3rem + 12vw, 12rem); }
.step-glyph { width: clamp(3.4rem, 8vw, 5.2rem); height: clamp(3.4rem, 8vw, 5.2rem); color: var(--fir); flex: none; }
.step h2 { font-size: clamp(2rem, 1rem + 3vw, 3.6rem); }
.step-state { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 1.4rem; }
.step-state::before { content: ""; width: 0.65rem; height: 0.65rem; border: 2px solid currentColor; border-radius: 50%; }
.step.is-active .step-state::before { background: currentColor; }
.step dl { display: grid; gap: var(--s-3); border-top: 2px solid var(--ink); padding-top: var(--s-3); }
.step dt { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.step dd { color: var(--ink); }
.step-dots { display: flex; flex-wrap: wrap; gap: 0.1rem; list-style: none; }
.step-dots button { min-width: 44px; min-height: 44px; border-radius: 50%; border: 2px solid transparent; background: transparent; color: var(--fog); font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; display: grid; place-items: center; }
.step-dots button:hover { border-color: var(--mist); }
.step-dots button[aria-current="step"] { background: var(--lime); color: var(--ink); font-weight: 700; font-style: normal; }
.strip-progress { height: 4px; background: var(--fir-2); border-radius: 99px; overflow: hidden; margin-top: var(--s-3); }
.strip-progress i { display: block; height: 100%; width: 16.6%; background: var(--lime); transition: width 0.3s ease; }
.strip-hint { color: var(--mist); font-size: 0.95rem; margin-top: var(--s-3); }
.three-col { display: grid; gap: var(--s-6) var(--gap); }
@media (min-width: 860px) { .three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.col-block { border-top: 2px solid var(--ink); padding-top: var(--s-4); }
.col-block h3 { margin-bottom: var(--s-3); }
.col-block ul { list-style: none; display: grid; gap: 0.6rem; margin-top: var(--s-3); }
.col-block li { padding-left: 1.4rem; position: relative; }
.col-block li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.7rem; height: 2px; background: var(--ink); }

/* ---------- forms (shared) ---------- */
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field > label, .field > .lab, legend.lab { font-weight: 800; letter-spacing: -0.01em; }
.hint { color: var(--muted); font-size: 0.93rem; line-height: 1.4; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; background: var(--white); color: var(--ink);
  border: 2px solid var(--edge); border-radius: 12px; box-shadow: 0 1px 0 rgba(14, 21, 18, 0.06) inset;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #55655C; opacity: 1; }
input[type="text"]:hover, input[type="email"]:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--alert); border-width: 3px; }
.err { color: var(--alert); font-weight: 700; display: none; align-items: start; gap: 0.5rem; font-size: 0.95rem; line-height: 1.35; }
.err.show { display: flex; }
.err::before { content: "!"; flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--alert); color: var(--white); font-size: 0.8rem; font-weight: 900; display: grid; place-items: center; margin-top: 0.05rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--s-2); }
.choice {
  display: flex; align-items: center; gap: 0.7rem; min-height: 48px; padding: 0.55rem 0.9rem; background: var(--white);
  border: 2px solid var(--edge); border-radius: 12px; cursor: pointer; font-weight: 700; line-height: 1.25;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.choice:hover { border-color: var(--ink); }
.choice input { width: 1.4rem; height: 1.4rem; flex: none; accent-color: var(--fir); margin: 0; }
.choice:has(input:checked) { background: var(--lime); border-color: var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.status { min-height: 1.5em; font-weight: 700; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: var(--edge); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--edge); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 32px; height: 32px; border-radius: 50%; margin-top: -12px; background: var(--lime); border: 4px solid var(--fir); box-shadow: 0 2px 6px rgba(14, 21, 18, 0.35); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--lime); border: 4px solid var(--fir); box-shadow: 0 2px 6px rgba(14, 21, 18, 0.35); }
input[type="range"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 99px; }

/* ---------- studio lab ---------- */
.lab-hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.lab-hero h1 { margin-top: var(--s-5); }
.lab-bg { background-image: radial-gradient(circle at 1px 1px, rgba(14, 21, 18, 0.12) 1px, transparent 1.4px); background-size: 22px 22px; }
.bench { align-items: start; padding-bottom: clamp(3rem, 6vw, 6rem); }
.panel { background: var(--white); border: 1px solid var(--hair); border-radius: 24px; padding: clamp(1.1rem, 3vw, 2rem); box-shadow: var(--shadow-2); }
.panel + .panel { margin-top: var(--gap); }
.panel > h2, .panel > .panel-title { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.3rem); letter-spacing: -0.045em; margin-bottom: var(--s-4); display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.panel-title .n { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--muted); font-size: 0.9em; letter-spacing: -0.02em; }
@media (min-width: 1000px) { .lab-controls { position: sticky; top: 5.5rem; } }
.slider-block { padding-top: var(--s-4); }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.slider-top output { font-family: var(--f-mono); font-weight: 700; font-size: 0.95rem; background: var(--fog-2); border-radius: 8px; padding: 0.1rem 0.5rem; }
.slider-ends { display: flex; justify-content: space-between; font-weight: 800; font-size: 0.9rem; }
.slider-ends span:last-child { text-align: right; }
.sample-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.sample-chips .chip { min-height: 44px; font-size: 0.95rem; }
.lab-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.proof {
  position: relative; border-radius: 16px; background: var(--white); border: 1px solid var(--hair); padding: clamp(1rem, 3vw, 2.2rem); min-height: 14rem;
  display: grid; place-items: center;
}
.proof::before, .proof::after, .proof .reg-b, .proof .reg-c { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink); pointer-events: none; }
.proof::before { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; }
.proof::after { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; }
.proof .reg-b { bottom: 10px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; }
.proof .reg-c { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }
.proof svg { width: 100%; height: auto; max-height: 24rem; }
.variants { display: grid; gap: var(--gap); margin-top: var(--gap); }
@media (min-width: 640px) { .variants { grid-template-columns: 1fr 1fr; } }
.variant { border-radius: 14px; overflow: hidden; border: 1px solid var(--hair); }
.variant svg { width: 100%; height: auto; }
.variant figcaption { padding: 0.5rem 0.8rem; font-size: 0.88rem; font-weight: 700; background: var(--white); color: var(--muted); border-top: 1px solid var(--hair); }
.empty {
  display: grid; justify-items: center; text-align: center; gap: var(--s-3); max-width: 26rem; padding: var(--s-5);
  border: 2px dashed var(--edge); border-radius: 18px; background: var(--fog);
}
.empty svg { width: 5rem; height: 5rem; color: var(--fir); }
.empty strong { font-family: var(--f-display); font-weight: 900; letter-spacing: -0.04em; font-size: 1.5rem; line-height: 1.1; }
.empty p { color: var(--muted); }
.note-line { display: flex; gap: 0.6rem; align-items: start; background: var(--fog); border-left: 4px solid var(--fir); padding: 0.7rem 0.9rem; border-radius: 0 10px 10px 0; font-size: 0.95rem; margin-top: var(--s-3); }
.palette { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
.swatch { border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.swatch-top { min-height: 7.5rem; padding: 0.8rem 0.9rem; display: flex; flex-direction: column; justify-content: space-between; border-bottom: 1px solid rgba(14, 21, 18, 0.16); }
.swatch-top b { font-family: var(--f-display); font-weight: 900; letter-spacing: -0.04em; font-size: 1.35rem; line-height: 1; }
.swatch-top code { font-family: var(--f-mono); font-size: 0.9rem; font-weight: 700; }
.swatch-body { padding: 0.8rem 0.9rem 0.95rem; display: grid; gap: 0.45rem; font-size: 0.88rem; line-height: 1.35; color: var(--ink); }
.swatch-body p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.15rem 0.5rem; }
.swatch-body .r { font-family: var(--f-mono); font-weight: 700; }
.grade { display: inline-block; padding: 0 0.45rem; border: 1.5px solid var(--ink); border-radius: 6px; font-weight: 800; font-size: 0.78rem; line-height: 1.5; background: var(--white); }
.grade.pass { background: var(--lime); }
.grade.fail { background: var(--white); border-style: dashed; color: var(--alert); }
.tokens { background: var(--ink); color: var(--fog); border-radius: 14px; padding: 1rem 1.1rem; font-family: var(--f-mono); font-size: 0.88rem; line-height: 1.6; overflow-x: auto; white-space: pre; margin-top: var(--s-4); }
.type-card { border-radius: 18px; padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--hair); display: grid; gap: var(--s-3); }
.type-card .t-name { font-size: clamp(2rem, 1rem + 4vw, 4.2rem); line-height: 1; overflow-wrap: anywhere; }
.type-card .t-sub { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); line-height: 1.3; }
.type-card .t-body { max-width: 34em; }
.type-card .t-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0.5rem 1.4rem; border-radius: 999px; font-weight: 700; justify-self: start; }
.type-card .t-link { text-decoration: underline; text-underline-offset: 0.2em; font-weight: 700; }
.type-meta { display: grid; gap: var(--s-2); margin-top: var(--s-4); color: var(--muted); font-size: 0.93rem; }
.type-meta code { font-family: var(--f-mono); font-size: 0.86rem; color: var(--ink); overflow-wrap: anywhere; }
.howto { display: grid; gap: var(--s-6) var(--gap); }
@media (min-width: 900px) { .howto { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.howto ol, .howto ul { display: grid; gap: 0.7rem; padding-left: 1.2rem; }
.howto h3 { margin-bottom: var(--s-3); }
.edge-list { display: grid; gap: var(--s-3); list-style: none; }
.edge-list li { padding: var(--s-3) 0; border-top: 1px solid var(--mist); display: grid; gap: 0.25rem; }
.edge-list strong { font-weight: 900; letter-spacing: -0.02em; }

/* ---------- contact / brief ---------- */
.contact-hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4.5rem); position: relative; overflow: clip; }
.contact-hero h1 { margin-top: var(--s-5); }
.contact-hero .lede { margin-top: var(--s-5); }
.contact-hero .big-mail { display: inline-block; margin-top: var(--s-5); font-family: var(--f-display); font-weight: 900; letter-spacing: -0.05em; font-size: clamp(1.4rem, 0.3rem + 4.4vw, 3.4rem); line-height: 1; overflow-wrap: anywhere; }
.brief-layout { align-items: start; padding-block: clamp(2.5rem, 6vw, 5rem); }
.brief-form fieldset { margin-bottom: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--hair); }
.fs-body { display: grid; gap: var(--s-4); }
.brief-form legend { width: 100%; padding: 0; font-family: var(--f-display); font-weight: 900; letter-spacing: -0.05em; line-height: 1; font-size: clamp(1.8rem, 1rem + 2.4vw, 3rem); margin-bottom: var(--s-4); }
.brief-form legend .n { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--muted); margin-right: 0.6rem; letter-spacing: -0.02em; }
.two { display: grid; gap: var(--s-4) var(--gap); }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.progress-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); font-weight: 800; }
progress { -webkit-appearance: none; appearance: none; width: min(100%, 16rem); height: 12px; border: 2px solid var(--ink); border-radius: 99px; background: var(--white); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--white); }
progress::-webkit-progress-value { background: var(--fir); }
progress::-moz-progress-bar { background: var(--fir); }
@media (min-width: 900px) { .sheet-col { position: sticky; top: 5.5rem; } }
.sheet-wrap { background: var(--mist); border-radius: 24px; padding: clamp(0.9rem, 2vw, 1.5rem); box-shadow: var(--shadow-2); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-3); }
.sheet-head h2 { font-size: 1.5rem; letter-spacing: -0.04em; }
.sheet {
  position: relative; background: var(--white); color: var(--ink); border-radius: 6px; padding: 2.2rem 1.1rem 1.2rem;
  font-family: var(--f-mono); font-size: 0.86rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere;
  max-height: 34rem; overflow: auto; box-shadow: var(--shadow-1);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 1.37rem, rgba(14, 21, 18, 0.06) 1.37rem, rgba(14, 21, 18, 0.06) calc(1.37rem + 1px));
  background-attachment: local; background-position: 0 2.2rem;
}
.sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: radial-gradient(circle at 10px 0, var(--mist) 6px, transparent 6.5px) 0 0 / 20px 12px repeat-x; }
.sheet-empty { font-family: var(--f-body); white-space: normal; color: var(--muted); }
.sheet-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); justify-content: space-between; color: var(--ink); font-weight: 700; font-size: 0.9rem; margin-top: var(--s-3); }
.send-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.summary-err { display: none; background: var(--white); border: 3px solid var(--alert); border-radius: 14px; padding: var(--s-4); margin-bottom: var(--s-5); }
.summary-err.show { display: block; }
.summary-err h3 { color: var(--alert); margin-bottom: var(--s-2); font-size: 1.2rem; }
.summary-err ul { padding-left: 1.2rem; }
.summary-err a { color: var(--alert); font-weight: 700; }
.toast-line { margin-top: var(--s-3); font-weight: 700; }

/* ---------- reveal ---------- */
.js .reveal { transform: translateY(26px); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.in { transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 599px) {
  .index a { padding-inline: 0; }
  .brand-name { font-size: 1rem; }
  .brand svg { width: 2.1rem; height: 2.1rem; }
  .mini-swatches li { font-size: 0.6rem; }
  .hero h1 .line-block:nth-child(2) { padding-left: 0.5em; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .skip, .no-print, .btn, .menu-btn, .marquee-band, .cta { display: none !important; }
  body { background: #fff; color: #000; }
  .grain::before { display: none; }
  .brief-form, .contact-hero .lede, .lab-controls, .howto, .edge-section { display: none !important; }
  .brief-layout { padding: 0; }
  .sheet-col { grid-column: 1 / -1 !important; position: static; }
  .sheet-wrap, .panel { box-shadow: none; background: #fff; border: 1px solid #000; }
  .sheet { max-height: none; overflow: visible; box-shadow: none; }
  .bench > * { grid-column: 1 / -1 !important; }
  h1 { font-size: 2.2rem; }
  .swatch, .proof, .type-card, .variant { break-inside: avoid; }
}

/* ---------- reduced motion: everything static, final state shown ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
    animation-duration: 0s !important; transition-duration: 0s !important;
  }
  .js .reveal, .js .reveal.in { transform: none; }
  .badge .ring { animation: none; }
  .js .mq-track { animation: none; width: auto; flex-wrap: wrap; }
  .mq-row { overflow: visible; }
  .mq-set { flex-wrap: wrap; }
  .mq-set[data-clone] { display: none; }
  .mq-word > span { transform: none; will-change: auto; }
  .mq-toggle { display: none !important; }
  .step.is-active { transform: none; }
  .row-panel { transition: none; }
  .btn:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .mq-static-note { display: none; }
}
