/* Market Street: shared dark-palette styles for every page */
:root {
  color-scheme: dark;
  --bg: #08141D;             /* page */
  --surface: #0D1E2B;        /* alternate sections, cards */
  --surface-2: #12293A;      /* art panels, raised bits */
  --navy: #012639;           /* hero glow, CTA band */
  --ink: #050D14;            /* footer */
  --text: #F3EFE6;           /* headings, strong text (warm white) */
  --body: #C3CED9;           /* paragraph text */
  --muted: #93A3B3;          /* small print */
  --line: rgba(255, 255, 255, 0.1);
  --gold: #C8A45C;           /* text and graphics on dark (AA at every size) */
  --serif: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --gutter: clamp(20px, 5.5vw, 80px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.03; }
h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; }
h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--gold); margin: 0 0 16px; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; max-width: 560px; }
.ph { background: rgba(200, 164, 92, 0.2); border-radius: 3px; padding: 0 3px; }   /* visible placeholder */

/* ---------- header / nav ---------- */
.site-header { background: var(--bg); color: var(--text); }
.site-header.over { position: fixed; inset: 0 0 auto; background: transparent; z-index: 20; transition: background-color .25s ease, transform .3s ease, box-shadow .25s ease; }
.site-header.over.stuck { background: rgba(8, 20, 29, 0.96); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0, 0, 0, 0.35); }
.site-header.over.stuck .nav { height: 72px; border-bottom-color: transparent; }
.site-header.over.away { transform: translateY(-100%); }
.nav { transition: height .25s ease; }
.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 30px; text-decoration: none; color: var(--text); white-space: nowrap; }
.brand span { color: var(--gold); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); font-size: 15px; }
.nav a { text-decoration: none; color: var(--body); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: 0 1px 0 var(--gold); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn svg { width: 16px; height: 16px; }
.btn-gold { background: var(--gold); color: #08141D; }
.btn-gold:hover { background: #D6B572; }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--text); font-weight: 400; }
.btn-ghost:hover { border-color: var(--text); }
.btn-line { border-color: rgba(255,255,255,0.35); color: var(--text); font-weight: 400; }
.btn-line:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.nav .btn { min-height: 44px; padding: 0 22px; color: var(--text); }

/* ---------- grid band (hero, page heads, CTA) ---------- */
.band {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  color: var(--text);
}
.band p { color: var(--body); }
.band .eyebrow { color: var(--gold); }
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 520px at 78% 46%, rgba(1, 38, 57, 0.95), rgba(1, 38, 57, 0) 70%); }

.hero { min-height: min(860px, 100svh); display: flex; flex-direction: column; }
.hero-body { flex: 1; display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; padding-block: 140px 80px; }
.hero h1 { max-width: 760px; }
.hero .lede { margin: 30px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-art { justify-self: end; width: 100%; max-width: 520px; }

.page-head { padding-block: 160px 88px; }
.page-head .lede { margin: 24px 0 0; }

/* ---------- sections ---------- */
.section { padding-block: clamp(80px, 9vw, 120px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split p { color: var(--body); margin: 0 0 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 52px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line); }
.pillars div { padding: 20px 20px 0 0; }
.pillars div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.pillars strong { display: block; font-size: 15px; color: var(--text); }
.pillars span { font-size: 14px; color: var(--muted); }

.art-panel { display: block; width: 100%; height: auto; margin-top: 40px; border: 1px solid var(--line); border-radius: 16px; }

.story-copy p { font-size: 18px; }
.story-copy p.lede { font-size: clamp(20px, 1.9vw, 24px); font-family: var(--serif); line-height: 1.4; color: var(--text); max-width: none; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.service .art { height: 170px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.service .art svg { width: 100%; max-width: 320px; height: auto; }
.service .body { padding: 30px 32px 34px; }
.service h3 { color: var(--text); }
.service p { margin: 14px 0 0; font-size: 15px; color: var(--body); }
.service.feature { background: var(--navy); border-color: rgba(200, 164, 92, 0.35); }
.section.alt .service { background: var(--bg); }
.section.alt .service.feature { background: var(--navy); }

.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.coverage .col { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--surface); }
.coverage .col.alt { background: var(--surface-2); border-color: rgba(200, 164, 92, 0.3); }
.coverage h3 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text); }
.coverage .col.alt h3 { color: var(--gold); }
.coverage ul { list-style: none; margin: 14px 0 0; padding: 0; }
.coverage li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--body); }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person img { display: block; width: 100%; height: auto; aspect-ratio: 241 / 279; object-fit: cover; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.person .who { padding-top: 22px; }
.person h3 { font-size: 28px; }
.person .role { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--gold); }
.person p:not(.role) { margin: 14px 0 0; font-size: 15px; color: var(--body); }
.person .bc { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--text); text-underline-offset: 3px; }

