/* Inter, self-hosted so the /support/ CSP (font-src 'self') allows it.
   Latin subset, variable weight. Licence: fonts/OFL.txt */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens
   The Snow look shared with the hub and the Detection Lab: monochrome
   surfaces told apart by fill, pastel accent cards, no shadows or
   gradients. Light is the default. Dark follows the OS unless the visitor
   picked a theme with the header toggle (theme.js sets data-theme). */

:root {
  color-scheme: light;
  --page: #ffffff;
  --panel: #f7f9fb;
  --hover: rgba(28, 28, 28, .05);
  --line: rgba(28, 28, 28, .1);
  --field-line: rgba(28, 28, 28, .2);
  --ink: #1c1c1c;
  --muted: #6f6f6f;
  --faint: rgba(28, 28, 28, .4);
  /* VISI orange. Fills use #cc4317 so white text on them clears 4.5:1;
     as text it needs the deeper #b33a11 to clear 4.5:1 on white, panels
     and pastel cards. */
  --button: #cc4317;
  --button-ink: #ffffff;
  --button-hover: #b23a12;
  --active: #cc4317;
  --link: #b33a11;
  --focus: #b33a11;
  --field: #ffffff;

  /* Pastel cards keep dark text in both themes. */
  --card-blue: #e3f5ff;
  --card-lavender: #e5ecf6;
  --card-ink: #1c1c1c;
  --card-muted: #555555;

  /* Status text, tuned for 4.5:1 on page and panel. */
  --green: #2b7a5b;
  --purple: #5b5dc4;
  --blue: #2a78a8;
  --amber: #946200;
  --red: #d92828;
  --red-soft: rgba(217, 40, 40, .08);

  /* Data and illustration palette. */
  --indigo: #95a4fc;
  --violet: #c6c7f8;
  --cyan: #a8c5da;
  --mint: #baedbd;
  --sky: #b1e3ff;
  --teal: #a1e3cb;

  --radius-card: 16px;
  --radius-control: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}

/* The dark set appears twice: once for the OS setting, once for an
   explicit choice. Keep the two blocks identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --tool-monochrome-filter: invert(1);
    --page: #1c1c1c;
    --panel: #272727;
    --hover: rgba(255, 255, 255, .05);
    --line: rgba(255, 255, 255, .1);
    --field-line: rgba(255, 255, 255, .2);
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, .55);
    --faint: rgba(255, 255, 255, .4);
    --button: #ff9d5c;
    --button-ink: #1c1c1c;
    --button-hover: #ffb886;
    --active: #ff9d5c;
    --link: #ff9d5c;
    --focus: #ff9d5c;
    --field: #1c1c1c;
    --green: #4aa785;
    --purple: #8a8cd9;
    --blue: #59a8d4;
    --amber: #ffc555;
    --red: #ff5c5c;
    --red-soft: rgba(255, 92, 92, .12);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --tool-monochrome-filter: invert(1);
  --page: #1c1c1c;
  --panel: #272727;
  --hover: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .1);
  --field-line: rgba(255, 255, 255, .2);
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, .55);
  --faint: rgba(255, 255, 255, .4);
  --button: #ff9d5c;
  --button-ink: #1c1c1c;
  --button-hover: #ffb886;
  --active: #ff9d5c;
  --link: #ff9d5c;
  --focus: #ff9d5c;
  --field: #1c1c1c;
  --green: #4aa785;
  --purple: #8a8cd9;
  --blue: #59a8d4;
  --amber: #ffc555;
  --red: #ff5c5c;
  --red-soft: rgba(255, 92, 92, .12);
}

/* Inside a pastel card the light-theme ink applies whatever the page
   theme, so text, links and buttons stay readable on the pale fill. */
.pastel, .pillars li {
  --ink: var(--card-ink);
  --muted: var(--card-muted);
  --faint: rgba(28, 28, 28, .4);
  --hover: rgba(28, 28, 28, .05);
  --line: rgba(28, 28, 28, .1);
  --button: #cc4317;
  --button-ink: #ffffff;
  --button-hover: #b23a12;
  --link: #b33a11;
  --focus: #1c1c1c;
  color: var(--ink);
  background: var(--card-blue);
}
.pastel.lavender, .pillars li:nth-child(4n + 2), .pillars li:nth-child(4n + 3) { background: var(--card-lavender); }

