/* Elevation: a Line and Grid template. Bold and dark, with big type and big
   photos. 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: "Barlow"; src: url("/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --brand: #F4B400;        /* the firm's colour: buttons, figures, the yellow band */
  --brand-ink: #121416;    /* text on the brand colour */
  --bg: #121416;
  --raised: #1A1D20;       /* the quote form */
  --deep: #0B0C0D;         /* the footer */
  --ink: #F3F1EC;
  --muted: #A7ABAF;
  --rule: #2C3034;
  --field: #555B61;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1320px;
  --radius: 2px;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --fs-display: clamp(52px, 9vw, 128px);
  --fs-title: clamp(52px, 7.4vw, 112px);
  --fs-h2: clamp(40px, 5vw, 72px);
  --fs-h3: clamp(25px, 2.1vw, 30px);
  --fs-figure: clamp(36px, 3.8vw, 52px);
  --fs-lead: clamp(18px, 1.5vw, 21px);
  --fs-body: 17px;
  --fs-small: 15px;

  --s-section: clamp(72px, 9vw, 128px);
}

* { 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(--bg); color: var(--ink);
  font-family: "Barlow", "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-family: var(--display); font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: .9; letter-spacing: -0.012em; }
h2 { font-size: var(--fs-h2); line-height: .95; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.1; }
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; }
.meta { color: var(--brand); font-weight: 600; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--brand); color: var(--brand-ink); 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: #3A3F44; 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(--bg); font-weight: 600; }

/* ---------- Header ---------- */
.top { background: var(--bg); 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: 80px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1; }
.logo .mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); font-size: 26px; }
.logo small { display: block; margin-top: 3px; font-family: "Barlow", Arial, sans-serif; font-size: 13px; font-weight: 400; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; 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(--field); 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(--raised); border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px; }
  .menu-list a { padding: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: var(--radius); background: var(--brand); color: var(--brand-ink); text-decoration: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.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(--bg); filter: none; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: var(--fs-small); }

