/* Plan: a Line and Grid template. Light, calm and photo-led.
   To set it up for a firm, change the tokens below (one brand colour does
   most of the work), swap the photos in img/, and edit the copy. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --brand: #1D3A5F;        /* the firm's colour: buttons, links, the about band */
  --brand-ink: #FFFFFF;    /* text on the brand colour */
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --ink: #16191C;
  --muted: #555B60;
  --rule: #E2E0D9;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --radius: 4px;

  --fs-display: clamp(40px, 5.4vw, 72px);
  --fs-h2: clamp(30px, 3.4vw, 44px);
  --fs-h3: clamp(21px, 1.9vw, 24px);
  --fs-lead: clamp(18px, 1.5vw, 20px);
  --fs-body: 17px;
  --fs-small: 15px;

  --s-section: clamp(64px, 8vw, 112px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; font-stretch: 94%; color: var(--ink); }
h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 34em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 20; }
.skip:focus { top: 12px; }

/* The example bar: only on the demo. Delete it for a client. */
.example { background: var(--ink); color: #D9DCDF; font-size: 14px; }
.example .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between; padding-block: 10px; }
.example a { color: var(--white); font-weight: 600; }

/* ---------- Header ---------- */
.top { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-stretch: 92%; font-size: 19px; letter-spacing: -0.01em; line-height: 1.1; }
.logo .mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); font-size: 20px; }
.logo small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .btn, .nav .btn:hover { color: var(--brand-ink); text-decoration: none; padding: 0 18px; }
.menu { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 10px 14px; border: 1px solid var(--rule); border-radius: var(--radius); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-list { display: grid; }
  .menu-list { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px; }
  .menu-list a { padding: 12px; color: var(--ink); text-decoration: none; font-weight: 500; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--radius); background: var(--brand); color: var(--brand-ink); font-weight: 600; text-decoration: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); filter: none; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: var(--fs-small); }

/* ---------- Home: hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) var(--s-section); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .intro { font-weight: 600; color: var(--brand); margin-bottom: 18px; }
.hero .lead { margin-top: 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.ticks { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg) translateY(-3px); }
.hero figure { margin: 0; }
.hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero img { aspect-ratio: 4 / 3; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-section); border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { color: var(--muted); max-width: 32em; }
.more { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* Services and projects: photo, then words. No boxes. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.tile h3 { margin-top: 18px; }
.tile p { margin-top: 8px; color: var(--muted); }
.tile .where { margin-top: 6px; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }

/* The about band: the brand colour's one big moment. */
.band { background: var(--brand); color: var(--brand-ink); }
.band h2, .band h3 { color: var(--brand-ink); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: var(--s-section); }
.band p { color: rgba(255, 255, 255, .82); margin-top: 18px; max-width: 34em; }
.band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 48px; margin-top: 36px; }
.facts strong { display: block; font-size: clamp(32px, 3.6vw, 44px); line-height: 1; font-stretch: 90%; letter-spacing: -0.02em; color: var(--brand-ink); }
.facts span { font-size: var(--fs-small); color: rgba(255, 255, 255, .78); }
.band .btn { background: var(--white); color: var(--brand); margin-top: 36px; }
@media (max-width: 860px) { .band .wrap { grid-template-columns: 1fr; } }

/* Lists of roles and services with a rule between rows. */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows > li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; gap: 16px 32px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.rows .meta { color: var(--muted); }
@media (max-width: 760px) { .rows > li { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); }
.contact .phone { display: inline-block; margin-top: 28px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; font-stretch: 92%; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.contact dl { margin: 28px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; }
.quote { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.quote .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote label { display: grid; gap: 6px; font-weight: 600; font-size: var(--fs-small); }
.quote input, .quote textarea, .quote select { font: inherit; font-weight: 400; font-size: var(--fs-body); color: var(--ink); padding: 12px 14px; border: 1px solid #8D9296; border-radius: var(--radius); background: var(--white); min-height: 48px; width: 100%; }
.quote textarea { min-height: 120px; resize: vertical; }
.quote .note { font-size: var(--fs-small); color: var(--muted); }
.quote .done { font-weight: 600; color: var(--brand); }
@media (max-width: 860px) { .contact .wrap, .quote .pair { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(48px, 6vw, 88px) clamp(32px, 4vw, 56px); }
.page-head .lead { margin-top: 20px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split + .split { margin-top: clamp(48px, 6vw, 80px); }
.split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.split ul { margin: 18px 0 0; padding-left: 20px; color: var(--muted); }
.split ul li + li { margin-top: 6px; }
.split p + p { margin-top: 14px; }
.split p { color: var(--muted); }
.split h2 + p, .split h3 + p { margin-top: 14px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { margin-top: 14px; }
.gallery figcaption span { display: block; color: var(--muted); font-size: var(--fs-small); margin-top: 2px; }
.job { padding: 32px 0; border-bottom: 1px solid var(--rule); }
.job:first-child { border-top: 1px solid var(--rule); }
.job .facts-row { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 10px; color: var(--muted); font-size: var(--fs-small); }
.job p { margin-top: 14px; color: var(--muted); max-width: 46em; }
.job ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.job .btn { margin-top: 20px; }
@media (max-width: 860px) { .split, .gallery { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #C9CDD1; font-size: var(--fs-small); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 56px 40px; }
.foot .logo { color: var(--white); }
.foot .logo small { color: #A9AEB3; }
.foot h3 { color: var(--white); font-size: var(--fs-body); font-stretch: 100%; letter-spacing: 0; margin-bottom: 12px; }
.foot a { color: #E6E8EA; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot .base { border-top: 1px solid #2E3337; }
.foot .base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 22px; grid-template-columns: none; color: #A9AEB3; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }
