/* ==========================================================================
   ProAnalytiqs — design system
   Deep blue base, cool blue-steel treatments, one azure accent.

   1. Tokens          5. Sections
   2. Base            6. Pod builder
   3. Utilities       7. Insights & prose
   4. Components      8. Forms, motion, responsive
   ========================================================================== */

/* 1. Tokens ============================================================== */

:root {
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-sm: 7px;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.12rem, 1.04rem + 0.36vw, 1.32rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  --step-4: clamp(2.15rem, 1.6rem + 2.6vw, 3.6rem);
  --step-5: clamp(2.6rem, 1.7rem + 4.3vw, 5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Deep blue (dark, default) ------------------------------------------- */

[data-theme='dark'] {
  --ink: #060a14;
  --surface: #0c1322;
  --surface-2: #121b2e;
  --surface-3: #1a2540;
  --line: #22314f;
  --line-soft: #16203a;

  --text: #e8eefb;
  --text-2: #94a7c8;
  --text-3: #62759a;

  /* cool blue-steel range — highlight, body, shadow */
  --steel-hi: #eef4ff;
  --steel: #9fb4d8;
  --steel-lo: #5d739b;

  --accent: #3d8bff;
  --accent-hi: #62a2ff;
  --accent-soft: rgba(61, 139, 255, 0.14);
  --accent-line: rgba(61, 139, 255, 0.36);
  --accent-ink: #030814;

  --arc: #35d9d0;
  --arc-soft: rgba(53, 217, 208, 0.14);
  --violet: #8b7dff;
  --rose: #ff7d94;

  --shadow: 0 1px 2px rgba(2, 6, 16, 0.6), 0 18px 46px -22px rgba(2, 6, 16, 0.95);
  --shadow-lift: 0 1px 2px rgba(2, 6, 16, 0.65), 0 34px 68px -28px rgba(2, 6, 16, 1);
  --glass: rgba(6, 10, 20, 0.76);

  /* multi-band sheen used for wordmarks and big numerals */
  --metal: linear-gradient(
    168deg,
    #ffffff 0%,
    #bed3f5 14%,
    #7f97c4 30%,
    #e2ecfd 44%,
    #92a9d2 58%,
    #6a82ae 72%,
    #cadcf7 88%,
    #8a9fc8 100%
  );
  --metal-edge: linear-gradient(90deg, transparent, rgba(160, 200, 255, 0.24) 42%, rgba(190, 220, 255, 0.5) 50%, rgba(160, 200, 255, 0.24) 58%, transparent);
  --brush-opacity: 0.045;
  --plate-fill: #101a2c;

  color-scheme: dark;
}

/* --- Cool paper (light) --------------------------------------------------- */

[data-theme='light'] {
  --ink: #eaeff7;
  --surface: #f7faff;
  --surface-2: #e5ebf6;
  --surface-3: #d8e1f0;
  --line: #c3d0e5;
  --line-soft: #dbe3f1;

  --text: #0a1220;
  --text-2: #435269;
  --text-3: #6f7f99;

  --steel-hi: #ffffff;
  --steel: #7488a8;
  --steel-lo: #44546f;

  --accent: #1258c9;
  --accent-hi: #0d47a8;
  --accent-soft: rgba(18, 88, 201, 0.09);
  --accent-line: rgba(18, 88, 201, 0.28);
  --accent-ink: #ffffff;

  --arc: #0b8f88;
  --arc-soft: rgba(11, 143, 136, 0.1);
  --violet: #5a48d6;
  --rose: #c0374f;

  --shadow: 0 1px 2px rgba(12, 24, 46, 0.06), 0 16px 38px -20px rgba(12, 24, 46, 0.24);
  --shadow-lift: 0 1px 2px rgba(12, 24, 46, 0.07), 0 30px 58px -24px rgba(12, 24, 46, 0.32);
  --glass: rgba(247, 250, 255, 0.82);

  --metal: linear-gradient(
    168deg,
    #64789c 0%,
    #2f4269 16%,
    #8598ba 32%,
    #1e2f4e 48%,
    #7688aa 64%,
    #2a3c5f 80%,
    #8fa2c3 100%
  );
  --metal-edge: linear-gradient(90deg, transparent, rgba(20, 40, 80, 0.12) 42%, rgba(20, 40, 80, 0.22) 50%, rgba(20, 40, 80, 0.12) 58%, transparent);
  --brush-opacity: 0.045;
  --plate-fill: #eaf0fa;

  color-scheme: light;
}

/* 2. Base =============================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
}
h2 {
  font-size: var(--step-4);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 1.1em;
}

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

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

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.15em;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip:focus {
  top: 0;
}

/* Brushed metal grain over the whole page: fine directional lines, not noise */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--brush-opacity);
  background-image: repeating-linear-gradient(
      101deg,
      rgba(255, 255, 255, 0.55) 0px,
      rgba(255, 255, 255, 0) 1px,
      rgba(255, 255, 255, 0) 2px,
      rgba(255, 255, 255, 0.32) 3px,
      rgba(255, 255, 255, 0) 4px,
      rgba(255, 255, 255, 0) 7px
    ),
    repeating-linear-gradient(
      101deg,
      rgba(0, 0, 0, 0.4) 0px,
      rgba(0, 0, 0, 0) 1px,
      rgba(0, 0, 0, 0) 5px
    );
  mix-blend-mode: overlay;
}