/* ------------------------------------------------------------------ base */

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 3.35vw, 3.2rem); line-height: 1.06; letter-spacing: -.057em; }
h2 { font-size: clamp(1.25rem, .95vw + 1rem, 1.75rem); line-height: 1.2; letter-spacing: -.025em; }
h3 { font-size: 14px; line-height: 20px; }
p { max-width: 66ch; color: var(--muted); }
p a, li a, .field-note a { color: var(--link); }
p a:hover, li a:hover, .field-note a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; color: var(--ink); }
.lead { font-size: 16px; line-height: 24px; }
.meta { font-size: 12px; line-height: 18px; color: var(--muted); }
/* Pieces of metadata spaced by layout rather than joined with "·". */
.meta-parts { display: flex; flex-wrap: wrap; column-gap: 14px; }

.skip {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  background: var(--button);
  color: var(--button-ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.arrow-icon { vertical-align: middle; }

/* --------------------------------------------------------------- controls */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--button);
  color: var(--button-ink);
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--button-hover); color: var(--button-ink); }
.button.small { height: 32px; padding: 0 12px; }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { background: var(--hover); }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon-button:hover { background: var(--hover); }
.icon-button[hidden] { display: none; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  color: var(--purple);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.green { color: var(--green); }
.status.blue { color: var(--blue); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 2px 8px; border-radius: 999px; background: var(--hover); font-size: 12px; line-height: 18px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}
.header-inner { display: flex; align-items: center; gap: 8px 24px; min-height: 73px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; object-fit: contain; }
.site-header .brand img { width: 32px; height: 32px; }
.site-nav { position: relative; display: flex; align-items: center; gap: 6px; isolation: isolate; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 37px;
  padding: 0 10px;
  border-radius: var(--radius-control);
  white-space: nowrap;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--hover); }
