/*
Theme Name: Kama Radar
Theme URI: https://www.kamaconsultants.com
Author: Kama Consultants
Description: Outcome-first theme for Kama Consultants. Positions KAMA as an intelligence partner for medtech and innovation teams: raise capital faster, shorten time to market, retire risk early. All copy lives in inc/content.php.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kama-radar
*/

/* Layout: a calm navy-and-paper page where one orange "radar" motif carries the brand.
   Brand colors are taken from the KAMA logo (charcoal #545454, orange #EE612C) and the
   existing site navy (#0E2A47). */
:root {
  --navy: #0e2a47;
  --navy-deep: #081a2e;
  --orange: #ee612c;
  --orange-soft: #fbe6dc;
  --ink: #1d2733;
  --ink-soft: #4d5a68;
  --charcoal: #545454;
  --paper: #ffffff;
  --paper-2: #f3f5f8;
  --line: #d9dfe7;
  --ok: #2e8b57;
  --warn: #d9a21b;
  --bad: #c43d2f;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max: 1180px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 .6em;
  text-wrap: balance;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
.hero h1 { font-size: clamp(1.75rem, 3.9vw, 3rem); text-wrap: initial; }
@media (max-width: 640px) { .hero h1 { text-wrap: balance; } }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; margin-bottom: .5em; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 66ch; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.section { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.section--tint { background: var(--paper-2); }
.section--navy { background: var(--navy); color: #e6ecf3; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy p { color: #c9d4e0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .9rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.section--navy .lead { color: #c9d4e0; }
.center { text-align: center; }
.center p { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn--primary:hover { background: #d9521f; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: #ffe9df; border-color: #ffe9df; }
.btn--light .tag { font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: .06em; background: var(--orange); color: #fff; padding: .15rem .5rem; border-radius: 999px; }
.btn--dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand img { height: 44px; width: auto; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem .7rem; font: inherit; color: var(--navy); }
.site-nav ul { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--charcoal); text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--orange); }
.site-nav .nav-cta a { color: #fff; background: var(--orange); padding: .6rem 1.1rem; border-radius: 999px; }
.site-nav .nav-cta a:hover { background: #d9521f; color: #fff; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { width: min(80rem, 100% - 2rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.25rem 2.5rem; align-items: stretch; align-content: space-between; box-sizing: border-box; min-height: calc(100svh - 75px); padding-block: clamp(1.75rem, 3vw, 2.5rem) 3.25rem; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub { font-family: var(--font-display); font-weight: 400; font-size: clamp(.95rem, 1.32vw, 1.3rem); white-space: nowrap; color: #eef2f7; margin: 0; line-height: 1.4; }
.hero-sub span { white-space: nowrap; }
.hero .lead { color: #c9d4e0; max-width: 56ch; font-size: 1.15rem; }
.hero .lead strong { color: var(--orange); font-weight: 600; }
.hero .btn-row { margin-top: 1.8rem; }
.hero-left { display: flex; flex-direction: column; align-self: stretch; }
.hero-left::before, .hero-left::after { content: ''; flex: 1 1 0; min-height: 1rem; }
.hero-left .hero-head { order: 1; } .hero-left::before { order: 2; } .hero-left .hero-body { order: 3; } .hero-left::after { order: 4; }
.hero-head { text-align: left; }
.hero-head .eyebrow { display: block; margin-bottom: .7rem; }
.hero-head h1 { font-size: clamp(2rem, 3.1vw, 2.8rem); margin: 0; text-wrap: balance; }
.hero-head h1 { width: fit-content; max-width: 100%; margin-bottom: 1rem; }
.hero-head h1::after { content: ''; display: block; width: 6rem; height: 4px; background: var(--orange); border-radius: 2px; margin: 1.1rem auto 0; }
.hero-body { }
.hero-body .lead { margin-top: 0; }
.hero-actions { width: fit-content; max-width: 100%; }
.hero-nudge { font-family: var(--font-display); font-size: 1.05rem; color: #c9d4e0; margin: 1.1rem 0 0; text-align: center; }
.hero-nudge a { color: inherit; text-decoration: none; }
.hero-nudge a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.hero-nudge strong { color: var(--orange); font-weight: 600; }
.scroll-cue { position: absolute; left: 50%; bottom: .6rem; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #c9d4e0; border: 1px solid rgba(255,255,255,.25); opacity: 0; animation: cue-in .6s ease 1.2s forwards, cue-bob 2.4s ease-in-out 1.8s infinite; }
.scroll-cue:hover { color: #fff; border-color: #fff; }
body.scrolled .scroll-cue { display: none; }
@keyframes cue-in { to { opacity: 1; } }
@keyframes cue-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }
@media (max-width: 860px), (prefers-reduced-motion: reduce) { .scroll-cue { display: none; } }
#outcomes.section { padding-top: clamp(1.5rem, 2.5vw, 2rem); padding-bottom: clamp(3rem, 5vw, 4.5rem); }
.hero-outcomes-row { grid-column: 1 / -1; margin-top: 0; }
.hero-outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; }
.hero-outcomes li { display: flex; gap: .85rem; align-items: flex-start; padding: .25rem 1.25rem .25rem 0; margin-right: 1.25rem; border-right: 1px solid rgba(255,255,255,.18); color: #fff; text-align: left; }
.hero-outcomes li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-outcomes li::before { content: none; }
.hero-outcomes .oc-icon { flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: var(--orange); }
.hero-outcomes strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.25; margin-bottom: .2rem; }
.hero-outcomes div > span { display: block; font-size: .95rem; line-height: 1.4; color: #c9d4e0; }
.hero-radar { position: relative; }
.hero-radar::before { content: ''; position: absolute; inset: -6% -10%; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.4px); background-size: 14px 14px; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); pointer-events: none; }
.hero-radar .radar, .hero-radar .radar-caption { position: relative; }
.hero-outcomes-label { font-family: var(--font-mono); font-size: 1.56rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #c9d4e0; margin: 0 0 .6rem; }
.radar { width: 100%; max-width: clamp(360px, 100svh - 385px, 560px); margin-inline: auto; aspect-ratio: 1; }
.radar svg { width: 100%; height: 100%; overflow: visible; }
.radar .sweep { transform-origin: 50% 50%; animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar .blip { animation: blip 6s ease-out infinite; }
.radar .blip.b2 { animation-delay: 1.6s; }
.radar .blip.b3 { animation-delay: 3.4s; }
@keyframes blip { 0%, 10% { opacity: 1; } 80%, 100% { opacity: .25; } }
.radar-caption { font-family: var(--font-mono); font-size: .98rem; color: #c9d4e0; text-align: center; margin-top: .8rem; letter-spacing: .08em; }
@media (max-width: 860px) { .hero-sub { white-space: normal; font-size: 1.1rem; } .hero .wrap { grid-template-columns: 1fr; } .radar { max-width: 320px; } .hero-outcomes { grid-template-columns: repeat(2, 1fr); gap: .9rem 0; } .hero-outcomes li:nth-child(2n) { border-right: 0; } }
@media (max-width: 480px) { .hero-outcomes { grid-template-columns: 1fr; } .hero-outcomes li { border-right: 0; margin-right: 0; padding-right: 0; } }

/* ---------- Outcomes ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.outcome { border-top: 3px solid var(--orange); padding-top: 1.2rem; min-width: 0; }
.outcome h3 { margin-bottom: .4rem; }
.outcome .deliver { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-top: .9rem; }
.outcome ul { margin-top: .4rem; }
.outcome li { padding-left: 1.2rem; position: relative; margin-bottom: .35rem; color: var(--ink-soft); }
.outcome li::before { content: "→"; position: absolute; left: 0; color: var(--orange); }

/* ---------- Sample radar report ---------- */
.report { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .report { grid-template-columns: 1fr; } }
.report-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; min-width: 0; }
.report-card .meta { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.report-card .meta .tag { color: var(--orange); }
.spider { width: 100%; max-width: 420px; margin-inline: auto; }
.spider svg { width: 100%; height: auto; overflow: hidden; }
.spider text { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-soft); }
.flags li { display: grid; grid-template-columns: 10px 1fr; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.flags li:last-child { border-bottom: 0; }
.flags .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .45rem; }
.flags .dot--bad { background: var(--bad); } .flags .dot--warn { background: var(--warn); } .flags .dot--ok { background: var(--ok); }
.flags h4 { margin: 0 0 .2rem; }
.flags p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.flags .fix { font-family: var(--font-mono); font-size: .78rem; color: var(--navy); margin-top: .3rem; display: block; }
.note { font-size: .88rem; color: var(--ink-soft); border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: var(--radius); padding: .8rem 1rem; max-width: 72ch; background: var(--paper); }

/* ---------- Models ---------- */
.model { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.model--featured { border-color: var(--orange); box-shadow: 0 12px 40px rgba(14,42,71,.08); }
.model .num { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; color: var(--orange); }
.model .who { font-size: .95rem; color: var(--ink-soft); }
.model .who strong { color: var(--orange); font-weight: 600; }
.model ul li { padding: .5rem 0 .5rem 1.4rem; position: relative; border-bottom: 1px dashed var(--line); }
.model ul li:last-child { border-bottom: 0; }
.model ul li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.model .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Engagement timeline ---------- */
.timeline { overflow-x: auto; padding-bottom: .5rem; }
.timeline table { border-collapse: collapse; width: 100%; min-width: 900px; font-size: .95rem; }
.timeline th, .timeline td { vertical-align: top; padding: 1rem .9rem; border-bottom: 1px solid rgba(255,255,255,.12); text-align: left; }
.timeline thead th { font-family: var(--font-display); color: #fff; font-size: 1rem; border-bottom: 2px solid var(--orange); }
.timeline thead th small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .72rem; color: #9fb0c2; letter-spacing: .06em; margin-top: .25rem; }
.timeline tbody th { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #9fb0c2; white-space: nowrap; width: 150px; }
.timeline td { color: #c9d4e0; }
.timeline tr.kama td { color: #fff; background: rgba(238,97,44,.08); }
.timeline tr.kama th { color: var(--orange); }
.timeline td ul li { padding-left: 1rem; position: relative; margin-bottom: .3rem; }
.timeline td ul li::before { content: "·"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.timeline-scroll-hint { font-family: var(--font-mono); font-size: .72rem; color: #9fb0c2; margin-top: .5rem; display: none; }
@media (max-width: 960px) { .timeline-scroll-hint { display: block; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 3rem; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #fff3ec; margin: .3rem 0 0; }
.cta-band .btn--dark { background: var(--navy); border-color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9fb0c2; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2rem; padding-block: 3.5rem 2rem; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { color: #c9d4e0; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer li { margin-bottom: .45rem; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.2rem; font-size: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--navy); color: #fff; padding-block: 4rem; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: #c9d4e0; }
.entry-content { max-width: 72ch; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.contact-list span { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); display: block; }

/* ---------- Spacing after headings in sections ---------- */
.outcomes-grid, .models-grid, .report, .cmp-scroll, .timeline { margin-top: 2.25rem; }
.outcomes-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .outcomes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .outcomes-grid { grid-template-columns: 1fr; } }
.outcome p { color: var(--ink-soft); }
.outcome .deliver { text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--navy); border-left: 2px solid var(--orange); padding-left: .7rem; margin-top: .6rem; }

/* ---------- Photo band ---------- */
.band { position: relative; background-size: cover; background-position: center; padding-block: clamp(3rem, 8vw, 6rem); }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,26,46,.92) 0%, rgba(8,26,46,.7) 55%, rgba(8,26,46,.25) 100%); }
.band .wrap { position: relative; }
.band-card { max-width: 560px; color: #fff; }
.band-card h2 { color: #fff; }
.band-card p { color: #d4dde7; margin: 0; }
.plain-list li { color: #e6ecf3; padding: .4rem 0 .4rem 1.2rem; position: relative; }
.plain-list li::before { content: "→"; position: absolute; left: 0; color: var(--orange); }

/* ---------- Comparison table ---------- */
.cmp-scroll { overflow-x: auto; }
.cmp { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-size: .95rem; }
.cmp td { position: relative; }
.cmp th, .cmp td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cmp thead th { font-family: var(--font-display); font-weight: 600; color: var(--ink-soft); font-size: .9rem; border-bottom: 2px solid var(--line); }
.cmp tbody th { text-align: left; font-weight: 500; color: var(--ink); width: 38%; }
.cmp .is-kama { background: var(--navy); color: #fff; }
.cmp thead th.is-kama { color: #fff; border-bottom-color: var(--orange); border-radius: var(--radius) var(--radius) 0 0; font-size: 1rem; }
.cmp tbody tr:last-child td.is-kama { border-radius: 0 0 var(--radius) var(--radius); }
.cmp td.is-kama { border-bottom-color: rgba(255,255,255,.12); }
.mark { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; }
.mark--yes { background: var(--orange-soft); color: var(--orange); }
.is-kama .mark--yes { background: var(--orange); color: #fff; }
.mark--part { background: #f3ebd0; color: #8a6a0a; }
.mark--no { background: var(--paper-2); color: #a8b2bd; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp-legend { font-size: .82rem; color: var(--ink-soft); margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.cmp-legend .mark { width: 22px; height: 22px; font-size: .75rem; margin-right: .3rem; }
.punch { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); border-left: 4px solid var(--orange); padding-left: 1rem; margin-top: 1.8rem; max-width: 60ch; }

/* ---------- Flags, lighter ---------- */
.flags h4 { font-size: 1rem; }
.note { margin-top: 1rem; }

/* ---------- Engagement header with photo ---------- */
.eng-head { display: grid; grid-template-columns: 1fr 260px; gap: 2.5rem; align-items: center; }
.eng-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 4px solid rgba(255,255,255,.12); }
@media (max-width: 760px) { .eng-head { grid-template-columns: 1fr; } .eng-photo { max-width: 260px; } }

/* ---------- Who we serve ---------- */
.serve-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.serve-photo { margin: 0; }
.serve-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.serve-list { margin-top: 1.5rem; display: grid; gap: 0; }
.serve-list li { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.serve-list li:last-child { border-bottom: 0; }
.serve-list strong { font-family: var(--font-display); color: var(--navy); }
.serve-list span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) { .serve-wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .serve-list li { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Credibility ---------- */
.cred { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center; }
.cred-person { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.cred-person img { width: 100%; max-width: 340px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--paper); padding: 1rem 1.1rem; }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); line-height: 1.1; }
.facts span { font-size: .82rem; color: var(--ink-soft); }
@media (max-width: 860px) { .cred { grid-template-columns: 1fr; } }

/* ---------- Community strip ---------- */
.community { background: var(--paper-2); border-top: 1px solid var(--line); }
.community .wrap { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.community img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.community h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .5rem; }
.community .eyebrow { margin-bottom: .6rem; }
.community p { color: var(--ink-soft); margin: 0 0 .5rem; }
@media (max-width: 700px) { .community .wrap { grid-template-columns: 1fr; } .community img { max-width: 340px; } }

/* Hero eyebrow, larger */
.hero .eyebrow { font-size: 1.05rem; letter-spacing: .14em; margin-bottom: 1.2rem; font-weight: 700; }
@media (max-width: 560px) { .hero .eyebrow { font-size: .9rem; } }

/* Anchor targets land below the sticky header */
section[id], footer[id] { scroll-margin-top: 90px; }

/* Long-form pages (privacy policy, etc.) */
.entry-content ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1em; }
.entry-content ol { list-style: decimal; padding-left: 1.4rem; margin: 0 0 1em; }
.entry-content li { margin-bottom: .35rem; }
.entry-content h2 { font-size: 1.35rem; }
.entry-content h3 { font-size: 1.1rem; }
.cmp-legend { max-width: none; }

/* ---------- Engagement Gantt ---------- */
.gantt-wrap { margin-top: 2.25rem; overflow-x: auto; }
.gantt { width: 100%; min-width: 720px; height: auto; display: block; font-family: var(--font-body); }
.g-grid { stroke: rgba(255,255,255,.08); }
.g-axis { font-family: var(--font-mono); font-size: 11px; fill: #9fb0c2; }
.g-lane { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; fill: #9fb0c2; }
.g-lane.is-kama { fill: var(--orange); }
.g-bar.g-phase { fill: rgba(255,255,255,.16); stroke: rgba(255,255,255,.25); }
.g-bar.g-risk { fill: rgba(196,61,47,.55); stroke: #c43d2f; }
.g-bar.g-scan { fill: var(--orange); }
.g-label { font-size: 12px; fill: #fff; font-weight: 500; }
.g-launch { stroke: #fff; stroke-width: 2; } .g-launch.is-kama { stroke: var(--orange); }
.g-flagtext { font-family: var(--font-mono); font-size: 10.5px; fill: #fff; font-weight: 700; letter-spacing: .04em; } .g-flagtext.is-kama { fill: var(--orange); }
.g-delta { stroke: var(--orange); stroke-width: 2; stroke-dasharray: 5 4; }
.g-deltatext { font-family: var(--font-display); font-size: 14px; font-weight: 700; fill: var(--orange); paint-order: stroke; stroke: var(--navy); stroke-width: 6px; }
.gantt-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .85rem; color: #c9d4e0; margin-top: .8rem; }
.gantt-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: .4rem; vertical-align: middle; }
.gantt-legend .g-phase { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); }
.gantt-legend .g-risk { background: rgba(196,61,47,.6); border: 1px solid #c43d2f; }
.gantt-legend .g-scan { background: var(--orange); }
.note--dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.15); color: #c9d4e0; border-left-color: var(--warn); }
.reasons-title { color: #fff; margin: 2.5rem 0 1rem; }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.reason { border-top: 2px solid var(--orange); padding-top: .8rem; min-width: 0; }
.reason strong { font-family: var(--font-display); color: #fff; display: block; margin-bottom: .3rem; }
.reason p { font-size: .92rem; color: #c9d4e0; margin: 0; }
@media (max-width: 1000px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }

.model .pricing { background: #e8eef5; border: 1px solid #cfdbe8; border-radius: var(--radius); padding: .8rem 1rem; font-size: .95rem; color: var(--navy); margin: .2rem 0 .4rem; }
.model .pricing span { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #3b5f85; margin-bottom: .2rem; }
.model--featured .pricing { background: #e4f3ea; border-color: #bfe0cc; color: #1f4d33; }
.model--featured .pricing span { color: #2e8b57; }

/* ---------- Request-a-call modal ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,26,46,.72); }
.modal-card { position: relative; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 2rem; width: min(480px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.35); display: grid; gap: .8rem; }
.modal-card h3 { margin: 0 0 .4rem; }
.modal-x { position: absolute; top: .6rem; right: .8rem; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: .3rem .5rem; }
.modal-opt { display: grid; gap: .15rem; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; color: var(--ink); transition: border-color .15s, background .15s; }
.modal-opt:hover, .modal-opt:focus-visible { border-color: var(--orange); background: var(--orange-soft); }
.modal-opt strong { font-family: var(--font-display); color: var(--navy); }
.modal-opt span { font-size: .9rem; color: var(--ink-soft); }
.modal-opt:first-of-type { border-color: var(--orange); }
.modal-link { font-size: .9rem; color: var(--navy); margin-top: .3rem; }
body.modal-open { overflow: hidden; }

/* ---------- Contact form ---------- */
.form-wrap { max-width: 680px; margin-top: 1.5rem; }
.kama-form { display: grid; gap: 1rem; }
.kama-form label { display: grid; gap: .35rem; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--navy); }
.kama-form input, .kama-form textarea { font: inherit; font-family: var(--font-body); font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; width: 100%; }
.kama-form input:focus, .kama-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.kama-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .kama-form .form-row { grid-template-columns: 1fr; } }
.kama-form .captcha input { max-width: 140px; }
.kama-form .hp { position: absolute; left: -9999px; }
.kama-form .btn { justify-self: start; }
.form-msg { padding: .8rem 1rem; border-radius: var(--radius); font-weight: 500; }
.form-msg--ok { background: #e6f4ec; color: #1f6b3f; border: 1px solid #b9e0c8; }
.form-msg--error { background: #fdeceb; color: #9b2f24; border: 1px solid #f3c3bd; }
.form-note { margin-top: .5rem; }

/* ---------- Quick RFP modal ---------- */
.modal--wide .modal-card { width: min(720px, 100%); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.75rem; }
.modal-intro { color: var(--ink-soft); margin: 0 0 .6rem; font-size: .95rem; }
.kama-form--rfp { gap: .8rem; }
.kama-form--rfp select { font: inherit; font-family: var(--font-body); font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem; width: 100%; }
.kama-form--rfp select:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.kama-form--rfp textarea { min-height: 96px; }
.kama-form .checks { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .9rem .8rem; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .8rem; }
.kama-form .checks legend { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--navy); padding: 0 .3rem; }
.kama-form .check { display: flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-weight: 400; font-size: .92rem; color: var(--ink); }
.kama-form .check input { width: auto; accent-color: var(--orange); }
@media (max-width: 560px) { .kama-form .checks { grid-template-columns: 1fr; } .modal--wide .modal-card { padding: 1.25rem; } }

/* Short laptop screens: keep the whole hero above the fold */
@media (min-width: 861px) and (max-height: 760px) { .radar { max-width: 340px; } .hero .wrap { padding-block: 1.25rem 3rem; } .hero-outcomes-label { font-size: 1.2rem; } .hero-outcomes div > span { font-size: .88rem; } }
@media (max-width: 860px) { .hero .wrap { min-height: 0; } }

/* ---------- Start with KAMA (entry offer) ---------- */
.start { background: var(--navy); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); }
.start .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.start h2 { color: #fff; margin-bottom: .4em; }
.start .lead { color: #c9d4e0; }
.start-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.6rem; }
.start-steps div { border-left: 3px solid var(--orange); padding-left: .8rem; }
.start-steps em { display: block; font-family: var(--font-mono); font-style: normal; font-size: .72rem; letter-spacing: .1em; color: var(--orange); }
.start-steps strong { display: block; font-family: var(--font-display); font-size: 1rem; color: #fff; }
.start-steps span { display: block; font-size: .9rem; color: #c9d4e0; }
.start-credit { margin: 1.4rem 0 0; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; color: #c9d4e0; }
.start-credit strong { color: var(--orange); font-weight: 600; }
.start-card { background: #fff; color: var(--ink); border-radius: 14px; padding: 1.6rem 1.7rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.start-card .price { display: flex; align-items: baseline; gap: .6rem; margin: .2rem 0 .8rem; }
.start-card .price strong { font-family: var(--font-display); font-size: 2.4rem; color: var(--navy); line-height: 1; }
.start-card .price span { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #6b7a8c; }
.start-card ul { margin: 0 0 1.1rem; }
.start-card li { position: relative; padding: .32rem 0 .32rem 1.6rem; font-size: .98rem; border-bottom: 1px solid #eef1f5; }
.start-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.start-card .fine { font-size: .85rem; color: #6b7a8c; margin: .9rem 0 0; }
.models-grid--3 { display: grid; grid-template-columns: .85fr 1fr 1fr; gap: 1.2rem; align-items: stretch; }
.model--entry { border: 2px solid var(--orange); }
.model .pricing-amount { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); margin: 0 0 .2rem; }
.model .pricing-amount small { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: #6b7a8c; margin-left: .4rem; }
.corp-note { margin-top: 1.2rem; }
.rfp-price { background: #fff4ee; border: 1px solid #f7c9b4; border-left: 4px solid var(--orange); border-radius: var(--radius); padding: .7rem 1rem; font-size: .95rem; color: var(--navy); margin: 0; }
.rfp-price strong { color: var(--orange); }
@media (max-width: 960px) { .models-grid--3 { grid-template-columns: 1fr; } .start .wrap { grid-template-columns: 1fr; } .start-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .start-steps { grid-template-columns: 1fr; } }
.kama-form .check--brief { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 600; color: var(--orange); padding: .35rem .5rem; margin: 0 -.5rem .2rem; border-radius: 6px; background: #fff4ee; }
.kama-form .check--brief input { accent-color: var(--orange); }
.kama-form .checks.is-brief .check:not(.check--brief) { color: #9aa6b4; }
.kama-form .checks.is-brief .check:not(.check--brief) input { cursor: not-allowed; }
.kama-form .rfp-price { margin-top: .6rem; }
.kama-form .disclosure-note { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; margin: 0 0 .1rem; border-left-color: var(--orange); background: #fff4ee; }
.kama-form .stop-icon { flex: 0 0 auto; color: var(--orange); margin-top: .05rem; }

/* ---------- Patents (About page) ---------- */
.patent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.patent { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem 1.1rem; transition: border-color .15s, transform .15s, box-shadow .15s; }
.patent:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14,42,71,.08); }
.patent figure { margin: 0 0 .5rem; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid #eef1f5; }
.patent img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: contain; }
.patent .sector { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.patent h3 { font-size: 1.05rem; margin: 0; color: var(--navy); line-height: 1.3; }
.patent .meta { font-size: .85rem; color: var(--ink-soft); }
.patent .go { margin-top: auto; padding-top: .4rem; font-size: .88rem; font-weight: 600; color: var(--navy); }
.patent:hover .go { color: var(--orange); }
.patents .note { margin-top: 1.4rem; }
@media (max-width: 960px) { .patent-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .patent-grid { grid-template-columns: 1fr; } }