[data-theme='light'] .grain {
  mix-blend-mode: multiply;
}

/* 3. Utilities ========================================================== */

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

.narrow {
  max-width: var(--wrap-narrow);
}

/* Article pages sit in a tighter column so the prose keeps a readable measure
   with the table of contents beside it. */
.wrap--article {
  max-width: 980px;
}

section {
  position: relative;
  z-index: 2;
}

.section {
  padding-block: clamp(64px, 8vw, 128px);
}

.section--tight {
  padding-block: clamp(48px, 5.5vw, 80px);
}

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}

/* A machined seam: a hairline with a specular highlight running through it */
.section--alt::before,
.section--alt::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.55;
  pointer-events: none;
}
.section--alt::before {
  top: -1px;
}
.section--alt::after {
  bottom: -1px;
}

/* Brushed-steel text fill. Use on wordmarks, numerals, short display strings. */
.metal {
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.lede {
  font-size: var(--step-1);
  color: var(--text-2);
  line-height: 1.58;
  max-width: 62ch;
  text-wrap: pretty;
}

.muted {
  color: var(--text-2);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}

.head {
  max-width: 720px;
  margin-bottom: clamp(38px, 4.5vw, 64px);
}

.head--center {
  margin-inline: auto;
  text-align: center;
}

.head--center .eyebrow {
  justify-content: center;
}

.head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: end;
}

.accent {
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 18px;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 4. Components ========================================================= */

/* Buttons ---------------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-line: var(--line);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid var(--btn-line);
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s,
    color 0.25s;
}

/* light catching the top edge */
.btn::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.5;
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-line: var(--accent);
  box-shadow: 0 8px 26px -10px var(--accent-line);
}
.btn--primary::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  opacity: 0.75;
}
.btn--primary:hover {
  --btn-bg: var(--accent-hi);
  --btn-line: var(--accent-hi);
  box-shadow: 0 14px 36px -12px var(--accent-line);
}

.btn--ghost {
  background: var(--surface-2);
}
.btn--ghost:hover {
  --btn-line: var(--steel-lo);
  background: var(--surface-3);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 17px 28px;
  font-size: 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, gap 0.25s var(--ease);
}
.textlink svg {
  width: 16px;
  height: 16px;
}
.textlink:hover {
  border-color: var(--accent-line);
  gap: 11px;
}

/* Badges & chips --------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.badge--accent {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.badge__dot--live {
  background: var(--arc);
  box-shadow: 0 0 0 3px var(--arc-soft);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.chip {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* Cards ------------------------------------------------------------------ */

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s, background 0.4s;
  overflow: hidden;
}

/* machined top edge */
.card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.5;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 200px at 50% -30%, var(--accent-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--steel-lo);
}

.card:hover::before {
  opacity: 1;
}
.card:hover::after {
  opacity: 1;
}

.card > * {
  position: relative;
}

.card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}
.card__icon svg {
  width: 21px;
  height: 21px;
}

.card h3 {
  font-size: var(--step-1);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-2);
  font-size: 0.955rem;
  margin-bottom: 0;
}

.card__list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 9px;
}

.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.5;
}

.card__list li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.6em;
  width: 7px;
  height: 2px;
  background: var(--accent);
  opacity: 0.85;
}

/* Ticked list ------------------------------------------------------------ */

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.955rem;
  color: var(--text-2);
  line-height: 1.55;
}

.ticks svg {
  width: 15px;
  height: 15px;
  margin-top: 5px;
  color: var(--accent);
  flex: none;
}