/* Snow marks the current item with a short bar; across a top bar it sits
   under the item. */
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  border-radius: 2px;
  background: var(--active);
}
.nav-indicator {
  display: none;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  border-radius: var(--radius-control);
  background: var(--hover);
  pointer-events: none;
}
.site-nav[data-motion-ready] .nav-indicator { display: block; }
.site-nav[data-motion-ready] a:is(:hover, [aria-current="page"]) { background: transparent; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-actions .button.small:last-child { margin-left: 4px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ----------------------------------------------------------------- home */

.home-section { padding-block: clamp(40px, 5.5vw, 80px); }
.home-section-muted { background: var(--panel); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero {
  position: relative;
  isolation: isolate;
  background: #101217;
  color: #fff;
  --ink: #fff;
  --muted: #e4e6eb;
  --focus: #ffb383;
  --button: #ff9d5c;
  --button-ink: #1c1c1c;
  --button-hover: #ffb886;
}
.hero-photo, .hero-slide::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-photo { object-fit: cover; object-position: center 54%; }
.hero-slide::after {
  content: "";
  background:
    linear-gradient(0deg, rgba(10, 12, 16, .9), transparent 37%),
    linear-gradient(90deg, rgba(10, 12, 16, .91), rgba(10, 12, 16, .74) 42%, rgba(10, 12, 16, .32) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: clamp(390px, 42vw, 545px);
  padding-block: 52px;
}
.hero h2 {
  max-width: 15ch;
  font-size: clamp(34px, 3.1vw + 14px, 62px);
  line-height: 1.06;
  letter-spacing: -.057em;
  text-wrap: initial;
}
.hero .lead { margin: 20px 0 28px; max-width: 51ch; }
.hero-picker {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 30px;
}
.hero-picker[hidden] { display: none; }
.hero-picker button {
  position: relative;
  min-height: 44px;
  padding: 11px 0 8px;
  border: 0;
  background: linear-gradient(rgba(255, 255, 255, .38), rgba(255, 255, 255, .38)) top / 100% 3px no-repeat;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.hero-picker button[aria-current="true"] {
  color: var(--ink);
  font-weight: 700;
}
.hero-picker button[aria-current="true"]::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--button);
  transform-origin: left;
  content: "";
}
.hero-picker[data-rotating] button[aria-current="true"]::before {
  animation: hero-progress 5.5s linear both;
}
.hero-picker[data-rotation-paused] button[aria-current="true"]::before {
  animation-play-state: paused;
}
@keyframes hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.hero-picker button:is(:hover, :focus-visible) { color: var(--ink); }

.hub-tools h2, .about-mission h2, .about-values h2 {
  font-size: clamp(28px, 2vw + 16px, 42px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.hub-tools .split, .about-mission .split { align-items: start; }
.tool-skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 34px 0 0;
}
.tool-skills > div { padding-top: 14px; border-top: 1px solid var(--line); }
.tool-skills dt { font-size: 17px; font-weight: 600; line-height: 1.4; }
.tool-skills dd { margin: 6px 0 0; color: var(--muted); }
.tool-ribbon {
  overflow: auto;
  margin-top: 32px;
  border-block: 1px solid var(--line);
  background: var(--panel);
}
.tool-ribbon-toggle { display: none; }
.tool-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  padding: 18px 24px;
  margin: 0;
  list-style: none;
}
.tool-list[aria-hidden="true"] { display: none; }
.tool-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-weight: 600;
}
.tool-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
}
.tool-icon img { width: 32px; height: 32px; object-fit: contain; }
.tool-icon-monochrome img { filter: var(--tool-monochrome-filter, none); }
@media (prefers-reduced-motion: no-preference) {
  .tool-ribbon-toggle {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    width: fit-content;
    margin-left: auto;
    color: var(--muted);
    cursor: pointer;
  }
  .tool-ribbon-toggle input { accent-color: var(--button); }
  .hub-tools:not(:has(#show-all-tools:checked)) .tool-ribbon {
    --tool-fade: clamp(24px, 6%, 80px);
    container-type: inline-size;
    overflow: clip;
    mask-image: linear-gradient(to right, transparent, #000 var(--tool-fade), #000 calc(100% - var(--tool-fade)), transparent);
  }
  .hub-tools:not(:has(#show-all-tools:checked)) .tool-track {
    display: flex;
    width: max-content;
    animation: tool-ribbon-scroll 42s linear infinite;
  }
  .hub-tools:not(:has(#show-all-tools:checked)) .tool-ribbon:hover .tool-track { animation-play-state: paused; }
  .hub-tools:not(:has(#show-all-tools:checked)) .tool-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    min-width: 100cqw;
  }
}
@keyframes tool-ribbon-scroll {
  from { transform: translateX(-50%); }
}

.about-hero h1 {
  margin-block: 14px 18px;
  font-size: clamp(36px, 3vw + 16px, 60px);
  line-height: 1.06;
  letter-spacing: -.04em;
}
.about-mission p { font-size: 18px; line-height: 1.5; }
.about-mission .button { margin-top: 22px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 28px 48px; }
.split h2 + p { margin-top: 12px; }
.split p + .text-link { margin-top: 20px; }

.panel { padding: 24px; border-radius: var(--radius-card); background: var(--panel); min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; justify-self: stretch; gap: 8px 16px; }
.project-card { display: grid; gap: 12px; justify-items: start; }
.project-card .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 4px; }

.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--panel); }

.mission p { margin-bottom: 24px; }

.hub-showcase-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px 12px;
}
.hub-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 12px 24px;
}
.hub-heading p { margin-top: 6px; }
.hub-controls { display: flex; gap: 6px; }
.hub-controls[hidden] { display: none; }
.hub-controls .icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--field-line);
}
.hub-controls button[aria-disabled="true"] { opacity: .45; cursor: default; }
.hub-cards {
  grid-column: 1 / -1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 29%;
  gap: 16px;
  overflow-x: auto;
  margin: -4px;
  padding: 4px 4px 12px;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
}
.hub-card { scroll-snap-align: start; min-width: 0; }
.hub-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--ink);
  text-decoration: none;
}
.hub-card > a:is(:hover, :focus-visible) { border-color: var(--active); }
.hub-card img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.hub-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  gap: 8px;
  padding: 20px;
}
.hub-card-copy h3 { font-size: 18px; line-height: 24px; }
.hub-card-copy .text-link { margin-top: auto; padding-top: 6px; }