/* ---------- Home: hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 104px); }
.hero .intro { color: var(--brand); font-weight: 600; margin-bottom: 20px; }
.hero h1 { max-width: 11.5em; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px 48px; align-items: end; padding-block: clamp(32px, 4vw, 56px) clamp(40px, 5vw, 72px); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hero-img { margin: 0; }
.hero-img img { width: 100%; aspect-ratio: 12 / 5; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 860px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero .actions { justify-content: flex-start; }
  .hero-img img { aspect-ratio: 4 / 3; }
}

/* Three figures under the photo, with rules that run the strip's full height. */
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip li { display: grid; gap: 6px; align-content: start; padding: 32px 32px 36px 0; }
.strip li + li { border-left: 1px solid var(--rule); padding-left: 32px; }
.strip strong { font-family: var(--display); font-size: var(--fs-figure); line-height: 1; color: var(--brand); }
.strip span { color: var(--muted); }
@media (max-width: 760px) {
  .strip { grid-template-columns: 1fr; }
  .strip li { padding: 24px 0; }
  .strip li + li { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
}

/* ---------- 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(36px, 4.5vw, 56px); }
.section-head p { color: var(--muted); max-width: 32em; margin-top: 16px; }
.more { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* The fleet: tall photos, then words. No boxes. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 2.6vw, 36px); }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.tile h3 { margin-top: 22px; }
.tile .meta { margin-top: 6px; }
.tile p:not(.meta) { margin-top: 8px; color: var(--muted); }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } .tile img { aspect-ratio: 3 / 2; } }

/* The yellow band: the brand colour's one big moment. */
.band { background: var(--brand); color: var(--brand-ink); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 64px; align-items: end; padding-block: var(--s-section); }
.band h2 { color: var(--brand-ink); font-size: var(--fs-title); line-height: .9; }
.band p { color: #2B2A24; max-width: 26em; }
.band .phone { display: inline-block; margin-top: 24px; font-family: var(--display); font-weight: 700; font-size: var(--fs-figure); line-height: 1; color: var(--brand-ink); text-decoration: none; border-bottom: 3px solid currentColor; padding-bottom: 4px; }
.band :focus-visible { outline-color: var(--brand-ink); }
@media (max-width: 860px) { .band .wrap { grid-template-columns: 1fr; } }

/* Project photos with the name laid over the bottom edge. */
.shot { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--raised); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { position: absolute; inset: auto 0 0 0; padding: 64px 24px 20px; background: linear-gradient(to top, rgba(8, 9, 10, .82), rgba(8, 9, 10, 0)); }
.shot figcaption span { display: block; margin-top: 4px; color: #D3D6D9; font-size: var(--fs-small); }
.work { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 2.4vw, 32px); }
.work .shot:first-child { grid-row: span 2; }
.work .shot:not(:first-child) img { aspect-ratio: 3 / 2; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.gallery .shot img { aspect-ratio: 4 / 3; }
.gallery .shot:nth-child(3n + 1) { grid-column: 1 / -1; }
.gallery .shot:nth-child(3n + 1) img { aspect-ratio: 21 / 9; }
.credits { margin-top: 40px; color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 860px) {
  .work, .gallery { grid-template-columns: 1fr; }
  .work .shot:first-child { grid-row: auto; }
  .work .shot img, .gallery .shot img, .gallery .shot:nth-child(3n + 1) img { aspect-ratio: 4 / 3; }
}

/* Photo beside words: the about row, services and the about page. */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(56px, 7vw, 104px); }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split h2 { font-size: clamp(36px, 4vw, 60px); }
.split .meta { margin-top: 10px; }
.split p:not(.meta) { color: var(--muted); }
.split h2 + p, .split .meta + p { margin-top: 18px; }
.split p + p:not(.meta) { margin-top: 14px; }
.split ul { margin: 20px 0 0; padding-left: 20px; color: var(--muted); }
.split ul li + li { margin-top: 6px; }
.split .btn { margin-top: 36px; }
.section .split:nth-child(even) > img { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .section .split:nth-child(even) > img { order: 0; } }

.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 48px; margin-top: 36px; }
.facts strong { display: block; font-family: var(--display); font-size: var(--fs-figure); line-height: 1; color: var(--brand); }
.facts span { font-size: var(--fs-small); color: var(--muted); }

/* Lists of roles 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: 26px 0; border-bottom: 1px solid var(--rule); }
.rows .meta { color: var(--muted); font-weight: 400; }
.rows .meta.wide { grid-column: span 2; }
@media (max-width: 760px) { .rows > li { grid-template-columns: 1fr; } .rows .meta.wide { grid-column: auto; } }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); }
.contact .lead { margin-top: 18px; }
.contact .phone { display: inline-block; margin-top: 28px; font-family: var(--display); font-weight: 700; font-size: var(--fs-figure); line-height: 1; text-decoration: none; color: var(--brand); }
.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(--raised); 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 var(--field); border-radius: var(--radius); background: var(--bg); min-height: 50px; width: 100%; }
.quote textarea { min-height: 120px; resize: vertical; }
.quote .done { font-weight: 600; color: var(--brand); }
.quote .done:empty { display: none; }
@media (max-width: 860px) { .contact .wrap, .quote .pair { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-head { padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: var(--fs-title); max-width: 12em; }
.page-head .lead { margin-top: 24px; }
.section-head .lead { margin-top: 16px; }
.job { padding: 36px 0; border-bottom: 1px solid var(--rule); }
.job h2 { font-size: clamp(34px, 3.6vw, 52px); }
.job:first-child { border-top: 1px solid var(--rule); }
.job .facts-row { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 12px; color: var(--brand); font-weight: 600; 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: 24px; }

/* ---------- Footer ---------- */
.foot { background: var(--deep); border-top: 1px solid var(--rule); color: var(--muted); 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 h3 { font-family: "Barlow", Arial, sans-serif; font-size: var(--fs-body); font-weight: 600; margin-bottom: 12px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--brand); text-decoration: underline; }
.foot .logo:hover { text-decoration: none; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot .base { border-top: 1px solid var(--rule); }
.foot .base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 22px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }
