/* ==========================================================
   BREIN — Main Stylesheet (v2)
   Direction: Palantir-like restraint. Near-monochrome, hairline
   rules, quiet large type. The hero is the one loud moment.
   ========================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink:    #06080c;                       /* page */
  --deep:   #0b1016;                       /* alternate sections */
  --bone:   #eceff3;                       /* text */
  --mist:   #8b96a3;                       /* secondary text */
  --rule:   rgba(214, 224, 236, .14);      /* hairline */
  --rule-2: rgba(214, 224, 236, .30);      /* stronger hairline */
  --signal: #8fd0ff;                       /* focus rings only */

  --font-display: "Michroma", "Eurostile", "Microgramma", "Arial Black", sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 2.1vw, 1.875rem);
  --step-3: clamp(2rem, 4.2vw, 3.75rem);      /* section headline */
  --step-4: clamp(1.75rem, 3.5vw, 3.375rem);  /* statement */
  --hero:   6.7vw;                            /* Michroma display: scales with the window */

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, .h2, .statement { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 0.1875rem;
}

.container {
  width: calc(100% - var(--gutter) * 2);
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: 1rem; top: -10rem; z-index: 300;
  background: var(--bone); color: var(--ink);
  padding: 0.75rem 1.125rem; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.6em;
  border: 1px solid var(--rule-2); border-radius: 2px;
  font-size: .875rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--solid { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--solid:hover { background: #fff; border-color: #fff; }
.btn--ghost { background: rgba(6, 8, 12, .25); }
.btn--ghost:hover { border-color: var(--bone); background: rgba(255, 255, 255, .08); }

.link {
  display: inline-flex; align-items: center; gap: .55em;
  padding-bottom: 0.1875rem;
  border-bottom: 1px solid var(--rule-2);
  font-size: .9375rem; font-weight: 500;
  transition: border-color .2s, gap .2s;
}
.link:hover { border-color: var(--bone); gap: .8em; }
.icon { flex: none; width: 1em; height: 1em; }
.link .icon { width: .75em; height: .75em; }

.icon-btn {
  display: inline-grid; place-items: center;
  padding: .9rem;
  background: rgba(6, 8, 12, .25); border: 1px solid var(--rule-2); border-radius: 2px;
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--bone); background: rgba(255, 255, 255, .08); }
.icon-btn > span { display: grid; place-items: center; }
.icon-btn[data-state="playing"] .when-paused,
.icon-btn[data-state="paused"]  .when-playing,
.icon-btn[data-state="muted"]   .when-sound,
.icon-btn[data-state="sound"]   .when-muted { display: none; }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 200;
}
.site-header[data-solid] { position: relative; }

/* The tint + blur live on a pseudo-element on purpose: backdrop-filter on the
   header itself would make it the containing block for the fixed mobile menu
   and squash that menu to the header's height. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-solid::before,
.site-header.is-open::before {
  background: rgba(6, 8, 12, .82);
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
  border-bottom-color: var(--rule);
}

/* White header once the page scrolls (not while the mobile menu is open) */
.site-header { color: var(--bone); transition: color .3s; }
.site-header.is-solid:not(.is-open) { color: var(--ink); }
.site-header.is-solid:not(.is-open)::before {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: rgba(6, 8, 12, .10);
}
.site-header.is-solid:not(.is-open) .nav-list a,
.site-header.is-solid:not(.is-open) .nav-login { color: rgba(6, 8, 12, .68); }
.site-header.is-solid:not(.is-open) .nav-list a:hover,
.site-header.is-solid:not(.is-open) .nav-list .current-menu-item > a,
.site-header.is-solid:not(.is-open) .nav-login:hover { color: var(--ink); }
.site-header.is-solid:not(.is-open) .nav-list a::after { background: var(--ink); }
.site-header.is-solid:not(.is-open) .btn--solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.site-header.is-solid:not(.is-open) .btn--solid:hover { background: #1b2430; border-color: #1b2430; }
.site-header.is-solid:not(.is-open) .menu-toggle { border-color: rgba(6, 8, 12, .3); }
.site-header.is-solid:not(.is-open) .menu-toggle-bars,
.site-header.is-solid:not(.is-open) .menu-toggle-bars::before { background: var(--ink); }

.header-inner { padding-block: 1.25rem; display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }

.brand {
  font-family: var(--font-display);
  font-size: 1.0625rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1;
}
.brand img { max-height: 2em; width: auto; }
.custom-logo-link { display: inline-flex; }

.site-nav { flex: 1; display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.nav-list a {
  position: relative; display: block; padding: 0.5rem 0;
  font-size: .875rem; color: rgba(236, 239, 243, .72);
  transition: color .2s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--bone); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--bone); }
.nav-list a:hover::after, .nav-list .current-menu-item > a::after { transform: scaleX(1); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.nav-login {
  padding: 0.5rem 0.875rem; font-size: .875rem; color: rgba(236, 239, 243, .72);
  transition: color .2s;
}
.nav-login:hover { color: var(--bone); }
.site-header .btn { padding: .65em 1.3em; }

.menu-toggle {
  display: none; position: relative;
  margin-left: auto; padding: 1.375rem;
  background: none; border: 1px solid var(--rule-2); border-radius: 2px; cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before {
  position: absolute; left: 0.75rem; right: 0.75rem; height: 1.5px; background: var(--bone);
  transition: transform .25s ease, top .25s ease;
}
.menu-toggle-bars { top: 50%; }
.menu-toggle-bars::before { content: ""; left: 0; right: 0; top: -0.375rem; }
.is-open .menu-toggle-bars { transform: rotate(45deg); }
.is-open .menu-toggle-bars::before { top: 0; transform: rotate(-90deg); }

/* ==========================================================
   HERO  — video + dark layer + display headline
   ========================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }

.hero-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 28%, rgba(96, 150, 210, .26), transparent 70%),
    radial-gradient(45% 45% at 12% 88%, rgba(60, 90, 130, .22), transparent 70%),
    linear-gradient(180deg, #0a1017 0%, #06080c 100%);
  background-size: cover; background-position: center;
}
.hero-fallback::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 4rem 4rem;
  -webkit-mask-image: radial-gradient(70% 60% at 75% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 75% 30%, #000, transparent 75%);
}
.hero-fallback[style*="background-image"]::after { display: none; }

.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 1;
}

/* the dark layer: uniform tint (customizer) + top/bottom + left-hand vignette */
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, .7) 0%, rgba(6, 8, 12, 0) 24%, rgba(6, 8, 12, 0) 38%, var(--ink) 100%),
    linear-gradient(90deg, rgba(6, 8, 12, .6) 0%, rgba(6, 8, 12, 0) 72%),
    rgba(6, 8, 12, var(--hero-dim, .55));
}

