/* ==========================================================================
   WebNCrafts / craft workbench
   Light theme only. Tokens first, then base, components and pages.
   ========================================================================== */

:root {
  color-scheme: light only;

  --paper: #EDEFF4;
  --paper-deep: #E3E6EE;
  --surface: #FFFFFF;
  --ink: #0F1222;
  --ink-2: #4A5372;          /* secondary text, 6.6:1 on paper */
  --ink-3: #8A91A8;          /* decorative only */
  --rule: rgba(15, 18, 34, .16);
  --rule-strong: rgba(15, 18, 34, .32);
  --grid: rgba(74, 83, 114, .09);
  --accent: #3A2BFF;
  --accent-deep: #2A1EE0;
  --accent-tint: #E6E4FF;

  --f-display: "Anybody", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1480px;
  --header-h: 72px;
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 1px 0 rgba(15, 18, 34, .04), 0 12px 32px -18px rgba(15, 18, 34, .28);

  --stitch-x: repeating-linear-gradient(90deg, var(--rule-strong) 0 7px, transparent 7px 12px);
}

/* Base --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute; 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: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 152px); }
.section--tight { padding-top: clamp(32px, 4vw, 56px); }
.muted { color: var(--ink-2); }

/* Type --------------------------------------------------------------------- */
.d-hero, .d-1, .d-2, .d-3, .d-quote {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .9;
  text-wrap: balance;
}
.d-hero { font-size: clamp(3.4rem, 12.4vw, 12.25rem); font-stretch: 100%; line-height: .84; letter-spacing: -.035em; }
.d-1 { font-size: clamp(2.9rem, 8.6vw, 8.25rem); font-stretch: 92%; }
.d-2 { font-size: clamp(2.3rem, 5.4vw, 5.1rem); font-stretch: 88%; font-weight: 750; }
.d-3 { font-size: clamp(1.7rem, 3vw, 2.75rem); font-stretch: 90%; font-weight: 700; line-height: 1.02; letter-spacing: -.015em; }
.d-quote { font-size: clamp(2rem, 4.8vw, 4.6rem); font-weight: 650; font-stretch: 84%; line-height: 1; }
.lead { font-size: clamp(1.15rem, 1.55vw, 1.4rem); line-height: 1.5; color: var(--ink); max-width: 40ch; }

.label {
  font: 500 .6875rem/1.4 var(--f-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: .6em;
}
.label__num { color: var(--ink); }
.label__num::after { content: "/"; margin-left: .6em; color: var(--ink-3); }
.label--light { color: rgba(255, 255, 255, .82); }

.code {
  font: 600 .6875rem/1 var(--f-mono);
  letter-spacing: .04em;
  display: inline-grid; place-items: center;
  min-width: 2.6em; height: 2.1em; padding: 0 .5em;
  border: 1px dashed var(--rule-strong);
  border-radius: 4px;
  color: var(--ink);
  background: var(--surface);
}
.code--lg { font-size: .8125rem; }
.code--paper { background: rgba(255, 255, 255, .92); border-style: solid; border-color: transparent; }

.tag { font: 500 .6875rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; display: inline-block; padding: .55em .8em; border: 1px solid var(--rule-strong); border-radius: 99px; color: var(--ink-2); }

.link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; text-decoration: none; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: color .2s, background-size .3s var(--ease);
  border: 0; cursor: pointer; font-size: inherit;
}
button.link { background-color: transparent; padding-inline: 0; }
.link:hover { color: var(--accent); }
.link .arw { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.link:hover .arw { transform: translateX(3px); }
.link--light { color: #fff; }
.link--light:hover { color: #fff; background-size: 0 1px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8em 1.4em .8em 1.5em;
  border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn .arw { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--ink:hover { --bg: var(--accent); --bd: var(--accent); }
.btn--accent { --bg: var(--accent); --bd: var(--accent); }
.btn--accent:hover { --bg: var(--ink); --bd: var(--ink); }
.btn--line { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--line:hover { --bg: var(--ink); --fg: #fff; }
.btn--paper { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--paper:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn--sm { min-height: 42px; padding: .6em 1.05em .6em 1.15em; font-size: .9375rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 239, 244, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  view-transition-name: site-header;
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--stitch-x); }
.site-header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }


.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-block; padding: 10px 12px; text-decoration: none;
  font-weight: 500; font-size: .96875rem; color: var(--ink);
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px;
  background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--accent); }

.nav__dd { position: relative; display: flex; align-items: center; }
.nav__dd .nav__link { padding-right: 4px; }
.nav__dd .nav__link::after { right: 4px; }
.nav__caret { width: 26px; height: 26px; display: grid; place-items: center; border: 0; background: none; border-radius: 6px; padding: 0; }
.nav__caret svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav__dd.is-open .nav__caret svg { transform: rotate(180deg); }

.dd {
  position: absolute; top: calc(100% + 14px); left: -140px; width: min(780px, 92vw);
  background: var(--surface); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(15, 18, 34, .35), 0 0 0 1px var(--rule);
  padding: 18px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
}
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.nav__dd.is-open .dd { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd__head, .dd__foot { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 12px; font-size: .875rem; }
.dd__foot { padding: 14px 8px 2px; color: var(--ink-2); border-top: 1px dashed var(--rule-strong); margin-top: 8px; }
.dd__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd__item { display: flex; gap: 14px; padding: 12px; border-radius: 8px; text-decoration: none; transition: background-color .2s; }
.dd__item:hover { background: var(--paper); }
.dd__item:hover .code { background: var(--accent); color: #fff; border-color: var(--accent); }
.dd__item .code { flex-shrink: 0; transition: .2s; }
.dd__text { display: grid; gap: 3px; }
.dd__name { font-weight: 600; }
.dd__desc { font-size: .8125rem; line-height: 1.4; color: var(--ink-2); }

.site-header__cta { flex-shrink: 0; }

.burger { display: none; width: 46px; height: 46px; border: 1.5px solid var(--ink); background: transparent; border-radius: 50%; margin-left: auto; position: relative; }
.burger__lines, .burger__lines::before { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.burger__lines { top: 18px; }
.burger__lines::before { content: ""; left: 0; right: 0; top: 7px; }
.burger[aria-expanded="true"] .burger__lines { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(-7px) rotate(-90deg); }

/* absolute, not fixed: the header's backdrop-filter is the containing block */
.mnav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); background: var(--paper); overflow-y: auto; padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 32px; }
.mnav__list { list-style: none; margin: 0; padding: 0; }
.mnav__list > li { border-bottom: 1px dashed var(--rule-strong); }
.mnav__list > li > a, .mnav__svc summary {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0;
  font: 750 2.1rem/1 var(--f-display); font-stretch: 90%; letter-spacing: -.02em; text-decoration: none; list-style: none; cursor: pointer;
}
.mnav__svc summary::-webkit-details-marker { display: none; }
.mnav__svc[open] .mnav__plus { transform: rotate(45deg); }
.mnav__plus { transition: transform .25s; font-weight: 400; }
.mnav__svc ul { list-style: none; padding: 0 0 16px; margin: 0; display: grid; gap: 2px; }
.mnav__svc ul a { display: flex; gap: 12px; align-items: center; padding: 9px 0; text-decoration: none; font-weight: 500; }
.mnav [aria-current="page"] { color: var(--accent); }
.mnav__foot { display: grid; gap: 18px; justify-items: start; margin-top: auto; }

/* Hero + cutting mat ------------------------------------------------------- */
.mat { position: relative; isolation: isolate; }
.mat::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
          mask-image: linear-gradient(#000 40%, transparent);
}
.mat::after { /* ruler ticks along the top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; z-index: -1;
  background:
    repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 64px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 8px) 0 0 / 100% 6px no-repeat;
  opacity: .55;
}
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 120px); }
.hero__top { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0 clamp(28px, 4vw, 56px); }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(28px, 4vw, 56px); align-items: end; }
.hero__intro { grid-column: 1 / span 6; display: grid; gap: 28px; align-content: start; }
.hero--page .d-1 { max-width: 15ch; }
.hero--legal .d-1 { margin-bottom: 20px; }
.hero--home .d-hero { margin-left: -.04em; }

.dimline {
  position: relative; margin-top: clamp(18px, 2.4vw, 32px); height: 14px;
  display: flex; align-items: center; justify-content: center; max-width: 1180px;
}
.dimline::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink-2); }
.dimline::after { content: ""; position: absolute; inset: 0; border-inline: 1px solid var(--ink-2); }
.dimline span { position: relative; background: var(--paper); padding: 0 12px; font: 500 .6875rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }

.plate {
  grid-column: 8 / -1; position: relative; background: var(--surface); border-radius: var(--radius);
  padding: 22px 26px 18px; box-shadow: var(--shadow); border: 1px solid var(--rule);
}
.plate__head { display: flex; justify-content: space-between; padding: 0 0 12px 14px; border-bottom: 1.5px solid var(--ink); }
.plate__rows div { display: flex; align-items: baseline; gap: 10px; padding: 13px 0; border-bottom: 1px dashed var(--rule-strong); }
.plate__rows div:last-child { border-bottom: 0; }
.plate__rows dt { font: 500 .75rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); white-space: nowrap; }
.plate__rows div::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--ink-3); transform: translateY(-4px); }
.plate__rows dd { order: 2; font: 700 1.125rem/1.2 var(--f-display); font-stretch: 95%; text-align: right; }
.rivet { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--paper-deep); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.rivet--tl { top: 9px; left: 9px; } .rivet--tr { top: 9px; right: 9px; }
.rivet--bl { bottom: 9px; left: 9px; } .rivet--br { bottom: 9px; right: 9px; }


/* Ticker ------------------------------------------------------------------- */
.ticker { position: relative; overflow: hidden; padding: 22px 0; background: var(--surface); }
.ticker::before, .ticker::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--stitch-x); }
.ticker::before { top: 6px; } .ticker::after { bottom: 6px; }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.has-gsap .ticker__track { animation: none; }
.ticker__list { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding-right: clamp(20px, 3vw, 40px); list-style: none; margin: 0; }
.ticker__list li { font: 700 clamp(1.7rem, 3.4vw, 3rem)/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.ticker__list .is-wide { font-stretch: 130%; }
.ticker__list .is-narrow { font-stretch: 70%; font-weight: 500; }
.ticker__sep { color: var(--accent); font-size: clamp(1rem, 1.8vw, 1.5rem) !important; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Section heads ------------------------------------------------------------ */
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px 24px; align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head > .label { grid-column: 1 / -1; }
.sec-head > h2 { grid-column: 1 / span 8; }
.sec-head__aside { grid-column: 9 / -1; color: var(--ink-2); max-width: 36ch; justify-self: end; }
a.sec-head__aside { color: var(--ink); }

/* About + quick form ------------------------------------------------------- */
.about { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; align-items: start; }
.about__text { grid-column: 1 / span 6; display: grid; gap: 22px; justify-items: start; }
.about__text p:not(.label) { color: var(--ink-2); max-width: 52ch; }
.about__text h2 { margin-bottom: 8px; }
.qf-wrap { grid-column: 8 / -1; position: relative; }

.ticket { position: relative; background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--rule); }
.ticket__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1.5px solid var(--ink); }
.ticket__title { font: 750 1.6rem/1.05 var(--f-display); font-stretch: 92%; letter-spacing: -.015em; }
.ticket__perf, .brief__perf { position: relative; height: 1px; margin: 26px -28px; background: var(--stitch-x); }
.ticket__perf::before, .ticket__perf::after, .brief__perf::before, .brief__perf::after {
  content: ""; position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule);
}
.ticket__perf::before, .brief__perf::before { left: -11px; clip-path: inset(0 0 0 50%); }
.ticket__perf::after, .brief__perf::after { right: -11px; clip-path: inset(0 50% 0 0); }
.qf__foot { display: grid; gap: 14px; justify-items: start; }
.qf .field + .field { margin-top: 18px; }

/* Fields */
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--rule-strong); border-radius: 8px; background: var(--paper);
  padding: 13px 14px; font-size: 1rem; line-height: 1.4; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-2); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-tint); }
