:root {
  --sky-left: #a2c8f3;
  --sky-right: #85bdf2;
  --soft-blue: #bfd4ee;
  --lavender: #e4e3f2;
  --cream: #fef4ee;
  --peach: #fdf0ec;
  --white: #fef6f5;
  --navy: #040568;
  --navy-2: #0b1e77;
  --blue: #017be2;
  --blue-bright: #0190f1;
  --gold: #fea61f;
  --gold-ink: #c47a02;
  --gold-light: #fedcb5;
  --error: #b42318;
  --edge: clamp(24px, 7.5vw, 125px);
  --header-height: clamp(108px, 10.5vw, 176px);
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--navy);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-underline-offset: 0.28em;
}

a:hover {
  text-decoration-color: var(--gold);
}

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

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  margin: 0 0 0.35em;
  font-size: clamp(32px, 3.8vw, 63px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  margin: 0 0 0.6em;
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.accent,
.gold {
  color: var(--gold-ink);
}

.home-copy h1 .accent {
  color: #a95500;
}

/* Layout shell */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(ellipse 24% 180px at 14% 90px, var(--cream) 18%, transparent 100%),
    radial-gradient(ellipse 26% 160px at 58% 110px, var(--peach), transparent 100%),
    linear-gradient(270deg, rgba(191, 212, 238, 0.5), transparent 23%),
    linear-gradient(
      180deg,
      var(--sky-left),
      var(--lavender) 145px,
      var(--cream) 255px,
      var(--white) 520px,
      var(--white) calc(100% - 140px),
      var(--peach)
    );
}

.page-home {
  background-color: var(--white);
  /* Warm pool just under the logo keeps the header off saturated blue, exactly as
     on the approved start page: cream at 14 % of the width, half the header down. */
  background-image:
    radial-gradient(ellipse 24% 180px at 14% calc(var(--header-height) * 0.45), var(--cream) 18%, transparent 100%),
    radial-gradient(ellipse 26% 160px at 58% calc(var(--header-height) * 0.5), var(--peach), transparent 100%),
    linear-gradient(270deg, rgba(191, 212, 238, 0.5), transparent 23%),
    linear-gradient(180deg, var(--sky-left), var(--lavender) 145px, var(--cream) 255px, var(--white) 520px, var(--white) calc(100% - 140px), var(--peach));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: auto;
}

@media (min-width: 1000px) {
  /* Wide start page: the two painted sky strips from the approved artwork carry the
     header band, stretched to the viewport width, over the warm pools. */
  .page-home {
    background-image:
      url("../img/hero-top-band.png"),
      url("../img/hero-haze.png"),
      radial-gradient(ellipse 29% 235px at 15% 105px, var(--cream) 15%, transparent 90%),
      radial-gradient(ellipse 34% 260px at 70% 150px, var(--peach) 18%, transparent 96%),
      linear-gradient(180deg, var(--sky-left), var(--soft-blue) 90px, var(--white) 345px, var(--white) calc(100% - 140px), var(--peach));
    background-position: top center, top center, 0 0, 0 0, 0 0;
    background-size: 100% calc(100vw * 101 / 1670), 100% calc(100vw * 261 / 1670), auto, auto, auto;
  }
}

.skip {
  position: absolute;
  top: -70px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 0;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  min-height: var(--header-height);
  padding: 14px var(--edge);
  position: relative;
  z-index: 10;
}

.brand {
  display: block;
  flex: 0 0 auto;
}

.brand img {
  width: clamp(125px, 11.4vw, 190px);
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px clamp(12px, 1.5vw, 24px);
  margin-left: auto;
  font-size: 1rem;
  font-weight: 400;
}

.site-nav a {
  padding: 0;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
}

.language {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 400;
}

.language .is-active {
  font-weight: 700;
}

.language .is-disabled {
  color: rgba(4, 5, 104, 0.45);
  cursor: not-allowed;
}

/* Home */
.home-main {
  display: flex;
}