.hero-inner {
  position: relative; width: calc(100% - var(--gutter) * 2);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 16vw;
  padding-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}

.hero-title, .cta-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--hero); line-height: 1.05; letter-spacing: -.015em;
  text-transform: uppercase;
}
.hero-title .line, .cta-title .line { display: block; overflow: hidden; }
.hero-title .line > span, .cta-title .line > span { display: block; }

/* one orchestrated moment: headline rises line by line */
.hero-title .line > span {
  transform: translateY(105%);
  animation: rise 1.1s cubic-bezier(.2, .7, .1, 1) forwards;
  animation-delay: calc(.25s + var(--i, 0) * .14s);
}
@keyframes rise { to { transform: none; } }
@keyframes settle { from { opacity: 0; } to { opacity: 1; } }

.hero-foot {
  position: relative;
  margin-top: clamp(2rem, 5vw, 4rem); padding-top: 1.75rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  animation: settle 1s ease 1s both;
}
.hero-foot--still { grid-template-columns: minmax(0, 1fr) auto; }
.hero-foot--still .hero-progress { display: none; }
.hero-progress { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule-2); }
.hero-progress-bar { height: 100%; background: var(--bone); transform: scaleX(0); transform-origin: left; }

.hero-desc { max-width: 46ch; font-size: 1.0625rem; line-height: 1.55; color: rgba(236, 239, 243, .82); }
.hero-actions { display: flex; gap: 0.625rem; }
.hero-controls { display: flex; gap: 0.625rem; }