/* Nav -------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: var(--line-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.035em;
}

.brand .mark {
  color: var(--accent);
  flex: none;
}

.brand__name {
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand--lg {
  font-size: 1.34rem;
}

.nav__links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav__links a {
  position: relative;
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav__links a[aria-current='page'] {
  color: var(--text);
}

.nav__links a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--steel-lo);
}
.icon-btn svg {
  width: 17px;
  height: 17px;
}

[data-theme='dark'] .icon-sun {
  display: block;
}
[data-theme='dark'] .icon-moon {
  display: none;
}
[data-theme='light'] .icon-sun {
  display: none;
}
[data-theme='light'] .icon-moon {
  display: block;
}

.nav__burger {
  display: none;
}
.nav__burger .icon-shut {
  display: none;
}
.nav__burger[aria-expanded='true'] .icon-open {
  display: none;
}
.nav__burger[aria-expanded='true'] .icon-shut {
  display: block;
}

.mobile-menu {
  position: fixed;
  inset: 74px 0 0;
  z-index: 99;
  background: var(--ink);
  padding-top: 26px;
  overflow-y: auto;
}

.mobile-menu nav {
  display: grid;
  gap: 2px;
}

.mobile-menu nav a {
  padding: 17px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.mobile-menu__cta {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  color: var(--accent) !important;
  border-bottom: 0 !important;
}
.mobile-menu__cta svg {
  width: 22px;
  height: 22px;
}

.mobile-menu__meta {
  display: grid;
  gap: 6px;
  margin-top: 30px;
  font-size: 0.9rem;
  color: var(--text-3);
}

/* Footer ----------------------------------------------------------------- */

.foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-top: clamp(52px, 6vw, 86px);
  overflow: hidden;
}

.foot::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.6;
}

.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 52px;
}

.foot__pitch {
  color: var(--text-2);
  font-size: 0.955rem;
  max-width: 34ch;
  margin: 18px 0 22px;
}

.foot__contact {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 11px;
}

.foot__contact li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.91rem;
  color: var(--text-2);
}
.foot__contact svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: none;
}
.foot__contact a:hover {
  color: var(--text);
}

.foot__social {
  display: flex;
  gap: 9px;
}
.foot__social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s;
}
.foot__social a:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}
.foot__social svg {
  width: 16px;
  height: 16px;
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.foot__col h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.foot__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.foot__col a {
  font-size: 0.91rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.foot__col a:hover {
  color: var(--accent);
}

.foot__wordmark {
  margin-top: 56px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 15vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0.16;
  user-select: none;
  white-space: nowrap;
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  padding: 22px 0 26px;
  margin-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.83rem;
  color: var(--text-3);
}

/* 5. Sections =========================================================== */

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(52px, 7vw, 104px) clamp(52px, 6vw, 88px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -20% -10% auto;
  height: 880px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(680px 400px at 8% 4%, var(--accent-soft), transparent 64%),
    radial-gradient(620px 420px at 92% 26%, var(--arc-soft), transparent 66%);
}

/* machined grid: cross ticks rather than a full lattice */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 88% 62% at 50% 20%, #000 20%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 88% 62% at 50% 20%, #000 20%, transparent 76%);
  opacity: 0.7;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.05em;
  background: var(--accent);
  opacity: 0.3;
}

.hero .lede {
  margin-bottom: 30px;
  max-width: 54ch;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.86rem;
  color: var(--text-3);
}

.hero__proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__proof svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* Hero thread diagram ---------------------------------------------------- */

.thread {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
}

.thread svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.thread__plate {
  fill: var(--plate-fill);
  stroke: var(--line);
  stroke-width: 1;
}

.thread__edge {
  stroke: var(--steel-lo);
  stroke-width: 1;
  opacity: 0.55;
}

.thread__label {
  font-family: var(--font-mono);
  font-size: 8.4px;
  letter-spacing: 0.16em;
  fill: var(--text-3);
  text-transform: uppercase;
}

.thread__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  fill: var(--text);
}

.thread__meta {
  font-family: var(--font-mono);
  font-size: 8.4px;
  fill: var(--text-3);
  letter-spacing: 0.04em;
}

.thread__line {
  stroke: var(--line);
  stroke-width: 1.5;
  fill: none;
}

/* The path is ~1744 units long; one dash travels its whole length. */
.thread__flow {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 26 1718;
  animation: thread-run 5s linear infinite;
  filter: drop-shadow(0 0 5px var(--accent-line));
}

.thread__flow--2 {
  stroke: var(--arc);
  stroke-width: 1.6;
  animation-delay: 2.5s;
  filter: none;
  opacity: 0.75;
}

@keyframes thread-run {
  from {
    stroke-dashoffset: 1744;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.thread__node {
  fill: var(--surface-3);
  stroke: var(--steel-lo);
  stroke-width: 1.2;
}

.thread__node--hot {
  fill: var(--accent);
  stroke: var(--accent);
}

.thread__rivet {
  fill: var(--line);
}

/* Logo marquee ----------------------------------------------------------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 24px;
  border-block: 1px solid var(--line-soft);
  background: var(--surface);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: slide 46s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.marquee__item {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee__item:hover {
  color: var(--text);
}

.marquee__note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 22px;
}

/* Problem / contrast ----------------------------------------------------- */

.contrast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.problem {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.problem::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.4;
}

.problem__n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--rose);
  margin-bottom: 16px;
  display: block;
  text-transform: uppercase;
}

