:root {
  color-scheme: light;
  --ink: #0b192f;
  --navy: #08162b;
  --muted: #495464;
  --cream: #f6f4ef;
  --paper: #fff;
  --line: #dad6cc;
  --gold: #e1bd76;
  --ochre: #825918;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  --wrap: min(1320px, calc(100% - 112px));
  --header-height: 84px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #946316; outline-offset: 5px; }
.hero :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: #ffe2aa; }
::selection { background: #f0d294; color: var(--ink); }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: 12px; z-index: 8; background: white; padding: 14px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 5; background: #fff; box-shadow: 0 1px 0 #08162b12; }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 156px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); font-size: 14px; font-weight: 600; }
.site-nav a { padding-block: 9px; }
.site-nav a:hover { color: var(--ochre); }
.site-nav .nav-contact { border: 1px solid #c9b18b; padding: 12px 17px; display: inline-flex; align-items: center; gap: 18px; }
.nav-contact span { font-size: 16px; line-height: 1; }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; }
.hero-image, .hero::after, .hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-image { object-fit: cover; object-position: 62% 54%; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, #081326f5 0%, #081326d9 26%, #08132655 62%, #0813261c 100%),
              linear-gradient(0deg, #0813269c, transparent 45%);
}
.hero-grid { z-index: 1; background: linear-gradient(90deg, #f6d79120 1px, transparent 1px) 0 0 / 25% 100%; opacity: .47; }
.hero-inner { position: relative; z-index: 2; display: grid; align-items: center; min-height: clamp(620px, calc(100svh - var(--header-height)), 850px); padding-block: 83px 104px; }
.hero-copy { max-width: 760px; animation: hero-enter .9s cubic-bezier(.2,.72,.25,1) both; }
.eyebrow, .section-index, .hero-index { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .21em; line-height: 1.4; }
.eyebrow { margin: 0 0 25px; }
.eyebrow-light { color: #f0d8a6; }
.eyebrow i { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); margin-inline: 2px 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(72px, 9.1vw, 145px); line-height: .88; letter-spacing: -.07em; margin-bottom: 31px; }
h1 em, h2 em { font-weight: 400; }
h1 em, .contact h2 em { color: #f0ce91; }
.hero-lead { max-width: 410px; color: #f1f2f4; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.65; margin-bottom: 30px; }
.button { min-height: 54px; display: inline-flex; gap: 24px; align-items: center; justify-content: space-between; padding: 0 19px; font-size: 14px; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.button-gold { background: #ebcb8e; color: var(--navy); }
.button-gold:hover { background: #f6dda9; transform: translateY(-3px); }
.button span { font-size: 19px; line-height: 1; }
.hero-index { position: absolute; bottom: 31px; right: 0; color: #f9e8c8; font-size: 10px; }
.hero-index span { width: 48px; border-top: 1px solid #eed5a8a6; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.section { padding-block: clamp(68px, 8vw, 123px); }
.section-index { margin: 0 0 25px; color: var(--ochre); font-size: 10px; }
.section-index span { font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .12em; }
.section-index i { width: 28px; border-top: 1px solid currentColor; }
h2 { font-size: clamp(44px, 6vw, 91px); line-height: .98; letter-spacing: -.063em; margin-bottom: 20px; }
h2 em { color: var(--ochre); }
.about { background: var(--paper); }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, .9fr); gap: 0 clamp(30px, 7vw, 115px); align-items: center; }
.about-layout > .section-index { grid-column: 1 / -1; }
.about-copy p, .portfolio-heading p, .contact p { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.72; margin: 0; max-width: 620px; color: var(--muted); }
.stat-tile { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: end; border: 1px solid var(--line); padding: 30px 25px; min-height: 176px; background: var(--cream); }
.stat { position: relative; z-index: 1; display: grid; gap: 9px; }
.stat strong { font: 400 clamp(48px, 5vw, 76px)/.88 var(--serif); letter-spacing: -.075em; }
.stat span { font-size: 12px; line-height: 1.5; font-weight: 650; }
.stat-decoration { position: absolute; right: -62px; top: -120px; width: 305px; color: #bb8f4040; }

.portfolio { background: var(--cream); border-top: 1px solid #e8e2d7; }
.portfolio-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 29px; }
.portfolio-heading h2 { margin-bottom: 0; }
.portfolio-heading p { max-width: 275px; padding-bottom: 4px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 13px 20px; justify-content: space-between; align-items: center; padding-block: 17px; border-top: 1px solid var(--line); margin-bottom: 7px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.filters button { cursor: pointer; min-height: 44px; font-size: 13px; font-weight: 650; background: transparent; padding: 8px 13px; border: 1px solid transparent; transition: background .2s ease, color .2s ease; }
.filters button:hover { border-color: #c7b79f; }
.filters button[aria-pressed="true"] { background: var(--navy); color: white; }
.result-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.company-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.company { position: relative; background: white; display: flex; flex-direction: column; padding: 25px clamp(22px, 2.5vw, 39px) 24px; min-height: 324px; }
.company::before { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 100%; background: #bc8f4b; transform-origin: left; transform: scaleX(0); transition: transform .3s ease; }
.company:hover::before, .company:focus-within::before { transform: scaleX(1); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.card-number { color: #596271; font-variant-numeric: tabular-nums; }
.sector { color: var(--ochre); }
.company-logo { display: flex; align-items: center; height: 73px; margin-block: 10px 7px; }
.company-logo img { width: auto; height: auto; max-height: 52px; max-width: 70px; }
.company-logo-wide img { width: 134px; max-width: 100%; }
.company h3 { font-size: clamp(25px, 2.35vw, 36px); letter-spacing: -.045em; line-height: 1.07; margin-bottom: 11px; text-wrap: balance; }
.company p { font-size: 15px; line-height: 1.63; color: var(--muted); margin-bottom: 20px; }
.company-link { border-top: 1px solid #e8e4db; padding-block: 13px 5px; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; min-height: 44px; }
.company-link:hover { color: var(--ochre); }
.company-link span { font-size: 19px; line-height: 1; transition: transform .2s ease; }
.company-link:hover span { transform: translate(2px,-2px); }
.company:last-child { grid-column: 1 / -1; }
.company-grid.is-filtered { background: transparent; border: 0; gap: 1px; }
.company-grid.is-filtered .company { border: 1px solid var(--line); }

.contact { position: relative; isolation: isolate; overflow: hidden; color: white; background: var(--navy); padding-block: clamp(69px, 8.4vw, 121px); }
.contact-decoration { position: absolute; z-index: -1; bottom: -20px; right: 0; height: 100%; width: min(68vw, 760px); color: #dfb46c45; pointer-events: none; }
.section-index-light { color: #edce94; }
.contact p { color: #d7dfeb; }
.email-link { display: inline-flex; align-items: center; gap: 17px; margin-top: 25px; padding-bottom: 8px; border-bottom: 1px solid #d7aa61; font: 400 clamp(24px, 3vw, 39px)/1.1 var(--serif); }
.email-link:hover { color: #f3ce8c; }
.email-link span { font: 400 22px/1 var(--sans); color: var(--gold); }
.site-footer { background: #071224; color: #c8d2e0; border-top: 1px solid #273750; font-size: 13px; }
.footer-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.footer-inner a { padding-block: 12px; }
.footer-inner a:hover { color: #f3ce8c; }
.footer-inner a span { padding-left: 5px; }

@media (min-width: 1060px) {
  .company:last-child { min-height: 195px; display: grid; grid-template-columns: 112px minmax(0,1fr) minmax(170px,.44fr); grid-template-rows: auto auto auto; column-gap: 27px; align-content: center; }
  .company:last-child .card-top { grid-column: 1 / -1; margin-bottom: 15px; }
  .company:last-child .company-logo { grid-row: 2 / span 2; margin-block: 0; height: auto; }
  .company:last-child h3 { grid-column: 2; margin-bottom: 7px; }
  .company:last-child p { grid-column: 2; margin-bottom: 0; max-width: 500px; }
  .company:last-child .company-link { grid-row: 2 / span 2; grid-column: 3; align-self: center; margin: 0; border-top: 0; border-bottom: 1px solid #e8e4db; }
}
@media (max-width: 1059px) {
  :root { --wrap: calc(100% - 68px); }
  .company-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .company:last-child { grid-column: auto; }
}
@media (max-width: 760px) {
  :root { --wrap: calc(100% - 42px); --header-height: 67px; }
  .brand img { width: 133px; }
  .header-inner { flex-wrap: wrap; gap: 0; padding-block: 8px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 9px; background: transparent; border: 0; cursor: pointer; font-size: 14px; font-weight: 650; }
  .menu-icon { display: block; width: 17px; height: 10px; border-block: 1px solid currentColor; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 10px 21px; padding-bottom: 8px; }
  .site-nav.is-collapsible { display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-contact { padding: 8px 10px; gap: 8px; }
  .hero-inner { min-height: 618px; min-height: clamp(565px, 82svh, 680px); padding-block: 74px 94px; }
  .hero::after { background: linear-gradient(90deg,#081326ef,#08132695 60%,#08132650), linear-gradient(0deg,#081326a6,transparent 60%); }
  .hero-image { object-position: 67% 50%; }
  h1 { font-size: clamp(66px, 11.9vw, 90px); margin-bottom: 23px; }
  .eyebrow { margin-bottom: 22px; }
  .hero-index { bottom: 25px; }
  .about-layout { grid-template-columns: 1fr; gap: 0; }
  .stat-tile { margin-top: 24px; min-height: 148px; }
  .portfolio-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 22px; }
  .portfolio-heading p { max-width: 360px; }
}
@media (max-width: 530px) {
  .company-grid { grid-template-columns: minmax(0,1fr); }
  .company { min-height: 0; }
  .company h3 { font-size: 31px; }
  .company-logo { height: 65px; }
  .contact-decoration { opacity: .55; }
  .filters button { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