/* ==========================================================
   TRUSTED BY
   ========================================================== */
.trust { border-top: 1px solid var(--rule); }
.trust-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 4rem;
  padding-block: 2.5rem;
}
.trust-label { max-width: 30ch; font-size: .9375rem; color: var(--mist); }
.trust-logos {
  flex: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2.5rem;
}
.trust-logos li {
  font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em;
  color: rgba(236, 239, 243, .42);
}

/* ==========================================================
   SECTIONS  — name in a left rail, content to the right
   ========================================================== */
.section {
  padding-block: clamp(4.5rem, 11vw, 10.5rem);
  border-top: 1px solid var(--rule);
}
.section--deep { background: var(--deep); }

.section-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem;
  row-gap: clamp(3rem, 7vw, 6.5rem);
}
.section-label {
  grid-column: 1 / 4;
  padding-top: .55em;
  font-size: .875rem; font-weight: 400; color: var(--mist);
}
.section-body { grid-column: 4 / -1; }

.h2 {
  font-size: var(--step-3); font-weight: 400; line-height: 1.06; letter-spacing: -.03em;
  max-width: 18ch;
}
.statement {
  font-size: var(--step-4); font-weight: 400; line-height: 1.14; letter-spacing: -.025em;
  max-width: 30ch;
}
.lede {
  max-width: 52ch; margin-top: 1.75rem;
  font-size: 1.125rem; line-height: 1.55; color: var(--mist);
}
.lede + .link { margin-top: 2rem; }
.section-head .lede { margin-top: 1.5rem; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.section-head--row .h2 { max-width: none; }

/* Company: five capabilities in a row */
.capabilities {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.capabilities li { padding: 1.75rem 1.75rem 0 0; }
.capabilities li + li { padding-left: 1.75rem; border-left: 1px solid var(--rule); }
.capabilities h3 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.capabilities p { margin-top: 0.625rem; font-size: .9375rem; line-height: 1.5; color: var(--mist); }

/* Platform panels */
.panels {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem);
}
.panel { display: flex; flex-direction: column; align-items: flex-start; }
.panel .ph { width: 100%; aspect-ratio: 4 / 3; }
.panel-name { margin-top: 1.75rem; font-size: .875rem; color: var(--mist); }
.panel h3 {
  margin-top: 0.625rem; max-width: 16ch;
  font-size: var(--step-2); font-weight: 500; line-height: 1.12; letter-spacing: -.025em;
}
.panel-desc { margin: 1rem 0 1.75rem; max-width: 42ch; color: var(--mist); line-height: 1.55; }
.panel .link { margin-top: auto; }

/* Agents explorer */
.explorer {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.explorer-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--rule); align-self: start; }
.explorer-tab {
  appearance: none; -webkit-appearance: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.625rem 0;
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  color: var(--mist); text-align: left; cursor: pointer;
  font-size: var(--step-3); line-height: 1; letter-spacing: -.03em;
  transition: color .2s;
}
.explorer-tab::after {
  content: ""; flex: none; width: .14em; height: .14em; background: var(--bone);
  opacity: 0; transform: scale(.4); transition: opacity .2s, transform .2s;
}
.explorer-tab:hover { color: rgba(236, 239, 243, .8); }
.explorer-tab[aria-selected="true"] { color: var(--bone); }
.explorer-tab[aria-selected="true"]::after { opacity: 1; transform: none; }

.explorer-panel .ph { width: 100%; aspect-ratio: 16 / 10; }
.explorer-panel:not([hidden]) { animation: settle .4s ease both; }
.explorer-panel h3 { margin-top: 1.75rem; font-size: var(--step-2); font-weight: 500; letter-spacing: -.025em; }
.explorer-panel p { margin: 0.75rem 0 1.75rem; max-width: 48ch; color: var(--mist); line-height: 1.55; }

