:root {
  --ink: #000000;
  --bone: #EBEBEA;
  --sand: #7A7A78;
  --paper: #FFFFFF;
  --neon: #D8FE00;
  --hair: rgba(235,235,234,.16);
  --display: 'Anton', Impact, sans-serif;
  --body: Archivo, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  min-height: 100%;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 0; }
.stage.is-light :focus-visible { outline-color: var(--ink); }

/* ---------- shell ---------- */
.stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  transition: background 320ms ease-out, color 320ms ease-out;
}
.stage.is-light { background: var(--bone); color: var(--ink); }

.prog { position: relative; height: 4px; background: rgba(235,235,234,.12); flex: none; overflow: hidden; }
.stage.is-light .prog { background: rgba(0,0,0,.14); }
.prog i {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: var(--neon); transform: skewX(-24deg); transform-origin: left;
  transition: width 420ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- site header ---------- */
.brief-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px clamp(18px,5vw,44px) 0;
}
.brief-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brief-brand img { display: block; height: 34px; width: 34px; }
.brief-brand .wm {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--sand);
}
.stage.is-light .brief-brand .wm { color: #6a6a68; }
.brief-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px,3.5vw,26px);
}
.brief-nav a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sand);
  transition: color 160ms ease-out;
}
.brief-nav a:hover { color: var(--bone); }
.stage.is-light .brief-nav a { color: #6a6a68; }
.stage.is-light .brief-nav a:hover { color: var(--ink); }
@media (max-width: 460px) {
  .brief-brand img { height: 30px; width: 30px; }
  .brief-nav { gap: 16px; }
}

.body {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(18px,5vw,44px) clamp(18px,5vw,44px) calc(clamp(56px,9vw,72px) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.count {
  font-family: var(--mono); font-size:12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sand); display: flex; gap: 10px; align-items: center; margin-bottom: auto; min-height: 16px;
}
.count em { font-style: normal; color: var(--neon); }
.stage.is-light .count { color: #6a6a68; }

.q {
  font-family: var(--display); text-transform: uppercase; letter-spacing: -.02em; line-height: .94;
  font-size:clamp(32.5px,7.9vw,53px); color: var(--bone); margin: 26px 0 0;
}
.q--sm { font-size:clamp(26.5px,6.2vw,41px); }
.stage.is-light .q { color: var(--ink); }
.help { font-size:17.5px; color: var(--sand); margin-top: 13px; max-width: 44ch; }
.stage.is-light .help { color: #5c5c5a; }

/* ---------- options ---------- */
.opts { margin-top: 22px; display: flex; flex-direction: column; gap: 7px; border: 0; }
.opt {
  position: relative; display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  border: 1px solid var(--hair); padding: 12px 14px; background: transparent;
  font: inherit; color: inherit; cursor: pointer;
  transition: border-color 180ms ease-out;
}
.opt:hover { border-color: rgba(235,235,234,.4); }
.opt .k {
  font-family: var(--mono); font-size:12.5px; letter-spacing: .1em; color: var(--sand);
  border: 1px solid var(--hair); width: 22px; height: 22px; display: grid; place-items: center; flex: none;
}
.opt .t { font-size:17.5px; color: var(--bone); font-weight: 500; }
.opt .t s { text-decoration: none; color: var(--sand); font-weight: 400; }
.opt[aria-checked="true"], .opt[aria-pressed="true"] { border-color: var(--bone); }
.opt[aria-checked="true"]::before, .opt[aria-pressed="true"]::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 5px;
  background: var(--neon); transform: skewX(-14deg);
}
.opt[aria-checked="true"] .k, .opt[aria-pressed="true"] .k { border-color: var(--bone); color: var(--paper); }
.opt[aria-checked="true"] .t, .opt[aria-pressed="true"] .t { color: var(--paper); }
/* Seven or more options will not fit a 375px screen at the airy spacing.
   Tighten them there only — the desktop rhythm is untouched. */
@media (max-width: 560px) {
  .opts--dense { gap: 5px; }
  .opts--dense .opt { padding: 7px 12px; }
  .opts--dense .opt .k { width: 20px; height: 20px; }
  .opts--dense + .microlabel { margin-top: 12px; }
  .opts--dense ~ .btn { margin-top: 14px; }
}

/* ---------- text + fields ---------- */
.field { margin-top: 22px; border-bottom: 1px solid var(--hair); padding-bottom: 11px; }
.stage.is-light .field { border-bottom-color: rgba(0,0,0,.2); }
.field label {
  display: block; font-family: var(--mono); font-size:11.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sand); margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; color: var(--bone);
  font-family: var(--body); font-size:clamp(19px,4.1vw,24px); line-height: 1.35;
  caret-color: var(--neon); resize: none; padding: 0;
}
.field input::placeholder, .field textarea::placeholder { color: #4a4a48; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 6px; }
.field--err { border-bottom-color: var(--neon); }
.err {
  font-family: var(--mono); font-size:11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--neon); margin-top: 9px; line-height: 1.6;
}
.microlabel {
  font-family: var(--mono); font-size:11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sand); margin-top: 20px; line-height: 1.7; max-width: 52ch;
}
.stage.is-light .microlabel { color: #6a6a68; }

/* A screen with four or more fields tightens its rhythm on small screens so
   the button stays reachable without scrolling. Desktop is untouched. */
@media (max-width: 560px) {
  .fields-dense .help { margin-top: 10px; }
  .fields-dense .field { margin-top: 13px; padding-bottom: 8px; }
  .fields-dense .field label { margin-bottom: 5px; }
  .fields-dense .microlabel { margin-top: 12px; }
  .fields-dense .btn { margin-top: 13px; }
}

/* ---------- picture choice ---------- */
.tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 22px; border: 0; }
.tile {
  position: relative; aspect-ratio: 3/4; border: 1px solid var(--hair); overflow: hidden;
  padding: 0; background: transparent; cursor: pointer; font: inherit; color: inherit;
}
.tile .img {
  position: absolute; inset: 0; filter: grayscale(1);
  background: linear-gradient(150deg,#3a3a38 0%,#141414 45%,#4a4a47 100%);
  background-size: cover; background-position: center 20%;
}
.tile .img.is-placeholder::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg,rgba(255,255,255,.05) 0 2px,transparent 2px 9px);
}
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 8px; text-align: left;
  font-family: var(--mono); font-size:10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bone); background: linear-gradient(transparent,rgba(0,0,0,.9));
}
.tile .cap i { font-style: normal; display: block; color: var(--sand); font-size:9px; margin-top: 3px; letter-spacing: .1em; }
.tile[aria-checked="true"] { border-color: var(--bone); }
.tile[aria-checked="true"]::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--neon); transform: skewX(-14deg);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px; background: var(--neon); color: var(--ink);
  font-family: var(--display); text-transform: uppercase; letter-spacing: .005em;
  font-size:clamp(18px,4.1vw,23px); padding: 13px 22px; margin-top: 26px; align-self: flex-start;
  border: 1px solid var(--neon); cursor: pointer; text-decoration: none;
  transition: opacity 180ms ease-out;
}
.btn:hover { opacity: .82; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--hair); }
.stage.is-light .btn--ghost { color: var(--ink); border-color: rgba(0,0,0,.28); }
.hint, .sub {
  font-family: var(--mono); font-size:11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sand); margin-top: 13px; line-height: 1.7; max-width: 46ch;
}
a.sub { display: inline-block; text-decoration: none; }
a.sub:hover { color: var(--bone); }

