/* =========================================================
   ASHFORD BROWN — asset register
   Direction: engineering document set. Datum rules, plate
   numbers, survey ticks. Petroleum navy + brass on steel.
   ========================================================= */

/* ---------- tokens ---------- */
:root {
  --ink: #060E19;
  --navy: #0E2340;
  --navy-2: #16304F;
  --navy-3: #1E3E63;
  --steel: #5A6B80;
  --steel-2: #8494A6;

  --paper: #EDF0F2;
  --paper-2: #E1E6E9;
  --paper-3: #D3DADE;
  --white: #FFFFFF;

  --brass: #C08B3F;
  --brass-2: #DCA95E;
  --brass-3: #F0DDBB;

  --line: rgba(14, 35, 64, .14);
  --line-2: rgba(14, 35, 64, .08);
  --line-dark: rgba(255, 255, 255, .13);
  --line-dark-2: rgba(255, 255, 255, .07);

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --sec: clamp(64px, 8vw, 124px);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: clamp(48px, 5vw, 76px); }
.grid { display: grid; gap: clamp(20px, 2.6vw, 34px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.on-navy { background: var(--navy); color: var(--paper); }
.on-ink { background: var(--ink); color: var(--paper); }
.on-white { background: var(--white); }

/* ---------- type utilities ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--brass);
  flex: none;
}
.h-xl { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.h-lg { font-size: clamp(2rem, 4vw, 3.15rem); }
.h-md { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.h-sm { font-size: clamp(1.15rem, 1.5vw, 1.35rem); letter-spacing: -.01em; }
.lede { font-size: clamp(1.02rem, 1.35vw, 1.18rem); line-height: 1.7; color: var(--steel); max-width: 62ch; }
.on-navy .lede, .on-ink .lede { color: rgba(237, 240, 242, .72); }
.muted { color: var(--steel); }
.on-navy .muted, .on-ink .muted { color: rgba(237, 240, 242, .6); }
.plate { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--brass); }

/* ---------- signature: the datum rule ---------- */
/* A survey staff. Ticks every 24px, a taller mark every 5th,
   and a brass caret that flags the section you're reading. */
.datum {
  position: relative;
  height: 22px;
  border-top: 1px solid var(--line);
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 24px);
  background-size: 100% 7px;
  background-repeat: no-repeat;
  background-position: 0 0;
}
.datum::after {
  content: "";
  position: absolute;
  top: -1px; left: var(--gutter);
  width: 46px; height: 3px;
  background: var(--brass);
}
.on-navy .datum, .on-ink .datum {
  border-top-color: var(--line-dark);
  background-image: repeating-linear-gradient(to right, var(--line-dark) 0 1px, transparent 1px 24px);
}
.datum-label {
  position: absolute;
  top: 9px; left: var(--gutter);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel-2);
}

/* section head with index */
.sec-head { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: start; }
.sec-head .idx { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--brass); padding-top: 7px; border-top: 2px solid var(--brass); }
.sec-head .body { max-width: 74ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--navy);
  background: var(--navy); color: var(--paper);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn .ar { transition: transform .3s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.btn--brass { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--ink); border-color: var(--ink); color: var(--brass-3); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.on-navy .btn--ghost, .on-ink .btn--ghost { color: var(--paper); border-color: var(--line-dark); }
.on-navy .btn--ghost:hover, .on-ink .btn--ghost:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }

.link-more {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); border-bottom: 1px solid var(--brass); padding-bottom: 4px;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.link-more:hover { gap: 16px; color: var(--brass); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brass); color: var(--ink); padding: 12px 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.topbar { background: var(--ink); color: rgba(237,240,242,.66); font-size: 12.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 42px; }
.topbar ul { display: flex; gap: 28px; flex-wrap: wrap; }
.topbar li { display: flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--brass-2); }
.topbar .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a {
  display: flex; align-items: center; gap: 7px;
  padding: 28px 14px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--navy);
  position: relative;
}
.nav > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 22px;
  height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav > li > a:hover::after, .nav > li.is-current > a::after { transform: scaleX(1); }
