/* OMSM Development & Capital: design system.
   Navy + gold from the logo, ivory paper, serif display, clean sans body.
   Every page links this one file. Page-specific rules go in a <style> block
   ONLY if a component below cannot do the job. */

:root {
  --navy-900: #08182b;
  --navy: #0b2038;
  --navy-700: #12304f;
  --navy-600: #1b3f66;
  --gold: #b8862e;
  --gold-bright: #d2a24a;
  --gold-soft: #ead9ae;
  --gold-ink: #86601c;          /* gold safe for small text on light (AA) */
  --ivory: #f7f3ea;
  --paper: #ffffff;
  --ink: #0f1b2b;
  --muted: #556173;
  --line: rgba(11, 32, 56, 0.13);
  --line-light: rgba(255, 255, 255, 0.16);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 4px;
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(8, 24, 43, 0.06), 0 12px 32px -12px rgba(8, 24, 43, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2.05rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.25rem; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; border-radius: 2px; }
.section--navy :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--gold-bright); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); color: #d8e0ea; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; margin-top: 18px; }
.section--navy .section-head p:not(.eyebrow) { color: #b6c3d2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 20px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--gold-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 1px solid transparent; border-radius: var(--radius);
  font: 600 0.82rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold-bright); color: var(--navy-900); }
