/* ── tokens.css ───────────────────────────────────────────── */
:root {
  --ink: #0e1a2b;
  --navy: #1b2a44;
  --navy-raised: #243553;
  --rule: #2a3a57;
  --bone: #e7e3da;
  --bone-muted: #9aa6b8;

  --font-display: "Bodoni Moda", "Bodoni Moda Fallback", serif;
  --font-body: "Archivo", "Archivo Fallback", sans-serif;

  --size-64: 4rem;
  --size-44: 2.75rem;
  --size-32: 2rem;
  --size-22: 1.375rem;
  --size-18: 1.125rem;
  --size-16: 1rem;
  --size-13: 0.8125rem;
  --size-11: 0.6875rem;

  /* Spacing scale. Every margin, padding and gap comes from this set —
     if a value is not here, it is not used. */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 48px;
  --s-9: 64px;
  --s-10: 96px;
  --s-11: 120px;

  --measure: 68ch;

  --max-width: 1180px;
  --gutter: 24px;
  --radius: 2px;

  --pad-section-desktop: 120px;
  --pad-section-mobile: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── fonts.css ───────────────────────────────────────────── */
@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Size-adjusted local stand-ins so a blocked webfont doesn't reflow the page or
   silently render in raw Times/Arial — swapped in only until the real face loads. */
@font-face {
  font-family: "Bodoni Moda Fallback";
  src: local("Times New Roman"), local("Times");
  size-adjust: 112%;
  ascent-override: 88%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 103%;
  ascent-override: 90%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ── base.css ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--size-16);
  line-height: 1.6;
  font-weight: 400;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Display type */
h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 {
  font-size: var(--size-32);
}
h2 {
  font-size: var(--size-32);
}
h3 {
  font-size: var(--size-22);
}

@media (min-width: 640px) {
  h1 {
    font-size: var(--size-44);
  }
  h2 {
    font-size: var(--size-32);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--size-64);
  }
  h2 {
    font-size: var(--size-44);
  }
}

/* Utility / eyebrow type */
.eyebrow,
.utility {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--size-11);
  letter-spacing: 0.14em;
  color: var(--bone-muted);
}

/* Body links */
.prose a,
.body-link {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}
.prose a:hover,
.body-link:hover {
  text-decoration-color: var(--bone);
}

/* Focus ring — visible everywhere, no exceptions */
:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 24px;
  top: -100px;
  background: var(--bone);
  color: var(--ink);
  padding: 12px 20px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--size-13);
  border-radius: var(--radius);
  z-index: 100;
  transition: top 150ms ease;
}
.skip-link:focus {
  top: 24px;
}

/* Layout */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding-block: var(--pad-section-mobile);
}
@media (min-width: 1024px) {
  .section {
    padding-block: var(--pad-section-desktop);
  }
}

.section--navy {
  background: var(--navy);
}

.section--full-bleed {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--size-16);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn--primary {
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--bone);
}
.btn--primary:hover {
  background: var(--bone-muted);
  border-color: var(--bone-muted);
}

.btn--secondary {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--rule);
}
.btn--secondary:hover {
  border-color: var(--bone);
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}

.field label {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--size-11);
  letter-spacing: 0.14em;
  color: var(--bone-muted);
}

.field input,
.field textarea,
.field select {
  min-height: 44px;
  background: var(--navy-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--size-16);
  padding: 10px 14px;
}

.field textarea {
  min-height: 120px;
  padding-top: var(--s-3);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--bone-muted);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: var(--s-1);
  accent-color: var(--bone);
}

.consent label {
  font-size: var(--size-13);
  color: var(--bone-muted);
  line-height: 1.6;
}

/* honeypot field — hidden from sighted users and screen readers, left in the tab order for nobody */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Verify brackets — deliberately visible, never styled to blend in */
.verify {
  color: var(--bone);
  background: var(--navy-raised);
  border: 1px dashed var(--bone-muted);
  padding: 2px 8px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9em;
}

