:root { --ink: #2D3149; --steel: #8D91B0; --cta: #D8CDFE; --tint: #F1EEF9; --panel: #464968; }
/* Foundry Navy layout, with a different material palette per market. */
@font-face {
  font-family: Archivo;
  src: url("/assets/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --line: #c7cbd0;
  --muted: #46505b;
  --gutter: clamp(18px, 5vw, 70px);
  --width: 1260px;
  color: var(--ink);
  background: #fff;
  font-family: Archivo, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  scroll-padding-bottom: var(--call-bar-height, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #2458ac; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 2.35vw, 2.2rem); letter-spacing: -.025em; }
h3 { font-size: 1.17rem; }
p + p { margin-top: .8rem; }
img { display: block; max-width: 100%; }
[hidden] { display: none; }
[id] { scroll-margin-top: calc(var(--mast-height, 80px) + 14px); }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 6; padding: .7rem; background: white; }
.skip-link:not(:focus) { clip-path: inset(50%); }

.pilot-mast {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  min-height: 68px;
  padding: 9px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: white;
}
.pilot-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: inherit;
  font-size: clamp(.91rem, 1.6vw, 1.14rem);
  font-weight: 820;
  line-height: 1.15;
  text-decoration: none;
}
.pilot-brand img { flex: 0 0 auto; }
.pilot-mast > nav, .pilot-mast > .pilot-phone { display: none; }
.pilot-menu > summary, .foundry-services > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 760;
  list-style: none;
}
.pilot-menu > summary::-webkit-details-marker,
.foundry-services > summary::-webkit-details-marker { display: none; }
.pilot-menu > summary { padding: 0 .75rem; border: 1px solid var(--ink); border-radius: 4px; }
.pilot-menu > nav {
  position: absolute;
  inset: 100% 0 auto 0;
  max-height: calc(100dvh - var(--mast-height, 80px) - var(--call-bar-height, 65px));
  overflow: auto;
  display: grid;
  padding: .5rem var(--gutter);
  background: white;
  border-bottom: 1px solid var(--line);
}
.pilot-menu:not([open]) > nav { display: none; }
.pilot-menu nav a, .foundry-services div a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem 0;
  font-weight: 670;
}
.pilot-grid {
  width: min(100%, var(--width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.pilot-hero {
  padding: clamp(1.6rem, 5vw, 4.3rem) var(--gutter);
  background: var(--ink);
  color: white;
  border-bottom: 4px solid var(--steel);
}
.pilot-hero .pilot-grid { align-items: center; }
.foundry-kicker {
  font-size: .86rem;
  font-weight: 680;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tint);
}
.pilot-hero h1 {
  margin: .52rem 0 .86rem;
  font-size: clamp(2.25rem, 10.2vw, 3.15rem);
  letter-spacing: -.045em;
  font-weight: 870;
}
.pilot-hero .lead { max-width: 54ch; color: var(--tint); font-size: clamp(1.04rem, 2vw, 1.22rem); }
.pilot-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.02rem; }
.pilot-primary, .pilot-secondary, .pilot-phone, .pilot-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem .95rem;
  min-height: 48px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
}
.pilot-primary { background: var(--cta); color: var(--ink); border: 0; cursor: pointer; }
.pilot-primary:hover { text-decoration: underline; }
.pilot-secondary { color: white; border: 1px solid var(--steel); }
.pilot-hero :focus-visible, footer :focus-visible { outline-color: white; }
.pilot-photo img { width: 100%; height: auto; aspect-ratio: 562 / 337; object-fit: cover; object-position: 50% 55%; }
.pilot-photo figcaption { margin-top: .55rem; font-size: .82rem; color: var(--tint); }
.pilot-facts, .foundry-aside { padding: clamp(1rem, 2.6vw, 1.6rem); border-top: 4px solid var(--cta); }
.pilot-facts { background: var(--panel); }
.pilot-facts h2, .foundry-aside h2 { margin-bottom: .6rem; font-size: 1.18rem; }
.pilot-facts a, .foundry-aside a { display: grid; padding: .6rem 0; border-top: 1px solid var(--steel); }
.pilot-facts strong, .foundry-aside a { font-weight: 770; }
.pilot-facts span { color: var(--tint); text-decoration: none; font-size: .95rem; }
.foundry-aside { background: var(--tint); color: var(--ink); border-color: var(--steel); }
.foundry-aside :focus-visible { outline-color: #2458ac; }

.pilot-intake {
  padding: clamp(1.45rem, 4vw, 3.4rem) var(--gutter);
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.pilot-quote-intro p { max-width: 48ch; }
.pilot-intake form {
  display: grid;
  gap: .8rem;
  padding: clamp(.85rem, 2.5vw, 1.65rem);
  border: 1px solid var(--line);
  background: white;
}
.fields { display: grid; gap: .8rem; }
label { display: grid; gap: .24rem; font-size: .94rem; font-weight: 690; }
button, input, textarea, select { font: inherit; }
label :is(input, textarea, select):not([type=checkbox]) {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: .48rem .62rem;
  border: 1px solid var(--muted);
  border-radius: 4px;
  color: var(--ink);
  background: white;
  font-size: 1rem;
  font-weight: 430;
}
label select:not([type=checkbox]) {
  appearance: none;
  padding-right: 2rem;
  background: linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 17px center / 6px 6px no-repeat,
              linear-gradient(135deg, var(--ink) 50%, transparent 50%) right 11px center / 6px 6px no-repeat,
              white;
}
.consent {
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: .58rem;
  align-items: start;
  padding-top: .35rem;
}
.consent input { margin: .12rem 0 0; width: 20px; height: 20px; accent-color: var(--ink); }
.required-note, .consent-note { color: var(--muted); font-size: .9rem; }
.form-message { padding: .6rem; background: var(--tint); }
button:disabled { cursor: default; opacity: .65; }

.content {
  width: min(100%, calc(var(--width) + 2 * var(--gutter)));
  margin: auto;
  padding: clamp(1.6rem, 4vw, 3.7rem) var(--gutter);
  display: grid;
  gap: 2.15rem;
}
.content:empty { display: none; }
.content p { max-width: 68ch; }
.content h2 { margin-bottom: .75rem; }
.content ul { margin: .5rem 0; padding-left: 1.35rem; }
.content details {
  max-width: 74ch;
  border-block-start: 1px solid var(--line);
  padding: .6rem 0;
}
.content summary { cursor: pointer; font-weight: 750; padding: .55rem 0; }
.content details p { margin-top: .3rem; }
.cards { display: grid; gap: .75rem; }
.cards article { border: 1px solid var(--line); border-top: 3px solid var(--steel); padding: 1rem; }
.cards h3 { margin-bottom: .45rem; }
.related a { display: block; width: fit-content; padding: .32rem 0; font-weight: 690; }
.source-date { font-size: .9rem; color: var(--muted); }

footer { padding: 2rem var(--gutter); background: var(--ink); color: white; }
footer h2 { font-size: 1rem; margin-bottom: .4rem; }
footer .pilot-brand { margin-bottom: .62rem; }
footer p { max-width: 50ch; color: var(--tint); }
footer div > a:not(.pilot-brand) { display: block; width: fit-content; padding: .25rem 0; }
.pilot-bar {
  position: fixed;
  z-index: 5;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: .65rem;
  padding: 8px var(--gutter) max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: white;
}
.pilot-bar a:first-child { border: 1px solid var(--ink); }

@media (max-width: 760px) {
  body { padding-bottom: var(--call-bar-height, calc(65px + env(safe-area-inset-bottom))); }
  .pilot-secondary { display: none; }
  .pilot-photo img { aspect-ratio: 2.08; }
  .pilot-facts span { display: none; }
}
@media (min-width: 761px) {
  .pilot-hero .pilot-grid, .pilot-intake .pilot-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(1.5rem, 4vw, 4.5rem);
  }
  .pilot-intake .pilot-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .pilot-hero h1 { font-size: clamp(2.55rem, 4.8vw, 5rem); }
  .fields, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .pilot-grid { grid-template-columns: 2fr 1fr; }
  .pilot-bar { display: none; }
}
@media (min-width: 1180px) {
  .pilot-mast { min-height: 80px; grid-template-columns: 1fr auto auto; gap: clamp(.8rem, 2vw, 1.7rem); }
  .pilot-menu { display: none; }
  .pilot-mast > nav { display: flex; align-items: center; gap: clamp(.75rem, 1.5vw, 1.45rem); }
  .pilot-mast > nav > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 710; text-decoration: none; }
  .pilot-mast > nav > a:hover { text-decoration: underline; }
  .foundry-services { position: relative; }
  .foundry-services div {
    position: absolute;
    z-index: 2;
    width: 260px;
    padding: .4rem .75rem;
    background: white;
    border: 1px solid var(--line);
  }
  .pilot-mast > .pilot-phone { display: inline-flex; background: var(--ink); color: white; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.wall-details { display: grid; gap: .8rem; min-inline-size: 0; margin: 0; padding: .7rem; border: 1px solid var(--line); }
