:root {
  --navy: #103B65;
  --navy-deep: #0B2744;
  --ink: #0E1B2B;
  --gold: #CAAE65;
  --gold-text: #7A6326;
  --paper: #F5F3EE;
  --surface: #FFFFFF;
  --muted: #55606E;
  --rule: #D9D5CB;
  --rule-dark: rgba(255,255,255,.16);
  --radius: 2px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --display: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--display); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: 108%; font-weight: 750; line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.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: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .7); }

.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--gold-text); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.on-dark .eyebrow, .eyebrow-gold { color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; font: 650 15.5px/1.1 var(--display); font-stretch: 106%; text-decoration: none; border: 1.5px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #D9C184; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(127,127,127,.12); }
.btn svg { width: 18px; height: 18px; flex: none; }
.text-link { color: var(--navy); font-weight: 650; text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
.text-link:hover { color: var(--ink); }
.on-dark .text-link { color: var(--gold); }
.on-dark .text-link:hover { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,243,238,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 60px; }
.brand-text { font-size: 15px; letter-spacing: .02em; text-transform: uppercase; font-stretch: 110%; color: var(--navy); line-height: 1.1; }
.brand-text strong { font-weight: 800; }
.nav ul { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 550; font-size: 15px; }
.nav li:not(.nav-cta) a { padding: 6px 0; background: linear-gradient(var(--navy), var(--navy)) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.nav li:not(.nav-cta) a:hover, .nav a[aria-current="page"] { background-size: 100% 2px; }
.nav a[aria-current="page"] { color: var(--navy); }
.nav-toggle { display: none; }
@media (max-width: 919px) {
  .nav-toggle { display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; }
  .bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .25s, background .25s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; } .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav ul { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; display: none; max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav ul.open { display: flex; }
  .nav li:not(.nav-cta) a { display: block; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 18px; background: none; }
  .nav-cta { padding-top: 16px; } .nav-cta .btn { width: 100%; }
  .brand-text { font-size: 13px; } .brand img { width: 50px; }
}

/* Home hero */
.hero { display: grid; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero-copy { padding: clamp(48px, 7vw, 92px) var(--gutter) clamp(40px, 6vw, 72px); position: relative; z-index: 1; }
.hero h1 { font-size: clamp(36px, 4.6vw, 64px); font-stretch: 100%; margin-bottom: 24px; max-width: 15ch; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: rgba(255,255,255,.84); max-width: 46ch; margin-bottom: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-call { margin-top: 24px; font-size: 15px; color: rgba(255,255,255,.72); }
.hero-call a { color: #fff; font-weight: 650; }
.hero-media { margin: 0; position: relative; min-height: 320px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-media figcaption, .fig-cap { position: absolute; left: 0; bottom: 0; background: var(--paper); color: var(--ink); padding: 11px 16px; font-size: 14px; display: flex; gap: 12px; align-items: baseline; max-width: calc(100% - 24px); }
.hero-media figcaption .mono, .fig-cap .mono { color: var(--gold-text); }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); min-height: min(84vh, 780px); }
  .hero-copy { align-self: center; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-right: 48px; }
  .hero-media img { aspect-ratio: auto; position: absolute; inset: 0; }
  .hero::after { content: ""; position: absolute; top: 0; bottom: 0; left: 44%; width: 1px; background: var(--gold); opacity: .6; z-index: 2; }
}

/* Inner page header */
.page-head { background: var(--navy); color: #fff; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.page-head h1 { font-size: clamp(36px, 5vw, 64px); max-width: 18ch; }
.page-head p.lede { margin: 22px 0 0; }
.page-head .actions { margin-top: 30px; }

/* Facts strip */
.log { background: var(--navy-deep); color: #fff; border-top: 1px solid var(--rule-dark); }
.log-inner { display: grid; gap: 16px; padding-block: 24px; }
.log-item { display: grid; gap: 2px; font-size: 15.5px; text-decoration: none; }
a.log-item:hover { color: var(--gold); }
.log-item .mono { color: rgba(255,255,255,.58); }
@media (min-width: 760px) { .log-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .log-inner { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* Section heads */
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(32px, 4.2vw, 56px); }
.section-intro { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 58ch; }
.on-dark .section-intro { color: rgba(255,255,255,.76); }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head-row .section-head { margin-bottom: 0; }

/* Intro split */
.intro-grid { display: grid; gap: 36px; }
.intro-grid h2 { font-size: clamp(30px, 3.6vw, 46px); }
.intro-copy p { font-size: 18px; color: var(--muted); max-width: 56ch; }
.intro-copy p + p { margin-top: 16px; }
.intro-copy strong { color: var(--ink); font-weight: 650; }
.facts { border-top: 1px solid var(--ink); }
.facts li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.facts .mono { color: var(--gold-text); padding-top: 3px; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: start; } }

/* Services list (dark) */
.dark { background: var(--ink); color: #fff; }
.svc-list { display: grid; border-top: 1px solid var(--rule-dark); }
.svc { display: grid; gap: 10px; padding: 30px 0; border-bottom: 1px solid var(--rule-dark); }
.svc-num { color: var(--gold); }
.svc h3 { font-size: clamp(23px, 2.5vw, 30px); }
.svc p { color: rgba(255,255,255,.76); max-width: 54ch; }
.svc .text-link { justify-self: start; font-size: 15px; margin-top: 4px; }
@media (min-width: 900px) {
  .svc { grid-template-columns: 72px minmax(0, 5fr) minmax(0, 6fr) auto; align-items: baseline; gap: 32px; padding: 34px 0; }
  .svc .text-link { justify-self: end; white-space: nowrap; }
}

/* Project cards */
.proj-grid { display: grid; gap: clamp(36px, 4vw, 48px) 28px; }
@media (min-width: 720px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .proj-grid.three { grid-template-columns: repeat(3, 1fr); } }
.proj-grid .feature { grid-column: 1 / -1; }
.card { display: grid; gap: 16px; align-content: start; }
.card-media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--rule); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card-media:hover img { transform: scale(1.035); }
.card-count { position: absolute; right: 10px; bottom: 10px; background: rgba(14,27,43,.82); color: #fff; padding: 6px 10px; border-radius: var(--radius); }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--gold-text); }
.card h3 { font-size: clamp(22px, 2.2vw, 28px); }
.card p { color: var(--muted); }
.card .scope { margin-top: 2px; }
.thumbs { display: flex; gap: 8px; }
.thumbs button { flex: 1; max-width: 25%; padding: 0; border: 0; background: var(--rule); aspect-ratio: 1; overflow: hidden; cursor: zoom-in; border-radius: var(--radius); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 20px 48px; align-items: start; }
  .feature .card-media { aspect-ratio: 16 / 10; grid-row: span 2; }
  .feature .card-body { padding-top: 8px; }
}
.scope li { padding: 10px 0 10px 24px; border-top: 1px solid var(--rule); position: relative; font-size: 15.5px; color: var(--ink); }
.scope li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 1px; background: var(--navy); }
.tag { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--navy); border: 1px solid var(--navy); padding: 3px 8px; border-radius: var(--radius); }

/* Process */
.process-grid { display: grid; gap: 8px; }
.steps { border-top: 1px solid var(--ink); }
.steps li { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; row-gap: 6px; }
.steps .mono { color: var(--gold-text); grid-row: span 2; padding-top: 6px; }
.steps h3 { font-size: 23px; }
.steps p { color: var(--muted); }
@media (min-width: 960px) {
  .process-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .process-grid .section-head { position: sticky; top: 108px; }
}

/* Team / crew */
.surface { background: var(--surface); border-block: 1px solid var(--rule); }
.crew-grid { display: grid; gap: 40px; align-items: center; }
.crew-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.crew-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.crew-copy h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 20px; }
.crew-copy p { color: var(--muted); font-size: 18px; max-width: 48ch; }
.crew-copy p + p { margin-top: 14px; }
.crew-copy .actions { margin-top: 30px; }
@media (min-width: 900px) { .crew-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; }
.cta-inner { display: grid; gap: 28px; align-items: end; }
.cta-inner h2 { font-size: clamp(32px, 4.4vw, 58px); max-width: 16ch; }
.cta-inner p { color: rgba(255,255,255,.8); font-size: 18px; margin-top: 16px; max-width: 46ch; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }

/* Services page */
.svc-detail { display: grid; gap: 28px; padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule); }
.svc-detail:first-child { border-top: 0; padding-top: 0; }
.svc-detail h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 16px; }
.svc-detail .summary { font-size: 18px; color: var(--muted); max-width: 56ch; }
.svc-cols { display: grid; gap: 24px; margin-top: 28px; }
.svc-cols h3 { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--gold-text); margin-bottom: 10px; }
.svc-cols .actions { margin-top: 8px; }
.svc-media { display: grid; gap: 8px; grid-template-columns: 2fr 1fr; }
.svc-media button { padding: 0; border: 0; background: var(--rule); cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.svc-media button:first-child { grid-row: span 2; aspect-ratio: 3 / 4; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media.single { grid-template-columns: 1fr; }
.svc-media.single button:first-child { aspect-ratio: 4 / 3; grid-row: auto; }
.svc-noimg { background: var(--navy); color: #fff; padding: 32px; border-radius: var(--radius); display: grid; gap: 14px; align-content: start; }
.svc-noimg .mono { color: var(--gold); }
.svc-noimg ul li { padding: 10px 0; border-top: 1px solid var(--rule-dark); }
@media (min-width: 640px) { .svc-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .svc-detail { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .svc-detail.flip > :first-child { order: 2; }
}
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.jump a { text-decoration: none; border: 1px solid rgba(255,255,255,.35); padding: 8px 14px; border-radius: var(--radius); font-size: 14.5px; }
.jump a:hover { border-color: var(--gold); color: var(--gold); }

/* About */
.people { display: grid; gap: 20px; }
.person { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 4px; }
.person h3 { font-size: 26px; }
.person .role { color: var(--gold-text); }
.person a { color: var(--navy); font-weight: 600; }
@media (min-width: 720px) { .people { grid-template-columns: 1fr 1fr; gap: 40px; } }
.divisions { display: grid; gap: 20px; }
.division { background: var(--surface); border: 1px solid var(--rule); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); }
.division h3 { font-size: 26px; margin: 10px 0 12px; }
.division p { color: var(--muted); }
@media (min-width: 760px) { .divisions { grid-template-columns: 1fr 1fr; } }

/* Contact */
.contact-grid { display: grid; gap: 48px; }
.channels { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.channel { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.channel .mono { color: var(--gold-text); }
.channel .big { font-size: clamp(24px, 2.6vw, 32px); font-weight: 750; font-stretch: 106%; text-decoration: none; letter-spacing: -0.01em; }
.channel .big:hover { color: var(--navy); }
.channel .sub { color: var(--muted); font-size: 15px; }
.channel .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.quote { background: var(--surface); border: 1px solid var(--rule); padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; border-radius: var(--radius); align-content: start; }
.quote h2 { font-size: clamp(26px, 2.8vw, 34px); }
.quote > p { color: var(--muted); }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #B9B4A8; border-radius: var(--radius); padding: 13px 14px; min-height: 50px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: #A12B2B; }
.form-error { color: #A12B2B; font-weight: 600; font-size: 15px; }
.form-note { font-size: 14px; color: var(--muted); }
@media (min-width: 640px) { .quote .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; } }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding-top: 64px; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; font-size: 15px; }
.footer-brand .brand-text { color: #fff; }
.site-footer .mono { color: var(--gold); margin-bottom: 14px; }
.site-footer li { padding: 4px 0; font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--rule-dark); padding-block: 22px 28px; font-size: 14px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* Mobile contact bar */
.mobile-bar { display: none; }
@media (max-width: 759px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(11,39,68,.97); transform: translateY(110%); transition: transform .3s; }
  .mobile-bar.show { transform: none; }
  body { padding-bottom: 76px; }
}

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8,20,34,.95); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 78vh; width: auto; object-fit: contain; }
.lb-cap { color: rgba(255,255,255,.88); font-size: 15px; max-width: 70ch; text-align: center; padding: 0 64px; position: absolute; bottom: 22px; left: 0; right: 0; margin: auto; }
.lb-btn { position: absolute; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.3); color: #fff; font-size: 20px; cursor: pointer; border-radius: var(--radius); }
.lb-btn:hover { background: rgba(255,255,255,.14); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-media img, .btn, .mobile-bar { transition: none; }
}
.svc-media button:nth-child(2):last-child { grid-row: span 2; }