.problem h3 {
  font-size: 1.14rem;
  letter-spacing: -0.022em;
  margin-bottom: 10px;
}

.problem p {
  font-size: 0.93rem;
  color: var(--text-2);
  margin: 0;
}

.answer {
  position: relative;
  margin-top: 24px;
  padding: 34px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--accent-soft), transparent 58%), var(--surface);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  overflow: hidden;
}

.answer h3 {
  font-size: var(--step-2);
  margin-bottom: 12px;
}

.answer p {
  color: var(--text-2);
  margin: 0;
  max-width: 64ch;
}

/* Stats ------------------------------------------------------------------ */

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.stats::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.55;
}

.stat {
  padding: 32px 26px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: 0;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 12px;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.stat__sub {
  font-size: 0.84rem;
  color: var(--text-3);
  line-height: 1.45;
}

/* Pods ------------------------------------------------------------------- */

.pods {
  display: grid;
  gap: 18px;
}

.pod {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  scroll-margin-top: 100px;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
}

.pod::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.45;
  transition: opacity 0.4s;
}

.pod:hover {
  border-color: var(--steel-lo);
  box-shadow: var(--shadow-lift);
}
.pod:hover::after {
  opacity: 1;
}

.pod > * {
  position: relative;
}

.pod__n {
  position: absolute;
  top: 18px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0.24;
  user-select: none;
}

.pod__flag {
  position: absolute;
  top: -11px;
  left: 34px;
  z-index: 3;
  background: var(--ink);
}

.pod h3 {
  font-size: var(--step-2);
  margin-bottom: 8px;
}

.pod__outcome {
  font-size: var(--step-1);
  color: var(--accent);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 18px;
  max-width: 32ch;
}

.pod__for {
  font-size: 0.93rem;
  color: var(--text-2);
  padding: 14px 16px;
  border-left: 2px solid var(--steel-lo);
  background: var(--surface-2);
  border-radius: 0 6px 6px 0;
  margin-bottom: 22px;
}

.pod__for strong {
  display: block;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 6px;
}

.pod__team {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pod__role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.85rem;
  font-weight: 500;
}

.pod__role b {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 500;
}

.pod__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem;
  color: var(--text-3);
}
.pod__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pod__meta svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.pod__ships h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  font-weight: 500;
}

.pod__price {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.pod__price b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.035em;
  display: block;
}

.pod__price span {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* Readiness check -------------------------------------------------------- */

.healthcheck {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 44px;
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--accent-soft), transparent 52%), var(--surface);
  scroll-margin-top: 100px;
  overflow: hidden;
}

.healthcheck::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.6;
}

.healthcheck > * {
  position: relative;
}

.healthcheck__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 20px 0 18px;
}

.healthcheck__price b {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.healthcheck__price span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guarantee {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px dashed var(--accent-line);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-2);
  background: var(--surface-2);
}

/* Process ---------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.step {
  position: relative;
  padding: 34px 26px 30px 0;
  border-top: 2px solid var(--line);
}

.step::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--ink);
  border: 2px solid var(--accent);
  transform: rotate(45deg);
}

.step__n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.16rem;
  margin-bottom: 6px;
}

.step__dur {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
  display: block;
  margin-bottom: 12px;
}

.step p {
  font-size: 0.91rem;
  color: var(--text-2);
  margin: 0;
}

/* Founder ---------------------------------------------------------------- */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.founder__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.founder__photo img {
  width: 100%;
  height: auto;
  filter: saturate(0.82) contrast(1.06);
}

.founder__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 13, 17, 0.62), transparent 44%);
  pointer-events: none;
}

[data-theme='light'] .founder__photo::after {
  background: linear-gradient(to top, rgba(13, 19, 26, 0.4), transparent 44%);
}

.founder__tag {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(10, 13, 17, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}

.founder__tag b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.025em;
}

.founder__tag span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.founder blockquote {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.34;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.cv {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.cv li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
  align-items: baseline;
}

.cv time {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-3);
}

.cv b {
  font-weight: 600;
}

.cv span {
  color: var(--text-3);
}

/* Stack ------------------------------------------------------------------ */

.stack {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.stack__row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 26px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

.stack__row h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 4px 0 0;
  font-weight: 500;
}