.field [aria-invalid="true"] { border-color: #C42B4A; background: #FFF6F8; }
.field__err, .brief__group > .field__err { font-size: .8125rem; color: #B0213E; font-weight: 500; min-height: 0; }
.field__err:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; padding-right: 40px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.req { color: var(--accent); }
.opt { font-weight: 400; color: var(--ink-2); font-size: .875em; }
.form__note { font-size: .875rem; color: var(--ink-2); }

.form-success { text-align: left; display: grid; gap: 14px; justify-items: start; overflow: hidden; }
.form-success:focus { outline: none; }
.form-success p { color: var(--ink-2); }
.form-success strong { color: var(--ink); }

.stamp {
  position: absolute; top: 22px; right: 22px; transform: rotate(-8deg);
  font: 700 .875rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); border: 2px solid currentColor; border-radius: 6px; padding: 9px 12px;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3.5px currentColor;
}
.form-success .stamp { position: static; justify-self: end; margin-bottom: -6px; animation: stamp .5s var(--ease) both; }
@keyframes stamp { from { transform: rotate(-8deg) scale(1.6); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }

/* Services index ----------------------------------------------------------- */
.svc-index { border-top: 1.5px solid var(--ink); }
.svc-row { border-bottom: 1px dashed var(--rule-strong); }
.svc-row__link {
  position: relative;
  display: grid; grid-template-columns: 76px 1fr auto 56px; align-items: center; gap: 24px;
  padding: clamp(18px, 2.2vw, 30px) 0; text-decoration: none;
}
.svc-row__link::before { /* accent marker */
  content: ""; position: absolute; left: -16px; top: 22%; bottom: 22%; width: 3px; background: var(--accent);
  transform: scaleY(0); transition: transform .35s var(--ease);
}
.svc-row__main { display: grid; gap: 6px; min-width: 0; }
.svc-row__name {
  font: 750 clamp(1.9rem, 4.4vw, 4.25rem)/.95 var(--f-display); letter-spacing: -.02em;
  font-stretch: 78%; transition: color .35s, transform .5s var(--ease);
  overflow-wrap: anywhere;
}
.svc-row__desc { color: var(--ink-2); max-width: 56ch; }
.svc-row__price { display: grid; justify-items: end; gap: 2px; font: 700 1.25rem/1.1 var(--f-display); font-stretch: 100%; white-space: nowrap; }
.svc-row__go { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: .3s var(--ease); }
.svc-row__go .arw { width: 20px; height: 20px; }
.svc-row__code { transition: .3s; }

.svc-row__link:hover::before, .svc-row__link:focus-visible::before { transform: scaleY(1); }
.svc-row__link:hover .svc-row__go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }
.svc-row__link:hover .svc-row__code { background: var(--ink); color: #fff; border-color: var(--ink); }
.svc-row__link:focus-visible { outline-offset: 6px; }

/* Process ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps__line { position: absolute; left: 0; right: 0; top: 7px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); transform-origin: left; transform: scaleX(var(--p, 1)); }
.step { position: relative; padding: 44px 28px 0 0; display: grid; gap: 14px; align-content: start; justify-items: start; }
.step__node { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.step:last-child .step__node { background: var(--accent); border-color: var(--accent); }
.step__num { font: 300 clamp(3rem, 5vw, 4.75rem)/.85 var(--f-display); font-stretch: 60%; color: var(--ink-3); letter-spacing: -.02em; }
.step__name { font: 750 1.6rem/1.05 var(--f-display); font-stretch: 100%; letter-spacing: -.015em; }
.step p { color: var(--ink-2); max-width: 32ch; }

/* Work grid ---------------------------------------------------------------- */
.work__bar { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px dashed var(--rule-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--rule-strong); border-radius: 99px; background: transparent;
  font-weight: 500; font-size: .9375rem; transition: .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip__n { font: 500 .625rem/1 var(--f-mono); opacity: .7; }

.work__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 3.5vw, 48px) clamp(16px, 2vw, 28px); }
.tile { grid-column: span 4; }
.tile.s-7 { grid-column: span 7; } .tile.s-5 { grid-column: span 5; } .tile.s-4 { grid-column: span 4; }
.tile.s-8 { grid-column: span 8; } .tile.s-6 { grid-column: span 6; }
.tile.s-5.push { margin-top: clamp(40px, 8vw, 120px); }
.tile[hidden] { display: none; }
.tile__media { position: relative; overflow: hidden; border-radius: 6px; background: var(--paper-deep); aspect-ratio: 4 / 3; }
.tile.s-7 .tile__media, .tile.s-8 .tile__media { aspect-ratio: 16 / 11; }
.tile.s-5 .tile__media { aspect-ratio: 4 / 4.4; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.045); }
.tile__codes { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 6px; transform: translateY(8px); opacity: 0; transition: .4s var(--ease); }
.tile:hover .tile__codes { transform: none; opacity: 1; }
.crop { position: absolute; width: 22px; height: 22px; opacity: 0; transition: .4s var(--ease); }
.crop--tl { top: 12px; left: 12px; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); transform: translate(6px, 6px); }
.crop--br { bottom: 12px; right: 12px; border-bottom: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: translate(-6px, -6px); }
.tile:hover .crop { opacity: 1; transform: none; }
.tile__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.tile__name { font: 700 1.35rem/1.1 var(--f-display); font-stretch: 95%; letter-spacing: -.01em; }
.tile__note { color: var(--ink-2); font-size: .9375rem; margin-top: 4px; }
.tile__note span { color: var(--ink); font-weight: 600; }
.tile.is-entering { animation: tileIn .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(18px); } }
.work__empty { padding: 48px 0; color: var(--ink-2); }

/* Belief quote ------------------------------------------------------------- */
.belief { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; border-top: 1.5px solid var(--ink); padding-top: 28px; margin-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(72px, 10vw, 152px); }
.belief__side { grid-column: 1 / span 3; display: grid; align-content: start; gap: 8px; }
.belief__mark { font: 800 9rem/.7 var(--f-display); font-stretch: 150%; color: var(--accent); margin-top: 28px; }
.belief__body { grid-column: 4 / -1; display: grid; gap: 28px; }
.belief__body .d-quote { max-width: 22ch; text-wrap: pretty; }