/* Security */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.rows { border-top: 1px solid var(--rule); }
.rows li { padding: 1.375rem 0; border-bottom: 1px solid var(--rule); }
.rows strong { display: block; font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }
.rows span { display: block; margin-top: 0.25rem; font-size: .9375rem; color: var(--mist); }

/* Industries */
.industry-list {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 6vw, 6rem);
  border-top: 1px solid var(--rule);
}
.industry-list li { border-bottom: 1px solid var(--rule); }
.industry-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.625rem 0;
  font-size: var(--step-2); letter-spacing: -.025em; line-height: 1.1;
  color: rgba(236, 239, 243, .8);
  transition: color .2s, padding .2s;
}
.industry-list a .icon { width: .6em; height: .6em; color: var(--mist); transition: color .2s, transform .2s; }
.industry-list a:hover { color: #fff; padding-left: 0.625rem; }
.industry-list a:hover .icon { color: var(--bone); transform: translate(0.1875rem, -0.1875rem); }

/* Insights */
.posts {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem);
}
.post { position: relative; }
.post .ph { aspect-ratio: 16 / 10; }
.post-meta { display: flex; gap: 1rem; margin-top: 1.375rem; font-size: .875rem; color: var(--mist); }
.post h3 {
  margin-top: 0.625rem; max-width: 26ch;
  font-size: var(--step-1); font-weight: 500; line-height: 1.25; letter-spacing: -.02em;
}
.post h3 a::after { content: ""; position: absolute; inset: 0; }   /* whole card is the link */
.post h3 a:hover { text-decoration: underline; text-underline-offset: 0.25rem; text-decoration-color: var(--rule-2); }

/* ==========================================================
   PLACEHOLDER IMAGE  (.ph)
   ========================================================== */