/* Perch divider */
/* Bird is perched: its feet land on the rule rather than the rule crossing it. */
.perch {
  display: flex;
  align-items: flex-end;
  gap: var(--s-4);
  padding-block: 0;
}
.perch::before,
.perch::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
/* Mark is 23.89:48 — width is derived from height so it never squashes. */
.perch svg {
  width: 10px;
  height: 20px;
  color: var(--bone);
  flex-shrink: 0;
}

/* Scroll-in motion */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transform: none;
    transition: opacity 400ms var(--ease-out);
  }
}

/* Sticky mobile contact bar */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--navy);
  border-top: 1px solid var(--rule);
  padding: 12px var(--gutter);
  display: flex;
}
.mobile-cta .btn {
  width: 100%;
}
@media (min-width: 1024px) {
  .mobile-cta {
    display: none;
  }
}

/* ─── Typographic refinement ────────────────────────────────────────────── */

/* Display serifs need progressively tighter tracking as they scale up; a
   single value cannot serve 64px and 22px. */
h1 { letter-spacing: -0.022em; }
h2 { letter-spacing: -0.018em; }
h3 { letter-spacing: -0.012em; }
@media (max-width: 639px) {
  h1, h2 { letter-spacing: -0.014em; }
}

/* Stop headlines dropping a single word onto the last line. */
h1, h2, h3, .hero__lede {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

/* Spanish sets long compound words in narrow columns; allow breaking rather
   than letting them punch out of the measure. */
html[lang="es"] p,
html[lang="es"] li {
  hyphens: auto;
}

/* Default selection is browser blue — a seventh colour on a closed palette. */
::selection {
  background: var(--bone);
  color: var(--ink);
}

/* In-page anchors jump otherwise; scroll-padding keeps the target clear of
   the sticky header. Suppressed under reduced motion. */
html {
  scroll-padding-top: var(--s-9);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Licence and reference numbers should align in columns, not wobble. */
.person__license,
.trust-strip__item,
.step__num {
  font-variant-numeric: lining-nums tabular-nums;
}

/* ─── Prose and spacing utilities ───────────────────────────────────────── */
.prose-muted {
  color: var(--bone-muted);
  max-width: var(--measure);
}
.measure { max-width: var(--measure); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-7 { margin-bottom: var(--s-7); }
.mb-8 { margin-bottom: var(--s-8); }
.stack > * + * { margin-top: var(--s-4); }
.section-gap { height: var(--s-7); }

.list { list-style: disc; padding-left: var(--s-5); }
.centred { margin-inline: auto; }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mb-0 { margin-bottom: 0; }
.mb-6 { margin-bottom: var(--s-6); }
.measure-wide { max-width: 900px; }
.inline-block { display: inline-block; }
.sprite { position: absolute; }
.placeholder-box {
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: var(--s-8) var(--s-6);
  text-align: center;
}

/* ─── Print ─────────────────────────────────────────────────────────────────
   Brokerage pages get printed: a seller takes the process page to the kitchen
   table, an owner prints the proposal steps. Navy on navy wastes a cartridge
   and reads as nothing, so print inverts to ink on paper and drops anything
   that is navigation rather than content. */
@media print {
  :root {
    --ink: #ffffff;
    --navy: #ffffff;
    --navy-raised: #ffffff;
    --rule: #b6b6b6;
    --bone: #111111;
    --bone-muted: #444444;
  }
  body { background: #fff; color: #111; }
  .nav, .mobile-cta, .perch, .photo-band__media, form, .skip-link { display: none !important; }
  .section { padding-block: var(--s-6); }
  .hero { padding-block: var(--s-5) var(--s-6); }
  a { text-decoration: underline; }
  /* URLs are useless on paper unless printed out */
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  .verify { border: 1px solid #999; color: #111; background: #f2f2f2; }
  .step, .faq-item, .division { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  .footer { border-top: 1px solid #b6b6b6; }
  img { max-width: 60mm; }
}

/* ── layout.css ───────────────────────────────────────────── */
/* Nav */
.nav {
  border-bottom: 1px solid var(--rule);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 88px;
  flex-wrap: wrap;
  padding-block: var(--s-3);
}

/* Set at --size-32: §4 puts a 28px floor under the display serif because its
   hairlines disappear below that, and the mark was sitting at 22px. */
.nav__mark {
  font-family: var(--font-display);
  font-size: var(--size-32);
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--bone);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.nav__mark svg {
  width: 13px;
  height: 26px;
  color: var(--bone);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: none;
  font-size: var(--size-13);
  color: var(--bone-muted);
  position: relative;
  transition: color 150ms ease;
}
.nav__links a:hover {
  color: var(--bone);
}
.nav__links a[aria-current="page"] {
  color: var(--bone);
}
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 1px;
  background: var(--bone);
}

.nav__lang {
  border-left: 1px solid var(--rule);
  margin-left: var(--s-1);
  padding-left: 12px !important;
}

/* Hero */
.hero {
  padding-top: var(--pad-section-mobile);
  padding-bottom: var(--pad-section-mobile);
}
@media (min-width: 1024px) {
  .hero {
    padding-top: var(--pad-section-desktop);
    padding-bottom: var(--pad-section-desktop);
  }
}

.hero__content {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: var(--s-5);
}

.hero__lede {
  font-size: var(--size-18);
  color: var(--bone-muted);
  max-width: 52ch;
  margin-bottom: var(--s-7);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: flex-start;
}
@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
  }
}

/* Trust strip */
.trust-strip {
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--rule);
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  align-items: baseline;
}
.trust-strip__item {
  font-size: var(--size-13);
  color: var(--bone-muted);
}

/* Two-column section (label + content) used by lead magnet, who-we-are, cross-border */
.split {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: 4fr 8fr;
    gap: var(--s-9);
  }
}

.split__label {
  align-self: start;
}

.split__label h2 {
  margin-top: var(--s-3);
}

/* Division fork — stacked asymmetric bands, homepage only.
   Deliberately NOT three columns across: §15 forbids the three-column
   icon+heading+paragraph grid, and bands give each division room to explain
   itself while keeping the asymmetry §15 asks for as the default. */
.divisions {
  border-top: 1px solid var(--rule);
}

.division {
  border-bottom: 1px solid var(--rule);
  padding-block: var(--s-7);
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 1024px) {
  .division {
    grid-template-columns: 4fr 8fr;
    gap: var(--s-9);
    padding-block: var(--s-8);
  }
}

.division__head {
  align-self: start;
}

.division h3 {
  font-size: var(--size-32);
  margin-top: var(--s-3);
}

.division__body {
  color: var(--bone-muted);
  margin-bottom: var(--s-5);
  max-width: 62ch;
}

.division__services {
  margin-bottom: var(--s-6);
}
@media (min-width: 640px) {
  .division__services {
    columns: 2;
    column-gap: var(--s-6);
  }
}
.division__services li {
  font-size: var(--size-13);
  color: var(--bone-muted);
  padding-block: var(--s-2);
  border-bottom: 1px solid var(--rule);
  break-inside: avoid;
}

/* Who we are.
   Cards are width-capped rather than filling their column, so the section
   reads the same whether it holds one person or several. */
.people {
  display: grid;
  gap: var(--s-8);
}
@media (min-width: 640px) {
  .people {
    grid-template-columns: 1fr 1fr;
  }
}
.person {
  max-width: 440px;
}
.person__photo {
  aspect-ratio: 4 / 5;
  background: var(--navy);
  border: 1px dashed var(--rule);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
  padding: var(--s-4);
  text-align: center;
}
.person__photo:has(img) {
  border-style: solid;
  border-color: var(--rule);
  padding: 0;
}
.person__photo img,
.person__photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.person h3 {
  margin-bottom: var(--s-1);
}
.person__title {
  color: var(--bone-muted);
  font-size: var(--size-13);
  margin-bottom: var(--s-3);
  display: block;
}

/* License line — kept at utility scale so the TREC number reads as a
   credential, not as body copy. */
.person__license {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--size-11);
  letter-spacing: 0.14em;
  color: var(--bone-muted);
  display: block;
  margin-bottom: var(--s-4);
}

.person__creds {
  margin-bottom: var(--s-4);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: var(--s-3);
}
.person__creds li {
  display: inline;
  font-size: var(--size-13);
  color: var(--bone-muted);
}
.person__creds li:not(:last-child)::after {
  content: " · ";
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding-block: var(--s-5);
}
.faq-item h3 {
  margin-bottom: var(--s-3);
  font-size: var(--size-18);
  font-family: var(--font-body);
  font-weight: 500;
}
.faq-item p {
  color: var(--bone-muted);
  max-width: 68ch;
}

/* Testimonials */
.testimonials {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 1024px) {
  .testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}
.testimonial {
  border-left: 1px solid var(--rule);
  padding-left: var(--s-5);
}
.testimonial p {
  margin-bottom: var(--s-4);
}
.testimonial cite {
  font-style: normal;
  font-size: var(--size-13);
  color: var(--bone-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--rule);
  padding-block: var(--s-9);
}
.footer__top {
  display: grid;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
@media (min-width: 640px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .footer__top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.footer__mark {
  font-family: var(--font-display);
  font-size: var(--size-22);
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.footer__mark svg {
  width: 8px;
  height: 16px;
}
.footer h3 {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--size-11);
  letter-spacing: 0.14em;
  color: var(--bone-muted);
  margin-bottom: var(--s-4);
}
.footer ul li {
  margin-bottom: var(--s-3);
}
.footer ul a {
  text-decoration: none;
  font-size: var(--size-13);
  color: var(--bone-muted);
}
.footer ul a:hover {
  color: var(--bone);
}
.footer__compliance {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-6);
  font-size: var(--size-13);
  color: var(--bone-muted);
}
.footer__compliance p {
  margin-bottom: var(--s-3);
  max-width: 80ch;
}
.footer__eho {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.footer__eho img {
  width: 52px;
  height: 56px;
  flex-shrink: 0;
}
.footer__eho span {
  font-size: var(--size-13);
  color: var(--bone-muted);
}

/* Page padding so content clears the sticky mobile CTA bar */
body.has-mobile-cta {
  padding-bottom: 76px;
}
@media (min-width: 1024px) {
  body.has-mobile-cta {
    padding-bottom: 0;
  }
}

/* Photo band — a client photograph carrying a section rather than decorating it.
   The scrim sits at 0.86 because the brightest city lights would otherwise drop
   --bone-muted body copy below the 4.5:1 AA floor; measured, not guessed. The
   band fades to --ink top and bottom so the photograph dissolves into the page
   instead of sitting in a hard-edged box. No fixed attachment: §13 rules out
   parallax. */
.photo-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.photo-band__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.photo-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.photo-band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--ink) 0%,
    rgba(14, 26, 43, 0.86) 18%,
    rgba(14, 26, 43, 0.86) 82%,
    var(--ink) 100%
  );
}

/* Process steps — the sequence a client actually goes through.
   Numerals set in the display serif so the sequence reads as structure rather
   than as a bulleted list. Two columns, never three (§15), left-aligned. */
.steps {
  border-top: 1px solid var(--rule);
}

.step {
  display: grid;
  gap: var(--s-2);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 640px) {
  .step {
    grid-template-columns: 72px 1fr;
    column-gap: var(--s-6);
    padding-block: var(--s-6);
  }
}

.step__num {
  font-family: var(--font-display);
  font-size: var(--size-32);
  line-height: 1;
  color: var(--bone-muted);
  font-variant-numeric: lining-nums tabular-nums;
}

.step__body h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--size-18);
  margin-bottom: var(--s-2);
}

.step__body p {
  color: var(--bone-muted);
  max-width: 70ch;
}

.step__body p + p {
  margin-top: var(--s-3);
}
