/* Nebulas.co — site stylesheet
   Layout: dark "nebula" hero band, then light editorial sections on a 12-col grid;
   the brand gradient appears in one bold place (hero bloom) and as a 3px signature rule. */
:root {
  --bg: #FAFBFE;
  --surface: #FFFFFF;
  --surface-2: #EEF1FA;
  --ink: #0A1240;
  --muted: #4A5378;
  --line: #D8DDEE;
  --accent: #1160BE;
  --accent-2: #8644B4;
  --focus: #C23F97;
  /* constant dark band (hero, CTA, footer) in both themes */
  --band: #07106E;
  --band-2: #050B52;
  --band-ink: #FFFFFF;
  --band-muted: #C3CCF0;
  --band-line: rgba(255,255,255,.16);
  /* brand sweep sampled from the Nebulas backgrounds */
  --grad: linear-gradient(110deg, #060F8D 0%, #1160BE 38%, #5271C1 58%, #8644B4 80%, #C23F97 100%);
  --grad-bar: linear-gradient(90deg, #060F8D 0%, #1160BE 42%, #4E5DC4 72%, #AE3CA0 100%);

  --f-display: "Poppins", "Helvetica Neue", Arial, sans-serif; /* matches Nebulas print collateral */
  --f-body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s-xs: .8125rem; --s-sm: .9375rem; --s-md: 1.0625rem; --s-lg: 1.3125rem;
  --s-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --s-2xl: clamp(2.2rem, 1.4rem + 3vw, 3.75rem);
  --wrap: 1180px;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060A33; --surface: #0B1145; --surface-2: #111853; --ink: #EEF1FF;
    --muted: #AEB6DA; --line: #232C6E; --accent: #8FB4FF; --accent-2: #D9A2F0; --focus: #F4D5DE;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060A33; --surface: #0B1145; --surface-2: #111853; --ink: #EEF1FF;
  --muted: #AEB6DA; --line: #232C6E; --accent: #8FB4FF; --accent-2: #D9A2F0; --focus: #F4D5DE;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--s-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--band); background-image: var(--grad-bar); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; font-weight: 700; }
h1 { font-size: var(--s-2xl); letter-spacing: -.03em; }
h2 { font-size: var(--s-xl); letter-spacing: -.02em; }
h3 { font-size: var(--s-lg); }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--f-mono); font-size: var(--s-xs); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.lede { font-size: var(--s-lg); color: var(--muted); max-width: 60ch; line-height: 1.55; }
.stack { display: grid; gap: 1rem; }
.measure { max-width: 65ch; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--band); background-image: var(--grad-bar); color: var(--band-ink);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--band-ink); text-decoration: none; }
.brand .logo { height: 30px; width: auto; }
.brand .logo-lg { height: 36px; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--band-muted); text-decoration: none; font-size: var(--s-sm); font-weight: 500;
  padding: .5rem .8rem; border-radius: 6px; transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--band-ink); background: rgba(255,255,255,.12); }