/* Industries hang tags ----------------------------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 18px 14px; }
.hangtag {
  --notch: 22px;
  position: relative; display: grid; gap: 6px; min-width: 210px; padding: 18px 22px 18px 50px;
  background: var(--surface); text-decoration: none; border-radius: 0 8px 8px 0;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)), 0 var(--notch));
  transform-origin: 12px 50%; transition: transform .45s var(--ease), background-color .25s, color .25s;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.hangtag::after { content: ""; position: absolute; inset: 6px 6px 6px 26px; border: 1px dashed var(--rule-strong); border-radius: 0 4px 4px 0; pointer-events: none; }
.hangtag__hole { position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.hangtag__no { font: 500 .625rem/1 var(--f-mono); letter-spacing: .06em; color: var(--ink-2); }
.hangtag__name { font: 750 1.75rem/1 var(--f-display); font-stretch: 85%; letter-spacing: -.02em; }
.hangtag__n { display: inline-flex; gap: 6px; align-items: center; font-size: .8125rem; color: var(--ink-2); }
.hangtag__n .arw { width: 14px; height: 14px; }
.hangtag:hover, .hangtag:focus-visible { transform: rotate(-3deg); background: var(--ink); color: #fff; }
.hangtag:hover .hangtag__no, .hangtag:hover .hangtag__n { color: rgba(255, 255, 255, .75); }
.hangtag:hover::after { border-color: rgba(255, 255, 255, .35); }

/* CTA band ----------------------------------------------------------------- */
.cta-band { padding-bottom: clamp(56px, 8vw, 112px); }
.cta-band__in {
  position: relative; background: var(--accent); color: #fff; border-radius: 16px;
  padding: clamp(36px, 6vw, 88px) clamp(24px, 6vw, 88px); overflow: hidden; isolation: isolate;
}
.cta-band__in::before { content: ""; position: absolute; inset: 14px; border: 1.5px dashed rgba(255, 255, 255, .55); border-radius: 8px; pointer-events: none; }
.cta-band__in::after { /* faint grid like the hero mat */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.cta-band__title { font: 800 clamp(2.6rem, 8vw, 8rem)/.88 var(--f-display); letter-spacing: -.03em; margin: 22px 0 clamp(28px, 4vw, 48px); max-width: 13ch; }
.cta-band__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px 24px; align-items: end; }
.cta-band__row p { grid-column: 1 / span 6; font-size: 1.125rem; color: rgba(255, 255, 255, .92); max-width: 46ch; }
.cta-band__actions { grid-column: 8 / -1; display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; justify-content: flex-end; }
.cta-band :focus-visible { outline-color: #fff; }

/* Footer ------------------------------------------------------------------- */
.site-footer { position: relative; padding-top: clamp(56px, 7vw, 96px); background: var(--paper-deep); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--stitch-x); }
.foot-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; }
.foot-brand { grid-column: 1 / span 5; display: grid; gap: 20px; justify-items: start; }
.foot-brand p { color: var(--ink-2); max-width: 38ch; }
.foot-col { grid-column: span 2; display: grid; gap: 16px; align-content: start; }
.foot-col:last-child { grid-column: span 3; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-col a { text-decoration: none; transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-col li { font-size: .9375rem; }

.foot-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 22px; font-size: .875rem; color: var(--ink-2); position: relative; }
.foot-bar::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--stitch-x); }
.foot-bar ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.foot-bar a { text-decoration: none; }
.foot-bar a:hover { color: var(--accent); }

/* Services overview -------------------------------------------------------- */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.notes li { display: grid; gap: 12px; align-content: start; padding: 28px 28px 32px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--rule); }
.notes__n { font: 800 2.6rem/1 var(--f-display); font-stretch: 140%; color: var(--accent); }
.notes h3 { font: 700 1.4rem/1.1 var(--f-display); }
.notes p { color: var(--ink-2); }

/* Service detail ----------------------------------------------------------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 10px 0 0; margin: 0 0 clamp(28px, 4vw, 56px); font: 500 .6875rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); }

.svc-hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; align-items: center; }
.svc-hero__text { grid-column: 1 / span 7; display: grid; gap: 26px; justify-items: start; }
.svc-hero__text .d-1 { font-size: clamp(2.7rem, 6.6vw, 6.6rem); max-width: 12ch; }
.svc-hero__text .label .code { margin-right: 4px; }
.board { grid-column: 8 / -1; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--rule); box-shadow: var(--shadow); padding: 14px 14px 10px; }
.board__head { display: flex; justify-content: space-between; padding: 0 4px 10px; border-bottom: 1px dashed var(--rule-strong); margin-bottom: 8px; }
.board .il { width: 100%; height: auto; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px; border-radius: 4px; }

/* illustration tokens */
.il-ink { stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.il-ink.il-fill, .il-ink .il-fill, .il-fill { fill: #fff; }
.il-thin { stroke-width: 1.2; opacity: .6; }
.il-solid, .il-ink .il-solid { fill: var(--ink); stroke: none; }
.il-solid-g rect { fill: var(--paper-deep); stroke: var(--ink); stroke-width: 1.5; }
.il-dash { stroke: var(--ink-2); stroke-width: 1.2; stroke-dasharray: 5 5; fill: none; }
.il-dim { stroke: var(--ink-2); stroke-width: 1.2; }
.il-acc, .il-ink .il-acc { fill: var(--accent); }
.il-acc-s { stroke: var(--accent); }
.il-paper { fill: var(--paper); }
.il-glass { fill: var(--accent-tint); fill-opacity: .55; stroke: none; }
.il-label, .il-tag, .il-code { font: 500 11px var(--f-mono); fill: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; }
.il-code { text-transform: none; fill: var(--ink); font-size: 12px; }
.il-tag { font-size: 10px; }
.il-num { font: 700 20px var(--f-display); fill: var(--ink); }
.il-price { font: 800 22px var(--f-display); fill: #fff; }
.il-btn { font: 600 11px var(--f-body); fill: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .js .board .draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
  .js .board.is-in .draw { animation: draw 1.6s var(--ease) .2s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.included { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; }
.included__head { grid-column: 1 / span 4; display: grid; gap: 18px; align-content: start; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.inc-list { grid-column: 6 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1.5px solid var(--ink); }
.inc-list li { display: grid; gap: 10px; align-content: start; padding: 26px 0 30px; border-bottom: 1px dashed var(--rule-strong); }
.inc-list__n { font: 500 .6875rem/1 var(--f-mono); color: var(--accent); }
.inc-list h3 { font: 700 1.35rem/1.15 var(--f-display); font-stretch: 95%; letter-spacing: -.01em; }
.inc-list p { color: var(--ink-2); font-size: 1rem; }

.spec-faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 24px; align-items: start; padding-top: 0; }
.spec { grid-column: 1 / span 5; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 4px; }
.spec__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1.5px solid var(--ink); }
.spec__title { font: 800 1.5rem/1 var(--f-display); font-stretch: 120%; letter-spacing: -.01em; }
.spec__rows div { display: grid; grid-template-columns: 38% 1fr; border-bottom: 1px solid var(--rule); }
.spec__rows dt { padding: 14px 20px; font: 500 .6875rem/1.5 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); border-right: 1px solid var(--rule); }
.spec__rows dd { padding: 12px 20px; font-weight: 600; }
.spec__rows .is-key dd { font: 800 1.6rem/1.1 var(--f-display); font-stretch: 110%; color: var(--accent); }
.spec__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: var(--paper); }
.spec__sign { font: 500 1.05rem/1 var(--f-display); font-stretch: 60%; font-style: italic; border-bottom: 1px solid var(--ink-2); padding: 0 6px 4px; }
.faq { grid-column: 7 / -1; display: grid; gap: 18px; }
.faq__list { margin-top: 18px; border-top: 1.5px solid var(--ink); }
.acc { border-bottom: 1px dashed var(--rule-strong); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc__q { font: 700 1.25rem/1.25 var(--f-display); font-stretch: 95%; transition: color .2s; }
.acc summary:hover .acc__q { color: var(--accent); }
.acc__icon { position: relative; width: 32px; height: 32px; flex-shrink: 0; border: 1.5px solid var(--ink); border-radius: 50%; transition: .3s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] .acc__icon { background: var(--ink); color: #fff; }
.acc[open] .acc__icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc__a { padding: 0 56px 24px 0; color: var(--ink-2); }
.acc::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.acc[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

.pairs .sec-head { margin-bottom: 32px; }
.pairs__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pair { display: grid; gap: 12px; align-content: start; height: 100%; padding: 24px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--rule); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; }
.pair__name { font: 750 1.75rem/1 var(--f-display); font-stretch: 85%; letter-spacing: -.015em; transition: color .3s; margin-top: 8px; }
.pair__desc { color: var(--ink-2); }
.pair__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--rule-strong); }
.pair__foot .arw { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.pair .code { justify-self: start; }
.pair:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pair:hover .pair__name { color: var(--accent); }
.pair:hover .pair__foot .arw { transform: translateX(4px); }

/* Studio ------------------------------------------------------------------- */
.story { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; padding-top: 0; }
.story__side { grid-column: 1 / span 5; display: grid; gap: 22px; align-content: start; }
.story__body { grid-column: 7 / -1; }
.prose { display: grid; gap: 1.1em; }
.prose p:not(.lead):not(.label) { color: var(--ink-2); max-width: 62ch; }

.rules__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rule { position: relative; display: grid; gap: 16px; align-content: start; padding: 40px 28px 32px; background: var(--surface); border-radius: 4px; box-shadow: var(--shadow); }
.rule:nth-child(1) { transform: rotate(-1.2deg); }
.rule:nth-child(2) { transform: rotate(.8deg) translateY(24px); }
.rule:nth-child(3) { transform: rotate(-.5deg); }
.rule__pin { position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 2px 0 rgba(15,18,34,.25), inset -2px -2px 0 rgba(0,0,0,.18); }
.rule:nth-child(2) .rule__pin { background: var(--ink); }
.rule:nth-child(3) .rule__pin { background: var(--ink-2); }
.rule__title { font: 800 clamp(1.7rem, 2.6vw, 2.4rem)/.98 var(--f-display); font-stretch: 85%; letter-spacing: -.02em; }
.rule p { color: var(--ink-2); }

.roles { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--ink); }
.role { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 32px 32px 32px 0; border-bottom: 1px dashed var(--rule-strong); }
.role:nth-child(odd) { border-right: 1px dashed var(--rule-strong); }
.role:nth-child(even) { padding-left: 32px; }
.role__code { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; border: 1.5px dashed var(--ink); font: 800 1.25rem/1 var(--f-display); font-stretch: 130%; transition: .3s; }
.role:hover .role__code { background: var(--accent); color: #fff; border-color: var(--accent); border-style: solid; }
.role__name { font: 750 1.6rem/1.05 var(--f-display); font-stretch: 92%; margin-bottom: 8px; }
.role p { color: var(--ink-2); max-width: 46ch; }

/* Packages ----------------------------------------------------------------- */
.tabs__bar { position: sticky; top: var(--header-h); z-index: 5; background: var(--paper); padding: 12px 0; margin-bottom: 32px; }
.tabs__bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--stitch-x); }
.tabs__list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.tabs__list::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; min-height: 44px; padding: 0 18px; border: 1.5px solid transparent; border-radius: 99px; background: none; font-weight: 600; color: var(--ink-2); transition: .2s; }
.tab:hover { color: var(--ink); border-color: var(--rule-strong); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs__panel:focus-visible { outline-offset: 8px; }
.tabs__panel.is-entering .wo { animation: tileIn .55s var(--ease) both; }
.tabs__panel.is-entering .wo:nth-child(2) { animation-delay: .07s; }
.tabs__panel.is-entering .wo:nth-child(3) { animation-delay: .14s; }
.pk__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }

