/* Pacific Genesis, Inc. — every style on the site.
 *
 * The palette is white-ground and near-monochrome: white page, one light gray
 * surface, one navy ink, one blue accent. Dark fills appear exactly three times
 * on a client page (the "You win" ladder row, the "Home market" card header,
 * the CTA) plus pill hover. That restraint is the design — resist adding
 * surfaces, tints, or shadows. There are no shadows anywhere; separation is
 * hairline and value only.
 *
 * Contents
 *   0. Fonts
 *   1. Tokens
 *   2. Reset & base
 *   3. Shared primitives   (eyebrow, hairline grid, wordmark, breadcrumb)
 *   4. Gate                (/)
 *   5. Branch              (/domestic, /international)
 *   6. Client page         (/<branch>/<client>)
 *  6b. Enquiry form
 *   7. Contact footer
 *   8. 404
 *   9. Responsive
 *  10. Reduced motion & print
 */

/* ----------------------------------------------------------------- 0. Fonts */

/* Self-hosted and subset by tools/fonts.py, so the pages make no third-party
   requests. Both are variable fonts: Source Serif 4 keeps its optical-size
   axis because the site sets it from 15px to 60px.
   Neither family carries arrow glyphs, so the -> and <- characters fall through
   to the system sans, as they did in the prototype. */

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- 1. Tokens */

:root {
  /* 12 colors, and that is the whole system. */
  --white: #ffffff;
  --surface: #f5f6f7; /* banded sections, engagement box, pills, row hover */
  --border: #e3e7ea; /* every hairline */
  --border-ladder: #d8dee3; /* ladder grid only, one step darker */
  --separator: #c9d0d6; /* breadcrumb "/" and row arrows */
  --ink: #16242e; /* headings, primary text, dark fills */
  --names: #33454f; /* client-name list only */
  --body: #4a5a66; /* body copy */
  --muted: #5a6a76; /* secondary text, notes, indices */
  --label-on-dark: #9fb0bb; /* "Home market" label */
  --primary: #0e5570; /* eyebrows, accent rules, CTA, links, <em> */
  --primary-hover: #093d52;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;

  --gutter: 40px; /* page gutter, everywhere */
  --content: 1180px; /* client pages */
  --content-wide: 1360px; /* branch pages */

  /* Display sizes step down on narrow screens; see §9. */
  --fs-door: 60px;
  --fs-h1: 56px;
  --fs-h1-branch: 52px;
  --fs-footer: 40px;
  --fs-h2: 34px;
}

/* ------------------------------------------------------- 2. Reset & base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

/* Keyboard focus has to be visible even though nothing here has a hover-only
   affordance; the outline uses the accent, offset so it never touches text. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

img {
  max-width: 100%;
}

p {
  margin: 0;
}

h1,
h2 {
  margin: 0;
  font-weight: 400;
}

::selection {
  background: var(--primary);
  color: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — appears only on focus. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}

.skip:focus {
  left: 8px;
  top: 8px;
  color: var(--white);
}

/* --------------------------------------------------- 3. Shared primitives */

/* The one eyebrow form on the site. */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow--wide {
  letter-spacing: 0.18em;
}

.eyebrow--hero {
  letter-spacing: 0.16em;
}

.eyebrow--micro {
  font-size: 10.5px;
  letter-spacing: 0.14em;
}

/* The site's recurring structural idiom: a 1px gap over a border-colored
   parent draws every divider in a card grid. Used five times. */
.hairline-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.hairline-grid > * {
  background: var(--white);
}

.wrap {
  max-width: var(--content);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.wordmark .comma {
  color: var(--primary);
}

a.wordmark:hover {
  color: var(--primary);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}

.crumbs .sep {
  color: var(--separator);
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs .current {
  color: var(--ink);
}

.section-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--ink);
  /* Title-cased in CSS, not in the copy: applied per word, so "U.S." and
     "AEC" survive. */
  text-transform: capitalize;
}

/* Header row shared by "What you get from us" and the doors section. */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-note {
  font-size: 14px;
  color: var(--muted);
}

.section-note--serif {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

/* --------------------------------------------------------------- 4. Gate */

.gate {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.gate__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--gutter);
  border-bottom: 1px solid var(--border);
}

.gate__header .wordmark {
  font-size: 23px;
}

.gate__tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

/* The 1px gap is the hairline divider between the two doors. */
.gate__doors {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  min-height: 620px;
}

/* A full-strength photograph with a white copy panel resting on it. No scrim,
   no overlay, no filter — all copy lives inside the white panel, so contrast
   never depends on what the image happens to be doing. An earlier revision put
   text on a scrimmed photo; it was replaced for exactly this reason. Do not
   reintroduce it. */
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0;
  background: var(--surface);
  overflow: hidden;
  transition: padding-bottom 0.35s ease;
}

/* Hover lifts the white panel off the bottom edge. Nothing scales, fades,
   or shadows. */
.door:hover,
.door:focus-visible {
  padding-bottom: 16px;
}