/* ---------- contact ---------- */
.cta { border-radius: 20px; padding: clamp(40px, 6vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; background-color: var(--navy); background-size: 64px 64px; border: 1px solid rgba(200, 164, 92, 0.3); }
.cta h2 { font-size: clamp(38px, 5vw, 64px); }
.cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 600; color: var(--text); }
input, select, textarea { font: 16px var(--sans); color: var(--text); background: var(--surface); border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; padding: 13px 14px; min-height: 50px; width: 100%; }
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.hidden-field { position: absolute; left: -9999px; }
.details { border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 56px); }
.details dl { margin: 0; }
.details dt { font-size: 13px; font-weight: 600; color: var(--gold); margin-top: 28px; }
.details dt:first-child { margin-top: 0; }
.details dd { margin: 6px 0 0; font-size: 18px; }
.consent { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--muted); font-size: 14px; margin-top: clamp(80px, 9vw, 110px); border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-block: 56px 40px; }
.foot .brand { font-size: 28px; }
.foot p { margin: 8px 0 0; }
.foot nav { display: flex; gap: 64px; flex-wrap: wrap; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.legal { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-body, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; max-width: 440px; }
  .services, .team { grid-template-columns: 1fr 1fr; }
  .details { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { height: auto; padding-block: 18px; flex-wrap: wrap; row-gap: 12px; }
  .nav ul { gap: 18px; flex-wrap: wrap; }
  .nav .btn { min-height: 0; padding: 0; border: 0; font-weight: 400; color: var(--body); }   /* plain link on phones */
  .site-header.over.stuck .nav { height: auto; }
  .hero-body { padding-block: 150px 64px; }
  .page-head { padding-block: 170px 64px; }
  .services, .coverage, .team, form { grid-template-columns: 1fr; }
  .person img { max-width: 360px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 16px; }
}

/* ---------- reveal on scroll (only when JS is running and motion is OK) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- motion: drawn lines, travelling points, pulses ---------- */
.js .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.4,0,.2,1) forwards; animation-delay: calc(.25s + var(--d, 0s)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.march { animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -38; } }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .35; } }

/* graphics inside a revealed block play once when it scrolls in */
.js .reveal .draw-in { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.4,0,.2,1) .3s; }
.js .reveal.in .draw-in { stroke-dashoffset: 0; }
.js .reveal .slide-l, .js .reveal .slide-r { transition: transform 1.2s cubic-bezier(.2,.7,.2,1) .2s; }
.js .reveal .slide-l { transform: translateX(-26px); }
.js .reveal .slide-r { transform: translateX(26px); }
.js .reveal.in .slide-l, .js .reveal.in .slide-r { transform: none; }
.js .reveal .lens { opacity: 0; transition: opacity .8s ease 1.2s; }
.js .reveal.in .lens { opacity: 1; }
.js .reveal .pop { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1) 1.8s; }
.js .reveal.in .pop { transform: none; }

.bridge { grid-column: 1 / -1; display: block; width: 100%; height: auto; margin-top: 8px; }
.page-head.has-art { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.head-art { width: 100%; max-width: 420px; justify-self: end; }
@media (max-width: 960px) { .page-head.has-art { grid-template-columns: 1fr; } .head-art { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .site-header.over, .nav { transition: none; }
  .js .draw, .js .reveal .draw-in { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; transition: none; }
  .march, .pulse { animation: none; }
  .flow-dot { display: none; }
  .js .reveal .slide-l, .js .reveal .slide-r, .js .reveal .pop { transform: none; transition: none; }
  .js .reveal .lens { opacity: 1; transition: none; }
}