.wo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; padding-top: 16px; }
.wo { position: relative; background: var(--surface); border-radius: 12px; border: 1px solid var(--rule); display: grid; overflow: hidden; }
.wo--featured { border: 2px solid var(--accent); transform: translateY(-14px); box-shadow: 0 30px 50px -30px rgba(58, 43, 255, .45); overflow: visible; }
.wo--featured .stamp { top: -14px; right: 18px; z-index: 2; background: #fff; }
.stamp--sm { font-size: .6875rem; padding: 7px 10px; }
.wo__top { padding: 26px 26px 22px; display: grid; gap: 12px; }
.wo__row { display: flex; justify-content: space-between; gap: 12px; }
.wo__name { font: 800 1.9rem/1 var(--f-display); font-stretch: 90%; letter-spacing: -.02em; margin-top: 8px; }
.wo__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wo__amount { font: 850 clamp(3rem, 4.6vw, 4.2rem)/.9 var(--f-display); font-stretch: 112%; letter-spacing: -.04em; }
.wo--featured .wo__amount { color: var(--accent); }
.wo__unit { font: 500 .6875rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.wo__fit { color: var(--ink-2); font-size: .9875rem; min-height: 3em; }
.wo__perf { position: relative; height: 1px; margin: 0 22px; background: var(--stitch-x); }
.wo__perf::before, .wo__perf::after { content: ""; position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.wo__perf::before { left: -35px; }
.wo__perf::after { right: -35px; }
.wo--featured .wo__perf::before { left: -36px; box-shadow: inset 0 0 0 2px var(--accent); clip-path: inset(0 0 0 50%); }
.wo--featured .wo__perf::after { right: -36px; box-shadow: inset 0 0 0 2px var(--accent); clip-path: inset(0 50% 0 0); }
.wo__stub { padding: 22px 26px 26px; display: grid; gap: 24px; }
.wo__list { display: grid; gap: 10px; }
.wo__list li { position: relative; padding-left: 26px; font-size: .96875rem; }
.wo__list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 13px; height: 7px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.wo__cta { width: 100%; }
.wo__ask { display: block; margin-top: 12px; text-align: center; font-size: .875rem; color: var(--ink-2); }
.pk__alert { margin-bottom: 24px; padding: 14px 18px; border-left: 4px solid #B0213E; border-radius: 6px; background: #FFF6F8; color: #7A1A2E; font-weight: 500; }

.quote-strip { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px 24px; align-items: center; padding: clamp(24px, 3vw, 40px); border: 1.5px dashed var(--ink); border-radius: 12px; }
.quote-strip > div { grid-column: 1 / span 4; display: grid; gap: 10px; }
.quote-strip > p { grid-column: 5 / span 5; color: var(--ink-2); }
.quote-strip > .btn { grid-column: 10 / -1; justify-self: end; }

/* Contact ------------------------------------------------------------------ */
.hero--contact { padding-bottom: clamp(24px, 3vw, 40px); }
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 24px; align-items: start; padding-bottom: clamp(72px, 10vw, 140px); }
.contact__info { grid-column: 1 / span 4; display: grid; gap: 40px; position: sticky; top: calc(var(--header-h) + 32px); }
.info { display: grid; border-top: 1.5px solid var(--ink); }
.info > div { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px dashed var(--rule-strong); }
.info a { text-decoration: none; font-weight: 600; }
.info a:hover { color: var(--accent); }
.info__big { font: 750 clamp(1.3rem, 1.9vw, 1.65rem)/1.1 var(--f-display) !important; font-stretch: 92% !important; overflow-wrap: anywhere; }
.next { display: grid; gap: 16px; }
.next ol { display: grid; gap: 14px; }
.next li { display: grid; grid-template-columns: 36px 1fr; color: var(--ink-2); }
.next li span { font: 500 .6875rem/1.9 var(--f-mono); color: var(--accent); }

.brief-wrap { grid-column: 6 / -1; position: relative; }
.brief { position: relative; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--rule); padding: clamp(22px, 3vw, 40px); }
.brief::before { /* stitched inner border */ content: ""; position: absolute; inset: 8px; border: 1px dashed var(--rule-strong); border-radius: 9px; pointer-events: none; }
.brief__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1.5px solid var(--ink); }
.brief__title { font: 800 clamp(2rem, 3.6vw, 3rem)/.95 var(--f-display); font-stretch: 95%; letter-spacing: -.025em; margin-top: 8px; }
.brief__meta { display: grid; grid-template-columns: repeat(3, auto); border: 1px solid var(--rule-strong); border-radius: 6px; }
.brief__meta div { padding: 8px 12px; display: grid; gap: 3px; }
.brief__meta div + div { border-left: 1px solid var(--rule-strong); }
.brief__meta dt { font: 500 .5625rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.brief__meta dd { font: 600 .75rem/1.3 var(--f-mono); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #E0A100; }
.brief__group { border: 0; margin: 0; padding: 28px 0 4px; min-width: 0; }
.brief__group + .brief__group { border-top: 1px dashed var(--rule-strong); margin-top: 22px; }
.brief__group legend { float: left; width: 100%; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 18px; font: 700 1.3rem/1.2 var(--f-display); font-stretch: 95%; }
.brief__group legend + * { clear: both; }
.brief__n { font: 500 .6875rem/1 var(--f-mono); color: var(--accent); }
.brief__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--rule-strong); border-radius: 99px; font-weight: 500; font-size: .9375rem; transition: .2s; background: var(--paper); }
.pick span::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--ink-2); border-radius: 4px; transition: .2s; flex-shrink: 0; }
.pick input[type="radio"] + span::before { border-radius: 50%; }
.pick:hover span { border-color: var(--ink); }
.pick input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pick input:checked + span::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2.5px var(--ink); }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.brief__group.is-invalid .pick span { border-color: #C42B4A; }
.brief__group > .field__err { margin-top: 12px; }
.brief__perf { margin: 32px calc(-1 * clamp(22px, 3vw, 40px)); }
.brief__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.brief__foot .form__note { max-width: 40ch; }
.brief--done { display: grid; gap: 18px; justify-items: start; padding-block: clamp(36px, 5vw, 64px); }
.brief--done[hidden] { display: none; }
.brief--done .stamp { font-size: 1.1rem; padding: 12px 16px; }
.brief--done > p:not(.label) { color: var(--ink-2); max-width: 52ch; }
.brief--done strong { color: var(--ink); }

/* Legal -------------------------------------------------------------------- */
.legal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; align-items: start; padding-bottom: clamp(72px, 10vw, 140px); }
.legal__toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 16px; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.legal__toc li a { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--rule); text-decoration: none; font-size: .9375rem; }
.legal__toc li a span { font: 500 .625rem/2.2 var(--f-mono); color: var(--ink-2); }
.legal__toc li a:hover, .legal__toc li a.is-active { color: var(--accent); }
.legal__other { font-size: .875rem; color: var(--ink-2); }
.legal__body { grid-column: 5 / span 7; gap: 0; }
.legal__body .lead { max-width: 54ch; margin-bottom: 40px; }
.legal__body section { padding: 32px 0; border-top: 1px dashed var(--rule-strong); display: grid; gap: 14px; }
.legal__body h2 { font: 750 1.7rem/1.1 var(--f-display); font-stretch: 92%; letter-spacing: -.015em; display: flex; gap: 14px; align-items: baseline; }
.legal__n { font: 500 .6875rem/1 var(--f-mono); color: var(--accent); }
.legal__body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); max-width: 62ch; }
.legal__body li::marker { color: var(--accent); }
.legal__body strong { color: var(--ink); }
.legal__contact { border-top: 1.5px solid var(--ink); padding-top: 24px; color: var(--ink-2); }