.nav .caret { width: 8px; height: 8px; opacity: .5; }

.drop {
  position: absolute; top: 100%; left: 0;
  min-width: 300px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(6,14,25,.35);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav > li:hover .drop, .nav > li:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 20px; font-size: 14.5px; color: var(--navy);
  transition: background .18s, color .18s;
}
.drop a span { font-family: var(--mono); font-size: 10px; color: var(--steel-2); letter-spacing: .08em; }
.drop a:hover { background: var(--paper); color: var(--brass); }

.head-cta { display: inline-flex; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; align-items: center; justify-content: center; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--navy); position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--navy); transition: transform .3s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { display: none; background: var(--white); border-bottom: 1px solid var(--line); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.mobile-nav .sub a { padding-left: 18px; text-transform: none; font-family: var(--body); font-size: 14.5px; letter-spacing: 0; color: var(--steel); }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 78% 12%, rgba(30,62,99,.75), transparent 62%),
    radial-gradient(700px 420px at 6% 92%, rgba(192,139,63,.16), transparent 66%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--brass-2); }
.hero .lede { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 52px; border-top: 1px solid var(--line-dark); }
.hero-meta div { padding: 18px 26px 0 0; margin-right: 26px; border-right: 1px solid var(--line-dark); }
.hero-meta div:last-child { border-right: 0; }
.hero-meta b { display: block; font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; color: var(--white); letter-spacing: -.02em; }
.hero-meta span { font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: rgba(237,240,242,.5); }

.hero-figure { position: relative; }
.hero-figure svg { width: 100%; height: auto; }
.draw { stroke-dasharray: var(--len, 1400); stroke-dashoffset: var(--len, 1400); animation: draw 2.4s var(--ease) forwards; }
.draw--2 { animation-delay: .35s; }
.draw--3 { animation-delay: .7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pulse { animation: pulse 3.4s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- page banner (inner pages) ---------- */
.banner { background: var(--navy); color: var(--paper); position: relative; overflow: hidden; }
.banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(30,62,99,.9), transparent 60%),
    linear-gradient(180deg, rgba(6,14,25,.2), rgba(6,14,25,.55));
}
.banner::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to right, rgba(255,255,255,.045) 0 1px, transparent 1px 88px);
}
.banner .wrap { position: relative; z-index: 2; padding-block: clamp(52px, 7vw, 96px); }
.banner h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); max-width: 20ch; }
.crumb { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(237,240,242,.55); margin-bottom: 20px; }
.crumb a:hover { color: var(--brass-2); }
.crumb i { font-style: normal; color: var(--brass); }
.banner .lede { margin-top: 20px; }

/* ---------- client strip ---------- */
.clients { border-bottom: 1px solid var(--line); background: var(--white); }
.clients .wrap { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); padding-block: 26px; }
.clients .tag { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-2); flex: none; }
.clients ul { display: flex; flex-wrap: wrap; gap: clamp(18px, 3.4vw, 46px); align-items: center; }
.clients li { font-family: var(--display); font-weight: 600; font-size: clamp(.95rem, 1.5vw, 1.15rem); letter-spacing: -.01em; color: var(--navy); opacity: .55; transition: opacity .25s, color .25s; }
.clients li:hover { opacity: 1; color: var(--brass); }

/* ---------- cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(22px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 0; height: 3px;
  background: var(--brass); transition: width .38s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(6,14,25,.45); border-color: var(--paper-3); }
.card:hover::before { width: 64px; }
.card .no { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--brass); }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--steel); font-size: 15px; margin: 0; }
.card .link-more { margin-top: auto; align-self: flex-start; }

.card--dark { background: var(--navy-2); border-color: var(--line-dark); color: var(--paper); }
.card--dark p { color: rgba(237,240,242,.66); }
.card--dark .link-more { color: var(--paper); }

/* media slot: gradient underlay shows if photo is absent */
.media {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 55%, #2C5480 100%);
  aspect-ratio: 16 / 10;
}
.media::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(to right, rgba(255,255,255,.06) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.06) 0 1px, transparent 1px 36px);
  pointer-events: none;
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--sol { aspect-ratio: 553 / 430; }
.media-tag {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  background: rgba(6,14,25,.5);
  border-top: 1px solid rgba(255,255,255,.14);
  border-right: 1px solid rgba(255,255,255,.14);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(237,240,242,.72);
}
.media-tag::before { content: ""; width: 6px; height: 6px; background: var(--brass); flex: none; }
.media img { z-index: 2; }
.media--wide { aspect-ratio: 21 / 9; }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4.4vw, 72px); align-items: center; }
.split--wide { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stats div { padding: clamp(26px, 3vw, 40px) 0 0; border-right: 1px solid var(--line-dark); padding-right: 24px; }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.03em; color: var(--white); }
.stats span { display: block; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: rgba(237,240,242,.52); }

