@font-face{font-family:'Google Sans';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/google-sans-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Google Sans';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/google-sans-latin-700-normal.woff2') format('woff2');}
/* self-hosted fonts - no third-party request, no visitor IP sent abroad */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/space-grotesk-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'Onest';font-style:normal;font-weight:300;font-display:swap;src:url('fonts/onest-latin-300-normal.woff2') format('woff2');}
@font-face{font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/onest-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/onest-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/onest-latin-600-normal.woff2') format('woff2');}
@font-face{font-family:'Onest';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/onest-latin-700-normal.woff2') format('woff2');}

/* ==========================================================================
   Hexovance - global stylesheet
   Palette is fixed by brand: ash base, var(--btn) blue, #818cf8 coral,
   #00ff7f green reserved EXCLUSIVELY for interactive buttons.
   ========================================================================== */

:root {
  /* brand triad */
  --blue: #6366f1;          /* deeper indigo accent on dark */
  --coral: #818cf8;
  --green: #41ab5d;            /* wordmark X only. never decorative. */
  --btn: #4f46e5;              /* violet blue - all buttons/fills */

  /* dark (default) */
  --bg: #0c0d10;
  --bg-2: #121319;
  --panel: #16171e;
  --line: #3a3878;
  --ink: #eef0ff;
  --ink-2: #ccd0f5;
  --ink-3: #9ea4d8;
  --glow: rgba(99, 102, 241, 0.28);

  /* type - unified single family */
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, sans-serif;
  --mono: "Montserrat", ui-monospace, monospace;

  /* scale */
  --step--1: clamp(0.9rem, 0.86rem + 0.2vw, 1.0rem);
  --step-0: clamp(1.12rem, 1.05rem + 0.3vw, 1.24rem);
  --step-1: clamp(1.4rem, 1.25rem + 0.6vw, 1.7rem);
  --step-2: clamp(1.85rem, 1.5rem + 1.3vw, 2.6rem);
  --step-3: clamp(2.4rem, 1.8rem + 2.6vw, 4rem);
  --step-4: clamp(3rem, 1.9rem + 5vw, 6rem);

  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --radius: 14px;
}

html[data-theme="day"] {
  --bg: #f6f6f8;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --line: #dcdcf4;
  --ink: #1e1b4b;
  --ink-2: #312e81;
  --ink-3: #4f46e5;
  --glow: rgba(79, 70, 229, 0.14);
  --blue: #4f46e5;
  --coral: #6366f1;
  --green: #4f46e5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--btn); color: #ffffff; padding: .7rem 1.1rem; font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ------------------------------------------------------------------ type */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0 0 .6rem;
  text-wrap: balance;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 1rem; max-width: 68ch; }
.lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.45; max-width: 60ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px; background: var(--blue); flex: none;
}

.tm { font-size: .5em; vertical-align: super; letter-spacing: 0; color: var(--ink-3); }

/* ---------------------------------------------------------------- knockout
   "evolution" / "elevation" render as outlined knockout text.
   Explicit per-mode declarations - required, do not fold together. */
.ko-word {
  /* outline (border) style, no fill. Stroke is proportional with a small floor,
     so the counters in e / a / o stay open at phone sizes instead of clogging. */
  font-weight: 700 !important;
  font-size: 1.24em !important;
  font-family: var(--display) !important;
  letter-spacing: .055em;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background-image: none !important;
  -webkit-text-stroke: max(0.7px, .034em) #fafbff !important;
  paint-order: stroke fill;
  display: inline-block;
}
html[data-theme="day"] .ko-word {
  -webkit-text-stroke: max(0.7px, .034em) #0a0b10 !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* -------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 60;
  -webkit-backdrop-filter: blur(14px);   /* Safari / iOS */
  backdrop-filter: blur(14px);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar__in {
  display: flex; align-items: center; gap: 1.15rem;
  height: 66px;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; min-height: 44px; gap: .6rem; font-family: var(--display); font-weight: 700; letter-spacing: -.03em; font-size: 1.1rem; flex: 0 0 auto; white-space: nowrap; }
.brand svg { width: 22px; height: 22px; }
.wm { white-space: nowrap; }

.nav { display: flex; gap: 1.15rem; margin-left: auto; flex: 0 1 auto; }
.nav a {
  font-size: var(--step--1); color: var(--ink-2); padding: .35rem 0; white-space: nowrap;
  border-bottom: 1px solid transparent; transition: color .18s, border-color .18s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }

.topbar__tools { display: flex; align-items: center; gap: .6rem; margin-left: 1rem; }

.themebtn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer;
}
.themebtn:hover { color: var(--ink); border-color: var(--blue); }

.menubtn { display: none; width: 36px; height: 36px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 9px; cursor: pointer; }

/* ------------------------------------------------------------- buttons
   Green is used here and nowhere else. */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .78rem 1.35rem;
  border-radius: 999px;
  font-weight: 600; font-size: var(--step--1); letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* All buttons share the same outlined style (the "cost of chaos" look) */
.btn--primary, .btn--ghost {
  background: var(--btn); color: #ffffff; border-color: var(--btn);
}
.btn--primary:hover, .btn--ghost:hover {
  filter: brightness(1.14); color: #ffffff;
}

.btn--sm { padding: .55rem 1rem; }

/* -------------------------------------------------------------- sections */
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section__head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }

/* glow-orb box treatment (chapter-7 treatment, applied sitewide) */
.orbox {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .22s ease, transform .22s ease;
}
a.orbox.card { display: flex; flex-direction: column; height: 100%; }
a.orbox.card > p { flex: 1 0 auto; }
.orbox::before {
  content: "";
  position: absolute; z-index: -1;
  width: 220px; height: 220px; border-radius: 50%;
  top: -110px; right: -80px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  opacity: 0; transition: opacity .35s ease;
}
.orbox:hover { border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); transform: translateY(-2px); }
.orbox:hover::before { opacity: 1; }

.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }

