:root {
  --ink: #171817;
  --ink-soft: #3d4240;
  --paper: #f7f6f1;
  --white: #ffffff;
  --line: rgba(23, 24, 23, 0.14);
  --blue: #084d88;
  --bronze: #a8763d;
  --shadow: 0 18px 55px rgba(14, 17, 16, 0.08);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

#approach,
#portfolio,
#contact {
  scroll-margin-top: 120px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f6f5ef 0%, #ffffff 46%, #edf1ee 100%);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  color: var(--blue);
  margin-bottom: 22px;
  font-size: clamp(44px, 8vw, 110px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.92;
}

h2 {
  color: var(--blue);
  margin-bottom: 18px;
  font-size: clamp(30px, 5vw, 62px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
}

h3 {
  color: var(--blue);
  margin-bottom: 12px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0;
  line-height: 1.05;
}

p {
  color: rgba(23, 24, 23, 0.72);
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--bronze);
  font-size: clamp(13px, 1.25vw, 15px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px clamp(22px, 5vw, 70px);
  border-bottom: 1px solid transparent;
  background: rgba(246, 245, 239, 0);
  transition: padding 220ms ease, background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.site-nav.is-scrolled {
  padding-block: 14px;
  border-bottom-color: rgba(8, 77, 136, 0.12);
  background: rgba(247, 246, 241, 0.88);
  box-shadow: 0 14px 42px rgba(14, 17, 16, 0.08);
  backdrop-filter: blur(18px);
}

.logo-lockup {
  display: block;
  width: min(230px, 44vw);
  transition: width 220ms ease, opacity 220ms ease;
}

.site-nav.is-scrolled .logo-lockup {
  width: min(180px, 38vw);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(8, 77, 136, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav.is-nav-open .nav-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-nav-open .nav-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding-block: 8px;
  transition: color 180ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  display: flex;
  min-height: min(680px, calc(100vh - 101px));
  align-items: center;
  min-width: 0;
  padding: 0 clamp(22px, 5vw, 70px) 54px;
}

.hero-copy {
  display: flex;
  width: 100%;
  max-width: min(1180px, calc(100vw - 44px));
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(40px, 8vw, 100px);
}

.hero-text {
  width: 100%;
  max-width: min(860px, calc(100vw - 44px));
  margin-bottom: 32px;
  font-size: clamp(18px, 2.4vw, 25px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 750;
}

.button-primary {
  background: var(--blue);
  color: var(--white);
}

.button-secondary {
  border: 1px solid rgba(8, 77, 136, 0.28);
  color: var(--blue);
}

.approach-band,
.company-section {
  padding: clamp(60px, 8vw, 110px) clamp(22px, 5vw, 70px);
}

.section-heading {
  width: 100%;
  max-width: 790px;
  margin-bottom: 38px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principles-grid article {
  min-height: 230px;
  padding: clamp(24px, 4vw, 40px);
  border-top: 4px solid var(--blue);
  background: rgba(255, 255, 255, 0.88);
}

.principles-grid span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: clamp(34px, 5vw, 56px);
  background: var(--blue);
  color: var(--white);
  font-weight: 850;
}

.principles-grid h3 {
  margin-bottom: 14px;
  font-size: 24px;
}

.company-section {
  background: #ffffff;
}

.portfolio-header {
  margin-bottom: 28px;
}

.company-intro {
  width: 100%;
  max-width: 760px;
}

.portfolio-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 18px;
  margin-bottom: 24px;
  padding-top: 4px;
}

.portfolio-filter-group {
  min-width: 0;
  max-width: 100%;
}

.portfolio-filter-group:last-child {
  justify-self: end;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  max-width: 100%;
}

.portfolio-filters-status {
  justify-content: flex-end;
}

.filter-chip {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(8, 77, 136, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.status-chip {
  border-color: rgba(168, 118, 61, 0.22);
  color: var(--bronze);
}

.status-chip:hover,
.status-chip:focus-visible,
.status-chip.is-active {
  border-color: var(--bronze);
  background: var(--bronze);
  color: #ffffff;
}

.portfolio-grid {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.company-profile {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(250px, 360px);
  gap: clamp(22px, 3vw, 34px);
  align-items: stretch;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(23, 24, 23, 0.14);
  background: #f8f8f4;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.company-profile > * {
  min-width: 0;
}

.company-profile.is-filtered-out {
  display: none;
}

.company-profile.is-load-hidden {
  display: none;
}

.company-profile:hover {
  border-color: rgba(8, 77, 136, 0.24);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.company-logo-panel {
  display: grid;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: clamp(22px, 3vw, 32px);
  border-right: 1px solid rgba(8, 77, 136, 0.14);
  background: #ffffff;
}

.company-logo-panel img {
  width: min(160px, 100%);
  max-height: 104px;
  object-fit: contain;
}

.company-label {
  margin-bottom: 10px;
  color: var(--bronze);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.company-body p {
  width: 100%;
  max-width: 720px;
}

.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  margin: 20px 0 22px;
}

.company-tags span {
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(8, 77, 136, 0.16);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: break-word;
  text-transform: uppercase;
}

.company-link {
  display: inline-flex;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.portfolio-empty {
  margin: 30px 0 0;
  padding: 24px;
  border: 1px solid rgba(8, 77, 136, 0.14);
  color: rgba(23, 24, 23, 0.62);
  text-align: center;
}

.portfolio-load-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.portfolio-load {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(8, 77, 136, 0.26);
  border-radius: 4px;
  background: #ffffff;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.portfolio-load:hover,
.portfolio-load:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.portfolio-load.is-hidden {
  display: none;
}

.company-facts {
  display: grid;
  gap: 1px;
  margin: 0;
  background: rgba(23, 24, 23, 0.13);
}

.company-facts div {
  padding: 18px;
  background: #ffffff;
}

.legal-main {
  padding: clamp(60px, 8vw, 110px) clamp(22px, 5vw, 70px);
  background: #ffffff;
}

.legal-article {
  width: 100%;
  max-width: 980px;
}

.legal-article h1 {
  margin-bottom: clamp(42px, 5vw, 64px);
  font-size: clamp(44px, 7vw, 92px);
}

.legal-meta {
  margin-bottom: clamp(44px, 6vw, 72px);
  color: rgba(23, 24, 23, 0.54);
  font-size: 13px;
  text-transform: uppercase;
}

.legal-section {
  max-width: 820px;
  padding-block: 30px;
  border-top: 1px solid rgba(23, 24, 23, 0.14);
}

.legal-section h2 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.legal-section a {
  color: var(--blue);
  font-weight: 750;
}

.legal-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: rgba(23, 24, 23, 0.72);
  line-height: 1.65;
}

.legal-details {
  display: grid;
  gap: 1px;
  margin: 0;
  background: rgba(23, 24, 23, 0.13);
}

.legal-details div {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: #ffffff;
}

dt {
  color: rgba(23, 24, 23, 0.54);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-weight: 750;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 5vw, 70px);
  padding: 28px clamp(22px, 5vw, 70px);
  border-top: 1px solid rgba(23, 24, 23, 0.14);
  font-size: 13px;
}

.footer-company {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  min-width: 0;
  margin: 0;
}

.footer-company > * {
  min-width: 0;
}

.site-footer strong {
  color: var(--blue);
  font-weight: 650;
}

.site-footer a,
.site-footer span {
  color: rgba(23, 24, 23, 0.64);
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  color: var(--blue);
  font-weight: 650;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--blue);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current="page"] {
  color: #063b68;
}

@media (max-width: 980px) {
  #approach,
  #portfolio,
  #contact {
    scroll-margin-top: 104px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    row-gap: 0;
    align-items: center;
    padding-block: 14px;
    background: rgba(247, 246, 241, 0.94);
    border-bottom-color: rgba(8, 77, 136, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: none;
    transition: none;
  }

  .site-nav.is-scrolled {
    padding-block: 14px;
    background: rgba(247, 246, 241, 0.94);
    box-shadow: none;
  }

  .site-nav.is-nav-open {
    row-gap: 14px;
  }

  .logo-lockup {
    align-self: center;
    width: min(180px, calc(100vw - 104px));
    transition: none;
  }

  .site-nav.is-scrolled .logo-lockup {
    width: min(180px, calc(100vw - 104px));
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    align-self: center;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(14, 17, 16, 0.06);
  }

  .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    overflow: hidden;
    padding-top: 0;
    border-top: 0 solid rgba(8, 77, 136, 0);
    opacity: 0;
    visibility: hidden;
    transition: max-height 220ms ease, opacity 180ms ease, padding-top 180ms ease, border-color 180ms ease;
  }

  .site-nav.is-nav-open .nav-links {
    max-height: 180px;
    padding-top: 12px;
    border-top-width: 1px;
    border-top-color: rgba(8, 77, 136, 0.14);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    padding-block: 10px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-company {
    display: grid;
    gap: 4px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .portfolio-tools {
    align-items: flex-start;
  }

  .portfolio-filter-group {
    width: 100%;
  }

  .portfolio-filters {
    justify-content: flex-start;
  }

  .portfolio-filters-status {
    justify-content: flex-end;
  }

  .company-profile {
    grid-template-columns: 1fr;
  }

  .company-logo-panel {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid rgba(8, 77, 136, 0.14);
    justify-content: center;
  }

  .hero-copy {
    padding-bottom: 12px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero-text {
    max-width: 300px;
  }

  .section-heading,
  .company-intro,
  .principles-grid article p,
  .company-body,
  .company-body p,
  .company-tags,
  .company-facts,
  .portfolio-filters,
  .legal-section,
  .legal-details {
    width: 100%;
    max-width: 300px;
  }

  .legal-details div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .company-profile,
  .principles-grid article {
    width: 100%;
    max-width: calc(100vw - 44px);
  }

  .portfolio-load-wrap {
    justify-content: flex-start;
  }

  .portfolio-load {
    width: 100%;
    max-width: 300px;
  }

  .portfolio-tools {
    grid-template-columns: 1fr;
  }

  .portfolio-filter-group:last-child {
    justify-self: start;
  }

  .portfolio-filters-status {
    justify-content: flex-start;
  }

  .principles-grid span {
    margin-bottom: 44px;
  }
}
