/* Effective Intelligence — site styles */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/manrope-latin-800-normal.woff2') format('woff2'); }

:root {
  --navy: #0F1F3D;
  --amber: #E8A33D;
  --amber-text: #8A5A12;
  --body: #4A5260;
  --muted: #5B6472;
  --line: #E3E6EB;
  --tint: #F5F6F8;
  --on-navy: #C9D1DE;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--navy); background: #fff; line-height: 1.5; }
img, svg, canvas { display: block; }
a { color: var(--navy); }
a:hover { color: #B8741A; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 40px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; background: transparent; border-bottom: 1px solid transparent; transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.site-header.is-solid { background: #fff; border-bottom-color: var(--line); }
/* the bar's own honeycomb: shown once the page scrolls, so the hero look stays with it */
.site-header__bg { position: absolute; left: 0; top: 0; width: 100%; height: var(--header-h, 80px); filter: blur(1.6px); opacity: 0; transition: opacity .3s ease; }
.site-header__veil { position: absolute; left: 0; top: 0; width: 100%; height: var(--header-h, 80px); background: rgba(255, 255, 255, 0.45); opacity: 0; transition: opacity .3s ease; }
.site-header.is-solid .site-header__bg, .site-header.is-solid .site-header__veil { opacity: 1; }
.site-header .nav { position: relative; }
.site-header .brand__words, .site-header .nav__links a:not(.btn) { text-shadow: 0 0 2px #fff, 0 0 8px #fff, 0 0 16px #fff; }
/* the first section of every page starts under the bar, so the honeycomb runs behind it */
main > section:first-child { padding-top: var(--header-h, 80px); }
html { scroll-padding-top: calc(var(--header-h, 80px) + 12px); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__words { display: flex; flex-direction: column; line-height: 1.05; }
.brand__words span:first-child { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; }
.brand__words span:last-child { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 600; }
.nav__links a { text-decoration: none; padding: 12px 0; }
.nav__links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #1C3159; color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--amber { background: var(--amber); color: var(--navy); font-weight: 800; }
.btn--amber:hover { background: #F2B65A; color: var(--navy); }
.nav__links .btn { padding: 12px 18px; font-size: 15px; }

/* ---------- type */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-text); margin: 0; }
.eyebrow--light { color: #F2C27A; }
h1, h2, h3 { margin: 0; }
.h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.h3 { font-size: 20px; font-weight: 800; }
.lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--body); max-width: 600px; }
.text { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); }
.small { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.pillars { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0; }
.pillars .pipe { color: var(--amber); }

/* ---------- honeycomb backgrounds */
.hc { position: relative; overflow: hidden; }
.hc > canvas, .hc > .hc__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hc > .hc__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.35) 45%, rgba(255,255,255,0) 75%); }
.hc > .wrap { position: relative; }
.ei-dot { animation: eiDotBeat 2.4s ease-in-out infinite; }
@keyframes eiDotBeat { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .ei-dot { animation: none; } }

