:root {
  --navy: #0a1626;
  --navy-mid: #12233c;
  --navy-light: #1c3157;
  --gold: #b8892e;
  --gold-light: #d9ae5c;
  --gold-deep: #8a6620;
  --paper: #faf9f6;
  --ink: #1a1f29;
  --muted: #5b6472;
  --line: #e4e1d8;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Georgia', 'Iowan Old Style', 'Palatino Linotype', serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
h1, h2, h3, .brand, nav a, .btn, .tag, .kicker, .stat-num, .stat-label, .tab-btn { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; position: relative; }

/* Smooth cross-document transitions between pages (progressive enhancement) */
@view-transition {
  navigation: auto;
}
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.28s;
  animation-timing-function: ease;
}

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 30px; height: 30px; flex: none; }
nav { display: flex; gap: 32px; align-items: center; }
nav a { font-size: 0.92rem; color: var(--navy); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--gold-deep); }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 2px;
  background: var(--navy); color: #fff; text-decoration: none;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--navy);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--navy-light); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* Sector sub-nav */
.subnav {
  position: sticky; top: 76px; z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.subnav-row { display: flex; gap: 10px; padding: 14px 0; overflow-x: auto; }
.tab-btn {
  padding: 9px 18px; border-radius: 20px; border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 600; color: var(--navy); text-decoration: none;
  white-space: nowrap; transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex: none;
}
.tab-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.tab-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  padding: 108px 0 96px;
}
.hero-grid { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--gold-light); font-weight: 700; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.15rem); line-height: 1.14; margin: 0 0 24px;
  color: #fff; font-weight: 700; letter-spacing: -0.01em;
}
.hero p.lead {
  font-family: 'Georgia', serif; font-size: 1.14rem; color: #c3cbdb;
  max-width: 560px; margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art { position: relative; }

/* Homepage simplified hero with sector buttons as the main feature */
.hero.hero-simple .wrap { grid-template-columns: 1fr; }
.hero-simple p.lead { max-width: none; }
.sector-cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 10px 0 4px; }
.sector-btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 40px 22px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.15rem; line-height: 1.35;
  transition: background 0.15s, border-color 0.15s;
}
.sector-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--gold-light); }
@media (max-width: 700px) {
  .sector-cta-grid { grid-template-columns: 1fr; }
}

/* Sound familiar */
.familiar { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; padding: 72px 0; }
.familiar h2 { color: var(--navy); font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 20px; font-weight: 700; }
.familiar p { max-width: 760px; margin: 0 auto; font-family: 'Georgia', serif; font-size: 1.18rem; color: var(--muted); line-height: 1.75; }

/* Stat band */
.stat-band { background: var(--navy-mid); border-top: 1px solid rgba(255,255,255,0.08); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 34px 26px; border-left: 1px solid rgba(255,255,255,0.1); text-align: left; }
.stat-cell:first-child { border-left: none; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--gold-light); margin-bottom: 6px; letter-spacing: -0.01em; }
.stat-label { font-size: 0.82rem; color: #aab4c8; line-height: 1.4; }
.credibility-line {
  margin: 0; padding: 34px 0; text-align: center;
  color: #dbe1ee; font-family: 'Georgia', serif; font-size: 1.15rem; line-height: 1.6;
  max-width: 820px; margin-left: auto; margin-right: auto;
}

/* Sections */
section { padding: 84px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.kicker.dark { color: var(--gold-deep); }
.section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); color: var(--navy); margin: 0 0 14px; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Services grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 30px 26px; }
section.alt .card { background: var(--paper); }
.card .icon { width: 42px; height: 42px; margin-bottom: 18px; color: var(--gold-deep); }
.card .icon svg { width: 100%; height: 100%; display: block; }
.card h3 { margin: 0 0 10px; font-size: 1.08rem; color: var(--navy); font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Track record */
.cases { position: relative; }
.cases::before {
  content: ""; position: absolute; left: 199px; top: 8px; bottom: 8px; width: 1px;
  background: var(--line);
}
.case { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 34px 0; }
.case:not(:last-child) { border-bottom: 1px solid var(--line); }
.case::after {
  content: ""; position: absolute; left: 195px; top: 40px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.case .org { font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.case .org .role { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; margin-top: 4px; font-family: -apple-system, sans-serif; }
.case ul { margin: 0; padding: 0; list-style: none; }
.case li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--ink); font-size: 0.98rem; }
.case li::before { content: "—"; position: absolute; left: 0; color: var(--gold-deep); }
.case li:last-child { margin-bottom: 0; }
.case-lede { margin: 0 0 16px; color: var(--ink); font-family: 'Georgia', serif; font-size: 1.02rem; font-style: italic; }

/* Departments strip */
.dept-strip { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.dept-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--muted); font-family: -apple-system, sans-serif; font-weight: 600; margin-bottom: 20px; }
.dept-row { display: flex; flex-wrap: wrap; gap: 14px; }
.dept-chip {
  border: 1px solid var(--line); border-radius: 3px; padding: 12px 18px;
  font-family: -apple-system, sans-serif; font-size: 0.88rem; font-weight: 600; color: var(--navy);
  background: var(--paper); letter-spacing: 0.01em;
}