/* ---------- checklist ---------- */
.ticks li {
  position: relative; padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 20px;
  width: 9px; height: 9px; border: 1px solid var(--brass); background: transparent;
  transform: rotate(45deg);
}
.on-navy .ticks li, .on-ink .ticks li { border-bottom-color: var(--line-dark); }
.ticks--tight li { padding-block: 9px; font-size: 15px; }

/* ---------- pull quote band ---------- */
.pull {
  background: var(--navy); color: var(--paper);
  padding: clamp(30px, 4vw, 52px);
  border-left: 3px solid var(--brass);
  position: relative; overflow: hidden;
}
.pull::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border: 1px solid var(--line-dark); border-radius: 50%;
}
.pull p { font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.25; letter-spacing: -.02em; margin: 0; max-width: 24ch; }

/* ---------- sidebar (service pages) ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: clamp(32px, 4vw, 64px); align-items: start; }
.rail { position: sticky; top: 100px; display: grid; gap: 26px; }
.rail-box { border: 1px solid var(--line); background: var(--white); padding: 26px; }
.rail-box h4 { font-size: 1rem; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rail-list li a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0; font-size: 14px; color: var(--steel);
  border-bottom: 1px solid var(--line-2);
  transition: color .2s, padding-left .2s var(--ease);
}
.rail-list li a:hover { color: var(--brass); padding-left: 6px; }
.rail-list li a::after { content: "→"; font-family: var(--mono); font-size: 12px; opacity: 0; transition: opacity .2s; }
.rail-list li a:hover::after { opacity: 1; }
.rail-list li.is-current a { color: var(--navy); font-weight: 500; }
.rail-list li.is-current a::before { content: ""; width: 5px; height: 5px; background: var(--brass); margin-right: 9px; flex: none; }
.rail-contact { display: grid; gap: 16px; }
.rail-contact div { display: grid; gap: 3px; }
.rail-contact dt { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.rail-contact dd { margin: 0; font-size: 14.5px; color: var(--navy); }

.prose .ticks { columns: 2; column-gap: 40px; }
.prose .ticks li { break-inside: avoid; }
@media (max-width: 700px) { .prose .ticks { columns: 1; } }

.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 42px 0 16px; }
.prose h3 { font-size: 1.18rem; margin: 32px 0 12px; }
.prose > :first-child { margin-top: 0; }
.prose p { color: var(--steel); }
.prose strong { color: var(--navy); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brass); color: var(--ink); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; padding-block: clamp(38px, 4.4vw, 58px); }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 18ch; }
.cta-band p { margin: 10px 0 0; color: rgba(6,14,25,.7); max-width: 44ch; }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--brass-3); }
.btn--ink:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--navy);
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(192,139,63,.15);
}
.form-note { font-size: 13px; color: var(--steel); }
.form-status { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--brass); min-height: 18px; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: rgba(237,240,242,.7); }
.foot-top { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.25fr; gap: clamp(26px, 3.4vw, 56px); padding-block: clamp(48px, 6vw, 80px); }
.site-foot h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); font-weight: 400; margin-bottom: 20px; }
.site-foot .foot-brand img { height: 44px; filter: brightness(0) invert(1); opacity: .95; }
.site-foot p { font-size: 14.5px; line-height: 1.7; }
.foot-links li a { display: block; padding: 7px 0; font-size: 14.5px; transition: color .2s, padding-left .2s var(--ease); }
.foot-links li a:hover { color: var(--brass-2); padding-left: 5px; }
.foot-contact li { display: grid; gap: 3px; padding: 9px 0; font-size: 14.5px; }
.foot-contact span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(237,240,242,.42); }
.foot-bottom { border-top: 1px solid var(--line-dark-2); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; padding-block: 22px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(237,240,242,.4); }

/* ---------- scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .nav, .head-cta { display: none; }
  .burger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .svc-layout { grid-template-columns: 1fr; }
  .rail { position: static; grid-template-columns: repeat(2, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .g-2, .g-3, .split, .split--wide { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .topbar ul:last-child { display: none; }
  .topbar ul:first-child li:nth-child(3) { display: none; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .sec-head .idx { border-top: 0; padding-top: 0; }
  .form .row { grid-template-columns: 1fr; }
  .hero-meta div { padding-right: 18px; margin-right: 18px; }
}
@media (max-width: 560px) {
  .g-4, .rail { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats div { border-right: 0; border-bottom: 1px solid var(--line-dark); padding-bottom: 22px; }
  .stats div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .draw { stroke-dashoffset: 0; }
  .rv { opacity: 1; transform: none; }
}

/* =========================================================
   PHOTOGRAPHY LAYER
   Added once real imagery arrived: hero slider, card
   thumbnails, banner plates, client logos.
   ========================================================= */