/* ---------- home hero */
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 104px; padding-bottom: 120px; }
.hero__copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__space { flex: 1 1 360px; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- page header (inner pages) */
.page-head { border-bottom: 1px solid var(--line); }
.page-head__inner { display: flex; flex-direction: column; gap: 18px; padding-top: 96px; padding-bottom: 104px; }
.page-head .h1 { max-width: 820px; }

/* ---------- cards */
.card { flex: 1 1 260px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card__tag { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.card__bar { height: 29px; }

/* ---------- numbered list */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split__aside { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split__main { flex: 999 1 520px; min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__n { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.steps li:last-child .steps__n { background: var(--amber); color: var(--navy); }
.steps__body { display: flex; flex-direction: column; gap: 6px; }

/* ---------- navy band */
.band { background: var(--navy); color: #fff; }
.band__inner { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding-top: 120px; padding-bottom: 120px; }
.band__quote { margin: 0; max-width: 900px; font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.band__text { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--on-navy); }

/* ---------- CTA strip */
.cta { background: var(--navy); color: #fff; }
.cta__inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }
.cta__copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cta__copy p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--on-navy); }

/* ---------- contact strip (home) */
.contact-strip { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.contact-strip__copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-strip__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; text-align: center; }

/* ---------- placeholders (map on the contact page) */
.placeholder { aspect-ratio: 4 / 3; border-radius: 20px; background: #EEF0F4; border: 1px dashed #B8BFCC; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); }

/* ---------- jobs */
.jobs { display: flex; flex-direction: column; gap: 12px; }
.job { text-decoration: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.job:hover { border-color: var(--navy); color: var(--navy); }
.job__title { font-size: 19px; font-weight: 800; display: block; }
.job__meta { font-size: 15px; color: var(--muted); display: block; }

/* ---------- contact form */
.contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 72px; padding-bottom: 96px; }
.form { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.form__row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 240px; min-width: 0; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid #A9B1BF; border-radius: 12px; color: var(--navy); background: #fff; width: 100%; }
.field textarea { resize: vertical; }
.field--hp { position: absolute; left: -9999px; }
.form__status { margin: 0; font-size: 15px; font-weight: 600; min-height: 1.5em; }
.form__status[data-state="ok"] { color: #2E7D4F; }
.form__status[data-state="error"] { color: #B3261E; }
.contact__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.detail__label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.detail__value { font-size: 18px; font-weight: 700; line-height: 1.5; }
.team-signin { padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 15px; }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--line); }
.footer { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.footer__links a { color: var(--muted); }
.pill { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }

/* ---------- 404 */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-top: 96px; padding-bottom: 96px; }

/* ---------- small screens: keep text readable over the animation */
.nav__links .btn[aria-current="page"] { box-shadow: none; }
.hero__veil { display: none; }
@media (max-width: 820px) {
  .hc > .hc__veil { background: rgba(255, 255, 255, 0.3); }
}
/* phones and tablets: the hero stacks, with the EI hexagon above the headline */
@media (max-width: 1023px) {
  .hero__veil { display: block; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.3); }
  .hc__overlay { display: none; }
  .hero__space { display: none; }
}

/* ---------- a soft white glow around words on the light honeycomb, so the animation stays visible */
.hero .pillars, .hero .h1, .hero .lead,
.page-head .eyebrow, .page-head .h1, .page-head .lead,
.notfound .eyebrow, .notfound .h1, .notfound .lead {
  text-shadow: 0 0 2px #fff, 0 0 6px #fff, 0 0 12px #fff, 0 0 20px #fff, 0 0 28px #fff;
}

/* ---------- soften the light honeycomb so it sits behind the content */
.hc > canvas { filter: blur(1.6px); }

/* ---------- hexagon menu button (phones) */
.nav__toggle { display: none; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
.nav__toggle svg { width: 48px; height: 48px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 820px) {
  .nav { flex-wrap: wrap; }
  .nav__toggle { display: block; }
  .nav__links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 8px; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 16px 4px; border-top: 1px solid var(--line); font-size: 17px; }
  .nav__links a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--amber); padding-left: 16px; }
  .nav__links .btn { margin-top: 12px; border-top: 0; padding: 16px 18px; font-size: 16px; }
  .brand svg { width: 44px; height: 44px; }
  .brand__words span:first-child { font-size: 13px; }
  .brand__words span:last-child { font-size: 21px; }
}

/* ---------- the big EI hexagon, snapped to the grid by honeycomb.js */
.ei-anchor--mobile { display: none; }
@media (max-width: 1023px) {
  .ei-anchor--mobile { display: block; width: 200px; height: 200px; margin: -24px 0 4px; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .ei-anchor--mobile { width: 280px; height: 280px; margin: -16px 0 8px; }
}


/* ---------- frosted panel behind the hero text */
.glass {
  background: rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  backdrop-filter: blur(6px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(15, 31, 61, 0.07);
}
.hero__panel, .page-head__panel { display: flex; flex-direction: column; gap: 22px; padding: 36px 40px; margin-left: -40px; max-width: 760px; }
.page-head__panel { gap: 18px; }
/* inside the panel the glow isn't needed */
.glass .pillars, .glass .h1, .glass .lead, .glass .eyebrow { text-shadow: none; }
@media (max-width: 1260px) { .hero__panel, .page-head__panel { margin-left: 0; } }
@media (max-width: 600px) { .hero__panel, .page-head__panel { padding: 24px 20px; border-radius: 20px; margin: 0 -8px; } }

/* ---------- the same panel on the navy "Our view" band */
.glass--dark {
  background: rgba(15, 31, 61, 0.38);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}
.band__panel { display: flex; flex-direction: column; gap: 24px; padding: 40px 44px; margin-left: -44px; max-width: 980px; }
@media (max-width: 1260px) { .band__panel { margin-left: 0; } }
@media (max-width: 600px) { .band__panel { padding: 26px 20px; border-radius: 20px; margin: 0 -8px; } }

/* fields stacked directly in the form take their natural height (the row sizing is for side-by-side fields) */
.form > .field { flex: none; }

/* ---------- footer policy row */
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 0; padding-bottom: 28px; font-size: 13px; color: var(--muted); }
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a { color: var(--muted); }

/* ---------- long-form policy text */
.prose { max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--body); }
.prose h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 36px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--navy); }
.prose__updated { font-size: 14px; color: var(--muted); }