.home-hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  align-items: start;
  align-content: start;
  gap: 24px 0;
  width: 100%;
  min-height: clamp(420px, 56vh, 680px);
  padding: clamp(40px, 7vw, 118px) var(--edge) clamp(36px, 4vw, 64px);
}

.home-copy {
  border-left: 4px solid var(--gold);
  padding-left: clamp(14px, 1.6vw, 27px);
  max-width: 100%;
}

.home-copy h1 {
  font-size: clamp(30px, 3.5vw, 59px);
  line-height: 1.11;
  letter-spacing: -0.025em;
  margin-bottom: 0.44em;
}

.home-copy h1 span {
  display: block;
}

.home-copy p {
  margin: 0;
  max-width: 31.1em;
  font-size: clamp(17px, 1.35vw, 23px);
  font-weight: 400;
  line-height: 1.55;
}

.home-art {
  margin: 0;
  justify-self: end;
  width: min(100%, 560px);
}

.home-art img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 86%, transparent),
    linear-gradient(to bottom, transparent, #000 13%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 86%, transparent),
    linear-gradient(to bottom, transparent, #000 13%, #000 80%, transparent);
  mask-composite: intersect;
}

@media (min-width: 1000px) {
  /* The approved start-page artwork is one continuous crop: a 1670 × 686 banner
     hung 3.2934vw above the hero, so that 37.8vw + 3.2934vw equals the banner's
     own 41.09vw height and it fills the hero exactly. */
  .home-hero {
    position: relative;
    isolation: isolate;
    min-height: 37.8vw;
    align-content: safe center;
    padding-top: clamp(56px, 6.65vw, 128px);
    padding-bottom: clamp(125px, 16vw, 270px);
    padding-left: var(--edge);
  }

  .home-hero::before {
    content: "";
    position: absolute;
    inset: -3.2934vw 0 auto;
    aspect-ratio: 1670 / 686;
    z-index: -1;
    background-image:
      image-set(
        url("../img/hero-wide.webp") type("image/webp"),
        url("../img/hero-wide.jpg") type("image/jpeg")
      );
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 100%;
    pointer-events: none;
  }

  .home-art {
    display: none;
  }
}

/* Content pages */
.inner {
  width: 100%;
  padding: clamp(36px, 6.65vw, 112px) var(--edge) clamp(64px, 8vw, 120px);
}

.content {
  width: min(100%, 80ch);
  margin-inline: 0;
}

.content > p {
  max-width: 62ch;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-2);
}

.detail h1 {
  font-size: clamp(34px, 3.6vw, 56px);
}

/* About */
.about-main {
  width: 100%;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
  padding: clamp(32px, 4.6vw, 68px) var(--edge) clamp(40px, 5vw, 72px);
}

.about-panel {
  position: relative;
  padding: clamp(24px, 3vw, 46px);
  background: rgba(254, 246, 245, 0.88);
  border-left: 5px solid var(--gold);
  border-right: 1px solid var(--gold);
  box-shadow: 0 24px 70px rgba(4, 5, 104, 0.1);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.about-panel h1 {
  font-size: clamp(28px, 2.4vw, 36px);
}

.about-panel h2 {
  font-size: clamp(20px, 1.8vw, 28px);
}

.about-panel .lead {
  font-weight: 600;
}

.about-art {
  margin: 0;
  justify-self: end;
  align-self: start;
  width: min(100%, 560px);
}

.about-art img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 82%, transparent);
  mask-composite: intersect;
}

/* Services accordions */
.services h2 {
  font-size: clamp(21px, 2.1vw, 31px);
  margin-bottom: 1.1em;
}