/* ---------- hero slider ---------- */
.hero--slider { min-height: clamp(520px, 76vh, 760px); display: flex; align-items: flex-end; }
.hero--slider::before { content: none; }

.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .95s var(--ease); }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
.slide.is-active img { animation: ken 14s linear forwards; will-change: transform; }
/* Kept deliberately small — a big zoom resamples the photo and softens it. */
@keyframes ken { from { transform: scale(1); } to { transform: scale(1.035); } }

.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(96deg, rgba(6,14,25,.9) 0%, rgba(6,14,25,.68) 32%, rgba(6,14,25,.16) 64%, rgba(6,14,25,.2) 100%),
    linear-gradient(0deg, rgba(6,14,25,.7) 0%, rgba(6,14,25,0) 46%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: repeating-linear-gradient(to right, rgba(255,255,255,.028) 0 1px, transparent 1px 88px);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(44px, 5.6vw, 78px) clamp(24px, 2.6vw, 36px); }

.hero-copies { display: grid; }
.hero-copy {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
  max-width: min(780px, 100%);
}
.hero-copy.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: .18s; }
.hero-copy h1 { font-size: clamp(2.35rem, 4.7vw, 3.85rem); font-weight: 600; }
.hero-copy h1 em { font-style: normal; color: var(--brass-2); }
.hero-copy .lede { margin-top: 22px; max-width: 52ch; color:#ffffff;}

.hero-base { margin-top: clamp(30px, 4vw, 54px); }
.hero-rule {
  position: relative; height: 20px;
  border-top: 1px solid rgba(255,255,255,.22);
  background-image: repeating-linear-gradient(to right, rgba(255,255,255,.22) 0 1px, transparent 1px 24px);
  background-size: 100% 7px; background-repeat: no-repeat;
}
.hero-rule::after { content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 3px; background: var(--brass); }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

.hero-controls { display: flex; align-items: center; gap: 8px; padding-top: 20px; }
.slide-btn {
  width: 42px; height: 42px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.24); background: rgba(6,14,25,.4); color: var(--paper);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.slide-btn:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.slide-dots { display: flex; gap: 6px; margin-left: 6px; }
.dot {
  position: relative; min-width: 62px; padding: 12px 0 0;
  background: none; border: 0; text-align: left;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  color: rgba(237,240,242,.45);
  border-top: 2px solid rgba(255,255,255,.18);
  transition: color .25s;
}
.dot.is-active { color: var(--brass-2); }
.dot .bar { position: absolute; top: -2px; left: 0; width: 0; height: 2px; background: var(--brass); }
.dot.is-active .bar { animation: fill var(--slide-dur, 7s) linear forwards; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

.hero-readout { padding-top: 20px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,1); text-align: right; }
.hero-readout b { color: var(--brass-2); font-weight: 400; }

/* ---------- card thumbnails ---------- */
.card-media {
  display: block; position: relative; overflow: hidden;
  margin: calc(-1 * clamp(22px, 2.4vw, 32px)) calc(-1 * clamp(22px, 2.4vw, 32px)) 4px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,14,25,.34), transparent 58%);
}
.card::before { z-index: 3; }

