@font-face {
  font-family: "Inter";
  src: url("assets/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #021D3E;
  --navy-2: #0A2A52;
  --orange: #FD5B00;
  --steel: #C3C3C3;
  --gray: #F4F5F7;
  --ink: #1F2933;
  --muted: #4B5563;
  --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .75rem; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--navy); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow > * { max-width: 70ch; }

.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--navy); padding: .75rem 1rem; z-index: 99; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--navy);
  font-weight: 750;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .7rem 1.15rem;
  border-radius: 4px;
  transition: background-color .15s;
}
.btn:hover { background: #FF7424; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; flex-wrap: wrap; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem 1.4rem; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 500; font-size: .95rem; padding-block: .35rem; }
.nav a:not(.btn):hover { color: var(--orange); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--white); padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem); border-bottom: 5px solid var(--orange); }
.hero .wrap { position: relative; z-index: 1; }
/* Animated contour terrain (topography.js). Gradient keeps the headline legible. */
.hero-topo { position: absolute; inset: 0; z-index: 0; }
.hero-topo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(2,29,62,.88) 38%, rgba(2,29,62,.25) 75%, rgba(2,29,62,.1) 100%); }
.topography-canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 640px) {
  .hero-topo::after { background: linear-gradient(180deg, rgba(2,29,62,.3), rgba(2,29,62,.65)); }
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 1.3rem + 3.2vw, 3.6rem); font-weight: 800; max-width: 20ch; letter-spacing: -0.025em; }
.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: #D6DEE8; max-width: 60ch; margin-bottom: 2rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.alt { background: var(--gray); }
.eyebrow { color: var(--orange); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .5rem; }
.eyebrow::before { content: ""; display: inline-block; width: 1.5rem; height: 2px; background: currentColor; vertical-align: middle; margin-right: .6rem; }
.intro { max-width: 70ch; color: var(--muted); margin-bottom: 2.25rem; }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border: 1px solid #E3E6EA; border-radius: 6px; padding: 1.6rem; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 12px 28px rgba(2,29,62,.12); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
/* Photo band: image, navy gradient band, orange rule, icon badge overlapping the edge */
.card-media { position: relative; margin: -1.6rem -1.6rem 2.1rem; aspect-ratio: 10 / 7; background: var(--navy); border-bottom: 3px solid var(--orange); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,29,62,0) 45%, rgba(2,29,62,.75) 100%); }
.card-icon { position: absolute; z-index: 1; left: 1.6rem; bottom: -1.6rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--navy); border: 2px solid var(--orange); border-radius: 8px; box-shadow: 0 6px 16px rgba(2,29,62,.3); }
.card svg { width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }

.duties { margin-top: 3rem; background: var(--white); border: 1px solid #E3E6EA; border-radius: 6px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .4rem; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.scope { margin: 0; padding: 1rem 1.25rem; background: var(--gray); border-left: 4px solid var(--navy); font-weight: 600; color: var(--navy); }

.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid li { background: var(--white); border: 1px solid #E3E6EA; border-left: 3px solid var(--orange); border-radius: 4px; padding: .9rem 1.1rem; font-weight: 600; color: var(--navy); }
.section:not(.alt) .grid li { background: var(--gray); border-color: var(--gray); border-left-color: var(--orange); }
.creds li { font-weight: 500; }

/* Photos beside text (About, Contact) */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
.photo { margin: 0; position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px rgba(2,29,62,.18); }
.photo::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--orange); z-index: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall { max-height: 600px; }
@media (max-width: 820px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .photo img { aspect-ratio: 16 / 10; }
}

/* Contact: elevated cards with navy header, avatar placeholder and action rows */
/* General Inquiries spans the row; people share the next row (wide enough for one-line emails) */
.contacts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 530px), 1fr)); }
.contact-general { grid-column: 1 / -1; }
.contact-general .contact-body { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: stretch; }
.contact { position: relative; background: var(--white); border-radius: 10px; box-shadow: 0 1px 2px rgba(2,29,62,.06), 0 18px 40px -12px rgba(2,29,62,.22);
  transition: transform .25s, box-shadow .25s; }
.contact:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(2,29,62,.06), 0 26px 50px -14px rgba(2,29,62,.3); }
.contact-head { display: flex; align-items: center; gap: 1.1rem; padding: 1.5rem 1.6rem; background: var(--navy); color: var(--white);
  border-radius: 10px 10px 0 0; border-bottom: 4px solid var(--orange);
  background-image: radial-gradient(120% 140% at 100% 0%, rgba(111,143,191,.28), transparent 60%); }