/* FAQ -------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: color 0.25s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent);
}

.faq summary::after {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: linear-gradient(var(--text-2), var(--text-2)) center / 9px 1.4px no-repeat,
    linear-gradient(var(--text-2), var(--text-2)) center / 1.4px 9px no-repeat;
  transition: transform 0.35s var(--ease), border-color 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(135deg);
  border-color: var(--accent-line);
}

.faq details p {
  margin: 0;
  padding: 0 60px 24px 0;
  color: var(--text-2);
  max-width: 78ch;
}

/* CTA -------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 78px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 300px at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.6;
}

.cta > * {
  position: relative;
}

.cta h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.cta .lede {
  margin-inline: auto;
  margin-bottom: 30px;
}

.cta .btn-row {
  justify-content: center;
}

.cta__fine {
  margin-top: 26px;
  font-size: 0.84rem;
  color: var(--text-3);
}

/* 6. Pod builder ======================================================== */

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 18px;
  align-items: start;
}

.builder__panel {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.builder__panel::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.5;
}

.builder__panel > * {
  position: relative;
}

.builder__panel--out {
  position: sticky;
  top: 96px;
  background: linear-gradient(165deg, var(--accent-soft), transparent 44%), var(--surface);
  border-color: var(--accent-line);
}

.builder__title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.preset {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.25s;
}

.preset:hover {
  color: var(--text);
  border-color: var(--steel-lo);
}

.preset.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.rolerow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-soft);
}

.rolerow:last-of-type {
  border-bottom: 0;
}

.rolerow__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 5px;
}

.rolerow__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
}

.rolerow p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 48ch;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.stepper button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}

.stepper button:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-ink);
}

.stepper button:disabled {
  opacity: 0.26;
  cursor: not-allowed;
}

.stepper svg {
  width: 15px;
  height: 15px;
}

.stepper output {
  min-width: 26px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
}

.out__team {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 34px;
  margin-bottom: 22px;
}

.out__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
}

.out__row dt {
  color: var(--text-3);
}

.out__row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  text-align: right;
}

.bars {
  display: grid;
  gap: 13px;
  margin: 22px 0;
}

.bar__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.bar__top b {
  font-weight: 600;
}

.bar__top span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
}

.bar__track {
  height: 6px;
  border-radius: 2px;
  background: var(--surface-3);
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  width: 0;
  transition: width 0.65s var(--ease);
}

.bar__fill--low {
  background: var(--steel-lo);
}

.out__price {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.out__price b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.out__price span {
  font-size: 0.8rem;
  color: var(--text-3);
}

.out__ships {
  margin: 20px 0 0;
}

.out__ships h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
  font-weight: 500;
}

.out__empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-3);
  text-align: center;
}

/* 7. Insights & prose =================================================== */

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.35s, box-shadow 0.4s;
  height: 100%;
}

.post-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.4;
  transition: opacity 0.35s;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--steel-lo);
  box-shadow: var(--shadow-lift);
}
.post-card:hover::after {
  opacity: 1;
}

.post-card > * {
  position: relative;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.post-card__meta .tag {
  color: var(--accent);
}

.post-card h3 {
  font-size: var(--step-1);
  line-height: 1.24;
  margin-bottom: 11px;
}

.post-card p {
  font-size: 0.925rem;
  color: var(--text-2);
  margin-bottom: 20px;
}

.post-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.post-card__more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.post-card:hover .post-card__more svg {
  transform: translateX(4px);
}

.post-card--featured {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: 44px;
  padding: 36px;
}

.post-card--featured .post-card__body {
  flex: 1;
}

.post-card--featured h3 {
  font-size: var(--step-3);
  max-width: 22ch;
}

.post-card--featured p {
  font-size: var(--step-0);
  max-width: 58ch;
}

.post-card--featured .post-card__side {
  flex: none;
  width: 210px;
  border-left: 1px solid var(--line);
  padding-left: 30px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.filter {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.22s;
}

.filter:hover {
  color: var(--text);
  border-color: var(--steel-lo);
}

.filter.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--ink);
}

/* Article ---------------------------------------------------------------- */

.article-head {
  padding-block: clamp(38px, 5vw, 68px) 34px;
  border-bottom: 1px solid var(--line-soft);
}

.article-head h1 {
  font-size: var(--step-4);
  max-width: 20ch;
  margin-bottom: 20px;
}

.article-head .lede {
  max-width: 60ch;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs span {
  opacity: 0.5;
}

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}

.byline img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.byline b {
  display: block;
  font-size: 0.95rem;
}

.byline span {
  font-size: 0.83rem;
  color: var(--text-3);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 56px;
  align-items: start;
  padding-block: clamp(38px, 5vw, 60px);
}