.nav-links .btn { margin-left: .5rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--band-line); color: var(--band-ink);
  border-radius: 8px; padding: .5rem .7rem; font: 500 var(--s-sm) var(--f-body); cursor: pointer;
}
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--band); border-bottom: 1px solid var(--band-line);
    padding: .75rem max(20px, env(safe-area-inset-right, 0px)) 1.25rem max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .5rem; font-size: var(--s-md); }
  .nav-links .btn { margin: .5rem 0 0; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; font: 600 var(--s-sm) var(--f-body);
  padding: .8rem 1.25rem; border-radius: 8px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #F2F2FF; color: #0B0F33; }
.btn-primary:hover { background: #FFFFFF; color: #0B0F33; }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { color: var(--bg); background: var(--accent); }
.btn-ghost { border-color: var(--band-line); color: var(--band-ink); }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); color: var(--band-ink); }
.nav-links a.btn-primary { color: #0B0F33; background: #F2F2FF; }
.nav-links a.btn-primary:hover { background: #fff; color: #0B0F33; }
.arrow::after { content: "→"; transition: transform .15s; }
a:hover .arrow::after, .arrow:hover::after { transform: translateX(3px); }

/* ---------- hero (the one bold place) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--band-ink); isolation: isolate;
  background: var(--band) url("../img/hero-bg.jpg") center / cover no-repeat;
}
.hero::before { /* keeps the headline side deep blue for contrast */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6,15,141,.78) 0%, rgba(6,15,141,.45) 48%, rgba(6,15,141,0) 78%);
}
@media (max-width: 900px) {
  .hero { background-image: url("../img/hero-bg-sm.jpg"); background-position: 30% center; }
  .hero::before { background: linear-gradient(180deg, rgba(6,15,141,.7), rgba(6,15,141,.55)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #CFE0FF, #F0B8E4 55%, #F7DDE4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: var(--band-muted); margin-top: 1.25rem; }
.hero .eyebrow { color: #D6E2FF; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.page-hero { padding-block: clamp(3rem, 6vw, 5rem); }
.hero.hero-sub { background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.hero.hero-sub::before {
  background: url("../img/hero-bg.jpg") 70% 40% / cover no-repeat;
  clip-path: polygon(58% 0, 84% 0, 100% 52%, 100% 100%, 88% 100%);
}
.hero-sub .eyebrow { color: var(--accent); }
.hero-sub .lede { color: var(--muted); max-width: 52ch; }
.hero-sub .page-hero > * { max-width: min(100%, 640px); }
@media (max-width: 900px) {
  .hero.hero-sub { background-image: none; }
  .hero.hero-sub::before { background: url("../img/hero-bg-sm.jpg") 70% 40% / cover no-repeat; clip-path: polygon(80% 0, 94% 0, 100% 14%, 100% 30%); }
}
.page-hero h1 { max-width: 20ch; margin-top: .75rem; }

/* operating panel: what we run, mapped to the rule it supports */
.panel {
  background: rgba(7,16,110,.55); border: 1px solid rgba(255,255,255,.22); border-radius: 14px;
  padding: 1.25rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: var(--s-sm); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--band-line); }
.panel-head span { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--band-muted); letter-spacing: .08em; text-transform: uppercase; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li { display: grid; grid-template-columns: 6.5rem minmax(0,1fr); gap: .25rem 1rem; padding: .85rem 0; border-bottom: 1px dashed var(--band-line); }
.panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.panel .k { font-family: var(--f-mono); font-size: var(--s-xs); text-transform: uppercase; letter-spacing: .08em; color: #CFE0FF; padding-top: .15rem; }
.panel .v { color: var(--band-ink); min-width: 0; }
.panel .r { grid-column: 2; font-family: var(--f-mono); font-size: .75rem; color: #F7DDE4; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0,1fr); } }

/* ---------- sections ---------- */
section.block { padding-block: clamp(3.5rem, 7vw, 6rem); }
section.alt { background: var(--surface-2); }
.section-head { display: grid; gap: .9rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 720px; }
.section-head p { color: var(--muted); }

/* framework strip */
.frameworks { border-bottom: 1px solid var(--line); background: var(--surface); }
.frameworks .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-block: 1.1rem; }
.frameworks .label { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.frameworks ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; list-style: none; padding: 0; margin: 0; }
.frameworks li { font-family: var(--f-display); font-weight: 600; font-size: var(--s-sm); color: var(--ink); }

/* pillars: six practices, 3 x 2, in priority order */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--surface); padding: 1.75rem 1.5rem; display: grid; gap: .7rem; align-content: start; }
.pillar .tag { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--accent-2); letter-spacing: .08em; text-transform: uppercase; }
.pillar p { color: var(--muted); font-size: var(--s-sm); }
.pillar a.more { font-weight: 600; font-size: var(--s-sm); text-decoration: none; margin-top: .25rem; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .pillars { grid-template-columns: minmax(0,1fr); } }

/* process (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.5rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; gap: .6rem; align-content: start; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.steps li::before { content: "0" counter(step); font-family: var(--f-mono); font-size: var(--s-xs); color: var(--accent); letter-spacing: .1em; }
.steps p { color: var(--muted); font-size: var(--s-sm); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0,1fr); } }

/* split layout */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0,1fr); } }