.door__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.door__panel {
  position: relative;
  background: var(--white);
  margin: 34px;
  padding: 28px 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 460px;
}

.door__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-door);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.door__body {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--body);
}

.door__enter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 4px;
}

.door__enter .arrow {
  color: var(--primary);
  font-size: 17px;
}

.gate__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--border);
}

.gate__footer span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}

/* ------------------------------------------------------------- 5. Branch */

.branch {
  min-height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.branch__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--border);
}

.branch__header .wordmark {
  font-size: 20px;
}

.branch__body {
  flex: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  max-width: var(--content-wide);
  width: 100%;
  margin: 0 auto;
  padding: 72px var(--gutter) 80px;
  gap: 64px;
}

.branch__intro {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 100px;
}

.branch__h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h1-branch);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
}

.branch__blurb {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  max-width: 420px;
  text-wrap: pretty;
}

.branch__cross {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 6px;
  align-self: flex-start;
}

.branch__cross:hover {
  color: var(--ink);
}

.branch__cross .arrow {
  font-size: 15px;
}

/* Dividers between and around every row, none on the sides. */
.branch__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* The row slides right as it lights up — an 8px nudge. This is the site's
   signature interaction; keep it. */
.row {
  background: var(--white);
  display: grid;
  grid-template-columns: 54px 1fr 28px;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  transition: background 0.25s ease, padding 0.25s ease;
}

.row:hover,
.row:focus-visible {
  background: var(--surface);
  padding-left: 32px;
}

.row__n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
}