.ph {
  position: relative; overflow: hidden;
  border: 1px solid var(--rule);
  background:
    radial-gradient(90% 80% at var(--gx, 20%) var(--gy, 0%), rgba(110, 165, 225, .24), transparent 62%),
    linear-gradient(165deg, #131b25, #080b10);
}
.ph::before {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 2.75rem 2.75rem;
  -webkit-mask-image: radial-gradient(80% 80% at var(--gx, 20%) var(--gy, 0%), #000, transparent);
  mask-image: radial-gradient(80% 80% at var(--gx, 20%) var(--gy, 0%), #000, transparent);
}
.ph[data-label]::after {
  content: attr(data-label);
  position: absolute; left: 1rem; bottom: 0.875rem;
  font-size: .8125rem; color: var(--mist);
}
.ph--a { --gx: 18%; --gy: 0%; }
.ph--b { --gx: 82%; --gy: 20%; }
.ph--c { --gx: 50%; --gy: 100%; }
.ph--photo { background: var(--deep); }
.ph--photo::before { display: none; }
.ph--photo img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   CTA
   ========================================================== */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: clamp(6rem, 14vw, 12.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
  border-top: 1px solid var(--rule);
  background:
    radial-gradient(55% 70% at 85% 100%, rgba(96, 150, 210, .2), transparent 70%),
    var(--ink);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 4rem 4rem;
  -webkit-mask-image: radial-gradient(60% 80% at 85% 100%, #000, transparent 80%);
  mask-image: radial-gradient(60% 80% at 85% 100%, #000, transparent 80%);
}
.cta-foot {
  margin-top: clamp(2.5rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--rule-2);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}
.cta-copy { max-width: 46ch; font-size: 1.0625rem; line-height: 1.55; color: rgba(236, 239, 243, .82); }
.cta-actions { display: flex; gap: 0.625rem; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { border-top: 1px solid var(--rule); background: var(--ink); padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 3rem 2rem; }
.footer-brand p { max-width: 34ch; margin-top: 1.375rem; font-size: .9375rem; line-height: 1.55; color: var(--mist); }
.footer-col h2 { margin-bottom: 0.875rem; font-size: .875rem; font-weight: 400; color: var(--mist); }
.footer-col a { display: block; padding: 0.375rem 0; font-size: .9375rem; color: rgba(236, 239, 243, .82); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 2rem;
  margin-top: clamp(4rem, 9vw, 8rem); padding-top: 1.5rem; border-top: 1px solid var(--rule);
  font-size: .8125rem; color: var(--mist);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.footer-legal a:hover { color: var(--bone); }

/* ==========================================================
   INNER PAGES  (page.php / index.php)
   ========================================================== */
.page-shell { padding: clamp(3.5rem, 9vw, 8rem) 0 clamp(5rem, 10vw, 10rem); }
.page-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.75rem, 4.4vw, 3.75rem); line-height: 1.1; letter-spacing: -.01em;
  margin-bottom: clamp(2.5rem, 6vw, 5rem); max-width: 20ch;
}
.entry-meta { margin-bottom: 1.25rem; font-size: .875rem; color: var(--mist); }
.entry-content { max-width: 65ch; font-size: 1.0625rem; line-height: 1.7; color: rgba(236, 239, 243, .82); }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2em; color: var(--bone); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.375rem; }
.entry-content a { color: var(--bone); border-bottom: 1px solid var(--rule-2); }
.entry-content a:hover { border-color: var(--bone); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { margin-inline: 0; padding-left: 1.25em; border-left: 1px solid var(--rule-2); color: var(--bone); }
.entry-content img { height: auto; border: 1px solid var(--rule); }
.entry-content hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.5em; }

.posts--archive { margin-bottom: clamp(3rem, 6vw, 5rem); }
.navigation.pagination { display: flex; justify-content: center; }
.nav-links { display: flex; gap: 0.5rem; }
.page-numbers {
  display: inline-grid; place-items: center; padding: .8rem 1rem;
  border: 1px solid var(--rule); border-radius: 2px; font-size: .875rem; color: var(--mist);
}
.page-numbers.current, a.page-numbers:hover { color: var(--ink); background: var(--bone); border-color: var(--bone); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capabilities li { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--rule); }
  .capabilities li:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
  .capabilities li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .capabilities li:last-child { grid-column: 1 / -1; border-bottom: 0; padding-left: 0; border-left: 0; }
  .hero-foot { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-desc { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  /* mobile menu */
  .menu-toggle { display: inline-block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--ink);
  }
  .is-open .site-nav { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 1.125rem 0; font-size: 1.5rem; letter-spacing: -.02em; color: var(--bone); border-bottom: 1px solid var(--rule); }
  .nav-list a::after { display: none; }
  .nav-actions { margin-left: 0; flex-direction: column; align-items: stretch; }
  .nav-actions .btn { padding-block: 1em; }
  .nav-login { text-align: center; padding: 0.875rem; }

  /* layout */
  .section-grid { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .section-label, .section-body { grid-column: 1 / -1; }
  .section-label { padding-top: 0; }
  .panels, .posts { grid-template-columns: 1fr; gap: 3rem; }
  .panel h3, .post h3 { max-width: none; }
  .explorer { grid-template-columns: 1fr; gap: 2rem; }
  .explorer-tab { padding: 1.25rem 0; }
  .split { grid-template-columns: 1fr; }
  .industry-list { grid-template-columns: 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .trust-inner { flex-direction: column; align-items: flex-start; }
  .trust-logos { max-width: none; width: 100%; }
  .cta-foot { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero-title, .cta-title { font-size: 8.6vw; }
  .hero-inner { padding-top: 32vw; }
  .hero-foot { grid-template-columns: 1fr auto; }
  .hero-actions { grid-column: 1 / -1; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-controls { grid-column: 1 / -1; justify-self: start; }
  .capabilities { grid-template-columns: 1fr; }
  .capabilities li, .capabilities li:nth-child(even), .capabilities li:nth-child(odd) { padding: 1.375rem 0; border-left: 0; }
  .capabilities li:last-child { border-bottom: 0; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .hero-title .line > span { transform: none; animation: none; }
  .hero-foot, .explorer-panel:not([hidden]) { animation: none; }
}
