:root {
  --navy: #17475f;
  --navy-deep: #103546;
  --navy-soft: #416678;
  --green: #95c122;
  --yellow: #dbc607;
  --orange: #f0631d;
  --ink: #173f52;
  --text: #425f6d;
  --muted: #6e838d;
  --line: #dbe4e8;
  --surface: #ffffff;
  --surface-soft: #f3f6f7;
  --shadow: 0 20px 56px rgba(23, 71, 95, .14);
  --content-width: 1180px;
  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--navy);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--orange);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: .7rem 1rem;
  transform: translateY(-160%);
  background: var(--navy-deep);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(23, 71, 95, .09);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 28px rgba(23, 71, 95, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--content-width), calc(100% - 48px));
  min-height: var(--header-height);
  margin: 0 auto;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 185px;
}

.brand img {
  width: 100%;
  height: auto;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 1.55vw, 1.45rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  position: relative;
  display: block;
  color: var(--navy);
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}

.primary-navigation a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -.45rem;
  left: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--green);
  content: "";
  transition: transform .2s ease;
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after {
  transform: scaleX(1);
}

.primary-navigation .nav-contact {
  padding: .65rem .95rem;
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
}

.primary-navigation .nav-contact:hover {
  background: var(--orange);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: .75rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  width: 24px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before {
  top: -7px;
}

.menu-toggle-lines::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.section-inner {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: min(690px, calc(100vh - var(--header-height)));
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, .84fr);
  background: var(--navy);
}

.hero-image {
  position: relative;
  min-height: 600px;
  overflow: hidden;
}

.hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(23, 71, 95, .32));
  content: "";
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: clamp(3rem, 6vw, 7rem);
  overflow: hidden;
  color: #fff;
}

.hero-content::before,
.hero-content::after {
  position: absolute;
  width: 280px;
  height: 36px;
  transform: skewX(-18deg);
  background: rgba(255, 255, 255, .05);
  content: "";
}

.hero-content::before {
  top: 13%;
  right: -90px;
}

.hero-content::after {
  right: 45px;
  bottom: 12%;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--green);
}

.hero h1 {
  max-width: 700px;
  margin: 0 0 2rem;
  color: #fff;
  font-size: clamp(2.45rem, 5vw, 5.3rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .98;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .78rem 1.35rem;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: #fff;
  color: var(--navy);
}

.button-light:hover {
  background: var(--green);
  color: var(--navy-deep);
}

.button-primary {
  background: var(--navy);
  color: #fff;
}

.button-primary:hover {
  background: var(--orange);
  color: #fff;
}

.button:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
}

.content-section {
  position: relative;
  padding: clamp(5rem, 9vw, 9rem) 0;
}

.content-section-light {
  background: var(--surface);
}

.content-section-muted {
  background: var(--surface-soft);
}

.content-section-dark {
  background: var(--navy);
  color: #dfe9ed;
}

.angled-top {
  padding-top: clamp(7rem, 11vw, 11rem);
  clip-path: polygon(0 4vw, 70% 0, 100% 3vw, 100% 100%, 0 100%);
  margin-top: -4vw;
}

.split-layout {
  display: grid;
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
}

.split-layout-reverse {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
}

.section-copy h2,
.project-section h2,
.contact-intro h2,
.legal-hero h1,
.error-main h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  letter-spacing: -.04em;
  line-height: 1.08;
}

.content-section-dark h2 {
  color: #fff;
}

.section-copy p {
  margin: 1.2rem 0 0;
}

.content-section-dark .section-copy p {
  color: #d5e1e6;
}

.brand-stroke {
  display: block;
  width: 52px;
  height: 10px;
  margin: 1.4rem 0 1.8rem;
  transform: skewX(-12deg);
  background: var(--green);
}

.brand-stroke-orange {
  background: var(--orange);
}

.brand-stroke-yellow {
  background: var(--yellow);
}

.section-figure {
  position: relative;
  margin: 0;
}

.section-figure::before {
  position: absolute;
  z-index: -1;
  top: -18px;
  right: -18px;
  width: 44%;
  height: 44%;
  background: var(--green);
  content: "";
}

.split-layout-reverse .section-figure::before {
  right: auto;
  bottom: -18px;
  left: -18px;
  top: auto;
  background: var(--orange);
}

.section-figure img {
  width: 100%;
  min-height: 390px;
  max-height: 560px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.project-section {
  position: relative;
  z-index: 1;
  margin-top: -3vw;
  padding: clamp(8rem, 12vw, 12rem) 0 clamp(6rem, 9vw, 9rem);
  clip-path: polygon(0 3vw, 74% 0, 100% 3.8vw, 100% 100%, 0 100%);
  background:
    linear-gradient(rgba(15, 52, 70, .94), rgba(15, 52, 70, .96)),
    url("/assets/images/individual-solutions.jpg") center / cover;
  color: #fff;
}

.eyebrow-light {
  color: var(--green);
}

.project-section h2 {
  max-width: 760px;
  color: #fff;
}

.project-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  padding: clamp(1.6rem, 4vw, 2.7rem);
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}

.project-icon {
  display: inline-grid;
  width: 64px;
  height: 64px;
  margin-bottom: 1.4rem;
  place-items: center;
  background: var(--green);
  color: var(--navy);
}

.project-icon svg {
  width: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.project-card:nth-child(2) .project-icon {
  background: var(--orange);
  color: #fff;
}

.project-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
}

.project-card p {
  margin: 1rem 0 0;
  color: #d8e3e8;
}

.contact-section {
  padding: clamp(5rem, 9vw, 9rem) 0;
  background: var(--surface-soft);
}