.row__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.row__name {
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.row__desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.row__arrow {
  font-size: 18px;
  color: var(--separator);
  text-align: right;
}

/* -------------------------------------------------------- 6. Client page */

.client {
  min-height: 100vh;
  background: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__bar {
  max-width: var(--content);
  margin: 0 auto;
  padding: 15px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .wordmark {
  font-size: 19px;
  margin-right: 6px;
}

.cta {
  background: var(--primary);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.cta:hover {
  background: var(--primary-hover);
  color: var(--white);
}

/* Hero */

.hero {
  background: var(--white);
}

.hero__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 66px var(--gutter) 54px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: end;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: pretty;
}

.hero__lede {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--body);
  max-width: 660px;
  text-wrap: pretty;
}

/* The four-step ladder — the firm's core promise. The payoff row inverts. */
.ladder {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-ladder);
  border: 1px solid var(--border-ladder);
  border-radius: 8px;
  overflow: hidden;
}

.ladder__step {
  background: rgba(255, 255, 255, 0.92);
  padding: 11px 16px;
  font-size: 12.5px;
  color: var(--body);
}

.ladder__step--win {
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

/* Full-bleed photograph, edge to edge, at full strength with no scrim. */
.band-photo {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* "What you get from us" — the one tinted band. */
.gets {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gets__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 44px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.gets__grid {
  grid-template-columns: repeat(5, 1fr);
}

.card {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card__n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}

.card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* Section rhythm below the band. */
.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 62px var(--gutter) 0;
}

.section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.section--clients {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 60px;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
}

.stack--16 {
  gap: 16px;
}

.stack--18 {
  gap: 18px;
}

.stack--14 {
  gap: 14px;
}

.stack--20 {
  gap: 20px;
}

.prose {
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  text-wrap: pretty;
}

.engagement {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.engagement__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--body);
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}

/* The 2px rule is the only accent rule on the page. */
.step {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 2px solid var(--primary);
  padding-top: 12px;
}

.step__n {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.step__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.step__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* Doors — static grid, not interactive. */
.doors__grid {
  grid-template-columns: 1fr 1fr;
}

.door-item {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  align-items: baseline;
}

.door-item__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.door-item__desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.clients__note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

/* Deliberately airy — it reads as a list, not a paragraph. */
.clients__names {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--names);
}

.variety {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--body);
}

/* Where we deliver */

.markets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.market {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.market__head {
  padding: 11px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.market__head--home {
  background: var(--ink);
}

.market__head--home .market__name {
  color: var(--white);
}

.market__head--home .market__label {
  color: var(--label-on-dark);
}

.market__head--reach {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.market__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.market__label {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.market__body {
  background: var(--white);
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--body);
}

/* Lateral nav — the escape hatch for a visitor who picked wrong, and it keeps
   every client page one click from every other in its branch. */
.lateral {
  max-width: var(--content);
  margin: 0 auto;
  padding: 56px var(--gutter) 62px;
}

.lateral__inner {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--body);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px;
}

.pill:hover,
.pill:focus-visible {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ------------------------------------------------- 6b. Enquiry form */

/* Lead capture, posted to Formspree. It sits between the lateral nav and the
   contact footer, so the designed footer is untouched. White ground and
   hairline rules only - the form must read as part of the page, not as a
   widget dropped onto it. */

.enquiry {
  border-top: 1px solid var(--border);
}

.enquiry__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 56px var(--gutter) 4px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.enquiry__intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.enquiry__h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
}

.enquiry__lede {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  max-width: 420px;
  text-wrap: pretty;
}

.enquiry__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  width: 100%;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

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

.field input:hover,
.field textarea:hover {
  border-color: var(--separator);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.enquiry__send {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* The submit reuses the header CTA exactly; it is the same promise. */
.enquiry__form button.cta {
  font-family: inherit;
  border: 0;
  cursor: pointer;
  padding: 11px 22px;
}

.enquiry__note {
  font-size: 13px;
  color: var(--muted);
}

/* -------------------------------------------------- 7. Contact footer */

.contact {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.contact__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 56px var(--gutter) 60px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.contact__left {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact__line {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-footer);
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.contact__line em {
  color: var(--primary);
}

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.byline__photo {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.byline__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.byline__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.byline__book {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.contact__right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid var(--border);
  padding-left: 40px;
}

.contact__email {
  font-family: var(--serif);
  font-size: 27px;
  color: var(--ink);
  letter-spacing: -0.01em;
  align-self: flex-start;
}

.contact__email:hover {
  color: var(--primary);
}

.contact__phone {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  align-self: flex-start;
}

a.contact__phone:hover {
  color: var(--primary);
}

.contact__site {
  font-size: 13.5px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ 8. 404 */

.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.notfound__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  max-width: var(--content);
  width: 100%;
  margin: 0 auto;
  padding: 80px var(--gutter);
}

.notfound__h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h1-branch);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
}

.notfound__body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  max-width: 520px;
  text-wrap: pretty;
}

/* ----------------------------------------------------------- 9. Responsive */

/* Short viewports — the gate's job is one decision with nothing else on screen
   and no scroll. The doors' 620px floor plus the header and footer overflow a
   laptop's ~660px of content height, so drop the floor and let flex:1 size
   them; the white panel needs about 320px and always has more than that. */
@media (min-width: 681px) and (max-height: 820px) {
  .gate__doors {
    min-height: 0;
  }
}

/* Tablet — the wide asymmetric splits stop earning their keep. */
@media (max-width: 1040px) {
  :root {
    --fs-door: 46px;
    --fs-h1: 44px;
    --fs-h1-branch: 42px;
    --fs-footer: 34px;
    --fs-h2: 30px;
  }

  .branch__body {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 52px;
    padding-bottom: 60px;
  }

  /* The left column stops being sticky and simply sits above the list. */
  .branch__intro {
    position: static;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
    padding-top: 52px;
    padding-bottom: 42px;
  }

  .gets__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section--split,
  .section--clients {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
  }

  .enquiry__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 46px;
  }

  /* Stacked, the vertical rule becomes a horizontal one. */
  .contact__right {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 30px;
  }

  .door__panel {
    margin: 26px;
    padding: 24px 26px 22px;
  }
}

/* Phone — everything to one column; the gate becomes two full-width bands. */
@media (max-width: 680px) {
  :root {
    --gutter: 22px;
    --fs-door: 40px;
    --fs-h1: 36px;
    --fs-h1-branch: 34px;
    --fs-footer: 28px;
    --fs-h2: 26px;
  }

  .gate__header {
    padding: 18px var(--gutter);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .gate__doors {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  /* Each door becomes a full-width band: photo behind, panel resting on it. */
  .door {
    min-height: 62vh;
  }

  .door__panel {
    margin: 16px;
    padding: 22px 22px 20px;
    gap: 12px;
    max-width: none;
  }

  .branch__header {
    padding: 16px var(--gutter);
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-header__bar {
    padding: 12px var(--gutter);
    gap: 12px;
  }

  .site-header .wordmark {
    font-size: 17px;
  }

  .row {
    grid-template-columns: 40px 1fr 20px;
    gap: 14px;
    padding: 18px var(--gutter);
  }

  .row:hover,
  .row:focus-visible {
    padding-left: calc(var(--gutter) + 8px);
  }

  .row__name {
    font-size: 19px;
  }

  .gets__grid,
  .doors__grid,
  .steps,
  .markets {
    grid-template-columns: 1fr;
  }

  /* Label above description once the 168px column no longer fits. */
  .door-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .band-photo {
    height: 200px;
  }

  .gets__inner {
    padding-top: 36px;
    padding-bottom: 38px;
  }

  .section {
    padding-top: 46px;
  }

  .lateral {
    padding: 42px var(--gutter) 48px;
  }

  .contact__inner {
    padding: 42px var(--gutter) 48px;
  }

  .enquiry__inner {
    padding: 40px var(--gutter) 4px;
  }

  /* Two side-by-side inputs stop being usable at phone width. */
  .field-pair {
    grid-template-columns: 1fr;
  }

  .hero__lede {
    font-size: 17.5px;
  }

  .contact__email {
    font-size: 23px;
    word-break: break-word;
  }
}

/* ------------------------------------------------ 10. Reduced motion, print */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .lateral,
  .band-photo,
  .enquiry__form {
    display: none;
  }

  body {
    color: #000;
  }
}