.bu-accordion {
  margin: 0 0 12px;
  border: 1px solid rgba(191, 212, 238, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.bu-accordion summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.bu-accordion summary::-webkit-details-marker {
  display: none;
}

.bu-accordion summary::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.bu-accordion[open] > summary::before {
  margin-top: 2px;
  transform: rotate(-135deg);
}

.bu-accordion summary:hover {
  background: rgba(191, 212, 238, 0.18);
}

.bu-accordion > p {
  margin: 0 20px 16px;
}

.bu-accordion > .bu-nested {
  margin: 0 16px 14px;
}

.bu-nested {
  background: rgba(254, 246, 245, 0.72);
  border-color: rgba(191, 212, 238, 0.7);
  border-radius: 8px;
}

.bu-nested summary {
  padding: 12px 16px;
  font-size: 0.98rem;
}

.bu-nested > p {
  margin: 0 16px 14px;
  font-size: 0.97rem;
}

.services .cta {
  margin-top: 22px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease;
}

.cta:hover {
  background: var(--navy-2);
  text-decoration: none;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
}

.contact-intro p {
  max-width: 46ch;
}

.contact-email {
  margin: 26px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-email a {
  display: inline-block;
  margin-top: 4px;
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.form-card {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(191, 212, 238, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(4, 5, 104, 0.08);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.field .optional {
  font-weight: 400;
  color: rgba(4, 5, 104, 0.6);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--soft-blue);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 0.97rem;
}

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

.field input:focus,
.field textarea:focus {
  outline: 3px solid rgba(1, 123, 226, 0.25);
  border-color: var(--blue);
}

.field-error {
  display: none;
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.85rem;
}

.field.has-error .field-error {
  display: block;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--error);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
}

.checkbox input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--navy);
}

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

.form-actions {
  margin-top: 20px;
}

.form-actions .cta {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(254, 220, 181, 0.45);
  font-size: 0.95rem;
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: rgba(4, 5, 104, 0.65);
}

/* Legal */
.legal {
  width: min(100%, 78ch);
}

.legal h2 {
  margin-top: 1.9em;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.legal h2:first-of-type {
  margin-top: 1.4em;
}

.legal p {
  max-width: 70ch;
}

.legal .notice {
  margin: 0 0 2em;
  padding: 14px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(254, 220, 181, 0.4);
  font-size: 0.95rem;
}

.legal .placeholder {
  color: rgba(4, 5, 104, 0.68);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  min-height: 84px;
  padding: 18px var(--edge);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

/* Gold separators are only safe while the link row stays on one line; below
   that they would start a wrapped line with a leading rule. */
@media (max-width: 1099px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (min-width: 1100px) {
  .footer-links > * + * {
    border-inline-start: 1px solid var(--gold);
    padding-inline-start: 18px;
  }
}

.footer-links a,
.footer-links summary {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links summary:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

.footer-links details {
  position: relative;
}

.footer-links summary {
  list-style: none;
  cursor: pointer;
}

.footer-links summary::-webkit-details-marker {
  display: none;
}

.footer-links summary::marker {
  content: "";
}

.footer-links details > p {
  margin: 0.45em 0 0;
  max-width: 34ch;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(4, 5, 104, 0.78);
}

/* Responsive */
@media (max-width: 999px) {
  .home-hero {
    min-height: 0;
    padding-block: clamp(36px, 6vw, 64px);
    gap: clamp(16px, 3vw, 36px);
  }

  .home-art img,
  .about-art img {
    mix-blend-mode: multiply;
  }
}

@media (max-width: 980px) {
  .about-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: clamp(24px, 4vw, 48px);
  }

  .about-panel {
    width: 100%;
    max-width: 660px;
    justify-self: center;
  }

  .about-art {
    justify-self: center;
    width: min(100%, 520px);
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    gap: 8px 20px;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    gap: 6px 18px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: var(--edge);
  }

  .home-art {
    justify-self: center;
    margin-top: 6px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 560px) {
  .site-nav {
    gap: 4px 12px;
    font-size: 13.5px;
  }

  .home-copy {
    border-left-width: 4px;
    padding-left: 16px;
  }

  .about-panel {
    border-right: 0;
    padding: 22px 18px;
  }

  .about-panel h1 {
    font-size: 34px;
  }

  .inner {
    padding-bottom: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip {
    display: none;
  }

  .page {
    background: #fff;
  }
}