.toc {
  position: sticky;
  top: 100px;
  font-size: 0.87rem;
}

.toc h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  padding: 2px 0 2px 15px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--text-3);
  line-height: 1.4;
  transition: color 0.2s, border-color 0.2s;
}

.toc li.lvl-3 a {
  padding-left: 27px;
  font-size: 0.83rem;
}

.toc a:hover,
.toc a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.prose {
  max-width: 68ch;
  font-size: 1.055rem;
  line-height: 1.72;
}

.prose > h2 {
  font-size: var(--step-3);
  margin-top: 2.1em;
  margin-bottom: 0.5em;
  scroll-margin-top: 100px;
}

.prose > h3 {
  font-size: var(--step-1);
  margin-top: 1.8em;
  margin-bottom: 0.45em;
  scroll-margin-top: 100px;
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--text-2);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  transition: border-color 0.2s;
}

.prose a:hover {
  border-bottom-color: var(--accent);
}

.prose ul,
.prose ol {
  color: var(--text-2);
  padding-left: 1.3em;
  margin-bottom: 1.4em;
}

.prose li {
  margin-bottom: 0.5em;
  padding-left: 0.25em;
}

.prose li::marker {
  color: var(--accent);
}

.prose blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.5;
  letter-spacing: -0.018em;
}

.prose blockquote p {
  color: var(--text);
  margin-bottom: 0.5em;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 1.8em 0;
}

.prose .anchor {
  opacity: 0;
  margin-left: 0.4em;
  color: var(--text-3);
  font-weight: 400;
  transition: opacity 0.2s;
}

.prose h2:hover .anchor,
.prose h3:hover .anchor {
  opacity: 1;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.15em 0.42em;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--accent);
}

.prose .code {
  margin: 1.8em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.prose .code__lang {
  padding: 9px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
}

.prose pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-2);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.8em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.prose th,
.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.prose th {
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

.prose td {
  color: var(--text-2);
}

.prose tr:last-child td {
  border-bottom: 0;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 1.8em 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-cta {
  position: relative;
  margin-top: 56px;
  padding: 32px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--accent-soft), transparent 58%), var(--surface);
  overflow: hidden;
}

.article-cta::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.55;
}

.article-cta h3 {
  font-size: var(--step-2);
  margin-bottom: 10px;
}

.article-cta p {
  color: var(--text-2);
  max-width: 54ch;
  margin-bottom: 22px;
}

.related {
  border-top: 1px solid var(--line);
  padding-top: 44px;
  margin-top: 56px;
}

/* 8. Forms, motion, responsive ========================================== */

.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
}

