@font-face {
  font-family: Inter;
  src: url("inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f7f8;
  --ink: #102631;
  --muted: #435963;
  --deep: #0b4651;
  --line: #d6dfe2;
  --display: "Space Grotesk", Inter, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 Inter, system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #ae641f; outline-offset: 5px; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
.wrap { width: min(1240px, calc(100% - clamp(36px, 9vw, 132px))); margin-inline: auto; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 87px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 1.4rem/1 var(--display); letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
nav, .nav-links { display: flex; gap: clamp(12px, 3vw, 32px); align-items: center; flex-wrap: wrap; }
nav { width: 100%; justify-content: space-between; }
nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-size: .86rem; font-weight: 600; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-contact { border: 1px solid var(--line); border-radius: 100px; padding-inline: 15px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(520px, 51vw, 690px);
  margin-block: clamp(18px, 3vw, 38px) clamp(42px, 6vw, 76px);
  padding: clamp(32px, 6vw, 86px);
  overflow: hidden;
  border-radius: 16px;
  background: #122e38;
  color: #fff;
}
.hero-copy { display: grid; justify-items: start; gap: clamp(17px, 2vw, 27px); max-width: 710px; }
.hero .eyebrow { color: #bfe7e6; }
.hero .intro { color: #e0eeef; max-width: 49ch; }
.hero h1 span { color: #bfe7e6; }
.hero .button { background: #eef8f7; color: #143740; }
.hero .button:hover { background: #cdeae7; }
.hero .text-link { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.hero a:focus-visible { outline-color: #f5cc88; }
.eyebrow { font-size: .71rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #145e67; }
h1, h2, h3 { font-family: var(--display); line-height: 1; letter-spacing: -.055em; }
h1 { font-size: clamp(2.75rem, 5.7vw, 5.3rem); max-width: 13ch; }

h2 { font-size: clamp(2.45rem, 4.5vw, 4.65rem); }
h3 { font-size: clamp(1.9rem, 3vw, 2.65rem); }
.intro { max-width: 50ch; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.17rem); }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 47px; padding: 10px 17px; border-radius: 7px; background: var(--deep); color: white; text-decoration: none; font-size: .88rem; font-weight: 600; }
.button:hover { background: #17606b; }
.hero-image { position: absolute; z-index: -1; inset: 0; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 66% 53%; }
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #102b36 3%, #102b36f5 28%, #102b36de 46%, #102b364d 76%, #102b361a);
}

.work { padding-block: clamp(58px, 8vw, 108px); }
.section-heading { display: grid; gap: 10px; margin-bottom: clamp(24px, 4vw, 44px); }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 30px); }
.project { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; color: var(--deep); }


.about {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 6vw, 84px);
  padding: clamp(24px, 5vw, 68px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.about-inner { display: grid; gap: 24px; }
.about .eyebrow { margin-bottom: 13px; }
.about h2 { max-width: 17ch; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.06; }
.about-inner > div:last-child { display: grid; gap: 13px; max-width: 57ch; color: var(--muted); }

.principles {
  display: grid;
  padding: clamp(18px, 3vw, 36px);
  background: #eaf1f3;
  border: 1px solid #dce7eb;
  border-radius: 12px;
}
.principles > div { position: relative; padding: 17px 0 17px 20px; }
.principles > div + div { border-top: 1px solid #cbdbe0; }
.principles > div::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #17606b;
}
.principles h3 { margin-bottom: 7px; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.025em; }
.principles p { color: var(--muted); }
.contact { padding-block: clamp(52px, 8vw, 100px); display: grid; gap: 12px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-block: 24px; }

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
  .hero-image::after { background: linear-gradient(90deg, #102b36fa, #102b36d9 56%, #102b3673); }
}

@media (max-width: 560px) {
  .site-header { flex-wrap: wrap; gap: 8px; padding-block: 16px 10px; }
  nav { width: 100%; }
  .nav-contact { padding-inline: 10px; }
  .hero { min-height: auto; padding: 29px 22px 156px; margin-bottom: 32px; }
  .hero h1 { font-size: clamp(2.15rem, 10vw, 3.4rem); }
  .hero-image img { object-position: 63% bottom; }
  .hero-image::after { background: linear-gradient(180deg, #102b36 3%, #102b36f2 42%, #102b36d9 69%, #102b360d 100%); }
  .projects { grid-template-columns: 1fr; }
}

/* Homepage sections */
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
/* Project portfolio */
.project {
  --project-ink: #174f59;
  --project-tint: #e5eff1;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  box-shadow: 0 8px 24px #10263108;
}
.project-finance { --project-ink: #294c3f; --project-tint: #e9f0e9; }
.project-compliance { --project-ink: #354b68; --project-tint: #ebeff6; }
.project-property { --project-ink: #59483e; --project-tint: #f2ede7; }
.project-heading, .project-body { padding: clamp(22px, 3vw, 38px); }
.project-heading {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 146px;
  background: var(--project-tint);
  color: var(--project-ink);
  border-bottom: 1px solid var(--line);
}
.project-heading .eyebrow { color: inherit; }
.project-heading h3 { font-size: clamp(1.9rem, 3.1vw, 3rem); }
.project-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 13px; }
.project-body h4 { margin: 0; font: 600 clamp(1.18rem, 1.8vw, 1.38rem)/1.3 var(--display); letter-spacing: -.025em; }
.project-body p { color: var(--muted); max-width: 56ch; }
.project-body ul { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 0; padding: 8px 0 0; list-style: none; }
.project-body li { padding: 4px 10px; border-radius: 20px; background: var(--project-tint); color: var(--project-ink); font-size: .77rem; }
.project-body > a { margin-top: 4px; }
.project-body .text-link { color: var(--project-ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.project-body .text-link:hover { text-decoration-color: currentColor; }
.featured .project-heading {
  color: #f2f9fa;
  background: radial-gradient(ellipse at 100% 100%, #1a6370, transparent 70%), #103442;
}

.contact { padding-block: 0 clamp(48px, 6vw, 84px); }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 5vw, 60px); padding: clamp(22px, 6vw, 70px); border: 1px solid var(--line); border-radius: 10px; background: #e8f0f2; }
.contact-panel p { color: var(--muted); }
.contact-copy p { margin-top: 14px; }
.contact-form { display: grid; gap: 8px; min-width: 0; }
.contact-form label { font-size: .9rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%;
  min-height: 44px;
  margin-bottom: 6px;
  padding: 10px 12px;
  border: 1px solid #9dabb0;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; border: 0; cursor: pointer; }
.contact-form .button:disabled { opacity: .65; cursor: wait; }
.contact-form p { font-size: .85rem; }
.contact-form #contact-status:not(:empty) { padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.contact-form #contact-status[data-state="success"] { color: #21583b; border-color: #91bb9f; }
.contact-form #contact-status[data-state="error"] { color: #882a2a; border-color: #d9a0a0; }

@media (max-width: 800px) {
  .site-header nav { padding-block: 10px; }
  .contact-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  nav, .nav-links { justify-content: flex-start; }
  .project-heading { min-height: auto; }
}