/* ---------- statement cards ---------- */
.rule { height: 1px; background: rgba(0,0,0,.2); margin: 22px 0; }
.rule--neon { height: 4px; background: var(--neon); width: 74px; transform: skewX(-24deg); margin: 22px 0; }
.two { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 6px; }
@media (min-width: 620px) { .two { grid-template-columns: 1fr 1fr; gap: 28px; } }
.col h4 {
  font-family: var(--mono); font-size:12px; letter-spacing: .22em; text-transform: uppercase;
  color: #6a6a68; margin-bottom: 9px; font-weight: 400;
}
.col p { font-size:17.5px; color: #2a2a29; line-height: 1.55; }
.col--own h4 { color: var(--ink); }
.col--own h4 span { background: var(--neon); padding: 2px 5px; }
.closing { font-size:18px; color: var(--ink); font-weight: 600; margin-top: 22px; }

.steps { margin-top: 6px; border-top: 1px solid rgba(0,0,0,.14); }
.step { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(0,0,0,.14); }
.step dt {
  font-family: var(--mono); font-size:12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); padding-top: 2px;
}
.step dd { font-size:17.5px; color: #2a2a29; line-height: 1.5; }
@media (max-width: 460px) { .step { grid-template-columns: 1fr; gap: 4px; } }
.foot-note { font-size:15.5px; color: #5c5c5a; margin-top: 18px; max-width: 52ch; }

/* ---------- end screen ---------- */
.wordmark-wrap { position: relative; z-index: 0; margin: 20px 0; }
.wordmark {
  position: relative; display: inline-block; font-family: var(--display);
  font-size:41px; line-height: 1; color: var(--paper); padding: 0 4px;
}
.wordmark::before {
  content: ""; position: absolute; left: -8px; right: -14px; top: 22%; height: 56%;
  background: var(--neon); transform: skewX(-24deg); z-index: -1;
}
.stamp {
  font-family: var(--mono); font-size:11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sand); margin-top: auto; padding-top: 26px; border-top: 1px solid var(--hair);
}

/* ---------- the four phases ----------
   Approved section, used on every end screen. A numbered vertical stack — the
   home page runs the same four as a stepped horizontal sequence, deliberately
   unlike the territories grid so the two never read as one list.
   No days, no weeks: timing is quoted per project, and the one permitted
   sentence about it sits by the CTA rather than inside the phases. */
.phases { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hair); }
.stage.is-light .phases { border-top-color: rgba(0,0,0,.2); }
.phases-head {
  font-family: var(--display); text-transform: uppercase; letter-spacing: -.02em;
  font-size:clamp(23px,5.5vw,31px); line-height: 1; color: var(--bone);
}
.stage.is-light .phases-head { color: var(--ink); }
.phases-sf { font-size:16px; color: var(--sand); margin-top: 9px; max-width: 46ch; }
.phase-list { margin-top: 18px; }
.phase {
  display: grid; grid-template-columns: 26px 1fr; gap: 12px;
  padding: 13px 0; border-top: 1px solid var(--hair);
}
.stage.is-light .phase { border-top-color: rgba(0,0,0,.14); }
.phase-no {
  font-family: var(--mono); font-size:11.5px; letter-spacing: .16em;
  color: var(--sand); padding-top: 3px;
}
.phase-name {
  font-family: var(--mono); font-size:12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--bone);
}
.stage.is-light .phase-name { color: var(--ink); }
.phase-does { font-size:16px; color: var(--bone); margin-top: 6px; line-height: 1.45; }
.stage.is-light .phase-does { color: #2a2a29; }
.phase-gets { font-size:15px; color: var(--sand); margin-top: 5px; line-height: 1.45; }
.phase-gets b { font-weight: 600; color: var(--bone); }
.stage.is-light .phase-gets b { color: var(--ink); }
.phases-note {
  font-size:15px; color: var(--sand); margin-top: 18px; max-width: 52ch; line-height: 1.5;
}
@media (max-width: 460px) {
  .phase { grid-template-columns: 22px 1fr; gap: 10px; padding: 11px 0; }
  .phase-does { font-size:15.5px; }
}

/* ---------- back ---------- */
.back {
  position: fixed; left: clamp(18px,5vw,44px); bottom: calc(14px + env(safe-area-inset-bottom));
  font-family: var(--mono); font-size:12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sand); background: transparent; border: 0; padding: 6px 2px; cursor: pointer;
}
.back:hover { color: var(--bone); }
.stage.is-light .back { color: #6a6a68; }
.stage.is-light .back:hover { color: var(--ink); }
.back[hidden] { display: none; }

/* ---------- honeypot ---------- */
.hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- transitions ---------- */
.view { display: flex; flex-direction: column; flex: 1; }
/* The mockup composes on a short card, where letting the block fall to the
   bottom reads as deliberate. On a tall desktop viewport it just opens a void,
   so above a certain height the block centres between counter and base
   instead. The end screen is excluded — its stamp owns the bottom. */
@media (min-width: 700px) and (min-height: 640px) {
  .view:not(:has(.stamp))::after { content: ""; margin-top: auto; }
}
.view.is-entering { animation: rise 320ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .view.is-entering { animation: none; }
  .prog i, .stage { transition: none; }
}

@media (max-width: 460px) {
  .opt { padding: 11px 12px; gap: 10px; }
  .opt .t { font-size:16px; }
  .tiles { gap: 5px; }
  .q { margin-top: 18px; }
  .btn { margin-top: 20px; }
}
