/* BigAI — site styles
   Palette: ink navy, cool paper, BigAI orange (#FE904D) and BigAI blue (#506FFE) from the logo.
   Type: Bricolage Grotesque (display), Source Sans 3 (text). */

:root {
  --ink: #16225C;
  --ink-2: #2F48D4;
  --brand-blue: #506FFE;
  --brand-orange: #FE904D;
  --ink-3: #0F1842;
  --paper: #F4F6FB;
  --white: #FFFFFF;
  --saffron: #FE904D; /* accent = BigAI orange */
  --saffron-2: #FFA66B;
  --health: #FF6B8E;
  --agri: #45C486;
  --assure: #7C95FF;
  --health-ink: #B0244E;
  --agri-ink: #1C7A4B;
  --assure-ink: #2F48D4;
  --text: #1A1F36;
  --muted: #535C78;
  --line: #D6DCEA;
  --ok: #17703F;
  --ok-bg: #E8F5EC;
  --err: #B3261E;
  --err-bg: #FCEDEC;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--ink-2); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-size: .92em; background: var(--paper); padding: .1em .35em; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--saffron); color: var(--ink); padding: 10px 14px; z-index: 50; font-weight: 700; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-saffron { background: var(--saffron); color: var(--ink); }
.btn-saffron:hover { background: var(--saffron-2); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { border-color: #E9B8B4; color: var(--err); background: var(--white); }
.btn-danger:hover { border-color: var(--err); color: var(--err); }
.btn-small { min-height: 38px; padding: .45em 1em; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.text-link { font-weight: 700; color: var(--ink); text-decoration-color: var(--saffron); text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { display: block; height: 42px; width: auto; }
.site-footer .logo img { height: 46px; }
.admin .logo img { height: 34px; }
/* Menu with dropdowns */
.site-nav { display: flex; align-items: center; gap: 6px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.menu-item { position: relative; display: flex; align-items: center; }
.menu-home { display: none; }
.menu-link { color: var(--text); text-decoration: none; font-weight: 600; padding: 10px 10px; border-radius: 8px; white-space: nowrap; }
.menu-link:hover { background: var(--paper); color: var(--ink); }
.menu-link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--saffron); border-radius: 0; }
.sub-toggle { width: 26px; height: 32px; margin-left: -6px; border: 0; background: transparent; cursor: pointer; border-radius: 6px; color: var(--muted); display: grid; place-items: center; }
.sub-toggle::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.sub-toggle[aria-expanded="true"]::before { transform: rotate(225deg) translateY(-2px); }
.sub-toggle:hover { color: var(--ink); background: var(--paper); }
.sub {
  display: none; position: absolute; top: calc(100% + 6px); left: -8px; min-width: 260px; z-index: 30;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px;
  box-shadow: 0 18px 40px rgba(22,34,92,.14);
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.sub ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.sub a:hover { background: var(--paper); color: var(--ink); }
.sub .sub-all { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--ink-2); font-size: .95rem; }
.sub-product { border-left: 4px solid var(--saffron); border-radius: 4px 8px 8px 4px !important; }
.sub-product strong { display: block; color: var(--ink); }
.sub-product span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.sub-health { border-left-color: var(--health); }
.sub-agri { border-left-color: var(--agri); }
#sub-prod { min-width: 320px; }
@media (min-width: 1181px) {
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: block; }
}
.nav-cta { margin-left: 8px; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
    border: 2px solid var(--line); background: var(--white); color: var(--ink); font: 700 1rem var(--body); cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(22,34,92,.08); max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu-home { display: flex; }
  .menu-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu-link { flex: 1; padding: 14px 4px; border-radius: 0; }
  .menu-link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--saffron); padding-left: 14px; }
  .sub-toggle { width: 44px; height: 44px; margin: 0; }
  .sub { position: static; display: none; flex-basis: 100%; box-shadow: none; border: 0; padding: 0 0 10px 10px; min-width: 0; }
  .has-sub.open > .sub { display: block; }
  #sub-prod { min-width: 0; }
  .nav-cta { margin: 16px 0 0; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--ink); color: #E6E9F5; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.hero-media, .phero-media, .band-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .phero-media img, .band-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,24,66,.96) 0%, rgba(15,24,66,.86) 45%, rgba(15,24,66,.55) 100%); }
.hero h1 { color: var(--white); max-width: 16ch; }
.page-home .hero h1 { max-width: 19ch; font-size: clamp(2.5rem, 6.2vw, 5rem); }
.hero .lead { color: #D3D8EC; }
.hero-copy { max-width: 760px; }
.route-caption { color: var(--saffron); font-weight: 700; margin-bottom: 18px; }

/* ---------- Page hero (inner pages) ---------- */
.phero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #DCE1F2; padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); min-height: clamp(340px, 46vw, 520px); display: flex; align-items: flex-end; }
.phero-short { min-height: clamp(260px, 32vw, 380px); }
.phero-case { min-height: clamp(380px, 48vw, 560px); }
.phero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,24,66,.35) 0%, rgba(15,24,66,.72) 50%, rgba(15,24,66,.94) 100%); }
.phero-inner { width: 100%; }
.phero h1 { color: var(--white); max-width: 22ch; font-size: clamp(2.2rem, 5.2vw, 4rem); text-wrap: balance; }
.phero-case h1 { max-width: 28ch; font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
.phero .lead { color: #DCE1F2; max-width: 62ch; }
.phero .actions { margin-top: 1.4rem; }
.phero-badge { display: inline-block; font-weight: 700; color: var(--ink); background: var(--saffron); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.badge-health { background: var(--health); }
.badge-agri { background: var(--agri); }
.phero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.phero-chip { font-weight: 600; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); padding: 3px 12px; border-radius: 999px; font-size: .95rem; }
.phero-health { box-shadow: inset 0 -6px 0 var(--health); }
.phero-agri { box-shadow: inset 0 -6px 0 var(--agri); }
.phero-assure { box-shadow: inset 0 -6px 0 var(--assure); }

.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .95rem; }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.crumbs a { color: inherit; opacity: .85; text-decoration: none; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs [aria-current] { opacity: .75; }
.page-head .crumbs { color: var(--muted); }

/* ---------- Route map (signature element) ---------- */
.route { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; --dot: 22px; --track: 6px; }
.stop { position: relative; padding: 0 0 26px 44px; }
.stop::before { /* track segment to next stop */
  content: ""; position: absolute; left: calc(var(--dot) / 2 - var(--track) / 2); top: 6px; bottom: -6px;
  width: var(--track); background: var(--saffron); border-radius: 3px;
}
.stop-dest::before { display: none; }
.stop-dot {
  position: absolute; left: 0; top: 2px; width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--white); border: 5px solid var(--saffron); z-index: 1;
}
.stop-dest .stop-dot { background: var(--saffron); box-shadow: 0 0 0 5px rgba(254,144,77,.3); }
.stop-month { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); }
.stop-title { display: block; font: 700 1.2rem/1.25 var(--display); color: var(--ink); }
.stop-text { display: block; color: var(--muted); margin-top: 4px; max-width: 40ch; }
.hero .stop-month { color: #AEB6D6; }
.hero .stop-title { color: var(--white); }
.hero .stop-dot { background: var(--ink); }
.hero .stop-dest .stop-dot { background: var(--saffron); }

@media (min-width: 940px) {
  .route:not(.route-v) { grid-template-columns: repeat(7, 1fr); }
  .route:not(.route-v) .stop { padding: 40px 14px 0 0; }
  .route:not(.route-v) .stop::before { left: 0; right: 0; top: calc(var(--dot) / 2 - var(--track) / 2); bottom: auto; width: auto; height: var(--track); }
  .route:not(.route-v) .stop-dot { top: 0; }
  .route:not(.route-v) .stop-title { font-size: 1.12rem; }
  .route:not(.route-v):not(.route-compact) .stop { padding-right: 22px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tint { background: var(--paper); }
/* two white sections in a row share one gap */
.section:not(.section-tint):not(.section-ink) + .section:not(.section-tint):not(.section-ink) { padding-top: 0; }
.section-title { margin-bottom: .6em; }
.page-head { background: var(--paper); padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 20ch; }
.page-head-plain { background: var(--white); border-bottom: 0; }
.sub { font-size: 1.1rem; margin-top: 1.5rem; }

.split { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split-form { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

.paths { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 860px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { padding: clamp(28px, 4vw, 48px); background: var(--white); }
.path-learn { background: var(--paper); border-top: 1px solid var(--line); }
@media (min-width: 860px) { .path-learn { border-top: 0; border-left: 1px solid var(--line); } }
.path p { color: var(--muted); max-width: 52ch; }

.ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 3px solid var(--saffron); border-bottom: 3px solid var(--saffron); transform: rotate(-45deg);
}

.included { margin: 0; display: grid; gap: 0; }
@media (min-width: 640px) { .included { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.included div { padding: 18px 0; border-top: 1px solid var(--line); }
.included dt { font: 700 1.1rem/1.3 var(--display); color: var(--ink); margin-bottom: 4px; }
.included dd { margin: 0; color: var(--muted); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; color: var(--ink); background: var(--white); }
.chips-large li { font: 700 1.1rem var(--display); padding: 12px 20px; }

.quotes { display: grid; gap: 28px; }
@media (min-width: 860px) { .quotes { grid-template-columns: 1fr 1fr; gap: 48px; } }
.quote { margin: 0; padding-left: 24px; border-left: 4px solid var(--saffron); }
.quote blockquote { margin: 0; }
.quote p { font-size: 1.15rem; line-height: 1.55; color: var(--text); }
.quote figcaption { font-weight: 700; color: var(--ink); }

.band { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #D3D8EC; padding: clamp(56px, 8vw, 104px) 0; }
.band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,24,66,.95) 0%, rgba(15,24,66,.85) 55%, rgba(15,24,66,.6) 100%); }
.band h2 { color: var(--white); }
.band-row h2, .band-row p { max-width: 640px; }
.band-row p { font-size: 1.15rem; }

.newsletter { background: var(--paper); border-top: 1px solid var(--line); padding: 44px 0; }
.newsletter-row { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .newsletter-row { grid-template-columns: 1fr 1fr; gap: 48px; } }
.newsletter h2 { font-size: 1.5rem; margin-bottom: .3em; }
.newsletter p { color: var(--muted); margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1 1 220px; }

/* Services */
.services-list { display: grid; gap: 0; }
.service { display: grid; gap: 8px 48px; padding: 36px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .service { grid-template-columns: 4fr 5fr 3fr; } .service h2 { font-size: 1.6rem; } }
.service p { color: var(--muted); margin: 0; }
.service .ticks { margin: 0; font-size: .97rem; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 28px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding-top: 20px; border-top: 4px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font: 800 2.4rem/1 var(--display); color: var(--saffron); margin-bottom: 12px; }
.steps p { color: var(--muted); }

/* About */
.prose-split { display: grid; gap: 48px; }
@media (min-width: 900px) { .prose-split { grid-template-columns: 7fr 4fr; gap: 72px; } }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.values { background: var(--paper); padding: 28px; border-radius: var(--radius); align-self: start; }
.values h2 { font-size: 1.4rem; }
.values dl { margin: 0; }
.values div { padding: 14px 0; border-top: 1px solid var(--line); }
.values dt { font-weight: 700; color: var(--ink); }
.values dd { margin: 0; color: var(--muted); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font: 700 1.15rem/1.35 var(--display); color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.6rem; color: var(--ink-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }


/* ---------- Product lines (home hero signature) ---------- */
.hero-lines { margin-top: clamp(44px, 6vw, 72px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.lines-caption { color: #AEB6D6; font-weight: 600; margin-bottom: 22px; }
.lines { display: grid; gap: 26px; }
.line { --c: var(--saffron); display: grid; gap: 10px; }
.line-health { --c: var(--health); }
.line-agri { --c: var(--agri); }
.line-assure { --c: var(--assure); }
.line-name {
  justify-self: start; font: 800 1.2rem/1 var(--display); color: var(--ink); background: var(--c);
  padding: 8px 14px; border-radius: 999px; text-decoration: none; letter-spacing: -0.01em;
}
.line-name:hover { color: var(--ink); filter: brightness(1.08); }
.line-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.line-track::before {
  content: ""; position: absolute; left: 9px; right: calc(25% - 11px); top: 8px; height: 5px; background: var(--c); border-radius: 3px;
}
.line-stop { position: relative; padding: 28px 8px 0 0; color: #DCE1F2; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.line-dot { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 5px solid var(--c); }
.line-end { color: var(--white); font: 700 1.05rem/1.2 var(--display); }
.line-end .line-dot { background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 30%, transparent); }
@media (min-width: 900px) {
  .line { grid-template-columns: 170px 1fr; align-items: start; gap: 24px; }
  .line-name { margin-top: -6px; }
  .line-stop { font-size: 1.02rem; }
  .line-end { font-size: 1.15rem; }
}

/* ---------- Home & listing components ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 1.4rem; }
.section-head .section-title { margin: 0; }
.section-ink { background: var(--ink); color: #D3D8EC; }
.section-ink h2, .section-ink h3 { color: var(--white); }

.product-row { display: grid; gap: 20px; }
@media (min-width: 900px) { .product-row { grid-template-columns: repeat(3, 1fr); } }
.product-card { --c: var(--saffron); --ci: var(--assure-ink); border-top: 6px solid var(--c); padding: 22px 4px 0 0; }
.product-health { --c: var(--health); --ci: var(--health-ink); }
.product-agri { --c: var(--agri); --ci: var(--agri-ink); }
.product-assure { --c: var(--assure); --ci: var(--assure-ink); }
.product-card h3 { font-size: 1.7rem; margin-bottom: 2px; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 3px; }
.product-for { color: var(--ci); font-weight: 700; margin-bottom: .6em; }
.product-card > p:not(.product-for) { color: var(--muted); }

.tech-grid { margin: 0; display: grid; gap: 0 32px; }
@media (min-width: 640px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } .tech-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.tech-grid div { padding: 18px 0 22px; border-top: 1px solid var(--line); }
.tech-grid dt { font: 700 1.15rem/1.25 var(--display); color: var(--ink); margin-bottom: 6px; }
.tech-grid dt a { color: inherit; text-decoration: none; }
.tech-grid dt a:hover { text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 2px; }
.tech-grid dd { margin: 0; color: var(--muted); }

.industry-list { list-style: none; margin: 0; padding: 0; }
.industry-list li { border-top: 1px solid var(--line); }
.industry-list li:last-child { border-bottom: 1px solid var(--line); }
.industry-list a { display: grid; gap: 2px; padding: 16px 0; text-decoration: none; }
@media (min-width: 700px) { .industry-list a { grid-template-columns: 15rem 1fr; gap: 24px; align-items: baseline; } }
.industry-name { font: 700 1.3rem/1.2 var(--display); color: var(--ink); }
.industry-sol { color: var(--muted); }
.industry-list a:hover .industry-name { text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 2px; }

.research-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; }
@media (min-width: 640px) { .research-mini { grid-template-columns: 1fr 1fr; } }
.research-mini li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.16); }
.research-mini h3 { font-size: 1.1rem; margin-bottom: 4px; }
.research-mini p { color: #B9C0DC; margin: 0; }

.intern-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.intern-strip h2 { font-size: 1.5rem; margin-bottom: .2em; }
.intern-strip p { margin: 0; }
.intern-strip .actions { margin: 0; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.6rem; }
.jump a { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: .95rem; }
.jump a:hover { border-color: var(--ink); }

.detail-list { display: grid; }
.detail { display: grid; gap: 12px 56px; padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.detail:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .detail { grid-template-columns: 7fr 5fr; } }
.detail h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.detail-main > p { max-width: 62ch; }
.detail .problem { color: var(--muted); font-size: 1.1rem; }
.detail-side h3 { font-size: 1rem; color: var(--muted); font-family: var(--body); font-weight: 700; margin-bottom: 10px; letter-spacing: 0; }

.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.tags-label { color: var(--muted); font-size: .92rem; margin-right: 4px; }
.tag { border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: .92rem; color: var(--ink); text-decoration: none; background: var(--white); }
.tag:hover { border-color: var(--ink); color: var(--ink); }
.tag-health { border-color: var(--health); }
.tag-agri { border-color: var(--agri); }
.tag-assure { border-color: var(--assure); }

.product-list { display: grid; gap: clamp(40px, 6vw, 72px); }
.product { --c: var(--saffron); --ci: var(--assure-ink); scroll-margin-top: 90px; }
.product.product-health { --c: var(--health); --ci: var(--health-ink); }
.product.product-agri { --c: var(--agri); --ci: var(--agri-ink); }
.product-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; border-bottom: 6px solid var(--c); padding-bottom: 12px; margin-bottom: 24px; }
.product-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.product-head .product-for { margin: 0; font-size: 1.1rem; }
.product-body { display: grid; gap: 28px 56px; }
@media (min-width: 900px) { .product-body { grid-template-columns: 7fr 5fr; } }
.product-body h3 { font-size: 1.15rem; }
.product-summary { font: 700 1.3rem/1.35 var(--display); color: var(--ink); }
.product-meta { margin: 0; }
.product-meta dt { color: var(--muted); font-size: .92rem; }
.product-meta dd { margin: 0 0 6px; font-weight: 600; }
.note { margin-top: 16px; padding: 10px 14px; background: var(--paper); border-radius: 8px; font-size: .95rem; color: var(--muted); }

.pubs { margin: 1.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.pubs li { padding: 16px 0; border-top: 1px solid var(--line); }
.pub-topic { font-weight: 700; color: var(--ink); margin: 0 0 4px; font-size: 1.08rem; max-width: 80ch; }
.pub-topic a { color: var(--ink); }
.pub-meta { color: var(--muted); margin: 0; }
.pub-meta cite { font-style: italic; }
.patents { list-style: none; margin: 0; padding: 0; }
.patents li { padding: 16px 0; border-top: 1px solid var(--line); }
.patents h3 { font-size: 1.15rem; margin-bottom: 4px; }
.patents p { color: var(--muted); margin: 0; }

.people { display: grid; gap: 24px; }
@media (min-width: 900px) { .people-founders { grid-template-columns: 1fr 1fr; } .people-advisors { grid-template-columns: repeat(3, 1fr); } }
.person { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.person-lead { border-top: 6px solid var(--saffron); }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font: 800 1.35rem/1 var(--display); }
.person h3 { margin: 4px 0 2px; font-size: 1.3rem; }
.person-role { color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.person .ticks { margin-bottom: 12px; }
.person p:last-child { margin-bottom: 0; }
.people-advisors .person { grid-template-columns: 52px 1fr; }
.people-advisors .avatar { width: 52px; height: 52px; font-size: 1.1rem; background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }

.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.clients li { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; place-items: center; text-align: center; min-height: 110px; gap: 6px; }
.clients img { max-height: 56px; width: auto; }
.client-name { font: 700 1.1rem/1.2 var(--display); color: var(--ink); }
.client-sector { color: var(--muted); font-size: .9rem; }

.contact-cols { display: grid; gap: 0 32px; }
@media (min-width: 760px) { .contact-cols { grid-template-columns: repeat(4, 1fr); } }
.small-link { font-weight: 400; font-size: .95rem; }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 18px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }

/* ---------- v3: photo cards, detail pages, case studies ---------- */
.section-tight { padding-block: clamp(32px, 4vw, 48px) 0; }
.section-tight-top { padding-top: clamp(24px, 3vw, 36px); }
.section-line { border-top: 1px solid var(--line); padding-block: 40px; }
.section-title-sm { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.lead-text { font-size: 1.15rem; line-height: 1.6; color: var(--text); }
.narrow-text { max-width: 62ch; }
.more { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Proof strip */
.proof { background: var(--ink-3); color: #C9CFE6; border-top: 1px solid rgba(255,255,255,.08); }
.proof-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.proof-row p { margin: 0; padding: 22px 20px 22px 0; border-right: 1px solid rgba(255,255,255,.1); }
.proof-row p + p { padding-left: 20px; }
.proof-row p:last-child { border-right: 0; }
.proof strong { display: block; font: 800 1.6rem/1.15 var(--display); color: var(--white); letter-spacing: -0.01em; }
@media (max-width: 640px) { .proof-row p { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding-left: 0 !important; } .proof-row p:last-child { border-bottom: 0; } }

/* Shared photo frame */
.framed { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.framed img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product cards (home) */
.pcards { display: grid; gap: 24px; }
@media (min-width: 900px) { .pcards { grid-template-columns: repeat(3, 1fr); } }
.pcard { --c: var(--assure); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.pcard-health { --c: var(--health); }
.pcard-agri { --c: var(--agri); }
.pcard > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.pcard-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); border-bottom: 6px solid var(--c); }
.pcard-media img, .tcard-media img, .ccard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pcard:hover img, .tcard:hover img, .ccard:hover img { transform: scale(1.035); }
.pcard-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard-body h3 { font-size: 1.8rem; margin-bottom: 4px; }
.pcard-body > p:not(.product-for) { color: var(--muted); }
.pcard-body .ticks { flex: 1; }
.pcard .product-for { color: var(--ci, var(--ink-2)); margin-bottom: 2px; }
.pcard-health .product-for { color: var(--health-ink); }
.pcard-agri .product-for { color: var(--agri-ink); }
.pcard-assure .product-for { color: var(--assure-ink); }

/* Industry mosaic (home) */
.icards { display: grid; gap: 16px; }
@media (min-width: 700px) { .icards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .icards { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; } .icard-wide { grid-column: span 2; grid-row: span 2; } }
.icard { position: relative; display: block; min-height: 240px; border-radius: 14px; overflow: hidden; background: var(--ink-2); isolation: isolate; text-decoration: none; }
.icard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.icard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,24,66,0) 30%, rgba(15,24,66,.9) 100%); }
.icard:hover img { transform: scale(1.04); }
.icard-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; display: grid; gap: 4px; }
.icard-name { font: 700 1.45rem/1.15 var(--display); color: var(--white); }
.icard-wide .icard-name { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.icard-short { color: #DCE1F2; max-width: 44ch; }

/* Topic cards (technologies index) */
.tcards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tcard a { display: block; color: inherit; text-decoration: none; }
.tcard-media { aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--ink-2); }
.tcard-body { padding-top: 14px; }
.tcard-body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.tcard a:hover h3 { text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.tcard-body p { color: var(--muted); margin: 0; }

/* Case study cards */
.ccards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.ccard { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.ccard-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ccard-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.ccard-body { padding: 18px 20px 22px; }
.ccard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 10px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.ccard-body h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 8px; }
.ccard-link:hover h3 { text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ccard-body p:last-child { color: var(--muted); margin: 0; font-size: .98rem; }
.kind { display: inline-block; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.kind-research { background: #E3E9FB; color: var(--ink-2); }
.kind-blueprint { background: #FFE9DA; color: #8A3D0A; }
.kind-client { background: var(--ok-bg); color: var(--ok); }
.kind-light.kind-research { background: #E3E9FB; }
.kind-light.kind-blueprint { background: var(--saffron); color: var(--ink); }

/* Industry and product rows (index pages) */
.irows { display: grid; gap: clamp(48px, 7vw, 88px); }
.irow { display: grid; gap: 24px 56px; align-items: center; }
@media (min-width: 900px) { .irow { grid-template-columns: 1fr 1fr; } .irow-flip .irow-media { order: 2; } }
.irow-media { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--ink-2); }
.irow-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.irow-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.irow-body h2 a { color: var(--ink); text-decoration: none; }
.irow-body h2 a:hover { text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 3px; }
.irow-body .tags { gap: 12px; }
.prow-health .irow-media { box-shadow: 0 8px 0 var(--health); }
.prow-agri .irow-media { box-shadow: 0 8px 0 var(--agri); }
.prow-assure .irow-media { box-shadow: 0 8px 0 var(--assure); }

/* Capability grids */
.cap-grid { margin: 0; display: grid; gap: 0 40px; }
@media (min-width: 760px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cap-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.cap-grid div { padding: 20px 0 24px; border-top: 2px solid var(--ink); }
.section-tint .cap-grid div { border-top-color: var(--line); }
.cap-grid dt { font: 700 1.2rem/1.3 var(--display); color: var(--ink); margin-bottom: 6px; }
.cap-grid dd { margin: 0; color: var(--muted); max-width: 52ch; }
.section-tint .tags, .section .cap-grid + .tags { margin-top: 24px; }

.split-detail { align-items: start; }
@media (min-width: 900px) { .split-detail { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }
.facts { background: var(--paper); border-radius: 14px; padding: 22px 24px; display: grid; gap: 18px; align-self: start; }
.facts h3 { font: 700 .95rem/1.3 var(--body); color: var(--muted); margin: 0 0 6px; letter-spacing: 0; }
.facts p, .facts ul { margin: 0; }
.facts .tags { margin: 0; }
.chips-sm li { padding: 4px 11px; font-size: .9rem; }
.btn-block { width: 100%; }

.usecases { list-style: none; margin: 0; padding: 0; }
.usecases li { border-top: 1px solid var(--line); }
.usecases li:last-child { border-bottom: 1px solid var(--line); }
.usecases a { display: grid; gap: 2px 24px; padding: 16px 0; text-decoration: none; color: var(--muted); }
@media (min-width: 640px) { .usecases a { grid-template-columns: 13rem 1fr; } }
.uc-ind { font: 700 1.15rem/1.3 var(--display); color: var(--ink); }
.usecases a:hover .uc-ind { text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 2px; }
.tags-lg .tag { font-size: 1rem; padding: 7px 16px; }
.tag-plain { border-color: var(--line); color: var(--muted); }

.spotlight { display: grid; gap: 28px 56px; align-items: center; }
@media (min-width: 900px) { .spotlight { grid-template-columns: 5fr 6fr; } }
.spotlight h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 4px; }
.spotlight-health .framed { box-shadow: 0 8px 0 var(--health); }
.spotlight-agri .framed { box-shadow: 0 8px 0 var(--agri); }
.spotlight-assure .framed { box-shadow: 0 8px 0 var(--assure); }
.spotlight-health .product-for { color: var(--health-ink); }
.spotlight-agri .product-for { color: var(--agri-ink); }
.spotlight-assure .product-for { color: var(--assure-ink); }

.steps-health li { border-top-color: var(--health); }
.steps-agri li { border-top-color: var(--agri); }
.steps-assure li { border-top-color: var(--assure); }
.steps + .tags { margin-top: 28px; }

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font: 700 1.3rem/1.2 var(--display); color: var(--ink); border-bottom: 4px solid var(--line); }
.compare .th-health { border-bottom-color: var(--health); }
.compare .th-agri { border-bottom-color: var(--agri); }
.compare .th-assure { border-bottom-color: var(--assure); }
.compare tbody th { color: var(--muted); font-weight: 700; width: 14%; }
.compare ul { margin: 0; padding-left: 18px; }

/* Case study detail */
.case-layout { display: grid; gap: 40px 64px; align-items: start; }
@media (min-width: 960px) { .case-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); } .case-facts { position: sticky; top: 96px; } }
.case-main h2 { font-size: 1.6rem; margin-top: 1.6em; }
.case-main h2:first-child, .case-main .note + h2 { margin-top: 0; }
.approach { padding-left: 0; list-style: none; counter-reset: ap; display: grid; gap: 12px; }
.approach li { counter-increment: ap; position: relative; padding-left: 44px; }
.approach li::before { content: counter(ap); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font: 700 .95rem/1 var(--display); }
.outcomes { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.outcomes li { padding: 14px 16px; background: var(--paper); border-left: 4px solid var(--saffron); border-radius: 4px 10px 10px 4px; }
.citation { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.citation h3 { font-size: 1rem; margin-bottom: 4px; }
.citation p { margin: 0; color: var(--muted); }
.note-blueprint { background: #FFF1E8; border-left: 4px solid var(--saffron); color: #6B2E07; margin-bottom: 28px; }

/* Filters */
.filters-box { border: 1px solid var(--line); border-radius: 14px; padding: 8px 20px; background: var(--white); }
.filter-row { display: grid; gap: 8px 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.filter-row:first-child { border-top: 0; }
@media (min-width: 760px) { .filter-row { grid-template-columns: 8rem 1fr; align-items: baseline; } }
.filter-label { font: 700 1rem/1.4 var(--body); color: var(--muted); margin: 0; letter-spacing: 0; }
.filter-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.filter-chips a:hover { border-color: var(--ink); }
.filter-chips a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.kinds-note { margin: 14px 0 0; color: var(--muted); font-size: .95rem; max-width: 90ch; }
.empty { border: 1.5px dashed var(--line); border-radius: 14px; padding: 32px; text-align: center; color: var(--muted); }

/* Research highlight with photo */
.split-photo .split { align-items: center; }
@media (min-width: 900px) { .split-photo .split { grid-template-columns: 1fr 1fr; } }
.split-photo .research-mini { margin: 18px 0 24px; }
.split-photo .research-mini h3 { margin: 0; font-size: 1.05rem; }

.credits { list-style: none; padding: 0; margin: 0 0 1.4em; }
.credits li { display: grid; gap: 2px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .credits li { grid-template-columns: 1fr 16rem; } }
.footer-head-2 { margin-top: 18px; }
.footer-contact { margin-top: 12px !important; }
.avatar-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* ---------- Forms ---------- */
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.form legend { font: 700 1.25rem var(--display); color: var(--ink); margin-bottom: 14px; padding: 0; }
.grid-2 { display: grid; gap: 0 20px; align-items: end; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.optional { font-weight: 400; color: var(--muted); }
.hint { margin: -2px 0 8px; color: var(--muted); font-size: .95rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #B9C1D6; border-radius: 8px;
  font: inherit; color: var(--text); background: var(--white);
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--saffron); outline-offset: 1px; border-color: var(--ink); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }
.error { color: var(--err); font-weight: 600; margin: 6px 0 0; font-size: .95rem; }
.field-check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.field-check label { font-weight: 400; margin: 0; }
.field-check .error { grid-column: 2; }

.alert { padding: 16px 20px; border-radius: 8px; margin: 0 0 24px; border-left: 5px solid; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-ok { background: var(--ok-bg); border-color: var(--ok); color: #0F4A29; }
.alert-ok h2 { color: #0F4A29; font-size: 1.5rem; }
.alert-error { background: var(--err-bg); border-color: var(--err); color: #6B1712; }
.alert-error a { color: #6B1712; }

.aside { background: var(--paper); border-radius: var(--radius); padding: 28px; align-self: start; }
.aside h2 { font-size: 1.35rem; }
.next-steps { padding-left: 20px; margin: 0 0 28px; display: grid; gap: 8px; }
.contact-list { margin: 0 0 20px; }
.contact-list div { padding: 12px 0; border-top: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: .92rem; }
.contact-list dd { margin: 0; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-3); color: #B9C0DC; padding: 56px 0 24px; }
.site-footer a { color: #E2E6F5; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { max-width: 36ch; margin-top: 14px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-head { font: 700 1rem var(--display); color: var(--white); margin-bottom: 6px; letter-spacing: 0; }
.footer-grid p { margin: 0 0 6px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .92rem; }

/* ---------- Admin ---------- */
.admin { background: var(--paper); }
.admin-tag { font: 600 .85rem var(--body); background: var(--paper); color: var(--muted); padding: 3px 9px; border-radius: 999px; margin-left: 4px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.admin-nav a { text-decoration: none; color: var(--text); font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.admin-nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.admin-main { padding-top: 32px; padding-bottom: 64px; }
.admin h1 { font-size: 2rem; }
.admin h2 { font-size: 1.3rem; }
.login { max-width: 420px; margin: 40px auto; background: var(--white); padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); }
.stats { display: grid; gap: 16px; margin: 0 0 32px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stats dt { color: var(--muted); font-weight: 600; }
.stats dd { margin: 4px 0; font: 800 2rem/1.1 var(--display); color: var(--ink); }
.stats dd a { color: inherit; text-decoration: none; }
.stats span { color: var(--muted); font-size: .92rem; }
.activity { list-style: none; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.activity li { padding: 10px 16px; border-top: 1px solid var(--line); }
.activity li:first-child { border-top: 0; }
.activity time { color: var(--muted); font-size: .92rem; margin-right: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; align-items: center; }
.filters input { flex: 1 1 220px; min-height: 40px; }
.filters select { width: auto; min-height: 40px; }
.record { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; }
.record header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.record h2 { margin: 0; font-size: 1.25rem; }
.record time { color: var(--muted); font-size: .92rem; margin-left: auto; }
.record-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 20px; margin: 0 0 10px; }
.record-grid dt { color: var(--muted); font-size: .88rem; }
.record-grid dd { margin: 0; overflow-wrap: anywhere; }
.record-msg { white-space: pre-wrap; background: var(--paper); padding: 12px 14px; border-radius: 8px; }
.record footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.inline-form select { width: auto; min-height: 38px; }
.pill { font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.pill-new { background: #FFE9DA; color: #8A3D0A; }
.pill-contacted { background: #E3E9FB; color: var(--ink-2); }
.pill-enrolled { background: var(--ok-bg); color: var(--ok); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.panel .actions { margin-top: 10px; }
.table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
@media (max-width: 640px) { .table { display: block; overflow-x: auto; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .newsletter, .band, .actions { display: none; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lead { color: #000; }
}

@media (max-width: 640px) {
  .filters-box { padding: 4px 0 4px 14px; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 14px 6px 0; scrollbar-width: thin; }
  .filter-chips a { white-space: nowrap; }
}
