:root {
  color-scheme: light;
  --navy: #0d2038;
  --blue: #245681;
  --muted: #4b5b6c;
  --line: #d5dee7;
  --paper: #f1f4f7;
  --gutter: clamp(1.25rem, 4.5vw, 4.75rem);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--navy);
  background: #fff;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
p { line-height: 1.66; }
:focus-visible { outline: 3px solid #357fba; outline-offset: 4px; }
.wrap { width: min(100% - var(--gutter) * 2, 81rem); margin-inline: auto; }

.skip {
  position: fixed;
  inset: 1rem auto auto 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  transform: translateY(-180%);
  z-index: 5;
}
.skip:focus { transform: none; }

.header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  min-height: 5.5rem;
}
.brand { justify-self: start; }
.brand img { width: clamp(10rem, 19vw, 15.5rem); height: auto; }
nav { display: flex; gap: clamp(.8rem, 2.5vw, 2.5rem); align-items: center; }
nav a, .footer a {
  padding-block: .65rem;
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
}
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.header-controls, .languages { display: flex; align-items: center; }
.header-controls { justify-self: end; gap: .55rem; }
.languages { border: 1px solid var(--line); padding: .15rem; }
.languages button, .menu-toggle {
  min-height: 2.65rem;
  min-width: 2.65rem;
  padding: .4rem .58rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}
.languages button[aria-pressed="true"], .menu-toggle[aria-expanded="true"] { color: #fff; background: var(--navy); }
.menu-toggle { border: 1px solid var(--line); }

.hero { background: var(--paper); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.11fr) minmax(0, 1fr);
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(3.5rem, 8vw, 8rem) clamp(1.8rem, 5vw, 5.5rem) clamp(3.5rem, 8vw, 8rem) 0;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--blue);
  font-size: .76rem;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 750;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 1.35rem; height: 2px; flex: none; background: currentColor; }