/* industry list */
.industries { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.industry { background: var(--surface); padding: 1.5rem; display: grid; gap: .5rem; align-content: start; }
.industry p { color: var(--muted); font-size: var(--s-sm); }
.industry .regs { font-family: var(--f-mono); font-size: .75rem; color: var(--accent); }
@media (max-width: 600px) { .industries { grid-template-columns: minmax(0,1fr); } }

/* service detail */
.service { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-of-type { border-top: 0; }
.service-intro { display: grid; gap: 1rem; align-content: start; }
.service-intro p { color: var(--muted); }
.checks { display: grid; align-content: start; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem 2rem; list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; align-content: start; gap: .3rem; padding-left: 1.4rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .55rem; height: .55rem; border-radius: 2px; background: var(--grad); }
.checks strong { font-family: var(--f-display); font-weight: 600; }
.checks span { color: var(--muted); font-size: var(--s-sm); }
@media (max-width: 860px) { .service { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 560px) { .checks { grid-template-columns: minmax(0,1fr); } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: var(--s-xs); font-weight: 500; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); }

/* callout (advocate model) */
.callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.callout p { color: var(--muted); margin-top: .6rem; max-width: 62ch; }
@media (max-width: 760px) { .callout { grid-template-columns: minmax(0,1fr); } }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 2rem 1.5rem; }
.person { display: grid; gap: .75rem; align-content: start; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--f-display); font-weight: 700; color: var(--accent); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-photo { width: 96px; height: 96px; position: relative; }
.avatar-photo img { position: absolute; inset: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.person .role { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.person p { color: var(--muted); font-size: var(--s-sm); }

/* resources */
.res-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.res-list li { border-bottom: 1px solid var(--line); }
.res-list a { display: grid; grid-template-columns: 4.5rem minmax(0,1fr) auto; gap: 1rem; align-items: baseline; padding: 1.1rem 0; text-decoration: none; color: var(--ink); }
.res-list a:hover h3 { color: var(--accent); }
.res-list .kind { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.res-list h3 { font-size: var(--s-md); font-weight: 600; transition: color .15s; }
.res-list .meta { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); }
.res-list p { color: var(--muted); font-size: var(--s-sm); margin-top: .25rem; }
@media (max-width: 560px) { .res-list a { grid-template-columns: minmax(0,1fr); gap: .25rem; } }

.news { display: grid; gap: .75rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.news time { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); }
.news p { color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0,1fr); } }
.facts { display: grid; gap: 1.5rem; margin-top: 2rem; }
.facts dt { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.facts dd { margin: .3rem 0 0; font-size: var(--s-md); }
form.contact { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
form.contact .full { grid-column: 1 / -1; }
form.contact label { display: grid; gap: .4rem; font-size: var(--s-sm); font-weight: 600; }
form.contact input, form.contact select, form.contact textarea {
  font: 400 var(--s-md) var(--f-body); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem; width: 100%;
}
form.contact textarea { min-height: 140px; resize: vertical; }
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form-note { font-size: var(--s-xs); color: var(--muted); }
.form-status { grid-column: 1 / -1; font-size: var(--s-sm); padding: .8rem 1rem; border-radius: 8px; background: var(--surface-2); }
@media (max-width: 560px) { form.contact { grid-template-columns: minmax(0,1fr); } }

/* CTA band + footer */
.cta { color: var(--band-ink); position: relative; overflow: hidden; isolation: isolate;
  background: var(--band) url("../img/hero-bg.jpg") center 75% / cover no-repeat; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,15,141,.8), rgba(6,15,141,.35)); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta p { color: var(--band-muted); margin-top: .5rem; }
.site-footer { background: var(--band-2); color: var(--band-muted); font-size: var(--s-sm); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 3rem 2rem; }
.footer-grid h4 { font-family: var(--f-mono); font-size: var(--s-xs); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--band-ink); margin-bottom: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-grid a { color: var(--band-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--band-ink); }
.footer-grid address { font-style: normal; line-height: 1.7; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--band-line); padding-block: 1.25rem 1.75rem; font-size: var(--s-xs); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0,1fr); } }

/* article */
.article { max-width: 68ch; display: grid; gap: 1.25rem; }
.article h2 { font-size: var(--s-lg); margin-top: 1rem; }
.article p { color: var(--muted); }