/* Engagement model */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #fff; }
.model-col { padding: 32px 28px; border-left: 1px solid var(--line); }
.model-col:first-child { border-left: none; }
.model-col .icon { width: 30px; height: 30px; margin-bottom: 16px; color: var(--gold-deep); }
.model-col .icon svg { width: 100%; height: 100%; }
.model-col h3 { margin: 0 0 12px; color: var(--navy); font-size: 1rem; font-weight: 700; }
.model-col p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.model-col.highlight { background: var(--navy); }
.model-col.highlight .icon { color: var(--gold-light); }
.model-col.highlight h3 { color: #fff; }
.model-col.highlight p { color: #b7c0d4; }
.outcome-note {
  margin-top: 20px; padding: 20px 26px; border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 3px; background: #fff; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline;
}
.outcome-note strong { color: var(--navy); font-family: -apple-system, sans-serif; font-size: 0.98rem; }
.outcome-note span { color: var(--muted); font-family: -apple-system, sans-serif; font-size: 0.94rem; }

/* Alternative comparison */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* About */
.about-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.about-badge { position: relative; width: 128px; height: 128px; margin-bottom: 22px; }
.about-badge svg { width: 100%; height: 100%; }
.about-layout h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.15rem; }
.about-layout .role-line { color: var(--gold-deep); font-weight: 600; font-size: 0.88rem; margin-bottom: 20px; font-family: -apple-system, sans-serif; }
.about-copy p { color: var(--ink); font-size: 1.02rem; margin: 0 0 18px; }
.about-copy p:last-child { margin-bottom: 0; }

/* Contact */
.contact-box {
  position: relative; overflow: hidden;
  background: var(--navy); border-radius: 4px; padding: 56px; color: #fff;
}
.contact-head { max-width: 560px; margin-bottom: 40px; position: relative; }
.contact-box h2 { margin: 0 0 14px; font-size: 1.9rem; font-weight: 700; }
.contact-box p { margin: 0; color: #c3cbdb; font-size: 1.02rem; max-width: 480px; }

.contact-form { position: relative; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.form-row .field { margin-bottom: 0; }
.field label { font-family: -apple-system, sans-serif; font-size: 0.82rem; font-weight: 600; color: #aab4c8; text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field textarea {
  font-family: -apple-system, sans-serif; font-size: 0.95rem; color: #fff;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.22); border-radius: 3px;
  padding: 11px 14px; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #7c88a0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-light); background: rgba(255,255,255,0.09); }
.hp-field { position: absolute; left: -9999px; }
.form-status { margin: 16px 0 0; font-family: -apple-system, sans-serif; font-size: 0.92rem; }
.form-status.success { color: var(--gold-light); }
.form-status.error { color: #e79a9a; }
.contact-form button[type="submit"] { border: none; cursor: pointer; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

footer { padding: 36px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer p { margin: 0; color: var(--muted); font-size: 0.85rem; font-family: -apple-system, sans-serif; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(3) { border-left: none; }
  .model-grid { grid-template-columns: 1fr; }
  .model-col { border-left: none; border-top: 1px solid var(--line); }
  .model-col:first-child { border-top: none; }
  .about-layout { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; gap: 12px; }
  .cases::before, .case::after { display: none; }
  .contact-box { grid-template-columns: 1fr; padding: 36px 26px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  nav { display: none; }
  .hero { padding: 64px 0 0; }
  section { padding: 56px 0; }
}
