:root {
  color-scheme: light;
  --ink: #17202b;
  --muted: #566473;
  --line: #dbe2ea;
  --paper: #f8fafc;
  --soft: #edf2f8;
  --blue: #012195;
  --brand-blue: #012195;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.site-header { background: var(--brand-blue); border-bottom: 1px solid rgba(255,255,255,.18); }
.nav-wrap {
  width: min(100%, var(--max)); min-height: 100px; margin: auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { display: block; width: 200px; height: 96px; object-fit: contain; object-position: center; border-radius: 4px; background: var(--brand-blue); }

.primary-nav { display: flex; align-items: center; gap: 14px; font-size: 16px; color: rgba(255,255,255,.88); }
.primary-nav a { padding: 12px 14px; border-radius: 4px; transition: background .16s ease, color .16s ease; }
.primary-nav a:hover { color: #fff; background: rgba(255,255,255,.10); }
.primary-nav a.active { color: #fff; background: rgba(255,255,255,.18); box-shadow: inset 0 -3px 0 #fff; font-weight: 750; }
.primary-nav .nav-contact { color: #fff; }
.menu-toggle { display: none; }
.site-main { overflow: clip; }
.container { width: min(100%, var(--max)); margin-inline: auto; padding-inline: 28px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 650; letter-spacing: .055em; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 5vw, 58px); padding-top: 70px; padding-bottom: 70px; }
.hero > div { max-width: 620px; }
.hero h1, .page-title { max-width: 820px; margin: 0 0 22px; font-size: clamp(46px, 6.5vw, 72px); line-height: 1.04; letter-spacing: -.065em; font-weight: 630; }
.hero h1 span { color: var(--blue); }
.hero-lede { max-width: 650px; margin-bottom: 18px; color: var(--muted); font-size: 18px; }
.hero-note { max-width: 650px; margin: 0 0 27px; color: var(--muted); font-size: 14px; }
.hero-actions { display: flex; align-items: center; gap: 23px; }
.text-link { color: var(--blue); font-size: 14px; font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-image { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center; border-radius: 5px; background: var(--soft); }
.section { padding-block: 68px; }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; letter-spacing: -.045em; font-weight: 620; }
.services { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.service { padding: 20px 22px 20px 0; }
.service + .service { padding-left: 22px; border-left: 1px solid var(--line); }
.service h3 { margin: 0 0 7px; font-size: 15px; font-weight: 650; }
.service p { max-width: 245px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.projects-section { padding-top: 76px; padding-bottom: 80px; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-top .section-heading { margin: 0; }
.arrow-link { color: var(--blue); font-size: 14px; font-weight: 650; white-space: nowrap; }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.project-card { min-width: 0; display: grid; grid-template-columns: minmax(130px, .8fr) 1.2fr; grid-template-rows: auto 1fr; align-items: center; gap: 0 18px; }
.project-image { grid-column: 1; grid-row: 1 / 3; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: var(--soft); }
.project-card h3 { grid-column: 2; grid-row: 1; margin: 0 0 6px; font-size: 20px; letter-spacing: -.025em; font-weight: 640; }
.project-card p { grid-column: 2; grid-row: 2; align-self: start; max-width: 490px; margin: 0; color: var(--muted); font-size: 14px; }
.contact-strip { padding-block: 32px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact-strip h2 { margin: 0; font-size: 22px; font-weight: 620; letter-spacing: -.03em; }
.contact-strip a { color: var(--blue); font-size: 14px; font-weight: 650; }
.site-footer { background: var(--brand-blue); border-top: 1px solid rgba(255,255,255,.18); }
.footer-inner { width: min(100%, var(--max)); min-height: 100px; margin: auto; padding: 12px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.90); font-size: 13px; flex-wrap: wrap; }
.footer-inner p { flex: 1 1 260px; }
.footer-inner a:not(.footer-brand) { overflow-wrap: anywhere; }
.footer-brand { display: block; flex: 0 0 auto; }
.footer-brand img { width: 184px; height: 88px; object-fit: contain; border-radius: 4px; background: var(--brand-blue); }
.footer-inner p { margin: 0; }
.footer-inner a:not(.footer-brand) { color: #fff; }
.footer-inner a:not(.footer-brand):hover { color: rgba(255,255,255,.78); }

.about-intro { max-width: 800px; padding-top: 88px; padding-bottom: 76px; }
.about-intro .page-title { max-width: 760px; }
.about-intro .hero-lede { max-width: 690px; }
.about-profile { min-height: 630px; padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: minmax(280px, 390px) minmax(0, 1fr); align-items: center; gap: clamp(36px, 5vw, 64px); }
.about-portrait { margin: 0; overflow: hidden; border-radius: 6px; background: #d3d9df; }
.about-portrait-image { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; }
.about-portrait figcaption { padding: 16px 20px 20px; display: grid; gap: 2px; background: #e8edf2; color: var(--ink); text-align: center; }
.about-portrait figcaption strong { font-size: 22px; line-height: 1.2; }
.about-portrait figcaption span { color: var(--muted); font-size: 16px; }
.about-copy { max-width: 780px; padding-block: 0; }
.about-copy p { margin-bottom: 22px; color: var(--ink); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.about-copy h2 { margin-bottom: 18px; font-size: 24px; font-weight: 620; letter-spacing: -.03em; }

.projects-intro { padding-top: 77px; padding-bottom: 38px; }
.projects-intro .page-title { margin-bottom: 14px; }
.projects-intro .hero-lede { max-width: 560px; margin: 0; color: var(--muted); }
.case-study { display: grid; grid-template-columns: .94fr 1fr; gap: 52px; align-items: center; padding-top: 46px; padding-bottom: 56px; border-top: 1px solid var(--line); scroll-margin-top: 82px; }
.case-study:nth-of-type(even) .case-image-wrap { order: 2; }
.case-image-wrap { min-height: 330px; display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: 5px; background: var(--soft); }
.case-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 520px; object-fit: contain; border-radius: 3px; }
.case-content .eyebrow { margin-bottom: 10px; }
.case-content h2 { margin: 0 0 14px; font-size: clamp(27px, 3.2vw, 36px); line-height: 1.18; letter-spacing: -.045em; font-weight: 630; }
.case-content p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.case-fact { margin-top: 20px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 620; }
.project-close { padding-top: 44px; padding-bottom: 54px; border-top: 1px solid var(--line); }
.project-close h2 { margin: 0; font-size: 23px; font-weight: 620; }
.project-close a { color: var(--blue); font-size: 14px; font-weight: 650; }

@media (max-width: 760px) {
  .nav-wrap { min-height: 88px; padding-inline: 21px; }
  .brand-logo { width: 156px; height: 76px; }
  .container { padding-inline: 21px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 60px; padding-bottom: 54px; }
  .hero-image { max-height: 390px; }
  .hero h1, .page-title { font-size: clamp(44px, 10vw, 64px); }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service { padding: 17px 16px 18px 0; }
  .service + .service { padding-left: 16px; }
  .service:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .service:nth-child(4) { border-top: 1px solid var(--line); }
  .project-cards { grid-template-columns: 1fr; gap: 24px; }
  .case-study { grid-template-columns: 1fr; gap: 24px; }
  .case-study:nth-of-type(even) .case-image-wrap { order: 0; }
  .case-image-wrap { min-height: 0; }
  .about-profile { min-height: 0; padding-top: 42px; padding-bottom: 50px; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .about-portrait { width: min(100%, 360px); }
  .about-copy p { font-size: 17px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 68px; }
  .menu-toggle { display: flex; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
  .menu-toggle span { width: 17px; height: 1.5px; background: var(--ink); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .primary-nav { display: none; position: absolute; z-index: 5; top: 87px; left: 0; right: 0; padding: 12px 21px 18px; background: var(--brand-blue); border-bottom: 1px solid rgba(255,255,255,.18); flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 11px 12px; }
  .hero h1, .page-title { font-size: clamp(44px, 10vw, 64px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { flex-wrap: wrap; gap: 17px; }
  .section { padding-block: 52px; }
  .section-top { align-items: flex-start; flex-direction: column; }
  .project-cards { gap: 24px; }
  .contact-strip { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-inner { padding: 14px 21px; flex-wrap: wrap; gap: 8px 16px; }
  .footer-brand img { width: 158px; height: 76px; }
  .footer-inner p { flex-basis: 100%; order: 3; }
  .projects-intro { padding-top: 58px; padding-bottom: 30px; }
  .case-study { padding-top: 30px; padding-bottom: 40px; }
  .case-image { height: 235px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


.contact-page { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); column-gap: clamp(42px, 8vw, 104px); row-gap: 25px; padding-top: 82px; padding-bottom: 88px; align-items: start; }
.contact-intro { position: sticky; top: 40px; }
.contact-intro .page-title { margin-bottom: 18px; font-size: clamp(42px, 5.3vw, 62px); }
.contact-intro .hero-lede { max-width: 480px; margin: 0; }
.contact-form { display: grid; gap: 19px; }
.contact-form label { display: grid; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 620; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #c9d2dc; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid rgba(1,33,149,.28); outline-offset: 1px; border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; }
.form-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 2px; }
.button-primary { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; gap: 17px; border: 0; border-radius: 4px; background: var(--blue); color: white; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.button-primary:hover { background: #00196f; }
.form-submit p, .contact-email { margin: 0; color: var(--muted); font-size: 13px; }
.contact-email { grid-column: 2; }
.contact-email a { color: var(--blue); font-weight: 620; }
.form-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 760px) { .contact-page { grid-template-columns: 1fr; row-gap: 30px; padding-top: 58px; padding-bottom: 60px; } .contact-intro { position: static; } .contact-email { grid-column: 1; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 19px; } .form-submit { align-items: flex-start; flex-direction: column; gap: 10px; } }


.contact-page { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); column-gap: clamp(42px, 8vw, 104px); row-gap: 25px; padding-top: 82px; padding-bottom: 88px; align-items: start; }
.contact-intro { position: sticky; top: 40px; }
.contact-intro .page-title { margin-bottom: 18px; font-size: clamp(42px, 5.3vw, 62px); }
.contact-intro .hero-lede { max-width: 480px; margin: 0; }
.contact-form { display: grid; gap: 19px; }
.contact-form label { display: grid; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 620; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #c9d2dc; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid rgba(1,33,149,.28); outline-offset: 1px; border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; }
.form-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 2px; }
.button-primary { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; gap: 17px; border: 0; border-radius: 4px; background: var(--blue); color: white; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.button-primary:hover { background: #00196f; }
.form-submit p, .contact-email { margin: 0; color: var(--muted); font-size: 13px; }
.contact-email { grid-column: 2; }
.contact-email a { color: var(--blue); font-weight: 620; }
.form-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
@media (max-width: 760px) { .contact-page { grid-template-columns: 1fr; row-gap: 30px; padding-top: 58px; padding-bottom: 60px; } .contact-intro { position: static; } .contact-email { grid-column: 1; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 19px; } .form-submit { align-items: flex-start; flex-direction: column; gap: 10px; } }
