/* ============================================================
   MLC: site styles. Extends styles/tokens.css (the only file
   that defines colour, type and spacing). Approved base:
   .context/samples/hero-1.html measured at 1440 and 390.
   ============================================================ */
@import url("tokens.css");

:root {
  --tex-paper: url("../assets/textures/paper.png?v=2");
  --tex-ink: url("../assets/textures/ink.png?v=2");
}

body { background: var(--surface); }

[hidden] { display: none !important; }

a { text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--ink); color: var(--surface); padding: var(--s-3) var(--s-6);
}
.skip:focus { left: var(--s-4); top: var(--s-4); }

/* ---------- header ---------- */
.site-head {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6); padding: 26px var(--gutter);
}
.site-head--solid {
  position: static; border-bottom: 1px solid rgba(0,43,49,.14);
  background: var(--surface);
}
.wordmark { font-size: 16px; letter-spacing: .18em; text-transform: uppercase; }
.site-head a { color: inherit; }
.nav { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.nav a { font-size: var(--fs-small); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .pill { font-size: var(--fs-small); }
/* the header sits on a dark hero on some pages and on white on others, and
   .site-head a { color: inherit } outranks .pill, so the pill lost its white
   label on light pages and rendered ink on ink. Pin it here. */
.site-head .pill { color: var(--surface); }
.on-dark .site-head { color: var(--surface); }
/* same cause for the eyebrow: ink text on the dark hero photo was invisible */
.on-dark .eyebrow { color: var(--surface); }
.on-dark .nav .pill--ghost { border-color: rgba(255,255,255,.5); }
.nav__toggle { display: none; }

/* ---------- hero (approved base) ---------- */
.hero { position: relative; min-height: 100vh; display: grid; align-content: space-between; }
.hero--short { min-height: 62vh; }
.hero--short .hero__body { padding-top: 150px; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,31,36,.70) 0%, rgba(0,31,36,.44) 45%, rgba(0,31,36,.74) 100%); }
.hero__body { position: relative; padding: 190px var(--gutter) var(--s-8); }
.hero__left { max-width: none; }
.hero__statement { font-size: var(--fs-small); line-height: var(--lh-small); max-width: 46ch; margin-bottom: var(--s-16); }
.hero__h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: -.01em; }
.hero__h1 span { display: block; }
.hero__h1 em { font-style: normal; color: var(--accent); }
.hero__foot {
  position: relative; border-top: 1px solid rgba(255,255,255,.28);
  margin: 0 var(--gutter); padding: var(--s-4) 0 var(--s-6);
  display: flex; justify-content: space-between; align-items: end; gap: var(--s-6);
  font-size: var(--fs-micro); letter-spacing: .06em; text-transform: uppercase;
}
.hero__pills { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.on-dark { color: var(--surface); }
.pill--ghost { background: transparent; border: 1px solid currentColor; }
.pill--ghost:hover { background: rgba(255,255,255,.12); color: var(--surface); }

/* ---------- page head for inner pages ---------- */
.page-head { padding: 210px var(--gutter) var(--s-16); display: grid; gap: var(--s-8); }
.page-head__lede { max-width: var(--text-column); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.page-head h1 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
@media (min-width: 901px) {
  .page-head { grid-template-columns: minmax(0, var(--text-column)) minmax(0, 1fr); align-items: end; }
  .page-head h1 { grid-column: 1; }
}

/* ---------- sections ---------- */
/* every surface owns its text colour: body.on-dark sets white, so a light
   surface that only set a background rendered white on white on route pages */
.section { padding: var(--s-32) var(--gutter); background: var(--surface); color: var(--ink); }
.section--warm { background: var(--surface-warm); color: var(--ink); }
.section--ink { background: var(--ink); color: var(--surface); }
.section--tight { padding: var(--s-24) var(--gutter); }
.section__head { display: grid; gap: var(--s-6); margin-bottom: var(--s-20); }
.section__head h2 { max-width: 20ch; }
.section__head p { max-width: var(--text-column); font-size: var(--fs-small); line-height: var(--lh-small); }
@media (min-width: 901px) {
  .section__head { grid-template-columns: minmax(0, var(--text-column)) minmax(0, 1fr); align-items: end; }
}

/* ---------- stats ---------- */
.stats { display: grid; gap: var(--s-10); border-top: 1px solid rgba(0,43,49,.16); padding-top: var(--s-10); }
@media (min-width: 701px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat b { display: block; font-size: 58px; line-height: 62px; font-weight: var(--w-light); letter-spacing: -.01em; }
.stat span { font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- why portugal ---------- */
.why { display: grid; gap: var(--s-10); }
@media (min-width: 701px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why li { list-style: none; padding-top: var(--s-4); border-top: 1px solid rgba(0,43,49,.16); font-size: var(--fs-small); line-height: var(--lh-small); }
.why img { width: 40px; height: 40px; margin: var(--s-3) 0 var(--s-4); }
.why { padding: 0; margin: 0; }

/* ---------- photo depth stack ---------- */
.depth { display: grid; gap: var(--s-6); overflow: hidden; }
.depth__stage { position: relative; height: 460px; perspective: 1400px; }
.depth__card {
  position: absolute; top: 20px; left: 0; margin: 0;
  width: min(300px, 72vw); aspect-ratio: 4 / 5;
  border-radius: var(--radius-card); overflow: hidden;
  transition: transform 700ms var(--ease), opacity 700ms var(--ease), filter 700ms var(--ease);
}
.depth__card img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.depth__card::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  opacity: var(--shade, 0); pointer-events: none;
}
.depth__bar { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.depth__count { margin: 0; font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.depth__caption { margin: 0; flex: 1; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
@media (max-width: 700px) { .depth__stage { height: 400px; } .depth__caption { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .depth__card { transition: none; } }

/* ---------- process ---------- */
.steps { display: grid; gap: var(--s-12); counter-reset: step; }
@media (min-width: 901px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.stack.steps { display: block; }
.stack .step {
  position: sticky; top: 96px; z-index: 1;
  margin-bottom: 28vh; padding: var(--s-8);
  background: var(--surface-warm); border: 1px solid rgba(0,43,49,.16);
  border-radius: var(--radius-card);
}
.stack .step:nth-child(2) { top: 112px; z-index: 2; }
.stack .step:nth-child(3) { top: 128px; z-index: 3; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .stack.steps { display: grid; gap: var(--s-12); }
  .stack .step { position: static; margin-bottom: 0; background: transparent; border: 0; border-top: 1px solid rgba(0,43,49,.16); border-radius: 0; padding: var(--s-6) 0 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 901px) {
  .stack.steps { grid-template-columns: repeat(3, 1fr); }
}
.step { padding-top: var(--s-6); border-top: 1px solid rgba(0,43,49,.16); }
.step span { font-size: var(--fs-micro); letter-spacing: .08em; color: var(--muted); }
.step h3 { margin: var(--s-4) 0 var(--s-3); font-size: 28px; line-height: 34px; font-weight: var(--w-light); }
.step p { font-size: var(--fs-small); line-height: var(--lh-small); }

/* ---------- route grid ---------- */
.routes { display: grid; gap: 0; border-top: 1px solid rgba(0,43,49,.16); }
.route {
  display: grid; gap: var(--s-2); padding: var(--s-8) 0;
  border-bottom: 1px solid rgba(0,43,49,.16);
  transition: padding-left var(--t-hover) ease, color var(--t-hover) ease;
}
.route:hover { padding-left: var(--s-6); color: var(--accent-deep); }
@media (min-width: 901px) { .route { grid-template-columns: minmax(0, 1fr) minmax(0, 360px) 120px; align-items: baseline; } }
.route h3 { font-size: 30px; line-height: 36px; font-weight: var(--w-light); }
.route p { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); margin: 0; }
.route span { font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.section--ink .routes { border-top-color: rgba(255,255,255,.22); }
.section--ink .route { border-bottom-color: rgba(255,255,255,.22); }
.section--ink .route:hover { color: var(--accent); }
.section--ink .route p, .section--ink .route span { color: rgba(255,255,255,.72); }

/* ---------- call out ---------- */
.callout {
  display: grid; gap: var(--s-6); align-items: center;
  padding: var(--s-10); border-radius: var(--radius-card);
  background: var(--surface-warm);
}
.callout h2 { font-size: 38px; line-height: 44px; }
.callout p { font-size: var(--fs-small); line-height: var(--lh-small); margin: 0; }
@media (min-width: 901px) { .callout { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- team ---------- */
.team { display: grid; gap: var(--s-10); }
@media (min-width: 701px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1101px) { .team { grid-template-columns: repeat(4, 1fr); } }
.member { border-top: 1px solid rgba(0,43,49,.16); padding-top: var(--s-4); }
.member h3 { font-size: 22px; line-height: 28px; font-weight: var(--w-light); margin-bottom: var(--s-2); }
.member span { font-size: var(--fs-micro); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.member__photo { display: block; width: 100%; max-width: 280px; height: auto; aspect-ratio: 1; object-fit: cover; margin-bottom: var(--s-4); }
.member__linkedin { display: block; width: fit-content; margin-top: var(--s-4); font-size: var(--fs-small); }


/* ---------- partners ---------- */
.partners { display: grid; gap: var(--s-12); }
@media (min-width: 901px) { .partners { grid-template-columns: repeat(2, 1fr); } }
.partner { border-top: 1px solid rgba(0,43,49,.16); padding-top: var(--s-6); }
.partner h3 { font-size: 22px; line-height: 28px; margin-bottom: var(--s-4); }
.partner p { font-size: var(--fs-small); line-height: var(--lh-small); margin: 0 0 var(--s-2); }

/* ---------- articles ---------- */
.articles { display: grid; gap: var(--s-8); }
@media (min-width: 701px) { .articles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1101px) { .articles { grid-template-columns: repeat(3, 1fr); } }
.article {
  display: grid; gap: var(--s-4); padding: var(--s-8);
  border: 1px solid rgba(0,43,49,.16); border-radius: var(--radius-card);
  transition: border-color var(--t-hover) ease, transform var(--t-hover) ease;
}
.article:hover { border-color: var(--ink); transform: translateY(-2px); }
.article h3 { font-size: 20px; line-height: 26px; font-weight: var(--w-book); }
.article p { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); margin: 0; }
.article span { font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- route page ---------- */
.route-page { display: grid; gap: var(--s-16); padding: var(--s-24) var(--gutter) var(--s-32); background: var(--surface); color: var(--ink); }
@media (min-width: 901px) { .route-page { grid-template-columns: minmax(0, var(--text-column)) minmax(0, 1fr); } }
.route-page h1 { font-size: 64px; line-height: 68px; }
.route-page .lede { font-size: 22px; line-height: 30px; }
.route-page .prose p { max-width: 62ch; }
.route-page aside { align-self: start; position: sticky; top: var(--s-8); }
@media (max-width: 900px) { .route-page aside { position: static; } }
.panel { padding: var(--s-8); border-radius: var(--radius-card); background: var(--surface-warm); color: var(--ink); display: grid; gap: var(--s-4); }
.panel h3 { font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.panel ul { margin: 0; padding-left: var(--s-6); font-size: var(--fs-small); line-height: var(--lh-small); }
.faq { border-top: 1px solid rgba(0,43,49,.16); }
.faq details { border-bottom: 1px solid rgba(0,43,49,.16); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
  padding: var(--s-6) 0; font-size: 22px; line-height: 28px; font-weight: var(--w-book);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid rgba(0,43,49,.28); border-radius: 50%;
  font-size: 18px; line-height: 1; color: var(--ink);
}
.faq details[open] summary::after { content: "\2013"; background: var(--surface-warm); border-color: transparent; }
.faq p { margin: 0 0 var(--s-6); max-width: 62ch; font-size: var(--fs-small); line-height: var(--lh-small); }
.draft { padding: var(--s-6); border: 1px dashed var(--accent-deep); border-radius: var(--radius-card); font-size: var(--fs-small); line-height: var(--lh-small); }

/* ---------- form ---------- */
.contact { display: grid; gap: var(--s-12); align-items: start; }
.contact .offices { grid-template-columns: 1fr; }
.contact .form { order: -1; max-width: none; background: var(--surface-warm); padding: var(--s-8); border-radius: var(--radius-card); }
.contact .choice span { flex: 1; }
@media (min-width: 901px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-16); }
  .contact .form { order: 0; }
}
.form { display: grid; gap: var(--s-6); max-width: 640px; }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: var(--fs-small); color: var(--ink);
  background: var(--surface); border: 1px solid rgba(0,43,49,.28);
  border-radius: var(--radius-card); padding: var(--s-4);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.field--trap { position: absolute; left: -9999px; }
.form__note { font-size: var(--fs-micro); color: var(--muted); }
.form__status { font-size: var(--fs-small); line-height: var(--lh-small); border-left: 2px solid var(--accent); padding-left: var(--s-4); }
button.pill { border: 0; cursor: pointer; font: inherit; font-size: var(--fs-small); }

/* ---------- finder ---------- */
.avatar {
  position: fixed; z-index: 40; right: 20px; bottom: 120px;
  display: flex; align-items: center; gap: 10px; height: 44px;
  padding: 0 14px 0 10px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--accent);
  background: var(--ink); color: var(--surface);
  box-shadow: 0 12px 35px rgba(0, 31, 36, .22);
  font: 14px/1 var(--font-text);
}
.avatar__ring {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--surface);
}
.avatar kbd { margin-left: 4px; color: rgba(255,255,255,.55); font: 11px/1 inherit; }
.avatar:hover { background: var(--accent); }
.avatar:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 900px) {
  .avatar { bottom: auto; top: 88px; }
  .avatar kbd { display: none; }
}
.dialogue {
  width: min(640px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto; margin: auto; padding: 22px;
  border: 1px solid rgba(0,43,49,.18); border-radius: 18px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 12px 35px rgba(24, 59, 44, .12);
}
.askbox { display: grid; gap: 16px; }
.askbox__top { display: flex; align-items: center; justify-content: space-between; }
.askbox__label {
  margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.askbox__top button {
  border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 14px; cursor: pointer;
}
.askbox__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.askbox__row input {
  height: 48px; width: 100%; padding: 0 14px; border-radius: 12px;
  border: 1px solid rgba(0,43,49,.22); background: var(--surface-warm); color: var(--ink);
  font: inherit; font-size: 16px;
}
.askbox__row input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.askbox__row button {
  height: 48px; min-width: 124px; padding: 0 18px; border: 0; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--surface); cursor: pointer;
  font: inherit; font-size: 15px;
}
.askbox__row button:hover { background: var(--accent); }
.brief { position: relative; border-top: 1px solid rgba(0,43,49,.14); padding-top: 16px; }
.brief__beam {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 35% 100%; background-repeat: no-repeat;
}
.askbox.is-live .brief__beam { opacity: 1; animation: beam 1.6s linear infinite; }
.askbox.is-live .brief__orb { border-color: var(--accent); }
@keyframes beam { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) {
  .askbox.is-live .brief__beam { animation: none; opacity: 1; background: var(--accent); background-size: 100% 100%; }
}
.askbox__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.askbox__actions[hidden] { display: none !important; }
.askbox__actions .pill { min-height: 40px; font-size: 14px; }
.brief header { display: flex; justify-content: space-between; gap: 12px; }
.brief header span {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.askbox.is-live .brief header span[data-wizard-status] { color: var(--accent-deep); }
.brief h2 { margin: 8px 0 14px; font-size: 26px; line-height: 1.15; font-weight: 400; color: var(--ink); }
.brief__body { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; }
.brief__orb {
  width: 76px; height: 76px; display: grid; place-items: center;
  border: 1px solid rgba(0,43,49,.18); border-radius: 10px; background: var(--ink);
}
.askbox.is-live .brief__orb { border-color: var(--accent); }
.brief__orb svg { width: 64px; height: 64px; display: block; }
.brief__body p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.brief__left { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 520px) {
  .askbox__row { grid-template-columns: 1fr; }
  .brief__body { grid-template-columns: 64px 1fr; }
}
.dialogue::backdrop { background: rgba(0, 16, 20, .48); }
.dialogue__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.console { display: grid; color: var(--ink); background: var(--surface); border: 0; border-radius: 8px; padding: 22px; }
.console.is-live { box-shadow: inset 0 0 0 1px var(--accent); }
.console__head, .console__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.console__head { padding-bottom: 16px; border-bottom: 1px solid rgba(0,43,49,.16); }
.console__label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.console__head strong { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; }
.console__status { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.console__status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border: 1px solid currentColor; border-radius: 50%; vertical-align: 1px; }
.console.is-live .console__status { color: var(--accent-deep); }
.console.is-live .console__status::before { background: var(--accent); border-color: var(--accent); }
.console [data-dialogue-close] { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.console label { margin-top: 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.console textarea { width: 100%; min-height: 88px; margin-top: 8px; resize: vertical; font: inherit; font-size: 15px; line-height: 22px; color: var(--ink); background: var(--surface-warm); border: 1px solid rgba(0,43,49,.2); border-radius: 6px; padding: 12px; }
.console__process { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; min-height: 104px; padding: 16px 0; }
.console__orb { display: grid; place-items: center; width: 72px; height: 72px; color: var(--ink); }
.console__orb svg { width: 64px; height: 64px; display: block; }
.console.is-live .console__orb svg { animation: console-pulse 1.6s ease-in-out infinite; }
.console__copy span, .console__ledger { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.console__copy strong { display: block; margin: 4px 0; font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.console__copy p { margin: 0; font-size: 13px; line-height: 20px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.console__ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(0,43,49,.16); }
.console__ledger li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; min-height: 38px; border-bottom: 1px solid rgba(0,43,49,.16); }
.console__ledger b { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 14px; }
.console__ledger em { font-style: normal; }
.console__ledger li.is-current, .console__ledger li.is-done { color: var(--ink); }
.console__ledger li.is-done em { color: var(--accent-deep); }
.console__actions { padding-top: 16px; }
.console__actions span { font-size: 12px; color: var(--muted); }
.console .wizard__log { margin-top: 8px; }
@keyframes console-pulse { 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .console.is-live .console__orb svg { animation: none; } }
.dialogue .wizard { max-width: none; }
.wizard { display: grid; gap: var(--s-6); max-width: 760px; }
.wizard__log { display: grid; gap: var(--s-4); }
.wizard__log p { margin: 0; padding: var(--s-4); border-radius: var(--radius-card); font-size: var(--fs-small); line-height: var(--lh-small); }
.wizard__log p[data-role="user"] { background: var(--surface); }
.wizard__log p[data-role="assistant"] { background: transparent; border-left: 2px solid var(--accent); padding-left: var(--s-4); }
.wizard__status { margin: 0; font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.finder { display: grid; gap: var(--s-8); max-width: 760px; }
.finder fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.finder legend { font-size: 28px; line-height: 34px; margin-bottom: var(--s-6); }
.choice { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-small); line-height: var(--lh-small);
  padding: var(--s-4); border: 1px solid rgba(0,43,49,.24); border-radius: var(--radius-card); cursor: pointer; }
.choice:hover { border-color: var(--ink); }
.choice input { margin-top: 3px; accent-color: var(--accent-deep); }
.progress { font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.result { display: grid; gap: var(--s-6); padding: var(--s-10); border-radius: var(--radius-card); background: var(--surface-warm); color: var(--ink); }
.result h2 { font-size: 38px; line-height: 44px; }

/* ---------- offices ---------- */
.offices { display: grid; gap: var(--s-12); }
@media (min-width: 901px) { .offices { grid-template-columns: repeat(3, 1fr); } }
.office { border-top: 1px solid rgba(0,43,49,.16); padding-top: var(--s-6); }
.office h3 { font-size: 20px; line-height: 26px; margin-bottom: var(--s-4); }
.office dl { margin: 0; font-size: var(--fs-small); line-height: var(--lh-small); }
.office dt { font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: var(--s-4); }

/* ---------- legal prose ---------- */
.prose { max-width: 70ch; padding: var(--s-24) var(--gutter) var(--s-32); }
.prose h2 { font-size: 28px; line-height: 34px; margin: var(--s-12) 0 var(--s-4); }
.prose ul { padding-left: var(--s-6); }
.prose li { font-size: var(--fs-small); line-height: var(--lh-small); margin-bottom: var(--s-2); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--surface); padding: var(--s-24) var(--gutter) var(--s-8); }
.site-foot .cols { display: grid; gap: var(--s-12); }
@media (min-width: 901px) { .site-foot .cols { grid-template-columns: repeat(4, 1fr); } }
.site-foot h3 { font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: var(--s-4); }
.site-foot a { color: var(--surface); font-size: var(--fs-small); display: block; margin-bottom: var(--s-2); }
.site-foot a:hover { color: var(--accent); }
.site-foot p { font-size: var(--fs-small); line-height: var(--lh-small); color: rgba(255,255,255,.72); }
.site-foot .base { margin-top: var(--s-16); padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,.2);
  display: flex; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; font-size: var(--fs-micro); color: rgba(255,255,255,.66); letter-spacing: .04em; }

/* ---------- cookie banner ---------- */
.cookies {
  position: fixed; z-index: 50; left: var(--gutter); right: var(--gutter); bottom: var(--s-6);
  max-width: 720px; margin: 0 auto; padding: var(--s-8);
  background: var(--surface); color: var(--ink);
  border: 1px solid rgba(0,43,49,.2); border-radius: var(--radius-card);
  box-shadow: 0 18px 60px rgba(0,31,36,.18);
  display: grid; gap: var(--s-6);
}
.cookies[hidden] { display: none; }
.cookies p { font-size: var(--fs-small); line-height: var(--lh-small); margin: 0; }
.cookies .row { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.cookies a { text-decoration: underline; text-underline-offset: 4px; }

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

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .hero__h1 { font-size: var(--fs-h1-m); line-height: var(--lh-h1-m); }
  .hero--short .hero__body { padding-top: 104px; }
  .hero__foot { margin: 0 var(--gutter-m); flex-direction: column; align-items: start; gap: var(--s-3); }
  .site-head { padding: 18px var(--gutter-m); }
  .hero__body { padding: 118px var(--gutter-m) var(--s-6); }
  .page-head, .section, .section--tight, .route-page, .prose { padding-left: var(--gutter-m); padding-right: var(--gutter-m); }
  .page-head { padding-top: 120px; }
  .stat b { font-size: 40px; line-height: 44px; }
  .route h3 { font-size: 24px; line-height: 30px; }
  .route-page h1 { font-size: 40px; line-height: 44px; }
  .nav { display: none; }
  .nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: var(--s-4);
    background: var(--surface); color: var(--ink); padding: var(--s-8) var(--gutter-m);
    border-bottom: 1px solid rgba(0,43,49,.16);
  }
  .on-dark .nav.is-open { background: var(--ink); color: var(--surface); }
  .nav__toggle {
    display: inline-flex; min-height: 44px; align-items: center; padding: 0 var(--s-6);
    border-radius: var(--radius-pill); border: 1px solid currentColor; background: transparent;
    color: inherit; font: inherit; font-size: var(--fs-small); cursor: pointer;
  }
  .site-head { position: relative; }
  .hero .site-head { position: absolute; }
}

/* ---------- paper and ink tooth ---------- */
body,
.section,
.route-page,
.site-head--solid,
.dialogue,
.console,
.cookies,
.nav.is-open {
  background-image: var(--tex-paper);
  background-size: 256px 256px;
}
.section.section--warm,
.stack .step,
.callout,
.panel,
.contact .form,
.result {
  background-image:
    repeating-linear-gradient(90deg, rgba(0,43,49,.028) 0 1px, transparent 1px 11px),
    var(--tex-paper);
  background-size: auto, 256px 256px;
}
.section.section--ink,
.site-foot,
.on-dark .nav.is-open {
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 12px),
    var(--tex-ink);
  background-size: auto, 256px 256px;
}
.hero__scrim::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image: var(--tex-ink);
  background-size: 256px 256px;
  opacity: .22;
}
@media (prefers-reduced-motion: reduce) {
  .stack .step { background-image: none; }
}