.contact-head p { margin: 0; }
.contact-head h3 { color: var(--white); margin: .15rem 0 .1rem; font-size: 1.4rem; }
.contact-head .title { color: #C9D3DF; }
.avatar { flex: 0 0 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, #1B3A63, #0A2A52); border: 3px solid var(--orange); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
img.avatar { object-fit: cover; padding: 0; }
.avatar svg { width: 40px; height: 40px; fill: none; stroke: #9FB3CF; stroke-width: 1.6; stroke-linecap: round; }
.contact-body { padding: 1.4rem 1.6rem 1.6rem; display: grid; gap: .7rem; }
.contact-body p { margin: 0; }
.focus { color: var(--muted); font-weight: 500; margin-bottom: .2rem !important; }
.contact-link { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: 8px; background: var(--gray);
  border: 1px solid transparent; color: var(--navy); font-weight: 600; text-decoration: none; min-width: 0; transition: border-color .2s, background-color .2s; }
/* Emails only ever break at the <wbr> after "@" (phones), never mid-word */
.contact-link span { min-width: 0; overflow-wrap: normal; }
.contact-link small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .1rem; }
.contact-link svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a.contact-link:hover { border-color: var(--orange); background: #FFF4EC; }
.contact-link.is-disabled { color: var(--muted); font-weight: 500; }
.role { color: var(--orange); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.title { color: var(--muted); font-weight: 500; }
.location { margin-top: 1.75rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .contact, .contact:hover { transition: none; transform: none; } }

/* Credentials: photo column appears only once a founder photo is added (see drafts/pending.html) */
.founder { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.founder:has(.founder-photo) { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); }
.founder .intro { margin-bottom: 1.5rem; }
.founder-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 10px; position: relative; display: grid; place-items: center; overflow: visible;
  background: linear-gradient(165deg, #12325A 0%, var(--navy) 70%); box-shadow: 0 18px 40px -12px rgba(2,29,62,.35); border-bottom: 4px solid var(--orange); }
.founder-photo svg { width: 42%; height: auto; fill: none; stroke: #6F8FBF; stroke-width: 1.2; stroke-linecap: round; opacity: .8; }
.founder-photo figcaption { position: absolute; left: 1.1rem; bottom: 1rem; color: var(--white); font-weight: 700; line-height: 1.25; }
.founder-photo figcaption span { display: block; color: var(--orange); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.founder .creds { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (max-width: 720px) {
  .founder:has(.founder-photo) { grid-template-columns: minmax(0, 1fr); }
  .founder-photo { max-width: 260px; }
}

/* Footer */
.site-footer { background: var(--navy); color: #C9D3DF; padding-top: 3rem; font-size: .95rem; }
.site-footer a { color: var(--white); }
.foot { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot img { height: 30px; width: auto; margin-bottom: 1rem; }
.slogan { font-style: italic; color: #C9D3DF; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1.25rem; font-size: .85rem; }
.legal p { margin: 0; }

/* Mobile: burger menu. Only collapses when nav.js has run (header gets .has-js),
   so without JavaScript the links simply stay visible. */
.burger { display: none; }
@media (max-width: 760px) {
  .bar { flex-wrap: nowrap; padding-block: .75rem; }
  .brand img { height: 28px; }
  .nav { justify-content: center; gap: .1rem 1rem; }
  .has-js .burger { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0;
    background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--white);
    transition: transform .25s, background-color .2s; }
  .burger span { position: relative; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -6px; }
  .burger span::after { top: 6px; }
  .is-open .burger { border-color: var(--orange); }
  .is-open .burger span { background: transparent; }
  .is-open .burger span::before { transform: translateY(6px) rotate(45deg); background: var(--orange); }
  .is-open .burger span::after { transform: translateY(-6px) rotate(-45deg); background: var(--orange); }
  .has-js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: .25rem 1.25rem 1.25rem; background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); border-bottom: 3px solid var(--orange);
    box-shadow: 0 18px 30px rgba(2,29,62,.35); }
  .has-js.is-open .nav { display: flex; }
  .has-js .nav a:not(.btn) { padding: .95rem .25rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .has-js .nav .btn { margin-top: 1rem; padding: .95rem; text-align: center; font-size: .9rem; }
  html { scroll-padding-top: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) { .burger span, .burger span::before, .burger span::after { transition: none; } }


/* Industries: CSS-only accordion gallery. Hovered panel widens and comes into colour;
   labels stay visible at all times so the list reads without interaction. */
.ag { display: grid; gap: 10px; }
.ag-row { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; height: clamp(220px, 24vw, 300px); }
.ag-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 6px; background: var(--navy);
  transition: flex-grow .55s cubic-bezier(.2,.7,.2,1); }
.ag-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05); transform: scale(1.04); transition: filter .5s, transform .8s cubic-bezier(.2,.7,.2,1); }
.ag-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(2,29,62,.15) 30%, rgba(2,29,62,.92) 100%), rgba(2,29,62,.35); transition: background-color .5s; }
.ag-label { position: absolute; z-index: 1; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; display: flex; align-items: flex-start; gap: .7rem;
  color: var(--white); font-weight: 650; font-size: clamp(.95rem, .85rem + .35vw, 1.1rem); line-height: 1.3; text-shadow: 0 2px 12px rgba(2,29,62,.6); }
.ag-bar { flex: 0 0 3px; align-self: stretch; min-height: 1.3em; border-radius: 3px; background: var(--orange); transform: scaleY(.35); transform-origin: bottom; transition: transform .45s; }
.ag-row:hover .ag-panel:hover { flex-grow: 2.2; }
.ag-panel:hover img { filter: grayscale(0); transform: scale(1); }
.ag-panel:hover::after { background-color: rgba(2,29,62,0); }
.ag-panel:hover .ag-bar { transform: scaleY(1); }
@media (hover: none), (max-width: 640px) {
  /* Touch / small screens: no hover, so show colour and full bars, stack as a list */
  .ag-panel img { filter: grayscale(.2); transform: none; }
  .ag-bar { transform: none; }
}
@media (max-width: 640px) {
  .ag-row { flex-direction: column; height: auto; }
  .ag-panel { flex: none; min-height: 92px; }
  .ag-label { top: 50%; bottom: auto; transform: translateY(-50%); align-items: center; }
  .ag-panel::after { background: linear-gradient(90deg, rgba(2,29,62,.92) 0%, rgba(2,29,62,.55) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .ag-panel, .ag-panel img, .ag-bar, .ag-panel::after { transition: none; }
}
@media (max-width: 420px) { .contact-head { padding: 1.25rem; gap: .85rem; } .avatar { flex-basis: 56px; height: 56px; } .avatar svg { width: 30px; height: 30px; } .contact-body { padding: 1.25rem; } }