/* five-step timeline (Claude deployment) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1rem; position: relative; counter-reset: t; }
.timeline::before { content: ""; position: absolute; left: 10%; right: 10%; top: 22px; height: 3px; background: var(--grad); border-radius: 3px; }
.timeline li { counter-increment: t; display: grid; justify-items: center; text-align: center; gap: .6rem; position: relative; }
.timeline li::before { content: counter(t); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1.05rem var(--f-display); color: #fff; background: var(--dot, #060F8D); box-shadow: 0 0 0 4px var(--bg); }
.timeline li:nth-child(2) { --dot: #3A4FC0; } .timeline li:nth-child(3) { --dot: #6A4CC0; } .timeline li:nth-child(4) { --dot: #8644B4; } .timeline li:nth-child(5) { --dot: #C23F97; }
.timeline strong { font-family: var(--f-display); font-weight: 600; font-size: var(--s-sm); line-height: 1.3; }
.timeline span { color: var(--muted); font-size: var(--s-xs); }
@media (max-width: 760px) {
  .timeline { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  .timeline::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 3px; height: auto; background: linear-gradient(180deg, #060F8D, #8644B4, #C23F97); }
  .timeline li { grid-template-columns: 44px minmax(0,1fr); justify-items: start; text-align: left; column-gap: 1rem; row-gap: .15rem; }
  .timeline li::before { grid-row: span 2; }
}

/* stat */
.stat { display: grid; gap: .35rem; align-content: start; padding-left: 1.25rem; border-left: 3px solid var(--accent-2); }
.stat b { font: 700 clamp(2.4rem, 1.8rem + 2vw, 3.4rem)/1 var(--f-display); letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: var(--s-sm); max-width: 30ch; }

/* hero with illustration (Claude page) */
.hero-art { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem; align-items: center; }
.hero-art img { width: 100%; max-width: 440px; justify-self: end; }
@media (max-width: 860px) { .hero-art { grid-template-columns: minmax(0,1fr); } .hero-art img { max-width: 300px; justify-self: start; } }

/* feature band linking to Claude page */
.feature { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 14px; color: var(--band-ink); isolation: isolate; position: relative; overflow: hidden;
  background: var(--band) url("../img/hero-bg.jpg") center 60% / cover no-repeat; }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,15,141,.85), rgba(6,15,141,.3)); }
.feature .eyebrow { color: #F4D5DE; }
.feature p { color: var(--band-muted); margin-top: .6rem; max-width: 60ch; }
@media (max-width: 760px) { .feature { grid-template-columns: minmax(0,1fr); } }

/* small inline call-to-action (industries) */
.mini-cta { display: grid; gap: .3rem; margin-top: .5rem; padding: 1rem 1.1rem; border-left: 3px solid var(--accent-2); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: var(--s-sm); }
.mini-cta span { color: var(--muted); }
.mini-cta a { font-weight: 600; text-decoration: none; }
.industry .ind-link { font-size: var(--s-sm); font-weight: 600; text-decoration: none; margin-top: .25rem; }

/* latest news (home) */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.news-grid .news { align-content: start; }
@media (max-width: 900px) { .news-grid { grid-template-columns: minmax(0,1fr); } }

/* ---------- RIA onboarding intake (claude/) ---------- */
.intake { display: grid; gap: 1.5rem; max-width: 980px; margin-inline: auto; }
.intake-wrap { padding-top: clamp(2rem, 4vw, 3rem); }
.stepper ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .5rem; }
.stepper button { width: 100%; display: flex; align-items: center; gap: .55rem; background: none; border: 0; padding: .4rem 0; cursor: pointer; font: 500 var(--s-xs) var(--f-body); color: var(--muted); text-align: left; }
.stepper button:disabled { cursor: default; opacity: .55; }
.stepper .num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem var(--f-display); border: 2px solid var(--line); color: var(--muted); background: var(--surface); }
.stepper button.done .num { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper button[aria-current="step"] { color: var(--ink); font-weight: 600; }
.stepper button[aria-current="step"] .num { border-color: var(--accent-2); color: var(--accent-2); background: var(--surface); }
@media (max-width: 760px) { .stepper .txt { display: none; } .stepper button { justify-content: center; } }
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--grad); transition: width .3s ease; }
@media (prefers-reduced-motion: reduce) { .progress span { transition: none; } }
.draft-note { font-size: var(--s-xs); color: var(--muted); margin: -.5rem 0 0; }