.contact-layout {
  display: grid;
  align-items: start;
  gap: clamp(3rem, 8vw, 7rem);
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
}

.contact-intro {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.contact-intro p {
  margin: 1.3rem 0 0;
}

.contact-intro address {
  margin-top: 2rem;
  font-style: normal;
  font-weight: 700;
}

.contact-panel {
  padding: clamp(1.5rem, 4vw, 2.8rem);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: .45rem;
}

.field label,
.privacy-field label {
  color: var(--navy);
  font-size: .9rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #b9c8ce;
  border-radius: 1px;
  background: #fff;
  color: var(--ink);
  padding: .78rem .9rem;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--navy-soft);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: 3px solid rgba(219, 198, 7, .42);
  outline-offset: 1px;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy-field {
  display: grid;
  align-items: start;
  gap: .75rem;
  grid-template-columns: 22px 1fr;
}

.privacy-field input {
  width: 20px;
  height: 20px;
  margin-top: .15rem;
  accent-color: var(--navy);
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 700;
}

.form-status:empty {
  min-height: 0;
}

.form-status[data-state="error"] {
  color: #9f271c;
}

.contact-confirmation {
  color: var(--text);
}

.contact-confirmation[hidden] {
  display: none;
}

.contact-confirmation h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  line-height: 1.2;
}

.contact-confirmation > p {
  margin: 1rem 0 0;
}

.confirmation-details {
  margin-top: 1.8rem;
  padding: 1.4rem;
  border-left: 4px solid var(--orange);
  background: var(--surface-soft);
}

.confirmation-details h4 {
  margin: 0 0 .8rem;
  color: var(--navy);
}

.confirmation-details dl {
  margin: 0;
}

.confirmation-details dl > div {
  display: grid;
  gap: .8rem;
  padding: .25rem 0;
  grid-template-columns: 100px 1fr;
}

.confirmation-details dt,
.confirmation-message > span {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.confirmation-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-weight: 700;
}

.confirmation-message {
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

.confirmation-message p {
  margin: .35rem 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.site-footer {
  padding: 3.6rem 0 1.2rem;
  background: var(--navy-deep);
  color: #c9d7de;
}

.footer-inner {
  display: grid;
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
  gap: 2.5rem;
  grid-template-columns: 1.35fr 1fr auto;
}

.footer-brand img {
  width: min(230px, 100%);
  height: auto;
}

.footer-brand p {
  margin: 1rem 0 0;
  font-size: .82rem;
  letter-spacing: .04em;
}

.footer-contact {
  display: grid;
  align-content: start;
  font-size: .9rem;
}

.footer-contact strong {
  color: #fff;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--green);
}

.footer-nav {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.copyright {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 2.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .78rem;
}

.site-footer-compact {
  padding: 1.5rem 24px;
  text-align: center;
}

.site-footer-compact p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: var(--orange);
  box-shadow: 0 10px 28px rgba(15, 52, 70, .28);
  color: #fff;
  cursor: pointer;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.legal-hero {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: linear-gradient(135deg, var(--surface-soft) 0 72%, rgba(149, 193, 34, .28) 72%);
}

.legal-content {
  max-width: 900px;
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(5rem, 8vw, 8rem);
}

.legal-content h2 {
  margin: 2.6rem 0 .75rem;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.3;
}

.legal-content h2:first-of-type {
  margin-top: 1.8rem;
}

.legal-content p {
  margin: .7rem 0;
}

.error-page {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.error-main {
  display: grid;
  min-height: 580px;
  padding: 5rem 24px;
  place-items: center;
  text-align: center;
}

.error-main > div {
  max-width: 700px;
}

.error-code {
  margin: 0;
  color: var(--orange);
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 800;
  line-height: .8;
}

.error-main h1 {
  margin-top: 2rem;
}

.error-main .button {
  margin-top: 1.2rem;
}

@media (max-width: 1060px) {
  :root {
    --header-height: 78px;
  }

  .header-inner {
    width: min(var(--content-width), calc(100% - 36px));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: none;
    overflow-y: auto;
    padding: 2rem 24px;
    background: rgba(16, 53, 70, .985);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    align-items: stretch;
    flex-direction: column;
    width: min(640px, 100%);
    margin: 0 auto;
    gap: 0;
  }

  .primary-navigation li {
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }

  .primary-navigation a,
  .primary-navigation .nav-contact {
    padding: 1rem .3rem;
    background: transparent;
    color: #fff;
    font-size: 1.05rem;
  }

  .primary-navigation a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 52vw;
    max-height: 600px;
  }

  .hero-content {
    min-height: 430px;
  }

  .split-layout,
  .split-layout-reverse {
    gap: 3rem;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .section-inner,
  .footer-inner,
  .copyright {
    width: min(100% - 32px, var(--content-width));
  }

  .brand {
    width: 158px;
  }

  .hero-image {
    min-height: 320px;
  }

  .hero-content {
    min-height: 380px;
    padding: 3rem 24px 4rem;
  }

  .angled-top,
  .project-section {
    clip-path: polygon(0 28px, 70% 0, 100% 24px, 100% 100%, 0 100%);
    margin-top: -28px;
  }

  .split-layout,
  .split-layout-reverse,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .split-layout-reverse .section-figure {
    order: 2;
  }

  .section-figure img {
    min-height: 280px;
  }

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

  .contact-intro {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .content-section {
    padding-bottom: 4.5rem;
  }

  .contact-panel {
    margin-right: -8px;
    margin-left: -8px;
    padding: 1.25rem;
  }

  .confirmation-details dl > div {
    gap: .1rem;
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: .01ms;
    animation-duration: .01ms;
    animation-iteration-count: 1;
  }
}