/* ---------- banner: photographic plate ---------- */
.banner--plate .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(28px, 4vw, 64px); align-items: center; }
.plate-fig { margin: 0; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); padding: 9px; }
.plate-fig img { width: 100%; height: auto; }
.plate-fig figcaption {
  display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px 1px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(237,240,242,.5);
}
.plate-fig figcaption b { color: var(--brass-2); font-weight: 400; }

/* ---------- banner: photographic background ---------- */
.banner-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.banner--photo::before { z-index: 1; }
.banner--photo::after { z-index: 1; }

/* ---------- client logo strip ---------- */
.clients ul { gap: clamp(26px, 4vw, 62px); }
.clients li { opacity: 1; }
.clients img {
  width: auto; max-width: 148px; object-fit: contain;
  filter: grayscale(1); opacity: .6;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
/* heights tuned per mark so the wide wordmarks don't shout over the compact ones */
.clients .l-exxonmobil { height: 21px; }
.clients .l-chevron    { height: 23px; }
.clients .l-shell      { height: 29px; }
.clients .l-seplat     { height: 34px; }
.clients .l-emcah      { height: 31px; }
@media (max-width: 700px) {
  .clients .l-exxonmobil { height: 17px; }
  .clients .l-chevron    { height: 19px; }
  .clients .l-shell      { height: 24px; }
  .clients .l-seplat     { height: 28px; }
  .clients .l-emcah      { height: 26px; }
}
.clients li:hover img { filter: none; opacity: 1; }

@media (max-width: 900px) {
  .banner--plate .wrap { grid-template-columns: 1fr; }
  .plate-fig { max-width: 400px; }
}
@media (max-width: 700px) {
  .hero--slider { min-height: 0; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-readout { text-align: left; padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide.is-active img { animation: none; transform: none; }
  .dot.is-active .bar { animation: none; width: 100%; }
}


/* ---------- overflow guards ---------- */
/* Grid tracks default to a min-content floor; a <select> with long option
   text was widening the contact page past the viewport at 360px. */
.grid > *, .split > *, .svc-layout > *, .hero-copies > *, .foot-top > *, .stats > * { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; max-width: 100%; }


/* ---------- client logo marquee ---------- */
.marquee {
  position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.marquee-track { display: flex; width: max-content; animation: logo-slide 32s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex; align-items: center; flex: none;
  gap: clamp(34px, 4.4vw, 68px);
  padding-right: clamp(34px, 4.4vw, 68px);
}
.marquee-group li { display: flex; align-items: center; }
@keyframes logo-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.hero.is-held .dot.is-active .bar { animation-play-state: paused; }
.slide-btn[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--ink); }

/* ---------- hero lede: solid white ---------- */
/* Set after the .lede rules above so it wins without !important. */
.hero-copy .lede { color: #ffffff; }

/* ---------- two-office block (contact page) ---------- */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 34px; }
.office { border-top: 2px solid var(--brass); padding-top: 18px; }
.office-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 12px;
}
.office address { font-style: normal; font-size: 15.5px; line-height: 1.6; color: var(--navy); }
.office-lines { display: grid; gap: 12px; margin: 18px 0 0; }
.office-lines div { display: grid; gap: 2px; }
.office-lines dt {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel-2);
}
.office-lines dd { margin: 0; font-size: 15px; color: var(--navy); }
.office-lines a:hover { color: var(--brass); }
@media (max-width: 620px) { .offices { grid-template-columns: 1fr; gap: 24px; } }