.field label span {
  color: var(--text-3);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.field--row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form__note {
  font-size: 0.83rem;
  color: var(--text-3);
}

.form__status {
  padding: 14px 16px;
  border-radius: 7px;
  font-size: 0.9rem;
  display: none;
}

.form__status.is-ok {
  display: block;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}

.form__status.is-err {
  display: block;
  border: 1px solid var(--rose);
  color: var(--rose);
}

.honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

.contact-panel {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.contact-panel::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.5;
}

.contact-panel > * {
  position: relative;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list .ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-list svg {
  width: 17px;
  height: 17px;
}

.contact-list b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 3px;
}

/* Reveal on scroll ------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay='1'] {
  transition-delay: 0.07s;
}
.reveal[data-delay='2'] {
  transition-delay: 0.14s;
}
.reveal[data-delay='3'] {
  transition-delay: 0.21s;
}
.reveal[data-delay='4'] {
  transition-delay: 0.28s;
}

/* 404 -------------------------------------------------------------------- */

.notfound {
  text-align: center;
  padding-block: clamp(70px, 12vw, 150px);
}

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.065em;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0.4;
  margin-bottom: 24px;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .thread {
    max-width: 400px;
    order: -1;
  }
  .builder {
    grid-template-columns: 1fr;
  }
  .builder__panel--out {
    position: static;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .toc {
    position: static;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .toc ol {
    border-left: 0;
  }
  .toc a {
    padding-left: 0;
    border-left: 0;
  }
  .toc li.lvl-3 a {
    padding-left: 16px;
  }
  .toc a:hover,
  .toc a.is-active {
    border-left: 0;
  }
}

@media (max-width: 960px) {
  html {
    scroll-padding-top: 84px;
  }
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: grid;
  }
  .nav__cta {
    display: none;
  }
  .head--split {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }
  .grid--4,
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contrast {
    grid-template-columns: 1fr;
  }
  .answer {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    border-bottom: 1px solid var(--line);
  }
  .stat:nth-child(2n) {
    border-right: 0;
  }
  .stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .pod {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .pod__n {
    font-size: 3.4rem;
  }
  .healthcheck {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
  .founder {
    grid-template-columns: 1fr;
  }
  .founder__photo {
    max-width: 340px;
  }
  .posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .post-card--featured {
    grid-column: span 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
  .post-card--featured .post-card__side {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
  }
  .foot__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .stack__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 620px) {
  .wrap {
    padding-inline: 18px;
  }
  .grid--4,
  .grid--3,
  .grid--2,
  .posts {
    grid-template-columns: 1fr;
  }
  .post-card--featured {
    grid-column: span 1;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: 0;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    padding-right: 0;
  }
  .cv li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .field--row {
    grid-template-columns: 1fr;
  }
  .faq details p {
    padding-right: 0;
  }
  .card,
  .problem,
  .pod,
  .builder__panel,
  .contact-panel {
    padding: 22px;
  }
  .rolerow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stepper {
    justify-self: start;
  }
  .prose {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .nav,
  .foot,
  .grain,
  .mobile-menu,
  .cta,
  .article-cta {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* 9. Report visuals ====================================================== */

/* A report canvas: header bar, slicers, visuals, caveat footer — the shape a
   real BI report actually has. */

.report {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.report::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.55;
  pointer-events: none;
}

.report__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.report__dots {
  display: flex;
  gap: 5px;
  flex: none;
}
.report__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  display: block;
}
.report__dots i:first-child {
  background: var(--accent);
  opacity: 0.85;
}

.report__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.report__slicers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.slicer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
  white-space: nowrap;
}
.slicer b {
  color: var(--text-2);
  font-weight: 500;
}
.slicer::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid var(--text-3);
}

.report__body {
  padding: 22px 20px 18px;
}

.report__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: space-between;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.report__viz-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
}

/* KPI tiles --------------------------------------------------------------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.tile::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.4;
}

.tile__label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.tile__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.tile__value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.tile__delta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.tile__delta--up {
  color: var(--arc);
  background: var(--arc-soft);
}
.tile__delta--down,
.tile__delta--bad {
  color: var(--accent);
  background: var(--accent-soft);
}

.tile__spark {
  margin-top: 12px;
}
.tile__spark svg {
  width: 100%;
  height: 34px;
}

.tile__note {
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--text-3);
}

/* Shared chart primitives ------------------------------------------------- */

.viz {
  width: 100%;
  height: auto;
  overflow: visible;
}

.viz__label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  fill: var(--text-2);
}

.viz__value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  fill: var(--text);
}
.viz__value--bad {
  fill: var(--accent);
}

.viz__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--text-3);
}
.viz__sub--bad {
  fill: var(--accent);
}
.viz__sub--on {
  fill: var(--ink);
  opacity: 0.75;
}

.viz__axis {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  fill: var(--text-3);
}
.viz__axis--end {
  text-anchor: end;
}
.viz__axis--mid {
  text-anchor: middle;
}
.viz__axis--yield {
  fill: var(--arc);
}

.viz__note {
  font-family: var(--font-mono);
  font-size: 9.5px;
  fill: var(--text-3);
  opacity: 0.85;
}

.viz__grid {
  stroke: var(--line-soft);
  stroke-width: 1;
}

.viz__ref {
  stroke: var(--arc);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.85;
}

.viz__ref-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  fill: var(--arc);
}

.bar__bg {
  fill: var(--surface-3);
}

.bar__fg {
  fill: var(--accent);
}
.bar__fg--hot {
  fill: var(--accent-hi);
}
.bar__fg--muted {
  fill: var(--steel-lo);
  opacity: 0.75;
}
.bar__fg--ok {
  fill: var(--arc);
}
.bar__fg--bad {
  fill: var(--accent);
  opacity: 0.95;
}

.dot {
  fill: var(--steel);
}
.dot--bad {
  fill: var(--accent);
}
.dot--ok {
  fill: var(--arc);
}

.cell {
  stroke: var(--surface);
  stroke-width: 1;
}
.cell--flag {
  stroke: var(--accent);
  stroke-width: 1.2;
}
.cell__t {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-anchor: middle;
  fill: var(--text-2);
}
.cell__t--on {
  fill: var(--accent-ink);
}

.line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.line--in {
  stroke: var(--arc);
}
.line--out {
  stroke: var(--accent);
}
.line--yield {
  stroke: var(--steel);
  stroke-width: 1.4;
  stroke-dasharray: 3 3;
}

.area {
  stroke: none;
}
.area--in {
  fill: var(--arc);
  opacity: 0.14;
}
.area--out {
  fill: var(--accent);
  opacity: 0.12;
}

