/* AE AI Solutions · Florida Keys — source stylesheet.
   build.py copies this to site/css/style-<BUILD>.css. Edit here, not in site/.
   Brand: AE brand guide (navy / electric blue / cyan, Sora headings, Inter body) with a warm "sand" tint for the Keys. */
:root {
  --ink: #050b18;
  --navy: #0a1630;
  --navy-2: #13254a;
  --blue: #1f6bff;      /* buttons + links (white text 4.6:1) */
  --blue-dk: #1553cc;
  --cyan: #22c7f5;      /* accents; navy text on it */
  --cyan-hi: #8fe3fb;   /* text accent on navy */
  --silver: #c9d2de;
  --slate: #5b6880;
  --cloud: #f3f6fb;
  --sand: #f8f3ea;
  --sand-2: #efe5d3;
  --line: #dbe2ec;
  --text: #121a2b;
  --muted: #4d5a71;
  --ok: #18b67a;
  --on-dark-muted: #c3cde0;
  --radius: 16px;
  --gutter: 20px;
  --max: 1180px;
  --display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --grad: linear-gradient(90deg, #1f6bff, #22c7f5);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dk); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(27px, 3.3vw, 40px); }
h3 { font-size: clamp(19px, 1.7vw, 22px); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.center { text-align: center; margin-top: 34px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
.grad-text { color: var(--cyan-hi); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--body); line-height: 1.1;
  transition: transform .15s ease, background .15s ease, color .15s ease; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dk); color: #fff; }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { background: var(--cyan-hi); color: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

.eyebrow { display: inline-block; font-family: var(--body); line-height: 1.4; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-dk); margin-bottom: 12px; }
.lead { font-size: clamp(18px, 1.6vw, 20px); }
.narrow { max-width: 760px; }

/* ---------- header (navy, per the brand guide) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: none; min-height: 48px; text-decoration: none; }
.brand img { width: 214px; height: 25px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 11px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 8px; }
.nav-list a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--cyan); border-radius: 0; }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { background: none; border: 0; color: #fff; width: 36px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.sub-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 18px 40px rgba(5,11,24,.28); visibility: hidden; opacity: 0; transition: opacity .15s ease, visibility .15s; }
.has-sub.open .sub, .has-sub:hover .sub { visibility: visible; opacity: 1; }
.sub a { display: flex; width: 100%; color: var(--text); }
.sub a:hover { background: var(--cloud); color: var(--navy); }
.header-actions { display: none; margin-left: auto; gap: 10px; align-items: center; }
.nav-toggle { width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1100px) {
  .header-actions { display: flex; }
  .site-nav { position: fixed; inset: 72px 0 0 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 16px;
    padding: 20px var(--gutter) 40px; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility .2s; margin: 0; }
  .site-nav.open { visibility: visible; opacity: 1; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { font-size: 19px; min-height: 52px; }
  .nav-list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--cyan); padding-left: 16px; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub { position: static; visibility: visible; opacity: 1; display: none; box-shadow: none; width: 100%; background: var(--navy-2); border-color: transparent; }
  .sub a { color: #fff; }
  .sub a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .has-sub.open .sub { display: block; }
  .sub-toggle { width: 52px; height: 52px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand img { width: 170px; height: 20px; } .header-cta { display: none; } }

/* ---------- hero (dark) ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding-top: 64px; padding-bottom: 80px;
  background: radial-gradient(900px 520px at 85% 0%, rgba(34,199,245,.22), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(31,107,255,.25), transparent 60%), var(--ink); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad); }
.hero h1, .hero h2 { color: #fff; }
.hero p { color: var(--on-dark-muted); }
.hero .lead { color: #e3e9f4; }
.hero .eyebrow { color: var(--cyan-hi); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-badges { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: 15px; color: #fff; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.hero-sub { padding-top: 40px; padding-bottom: 60px; }
.hero-sub h1 { font-size: clamp(32px, 4.4vw, 50px); }
.breadcrumb { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #7c8aa5; }
.breadcrumb a { color: var(--on-dark-muted); display: inline-flex; min-height: 40px; min-width: 44px; align-items: center; }
.breadcrumb span { display: inline-flex; min-height: 40px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 36px; } }

/* ---------- lead-flow panel (hero visual, pure HTML) ---------- */
.flow { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.flow-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; color: var(--on-dark-muted); }
.flow-head strong { color: #fff; font-family: var(--display); font-size: 16px; }
.flow-tag { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 3px 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flow li { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; background: rgba(255,255,255,.06); border-radius: 12px; padding: 11px 14px; }
.flow li .flow-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(34,199,245,.15); color: var(--cyan); }
.flow-ico svg { width: 20px; height: 20px; }
.flow li b { display: block; color: #fff; font-size: 15px; line-height: 1.3; }
.flow li div span { display: block; color: var(--on-dark-muted); font-size: 13px; line-height: 1.35; }
.flow li em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--cyan-hi); white-space: nowrap; }
.flow li.win { background: rgba(24,182,122,.16); }
.flow li.win .flow-ico { background: rgba(24,182,122,.25); color: #5ee3ae; }
.flow li.win em { color: #5ee3ae; }
.flow-foot { margin: 12px 0 0; font-size: 12px; color: #93a1bb; }
@media (max-width: 420px) { .flow { padding: 16px; } .flow li { grid-template-columns: 32px 1fr; } .flow li em { grid-column: 2; } .flow li .flow-ico { width: 32px; height: 32px; } }

/* ---------- sections ---------- */
.section { padding-top: 84px; padding-bottom: 84px; }
.section-tint { background: var(--cloud); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p, .section-dark li { color: var(--on-dark-muted); }
.section-dark .eyebrow { color: var(--cyan-hi); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.section-dark .section-head p { color: var(--on-dark-muted); }
.muted-note { color: var(--muted); margin-top: 22px; }

/* ---------- cards ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--text);
  text-decoration: none; box-shadow: 0 8px 24px rgba(10,22,48,.05); transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(10,22,48,.13); color: var(--text); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }
.card ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 15px; }
.card-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #e8f0ff; color: var(--blue); margin-bottom: 16px; }
.card-ico svg { width: 24px; height: 24px; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--blue-dk); font-weight: 700; min-height: 40px; }
.card-link svg { width: 18px; height: 18px; }
.quote-card { background: var(--sand); border-color: var(--sand-2); }
.quote-card p { font-family: var(--display); font-weight: 600; color: var(--navy); font-size: 18px; line-height: 1.4; margin-bottom: 10px; }
.quote-card span { font-size: 15px; color: var(--muted); }
.section-dark .card { background: var(--navy-2); border-color: rgba(255,255,255,.08); box-shadow: none; }
.section-dark .card h3 { color: #fff; }
.section-dark .card p { color: var(--on-dark-muted); }
.section-dark .card-ico { background: rgba(34,199,245,.14); color: var(--cyan); }

/* ---------- service groups ---------- */
.group { margin-bottom: 52px; }
.group:last-child { margin-bottom: 0; }
.group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 20px; }
.group-head h2, .group-head h3 { margin: 0; }
.group-head p { margin: 0; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; background: #e8f0ff; color: var(--blue-dk); }
.tag-sand { background: var(--sand-2); color: #6b4e1f; }
.tag-ok { background: #dcf6eb; color: #0c6b47; }

/* ---------- split + checklist ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split.top { align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.section-dark .checklist svg, .hero .checklist svg { color: var(--cyan); }
.nolist li { list-style: none; }
.xlist svg { color: #c2410c; }

/* ---------- panels ---------- */
.panel { background: #fff; color: var(--text); border-radius: 18px; padding: 30px; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(10,22,48,.12); }
.panel h3 { color: var(--navy); }
.panel p { color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); color: var(--navy); line-height: 1.1; }
.stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 800px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.step { background: #fff; border-radius: var(--radius); padding: 24px 22px; border-top: 5px solid var(--blue); box-shadow: 0 10px 30px rgba(10,22,48,.08); }
.step:nth-child(even) { border-top-color: var(--cyan); }
.step-num { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--blue); margin-bottom: 10px; }
.step h3 { font-size: 19px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 1060px) { .steps, .steps.four, .steps.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps, .steps.four, .steps.three { grid-template-columns: 1fr; } }

/* ---------- pipeline diagram (attribution) ---------- */
.pipe { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.pipe li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; text-align: center; font-size: 14px; color: var(--muted); }
.pipe li b { display: block; color: var(--navy); font-family: var(--display); font-size: 15px; margin-bottom: 4px; }
.pipe li svg { width: 26px; height: 26px; color: var(--blue); margin: 0 auto 8px; display: block; }
.pipe li:not(:last-child)::after { content: "\2192"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--blue); font-weight: 700; z-index: 1; }
.pipe li.loop { background: #e8f0ff; border-color: #c5d8ff; }
@media (max-width: 900px) { .pipe { grid-template-columns: repeat(2, 1fr); } .pipe li::after { display: none; } }

/* ---------- chips ---------- */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); background: #fff; border-radius: 999px; font-weight: 600; font-size: 15px; }
.chips li > a, .chips li > span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; color: var(--navy); text-decoration: none; }
.chips li > a:hover { color: var(--blue); }
.section-dark .chips li { background: var(--navy-2); border-color: rgba(255,255,255,.1); }
.section-dark .chips li > span, .section-dark .chips li > a { color: #fff; }

/* ---------- portfolio ---------- */
.work { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(10,22,48,.07); }
.work-media { position: relative; background: linear-gradient(160deg, #dfe8f7, #f3f6fb); padding: 22px 22px 0; }
.browser { border-radius: 10px 10px 0 0; overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgba(10,22,48,.18); }
.browser-bar { display: flex; gap: 6px; align-items: center; padding: 8px 10px; background: #e9eef5; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c3ccd9; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone-shot { position: absolute; right: 16px; bottom: -14px; width: 24%; max-width: 110px; border-radius: 16px; overflow: hidden; border: 4px solid var(--navy); box-shadow: 0 14px 30px rgba(10,22,48,.3); background: var(--navy); }
.phone-shot img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }
.work-body { padding: 30px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { margin-bottom: 6px; }
.work-meta { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.work-body p { color: var(--muted); font-size: 16px; }
.work-body .chips { margin-top: auto; gap: 6px; }
.work-body .chips li { font-size: 13px; background: var(--cloud); }
.work-body .chips li > span { min-height: 32px; padding: 4px 12px; }
.work-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.work-body ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 15px; }

/* concept mockups (pure CSS, no images) */
.mock { border-radius: 10px 10px 0 0; overflow: hidden; background: #fff; box-shadow: 0 12px 30px rgba(10,22,48,.18); }
.mock-hero { min-height: 230px; padding: 22px 22px 56px; color: #fff; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.mock-nav { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 700; font-size: 13px; margin-bottom: 8%; }
.mock-nav i { display: inline-block; width: 26px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.55); margin-left: 6px; }
.mock-hero b { font-family: var(--display); font-size: clamp(17px, 2vw, 23px); line-height: 1.15; max-width: 80%; }
.mock-hero span { font-size: 12px; opacity: .85; max-width: 70%; }
.mock-btns { display: flex; gap: 8px; margin-top: 8px; }
.mock-btns i { display: block; height: 22px; width: 82px; border-radius: 999px; background: #fff; }
.mock-btns i + i { background: transparent; border: 2px solid rgba(255,255,255,.7); width: 70px; }
.mock-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: rgba(255,255,255,.12); clip-path: polygon(0 40%, 20% 20%, 45% 45%, 70% 15%, 100% 35%, 100% 100%, 0 100%); }
.mock-charter { background-color: #0b4f6c; background-image: linear-gradient(135deg, #0b4f6c, #20a4c9); }
.mock-dive { background-color: #04345e; background-image: linear-gradient(135deg, #04345e, #0a8f8f); }
.mock-ac { background-color: #12306b; background-image: linear-gradient(135deg, #12306b, #3f7cf0); }
.mock-pest { background-color: #1d3b2a; background-image: linear-gradient(135deg, #1d3b2a, #3e8a55); }

/* ---------- table ---------- */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy); color: #fff; font-family: var(--display); font-size: 16px; }
.compare tbody th { color: var(--navy); width: 30%; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .compare tbody th { width: 100%; font-size: 18px; padding-bottom: 4px; }
  .compare td { border-bottom: 0; padding-top: 4px; padding-bottom: 4px; }
  .compare td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--navy); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 880px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; min-height: 56px; display: flex; align-items: center; font-weight: 700; font-size: 18px; list-style: none; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; padding-left: 16px; font-size: 26px; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---------- CTA + form ---------- */
.cta-band { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 400px at 0% 0%, rgba(34,199,245,.18), transparent 60%), radial-gradient(600px 400px at 100% 100%, rgba(31,107,255,.3), transparent 60%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); }
.cta-band .eyebrow { color: var(--cyan-hi); }
.cta-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.cta-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.cta-list li { display: flex; gap: 10px; align-items: flex-start; color: #fff; }
.cta-list svg { width: 22px; height: 22px; color: var(--cyan); flex: none; margin-top: 2px; }
.cta-mail { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; min-height: 44px; }
.cta-mail svg { width: 22px; height: 22px; color: var(--cyan); }
.cta-mail:hover { color: var(--cyan-hi); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: 15px; color: var(--text); }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 2px solid #c6d1df; border-radius: 10px; padding: 11px 13px; min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(31,107,255,.2); }
.panel .btn-blue { width: 100%; font-size: 17px; }
.form-note { margin: 14px 0 0; font-size: 14px; }
.form-note a { display: inline-flex; align-items: center; min-height: 44px; }
.cta-band .panel p { color: var(--muted); }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } .panel { padding: 22px 18px; } }

/* ---------- prose ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.2em; font-size: clamp(23px, 2.5vw, 29px); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* ---------- area ---------- */
.area { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.area h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.area h3 small { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-dk); }
.area p { color: var(--muted); font-size: 16px; }
.area .chips li { background: var(--sand); border-color: var(--sand-2); font-size: 14px; }
.area .chips li > span { min-height: 36px; padding: 4px 14px; }

/* ---------- people ---------- */
.person { display: flex; gap: 18px; align-items: flex-start; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background-color: var(--blue); background-image: var(--grad); color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 26px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); padding-top: 64px; padding-bottom: 30px; color: var(--on-dark-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h2 { font-size: 17px; color: #fff; margin-bottom: 12px; }
.footer-logo { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 14px; }
.footer-logo img { width: 214px; height: 25px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--cyan-hi); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.footer-bottom a { color: var(--on-dark-muted); display: inline-flex; min-height: 40px; align-items: center; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: 100px; } }

/* ---------- mobile CTA bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 560px) {
  .mobile-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(10,22,48,.1); }
  .mobile-bar .btn { width: 100%; min-height: 50px; }
}

/* ---------- reveal (fails open) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in, .reveal-all .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
@media print { .js .reveal { opacity: 1; transform: none; } .site-header, .mobile-bar { position: static; } }
.fine { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* ---------- home-page previews (scroll through the whole page) ---------- */
.browser-bar span { margin-left: 8px; font-size: 11px; color: #6b778c; background: #fff; border-radius: 6px; padding: 2px 10px; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.home-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: object-position 7s cubic-bezier(.45,.05,.4,1); }
.home-frame:not(.static):hover img, .home-frame:not(.static):focus img { object-position: 50% 100%; transition-duration: 9s; }
.home-frame:not(.static)::after { content: "Hover to scroll the page"; position: absolute; right: 10px; top: 10px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(10,22,48,.78); border-radius: 999px; padding: 4px 10px; pointer-events: none; transition: opacity .3s; }
.home-frame:hover::after, .home-frame:focus::after { opacity: 0; }
.home-frame.static img { object-position: top; }
@media (hover: none) {
  .home-frame:not(.static) { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .home-frame:not(.static) img { height: auto; object-fit: initial; transition: none; }
  .home-frame:not(.static)::after { content: "Scroll inside to see the page"; position: sticky; float: right; margin: 10px; }
}
@media (prefers-reduced-motion: reduce) { .home-frame img { transition: none; } }
.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; }
.panel .btn-blue { margin-top: 6px; }
.card > .tag { align-self: flex-start; }
.story-card { background: var(--sand); border-color: var(--sand-2); }
.story-card p { color: var(--text); }
.story-card > span:last-child { font-size: 14px; color: var(--muted); }