.faq { align-items: start; }
.faq h2 + .text-link { margin-top: 12px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 12px;
  border-radius: var(--radius-control);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.faq-list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-list summary:hover { background: var(--hover); }
.faq-list details p { padding: 0 12px 16px; }

.closing { text-align: center; }
.closing p { margin: 12px auto 24px; }

/* -------------------------------------------------------- interior pages */

.page { padding-block: 40px 64px; }
.page-head { display: grid; gap: 10px; }
.page-head .lead { margin-top: 4px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }
.page-banner {
  width: 100%;
  height: clamp(140px, 16vw, 220px);
  margin-top: 24px;
  object-fit: cover;
  background: var(--panel);
}
.page-body { margin-top: 32px; overflow-wrap: anywhere; }

.interior { padding-block: 40px 64px; overflow-wrap: anywhere; }
.interior h1 { margin-bottom: 16px; }

/* Long-form text from Markdown pages. */
:is(.page-body, .interior) > h2 { margin: 32px 0 8px; font-size: 18px; line-height: 24px; letter-spacing: -.01em; }
:is(.page-body, .interior) > h2:first-child { margin-top: 0; }
:is(.page-body, .interior) > p { margin-bottom: 12px; }
:is(.page-body, .interior) > ul:not([class]) { max-width: 66ch; margin: 0 0 12px; padding-left: 20px; color: var(--muted); }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.pillars li { padding: clamp(16px, 2vw, 26px); background: var(--card-blue); color: var(--muted); }
.pillars li strong { display: block; margin-bottom: 4px; font-size: 18px; line-height: 24px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { display: grid; align-content: start; justify-items: start; gap: 12px; }
.card h2 { font-size: 1.17rem; line-height: 1.25; letter-spacing: -.025em; }
.card .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.logo-tile { display: grid; place-items: center; width: 64px; height: 64px; padding: 8px; border-radius: 12px; background: #ffffff; }

.event-section + .event-section { margin-top: 40px; }
.event-section h2 { margin-bottom: 12px; font-size: 18px; line-height: 24px; letter-spacing: -.01em; }
.event-list { display: grid; gap: 4px; }
.event-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 20px;
  padding: 16px;
  border-radius: var(--radius-card);
}
.date-tile {
  display: grid;
  place-items: center;
  align-content: center;
  height: 56px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 16px;
}
.date-tile strong { font-size: 20px; line-height: 24px; }
.past .date-tile { background: var(--panel); color: var(--muted); }
.past .date-tile strong { color: var(--ink); }
.event-copy { display: grid; gap: 4px; }
.event-copy p:not(.meta) { margin-top: 4px; }
.event-copy .event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.event-image { width: 160px; }
.empty { padding: 16px; border-radius: var(--radius-card); background: var(--panel); max-width: none; }
.event-row:focus-within { background: var(--hover); }
@media (hover: hover) {
  .event-row:hover { background: var(--hover); }
}

/* Blog */
.post-row h2 { font-size: 1.05rem; line-height: 1.35; letter-spacing: -.015em; }
.post-row h2 a { color: inherit; text-decoration: none; }
.post-row h2 a:hover, .post-row h2 a:focus-visible { text-decoration: underline; }

/* Contact and support page */
.support-form { max-width: 760px; }
.support-fields { display: grid; gap: 16px; }
.support-fields label { display: grid; gap: 6px; font-weight: 500; }
.support-fields small { color: var(--muted); font-size: 12px; font-weight: 400; }
.support-fields input, .support-fields select, .support-fields textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-control);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.support-fields textarea { resize: vertical; min-height: 7rem; }
.support-fields :is(input, select, textarea):hover { border-color: var(--faint); }
.support-fields :is(input, select, textarea):focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.support-fields ::placeholder { color: var(--faint); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-group { display: grid; gap: 16px; }
.field-group[hidden], .form-status[hidden] { display: none; }
.field-note, .interior .field-note { margin: 0; color: var(--muted); }
.form-status, .interior .form-status {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-control);
  background: var(--red-soft);
  color: var(--ink);
}
.form-status::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--red); transform: translateY(-1px); }
.support-submit { justify-self: start; }
.support-submit:disabled { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--panel); }
.footer-content { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 24px; padding-block: 40px; }
.footer-content p { margin-top: 12px; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-group strong { margin-bottom: 4px; color: var(--muted); font-weight: 400; }
.footer-group a { text-decoration: none; }
.footer-group a:hover { text-decoration: underline; }
.social-links { display: flex; gap: 4px; margin-left: -6px; }
.social-links a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-control); }
.social-links a:hover { background: var(--hover); }
.social-links svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; column-gap: 14px; padding-block: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 18px; }

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .site-nav[data-motion-settled] .nav-indicator { transition: transform .24s var(--ease), width .24s var(--ease), height .24s var(--ease); }
  .hero-copy > div, .page-head { animation: rise-in .45s var(--ease) both; }
  .reveal-enter { animation: rise-in .6s var(--ease) both; }
  .button, .icon-button, .site-nav a, .faq-list summary, .social-links a, .event-row { transition: background-color .18s, color .18s; }
  .button .arrow-icon, .text-link .arrow-icon { transition: transform .22s var(--ease); }
  .button:is(:hover, :focus-visible) .arrow-icon, .text-link:is(:hover, :focus-visible) .arrow-icon { transform: translate(2px, -2px); }
  .button:active { transform: scale(.98); }
  .faq-list summary::after { transition: transform .22s var(--ease); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-cards { grid-auto-columns: 44%; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-content > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; padding-block: 12px 10px; }
  .site-nav { order: 1; width: calc(100% + 16px); margin-inline: -8px; justify-content: space-between; }
  .site-nav a { height: 32px; padding-inline: 8px; }
  .site-nav a[aria-current="page"]::after { bottom: -5px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .site-nav { gap: 0; }
  .site-nav a { padding-inline: clamp(4px, calc(6vw - 16px), 8px); }
  .hero-copy { min-height: 355px; padding-block: 38px; }
  .hero-slide::after { background: linear-gradient(0deg, #101217, rgba(10, 12, 16, .68)); }
  .hero-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; padding-bottom: 20px; }
  html { scroll-padding-top: 120px; }
  .hub-cards { grid-auto-columns: 84%; gap: 12px; }
  .grid, .tool-skills, .field-row { grid-template-columns: 1fr; }
  .pillars { gap: 10px; }
  .event-row { grid-template-columns: 48px minmax(0, 1fr); padding: 12px; gap: 12px 16px; }
  .date-tile { height: 48px; }
  .event-image { grid-column: 2; width: 140px; }
  .page { padding-top: 24px; }
  .support-form { padding: 16px; }
}

/* Shared VISI palettes */
:root[data-palette="porcelain"] {
  --palette-canvas: #f3f7ff;
  --palette-surface: #ffffff;
  --palette-band: #e4edfb;
  --palette-text: #172940;
  --palette-muted: #455a76;
  --palette-accent: #2456a4;
  --palette-ink: #ffffff;
}
:root[data-palette="sage"] {
  --palette-canvas: #eff6ec;
  --palette-surface: #fcfefb;
  --palette-band: #e1edde;
  --palette-text: #203427;
  --palette-muted: #405c48;
  --palette-accent: #286249;
  --palette-ink: #ffffff;
}
:root[data-palette="sand"] {
  --palette-canvas: #fbf3e5;
  --palette-surface: #fffbf5;
  --palette-band: #f0e2cd;
  --palette-text: #3d2b20;
  --palette-muted: #684e3f;
  --palette-accent: #91451f;
  --palette-ink: #ffffff;
}
:root[data-palette="midnight"] {
  --palette-canvas: #121b2d;
  --palette-surface: #1a2740;
  --palette-band: #253654;
  --palette-text: #f1f6ff;
  --palette-muted: #bdcce7;
  --palette-accent: #8cb7ff;
  --palette-ink: #101e36;
}
:root[data-palette="pine"] {
  --palette-canvas: #13251f;
  --palette-surface: #1b3128;
  --palette-band: #254035;
  --palette-text: #eff9f1;
  --palette-muted: #afd0bd;
  --palette-accent: #89d3a8;
  --palette-ink: #11251c;
}
:root[data-palette="violet"] {
  --palette-canvas: #201a2a;
  --palette-surface: #2c233a;
  --palette-band: #403351;
  --palette-text: #f6f0ff;
  --palette-muted: #d4c1e5;
  --palette-accent: #cbb0ff;
  --palette-ink: #201631;
}

:root[data-palette] {
  --page: var(--palette-canvas);
  --panel: var(--palette-surface);
  --field: var(--palette-surface);
  --ink: var(--palette-text);
  --muted: var(--palette-muted);
  --button: var(--palette-accent);
  --button-ink: var(--palette-ink);
  --button-hover: color-mix(in srgb, var(--palette-accent) 84%, var(--palette-text));
  --active: var(--palette-accent);
  --link: var(--palette-accent);
  --focus: var(--palette-accent);
}

/* Open color presets, adapted for the VISI interface. */
:root[data-palette="github"] {
  --palette-canvas: #ffffff;
  --palette-surface: #f6f8fa;
  --palette-band: #eaeef2;
  --palette-text: #1f2328;
  --palette-muted: #57606a;
  --palette-accent: #0969da;
  --palette-ink: #ffffff;
}
:root[data-palette="ayu"] {
  --palette-canvas: #1f2430;
  --palette-surface: #272d39;
  --palette-band: #313846;
  --palette-text: #e6e1cf;
  --palette-muted: #b4ac99;
  --palette-accent: #ffcc66;
  --palette-ink: #211d18;
}
:root[data-palette="catppuccin"] {
  --palette-canvas: #1e1e2e;
  --palette-surface: #27273c;
  --palette-band: #313244;
  --palette-text: #cdd6f4;
  --palette-muted: #bac2de;
  --palette-accent: #cba6f7;
  --palette-ink: #21182c;
}
:root[data-palette="dracula"] {
  --palette-canvas: #282a36;
  --palette-surface: #303241;
  --palette-band: #44475a;
  --palette-text: #f8f8f2;
  --palette-muted: #c7c9d7;
  --palette-accent: #ff79c6;
  --palette-ink: #291323;
}
:root[data-palette="everforest"] {
  --palette-canvas: #2d353b;
  --palette-surface: #343f44;
  --palette-band: #3d484d;
  --palette-text: #d3c6aa;
  --palette-muted: #b4c0b0;
  --palette-accent: #a7c080;
  --palette-ink: #273021;
}
:root[data-palette="gruvbox"] {
  --palette-canvas: #fbf1c7;
  --palette-surface: #fff6d7;
  --palette-band: #ebdbb2;
  --palette-text: #3c3836;
  --palette-muted: #66534b;
  --palette-accent: #8f3f11;
  --palette-ink: #ffffff;
}


/* Optional account appearance adjustments. */
:root[data-appearance-background] {
  --bg: var(--appearance-background);
  --canvas: var(--appearance-background);
  --frame: var(--appearance-background);
  --page: var(--appearance-background);
  --chart-surface: var(--appearance-background);
}

:root[data-appearance-foreground] {
  --text: var(--appearance-foreground);
  --ink: var(--appearance-foreground);
}

:root[data-appearance-accent] {
  --accent: var(--appearance-accent);
  --accent-bright: var(--appearance-accent);
  --accent-hover: var(--appearance-accent);
  --fill: var(--appearance-accent);
  --fill-hover: color-mix(in srgb, var(--appearance-accent) 85%, currentColor);
  --accent-ink: var(--appearance-accent-ink);
  --on-fill: var(--appearance-accent-ink);
  --button: var(--appearance-accent);
  --button-ink: var(--appearance-accent-ink);
  --button-hover: color-mix(in srgb, var(--appearance-accent) 85%, currentColor);
  --active: var(--appearance-accent);
  --link: var(--appearance-accent);
  --focus: var(--appearance-accent);
}

:root[data-appearance-font] {
  --font: var(--appearance-font);
  font-family: var(--appearance-font);
}

:root[data-appearance-font] body {
  font-family: var(--appearance-font);
}

:root[data-appearance-ui] :is(button, input, select, textarea, .button, .nav-link, .account-btn) {
  font-size: var(--appearance-ui);
}

:root[data-appearance-content] main :is(p, li, td, dd, blockquote) {
  font-size: var(--appearance-content);
}

:root[data-appearance-code] :is(code, pre, .mono, .evidence) {
  font-size: var(--appearance-code);
}

:root[data-appearance-contrast] {
  --text-dim: color-mix(in srgb, var(--text, var(--ink)) 72%, transparent);
  --text-faint: color-mix(in srgb, var(--text, var(--ink)) 68%, transparent);
  --muted: color-mix(in srgb, var(--text, var(--ink)) 72%, transparent);
  --line: color-mix(in srgb, var(--text, var(--ink)) var(--appearance-contrast), transparent);
  --line-strong: color-mix(in srgb, var(--text, var(--ink)) var(--appearance-contrast), transparent);
}

:root[data-appearance-contrast] :is(.muted, .faint, .hint) {
  color: color-mix(in srgb, var(--text, var(--ink)) calc(65% + var(--appearance-contrast) / 2), transparent);
}

:root[data-full-width] :is(main, main > [data-view], #page, .public-main, main > .container, main > .wrap) {
  max-width: none;
}

:root[data-reduced-motion] *,
:root[data-reduced-motion] *::before,
:root[data-reduced-motion] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

:root[data-full-width] .wrap { max-width: none; }

/* Threat Intelligence: the daily digest panel. */
.ti-panel { display: grid; gap: 16px; }
.post-row h3 { font-size: 1.05rem; line-height: 1.35; letter-spacing: -.015em; }
.post-row h3 a { color: inherit; text-decoration: none; }
.post-row h3 a:hover, .post-row h3 a:focus-visible { text-decoration: underline; }
.ti-older summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