.step { display: grid; gap: 1.5rem; padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.step-head { display: grid; gap: .5rem; }
.step-head h2:focus { outline: none; }
.step-head p:last-child { color: var(--muted); max-width: 62ch; }
.group { border: 0; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 1rem; min-width: 0; }
.group legend { float: left; width: 100%; padding: 0; margin-bottom: .25rem; font: 600 var(--s-md) var(--f-display); }
.group .hint { color: var(--muted); font-size: var(--s-sm); margin-top: -.5rem; clear: both; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem 1.25rem; clear: both; }
.grid2 .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .grid2 { grid-template-columns: minmax(0,1fr); } }
.intake label { display: grid; gap: .4rem; font-size: var(--s-sm); font-weight: 600; min-width: 0; }
.intake .lbl { display: block; font-size: var(--s-sm); font-weight: 600; margin-bottom: .5rem; }
.intake .req { color: var(--focus); font-weight: 600; }
.intake input:not([type="checkbox"]):not([type="radio"]), .intake select, .intake textarea {
  font: 400 var(--s-md) var(--f-body); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: .7rem .8rem; width: 100%; min-width: 0;
}
.intake textarea { min-height: 110px; resize: vertical; }
.intake input:focus, .intake select:focus, .intake textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .6rem; clear: both; }
.opts-inline { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.intake label.opt { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-weight: 400; cursor: pointer; transition: border-color .15s, background .15s; }
.intake label.opt:hover { border-color: var(--accent); }
.intake label.opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.intake label.opt input { margin-top: .2rem; accent-color: var(--accent); flex: none; width: 1rem; height: 1rem; }
.intake label.opt span { display: grid; gap: .15rem; min-width: 0; }
.intake label.opt strong { font-weight: 600; font-size: var(--s-sm); }
.intake label.opt small { color: var(--muted); font-size: var(--s-xs); line-height: 1.45; }
.intake label.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
.intake label.check input { margin-top: .25rem; accent-color: var(--accent); flex: none; width: 1rem; height: 1rem; }

.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.step-count { font-family: var(--f-mono); font-size: var(--s-xs); color: var(--muted); }
.btn-quiet { background: none; border-color: var(--line); color: var(--ink); }
.btn-quiet:hover { border-color: var(--accent); color: var(--ink); }

.summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.summary section { padding: 1rem 1.1rem; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.summary h3 { font-size: var(--s-sm); margin-bottom: .6rem; }
.summary dl { margin: 0; display: grid; gap: .5rem; }
.summary dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.summary dd { margin: 0; font-size: var(--s-sm); overflow-wrap: anywhere; }
.summary .muted { color: var(--muted); }
@media (max-width: 860px) { .summary { grid-template-columns: minmax(0,1fr); } }
.done { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: .75rem; }
.done:focus { outline: none; }

/* light / dark toggle (choice stored per visitor; default follows the system setting) */
.nav-right { display: flex; align-items: center; gap: .5rem; }
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--band-line); background: rgba(255,255,255,.06); color: var(--band-ink); cursor: pointer; transition: background .15s; }
.theme-toggle:hover { background: rgba(255,255,255,.16); }
.theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* article bullet list */
.article-list { margin: 0; padding-left: 1.2rem; color: var(--muted); display: grid; gap: .4rem; }

/* photo gallery + lightbox */
.gallery { margin-top: 2.5rem; display: grid; gap: 1rem; }
.gallery-title { font-size: var(--s-lg); display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.gallery-title span { font: 400 var(--s-xs) var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .75rem; }
.gallery-grid a { display: block; border-radius: 10px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; max-width: 100%; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gallery-grid img { transition: none; } .gallery-grid a:hover img { transform: none; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(4, 7, 40, .92); }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: .75rem; padding: 3.5rem max(16px, 4vw) 1.25rem; pointer-events: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; pointer-events: auto; }
.lightbox figcaption { color: #E8EBFF; font-size: var(--s-sm); text-align: center; }
.lightbox .lb-count { font-family: var(--f-mono); font-size: var(--s-xs); color: #AEB6DA; margin-left: .5rem; }
.lb-btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: max(12px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(12px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lb-close { right: max(12px, env(safe-area-inset-right, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); }