/* Reveal ------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.has-gsap) [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js:not(.has-gsap) [data-reveal].is-in { opacity: 1; transform: none; }
  .js:not(.has-gsap) .rule[data-reveal].is-in:nth-child(1) { transform: rotate(-1.2deg); }
  .js:not(.has-gsap) .rule[data-reveal].is-in:nth-child(2) { transform: rotate(.8deg) translateY(24px); }
  .js:not(.has-gsap) .rule[data-reveal].is-in:nth-child(3) { transform: rotate(-.5deg); }
}

/* Page transitions (cross-document view transitions) ----------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .28s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .45s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav__link { padding: 10px 9px; font-size: .9375rem; }
  .dd { left: -200px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col, .foot-col:last-child { grid-column: span 4; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .nav, .site-header__cta { display: none; }
  .burger { display: block; }
  .hero__intro { grid-column: 1 / span 12; }
  .plate { grid-column: 1 / span 12; max-width: 520px; }
  .about__text, .qf-wrap { grid-column: 1 / -1; }
  .qf-wrap { max-width: 620px; }
  .sec-head > h2 { grid-column: 1 / -1; }
  .sec-head__aside { grid-column: 1 / -1; justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps__line { display: none; }
  .step { border-top: 1.5px dashed var(--ink); padding-top: 36px; }
  .step__node { top: -8px; }
  .tile.s-7, .tile.s-5, .tile.s-4, .tile.s-8, .tile.s-6, .tile { grid-column: span 6; }
  .tile.s-5.push { margin-top: 0; }
  .tile__media, .tile.s-5 .tile__media, .tile.s-7 .tile__media, .tile.s-8 .tile__media { aspect-ratio: 4 / 3; }
  .belief__side { grid-column: 1 / -1; display: flex; justify-content: space-between; }
  .belief__mark { font-size: 5rem; margin: 0; }
  .belief__body { grid-column: 1 / -1; }
  .svc-hero__text, .board { grid-column: 1 / -1; }
  .board { max-width: 640px; }
  .included__head { grid-column: 1 / -1; position: static; }
  .inc-list { grid-column: 1 / -1; }
  .spec, .faq { grid-column: 1 / -1; }
  .spec { max-width: 640px; }
  .story__side, .story__body { grid-column: 1 / -1; }
  .contact__info { grid-column: 1 / -1; position: static; }
  .brief-wrap { grid-column: 1 / -1; }
  .legal__toc { grid-column: 1 / -1; position: static; }
  .legal__toc ol { columns: 2; column-gap: 24px; }
  .legal__body { grid-column: 1 / -1; }
  .cta-band__row p, .cta-band__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .quote-strip > div, .quote-strip > p { grid-column: 1 / -1; }
  .quote-strip > .btn { grid-column: 1 / -1; justify-self: start; }
  .wo-grid { grid-template-columns: 1fr; max-width: 560px; gap: 40px; }
  .wo--featured { transform: none; }
  .rules__list { grid-template-columns: 1fr; max-width: 620px; gap: 28px; }
  .rule:nth-child(n) { transform: none !important; }
  .notes { grid-template-columns: 1fr; max-width: 620px; }
  .pairs__list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .hide-sm { display: none; }
  .hero__top { padding-bottom: 24px; }
  .svc-row__link { grid-template-columns: 1fr auto; grid-template-areas: "code price" "main main"; gap: 14px 16px; }
  .svc-row__code { grid-area: code; justify-self: start; }
  .svc-row__main { grid-area: main; }
  .svc-row__price { grid-area: price; display: flex; align-items: baseline; gap: 6px; font-size: 1.05rem; }
  .svc-row__go { display: none; }
  .svc-row__link::before { left: -10px; }
  .steps { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .tile.s-7, .tile.s-5, .tile.s-4, .tile.s-8, .tile.s-6, .tile { grid-column: 1 / -1; }
  .tile__codes { opacity: 1; transform: none; }
  .work__bar { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); width: calc(100% + 2 * var(--gutter)); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .hangtag { min-width: 0; width: 100%; }
  .tags > li { flex: 1 1 calc(50% - 7px); }
  .hangtag__name { font-size: 1.4rem; }
  .ticket { padding: 22px; }
  .ticket__perf { margin-inline: -22px; }
  .ticket__head { flex-direction: column; gap: 6px; }
  .brief__cols { grid-template-columns: 1fr; }
  .brief__meta { grid-template-columns: 1.4fr 1.2fr 1fr; width: 100%; }
  .brief__meta div { padding: 8px; min-width: 0; }
  .brief__meta dd { font-size: .6875rem; white-space: normal; }
  .brief__foot .btn { width: 100%; }
  .roles { grid-template-columns: 1fr; }
  .role, .role:nth-child(even) { padding: 26px 0; border-right: 0 !important; grid-template-columns: 52px 1fr; gap: 18px; }
  .role__code { width: 52px; height: 52px; font-size: 1rem; }
  .pairs__list { grid-template-columns: 1fr; }
  .inc-list { grid-template-columns: 1fr; }
  .spec__rows div { grid-template-columns: 1fr; }
  .spec__rows dt { border-right: 0; padding-bottom: 0; }
  .spec__rows dd { padding-top: 4px; }
  .legal__toc ol { columns: 1; }
  .acc__a { padding-right: 0; }
  .cta-band__in::before { inset: 10px; }
  .cta-band__actions { flex-direction: column; align-items: flex-start; }
  .pk__meta { flex-direction: column; align-items: flex-start; }
  .tabs__bar { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .foot-col, .foot-col:last-child { grid-column: 1 / -1; }
  .foot-bar { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; width: auto; }
  .ticker__list { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .ticker__list[aria-hidden="true"] { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ==========================================================================
   Blueprint layer: drafting-sheet theme, scroll and pointer interactions.
   Everything that moves is driven by main.js and switched off for
   prefers-reduced-motion and coarse pointers where it would get in the way.
   ========================================================================== */
:root {
  --grid: rgba(58, 43, 255, .075);
  --grid-major: rgba(58, 43, 255, .12);
  --f-hand: "Caveat", "Comic Sans MS", cursive;
}

/* The sheet: fine + major grid across the whole page */
body {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 20px 20px, 20px 20px;
  background-position: -1px -1px;
}
.mat::before { display: none; }

/* Sheet frame: grid references, scroll ruler and progress (desktop) */
.sheet { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.sheet__edge, .sheet__ruler { position: absolute; display: none; font: 500 .5625rem/1 var(--f-mono); color: var(--ink-3); letter-spacing: .08em; }
.sheet__edge--top { left: 22px; right: 22px; bottom: 0; height: 18px; justify-content: space-around; align-items: center; border-top: 1px solid var(--rule); background: var(--paper); }
.sheet__edge--left { left: 0; top: var(--header-h); bottom: 18px; width: 18px; flex-direction: column; justify-content: space-around; align-items: center; border-right: 1px solid var(--rule); background: var(--paper); }
.sheet__ruler {
  right: 0; top: var(--header-h); bottom: 18px; width: 18px; border-left: 1px solid var(--rule); background:
    repeating-linear-gradient(var(--ink-3) 0 1px, transparent 1px 40px) right 0 top 0 / 9px 100% no-repeat,
    repeating-linear-gradient(var(--rule-strong) 0 1px, transparent 1px 8px) right 0 top 0 / 5px 100% no-repeat,
    var(--paper);
}
.sheet__mark { position: absolute; right: 0; top: calc(var(--sp, 0) * (100% - 2px)); width: 18px; height: 2px; background: var(--accent); }
.sheet__mark::before { content: ""; position: absolute; right: 17px; top: -4px; border: 5px solid transparent; border-right-color: var(--accent); border-left: 0; }
.sheet__y { position: absolute; right: 24px; top: calc(var(--sp, 0) * (100% - 2px) - 5px); white-space: nowrap; color: var(--accent); background: var(--paper); padding: 1px 4px; }
.sheet__progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(var(--sp, 0)); z-index: 60; }
@media (min-width: 1025px) {
  .sheet__edge { display: flex; }
  .sheet__ruler { display: block; }
  .sheet__progress { display: none; }
  body { padding-inline: 18px; }
  .site-header { margin-inline: -18px; }
}

/* Logo: concept-2 wordmark. Solid indigo N with its outline knocked out of register */
.logo { position: relative; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); flex-shrink: 0; padding: 6px 0; }
.logo__word { font: 650 1.28rem/1 var(--f-display); font-stretch: 140%; letter-spacing: -.01em; }
.logo__n, .foot-mark__word b, .badge b { position: relative; display: inline-block; color: var(--accent); font-weight: 800; }
.logo__n::before, .foot-mark__word b::before, .badge b::before {
  content: attr(data-n); position: absolute; inset: 0; color: transparent;
  -webkit-text-stroke: 1px var(--ink); transform: translate(.12em, -.08em); transition: transform .45s var(--ease);
}
.logo:hover .logo__n::before { transform: translate(-.1em, .06em); }
.logo__dim { position: absolute; left: 0; right: 0; bottom: -2px; height: 7px; border-inline: 1px solid var(--accent); opacity: 0; transition: opacity .3s; }
.logo__dim::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .45s var(--ease); }
.logo:hover .logo__dim { opacity: 1; }
.logo:hover .logo__dim::before { transform: scaleX(1); }

/* Header: hides on scroll down, returns on scroll up */
.site-header { transition: transform .45s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }

/* Display type leans extended, like the wordmark */
.d-hero { font-size: clamp(2.9rem, 10.2vw, 10.4rem); font-stretch: 122%; font-weight: 750; letter-spacing: -.04em; line-height: .88; }
.d-1 { font-stretch: 112%; font-size: clamp(2.5rem, 7.4vw, 7.4rem); }
.d-2 { font-stretch: 104%; }
.svc-hero__text .d-1 { font-size: clamp(2.4rem, 5.6vw, 5.6rem); }
.cta-band__title { font-stretch: 118%; }

/* Split headings: each word rises out of its own mask */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .02em .1em; margin: -.06em -.02em -.1em; }
.split-i { display: inline-block; will-change: transform; }

/* Highlighter stroke behind a word */
.hl { position: relative; z-index: 0; white-space: nowrap; }
.hl::after { content: ""; position: absolute; z-index: -1; left: -.04em; right: -.06em; bottom: .2em; height: .3em; background: var(--accent); opacity: .9; transform-origin: left; transform: scaleX(var(--hl, 1)) skewX(-12deg); }
.hl .split-w { overflow: visible; }