h1, h2 { font-weight: 750; letter-spacing: -.055em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 5.75vw, 6rem); line-height: 1.01; }
h2 { font-size: clamp(2.25rem, 4.1vw, 4.25rem); line-height: 1.04; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.55rem); letter-spacing: -.022em; line-height: 1.2; }
.intro { font-size: clamp(1.06rem, 1.55vw, 1.32rem); }
.hero .intro { margin-top: 1.5rem; max-width: 35rem; color: var(--muted); }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .65rem; }
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  padding: .86rem 1.05rem;
  gap: .85rem;
  min-height: 3.25rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 650;
}
.primary { color: #fff; background: var(--navy); }
.primary:hover { background: var(--blue); }
.secondary { border-color: #aebdcb; }
.secondary:hover { background: #fff; }
.hero-visual { position: relative; min-height: 27rem; isolation: isolate; background: #53677d; }
.hero-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 47%; z-index: -1; }
.hero-visual figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .85rem;
  row-gap: .25rem;
  padding: .95rem 1.25rem;
  color: #fff;
  background: #0d2038ee;
  font-size: .82rem;
  font-weight: 650;
}

.section { padding-block: clamp(3.8rem, 8vw, 8.2rem); }
.about, .process, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(1.5rem, 6vw, 6rem); }
.about-copy > p + p { margin-top: 1rem; color: var(--muted); }
.services { background: var(--paper); }
.services h2 { max-width: 49rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2.5rem; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.service-grid article { padding: clamp(1.15rem, 2.3vw, 2rem); background: #fff; border-top: 3px solid var(--blue); }
.service-grid p, .steps p { margin-top: .75rem; color: var(--muted); }
.text-link { display: inline-block; margin-top: .9rem; font-weight: 650; font-size: .88rem; color: var(--blue); text-underline-offset: .22em; }

.steps { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.steps li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: .5rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line);
}
.steps li > span { font: 650 .87rem/1.6 Consolas, monospace; color: var(--blue); }
.steps p { margin-top: .32rem; }

.contact { background: var(--navy); color: #fff; }
.contact .eyebrow { color: #a4c4e0; }
.contact .intro { margin-top: 1.2rem; color: #d4e0ec; }
.light { margin-top: 1.65rem; background: #fff; color: var(--navy); }
.light:hover { background: #dae7f4; }
.contact-details { border-bottom: 1px solid #4b6077; }
.contact-details div {
  display: grid;
  grid-template-columns: minmax(6.5rem, .7fr) minmax(0, 1fr);
  gap: .65rem;
  padding-block: 1.07rem;
  border-top: 1px solid #4b6077;
}
.contact-details dt { color: #b9cadb; font-size: .9rem; }
.contact-details dd { overflow-wrap: anywhere; }
.contact-details a { text-underline-offset: .25em; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: 5.2rem; font-size: .84rem; color: var(--muted); }

@media (max-width: 1040px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { scroll-padding-top: 5.25rem; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 4.5rem; gap: 0 .5rem; }
  .header-controls { grid-column: 2; grid-row: 1; }
  nav { grid-column: 1 / -1; flex-wrap: wrap; gap: 0 1rem; padding-block: .45rem; border-top: 1px solid var(--line); }
  nav a { padding: .65rem .2rem; }
  .hero-grid, .about, .process, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 3.45rem 0 2.4rem; }
  h1, h2 { text-wrap: initial; }
  .hero-visual { min-height: clamp(15.5rem, 68vw, 27rem); margin-inline: calc(-1 * var(--gutter)); }
  .hero-visual figcaption { padding-inline: var(--gutter); }
}

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; margin-top: 1.55rem; }
  .actions { align-items: stretch; }
  .footer { flex-wrap: wrap; }
}

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


/* Production layout */
.header-inner { min-height: 4.75rem; }
.brand img { width: clamp(9.5rem, 18vw, 14.5rem); }
.languages a {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  font-size: .8rem;
  font-weight: 750;
  text-decoration: none;
}
.languages a[aria-current] { background: var(--navy); color: #fff; }
.languages a:not([aria-current]):hover { background: var(--paper); }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-copy { padding: clamp(2.6rem, 5vw, 4.55rem) clamp(1.35rem, 4vw, 4.5rem) clamp(2.6rem, 5vw, 4.55rem) 0; }
h1 { font-size: clamp(2.45rem, 4.8vw, 4.6rem); }
.hero .intro { margin-top: 1rem; }
.hero .actions { margin-top: 1.4rem; }
.hero-visual { min-height: 23rem; }
.hero-visual img { object-position: center 43%; }
.hero-visual figcaption small { margin-inline-start: auto; color: #d6e5f3; }
.section { padding-block: clamp(3rem, 6vw, 6.5rem); }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border: 0; background: transparent; }
.service-grid article {
  padding: 0;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--blue);
  transition: border-color .18s, box-shadow .18s;
}
.service-grid article:hover, .service-grid article:focus-within {
  border-color: #899eb2;
  box-shadow: 0 5px 18px #0d203813;
}
.service-grid img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.service-copy { padding: clamp(1.05rem, 2.1vw, 1.8rem); }
.image-credit { margin-top: .9rem; color: var(--muted); font-size: .85rem; }
.process { display: block; }
.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 2rem;
  border-bottom: 0;
}
.steps li { display: block; position: relative; padding: 1rem .85rem 0 0; border-top: 2px solid var(--line); }
.step-number {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: .8rem;
  background: var(--navy);
  color: #fff !important;
  font: 650 .88rem Consolas, monospace;
}
.steps h3 { font-size: 1.1rem; overflow-wrap: anywhere; }
.steps p { font-size: .94rem; }
.contact-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
.contact-details { margin-top: 1.7rem; }
.quote { padding: clamp(1.15rem, 3vw, 2.2rem); background: #fff; color: var(--navy); }
.quote h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; margin-bottom: .8rem; }
.quote label { display: grid; gap: .35rem; font-size: .91rem; font-weight: 650; }
.quote input, .quote textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: .55rem .65rem;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid #6e8194;
  border-radius: 0;
  font: 1rem/1.4 "Segoe UI", Arial, sans-serif;
}
.quote textarea { resize: vertical; }
.quote p { margin-top: .8rem; font-size: .88rem; color: var(--muted); }
.quote button { margin-top: .95rem; cursor: pointer; }
.quote button:disabled { opacity: .7; cursor: default; }
.form-status:empty { margin: 0; }
.legal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .75rem 2rem; }
.legal details { border-top: 1px solid var(--line); }
.legal summary { padding: .9rem .15rem; cursor: pointer; font-weight: 650; }
.legal p { padding: 0 .15rem .8rem; color: var(--muted); }
.footer { border-top: 1px solid var(--line); }
@media (max-width: 1050px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem .75rem; }
}
@media (max-width: 850px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-inner { min-height: 4.5rem; }
  #navigation { flex-direction: column; align-items: stretch; gap: 0; }
  #navigation a + a { border-top: 1px solid var(--line); }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.5rem 0 2rem; }
  .hero-visual { min-height: clamp(13rem, 48vw, 21rem); }
}
@media (max-width: 490px) {
  .service-grid, .form-grid, .legal { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual figcaption small { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .service-grid article { transition: none; }
}

.quote button[aria-disabled="true"] { opacity: .75; cursor: wait; }