.card__idx { font-family: var(--mono); font-size: var(--step--1); color: var(--blue); margin-bottom: .8rem; }
.card h3, .card h2 { font-size: var(--step-1); margin-bottom: .45rem; }
.card p { color: var(--ink-2); font-size: var(--step--1); margin: 0; }
.card__more { margin-top: auto; padding-top: 1rem; align-self: flex-start; text-align: left; font-family: var(--mono); font-weight: 700; font-size: var(--step--1); color: #41ab5d; }
.orbox:hover .card__more { color: #41ab5d; filter: brightness(1.15); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: center; overflow: hidden; }
#sphere {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.hero__in { position: relative; z-index: 2; }
.hero h1 { font-size: var(--step-4); max-width: 16ch; }
.hero .lede { margin-top: 1.4rem; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero__scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .22em; color: var(--ink-2); text-transform: uppercase; }

/* engine line work - monochrome */
.engine { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: min(46vw, 560px); opacity: .18; z-index: 1; pointer-events: none; }
.engine path, .engine circle, .engine line { stroke: var(--ink-3); fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }

/* --------------------------------------------------------------- hexagon */
.hexmark { transition: transform .25s ease; transform-style: preserve-3d; }

/* ------------------------------------------------------------ phase strip */
.phases { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.phase { padding: 1.3rem 1rem; border-right: 1px solid var(--line); background: var(--panel); position: relative; }
.phase:last-child { border-right: 0; }
.phase__k { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: var(--blue); line-height: 1; }
.phase__n { font-family: var(--display); font-weight: 600; margin: .5rem 0 .35rem; font-size: var(--step-0); }
.phase__d { font-size: .8rem; color: var(--ink-2); margin: 0; line-height: 1.5; }
.phase::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.phase:hover::after { transform: scaleX(1); }
@media (max-width: 860px) { .phases { grid-template-columns: repeat(2, 1fr); } .phase { border-bottom: 1px solid var(--line); } }

/* ---------------------------------------------------- framework prev/next */
.fwstrip { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.6rem; margin-top: 3rem; }
.fwstrip a { display: block; max-width: 45%; }
.fwstrip span { display: block; font-family: var(--mono); font-size: var(--step--1); color: var(--ink-3); margin-bottom: .3rem; }
.fwstrip strong { font-family: var(--display); font-weight: 600; }
.fwstrip a:hover strong { color: var(--blue); }
.fwstrip .next { text-align: right; margin-left: auto; }

/* -------------------------------------------------------------- services */
.svc-group { margin-bottom: 2.6rem; }
.svc-group__h { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin-bottom: 1rem; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.05rem .4rem; transition: background .18s; }
.svc-list a:hover { background: var(--panel); }
.svc-list .n { font-family: var(--mono); font-size: var(--step--1); color: var(--ink-3); }
.svc-list .t { font-family: var(--display); font-weight: 600; }
.svc-list .d { color: var(--ink-2); font-size: var(--step--1); grid-column: 2; }
.svc-list a:hover .t { color: var(--blue); }
.svc-list .arrow { color: var(--ink-3); font-family: var(--mono); }

.hidden-svc { display: none; }
.hidden-svc.is-open { display: block; }

/* --------------------------------------------------------------- radar */
.radar-wrap { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 2.4rem; align-items: center; }
@media (max-width: 820px) { .radar-wrap { grid-template-columns: 1fr; } }
.radar .axis { stroke: var(--line); stroke-width: 1; }
.radar .ring { stroke: var(--line); fill: none; stroke-dasharray: 2 4; }
.radar .shape { fill: color-mix(in srgb, var(--blue) 22%, transparent); stroke: var(--blue); stroke-width: 2; transition: d .4s ease; }
.radar .vtx { fill: var(--bg); stroke: var(--coral); stroke-width: 2; cursor: grab; }
.radar .vtx:hover, .radar .vtx:focus { fill: var(--coral); }
.radar .lbl { font-family: var(--mono); font-size: 9px; fill: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; }

/* ------------------------------------------------------------ assessment */
.q { border-bottom: 1px solid var(--line); padding: 1.15rem 0; display: grid; grid-template-columns: 1fr auto; gap: 1.4rem; align-items: center; }
.q__t { font-size: var(--step-0); margin: 0; }
.q__dim { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: .3rem; }
.scale { display: flex; gap: .3rem; }
.scale button {
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-3);
  font-family: var(--mono); font-size: .8rem;
}
.scale button:hover { border-color: var(--blue); color: var(--ink); }
.scale button[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }
@media (max-width: 620px) { .q { grid-template-columns: 1fr; } }

.result { display: none; }
.result.is-open { display: block; }

/* ------------------------------------------------------------- world map */
.worldmap { width: 100%; height: auto; }
.worldmap .land { fill: #d7dbe8; stroke: #9aa1b8; stroke-width: .6; }  /* bright land in dark mode */
html[data-theme="day"] .worldmap .land { fill: #23252e; stroke: #3a3d4a; }  /* dark land in day mode */
.worldmap .hq { fill: #fd5e53; }
.worldmap .node { fill: #fd5e53; }
.worldmap .arc { stroke: var(--blue); fill: none; stroke-width: 1; opacity: .45; }
.worldmap .pulse { fill: #fd5e53; }
/* world map labels - were unstyled (defaulted to black, invisible in dark mode) */
.worldmap .lbl {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  fill: var(--ink);
  letter-spacing: .04em;
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 3px;
  stroke-linejoin: round;
}

/* -------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.is-out-top { opacity: 0; transform: translateY(-14px); }

/* ---- 3D scroll choreography for grid cards ----
   enter from bottom-right, settle, then fly out to the top-left as you scroll up past them */
.grid { perspective: 1200px; }
.grid > .reveal { will-change: transform, opacity; backface-visibility: hidden; }
.grid > .reveal:not(.is-in):not(.is-out-top) { opacity: 0; transform: translate3d(46px, 54px, -90px) rotateX(9deg) rotateY(-12deg); }
.grid > .reveal.is-in { opacity: 1; transform: none; }
.grid > .reveal.is-out-top { opacity: 0; transform: translate3d(-46px, -54px, -90px) rotateX(-9deg) rotateY(12deg); }
.grid > .reveal:nth-child(2) { transition-delay: .05s; }
.grid > .reveal:nth-child(3) { transition-delay: .10s; }
.grid > .reveal:nth-child(4) { transition-delay: .15s; }
.grid > .reveal:nth-child(5) { transition-delay: .20s; }
.grid > .reveal:nth-child(6) { transition-delay: .25s; }
.grid > .reveal:nth-child(n+7) { transition-delay: .30s; }

/* 3D tilt + lift on hover once a card has settled */
.grid > .card.is-in { transition: opacity .6s ease, transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s ease; }
.grid > .card.is-in:hover { transform: perspective(900px) rotateX(5deg) translateY(-5px) scale(1.012); }

/* -------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 3rem 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__grid > div { min-width: 0; }
.footer__grid a { overflow-wrap: anywhere; }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer h4 { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 700; margin-bottom: .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .45rem; }
.footer a:not(.btn) { color: var(--ink-2); font-size: var(--step--1); }
.footer a:not(.btn):hover { color: var(--blue); }
.footer .btn { color: #ffffff; }
.footer .btn:hover { color: #ffffff; }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-3); }
.footer__made { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.footer__made .flag {
  background: linear-gradient(90deg, #ff9933 0%, #ff9933 28%, #ffffff 45%, #ffffff 55%, #138808 72%, #138808 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  paint-order: stroke;
  -webkit-text-stroke: .4px var(--ink-3);
}
html[data-theme="day"] .footer__made .flag {
  background: linear-gradient(90deg, #ff9933 0%, #ff9933 28%, #d8d8d8 45%, #d8d8d8 55%, #138808 72%, #138808 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
}
@media (max-width: 620px) { .footer__base { flex-direction: column; align-items: flex-start; } }

/* ------------------------------------------------------------- contact */
.field { display: block; margin-bottom: 1.1rem; }
.field span { display: block; font-family: var(--mono); font-size: var(--step--1); color: var(--ink-3); margin-bottom: .4rem; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .95rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: var(--step-0);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: none; }

/* --------------------------------------------------------------- mobile */
@media (max-width: 1000px) {
  .nav {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.6rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .menubtn { display: grid; place-items: center; margin-left: auto; }
  .topbar__tools { margin-left: .4rem; }
  .engine { display: none; }
  .fwstrip a { max-width: 48%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .grid > .reveal, .grid > .reveal:not(.is-in), .grid > .reveal.is-out-top { opacity: 1 !important; transform: none !important; }
  .grid > .card.is-in:hover { transform: none !important; }
}

/* ------------------------------------------------------------ report */
.report { display: none; }
.report.is-open { display: block; }
.report__doc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.6rem); }
.report__doc h3 { margin-top: 1.8rem; }
.report__doc h3:first-child { margin-top: 0; }
.report__band { color: var(--coral); }
.report__meta { font-family: var(--mono); font-size: var(--step--1); color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2rem; }
.report__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.dimtable { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.dimtable td, .dimtable th { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.dimtable td:last-child, .dimtable th:last-child { text-align: right; font-family: var(--mono); }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: .3rem; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }

/* --------------------------------------------------------- calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc__out { position: sticky; top: 86px; }
.calc__total { font-family: var(--display); font-size: var(--step-3); font-weight: 700; letter-spacing: -.02em; }
.calc__total small { font-size: .38em; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.calc__row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.calc__row b { font-family: var(--mono); white-space: nowrap; }
.calc__note { font-size: .78rem; color: var(--ink-3); margin-top: 1rem; line-height: 1.55; }
.range-field { margin-bottom: 1.4rem; }
.range-field label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: var(--step--1); color: var(--ink-2); margin-bottom: .45rem; }
.range-field output { color: var(--blue); font-weight: 700; }
.range-field input[type=range] {
  width: 100%; accent-color: var(--blue); height: 28px; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.range-field input[type=range]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px; background: var(--line);
}
.range-field input[type=range]::-moz-range-track {
  height: 6px; border-radius: 3px; background: var(--line);
}
.range-field input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -9px;
  border-radius: 50%; background: var(--blue); border: 2px solid var(--bg); cursor: grab;
}
.range-field input[type=range]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: var(--blue);
  border: 2px solid var(--bg); cursor: grab;
}
.range-field input[type=range]:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ------------------------------------------------------------- badges */
.cohort {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 1px solid color-mix(in srgb, var(--coral) 55%, var(--line));
  border-radius: 999px; padding: .45rem 1rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral);
}
.cohort::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.notecard { border-left: 2px solid var(--blue); padding-left: 1.2rem; }
.notecard .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

/* ------------------------------------------- branded report (HexAssess) */
.report__doc { background: transparent; border: none; padding: 0; }
.rep {
  --i:#14161f; --sub:#5f6470; --line:#e7e8ee; --blue:#4f46e5; --green:#41ab5d; --soft:#f5f6fa;
  background:#fff; color:var(--i); border-radius:20px;
  padding:clamp(1.6rem,4vw,3rem);
  box-shadow:0 24px 60px -30px rgba(20,22,31,.35), 0 2px 8px rgba(20,22,31,.06);
  font-family:var(--body, "Inter", system-ui, sans-serif); line-height:1.62;
}
.rep h1,.rep h2 { font-family:var(--display, "Space Grotesk", system-ui, sans-serif); color:var(--i); line-height:1.2; }
.rep p { color:#3a3f4b; }
.rep-head { display:flex; align-items:center; gap:.85rem; padding-bottom:1.15rem; border-bottom:1px solid var(--line); }
.rep-mark { width:52px; height:52px; flex:none; }
.rep-wm { font-family:var(--display); font-weight:700; font-size:1.5rem; letter-spacing:.02em; color:#4f46e5; line-height:1; }
.rep-wm span { color:#41ab5d; }
.rep-tag { font-size:.78rem; letter-spacing:.02em; color:var(--sub); margin-top:.18rem; }
.rep-title { margin:1.5rem 0 .3rem; }
.rep-title h1 { font-size:clamp(1.5rem,4vw,2rem); margin:0; }
.rep-sub { font-family:var(--mono, monospace); font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--sub); margin:.4rem 0 0; }
.rep-hero { display:flex; align-items:center; gap:1.6rem; margin:1.5rem 0; padding:1.4rem 1.6rem; border-radius:16px; background:linear-gradient(120deg,#f4f6ff,#eefaf3); border:1px solid var(--line); }
.rep-hero__score { display:flex; align-items:baseline; gap:.35rem; flex:none; }
.rep-hero__num { font-family:var(--display); font-weight:700; font-size:3.4rem; line-height:1; background:linear-gradient(120deg,#4f46e5,#41ab5d); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:#4f46e5; }
.rep-hero__den { font-family:var(--display); font-weight:600; font-size:1.05rem; color:var(--sub); }
.rep-pill { display:inline-block; font-family:var(--display); font-weight:600; font-size:.8rem; letter-spacing:.02em; color:#fff; background:linear-gradient(120deg,#4f46e5,#41ab5d); padding:.28rem .72rem; border-radius:999px; margin-bottom:.5rem; }
.rep-hero__band p { margin:0; font-size:.95rem; }
.rep-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin:1.2rem 0; }
.rep-card { border:1px solid var(--line); border-radius:16px; padding:1.2rem 1.3rem; background:#fff; }
.rep-card h2 { font-size:.76rem; letter-spacing:.14em; text-transform:uppercase; color:var(--sub); margin:0 0 .85rem; }
.rep-radar { width:100%; height:auto; display:block; }
.rep-bars { display:flex; flex-direction:column; gap:.85rem; }
.rep-bar { display:grid; grid-template-columns:132px 1fr 30px; align-items:center; gap:.55rem; }
.rep-bar__lbl { font-size:.82rem; font-weight:600; color:var(--i); display:flex; align-items:center; gap:.4rem; }
.rep-bar__lbl em { font-style:normal; font-family:var(--mono); font-size:.56rem; letter-spacing:.08em; text-transform:uppercase; color:#c0392b; border:1px solid #e7b7b0; border-radius:4px; padding:.04rem .28rem; }
.rep-bar__track { height:9px; border-radius:999px; background:#eef0f5; overflow:hidden; }
.rep-bar__track i { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,#4f46e5,#41ab5d); }
.rep-bar.is-focus .rep-bar__track i { background:linear-gradient(90deg,#e0564f,#e2925d); }
.rep-bar__val { justify-self:end; font-family:var(--display); font-weight:700; font-size:.82rem; color:var(--i); }
.rep-note { background:var(--soft); border-left:3px solid #4f46e5; border-radius:0 10px 10px 0; padding:.9rem 1.1rem; font-size:.95rem; margin:1.2rem 0; color:#3a3f4b; }
.rep-block { margin:1.3rem 0; }
.rep-block h2, .rep-block h3 { font-family:var(--display); font-size:1.1rem; margin:0 0 .5rem; color:var(--i); }
.rep-block p { margin:.5rem 0; }
.rep-cta { margin:1.4rem 0; padding:1.1rem 1.3rem; border:1px dashed #c7cbe6; border-radius:14px; background:#fafbff; font-size:.95rem; color:#3a3f4b; }
.rep-foot { margin-top:1.6rem; padding-top:1.1rem; border-top:1px solid var(--line); display:flex; flex-direction:column; align-items:center; text-align:center; gap:.35rem; font-size:.74rem; color:var(--sub); }
.rep-foot a { color:#4f46e5; text-decoration:none; }
.rep-foot__tag { font-family:var(--display); font-weight:600; color:#4f46e5; margin:.15rem 0 0; }
/* PDF capture: gradient-clipped text renders blank, so force a solid fill */
.rep.is-exporting .rep-hero__num{background:none!important;-webkit-background-clip:border-box!important;
  background-clip:border-box!important;-webkit-text-fill-color:#4f46e5!important;color:#4f46e5!important}
.rep.is-exporting{padding-bottom:2.2rem}
@media (max-width:640px) { .rep-grid { grid-template-columns:1fr; } .rep-hero { flex-direction:column; align-items:flex-start; gap:.9rem; } .rep-bar { grid-template-columns:110px 1fr 28px; } }

/* report gate: hide the report + actions until the cohort form is submitted */
.report.is-locked .report__doc,
.report.is-locked .report__actions { display:none !important; }
.report.is-locked .cohortform::before{content:"Unlock your diagnostic report";display:block;
  font-family:var(--display,system-ui,sans-serif);font-weight:700;font-size:1.15rem;
  color:var(--ink);margin:0 0 .5rem}
.report.is-locked .cohort__head::after{content:" Enter your details and accept the privacy policy to view and download your report.";color:var(--ink)}

/* hero day wash - particles need a tinted field to read against, not flat white */
html[data-theme="day"] .hero::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(65,65,246,.13), transparent 70%),
    radial-gradient(45% 45% at 78% 68%, rgba(65,171,93,.12), transparent 72%),
    linear-gradient(180deg, rgba(65,65,246,.05), rgba(255,255,255,0) 60%)}
html[data-theme="day"] .hero > .wrap{position:relative;z-index:1}
/* keep the scroll cue pinned to the bottom centre in every theme */
html .hero__scroll{position:absolute!important;left:50%;right:auto;bottom:1.6rem;
  transform:translateX(-50%);z-index:4}
html[data-theme="day"] .hero > #sphere{position:absolute;z-index:0}

/* ------------------------------------------------------- social icons */
.social{display:flex;flex-wrap:nowrap;gap:.42rem;margin:.9rem 0 0;max-width:100%}
.social__a{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;background:transparent;transition:transform .2s ease,opacity .2s ease}
.social__a:hover{transform:translateY(-2px);opacity:.85}

/* hero: vertical rail on the right edge (homepage only) */
.hero-social{position:absolute;right:clamp(.5rem,2vw,1.4rem);top:50%;transform:translateY(-50%);
  display:flex;flex-direction:column;gap:.42rem;z-index:3}
.hero-social__a{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:transparent;transition:transform .2s ease,opacity .2s ease}
.hero-social__a:hover{transform:scale(1.12);opacity:.85}
@media (max-width:860px){.hero-social{display:none}}




/* social icons in their official brand colours (unmodified) */
[data-social="linkedin"],.footer [data-social="linkedin"]{color:#0A66C2!important}
[data-social="facebook"],.footer [data-social="facebook"]{color:#1877F2!important}
[data-social="behance"],.footer [data-social="behance"]{color:#1769FF!important}
[data-social="researchgate"],.footer [data-social="researchgate"]{color:#00CCBB!important}
[data-social="xing"],.footer [data-social="xing"]{color:#0698A0!important}
[data-social="instagram"] svg,.footer [data-social="instagram"] svg{fill:url(#igGrad)!important}
/* X uses black on light, white on dark - flip it with the theme */
[data-social="x"],.footer [data-social="x"]{color:#e9ecf6!important}
html[data-theme="day"] [data-social="x"],
html[data-theme="day"] .footer [data-social="x"]{color:#0f1419!important}
[data-social="youtube"],.footer [data-social="youtube"]{color:#FF0000!important}
.entity-block{border:1px solid var(--line);border-radius:14px;padding:1.4rem 1.6rem;background:var(--panel)}
.entity{display:grid;grid-template-columns:200px 1fr;gap:.7rem 1.4rem;margin:0}
.entity dt{font-family:var(--mono);font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.entity dd{margin:0;color:var(--ink-2);font-size:var(--step--1)}
.entity dd a{color:var(--blue)}
@media (max-width:560px){.entity{grid-template-columns:1fr;gap:.15rem 0}.entity dd{margin-bottom:.7rem}}

.footer .social__a:hover{color:inherit}
.social__a svg,.hero-social__a svg{width:17px;height:17px}
@media (max-width:900px){.social{gap:.3rem}.social__a{width:29px;height:29px}.social__a svg{width:15px;height:15px}}
@media (max-width:820px){.hero-social{display:none}}

.aigal-h1{font-size:clamp(2.6rem,7vw,4.6rem);line-height:1.02;margin:.2rem 0 .6rem;
  background:linear-gradient(100deg,#ffb020,#ff7a18 32%,#e0564f 58%,#8a5cf0 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#ff9a2e}


/* header AI Galaxy pill */
.topai{position:relative;overflow:hidden;isolation:isolate;color:#fff!important;
  border:1px solid rgba(255,168,60,.5);
  box-shadow:0 6px 22px -8px rgba(255,138,30,.8)}
.topai::before{content:"";position:absolute;inset:0;z-index:-2;
  background:linear-gradient(100deg,#ffb020 0%,#ff7a18 28%,#e0564f 52%,#6a35c9 78%,#191a2b 100%);
  background-size:280% 100%;animation:aigalflow 9s ease-in-out infinite}
.topai::after{content:"";position:absolute;inset:-50% -10%;z-index:-1;opacity:.45;
  background:radial-gradient(closest-side,rgba(255,255,255,.55),transparent 70%);
  transform:translateX(-130%);animation:aigalsheen 6s ease-in-out infinite}
.topai:hover{box-shadow:0 10px 30px -8px rgba(255,138,30,1)}
.topai svg{filter:drop-shadow(0 0 5px rgba(255,225,170,.9))}
@media (max-width:1000px){.topai__t{display:none}.topai{padding-inline:.7rem}}

/* --------------------------------------------------- AI Galaxy CTA (Garuda) */
.hero-ai{display:flex;flex-direction:column;align-items:center;gap:.55rem;margin-top:2rem;position:relative;z-index:3}
.aigal{position:relative;display:inline-flex;align-items:center;gap:.7rem;
  padding:.95rem 2rem;border-radius:999px;text-decoration:none;overflow:hidden;isolation:isolate;
  font-family:var(--display);font-weight:700;font-size:1.02rem;letter-spacing:.01em;color:#fff;
  border:1px solid rgba(255,168,60,.55);
  box-shadow:0 12px 46px -14px rgba(255,138,30,.75), inset 0 0 0 1px rgba(255,255,255,.06)}
.aigal::before{content:"";position:absolute;inset:0;z-index:-2;
  background:linear-gradient(100deg,#ffb020 0%,#ff7a18 26%,#e0564f 48%,#6a35c9 74%,#141425 100%);
  background-size:280% 100%;animation:aigalflow 9s ease-in-out infinite}
.aigal::after{content:"";position:absolute;inset:-40% -10%;z-index:-1;opacity:.5;
  background:radial-gradient(closest-side,rgba(255,255,255,.5),transparent 70%);
  transform:translateX(-120%);animation:aigalsheen 5.5s ease-in-out infinite}
@keyframes aigalflow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@keyframes aigalsheen{0%{transform:translateX(-120%)}55%,100%{transform:translateX(160%)}}
.aigal:hover{transform:translateY(-2px);box-shadow:0 18px 60px -14px rgba(255,138,30,.95)}
.aigal:focus-visible{outline:2px solid #ffb020;outline-offset:3px}
.aigal__spark{display:inline-flex;filter:drop-shadow(0 0 6px rgba(255,220,150,.9))}
.aigal__go{font-size:1.05rem;opacity:.9;transition:transform .25s ease}
.aigal:hover .aigal__go{transform:translateX(4px)}
.hero-ai__sub{margin:0;font-family:var(--mono);font-size:.68rem;letter-spacing:.16em;
  text-transform:uppercase;color:var(--ink-3)}
@media (prefers-reduced-motion:reduce){.aigal::before,.aigal::after{animation:none}}
@media (max-width:560px){.aigal{padding:.8rem 1.5rem;font-size:.94rem}}

.founder-head{display:flex;align-items:flex-start;gap:2rem;margin-bottom:1.4rem}
.founder-photo{flex:0 0 auto;width:230px;height:auto;aspect-ratio:3/4;object-fit:cover;
  object-position:50% 22%;border-radius:16px;border:1px solid var(--line);display:block}
.founder-intro{min-width:0;padding-top:.2rem}
.founder-intro h2{margin:0 0 .15rem}
.founder-role{margin:0 0 1rem;font-family:var(--mono);font-size:var(--step--1);
  letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.founder-body p{max-width:72ch}
.founder-body h3{font-family:var(--display);font-size:1.05rem;margin:1.8rem 0 .7rem}
.founder-body ul{margin:0 0 .4rem;padding-left:1.1rem;color:var(--ink-2);max-width:72ch}
.founder-body li{margin-bottom:.5rem;line-height:1.6}
.founder-body a{color:var(--blue)}
.founder-note{margin-top:1.6rem;padding-top:1.1rem;border-top:1px solid var(--line);
  font-size:var(--step--1);color:var(--ink-3)}
@media (max-width:720px){.founder-head{flex-direction:column;gap:1.2rem}
  .founder-photo{width:180px}}

/* ------------------------------------------- brand film (click to load) */
.vfilm{margin:2.4rem 0 0;padding:0;max-width:960px}
.vfilm__btn{display:block;position:relative;width:100%;padding:0;border:1px solid var(--line);
  border-radius:16px;overflow:hidden;background:var(--panel);cursor:pointer;line-height:0}
.vfilm__btn:hover{border-color:var(--blue)}
.vfilm__btn:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.vfilm__poster{display:block;width:100%;height:auto;opacity:.9;transition:opacity .3s ease,transform .5s ease}
.vfilm__btn:hover .vfilm__poster{opacity:1;transform:scale(1.015)}
.vfilm__play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  display:flex;align-items:center;justify-content:center;width:84px;height:84px;border-radius:50%;
  color:#fff;background:linear-gradient(135deg,#4f46e5,#41ab5d);
  box-shadow:0 10px 40px -8px rgba(65,65,246,.7);transition:transform .25s ease}
.vfilm__btn:hover .vfilm__play{transform:translate(-50%,-50%) scale(1.08)}
.vfilm__meta{position:absolute;left:1.1rem;bottom:1rem;display:flex;flex-direction:column;gap:.15rem;
  text-align:left;line-height:1.3;text-shadow:0 2px 10px rgba(0,0,0,.65)}
.vfilm__meta strong{font-family:var(--display);font-size:1rem;color:#fff}
.vfilm__meta em{font-style:normal;font-family:var(--mono);font-size:.7rem;letter-spacing:.1em;
  text-transform:uppercase;color:#c9cee0}
.vfilm video{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:16px;background:#000}
.vfilm__cap{margin:.8rem 0 0;font-size:var(--step--1);color:var(--ink-3);line-height:1.5}
@media (max-width:560px){.vfilm__play{width:64px;height:64px}.vfilm__meta{left:.8rem;bottom:.7rem}}

/* ------------------------------------------ founding-cohort capture form */
.cohortform{display:block;box-sizing:border-box;width:100%;margin:1.8rem 0 0;padding:1.6rem;
  border:1px solid var(--line);border-radius:16px;background:var(--panel);
  font-family:var(--body,system-ui,sans-serif);text-transform:none;letter-spacing:normal}
.cohortform *{box-sizing:border-box;text-transform:none;letter-spacing:normal;max-width:100%}
.cohort__head{display:block;margin:0 0 1.2rem;font-size:.95rem;line-height:1.6;color:var(--ink-2);text-align:left}
.cohort__head strong{color:var(--ink)}
.cohort__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:0 0 1.1rem}
.cohort__field{display:block;min-width:0;margin:0}
.cohort__field>span{display:block;margin:0 0 .4rem;font-size:.8rem;font-weight:600;
  line-height:1.3;color:var(--green);white-space:normal}
.cohort__field>span em{font-style:normal;font-weight:400;color:var(--ink-3)}
.cohortform input[type=text],.cohortform input[type=email],.cohortform input[type=tel],
.cohortform input:not([type=checkbox]):not([type=hidden]){display:block;width:100%;margin:0;
  padding:.75rem .9rem;border:1px solid var(--line);border-radius:9px;
  background:var(--bg);color:var(--ink);font:inherit;font-size:.92rem;line-height:1.4}
.cohortform input::placeholder{color:var(--ink-3)}
.cohortform input:focus{outline:2px solid var(--blue);outline-offset:1px;border-color:var(--blue)}
.cohort__policy{margin:0 0 .8rem;font-size:.82rem;line-height:1.5;color:var(--ink-2)}
.cohort__policy a{color:var(--blue)}
.cohort__foot{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin:0}
.cohort__consent{flex:1 1 320px;display:flex;align-items:flex-start;gap:.55rem;margin:0;
  font-size:.82rem;line-height:1.5;color:var(--ink-2);text-align:left}
.cohort__consent input[type=checkbox]{flex:none;width:16px;height:16px;margin:.15rem 0 0}
.cohort__consent a{color:var(--blue)}
.cohortform #cohort-submit{flex:none;width:auto;margin:0;padding:.7rem 2rem;white-space:nowrap}
.cohort__msg{margin:.9rem 0 0;font-size:.85rem;line-height:1.5;color:var(--ink-2)}
.cohort__done{margin-top:1.8rem;padding:1rem 1.2rem;border:1px solid var(--green);
  border-radius:12px;color:var(--ink);font-size:.9rem;line-height:1.55}
@media (max-width:820px){.cohort__grid{grid-template-columns:1fr}
  .cohort__foot{flex-direction:column;align-items:stretch}
  .cohortform #cohort-submit{width:100%}}

/* ---------------------------------------------------------------- print */
@media print {
  /* Print ONLY the report. The .rep card is already self-coloured (dark-on-white),
     so we isolate it and let its own styles carry - no theme colour nuking. */
  body * { visibility: hidden !important; }
  #report, #report * { visibility: visible !important; }
  #report { position:absolute !important; left:0; top:0; width:100% !important; display:block !important; }
  #report .wrap { max-width:none !important; padding:0 !important; }
  .report__actions, .no-print { display:none !important; }
  html, body { background:#fff !important; }
  .rep { box-shadow:none !important; border:1px solid #e7e8ee; border-radius:0; padding:0 8px; }
  /* background-clip:text can drop out in print - force a solid, visible fill. */
  .rep-hero__num { background:none !important; -webkit-text-fill-color:#4f46e5 !important; color:#4f46e5 !important; }
  .rep-grid { grid-template-columns:1fr 1fr !important; }
  .rep-hero, .rep-card, .rep-block, .rep-cta, .rep-foot { break-inside:avoid; }
  * { -webkit-print-color-adjust:exact !important; print-color-adjust:exact !important; }
}

/* ------------------------------------------------- brand wordmark, green X */
.x { color: var(--green); }
.xw { color: inherit; }
.wm { letter-spacing: .02em; }
.wordmark-hero {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 9.8rem);
  letter-spacing: -.02em; line-height: .95; margin: 0;
  text-align: center; white-space: nowrap;
  width: 100%; display: block;
}
.hero--brand { text-align: center; }
.hero--brand .hero__in {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; text-align: center;
}
.hero--brand .wordmark-hero,
.hero--brand .hero-tagline { margin-left: auto; margin-right: auto; }

/* hero lockup: centre the mark+wordmark group and the tagline on the same axis */
.hero--brand .hero__in{margin-inline:auto}
.hero-brandrow{width:fit-content;max-width:100%;margin-inline:auto;justify-content:center}
.hero-brandrow .wordmark-hero{width:auto;text-align:center;margin:0!important}
.hero--brand .hero-tagline{width:100%;margin-inline:auto;text-align:center}
.hero-social{margin:0}
html .hero-social{position:absolute!important;right:clamp(.5rem,2vw,1.6rem);top:50%;transform:translateY(-50%);z-index:4}


/* hero fills the viewport minus the sticky 66px topbar, so the lockup sits on the
   true optical centre of the landing screen rather than 33px below it */
.hero--brand{min-height:calc(100vh - 66px);min-height:calc(100svh - 66px);
  display:grid;place-items:center;align-content:center}
.hero--brand .hero__in{display:flex;flex-direction:column;align-items:center;
  justify-content:center;width:100%;text-align:center}
@media (max-width:640px){.hero--brand{min-height:calc(100svh - 60px)}}

@media (max-height: 640px) { .hero__scroll { display: none; } }

/* cohort pill: allow clean wrapping on small screens */

/* -------------------------------------------------------- wizard mode */
[data-wizard] .q { display: none; border-bottom: none; padding: 0; grid-template-columns: 1fr; }
[data-wizard] .q.is-current { display: grid; gap: 1rem; }
[data-wizard] .q__t { font-size: var(--step-1); line-height: 1.4; margin: 0; }
[data-wizard] .q__dim { margin-bottom: .5rem; }
[data-wizard] .scale { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
[data-wizard] .scale button { width: 44px; height: 44px; font-size: .95rem; }
.scale .na { width: auto; height: 44px; padding-inline: 1rem; font-size: .74rem; letter-spacing: .04em; margin-left: .3rem; }
.remark {
  width: 100%; padding: .8rem .95rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: var(--step--1);
}
.remark:focus { border-color: var(--blue); outline: none; }
.wizcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.6rem); padding-bottom: 1.1rem; display: flex; flex-direction: column; justify-content: flex-start; }
.wiznav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .9rem; }
.wiznav .cnt { font-family: var(--mono); font-size: var(--step--1); color: var(--ink-3); letter-spacing: .1em; }
.wizbar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 1rem; }
.wizbar i { display: block; height: 100%; background: var(--blue); border-radius: 2px; transition: width .25s ease; }

/* ------------------------------------------------------------ founder */
.founder-grid { display: grid; grid-template-columns: 260px 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 760px) { .founder-grid { grid-template-columns: 1fr; } .founder-photo { max-width: 260px; } }
.founder-photo {
  aspect-ratio: 4 / 5; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden;
}
.founder-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

@media (max-width: 560px) {
  .svc-list a { grid-template-columns: 2.2rem 1fr; row-gap: .2rem; }
  .svc-list .arrow { display: none; }
  .svc-list .d { grid-column: 1 / -1; }
  .q { grid-template-columns: 1fr; }
  .scale { flex-wrap: wrap; }
}

/* ---------------------------------------------- rainbow animated headline */
.rainbow-head {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1rem, 6.2vw, 3.5rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 1.2rem;
  text-align: center;
  white-space: nowrap;
  /* soft, wide rainbow that fades between colours like a waving flag */
  background: linear-gradient(105deg,
    #818cf8 0%, #ff9e43 14%, #ffd93d 28%, #41ab5d 44%,
    #29c7d6 58%, #0044ff 72%, #7b5cff 86%, #818cf8 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: flag-wave 16s ease-in-out infinite;
}
@keyframes flag-wave {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
@media (prefers-reduced-motion: reduce) {
  .rainbow-head { animation: none; background-position: 50% 50%; }
}

/* ---------------------------------------------- radar dimension icons */
.dim-icon__bg { fill: var(--bg); stroke: var(--green); stroke-width: 1.4; }
.dim-icon__mark { fill: var(--green); }
html[data-theme="day"] .dim-icon__bg { fill: var(--bg); stroke: var(--green); }
.radar .lbl { font-weight: 700; }

/* --------------------------------------------------- reach: sphere + map */


/* --------------------------------------------- hero tagline (under wordmark) */
.hero-tagline {
  font-family: var(--display);
  font-size: clamp(1.1rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: .01em;
  margin: 1rem auto 0;
  text-align: center;
  width: 100%;
  color: var(--ink-2);
}
.hero-tagline .ko-word {
  font-size: 1.1em !important;
}

/* -------------------------------------------------- mild 3D page backdrop */
.page-backdrop {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  pointer-events: none;
  opacity: .28;
}
.page-backdrop[data-backdrop="none"] { display: none; }
/* keep content above the backdrop */
main, .footer { position: relative; z-index: 1; }
.topbar { z-index: 70; }

/* ------------------------------------------------------------- HexBot */
.btn--ai {
  background: var(--btn); color: #fff; border-color: transparent;
}
.btn--ai:hover { filter: brightness(1.14); color: #fff; }

.hexbot-fab {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--btn);
  color: #fff; border: none; cursor: pointer;
  font-size: 1.45rem; line-height: 1;
  box-shadow: 0 6px 24px -6px rgba(65,65,246,.55);
  display: grid; place-items: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.hexbot-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 30px -6px rgba(65,65,246,.7); }

.hexbot {
  position: fixed; right: 1.4rem; bottom: 5.6rem; z-index: 61;
  width: min(370px, calc(100vw - 2rem));
  transition: width .25s ease;
  max-height: min(560px, calc(100vh - 8rem));
  max-height: min(560px, calc(100dvh - 8rem));
  display: none; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.5);
  overflow: hidden;
}
.hexbot.is-open { display: flex; }
.hexbot__head {
  padding: .9rem 1.1rem; display: flex; align-items: center; gap: .6rem;
  background: var(--btn); color: #fff;
}
.hexbot__head strong { font-size: .95rem; letter-spacing: .02em; }
.hexbot__head small { opacity: .85; font-size: .72rem; display: block; }
.hexbot__close { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; padding: .2rem .4rem; }
.hexbot__msgs { padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: .7rem; flex: 1; min-height: 180px; }
.hexbot__msg { max-width: 86%; padding: .65rem .85rem; border-radius: 12px; font-size: .86rem; line-height: 1.5; }
.hexbot__msg--bot { background: var(--bg); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.hexbot__msg--user { background: var(--btn); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.hexbot__msg a { color: var(--blue); font-weight: 600; }
.hexbot__msg--bot a { text-decoration: underline; }
.hexbot__chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; }
.hexbot__chip {
  font-size: .72rem; padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer;
}
.hexbot__chip:hover { border-color: var(--blue); color: var(--blue); }
.hexbot__inp { display: flex; gap: .5rem; padding: .8rem 1rem; border-top: 1px solid var(--line); }
.hexbot__inp input {
  flex: 1; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; font-size: .86rem;
}
.hexbot__inp input:focus { border-color: var(--blue); outline: none; }
.hexbot__inp button {
  padding: .6rem .95rem; border-radius: 10px; border: none; cursor: pointer;
  background: var(--btn); color: #fff; font-weight: 700; font-size: .86rem;
}
@media (max-width: 480px) { .hexbot { right: .8rem; bottom: 5rem; } .hexbot-fab { right: .8rem; bottom: .9rem; } }

/* ---- HexBot polish (2026) ---- */
.hexbot-fab { background: linear-gradient(135deg, var(--btn) 0%, #41ab5d 100%); }
.hexbot-fab::after { content:""; position:absolute; inset:0; border-radius:50%; border:2px solid var(--btn); opacity:.55; animation: hbpulse 2.4s ease-out infinite; }
@keyframes hbpulse { 0% { transform: scale(1); opacity:.5 } 70%,100% { transform: scale(1.7); opacity:0 } }
.hexbot { border-radius: 18px; box-shadow: 0 30px 70px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(65,65,246,.12); }
.hexbot__head { background: linear-gradient(120deg, var(--btn) 0%, #2f8f4f 100%); position: relative; }
.hexbot__head::before { content:""; width:8px; height:8px; border-radius:50%; background:#7CFFB0; box-shadow:0 0 0 3px rgba(124,255,176,.25); flex:none; align-self:center; }
.hexbot__head small { letter-spacing:.02em }
.hexbot__msg--bot { background: color-mix(in srgb, var(--panel) 88%, var(--btn) 12%); }
.hexbot__msg--user { background: linear-gradient(135deg, var(--btn), #4a7bd8); }
.hexbot__chip { transition: all .18s ease; }
.hexbot__chip:hover { background: color-mix(in srgb, var(--btn) 14%, transparent); border-color: var(--btn); color: var(--ink); }
.hexbot__inp input:focus { box-shadow: 0 0 0 3px rgba(65,65,246,.16); }
.hexbot__inp button { transition: filter .15s ease; } .hexbot__inp button:hover { filter: brightness(1.12); }
.hexbot__note { margin: 0; padding: .45rem 1rem .6rem; font-size: .64rem; line-height: 1.35; color: var(--ink-3); text-align: center; opacity: .85; }

/* ------------------------------------------- very small phones (<=380px) */
@media (max-width: 380px) {
  .topbar__tools { gap: .4rem; }
  .topbar__tools .btn { padding: .45rem .7rem; font-size: .72rem; }
  .footer__made { white-space: normal; }
  .footer__base span { overflow-wrap: anywhere; max-width: 100%; }
}

/* long words in headings must never overflow small screens */
h1, h2, h3, h4 { overflow-wrap: break-word; }
@media (max-width: 480px) {
  h1, h2 { hyphens: auto; }
}

/* founder experience highlights */
.founder-hl { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .55rem; }
.founder-hl li { position: relative; padding-left: 1.3rem; font-size: var(--step--1); color: var(--ink-2); line-height: 1.55; }
.founder-hl li::before { content: "-"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* FAQ read-more */
.faq-toggle {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--blue); font: inherit; font-size: var(--step--1); font-weight: 700;
}
.faq-toggle:hover { text-decoration: underline; }

/* ------------------------------------------------ talk-to-us notice modal */
.talk-modal {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); padding: 1.2rem;
}
.talk-modal.is-open { display: flex; }
.talk-modal__card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  max-width: 420px; width: 100%; padding: 1.8rem;
  text-align: center; box-shadow: 0 24px 60px -12px rgba(0,0,0,.5);
}
.talk-modal__card h3 { margin: .6rem 0 .4rem; font-size: var(--step-1); }
.talk-modal__card p { color: var(--ink-2); font-size: var(--step--1); margin: 0 0 1.2rem; }
.talk-modal__ico {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto;
  background: var(--btn); color: #fff; display: grid; place-items: center;
}
.talk-modal__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.talk-modal__close { margin-top: .9rem; background: none; border: none; color: var(--ink-3); cursor: pointer; font: inherit; font-size: .8rem; }
.talk-modal__close:hover { color: var(--ink); }

/* ---- assessment scale: legend + N/A that never overflows the card ---- */
.scale { flex-wrap: wrap; }
.scale .na {
  width: auto !important; max-width: 100%;
  padding-inline: .9rem; white-space: nowrap;
  flex: 0 0 auto;
}
.scale-legend {
  flex-basis: 100%;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
  color: var(--ink-3); margin-top: .5rem;
}
.scale-legend b { color: var(--ink-2); }
@media (max-width: 420px) {
  .scale .na { font-size: .68rem; padding-inline: .7rem; }
  .scale-legend { font-size: .62rem; }
}

/* ---- radar rings: brighter in dark, darker in day ---- */
.radar .ring { stroke: rgba(255,255,255,.30); fill: none; }
.radar .axis { stroke: rgba(255,255,255,.20); }
html[data-theme="day"] .radar .ring { stroke: rgba(10,11,16,.30); }
html[data-theme="day"] .radar .axis { stroke: rgba(10,11,16,.20); }

/* ---- brand blue: brighter on dark, deeper on light ---- */
html[data-theme="day"] { --blue: #4f46e5; }   /* exact brand violet - AA 5.9:1 on light */
.hexbot__logo { display: inline-flex; align-items: center; }
.hexbot-fab svg { display: block; }

/* ================= services: categories + single hexagon viewer ========== */
.cats { display: grid; gap: .8rem; }
.cat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.cat__h {
  width: 100%; display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; background: none; border: none; cursor: pointer;
  color: var(--ink); font: inherit; text-align: left;
}
.cat__h:hover { background: color-mix(in srgb, var(--btn) 8%, transparent); }
.cat__n { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); }
.cat__t { font-family: var(--display); font-weight: 700; font-size: var(--step-0); flex: 1; }
.cat__i { font-size: 1.3rem; color: var(--btn); line-height: 1; transition: transform .2s ease; }
.cat.is-open .cat__i { transform: rotate(45deg); }
.cat.is-open { border-color: var(--btn); }
.cat__body { padding: 0 1.3rem 1.4rem; }
.cat__blurb { color: var(--ink-2); font-size: var(--step--1); margin: 0 0 1.2rem; }

.hexview__stage { position: relative; min-height: 300px; display: grid; place-items: center; }
.hexview__card {
  --accent: var(--btn);
  position: absolute; inset: 0; margin: auto;
  width: 290px; height: 322px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--accent);
  padding: 3px;
  display: none; text-decoration: none;
  animation: hexin .38s ease;
}
.hexview__card.is-active { display: block; }
.hexview__card:nth-child(3n+1) { --accent: var(--btn); }   /* neon blue */
.hexview__card:nth-child(3n+2) { --accent: #ff8c42; }   /* sunset orange */
.hexview__card:nth-child(3n+3) { --accent: #00e676; }   /* neon green */
.hexview__inner {
  display: grid; align-content: center; justify-items: center; gap: .4rem;
  width: 100%; height: 100%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--panel);
  padding: 2.6rem 2rem; text-align: center;
}
.hexview__card .k { font-family: var(--mono); font-size: .54rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hexview__card h3, .hexview__card h2 { font-weight: 500; font-size: .86rem; line-height: 1.25; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.hexview__card .d { font-size: .68rem; line-height: 1.4; color: var(--ink-2); max-width: 20ch; }
.hexview__card .go { font-family: var(--mono); font-size: .64rem; font-weight: 500; color: var(--accent); margin-top: .2rem; }
@keyframes hexin { from { opacity: 0; transform: scale(.9) rotate(-4deg); } to { opacity: 1; transform: none; } }

.hexview__nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .6rem; }
.hexview__nav button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 1rem; cursor: pointer;
}
.hexview__nav button:hover { border-color: var(--btn); color: var(--btn); }
.hv-cnt { font-family: var(--mono); font-size: var(--step--1); color: var(--ink-3); min-width: 6ch; text-align: center; }
@media (max-width: 480px) {
  .hexview__card { width: 232px; height: 258px; }
  .hexview__inner { padding: 2rem 1.5rem; }
  .hexview__card h3, .hexview__card h2 { font-size: .78rem; }
  .hexview__card .d { font-size: .63rem; }
  .cat__h { padding: 1rem; gap: .7rem; }
}

/* ---- exactly three across on desktop (was auto-fitting 4) ---- */
@media (min-width: 1001px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) and (min-width: 641px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3 { grid-template-columns: 1fr; } }



/* ================= D·A·S·E·C·S - 3D hexagonal node network ================= */
.hexnet { position: relative; width: 100%; max-width: 780px; margin: .5rem auto 1.2rem; }
.hexnet__c { width: 100%; height: 500px; display: block; }
.hexnet__cap {
  text-align: center; font-family: var(--mono); font-size: var(--step--1);
  color: var(--ink-3); margin: .6rem 0 0; line-height: 1.5;
}
/* the text version: hidden when the canvas is live, shown if JS is off */
.phases--fallback { display: grid; }
.hexnet-live + .phases--fallback { display: none; }
@media (max-width: 640px) { .hexnet__c { height: 340px; } }


/* ---- assessment: labelled agree/disagree scale (replaces 1-5 numbers) ---- */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; align-items: stretch; }
.scale button.lik {
  width: auto; height: auto; min-height: 62px;
  padding: .7rem .5rem; border-radius: 12px;
  font-size: .78rem; line-height: 1.25; text-align: center;
  display: flex; align-items: center; justify-content: center;
  white-space: normal;
}
.scale button.na {
  grid-column: 1 / -1;
  width: 100% !important; min-height: 44px; border-radius: 12px;
  font-size: .8rem;
}
@media (max-width: 720px) {
  .scale { grid-template-columns: 1fr; gap: .4rem; }
  .scale button.lik { min-height: 46px; font-size: .84rem; padding: .55rem .8rem; }
}


/* ---- touch tap targets: nothing interactive under 44px on phones/tablets ---- */
@media (max-width: 1000px) {
  .btn--sm { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .faq-toggle { display: inline-block; padding: .6rem 0; min-height: 44px; }
  .scale button.na { min-height: 46px; }
}

/* ============ buttons: visible blue -> green colour transition ============ */
/* A gradient, so the transition is on screen at rest - including on phones
   and tablets, which have no hover state at all. White text stays >=4.7:1
   at every point along the gradient. */
:root { --btn-a: #4f46e5; --btn-b: #17803f; }

.btn--primary, .btn--ghost, .btn--ai, button.btn, a.btn {
  background-image: linear-gradient(100deg, var(--btn-a) 0%, var(--btn-b) 100%);
  background-color: var(--btn-a);
  background-size: 100% 100%;      /* whole blue -> green span visible at rest */
  border-color: transparent;
  color: #fff;
  transition: filter .35s ease, transform .12s ease, box-shadow .2s ease;
}
/* hover / focus / press slides further into the green - a bonus on desktop,
   never the only way to see the effect */
.btn--primary:hover, .btn--primary:focus-visible,
.btn--ghost:hover,   .btn--ghost:focus-visible,
.btn--ai:hover,      .btn--ai:focus-visible,
button.btn:hover,    button.btn:focus-visible,
a.btn:hover,         a.btn:focus-visible { filter: saturate(1.25) brightness(1.12); color: #fff; }
.btn:active { transform: translateY(1px); }

/* chat bubble picks up the same blue -> green sweep */
.hexbot-fab {
  background-image: linear-gradient(135deg, var(--btn-a) 0%, var(--btn-b) 100%);
  background-color: var(--btn-a);
}

/* ---- framework prev/next pager: let long names wrap on 320px screens ---- */
.fwstrip a, .fwstrip a * {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
@media (max-width: 360px) {
  .fwstrip { gap: .6rem; }
  .fwstrip a { font-size: .82rem; line-height: 1.35; }
}

/* ---- assessment: selected option gets a green border ---- */
/* border green is theme-aware: neon reads on the dark card, deep green on white */
:root { --pick-border: #00e676; --pick-fill: #17803f; }
html[data-theme="day"] { --pick-border: #17803f; --pick-fill: #17803f; }

.scale button { border: 2px solid var(--line); transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.scale button[aria-pressed="true"] {
  background: var(--pick-fill) !important;
  border-color: var(--pick-border) !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pick-border) 26%, transparent);
}
.scale button:hover:not([aria-pressed="true"]) { border-color: var(--pick-border); }
.scale button:focus-visible { outline: 2px solid var(--pick-border); outline-offset: 2px; }

/* ---- contact form: country-code rows, required marks, inline errors ---- */
.field .req { color: var(--coral); font-weight: 700; }
.field .opt { color: var(--ink-3); font-weight: 400; font-size: .82em; }
.telrow { display: grid; grid-template-columns: minmax(0,11.5rem) 1fr; gap: .5rem; }
.telrow select {
  width: 100%; min-width: 0; padding: .7rem .6rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink);
  font: inherit; font-size: .86rem; min-height: 46px;
}
.telrow input { min-width: 0; }
.samecheck {
  display: flex; align-items: center; gap: .5rem; margin-top: .5rem;
  font-size: .8rem; color: var(--ink-2); cursor: pointer;
}
.samecheck input { width: 18px; height: 18px; accent-color: var(--btn); }
.err {
  display: none; margin-top: .35rem; font-style: normal;
  font-size: .78rem; color: var(--coral);
}
.err.show { display: block; }
.field input.invalid, .field textarea.invalid, .telrow input.invalid { border-color: var(--coral); }
.formnote { display: none; margin-top: .8rem; font-size: .8rem; color: var(--coral); }
.formnote.show { display: block; }
.formnote.ok { color: #17803f; }
@media (max-width: 520px) { .telrow { grid-template-columns: 1fr; } }

/* ---- Ask HexBot in the header: label hides on small screens, icon stays ---- */
.topbot { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 1099px) { .topbot__t { display: none; } .topbot { padding-inline: .75rem; } }
@media (max-width: 560px) { .topbot { display: none; } }   /* fab already floats on phones */

/* ---- header CTAs: always one line, always aligned ---- */
.topbar__tools { display: flex; align-items: center; gap: .5rem; flex-wrap: nowrap; }
.topbar__tools .btn {
  white-space: nowrap;          /* never wrap the label */
  min-height: 40px; height: 40px;
  padding-block: 0;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
}
.topcta { gap: .4rem; }
/* The header row is capped at the content width (--maxw), so its usable space
   is the same on every screen >=1180px. Use the compact "Connect" label at all
   widths so the wide/full-screen header never crowds the wordmark into the nav. */
.topcta__t { display: none; }                     /* long "Connect with us" - off */
.topcta__s { display: inline; }                   /* short "Connect" - always on */
@media (max-width: 560px) {
  .topbar__tools .btn { min-height: 42px; height: 42px; padding-inline: .8rem; font-size: .82rem; }
}

/* on phones the floating chat bubble already offers HexBot - don't duplicate it in the header */
@media (max-width: 640px) {
  .topbar__tools .topbot { display: none; }
  .topbar__tools { gap: .4rem; }
}

/* very small phones: keep the whole header inside its padding */
@media (max-width: 420px) {
  .topbar__tools { gap: .25rem; }
  .topbar__tools .btn { padding-inline: .5rem; font-size: .72rem; }
  .topbar .brand { font-size: .86rem; letter-spacing: -.04em; gap: .35rem; }
  .topbar .brand .hexmark { width: 21px !important; height: 21px !important; }
  .topbar .themebtn, .topbar .menubtn { width: 34px; min-width: 34px; height: 34px; }
}

/* ---- HexBot: related-topic follow-ups ---- */
.hexbot__next { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .74rem; color: var(--ink-3); }
.hexbot__nextbtn {
  background: color-mix(in srgb, var(--btn) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--btn) 38%, transparent);
  color: var(--ink); border-radius: 999px; padding: .28rem .6rem;
  font: inherit; font-size: .74rem; cursor: pointer; line-height: 1.3;
}
.hexbot__nextbtn:hover { background: var(--btn); color: #fff; border-color: var(--btn); }

/* ---- hero wordmark: the X carries the same blue -> green sweep as the buttons ---- */
.wordmark-hero .x {
  /* weighted toward green so the X still reads as the accent now that the rest
     of the wordmark is brand blue */
  background-image: linear-gradient(105deg, #818cf8 0%, #2f8f6a 45%, #00c853 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;          /* gradient needs a box to paint into */
  /* if a browser can't clip background to text, fall back to the brand green */
  @supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    -webkit-text-fill-color: var(--green);
    color: var(--green);
  }
}

/* ================= HEXOVANCE wordmark in the brand blue ================= */
/* Day mode and the huge hero wordmark use the exact button blue. The small
   nav/footer wordmarks on the dark background use a lightened tint of the same
   hue, because #4f46e5 at 17px only reaches 3.06:1 contrast (needs 4.5:1). */
:root { --wordmark: #4f46e5; --wordmark-hero: #4f46e5; }
html[data-theme="day"] { --wordmark: #4f46e5; --wordmark-hero: #4f46e5; }

.topbar .brand, .footer .brand, .footer .wm, .wm { color: var(--wordmark); }
.topbar .brand .xw, .footer .brand .xw { color: inherit; }
.wordmark-hero { color: var(--wordmark-hero); }

/* the X keeps its own identity: brand green in nav/footer, gradient in the hero */
.topbar .brand .x, .footer .x, .wm .x { color: var(--green) !important; }

/* ---- hero tagline: Google Sans, with the two knockout words as SVG outlines ---- */
.hero-tagline { font-family: var(--display); }
.ko-svg { display: inline-block; vertical-align: -0.22em; height: 1.3em; overflow: visible; }

/* tagline gradient, tuned per theme so it stays legible on both backgrounds */
:root { --ko-a: #818cf8; --ko-b: #2f8f6a; --ko-c: #00c853; }              /* on dark: 4.06:1 */
html[data-theme="day"] { --ko-a: #4f46e5; --ko-b: #2b7a55; --ko-c: #17803f; }  /* on light: 4.64:1 */

/* ---- icon buttons must never be squeezed by the flex row ---- */
.topbar__tools .themebtn,
.topbar__tools .menubtn { flex: 0 0 auto; min-width: 36px; }
.topbar__tools .themebtn svg,
.topbar__tools .menubtn svg { flex: 0 0 auto; }

/* ================= HEXOVANCE logo mark ================= */
/* gradient endpoints, tuned per theme so the mark stays vivid on both */
:root { --logo-a: #4f46e5; --logo-b: #2f8f4f; }
html[data-theme="day"] { --logo-a: #4f46e5; --logo-b: #2f8f4f; }

/* ---- header mark: continuous blue <-> green cycle -------------------------
   The nav hexagon's gradient stops read var(--logo-a/--logo-b). Registering
   both with @property gives them a <color> type, which is what lets the
   browser interpolate them instead of flipping at the 50% mark. Scoped to the
   topbar so the footer, hero and intro marks keep the static brand gradient. */
@property --logo-a { syntax: "<color>"; inherits: true; initial-value: #4f46e5; }
@property --logo-b { syntax: "<color>"; inherits: true; initial-value: #2f8f4f; }

.topbar .brand .hexmark { animation: none; }
@keyframes markCycle {
  0%   { --logo-a: #4f46e5; --logo-b: #41ab5d; }   /* blue  -> green */
  50%  { --logo-a: #41ab5d; --logo-b: #4f46e5; }   /* green -> blue  */
  100% { --logo-a: #4f46e5; --logo-b: #41ab5d; }
}
html[data-theme="day"] .topbar .brand .hexmark { animation-name: markCycleDay; }
@keyframes markCycleDay {
  0%   { --logo-a: #4f46e5; --logo-b: #41ab5d; }
  50%  { --logo-a: #41ab5d; --logo-b: #4f46e5; }
  100% { --logo-a: #4f46e5; --logo-b: #41ab5d; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar .brand .hexmark { animation: none; }
}

.hexmark { width: 30px; height: 30px; flex: 0 0 auto; display: block;
           transition: transform .25s ease; }
.brand:hover .hexmark { transform: rotate(-12deg) scale(1.06); }
.footer .hexmark { width: 26px; height: 26px; }

/* hero: mark sits to the left of the wordmark and scales with it */
.hero-brandrow {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(.5rem, 1.6vw, 1.4rem); width: 100%;
}
.hexmark--hero {
  width: clamp(2.2rem, 9vw, 8rem);
  height: clamp(2.2rem, 9vw, 8rem);
  /* hero mark: indigo -> green, fixed in both themes */
  --logo-a: #4f46e5;
  --logo-b: #2f8f4f;
}
.hero-brandrow .wordmark-hero { width: auto; }
@media (max-width: 560px) { .hexmark { width: 26px; height: 26px; } }

/* the interlocking mark carries more detail than the old outline, so give it room */
.topbar .brand .hexmark, .footer .brand .hexmark { width: 28px; height: 28px; }
@media (max-width: 560px) { .topbar .brand .hexmark, .footer .brand .hexmark { width: 24px; height: 24px; } }

/* ---- theme toggle: show the mode you'll switch TO ---- */
.themebtn .ic-sun, .themebtn .ic-moon { grid-area: 1 / 1; }
.themebtn .ic-moon { display: none; }          /* dark mode -> offer the sun */
.themebtn .ic-sun  { display: block; }
html[data-theme="day"] .themebtn .ic-sun  { display: none; }   /* light mode -> offer the moon */
html[data-theme="day"] .themebtn .ic-moon { display: block; }

/* ---- hero: larger mark, tucked closer to the wordmark ---- */
.hero-brandrow { gap: clamp(.15rem, .5vw, .55rem); }
.hexmark--hero { width: clamp(2.9rem, 12.5vw, 11rem); height: clamp(2.9rem, 12.5vw, 11rem); }

/* the wordmark's auto margins (set for the old standalone layout) were eating the
   free space inside the flex row and pushing the mark away - reset them here */
.hero-brandrow .wordmark-hero { margin-left: 0 !important; margin-right: 0 !important; }
.hexmark--hero { width: clamp(3.2rem, 14vw, 13rem); height: clamp(3.2rem, 14vw, 13rem); }

/* around 1024px the header is at its tightest: trim gaps so nothing spills */
@media (max-width: 1120px) {
  .topbar__tools { gap: .35rem; }
  .topbar .nav { gap: 1rem; }
  .topbar .brand .hexmark { width: 24px; height: 24px; }
  .topbar__tools .btn { padding-inline: .7rem; }
}

/* ---- laptop band: 1000px (where the nav is still inline) up to ~1400px -----
   .topbar__in is capped at --maxw (1180) minus 2x--gutter, so its usable width
   is ~1084px at EVERY window width. Brand + 6 nav links + three CTAs + the
   theme toggle measured 1161px, so the row overflowed that column on every
   desktop size, and below ~1360px it spilled past the viewport itself and
   produced a horizontal scrollbar. Drop the two button labels (icons keep
   their title/aria-label) so the bar stays inside the content column. */
/* Dropping the header wordmark freed ~105px, so both labels fit again.
   Measured at 1001px: brand 28 + nav 573 + tools 416 = 1056 inside a 1084px
   column. Keep them on one line and never let them wrap. */
@media (min-width: 1001px) {
  .topbar__in { gap: .8rem; }
  .topbar .nav { gap: .95rem; }
  .topbar__tools { gap: .4rem; margin-left: .7rem; }
}
.topbar__tools .topai, .topbar__tools .topbot, .topbar__tools .topcta {
  white-space: nowrap; flex: 0 0 auto;
}
.topbar__tools .topai__t, .topbar__tools .topbot__t, .topbar__tools .topcta__s {
  white-space: nowrap;
}
/* the three pills were shrunk to icon size - give them real presence again */
@media (min-width: 1001px) {
  .topbar__tools .btn { min-height: 38px; font-size: var(--step--1); padding-inline: .95rem; }
  .topbar__tools .themebtn { width: 38px; height: 38px; }
}
@media (min-width: 1001px) and (max-width: 1180px) {
  .topbar .nav { gap: .8rem; }
  .topbar__tools .btn { padding-inline: .6rem; }
}
/* guard: the bar itself never exceeds the viewport (its inner column keeps --maxw) */
.topbar { max-width: 100vw; }

/* smallest phones: the Connect button becomes icon-only so the brand name and
   the menu button both stay fully inside the bar */
/* 360-389px (Galaxy S-class, Pixel a-series): brand + Connect + AI Galaxy +
   theme + menu measured 368px, 8px past a 360px viewport. Icon-only Connect
   from here down, not just below 360. */
@media (max-width: 389px) {
  .topcta__t, .topcta__s { display: none !important; }
  .topcta { padding-inline: .55rem; }
}

/* <=319px (Galaxy Z Fold cover screen at 280px): even icon-only, five items
   plus the wordmark need 314px. Drop the AI Galaxy pill from the bar - it is
   still reachable from the menu and the footer - and tighten the row. */
@media (max-width: 319px) {
  .topbar__tools .topai { display: none; }
  .topbar__in { gap: .5rem; padding-inline: .7rem; }
  .topbar__tools { gap: .22rem; margin-left: .3rem; }
  .topbar .brand { font-size: .95rem; gap: .22rem; }
  .topbar .themebtn, .topbar .menubtn { width: 32px; min-width: 32px; height: 32px; }
}

/* ---- brand lockup: mark sits closer to the wordmark ---- */
.brand { gap: .34rem; }
@media (max-width: 420px) { .topbar .brand { gap: .28rem; } }

/* ---- hero: small .com after the wordmark, green dot + white com ---- */
.dotcom {
  font-size: max(11px, .17em);   /* very small, but never below readable */
  font-weight: 700;
  letter-spacing: .01em;
  color: #fafbff;                /* "com" in white */
  vertical-align: baseline;
  margin-left: .06em;
  white-space: nowrap;
}
html[data-theme="day"] .dotcom { color: #0a0b10; }
.dotcom__d { color: var(--green); }   /* the dot in brand green */

/* mark sits tight against the wordmark in nav and footer */
.topbar .brand, .footer .brand { gap: .3rem; }
@media (max-width: 420px) { .topbar .brand { gap: .25rem; } }

/* =========================================================================
   Responsive / cross-browser safety net (added in QA pass)
   ========================================================================= */
/* Long email addresses must wrap instead of forcing horizontal scroll on
   very narrow phones (e.g. 320px iPhone SE). */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* The 3D hex card on the Services page is a fixed 290px; on the very
   smallest phones scale it down a touch so nothing is clipped. */
@media (max-width: 360px) {
  .hexview__card { width: 260px; height: 289px; }
}

/* ---------------------------------------------------- landing intro */
.intro{--sq:min(70vmin,624px);position:fixed;inset:0;z-index:300;background:#000;
  display:grid;place-items:center;will-change:transform,opacity,filter;
  animation:introOut .95s cubic-bezier(.62,0,.28,1) 3.35s forwards}
.intro__stage{position:relative;width:var(--sq);height:var(--sq);overflow:visible;
  animation:stageExpand 1.0s cubic-bezier(.4,0,.2,1) 2.95s forwards}

/* thin black registration crosses */
.intro__plus{position:absolute;left:50%;top:50%;z-index:3;font-size:0;line-height:0;width:clamp(18px,3.4vmin,30px);
  height:clamp(18px,3.4vmin,30px);transform:translate(-50%,-50%);will-change:transform,opacity}
.intro__plus::before,.intro__plus::after{content:"";position:absolute;background:#fff}
.intro__plus::before{left:0;right:0;top:50%;height:1.5px;transform:translateY(-50%)}
.intro__plus::after{top:0;bottom:0;left:50%;width:1.5px;transform:translateX(-50%)}
.intro__plus--tl{--fx:-62vw;--fy:-62vh;--sgnx:-1;--sgny:-1}
.intro__plus--tr{--fx:62vw;--fy:-62vh;--sgnx:1;--sgny:-1}
.intro__plus--bl{--fx:-62vw;--fy:62vh;--sgnx:-1;--sgny:1}
.intro__plus--br{--fx:62vw;--fy:62vh;--sgnx:1;--sgny:1}
.intro__plus{animation:plusIn .7s cubic-bezier(.22,1,.36,1) both,
                       plusOut .6s cubic-bezier(.3,1.15,.45,1) .95s forwards}
@keyframes plusIn{
  0%{transform:translate(-50%,-50%) translate(var(--fx),var(--fy)) scale(.5) rotate(-90deg);opacity:0}
  45%{opacity:1}
  100%{transform:translate(-50%,-50%) scale(1) rotate(0deg);opacity:1}}
@keyframes plusOut{
  0%{transform:translate(-50%,-50%) scale(1)}
  22%{transform:translate(-50%,-50%) scale(.55)}
  100%{transform:translate(-50%,-50%)
       translate(calc(var(--sq)/2*var(--sgnx)),calc(var(--sq)/2*var(--sgny))) scale(1)}}
/* the white plate accelerates past the viewer and defocuses - the hero is
   already rising underneath, so the two movements read as one camera move */
@keyframes introOut{
  0%{opacity:1;transform:scale(1);filter:blur(0px)}
  38%{opacity:.94;filter:blur(1px)}
  100%{opacity:0;visibility:hidden;transform:scale(1.17);filter:blur(13px)}}

.intro__box{position:absolute;inset:0;border-radius:0;display:grid;place-items:center;opacity:0;
  /* white drafting grid painted on the square itself: 8 minor cells + 4 major cells
     divide it evenly, so grid lines fall exactly on the frame - border always merges */
  background-image:
    repeating-linear-gradient(to right,rgba(255,255,255,.40) 0 1px,transparent 1px calc(var(--sq)/4)),
    repeating-linear-gradient(to bottom,rgba(255,255,255,.40) 0 1px,transparent 1px calc(var(--sq)/4)),
    repeating-linear-gradient(to right,rgba(255,255,255,.16) 0 1px,transparent 1px calc(var(--sq)/8)),
    repeating-linear-gradient(to bottom,rgba(255,255,255,.16) 0 1px,transparent 1px calc(var(--sq)/8));
  background-position:0 0;
  overflow:hidden;animation:boxIn .5s cubic-bezier(.22,1,.36,1) 1.35s forwards}
.intro__box::before{content:"";position:absolute;inset:0;border-radius:0;
  border:1px solid rgba(255,255,255,.75);
  animation:frameRelease .6s cubic-bezier(.6,0,.2,1) 2.95s forwards}
/* a single brand-gradient sheen crosses the plate before it lets go */
.intro__box::after{content:"";position:absolute;top:-10%;bottom:-10%;left:0;width:42%;opacity:0;
  background:linear-gradient(to right,transparent 0%,rgba(65,65,246,.09) 40%,rgba(65,171,93,.13) 62%,transparent 100%);
  animation:sheen 1.05s cubic-bezier(.5,0,.2,1) 2.3s forwards}
@keyframes frameRelease{to{opacity:0;transform:scale(1.085)}}
@keyframes sheen{
  0%{transform:translateX(-150%) skewX(-16deg);opacity:0}
  22%{opacity:1} 74%{opacity:1}
  100%{transform:translateX(160%) skewX(-16deg);opacity:0}}
@keyframes boxIn{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}
.intro__hex{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;
  animation:hexBlowout .95s cubic-bezier(.55,0,.25,1) 3.0s forwards}
.intro__q{position:absolute;left:23%;top:23%;width:54%;height:54%;opacity:0;
  animation:qIn .8s cubic-bezier(.2,.9,.25,1) 1.5s forwards}
.intro__q svg{width:100%;height:100%;display:block}
/* each copy shows only its own quadrant, so the four fly in from the four
   screen corners and lock together into one hexagon */
.intro__q--tl{clip-path:inset(0 50% 50% 0);--qx:-80vw;--qy:-80vh}
.intro__q--tr{clip-path:inset(0 0 50% 50%);--qx: 80vw;--qy:-80vh}
.intro__q--bl{clip-path:inset(50% 50% 0 0);--qx:-80vw;--qy: 80vh}
.intro__q--br{clip-path:inset(50% 0 0 50%);--qx: 80vw;--qy: 80vh}
@keyframes qIn{
  0%{opacity:0;transform:translate(var(--qx),var(--qy)) scale(.7) rotate(-25deg)}
  40%{opacity:1}
  100%{opacity:1;transform:translate(0,0) scale(1) rotate(0deg)}}
/* handoff: the assembled hexagon opens out past every corner of the screen */
@keyframes hexBlowout{
  0%{transform:scale(1);opacity:1}
  35%{transform:scale(1.9);opacity:1}
  100%{transform:scale(16);opacity:0}}

/* the square sweeps open once the line has been read */
@keyframes stageExpand{
  0%{transform:scale(1)}
  100%{transform:scale(1.11)}}

/* "manual speedometer": each letter swings up on a needle arc, overshoots, settles */
.intro__words{position:absolute;left:50%;top:calc(100% + 1.4rem);transform:translateX(-50%);
  margin:0;white-space:nowrap;font-family:var(--display),system-ui,sans-serif;font-weight:700;
  font-size:clamp(.95rem,2.3vmin,1.3rem);letter-spacing:.03em;color:#4f46e5}
.intro__ch{color:hsl(calc(240 - 95 * var(--i) / 17), 72%, 48%)}
.intro__ch{display:inline-block;transform-origin:50% 130%;opacity:0;
  transform:rotate(-72deg) translateY(6px);
  animation:needle .38s cubic-bezier(.2,1.6,.35,1) forwards;
  animation-delay:calc(1.75s + var(--i) * .028s)}
.intro__sp{display:inline-block;width:.34em}
@keyframes needle{
  0%{opacity:0;transform:rotate(-72deg) translateY(6px)}
  55%{opacity:1;transform:rotate(9deg) translateY(0)}
  78%{transform:rotate(-3deg)}
  100%{opacity:1;transform:rotate(0deg) translateY(0)}}
.intro__words{animation:wordsOut .4s ease 3.0s forwards}
@keyframes wordsOut{to{opacity:0;transform:translateX(-50%) translateY(10px)}}

/* hero lifts into place under the departing plate; the rule dies with #hexintro,
   by which time the animation has already landed on its natural end state */
html:has(#hexintro) .hero > .wrap{animation:heroRise .95s cubic-bezier(.16,1,.3,1) 3.15s both}
html.intro-skipped .hero > .wrap{animation:heroRise .4s cubic-bezier(.16,1,.3,1) 0s both}
@keyframes heroRise{from{opacity:0;transform:translateY(28px) scale(.985)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){.intro{animation:introOut .01s forwards}
  html:has(#hexintro) .hero > .wrap,html.intro-skipped .hero > .wrap{animation:none}
  .intro__plus,.intro__box,.intro__ch,.intro__words,.intro__stage,
  .intro__hex,.intro__q{animation:none}}

/* about: brand lockup above the "HEXOVANCE exists…" statement */
.abt-intro{display:grid;grid-template-columns:240px 1fr;gap:2.4rem;align-items:start}
.abt-intro__body>p:first-child{margin-top:0}
.abt-lockup{display:flex;flex-direction:column;align-items:flex-start;gap:.45rem;margin:0}
.abt-lockup__mark{width:84px;height:84px}
.abt-lockup__wm{margin:0;font-family:var(--display);font-weight:700;font-size:1.9rem;
  letter-spacing:.02em;line-height:1;color:var(--wordmark)}
.abt-lockup__wm .x{color:var(--green)}
.abt-lockup__tag{margin:0;font-family:var(--display);font-weight:600;font-size:.78rem;
  letter-spacing:.01em;color:var(--ink-2);white-space:nowrap}
@media (max-width:720px){.abt-intro{grid-template-columns:1fr;gap:1.4rem}}
@media (max-width:560px){.abt-lockup__mark{width:66px;height:66px}
  .abt-lockup__wm{font-size:1.5rem}}

/* visually hidden - keeps heading order valid for screen readers, invisible on screen */
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}


/* ---- touch targets: WCAG 2.5.8 wants 24x24 CSS px minimum ---------------- */
input[type="checkbox"], input[type="radio"] {
  width: 20px; height: 20px; min-width: 20px; accent-color: var(--blue); cursor: pointer;
}
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; cursor: pointer;
}


/* header: mark only - the wordmark is carried by the hero and the footer */
.topbar .brand .wm { display: none; }
.topbar .brand { gap: 0; }

/* ---- HexBot Plus: charts, tables and readouts inside the chat bubble ----- */
.hbviz { margin: .7rem 0 .2rem; padding: .6rem .2rem; }
.hbviz svg { width: 100%; height: auto; display: block; color: var(--ink); overflow: visible; }
.hbviz__t { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: .45rem; }
.hbviz__n { font-size: .74rem; line-height: 1.45; color: var(--ink-2); margin: .5rem 0 0; }
.hbt { fill: var(--ink-2); font-family: var(--mono); }
.hbv { fill: var(--ink); font-weight: 700; }
.hbinv { fill: #fff; font-weight: 700; }
.hbg { stroke: var(--line); stroke-width: 1; fill: none; }
.hbtab { width: 100%; border-collapse: collapse; font-size: .76rem; margin-top: .3rem; }
.hbtab th { text-align: left; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
.hbtab td { padding: .42rem .5rem; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.hbtab tr:last-child td { border-bottom: 0; }
.hbread { font-size: .8rem; line-height: 1.5; margin-top: .6rem; padding: .65rem .75rem;
  border-left: 2px solid var(--blue); background: color-mix(in srgb, var(--blue) 7%, transparent); border-radius: 0 6px 6px 0; }
.hbread--cta { border-left-color: var(--green); background: color-mix(in srgb, var(--green) 7%, transparent); }
.hbfix { font-size: .72rem; color: var(--ink-3); margin-bottom: .45rem; font-style: italic; }

/* a chat panel wide enough to read a chart in; only once one is shown */
.hexbot.has-viz { width: min(620px, calc(100vw - 2rem)); max-height: min(72vh, 720px); }
@media (max-width: 700px) { .hexbot.has-viz { width: calc(100vw - 1.6rem); } }
.hbq { fill: var(--ink-3); font-family: var(--mono); letter-spacing: .08em; }
.hbhand { display:block; margin-top:.55rem; padding-top:.5rem; border-top:1px solid var(--line);
  font-size:.74rem; color:var(--ink-3); }

/* ---- HexBot: resizable panel ------------------------------------------- */
.hexbot__max {
  background: none; border: 0; color: #fff; opacity: .8; cursor: pointer;
  font-size: 1rem; line-height: 1; padding: .3rem .45rem; margin-left: auto; border-radius: 6px;
}
.hexbot__max:hover { opacity: 1; background: rgba(255,255,255,.16); }
.hexbot__head .hexbot__close { margin-left: .1rem; }
.hexbot__grip {
  position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  cursor: nwse-resize; touch-action: none; z-index: 3; border-top-left-radius: 16px;
}
.hexbot__grip::before {
  content: ""; position: absolute; left: 5px; top: 5px; width: 9px; height: 9px;
  border-left: 2px solid currentColor; border-top: 2px solid currentColor;
  color: #fff; opacity: .55; border-top-left-radius: 3px;
}
.hexbot__grip:hover::before { opacity: 1; }
/* The topbar is sticky at z-index 70 and 66px tall. A maximised panel must
   sit BELOW it (so site nav stays reachable) and ABOVE it in stacking order
   (so the header cannot swallow clicks on the panel's own controls). */
.hexbot, .hexbot-fab { z-index: 90; }
.hexbot.is-max {
  width: min(1100px, calc(100vw - 2rem)) !important;
  height: calc(100vh - 5.6rem - 78px) !important;
  height: calc(100dvh - 5.6rem - 78px) !important;
  max-height: none !important;
}
@media (max-width: 700px) {
  .hexbot.is-max { width: calc(100vw - 1.2rem) !important;
    height: calc(100vh - 5rem - 74px) !important; height: calc(100dvh - 5rem - 74px) !important; }
  .hexbot__grip { width: 26px; height: 26px; }
}

/* ---- HexBot AI: thinking indicator + provenance line -------------------- */
.hexbot__think { display: flex; gap: 5px; align-items: center; }
.hexbot__think span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3);
  animation: hbdot 1.1s ease-in-out infinite;
}
.hexbot__think span:nth-child(2) { animation-delay: .16s; }
.hexbot__think span:nth-child(3) { animation-delay: .32s; }
@keyframes hbdot { 0%,60%,100% { opacity:.28; transform:translateY(0) } 30% { opacity:1; transform:translateY(-3px) } }
@media (prefers-reduced-motion: reduce) { .hexbot__think span { animation: none; opacity: .6 } }
.hbai {
  margin-top: .7rem; padding-top: .5rem; border-top: 1px solid var(--line);
  font-size: .68rem; color: var(--ink-3); font-family: var(--mono); letter-spacing: .02em;
}

@media (prefers-reduced-motion: reduce){.page-backdrop{display:none!important}}