/* Hero */
.hero__meta { line-height: 1.7; align-items: flex-start; }
.hero__stage { position: relative; padding-block: clamp(10px, 2vw, 28px); }
.hero__constr { position: absolute; inset: -8% -2%; width: 104%; height: 116%; overflow: visible; pointer-events: none; z-index: -1; }
.constr-lines { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 6 6; opacity: .45; vector-effect: non-scaling-stroke; }
.constr-lines * { vector-effect: non-scaling-stroke; }
.hero--home .d-hero { max-width: 11ch; position: relative; }
.badge {
  position: absolute; right: 0; bottom: -18px; width: clamp(96px, 11vw, 150px); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--ink); text-decoration: none;
  box-shadow: 0 0 0 1px var(--rule-strong), var(--shadow); transition: transform .4s var(--ease);
}
.badge svg { position: absolute; inset: 6%; width: 88%; height: 88%; animation: spin 18s linear infinite; }
.badge text { font: 600 9.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; fill: var(--ink); }
.badge b { font: 800 clamp(1.8rem, 3vw, 2.6rem)/1 var(--f-display); font-stretch: 140%; }
.badge:hover { transform: scale(1.06) rotate(-6deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.dimline { gap: 0; justify-content: space-between; max-width: none; }
.dimline span { z-index: 1; }
.dimline span:first-child { color: var(--accent); font-weight: 600; margin-left: 10px; }
.dimline span:last-child { margin-right: 10px; }
.dimline::before { transform-origin: center; transform: scaleX(var(--d, 1)); }
.hero__legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(40px, 5vw, 64px); padding-top: 18px; border-top: 1px dashed var(--rule-strong); }
.hero__scale { margin-left: auto; }
.sw { display: inline-block; width: 14px; height: 10px; vertical-align: -1px; margin-right: 8px; }
.sw--solid { background: var(--accent); }
.sw--line { box-shadow: inset 0 0 0 1px var(--ink); }

/* Handwritten margin notes */
.note {
  position: absolute; z-index: 3; display: inline-flex; align-items: flex-start; gap: 4px;
  font: 600 clamp(1.25rem, 1.9vw, 1.8rem)/1 var(--f-hand); color: var(--accent); white-space: nowrap;
  transform: rotate(var(--r, -6deg)); pointer-events: none;
}
.note__arw { width: 52px; height: 36px; flex-shrink: 0; }
.note__arw path { stroke-dasharray: 120; stroke-dashoffset: var(--draw, 0); }
.note--hero { right: 18%; top: -6px; --r: -5deg; }
.note--hero .note__arw { order: 2; transform: scaleX(-1) rotate(10deg); margin-top: 14px; }
.sec-head { position: relative; }
.note--svc { right: 0; top: -12px; --r: 4deg; }
.note--svc .note__arw { order: 2; transform: rotate(60deg); margin-top: 18px; }
.cta-band__in .note--cta { color: #fff; right: clamp(24px, 6vw, 88px); top: clamp(30px, 5vw, 70px); --r: 8deg; }
.note--cta .note__arw { order: 2; transform: rotate(80deg); margin-top: 16px; }

/* Giant outline section numerals */
.sec-head[data-num]:not([data-num=""])::before {
  content: attr(data-num); position: absolute; right: 0; bottom: 100%; z-index: -1;
  font: 800 clamp(6rem, 16vw, 15rem)/.8 var(--f-display); font-stretch: 140%; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px var(--rule-strong); transform: translateY(var(--ny, 0px));
}

/* Ticker: dimension-line rails */
.ticker { background: var(--ink); color: var(--paper); }
.ticker::before, .ticker::after { background: repeating-linear-gradient(90deg, rgba(237, 239, 244, .35) 0 7px, transparent 7px 12px); }
.ticker__list li { font-stretch: 120% !important; font-weight: 750 !important; }
.ticker__list .is-narrow { color: transparent; -webkit-text-stroke: 1px var(--paper); }
.ticker__sep { color: var(--accent); }

/* Buttons: ink floods in from where the pointer entered */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; z-index: -1; left: var(--x, 50%); top: var(--y, 50%); width: 0; aspect-ratio: 1;
  border-radius: 50%; background: var(--flood, var(--accent)); transform: translate(-50%, -50%); transition: width .55s var(--ease);
}
.btn:hover::before { width: 260%; }
.btn--ink:hover { --bg: var(--ink); --bd: var(--accent); }
.btn--accent { --flood: var(--ink); }
.btn--accent:hover { --bg: var(--accent); }
.btn--line { --flood: var(--ink); }
.btn--line:hover { --bg: transparent; }
.btn--paper { --flood: var(--ink); }
.btn--paper:hover { --bg: #fff; }

/* Links: marching-ants underline instead of a solid one */
.link:hover { background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px) 0 100% / 18px 1.5px repeat-x; animation: ants .6s linear infinite; }
@keyframes ants { to { background-position: 18px 100%; } }

/* Services index: row floods indigo, drawing preview follows the pointer */
.svc-row__link { isolation: isolate; }
.svc-row__link::after { content: ""; position: absolute; z-index: -1; inset: 0 -16px; background: var(--accent); clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease); }
.svc-row__link:hover::after, .svc-row__link:focus-visible::after { clip-path: inset(0 0 0 0); }
.svc-row__link:hover, .svc-row__link:focus-visible { color: #fff; }
.svc-row__link:hover .svc-row__name { transform: translateX(14px); }
.svc-row__link:hover .svc-row__desc, .svc-row__link:hover .svc-row__price .label { color: rgba(255, 255, 255, .8); }
.svc-row__link:hover .svc-row__go { background: #fff; border-color: #fff; color: var(--accent); }
.svc-row__link:hover .svc-row__code { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.svc-row__link:hover::before { opacity: 0; }
.svc-row__link * { transition-property: color, transform, background-color, border-color; }
.peek {
  position: fixed; left: 0; top: 0; z-index: 70; width: 300px; padding: 10px; pointer-events: none;
  background: var(--surface); border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(15, 18, 34, .45), 0 0 0 1px var(--rule);
  opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg); transition: opacity .25s, transform .4s var(--ease);
}
.peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.peek .il { width: 100%; height: auto; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px; }

/* Process: nodes fill as the drawn line reaches them */
.step__node { transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.step.is-reached .step__node { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }
.step.is-reached .step__num { color: var(--accent); }

/* Work tiles: measured on hover, tilt toward the pointer */
.tile__media { transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s; will-change: transform; }
.tile:hover .tile__media { box-shadow: 0 30px 50px -30px rgba(15, 18, 34, .5); }
.tile__media img { will-change: transform; }
.tile__dim {
  position: absolute; left: 12px; right: 12px; top: 12px; height: 12px; display: flex; justify-content: center; align-items: center;
  font: 600 .625rem/1 var(--f-mono); letter-spacing: .06em; color: var(--accent); opacity: 0; transition: opacity .3s .1s;
}
.tile__dim::before { content: ""; position: absolute; left: 34px; right: 34px; top: 50%; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .5s var(--ease); }
.tile:hover .tile__dim { opacity: 1; }
.tile:hover .tile__dim::before { transform: scaleX(1); }
.tile__dim { text-shadow: 0 0 0 transparent; }
.tile__dim:not(:empty) { padding: 0 8px; }
.crop { border-color: var(--accent) !important; }

/* Belief quote: words light up as you scroll */
.bw { opacity: var(--o, 1); transition: opacity .2s; }

/* Footer: wordmark drawn as a blueprint, plus a drawing title block */
.foot-mark { position: relative; padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(10px, 2vw, 24px); user-select: none; overflow: hidden; }
.foot-mark__word { display: block; text-align: center; white-space: nowrap; font: 700 18vw/.9 var(--f-display); font-stretch: 140%; letter-spacing: -.03em; color: var(--ink); position: relative; z-index: 1; }
.foot-mark__word > * { display: inline-block; }
.foot-mark__word b::before { -webkit-text-stroke-width: 2px; }
.foot-mark__dim { position: relative; height: 14px; margin-bottom: clamp(14px, 2vw, 26px); border-inline: 1px solid var(--ink-2); display: flex; justify-content: center; }
.foot-mark__dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink-2); transform: scaleX(var(--d, 1)); }
.foot-mark__dim span { position: relative; background: var(--paper-deep); padding: 0 12px; font: 600 .6875rem/14px var(--f-mono); color: var(--accent); letter-spacing: .06em; }
.foot-mark__guide { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--accent); opacity: .5; font: 500 .5625rem/1 var(--f-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .08em; text-align: right; padding: 4px var(--gutter) 0; }
.foot-mark__guide--cap { top: calc(clamp(56px, 8vw, 110px) + 14px + clamp(14px, 2vw, 26px) + 2.4vw); }
.foot-mark__guide--base { bottom: calc(clamp(10px, 2vw, 24px) + 2.6vw); }
.title-block { display: grid; grid-template-columns: repeat(5, 1fr); border: 1.5px solid var(--ink); margin-top: 8px; background: var(--surface); }
.title-block div { padding: 10px 14px; display: grid; gap: 4px; }
.title-block div + div { border-left: 1px solid var(--rule-strong); }
.title-block dt { font: 500 .5625rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.title-block dd { font: 700 .9375rem/1.2 var(--f-display); font-stretch: 110%; }

/* Paper cards get a pinned-sheet look with taped corners */
.plate, .ticket, .brief, .board, .spec, .notes li, .pair, .wo { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px; background-color: var(--surface); }
.plate::after, .board::after { content: ""; position: absolute; top: -10px; left: 50%; width: 86px; height: 22px; margin-left: -43px; background: rgba(58, 43, 255, .18); transform: rotate(-3deg); backdrop-filter: blur(1px); }
.board { position: relative; }

/* Crosshair cursor with live coordinates + selection box (fine pointers only) */
.xh { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0; transition: opacity .3s; }
.xh.is-on { opacity: 1; }
.xh__h, .xh__v { position: absolute; background: var(--accent); opacity: .35; }
.xh__h { left: 0; right: 0; height: 1px; top: 0; transform: translateY(var(--cy)); }
.xh__v { top: 0; bottom: 0; width: 1px; left: 0; transform: translateX(var(--cx)); }
.xh__dot { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 1.5px solid var(--accent); border-radius: 50%; transform: translate(var(--cx), var(--cy)); transition: width .25s, height .25s, margin .25s; }
.xh__label { position: absolute; left: 0; top: 0; transform: translate(calc(var(--cx) + 12px), calc(var(--cy) + 12px)); font: 600 .5625rem/1 var(--f-mono); letter-spacing: .06em; color: #fff; background: var(--accent); padding: 4px 6px; border-radius: 3px; white-space: nowrap; }
.xh__sel { position: absolute; left: 0; top: 0; border: 1px solid var(--accent); opacity: 0; transition: opacity .2s; }
.xh__sel.is-on { opacity: 1; }
.xh__sel i { position: absolute; width: 7px; height: 7px; background: #fff; border: 1px solid var(--accent); }
.xh__sel i:nth-child(1) { left: -4px; top: -4px; } .xh__sel i:nth-child(2) { right: -4px; top: -4px; }
.xh__sel i:nth-child(3) { left: -4px; bottom: -4px; } .xh__sel i:nth-child(4) { right: -4px; bottom: -4px; }
.xh__sel b { position: absolute; left: 50%; top: 100%; margin-top: 6px; transform: translateX(-50%); font: 600 .5625rem/1 var(--f-mono); letter-spacing: .04em; color: #fff; background: var(--accent); padding: 3px 5px; border-radius: 3px; white-space: nowrap; }
.has-xh, .has-xh a, .has-xh button, .has-xh summary, .has-xh label { cursor: none; }
.has-xh input, .has-xh textarea, .has-xh select { cursor: auto; }

/* Intro: the sheet drafts the logo once per visit */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--paper); background-image: inherit; background-size: 160px 160px, 160px 160px, 20px 20px, 20px 20px; }
.intro__in { display: grid; gap: 18px; justify-items: center; width: min(86vw, 760px); }
.intro__word { font: 700 clamp(2.4rem, 9vw, 6.4rem)/1 var(--f-display); font-stretch: 140%; letter-spacing: -.03em; overflow: hidden; display: flex; }
.intro__word span { display: inline-block; }
.intro__word b { color: var(--accent); position: relative; }
.intro__dim { width: 100%; height: 12px; border-inline: 1px solid var(--ink-2); position: relative; }
.intro__dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink-2); transform: scaleX(var(--d, 0)); }
.intro__meta { display: flex; justify-content: space-between; width: 100%; font: 500 .6875rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.intro__meta b { color: var(--accent); font-weight: 600; }

/* Mobile menu: links stagger in like cards dealt onto the sheet */
.mnav__no { font: 500 .6875rem/1 var(--f-mono); color: var(--accent); margin-right: 14px; vertical-align: super; }
.mnav__list > li > a { justify-content: flex-start; }
.mnav__svc summary > span:first-child { display: inline-flex; align-items: baseline; }
.mnav__list > li > a, .mnav__svc summary { font-stretch: 112%; }
@media (prefers-reduced-motion: no-preference) {
  .mnav:not([hidden]) .mnav__list > li { animation: dealIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 60ms); }
  .mnav:not([hidden]) .mnav__foot { animation: dealIn .55s var(--ease) .45s both; }
}
@keyframes dealIn { from { opacity: 0; transform: translateY(26px) rotate(-2deg); } }

/* Smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .badge { bottom: -40px; }
  .note--hero { right: 4%; top: -18px; }
  .note--svc { position: static; justify-self: start; grid-column: 1 / -1; margin-top: -4px; }
  .title-block { grid-template-columns: repeat(3, 1fr); }
  .title-block div:nth-child(4) { border-left: 0; }
  .title-block div:nth-child(n+4) { border-top: 1px solid var(--rule-strong); }
}
@media (max-width: 720px) {
  body { background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px; }
  .d-hero { font-size: clamp(2.6rem, 13.2vw, 4.4rem); font-stretch: 112%; }
  .d-1 { font-size: clamp(2rem, 9vw, 3.6rem); font-stretch: 100%; }
  .hero--home .d-hero { max-width: none; }
  .badge { position: relative; bottom: auto; right: auto; margin: 26px 0 0 auto; width: 104px; }
  .note--hero { position: relative; right: auto; top: auto; display: inline-flex; margin: 14px 0 0 4px; font-size: 1.4rem; }
  .note--hero .note__arw { display: none; }
  .note--cta { display: none; }
  .hero__legend { gap: 8px 18px; }
  .hero__scale { margin-left: 0; }
  .dimline span:last-child { display: none; }
  .dimline { justify-content: center; }
  .sec-head[data-num]:not([data-num=""])::before { font-size: 6.5rem; bottom: 70%; }
  .title-block { grid-template-columns: 1fr 1fr; }
  .title-block div { border-left: 0 !important; border-top: 1px solid var(--rule-strong); }
  .title-block div:nth-child(-n+2) { border-top: 0; }
  .title-block div:nth-child(even) { border-left: 1px solid var(--rule-strong) !important; }
  .foot-mark__guide { display: none; }
  .svc-row__link:hover .svc-row__name { transform: none; }
  .ticker__list li { font-size: 1.5rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .badge svg { animation: none; }
  .link:hover { animation: none; }
}

/* ==========================================================================
   Conversion layer: top bar, CTA strips, floating button, popup brief
   ========================================================================== */

/* Top bar with phone */
.topbar { position: relative; z-index: 51; background: var(--ink); color: var(--paper); font: 500 .8125rem/1 var(--f-body); }
.topbar__in { display: flex; align-items: center; gap: 22px; min-height: 40px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; font: 600 .875rem/1 var(--f-mono); letter-spacing: .02em; color: #fff !important; }
.topbar__phone svg { width: 16px; height: 16px; color: var(--accent); background: #fff; border-radius: 50%; padding: 3px; box-sizing: content-box; animation: ring 2.8s var(--ease) infinite; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }
.topbar__phone:hover { color: #C9C4FF !important; }
.topbar__mail { opacity: .8; } .topbar__mail:hover { opacity: 1; }
.topbar__hours { display: inline-flex; align-items: center; gap: 8px; opacity: .7; }
.dot--live { background: #3BD16F; box-shadow: 0 0 0 0 rgba(59, 209, 111, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(59, 209, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 209, 111, 0); } }
.topbar__cta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--accent); color: #fff !important; font-weight: 600; }
.topbar__cta .arw { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.topbar__cta:hover .arw { transform: translateX(3px); }
@media (min-width: 1025px) { .topbar { margin-inline: -18px; padding-inline: 18px; } }
@media (max-width: 1180px) { .hide-md { display: none; } }

/* CTA strip between sections */
.cta-strip { padding-block: clamp(24px, 4vw, 48px); }
.cta-strip__in {
  position: relative; display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 16px 32px; align-items: center;
  padding: clamp(24px, 3.4vw, 44px); border: 1.5px solid var(--ink); border-radius: 14px; background: var(--surface); overflow: hidden; isolation: isolate;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px;
}
.cta-strip__in::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -60px; width: 220px; aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--accent); opacity: .5; }
.cta-strip__tag { grid-column: 1 / -1; color: var(--accent); }
.cta-strip__title { font: 750 clamp(1.6rem, 3vw, 2.6rem)/1 var(--f-display); font-stretch: 110%; letter-spacing: -.02em; }
.cta-strip p { color: var(--ink-2); }
.cta-strip__actions { display: grid; gap: 12px; justify-items: start; }

/* Floating CTA */
.fab {
  position: fixed; left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 36px); z-index: 60;   /* left: the chat launcher sits bottom right */
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 22px; border-radius: 99px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 18px 40px -14px rgba(58, 43, 255, .7);
  transform: translateY(140%); opacity: 0; transition: transform .5s var(--ease), opacity .3s;
}
.fab.is-on { transform: none; opacity: 1; }
.fab .arw { width: 18px; height: 18px; }
.fab__ring { position: absolute; inset: -5px; border-radius: inherit; border: 1.5px dashed var(--accent); animation: pulse 2.4s var(--ease) infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(.94); opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }
@media (min-width: 1025px) { .fab { left: 34px; bottom: 32px; } }
/* Call button: bottom left, with Start a project beside it (chat launcher is bottom right). */
.fab-call {
  position: fixed; left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 36px); z-index: 60;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: #fff; box-shadow: 0 18px 40px -14px rgba(15, 18, 34, .6);
  transform: translateY(140%); opacity: 0; transition: transform .5s var(--ease), opacity .3s, background-color .2s;
}
.fab-call svg { width: 22px; height: 22px; }
.fab-call:hover { background: var(--accent); }
.fab-call.is-on { transform: none; opacity: 1; }
.fab { left: calc(clamp(16px, 3vw, 40px) + 68px); }
@media (min-width: 1025px) { .fab-call { left: 34px; bottom: 32px; } .fab { left: 102px; } }

/* Work tile CTA */
.tile__cta {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px;
  background: var(--accent); color: #fff; font: 600 .8125rem/1 var(--f-body); text-decoration: none; transform: translateY(10px); opacity: 0; transition: .35s var(--ease);
}
.tile__cta .arw { width: 14px; height: 14px; }
.tile:hover .tile__cta, .tile__cta:focus-visible { transform: none; opacity: 1; }

/* Packages: six work orders per service */
.wo-grid { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.wo__more summary { list-style: none; cursor: pointer; display: inline-flex; margin-top: 4px; font: 600 .8125rem/1 var(--f-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.wo__more summary::-webkit-details-marker { display: none; }
.wo__more-close, .wo__more[open] .wo__more-open { display: none; }
.wo__more[open] .wo__more-close { display: inline; }
.wo__more .wo__list { margin-top: 10px; }
.wo__more[open] .wo__list li { animation: tileIn .4s var(--ease) both; }
.wo__notes { display: grid; gap: 6px; padding: 12px 14px; border: 1px dashed var(--rule-strong); border-radius: 8px; font-size: .8125rem; color: var(--ink-2); }
.wo__notes li::before { content: "* "; color: var(--accent); }
.wo__stub { align-content: start; }
.wo { align-self: stretch; }
.wo-grid { align-items: stretch; }
.wo__cta { align-self: end; }
.wo__price .wo__amount { font-stretch: 118%; }

/* Popup brief ---------------------------------------------------------- */
.qm { width: min(1080px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px; background: transparent; overflow: visible; color: var(--ink); }
.qm[open] { position: fixed; inset: 0; z-index: 999990; animation: qmIn .55s var(--ease) both; }
/* Shade behind the popup. Zendesk's chat (z-index 999999) stays above it, unblurred. */
.qm-shade { position: fixed; inset: 0; z-index: 999989; background: rgba(15, 18, 34, .55); backdrop-filter: blur(6px); animation: fade .4s both; }
.qm-shade.is-closing { animation: fadeOut .3s both; }
@keyframes fadeOut { to { opacity: 0; } }
/* Desktop: with the chat open, the popup moves left so they sit side by side */
@media (min-width: 1025px) { html.chat-open .qm[open] { right: 396px; width: min(1080px, calc(100% - 420px)); } }
/* Tablets and phones: room under the buttons for the chat launcher */
@media (max-width: 1024px) { html.has-zchat .qm__nav { padding-bottom: 64px; } }
@keyframes qmIn { from { opacity: 0; transform: translateY(40px) rotate(-1.5deg) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.qm.is-closing { animation: qmOut .3s var(--ease) both; }
@keyframes qmOut { to { opacity: 0; transform: translateY(24px) scale(.98); } }
.qm__sheet { display: grid; grid-template-columns: 320px 1fr; max-height: calc(100dvh - 24px); border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); }

.qm__ticket { position: relative; display: grid; align-content: start; gap: 18px; padding: 28px 26px; background: var(--ink); color: var(--paper); overflow: hidden;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 20px 20px; }
.qm__ticket .label { color: rgba(237, 239, 244, .7); }
.qm__ticket-head { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px dashed rgba(237, 239, 244, .3); }
.qm__ticket-title { font: 750 1.8rem/1 var(--f-display); font-stretch: 115%; letter-spacing: -.02em; }
.qm__sum { display: grid; }
.qm__sum div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(237, 239, 244, .12); }
.qm__sum dt { font: 500 .625rem/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: rgba(237, 239, 244, .55); }
.qm__sum dd { font-weight: 600; font-size: .9375rem; line-height: 1.35; }
.qm__sum dd.is-new { animation: flash .6s var(--ease); }
@keyframes flash { from { color: #A8A0FF; transform: translateX(6px); } }
.qm__meter { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font: 500 .625rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: rgba(237, 239, 244, .7); }
.qm__meter i { height: 6px; border-radius: 6px; background: rgba(237, 239, 244, .15); overflow: hidden; }
.qm__meter b { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.qm__stamp { justify-self: start; transform: rotate(-8deg); font: 700 .8125rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: #F5B83D; border: 2px solid currentColor; border-radius: 6px; padding: 8px 12px; transition: color .3s; }
.qm__stamp.is-ready { color: #3BD16F; }
.qm__ticket-foot { margin-top: auto; font-size: .8125rem; color: rgba(237, 239, 244, .55); }

.qm__form { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; min-height: min(640px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); padding: 26px clamp(20px, 3vw, 40px) 22px; overflow: hidden; }
.qm__top { display: flex; justify-content: space-between; align-items: center; }
.qm__x { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; transition: transform .4s var(--ease), background-color .2s; }
.qm__x span::before, .qm__x span::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.qm__x span::after { transform: rotate(-45deg); }
.qm__x:hover { transform: rotate(90deg); background: var(--ink); color: #fff; }
.qm__progress { position: relative; height: 14px; margin: 18px 0 8px; border-inline: 1px solid var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.qm__progress::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule-strong); }
.qm__progress i { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.qm__progress span { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink-2); transition: .35s var(--ease); }
.qm__progress span:first-of-type { margin-left: -6px; }
.qm__progress span:last-of-type { margin-right: -6px; }
.qm__progress span.is-done { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }

.qm__step { display: none; border: 0; margin: 0; padding: 14px 0 0; min-width: 0; overflow-y: auto; overscroll-behavior: contain; }
.qm__step.is-active { display: block; animation: stepIn .5s var(--ease) both; }
.qm__step.is-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-40px); } }
.qm__h { float: left; width: 100%; font: 750 clamp(1.8rem, 3.4vw, 2.8rem)/1 var(--f-display); font-stretch: 112%; letter-spacing: -.025em; padding: 0; }
.qm__h + * { clear: both; }
.qm__sub { color: var(--ink-2); margin: 10px 0 20px; max-width: 52ch; }
.qm__label { font-weight: 600; margin: 22px 0 10px; }
.qm__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qm__card { position: relative; }
.qm__card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qm__card span { position: relative; display: grid; gap: 12px; align-content: start; min-height: 104px; padding: 14px; border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--surface); font-weight: 600; line-height: 1.2; transition: .25s var(--ease); }
.qm__card .code { justify-self: start; }
.qm__card:hover span { border-color: var(--ink); transform: translateY(-3px) rotate(-.6deg); box-shadow: var(--shadow); }
.qm__card input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-1deg); }
.qm__card input:checked + span .code { background: #fff; color: var(--accent); border-color: #fff; }
.qm__card input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.qm__tick { position: absolute; right: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--rule-strong); transition: .3s var(--ease); }
.qm__card input:checked + span .qm__tick { border-color: #fff; background: #fff; }
.qm__card input:checked + span .qm__tick::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); animation: pop .35s var(--ease); }
@keyframes pop { from { transform: rotate(45deg) scale(0); } }

.qm__range { position: relative; padding: 6px 0 4px; }
.qm__budget { display: block; font: 800 clamp(2rem, 4vw, 3rem)/1 var(--f-display); font-stretch: 120%; color: var(--accent); letter-spacing: -.03em; margin-bottom: 18px; }
.qm__budget.is-bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08) rotate(-2deg); } }
.qm__range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--accent) var(--fill, 25%), var(--paper-deep) var(--fill, 25%)); outline: none; cursor: pointer; }
.qm__range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 6px 16px -4px rgba(58, 43, 255, .6); transition: transform .2s; }
.qm__range input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.qm__range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.qm__range input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.qm__ticks { display: flex; justify-content: space-between; margin-top: 10px; font: 500 .625rem/1.3 var(--f-mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; }
.qm__ticks span { flex: 1; text-align: center; }
.qm__ticks span:first-child { text-align: left; } .qm__ticks span:last-child { text-align: right; }
.qm__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qm__site { margin-top: 14px; max-width: 420px; animation: tileIn .4s var(--ease) both; }

.qm__ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.qm__idea { border: 1px dashed var(--accent); background: transparent; color: var(--accent); border-radius: 99px; padding: 8px 12px; font-size: .875rem; font-weight: 600; transition: .25s var(--ease); }
.qm__idea:hover { background: var(--accent-tint); transform: translateY(-2px); }
.qm__idea.is-used { background: var(--accent); color: #fff; border-style: solid; }
.qm__count { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; font: 500 .6875rem/1 var(--f-mono); color: var(--ink-2); }
.qm__count i { height: 4px; border-radius: 4px; background: var(--paper-deep); overflow: hidden; }
.qm__count b { display: block; height: 100%; width: 0; background: #F5B83D; transition: width .3s, background-color .3s; }
.qm__count.is-ok b { background: #3BD16F; }
.qm__count.is-ok span { color: #1E8B47; }
.qm__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.qm__err { color: #B0213E; font-size: .875rem; font-weight: 500; margin-top: 12px; }
.qm__err:empty { display: none; }
.qm.is-shake .qm__step.is-active { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.qm__nav { display: flex; align-items: center; gap: 12px; padding-top: 18px; margin-top: 12px; border-top: 1px dashed var(--rule-strong); }
.qm__hint { margin-left: auto; }
.qm__nav [data-qm-next], .qm__nav [data-qm-submit] { margin-left: 0; }

.qm__done { position: relative; display: grid; gap: 16px; justify-items: start; align-content: center; padding: 20px 0; }
.qm__done:focus { outline: none; }
.qm__done .stamp { position: static; animation: stamp .5s var(--ease) both; }
.qm__done p { color: var(--ink-2); max-width: 46ch; }
.qm__burst { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.qm__burst i { position: absolute; left: 30%; top: 40%; width: 12px; height: 12px; background: var(--c, var(--accent)); border-radius: var(--br, 2px); animation: burst 1.2s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(var(--rot)); opacity: 0; } }
.is-sent .qm__nav, .is-sent .qm__progress, .is-sent .qm__step { display: none !important; }
.is-sent .qm__form { grid-template-rows: auto 1fr; }
html.qm-open { overflow: hidden; }
html.qm-open .fab, html.qm-open .fab-call { opacity: 0; pointer-events: none; }
/* With the popup open the dialog sits above the custom crosshair, so the
   crosshair and the drawing-sheet guides go away and the normal cursor
   comes back inside the popup. */
html.qm-open .xh, html.qm-open .sheet { opacity: 0 !important; visibility: hidden; }
html.qm-open.has-xh, html.qm-open.has-xh .qm { cursor: auto; }
html.qm-open.has-xh .qm :is(a, button, summary, label, select, [role="button"], input[type="range"], input[type="checkbox"], input[type="radio"]) { cursor: pointer; }
html.qm-open.has-xh .qm :is(input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea) { cursor: text; }

@media (max-width: 1024px) {
  .wo-grid { grid-template-columns: 1fr 1fr; max-width: none; }
  .cta-strip__in { grid-template-columns: 1fr; }
  .qm__sheet { grid-template-columns: 1fr; }
  .qm__ticket { display: none; }
}
@media (max-width: 720px) {
  .topbar__in { gap: 12px; min-height: 38px; }
  .topbar__cta { padding: 6px 10px; font-size: .75rem; }
  .wo-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(-1 * var(--gutter)); padding: 22px var(--gutter) 18px; scrollbar-width: none; }
  .wo-grid::-webkit-scrollbar { display: none; }
  .wo { flex: 0 0 84%; scroll-snap-align: center; }
  .wo--featured { transform: none; }
  .fab { left: 84px; right: 88px; justify-content: center; }   /* call button on its left, chat launcher on its right */
  .fab-call { left: 16px; width: 54px; height: 54px; }
  .fab__txt { font-size: 1rem; }
  .qm { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .qm__sheet { border-radius: 0; height: 100dvh; max-height: none; }
  .qm__form { min-height: 0; max-height: none; height: 100dvh; padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); }
  .qm__cards { grid-template-columns: 1fr 1fr; }
  .qm__card span { min-height: 86px; font-size: .9375rem; }
  .qm__cols { grid-template-columns: 1fr; }
  .qm__hint { display: none; }
  .qm__nav [data-qm-next], .qm__nav [data-qm-submit] { margin-left: auto; }
  .qm__ticks span { font-size: .5rem; }
  @keyframes qmIn { from { opacity: 0; transform: translateY(60px); } }
}
.wo__row { align-items: flex-start; }
.wo__row .label:last-child { text-align: right; flex-shrink: 1; min-width: 0; }
.qm__step { overflow-x: hidden; padding-inline: 4px; margin-inline: -4px; }