.spark__line {
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke: var(--arc);
}
.spark__line--down,
.spark__line--bad {
  stroke: var(--accent);
}
.spark__area {
  fill: var(--arc);
  opacity: 0.13;
}
.spark__area--down,
.spark__area--bad {
  fill: var(--accent);
}
.spark__dot {
  fill: var(--arc);
}
.spark__dot--down,
.spark__dot--bad {
  fill: var(--accent);
}

/* Domain layout ----------------------------------------------------------- */

.domain {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  padding-block: clamp(46px, 6vw, 84px);
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 96px;
}

.domain:first-of-type {
  border-top: 0;
}

.domain__n {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

.domain h2 {
  font-size: var(--step-3);
  margin-bottom: 10px;
}

.domain__outcome {
  font-size: var(--step-1);
  color: var(--accent);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 16px;
  max-width: 26ch;
}

.domain__kpis {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 8px;
}

.domain__kpis li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.5;
}
.domain__kpis li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* The agent watch panel --------------------------------------------------- */

.watch {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}

.watch__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.watch__head svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.watch dl {
  margin: 0;
  padding: 6px 16px 14px;
}

.watch dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 12px;
}

.watch dd {
  margin: 4px 0 0;
  font-size: 0.885rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* Agent flow diagram (used in posts and on the analytics page) ------------- */

.agentflow {
  margin: 1.9em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.agentflow__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.agentflow__body {
  padding: 6px 18px 18px;
}

.agentstep {
  position: relative;
  padding: 14px 0 14px 34px;
}

.agentstep::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 22px;
  bottom: -14px;
  width: 1px;
  background: var(--line);
}

.agentstep:last-child::before {
  display: none;
}

.agentstep::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 19px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--surface);
  border: 1.5px solid var(--steel-lo);
}

.agentstep--signal::after,
.agentstep--action::after {
  border-color: var(--accent);
  background: var(--accent);
}

.agentstep--verdict::after {
  border-color: var(--accent);
  background: var(--surface);
}

.agentstep b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 5px;
}

.agentstep--signal b,
.agentstep--action b,
.agentstep--verdict b {
  color: var(--accent);
}

.agentstep span {
  display: block;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* Dimensional model grid -------------------------------------------------- */

.dimgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.dimcard {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.dimcard h4 {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.dimlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.dimlist li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  justify-content: space-between;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--accent);
}
.dimlist li:last-child {
  border-bottom: 0;
}
.dimlist li span {
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 0.8rem;
}

@media (max-width: 1080px) {
  .domain {
    grid-template-columns: 1fr;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .tiles,
  .dimgrid {
    grid-template-columns: 1fr;
  }
  .report__body {
    padding: 16px 12px 12px;
  }
  .report__bar {
    padding: 12px 14px;
  }
  .report__slicers {
    margin-left: 0;
    width: 100%;
  }
}

/* 10. Founder byline ===================================================== */

/* Small, high-trust founder presence used near the top of a page. Deliberately
   not a hero portrait: the hero still has to say what the business does. */

.fbyline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 14px 16px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  max-width: 480px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.fbyline::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--metal-edge);
  opacity: 0.45;
  transition: opacity 0.3s;
}

.fbyline:hover {
  border-color: var(--steel-lo);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.fbyline:hover::after {
  opacity: 1;
}

.fbyline img {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.86) contrast(1.05);
}

.fbyline__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.fbyline__text b {
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.fbyline__text > span {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.4;
}

.fbyline__go {
  margin-left: auto;
  flex: none;
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease);
}

.fbyline__go svg {
  width: 17px;
  height: 17px;
}

.fbyline:hover .fbyline__go {
  transform: translateX(3px);
}

.fbyline--compact {
  margin-top: 20px;
  max-width: none;
  background: var(--surface-2);
}

@media (max-width: 620px) {
  .fbyline {
    max-width: none;
  }
  .fbyline__text > span {
    font-size: 0.76rem;
  }
}

/* 11. Pod families ======================================================= */

.podfamily {
  padding-block: clamp(30px, 4vw, 52px) 0;
}

.podfamily:first-of-type {
  padding-top: 0;
}

.podfamily__head {
  max-width: 780px;
  margin-bottom: 26px;
}

.podfamily__head h2 {
  font-size: var(--step-3);
  margin-bottom: 10px;
}

.podfamily__head h3 {
  font-size: var(--step-2);
  margin-bottom: 8px;
}

.podfamily--mini {
  padding-block: 0 0;
  margin-top: 34px;
}

.podfamily--mini:first-of-type {
  margin-top: 0;
}

.podfamily--mini .podfamily__head {
  margin-bottom: 20px;
}
