:root {
  --navy: #082e57;
  --deep: #003366;
  --blue: #11497d;
  --accent: #034f73;
  --paper: #f4f0e8;
  --paper-deep: #e7e1d4;
  --card: #fbf8f2;
  --cream: #f4f0e8;
  --line: rgba(8, 46, 87, 0.16);
  --copper: #c17a45;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --header: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
.statement {
  text-wrap: balance;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--navy);
  color: var(--cream);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--navy);
  color: var(--cream);
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  border-radius: 999px;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.25rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(244, 240, 232, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--navy);
  line-height: 1;
}

.brand:hover {
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--navy);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-small {
  min-height: 40px;
  padding: 0.5rem 0.95rem;
  font-size: 0.9rem;
  background: var(--navy);
  color: var(--cream);
}

.btn-small:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-primary {
  background: var(--navy);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover {
  background: rgba(8, 46, 87, 0.06);
}

.btn-light {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

.btn-light:hover {
  background: #fff;
  border-color: #fff;
}

.hero {
  padding: 1.75rem 0 3.25rem;
}

.hero-pair {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
}

.hero-logo {
  order: -1;
  width: min(160px, 44vw);
  height: auto;
  margin: 0;
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.45rem, 4.5vw, 4.35rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  font-style: italic;
  font-weight: 500;
}

.lede {
  margin-top: 1.35rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--copper);
  flex: none;
}

.section {
  padding: 4.5rem 0;
}

.section-deep {
  background: var(--paper-deep);
}

.section-intro {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.section-intro h2,
.band h2,
.statement {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.15rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.section-intro p,
.about-support,
.band-copy {
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.service-grid {
  counter-reset: service;
  border-top: 1px solid var(--line);
}

.service {
  padding: 1.5rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
}

.service h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.service h3::before {
  counter-increment: service;
  content: counter(service, decimal-leading-zero);
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.service p {
  margin-top: 0.55rem;
  max-width: 28rem;
}

.venture-grid {
  display: grid;
  gap: 0.8rem;
}

.venture {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem 1.25rem 1.4rem;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.venture-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.venture h3 {
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.venture p:last-child {
  margin-top: auto;
  padding-top: 1.35rem;
  max-width: 24rem;
}

.about-grid {
  display: grid;
  gap: 1.5rem;
}

.statement {
  max-width: 18em;
}

.about-support {
  max-width: 26rem;
}

.band {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(4.25rem, 8vw, 6.5rem) 0;
}

.band :focus-visible {
  outline-color: var(--cream);
}

.eyebrow-light {
  color: #d5e0ea;
}

.band h2 {
  max-width: 11em;
}

.band h2 em {
  font-style: italic;
  font-weight: 500;
}

.band-copy {
  margin-top: 1.25rem;
  color: #e7e2d8;
}

.email {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4.5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 240, 232, 0.45);
  overflow-wrap: anywhere;
}

.email:hover {
  border-bottom-color: var(--cream);
}

.site-footer {
  background: var(--deep);
  color: #e6e1d6;
  padding: 1.5rem 0 1.35rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.footer-inner {
  display: grid;
  gap: 1.1rem;
}

.footer-name {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-brand p + p {
  margin-top: 0.15rem;
}

.footer-meta address {
  font-style: normal;
  margin-top: 0.45rem;
}

.copyright {
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(244, 240, 232, 0.16);
  color: #d5dde6;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}

@media (max-width: 380px) {
  .brand {
    font-size: 1.15rem;
  }

  .btn-small {
    padding-inline: 0.75rem;
  }
}

@media (min-width: 720px) {
  .wrap {
    width: min(1120px, calc(100% - 4rem));
  }

  .nav-links {
    display: flex;
  }

  .hero {
    padding-top: 2.25rem;
  }

  .service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .service {
    padding: 1.75rem 1.5rem 1.85rem 0;
  }

  .service:nth-child(2n) {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
  }

  .venture-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 880px) {
  .section-intro,
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: end;
  }

  .section {
    padding: 6rem 0;
  }

  .footer-inner {
    grid-template-columns: 1.15fr 1fr;
    column-gap: 2rem;
    align-items: start;
  }

  .footer-meta {
    text-align: right;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (min-width: 800px) {
  .hero {
    padding: 2.25rem 0 3.5rem;
  }

  .hero-pair {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }

  .hero-pair h1 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
  }

  .hero-logo {
    order: 0;
    flex: 0 0 220px;
    width: 220px;
    margin: 0;
  }
}

@media (min-width: 980px) {

  .service-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .service,
  .service:nth-child(2n) {
    padding: 1.85rem 1.6rem 2rem 0;
    border-left: 0;
  }

  .service:nth-child(3n + 2),
  .service:nth-child(3n) {
    padding-left: 1.6rem;
    border-left: 1px solid var(--line);
  }

  .service:nth-child(3n) {
    padding-right: 0;
  }
}

@media (min-width: 1100px) {
  .venture-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .venture {
    grid-column: span 2;
  }

  .venture:nth-child(4),
  .venture:nth-child(5) {
    grid-column: span 3;
  }
}

@media (hover: hover) and (pointer: fine) {
  .service {
    transition: background-color 0.25s ease;
  }

  .service:hover {
    background: rgba(8, 46, 87, 0.035);
  }

  .venture {
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
  }

  .venture:hover {
    background: #fffdf9;
    box-shadow: inset 0 2px 0 var(--copper), inset 0 0 0 1px rgba(8, 46, 87, 0.22);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .status-dot {
    animation: pulse 2.6s ease-out infinite;
  }

  .hero .eyebrow,
  .hero-pair,
  .hero .lede,
  .hero .actions,
  .hero .status {
    animation: rise 0.7s var(--ease) both;
  }

  .hero-pair { animation-delay: 0.06s; }
  .hero .lede { animation-delay: 0.12s; }
  .hero .actions { animation-delay: 0.18s; }
  .hero .status { animation-delay: 0.24s; }

  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--d, 0ms);
  }

  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(193, 122, 69, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(193, 122, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(193, 122, 69, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