.btn--gold:hover { background: #e0b35c; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { border-color: var(--line-light); color: #fff; }
.btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn--ghost-dark { border-color: var(--line); color: var(--navy); }
.btn--ghost-dark:hover { border-color: var(--gold); color: var(--gold-ink); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); text-decoration: none; }
.link-arrow:hover { color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, 0.98); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -16px rgba(8, 24, 43, 0.25); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand__sub { display: none; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--navy); line-height: 1.2; padding-left: 14px; border-left: 1px solid var(--line); }
@media (min-width: 1080px) { .brand__sub { display: block; } }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { padding: 12px 16px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--navy); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 12px; min-height: 44px; padding: 0 22px; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: transform 0.25s, background 0.25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(8, 24, 43, 0.3); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s, visibility 0.25s; }
  .js .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .js .nav a:not(.btn) { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
  .js .nav a:not(.btn)::after { display: none; }
  .js .nav .btn { margin: 20px 0 0; min-height: 54px; }
  /* Without JavaScript the links stay visible as a wrapped row under the logo. */
  html:not(.js) .site-header { height: auto; padding-block: 10px; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .nav { flex-wrap: wrap; gap: 0; }
  html:not(.js) .nav a:not(.btn) { padding: 12px; }
  html:not(.js) .nav .btn { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #d8e0ea; isolation: isolate; }
.hero::before { /* blueprint grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 75% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 80% 90% at 75% 40%, #000 0%, transparent 75%);
}
.hero::after { content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(210, 162, 74, 0.22), transparent); }
.hero__media { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: 0.35; } /* set style="background-image:url(...)" when photography arrives */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 72px); align-items: center; min-height: min(86vh, 780px); padding-block: clamp(56px, 8vw, 110px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold-bright); font-weight: 500; }
.hero__lead { max-width: 560px; margin: 28px 0 40px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #c3cfdc; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__art { width: 100%; max-width: 460px; justify-self: end; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line-light); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9fb0c3; }
.hero__facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 12px; background: var(--gold-bright); transform: rotate(45deg); vertical-align: 2px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; min-height: 0; } .hero__art { display: none; } }
.skyline .bar { fill: url(#goldFade); stroke: var(--gold-bright); stroke-width: 1; stroke-opacity: 0.7; }
.skyline .base { stroke: var(--gold-bright); stroke-width: 1.5; }
.skyline .hatch { stroke: var(--gold-bright); stroke-opacity: 0.45; stroke-width: 1; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--navy); color: #c3cfdc; overflow: hidden; isolation: isolate; padding-block: clamp(56px, 7vw, 88px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px); background-size: 64px 64px; opacity: 0.25; -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 100%); mask-image: linear-gradient(90deg, transparent 10%, #000 100%); }
.page-hero::after { content: ""; position: absolute; z-index: -1; width: 46vmax; height: 46vmax; right: -16vmax; top: -22vmax; background: radial-gradient(closest-side, rgba(210, 162, 74, 0.2), transparent); }
.page-hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.2rem); max-width: 22ch; }
.page-hero p:not(.eyebrow) { max-width: 620px; margin: 22px 0 0; font-size: clamp(1.08rem, 1.5vw, 1.25rem); }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.pillar { padding: clamp(28px, 3vw, 42px); background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.pillar__num { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.2em; color: var(--gold-ink); margin-bottom: 18px; display: block; }
.pillar h3 { margin-bottom: 14px; }
.pillar p { color: var(--muted); margin: 0; }

.card { display: flex; flex-direction: column; padding: clamp(26px, 2.6vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.card__icon { width: 44px; height: 44px; margin-bottom: 22px; color: var(--gold); }
.card h3 { font-size: 1.4rem; min-height: 2.2em; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.98rem; margin: 0 0 22px; }
.card .link-arrow { margin-top: auto; }

/* ---------- Process steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-light); }
.steps li::marker { content: ""; }
.steps li { counter-increment: step; padding: 32px 28px 8px 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line-light); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--gold-bright); margin-bottom: 18px; }
.steps h3 { font-size: 1.4rem; margin-bottom: 10px; }
.steps p { color: #b6c3d2; font-size: 0.98rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li:nth-child(3) { border-left: 0; padding-left: 0; } .steps li:nth-child(n+3) { border-top: 1px solid var(--line-light); margin-top: 24px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding: 28px 0; border-left: 0; } .steps li + li { border-top: 1px solid var(--line-light); } }

/* ---------- People ---------- */
.person { padding: clamp(28px, 3vw, 40px); background: var(--paper); border: 1px solid var(--line); }
.person__role { display: block; margin: 8px 0 20px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.person p { color: var(--muted); }
.person__contact { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.person__contact a { display: inline-block; padding: 11px 0; text-decoration: none; font-weight: 600; color: var(--navy); }
.person__contact a:hover { color: var(--gold-ink); }

/* ---------- Prose, split layouts ---------- */
.split > * { min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 66ch; }
.prose p { color: var(--muted); }
.prose p:first-of-type { font-size: 1.18rem; color: var(--ink); }
.prose h3 { margin: 1.6em 0 0.5em; }
.section--navy .prose p { color: #b6c3d2; }
.section--navy .prose p:first-of-type { color: #fff; }
.section--navy .link-arrow { color: var(--gold-bright); }
.section--navy .link-arrow:hover { color: #fff; }
.checklist li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.checklist strong { color: var(--navy); font-weight: 600; }

/* Service detail rows (services page) */
.services-list .service:first-child { border-top: 0; }
.service h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.service { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 80px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service__num { display: block; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.2em; color: var(--gold-ink); margin-bottom: 14px; }
.service p { color: var(--muted); }
.service .checklist { margin-top: 18px; }
@media (max-width: 760px) { .service { grid-template-columns: minmax(0, 1fr); } }

/* Reference table */
.ref { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.ref th { text-align: left; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); padding: 0 16px 14px 0; border-bottom: 1px solid var(--navy); }
.ref td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.ref td:first-child { color: var(--navy); font-weight: 600; width: 24%; }
.ref td:nth-child(2) { width: 18%; white-space: nowrap; }
@media (max-width: 760px) {
  .ref thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .ref, .ref tbody, .ref tr, .ref td { display: block; width: 100% !important; }
  .ref tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .ref td { padding: 2px 0; border: 0; white-space: normal !important; }
  .ref td[data-label]::before { content: attr(data-label); display: block; margin-top: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
}
.section--ivory .note { background: var(--paper); }
.note { margin-top: 28px; padding: 20px 24px; border-left: 3px solid var(--gold); background: var(--ivory); color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); isolation: isolate; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 120% at 50% 130%, rgba(210, 162, 74, 0.28), transparent 70%); }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p:not(.eyebrow) { max-width: 560px; margin: 20px auto 36px; color: #b6c3d2; font-size: 1.15rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.field .opt { font-weight: 500; color: var(--muted); letter-spacing: 0.06em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #7b8796; border-radius: var(--radius); transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5l6 6 6-6' stroke='%230b2038' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 162, 74, 0.3); }
.field [aria-invalid="true"] { border-color: #a4262c; }
.field .err { display: none; margin-top: 6px; font-size: 0.88rem; color: #a4262c; }
.field [aria-invalid="true"] ~ .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 4px; }
.form__status { padding: 16px 20px; border-radius: var(--radius); font-size: 0.98rem; display: none; }
.form__status.is-ok { display: block; background: #eaf4ec; color: #1d5a2e; border: 1px solid #b5d8bd; }
.form__status.is-err { display: block; background: #fbeaea; color: #8a1f24; border: 1px solid #e9b8ba; }
.form__fine { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form__fine a { display: inline-block; padding-block: 12px; overflow-wrap: anywhere; }

.contact-list li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list dt, .contact-list .k { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); padding-top: 12px; }
.contact-list a { display: block; padding-block: 8px; overflow-wrap: anywhere; text-decoration: none; font-weight: 600; color: var(--navy); }
.contact-list a:hover { color: var(--gold-ink); }
@media (max-width: 480px) { .contact-list li { grid-template-columns: 1fr; gap: 0; } .contact-list .k { padding-top: 10px; } .contact-list a { padding-block: 10px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb0c3; padding-top: clamp(56px, 7vw, 88px); font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.7fr 1.1fr; gap: clamp(28px, 5vw, 72px); padding-bottom: 56px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; letter-spacing: 0.04em; color: #fff; line-height: 1.1; }
.wordmark small { display: block; margin-top: 8px; font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-bright); }
.footer-title { font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 18px; }
.site-footer a { text-decoration: none; color: #c8d3df; }
.site-footer li a { display: inline-block; padding: 11px 0; }
.site-footer address a { display: inline-block; padding: 9px 0; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer li { padding: 0; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-legal { border-top: 1px solid var(--line-light); padding-block: 26px 34px; font-size: 0.84rem; color: #7f90a4; display: grid; gap: 8px; }

/* ---------- Motion (progressive: content is visible without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } .btn, .card { transition: none; } }
@media print { .site-header, .nav-toggle, .cta-band, .hero__art { display: none; } }

/* CTA card inside a grid of cards */
.card--navy { background: var(--navy); border-color: var(--navy); color: #c3cfdc; }
.card--navy h3 { color: #fff; }
.card--navy p { color: #b6c3d2; }
.card--navy .link-arrow { color: var(--gold-bright); }
a.card--navy:hover { border-color: var(--gold-bright); }

/* =====================================================================
   APPLE LAYER
   Principles borrowed from Apple's Human Interface Guidelines, expressed in OMSM navy and gold:
   content first (photos are content, glass is only for navigation and controls), one prominent
   gold action per view, capsule controls, concentric radii, spring motion, and a calm
   reduced-motion / reduced-transparency path for everything. Loaded last, so it overrides above.
   ===================================================================== */
:root {
  --spring: cubic-bezier(0.16, 1, 0.3, 1);               /* expo-out, the Apple web curve */
  --spring-soft: cubic-bezier(0.34, 1.4, 0.64, 1);       /* slight overshoot for press and pop */
  --r-xl: 28px;
  --r-lg: 20px;
  --header-h: 88px;                                      /* 12px gap + 64px capsule + 12px */
  --glass-tint: rgba(255, 255, 255, 0.8);
  --glass-tint-strong: rgba(255, 255, 255, 0.9);
  --glass-dark: rgba(11, 32, 56, 0.38);
  --glass-blur: 22px;
  --glass-sat: 170%;
  --glass-shadow: 0 1px 1px rgba(8, 24, 43, 0.06), 0 12px 34px -10px rgba(8, 24, 43, 0.32);
}

/* ---- Liquid Glass material: lit rim + frosted body. Controls and navigation only. ---- */
.lg { position: relative; isolation: isolate; -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); box-shadow: var(--glass-shadow); }
.lg::before { /* specular rim: bright top-left and bottom-right edges */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.08) 38%, rgba(255, 255, 255, 0.08) 62%, rgba(255, 255, 255, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.lg-dark { background: var(--glass-dark); color: #fff; }

/* ---- Floating glass capsule navigation ---- */
.site-header { position: fixed; inset: 12px 0 auto 0; height: auto; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
.site-header.is-scrolled { border: 0; box-shadow: none; }
.site-header .wrap {
  pointer-events: auto; position: relative; isolation: isolate; width: min(calc(100% - 24px), var(--wrap)); max-width: none; height: 64px; padding: 0 10px 0 20px;
  border-radius: 999px; background: var(--glass-tint); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow: var(--glass-shadow); transition: background 0.5s var(--spring), box-shadow 0.5s var(--spring);
}
.site-header .wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.1) 38%, rgba(255, 255, 255, 0.1) 62%, rgba(255, 255, 255, 0.75));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.site-header.is-scrolled .wrap { background: var(--glass-tint-strong); }
.brand img { height: 40px; }
.nav a:not(.btn) { border-radius: 999px; padding: 10px 16px; transition: background 0.35s var(--spring), color 0.35s var(--spring); }
.nav a:not(.btn)::after { display: none; }
.nav a:not(.btn):hover { background: rgba(11, 32, 56, 0.07); }
.nav a[aria-current="page"] { background: rgba(11, 32, 56, 0.09); }
.nav .btn { min-height: 44px; margin-left: 8px; }
.nav-toggle { border-radius: 50%; width: 46px; height: 46px; background: rgba(255, 255, 255, 0.7); }
@media (max-width: 860px) {
  .site-header .wrap { padding: 0 9px 0 18px; }
  .js .nav { inset: 84px 12px auto 12px; padding: 8px 22px 22px; border-radius: var(--r-xl); border: 0; background: var(--glass-tint-strong); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); box-shadow: var(--glass-shadow); transform: translateY(-10px) scale(0.98); transform-origin: top center; transition: opacity 0.35s var(--spring), transform 0.5s var(--spring), visibility 0.35s; }
  .js .nav.is-open { transform: none; }
  .js .nav a:not(.btn) { border-radius: 0; background: none !important; }
  /* Without JavaScript the capsule grows into two rows so the links stay readable. */
  html:not(.js) .site-header { position: absolute; padding-block: 0; }
  html:not(.js) .site-header .wrap { height: auto; flex-wrap: wrap; justify-content: center; row-gap: 4px; padding: 8px 14px 10px; border-radius: var(--r-xl); }
  html:not(.js) .nav { width: 100%; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
  html:not(.js) .nav a:not(.btn) { color: var(--navy-900); padding: 10px 14px; }
}

/* ---- Capsule buttons: one prominent gold action per view, glass for the rest ---- */
.btn { border-radius: 999px; transition: transform 0.5s var(--spring-soft), background 0.3s var(--spring), border-color 0.3s var(--spring), box-shadow 0.4s var(--spring), color 0.3s var(--spring); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn--gold { background: linear-gradient(180deg, #e3b863, #cb9a40); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 24px -8px rgba(184, 134, 46, 0.7); }
.btn--gold:hover { background: linear-gradient(180deg, #ebc271, #d3a449); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 30px -8px rgba(184, 134, 46, 0.8); }
.btn--navy { background: linear-gradient(180deg, #17375a, #0b2038); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 22px -10px rgba(8, 24, 43, 0.7); }
.btn--navy:hover { background: linear-gradient(180deg, #1d436d, #0f2a48); }
.btn--ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost-dark { border-radius: 999px; }
.field input, .field select, .field textarea { border-radius: 14px; }

/* ---- Photo-first heroes (home and inner pages) ---- */
.hero, .page-hero { background: var(--navy-900); }
.hero__media, .page-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; opacity: 1; background: var(--navy-900); }
.hero__img, .page-hero__img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; object-fit: cover; object-position: var(--focus, 60% 50%); transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero__media { animation: heroIn 1.8s var(--spring) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: none; } }
.hero__scrim, .page-hero__scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 24, 43, 0.9) 0%, rgba(8, 24, 43, 0.68) 36%, rgba(8, 24, 43, 0.18) 68%, rgba(8, 24, 43, 0) 100%),
    linear-gradient(180deg, rgba(8, 24, 43, 0.62) 0%, rgba(8, 24, 43, 0) 26%, rgba(8, 24, 43, 0) 58%, rgba(8, 24, 43, 0.86) 100%); }
.hero--photo::before, .hero--photo::after, .page-hero--photo::before, .page-hero--photo::after { display: none; }
.hero--photo .wrap { grid-template-columns: minmax(0, 1fr); min-height: min(100svh, 880px); align-content: end; align-items: end; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero--photo h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); max-width: 12ch; letter-spacing: -0.02em; }
.hero--photo .hero__lead { max-width: 540px; }
.page-hero--photo { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(56px, 8vw, 104px); }
@media (max-width: 760px) {
  .hero__scrim, .page-hero__scrim { background: linear-gradient(180deg, rgba(8, 24, 43, 0.74) 0%, rgba(8, 24, 43, 0.68) 55%, rgba(8, 24, 43, 0.9) 100%); }
  .hero .eyebrow, .page-hero .eyebrow { color: #e9c27a; }
  .hero__lead, .page-hero p:not(.eyebrow) { color: #e3ebf3; }
}
/* audience chips: functional glass over the photo */
.hero__facts { margin-top: 44px; padding-top: 0; border-top: 0; gap: 10px; color: #fff; }
.hero__facts li { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.26); -webkit-backdrop-filter: blur(16px) saturate(165%); backdrop-filter: blur(16px) saturate(165%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); font-size: 0.74rem; }
.hero__facts li::before { width: 5px; height: 5px; margin-right: 10px; vertical-align: 0; }

/* ---- Scroll-lit statement (Apple's lit-words paragraph) ---- */
.statement { max-width: 980px; margin-inline: auto; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--navy); text-wrap: balance; }
[data-scrub] .w { opacity: 0.22; transition: opacity 0.3s linear; }
[data-scrub] .w.on { opacity: 1; }

/* ---- Bento service grid ---- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(240px, auto); gap: 16px; }
.tile { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--r-xl); background: var(--ivory); color: var(--muted); text-decoration: none; transition: transform 0.7s var(--spring), box-shadow 0.7s var(--spring); }
.tile h3 { font-size: clamp(1.5rem, 2.1vw, 1.95rem); margin-bottom: 10px; max-width: 18ch; }
.tile p { margin: 0 0 18px; font-size: 0.98rem; max-width: 34ch; }
.tile .link-arrow { margin-top: auto; }
.tile__icon { width: 40px; height: 40px; margin-bottom: auto; color: var(--gold); }
a.tile:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -22px rgba(8, 24, 43, 0.5); }
.tile--photo { color: #d6dfea; background: var(--navy-900); }
.tile--photo > img, .tile--photo > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--spring); }
.tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; }
a.tile--photo:hover > img, a.tile--photo:hover > picture > img { transform: scale(1.06); }
.tile--photo h3 { color: #fff; }
.tile--photo .link-arrow, .tile--navy .link-arrow { color: var(--gold-bright); }
.tile--navy { background: var(--navy); color: #b6c3d2; }
.tile--navy h3 { color: #fff; }
.tile--white { background: #fff; }
.t-2x2 { grid-column: span 2; grid-row: span 2; }
.t-2x1 { grid-column: span 2; }
.t-2x2 h3 { font-size: clamp(2rem, 3.4vw, 3rem); max-width: 14ch; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .t-2x2 { grid-row: span 1; min-height: 340px; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .t-2x2, .t-2x1 { grid-column: auto; } .tile h3, .tile p { max-width: none; } }

/* ---- Photo plates, bands ---- */
.plate { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); background: var(--navy-700); aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -34px rgba(8, 24, 43, 0.55); }
.plate--tall { aspect-ratio: 4 / 5; }
.plate--wide { aspect-ratio: 16 / 9; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.band { position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; min-height: clamp(380px, 54vw, 600px); padding: 72px var(--gutter); text-align: center; color: #fff; background: var(--navy-900); }
.band__img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; z-index: -2; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 24, 43, 0.72), rgba(8, 24, 43, 0.62) 50%, rgba(8, 24, 43, 0.78)); }
.band__text { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.015em; max-width: 16ch; margin-inline: auto; color: #fff; text-wrap: balance; text-shadow: 0 2px 24px rgba(8, 24, 43, 0.6); }
.band .eyebrow { color: var(--gold-bright); }

/* ---- Spring motion ---- */
.js [data-reveal] { transform: translateY(30px); transition: opacity 1s var(--spring), transform 1.1s var(--spring); transition-delay: var(--d, 0s); }
@supports (animation-timeline: view()) {
  .plate { animation: plateIn linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
  .plate img { animation: plateZoom linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
  @keyframes plateIn { from { transform: scale(0.93); } to { transform: scale(1); } }
  @keyframes plateZoom { from { transform: scale(1.14); } to { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media, .plate, .plate img { animation: none !important; }
  .hero__img, .page-hero__img, .band__img { transform: none !important; }
  [data-scrub] .w { opacity: 1 !important; transition: none; }
  .btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header .wrap, .lg, .hero__facts li, .btn--ghost, .js .nav { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header .wrap, .js .nav { background: #fff; }
  .hero__facts li, .btn--ghost { background: rgba(8, 24, 43, 0.7); }
}

/* ---- Editorial pillars: hairline rule, no box ---- */
.pillar { border: 0; border-top: 2px solid var(--gold); background: none; padding: 26px 12px 0 0; }

/* ---- Bento corrections: text anchored to the bottom, stronger scrim on bright photos ---- */
.tile .link-arrow { margin-top: 0; }
.tile--photo > h3 { margin-top: auto; }
.tile--photo::after { background: linear-gradient(180deg, rgba(8, 24, 43, 0.3) 0%, rgba(8, 24, 43, 0.7) 45%, rgba(8, 24, 43, 0.93) 100%); }
.tile--photo.t-2x2::after { background: linear-gradient(180deg, rgba(8, 24, 43, 0.05) 18%, rgba(8, 24, 43, 0.6) 55%, rgba(8, 24, 43, 0.92) 100%); }
.tile--photo h3, .tile--photo p, .tile--photo .link-arrow { text-shadow: 0 1px 16px rgba(8, 24, 43, 0.55); }
.tile--photo p { color: #e3ebf3; }
.site-header .wrap { background: rgba(255, 255, 255, 0.86); }

/* ---- Softer surfaces: flat rounded tiles instead of outlined boxes ---- */
.person { border: 0; border-radius: var(--r-xl); background: var(--ivory); }
.section--ivory .person { background: #fff; }
.note { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.section--statement { padding-bottom: 0; }

/* ---- Mobile menu sheet: near-opaque (a child backdrop blur cannot see through the capsule), page dimmed behind ---- */
@media (max-width: 860px) {
  .js .nav { background: rgba(247, 244, 240, 0.97); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header:has(.nav-toggle[aria-expanded="true"])::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(8, 24, 43, 0.4); pointer-events: none; }
}

/* ---- Inner page heroes share one height, content bottom aligned ---- */
.page-hero--photo { min-height: clamp(480px, 62vh, 620px); display: grid; align-content: end; }
/* 404: left weighted scrim so the lead and buttons never sit on the bright facade */
.page-hero--shade .page-hero__scrim { background: linear-gradient(90deg, rgba(8, 24, 43, 0.82) 0%, rgba(8, 24, 43, 0.6) 55%, rgba(8, 24, 43, 0.35) 100%), linear-gradient(180deg, rgba(8, 24, 43, 0.4) 0%, rgba(8, 24, 43, 0.15) 45%, rgba(8, 24, 43, 0.8) 100%); }
.page-hero--shade p:not(.eyebrow) { color: #dbe4ee; }
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* ---- Page specific rules (about) ---- */
.about-aside { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 861px) { .about-aside--sticky { position: sticky; top: calc(var(--header-h) + 32px); } }
.about-aside .plate--tall { max-width: 460px; }
@media (max-width: 860px) { .about-aside .plate--tall { max-width: none; aspect-ratio: 4 / 3; } }
.about-stack { display: grid; gap: clamp(28px, 4vw, 48px); }
.band--short { min-height: clamp(340px, 46vw, 520px); }

/* ---- Page specific rules (services) ---- */
.service .plate { margin-top: clamp(20px, 3vw, 32px); }
.service > div:first-child { min-width: 0; }
@media (min-width: 761px) { .service > div:first-child { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.steps li { padding-bottom: 16px; }

/* ---- Page specific rules (contact) ---- */
.form-tile { background: var(--ivory); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); }
.form-tile .field input, .form-tile .field select, .form-tile .field textarea { background-color: #fff; }
.form-tile .form__fine { line-height: 1.55; }
.form-tile .form__fine a { padding-block: 0; }

/* ---- Touch targets on phones ---- */
@media (max-width: 640px) {
  .link-arrow { padding-block: 11px; margin-block: -11px; }
  .site-footer li a, .site-footer address a { min-width: 44px; }
}

/* ---- Services: full profile wording per section, jump links ---- */
.services-intro { max-width: 860px; margin: 0 0 clamp(40px, 6vw, 72px); }
.services-intro__lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 28px; text-wrap: balance; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--ivory); color: var(--navy); font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: background 0.35s var(--spring), color 0.35s var(--spring), transform 0.5s var(--spring-soft); }
.jump a:hover { background: var(--navy); color: #fff; }
.jump a:active { transform: scale(0.97); }
.service__lead { font-size: 1.18rem; color: var(--ink); line-height: 1.55; }
.service__sub { margin: 26px 0 4px; font-family: var(--font-body); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }
.service__approach { margin: 22px 0 0; padding-left: 18px; border-left: 2px solid var(--gold); color: var(--muted); }

/* <picture> wrappers are layout-transparent so image rules written for a direct child img keep working */
picture { display: contents; }
