/* ETF Portfolio Mechanics landing page. Tokens match the member tools site. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Regular.woff2") format("woff2"),
       url("/assets/fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Medium.woff2") format("woff2"),
       url("/assets/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Bold.woff2") format("woff2"),
       url("/assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #F7F8FA;
  --ground: #FFFFFF;
  --rule: #E3E6EB;
  --wash: #EEF3F8;
  --ink: #0F1B2D;
  --muted: #5B6572;
  --axis: #68727F;
  --logo-navy: #0D284B;
  --navy: #153F64;
  --brand: #2279AE;
  --accent: #618A62;
  --amber: #AC7A39;
  --violet: #6740B2;
  --rose: #CC6699;
  --field: #878F9B;
  --radius: 6px;
  --gutter: 16px;
  --pad-x: 20px;
  --head-h: 64px;
  --measure: 31em;
  --font: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 600px) {
  :root { --gutter: 28px; }
}
@media (min-width: 768px) {
  :root { --pad-x: 28px; }
}
@media (min-width: 1000px) {
  :root { --head-h: 76px; }
}

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

html {
  background: var(--canvas);
  color: var(--ink);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* Focus and anchors clear the sticky header; the menu-bar sections land flush under it. */
:where([id], a[href], button, input, summary, video, [tabindex]) { scroll-margin-top: calc(var(--head-h) + 24px); }
main > section[id] { scroll-margin-top: var(--head-h); }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
}
@media (min-width: 600px) {
  body { font-size: 18px; }
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  text-wrap: balance;
}
h2 {
  max-width: 22em;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.018em;
}
h3 {
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
@media (min-width: 600px) {
  h2 { font-size: 36px; }
  h3 { font-size: 22px; }
}
@media (min-width: 1000px) {
  h2 { font-size: 40px; }
}

p { margin: 0; text-wrap: pretty; }
strong { font-weight: 700; }

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .12s ease-out, background-color .12s ease-out;
}
input { caret-color: var(--brand); }

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

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nowrap { white-space: nowrap; }

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

/* Type roles */
.label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.lead {
  max-width: 34em;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}
@media (min-width: 600px) {
  .lead { font-size: 20px; }
}
.caption {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* Launch state. No-JS renders the pre-launch state. */
html[data-state="pre"] .post-only { display: none !important; }
html[data-state="post"] .pre-only { display: none !important; }
html[data-state="post"] .join-wrap:not(.is-open) { display: none; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -200px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn,
.join-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .12s ease-out, border-color .12s ease-out, color .12s ease-out, transform .12s ease-out;
}
.btn-primary,
.join-form button {
  background: var(--logo-navy);
  border-color: var(--logo-navy);
  color: #FFFFFF;
}
.btn-primary:hover,
.join-form button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFFFF;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:active,
  .join-form button:active:not([disabled]) { transform: translateY(1px); }
}
@media (max-width: 479px) {
  .btn { max-width: 100%; padding: 12px 20px; white-space: normal; }
}
.btn-secondary,
html[data-state="post"] .join-form button {
  background: var(--ground);
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover,
html[data-state="post"] .join-form button:hover { background: var(--canvas); }
.btn-join { gap: 10px; }
.btn-join svg { flex: none; width: 20px; height: 20px; }

.textlink {
  appearance: none;
  padding: 6px 0;
  border: 0;
  border-radius: 2px;
  background: none;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color .12s ease-out;
}
.textlink:hover { color: var(--navy); text-decoration-thickness: 2px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}
@media (max-height: 520px) and (orientation: landscape) {
  .site-header { position: relative; }
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--head-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-right: auto;
  border-radius: var(--radius);
}
/* Fixed size in every state; the negative margins trim the logo file's built-in padding. */
.brand-logo {
  display: block;
  width: auto;
  max-width: none;
  height: 32px;
  margin: 0 -7px;
}
@media (min-width: 520px) {
  .brand-logo { height: 40px; margin: 0 -9px; }
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--canvas); color: var(--navy); }
.site-nav a.is-current { color: var(--navy); box-shadow: inset 0 -2px 0 var(--brand); }
.site-nav .nav-signin { position: relative; margin-left: 10px; padding-left: 10px; }
.site-nav .nav-signin::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 24px;
  margin-top: -12px;
  background: var(--rule);
}
.site-nav .nav-signin a { color: var(--brand); }
.site-nav .nav-signin a:hover { color: var(--navy); }

.btn-nav {
  min-height: 44px;
  padding: 0 14px;
  font-size: 17px;
}
@media (min-width: 1000px) {
  .btn-nav { min-height: 48px; margin-left: 8px; padding: 0 22px; }
}
/* Phones: compact button. Below 400px the short label from CONFIG keeps it on one line. */
.btn-nav .cta-short { display: none; }
@media (max-width: 519px) {
  .header-inner { gap: 6px; }
  .btn-nav {
    flex: none;
    min-height: 44px;
    padding: 0 8px;
    font-size: 16px;
    white-space: nowrap;
  }
}
@media (max-width: 399px) {
  .btn-nav { padding: 0 12px; }
  .btn-nav .cta-full { display: none; }
  .btn-nav .cta-short { display: inline; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.menu-open .nav-toggle .i-menu { display: none; }
.menu-open .nav-toggle .i-close { display: block; }

@media (max-width: 999px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ground);
    border-bottom: 1px solid var(--rule);
  }
  .menu-open .site-nav { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: 1180px;
    margin: 0 auto;
    padding: 4px var(--gutter) 12px;
  }
  .site-nav li + li { border-top: 1px solid var(--rule); }
  .site-nav a {
    display: flex;
    min-height: 56px;
    padding: 0 4px;
    border-radius: 0;
    font-size: 18px;
  }
  .site-nav a:hover { background: none; }
  .site-nav a.is-current { box-shadow: inset 3px 0 0 var(--brand); padding-left: 16px; }
  .site-nav .nav-signin { margin: 0; padding: 0; }
  .site-nav .nav-signin::before { display: none; }

  /* Without JS the links sit in a wrapped row under the bar. */
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav {
    display: block;
    position: static;
    order: 5;
    flex-basis: 100%;
    border: 0;
    background: none;
  }
  html:not(.js) .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 20px;
    padding: 0 0 8px;
  }
  html:not(.js) .site-nav li + li { border-top: 0; }
  html:not(.js) .site-nav a { min-height: 44px; padding: 0; font-size: 17px; }
}
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
}
html:not(.js) .nav-toggle { display: none; }

/* Sections */
.section { padding-top: 80px; }
@media (min-width: 600px) {
  .section { padding-top: 104px; }
}
@media (min-width: 1000px) {
  .section { padding-top: 136px; }
}
.label + h2 { margin-top: 14px; }
h2 + .lead { margin-top: 18px; }

/* Hero: source order is the visual order at every width (text, form, video). */
.hero {
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 32px;
  padding: 36px 0 48px;
}
.hero-text { container-type: inline-size; }
.hero-text .label { font-size: 15px; }
/* 9.5cqi keeps "Look inside your ETFs." on one line; 56px at full desktop width. */
.hero h1 {
  margin-top: 16px;
  font-size: 34px;
  font-size: clamp(31px, 9.5cqi, 56px);
  line-height: 1.08;
  letter-spacing: -0.022em;
}
.hero h1 span { display: block; }
.hero .lead {
  margin-top: 20px;
  color: var(--muted);
}
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    grid-template-areas:
      "text media"
      "cta  media";
    column-gap: 48px;
    row-gap: 36px;
    padding: 80px 0 88px;
  }
  .hero-text { grid-area: text; align-self: end; }
  .hero-media { grid-area: media; align-self: center; }
  .hero-cta { grid-area: cta; align-self: start; }
}

/* CTA block and form */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.join-wrap { width: 100%; }
.join-form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 560px;
  margin: 0;
}
.join-form input[type="email"] {
  flex: 1000 1 240px;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--field);
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  line-height: 1.2;
}
.join-form input[type="email"]::placeholder { color: var(--axis); opacity: 1; }
.join-form input[type="email"]:focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 2px; }
.join-form button { flex: 1 0 auto; }
.join-form button[disabled] { opacity: .7; cursor: progress; }
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}
@media (max-width: 479px) {
  .cta-block .btn { align-self: stretch; }
}
.cta-note {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}
.cta-fine {
  margin-top: -4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.form-done {
  max-width: 560px;
  padding: 16px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--wash);
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}
.form-done strong { overflow-wrap: anywhere; }
.form-done:focus { outline: none; }
.form-done:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-done.is-arriving { opacity: 0; }
.form-done.is-fading { transition: opacity .18s ease-out; }
.join-wrap.is-morphing { view-transition-name: join-done; }
.join-wrap.is-growing {
  overflow: clip;
  overflow-clip-margin: 4px;
  transition: height .28s var(--ease-out);
}

/* Fact strip */
.facts { border-top: 1px solid var(--rule); }
.facts ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  list-style: none;
}
.facts li {
  padding: 16px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.facts li + li { border-top: 1px solid var(--rule); }
.facts li span { display: block; text-wrap: balance; }
@media (min-width: 600px) and (max-width: 999px) {
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 20px 20px 20px 0; }
  .facts li + li { border-top: 0; }
  .facts li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--rule); }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (min-width: 1000px) {
  .facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts li {
    display: flex;
    align-items: center;
    min-height: 100px;
    padding: 24px;
  }
  .facts li:first-child { padding-left: 0; }
  .facts li + li { border-top: 0; border-left: 1px solid var(--rule); }
  .facts li span { max-width: 11.5em; }
}

/* Problem */
.problem-grid {
  display: grid;
  gap: 36px;
  margin-top: 44px;
}
.point {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.point h3 { max-width: 11.5em; }
.point p { max-width: var(--measure); margin-top: 12px; }
@media (min-width: 900px) {
  .problem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
    column-gap: 32px;
    row-gap: 0;
    margin-top: 56px;
  }
  .point {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 12px;
  }
  .point p { margin-top: 0; }
}

/* Method */
.h2-wide { max-width: none; }
.h2-wide span { display: block; }
.shot { margin: 0; }
.shot picture { display: block; }
.shot img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--ground);
}
.shot figcaption {
  max-width: 33em;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.method-shot { margin-top: 44px; }
@media (min-width: 1000px) {
  .method-shot { margin-top: 56px; }
}

/* Week: list on phones, label column to 767px, three plus three from 768px */
.week-panel {
  margin-top: 44px;
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.week-days {
  margin: 0;
  padding: 0;
  list-style: none;
}
.day { padding: 22px var(--pad-x) 24px; }
.day + .day { border-top: 1px solid var(--rule); }
.day-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.day-items {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.day-items strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.day-items .item {
  --item-rule: var(--rule);
  position: relative;
  padding: 13px 14px 11px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--canvas);
}
.day-items .item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--item-rule);
  transform-origin: left center;
}
.day-items .item-portfolio { --item-rule: var(--brand); background: #EEF3F8; }
.day-items .item-article { --item-rule: var(--accent); background: #EEF4EE; }
.day-items .item-macro { --item-rule: var(--amber); background: #F8F1E8; }
.day-items .item-dividend { --item-rule: var(--violet); background: #F1EDF8; }
.day-items .item-monthly { --item-rule: var(--rose); background: #FAF1F5; }
.day-items .item-when {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}
/* Entry fill-in: the text never hides; only the rule and the wash wait for the strip to arrive. */
@media (prefers-reduced-motion: no-preference) {
  .week-days.is-armed .item { transition: background-color .6s ease-out calc(var(--i, 0) * 60ms); }
  .week-days.is-armed .item::before { transition: transform .6s var(--ease-out) calc(var(--i, 0) * 60ms); }
  .week-days.is-waiting .item { background-color: var(--ground); }
  .week-days.is-waiting .item::before { transform: scaleX(0); }
}
@media (min-width: 640px) and (max-width: 767px) {
  .day {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    column-gap: 24px;
  }
  .day-name { padding-top: 3px; }
  .day-items { margin-top: 0; }
}
@media (min-width: 768px) {
  .week-days {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .day { padding: 24px var(--pad-x) 28px; }
  .day + .day { border-top: 0; }
  .day:nth-child(3n+2),
  .day:nth-child(3n+3) { border-left: 1px solid var(--rule); }
  .day:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .day-items { margin-top: 14px; }
}
@media (min-width: 1180px) {
  .day { padding: 26px var(--pad-x) 30px; }
  .day-items { margin-top: 16px; }
}

/* Video */
.video { margin: 0; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--ground);
}
html:not(.js) .video-frame > video:not([src]) { display: none; }
.video-fade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.video-fade.is-on { opacity: 1; }
.video-fade.is-fading { transition: opacity .2s ease-out; }
.video-toggle {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.js .video-toggle { display: block; }
.video.is-sound .video-toggle { display: none; }
.video-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; }
.video-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--ink);
  opacity: 0;
  transition: opacity .15s ease;
}
.video-icon svg { width: 30px; height: 30px; }
.video-icon .i-play { display: none; }
.video.is-paused .video-icon { opacity: 1; }
.video.is-paused .video-icon .i-play { display: block; }
.video.is-paused .video-icon .i-pause { display: none; }
.video-toggle:hover .video-icon,
.video-toggle:focus-visible .video-icon { opacity: 1; }
.video-toggle:hover .video-icon { color: var(--navy); }

.video-controls {
  display: none;
  margin-top: 12px;
}
.js .video-controls { display: flex; align-items: center; }
.video-sound {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 13px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s ease;
}
.video-sound:hover { background: var(--canvas); }
.video-sound svg { width: 20px; height: 20px; flex: none; }
.video-sound .i-silent,
.video-sound .label-off { display: none; }
.video.is-sound .video-sound .i-sound,
.video.is-sound .video-sound .label-on { display: none; }
.video.is-sound .video-sound .i-silent { display: block; }
.video.is-sound .video-sound .label-off { display: inline; }

/* Pillars */
.pillar {
  display: grid;
  row-gap: 28px;
}
.pillar + .pillar { margin-top: 72px; }
.pillar-text h3 {
  margin-top: 14px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.016em;
}
.pillar-text p {
  max-width: var(--measure);
  margin-top: 16px;
}
@media (min-width: 1000px) {
  .pillar {
    grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
    column-gap: 56px;
    align-items: center;
  }
  .pillar-a { grid-template-columns: minmax(0, 53fr) minmax(0, 47fr); }
  .pillar-a .pillar-media { grid-column: 1; grid-row: 1; }
  .pillar-a .pillar-text { grid-column: 2; grid-row: 1; }
  .pillar + .pillar { margin-top: 112px; }
  .pillar-text h3 { font-size: 30px; }
}

/* Tools */
.tools-figure { margin: 44px 0 0; }
.tool-grid {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (min-width: 1180px) {
  /* Ten cards as 3 + 3 + 2 + 2: the six research tools at a third each, the four portfolio and macro pages at a half each, no orphan row */
  .tool-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tool-card { grid-column: span 2; }
  .tool-card:nth-child(n+7) { grid-column: span 3; }
}
@media (min-width: 1000px) {
  .tools-figure { margin-top: 56px; }
}
.tool-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.tool-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: var(--canvas);
  border-bottom: 1px solid var(--rule);
}
.tool-body { padding: 22px var(--pad-x) 26px; }
.tool-body p {
  max-width: var(--measure);
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}
@media (min-width: 768px) {
  .tool-body { padding: 26px var(--pad-x) 30px; }
}
.tools-figure figcaption { margin-top: 20px; }

/* Tool screenshots open larger (the button is added by app.js, so no-JS keeps the plain image) */
.tool-zoom {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px 5px 0 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: zoom-in;
}
.tool-zoom:focus-visible { outline-offset: -4px; }
.tool-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px 5px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease-out;
}
.tool-zoom:focus-visible .tool-zoom-hint { opacity: 1; }
@media (hover: hover) {
  .tool-zoom:hover .tool-zoom-hint { opacity: 1; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--canvas);
  cursor: zoom-out;
  overscroll-behavior: contain;
}
.lightbox[hidden] { display: none; }
.lightbox:focus { outline: none; }
.lightbox.is-fading { transition: opacity .18s ease-out; }
.lightbox.is-faded { opacity: 0; }
.lb-bar {
  display: flex;
  flex: none;
  justify-content: flex-end;
}
.lb-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .12s ease-out;
}
.lb-close:hover { background: var(--canvas); }
.lb-close svg { flex: none; width: 20px; height: 20px; }
/* Largest 16:10 size that fits; padding, close bar, gaps and caption take 168px of height. */
.lb-figure {
  width: min(100%, calc((100vh - 168px) * 1.6), var(--lb-max, 1600px));
  margin: auto;
  cursor: auto;
}
@supports (height: 100dvh) {
  .lb-figure { width: min(100%, calc((100dvh - 168px) * 1.6), var(--lb-max, 1600px)); }
}
.lb-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--ground);
}
.lb-caption {
  margin-top: 14px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
/* Phones: the screenshot opens at a readable size in a pan-and-zoom pane, with the name and Close pinned above it. */
@media (max-width: 699px) {
  .lightbox {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px 12px;
  }
  .lb-bar,
  .lb-figure { display: contents; }
  .lb-close { grid-area: 1 / 2; }
  .lb-caption { grid-area: 1 / 1; align-self: center; margin: 0; }
  .lb-pane {
    grid-area: 2 / 1 / 3 / 3;
    align-self: start;
    max-height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--ground);
  }
  .lb-img {
    width: max(100%, 1100px);
    max-width: none;
    border: 0;
    border-radius: 0;
  }
}
html.has-lightbox { overflow: hidden; }
html.lock-gutter { scrollbar-gutter: stable; }

/* Fit */
.fit-grid {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}
@media (min-width: 720px) {
  .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (min-width: 900px) {
  .fit-grid { margin-top: 56px; }
}
.fit-card {
  padding: 26px var(--pad-x) 8px;
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
@media (min-width: 768px) {
  .fit-card { padding: 32px var(--pad-x) 10px; }
}
.fit-card h3 { font-size: 24px; }
.fit-card ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.fit-card li {
  max-width: var(--measure);
  padding: 18px 0 20px;
  border-top: 1px solid var(--rule);
}

/* Who */
.who-grid {
  display: grid;
  gap: 40px;
  margin-top: 44px;
}
@media (min-width: 900px) {
  .who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    align-items: start;
    margin-top: 56px;
  }
  .bios { padding-right: 32px; }
}
.bio h3 { font-size: 24px; }
.bio-sub {
  margin-top: 4px;
  color: var(--muted);
}
.bio-sub + p { max-width: var(--measure); margin-top: 14px; }
.bio + .bio {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.tr-halves { display: none; }
@media (max-width: 640px) {
  .who-shot .tr-wide { display: none; }
  .tr-halves { display: grid; gap: 16px; }
}
.who-close {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
}

/* How it works */
.steps {
  display: grid;
  gap: 36px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; margin-top: 56px; }
}
.step {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.step-num {
  display: block;
  color: var(--brand);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 900px) {
  .step-num { font-size: 72px; }
}
.step h3 { margin-top: 20px; }
.step p { max-width: var(--measure); margin-top: 10px; }
@media (min-width: 900px) {
  .steps { grid-template-rows: auto auto auto; row-gap: 0; }
  .step {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

/* FAQ */
.faq-list {
  margin-top: 44px;
  overflow: hidden;
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.faq-list details + details { border-top: 1px solid var(--rule); }
.faq-list details[open]:not(.is-closing) { background: var(--wash); }
.faq-list summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--pad-x);
  list-style: none;
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
@media (max-width: 399px) {
  .faq-list summary { font-size: 19px; }
}
.faq-q { text-wrap: balance; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { content: ""; }
.faq-list summary:hover { color: var(--navy); }
.faq-list summary:focus-visible { outline-offset: -4px; border-radius: var(--radius); }
.faq-list details[open]:not(.is-closing) > summary { color: var(--navy); }
.faq-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--ground);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--ink);
  transition: transform .2s ease-out;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-list details[open]:not(.is-closing) .faq-icon { border-color: var(--brand); }
.faq-list details[open]:not(.is-closing) .faq-icon::before,
.faq-list details[open]:not(.is-closing) .faq-icon::after { background: var(--brand); }
.faq-list details[open]:not(.is-closing) .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 var(--pad-x) 26px; }
.faq-a p { max-width: var(--measure); }
/* Open grows from @starting-style; app.js holds [open] until the closing reverse ends. */
@media (prefers-reduced-motion: no-preference) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details { transition: background-color .2s ease-out; }
  .faq-list summary { transition: color .2s ease-out; }
  .faq-a {
    overflow: clip;
    transition: height .2s var(--ease-out), opacity .2s ease-out;
  }
  .faq-list details.is-closing > .faq-a { height: 0; opacity: 0; }
  @starting-style {
    .faq-list details[open] > .faq-a { height: 0; opacity: 0; }
  }
  @supports not (interpolate-size: allow-keywords) {
    .faq-a { max-height: 60em; transition-property: max-height, opacity; }
    .faq-list details.is-closing > .faq-a { height: auto; max-height: 0; }
    @starting-style {
      .faq-list details[open] > .faq-a { height: auto; max-height: 0; }
    }
  }
}
@media (min-width: 768px) {
  .faq-list summary { padding: 24px var(--pad-x); }
  .faq-a { padding: 0 var(--pad-x) 30px; }
}
@media (min-width: 900px) {
  .faq-list { margin-top: 56px; }
}

/* Final CTA */
.cta-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px var(--pad-x) 56px;
  text-align: center;
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
@media (min-width: 600px) {
  .cta-panel { padding: 80px var(--pad-x) 88px; }
}
.cta-logo { width: 136px; }
.cta-panel h2 {
  margin-top: 28px;
  font-size: 26px;
}
@media (min-width: 600px) {
  .cta-panel h2 { font-size: 32px; }
}
@media (min-width: 1000px) {
  .cta-panel h2 { font-size: 36px; }
}
.cta-panel .lead {
  max-width: 30em;
  margin-top: 16px;
}
.final-cta {
  align-items: center;
  width: 100%;
  max-width: 560px;
  margin-top: 32px;
}
.final-cta .join-form { margin-inline: auto; }
.final-cta .form-done { margin-inline: auto; text-align: left; }

/* Footer */
.site-footer {
  margin-top: 96px;
  padding: 48px 0 40px;
  border-top: 1px solid var(--rule);
}
@media (min-width: 1000px) {
  .site-footer { margin-top: 136px; }
}
.footer-inner {
  display: grid;
  gap: 32px;
}
.footer-brand img { width: 112px; margin-left: -6px; }
.footer-brand p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 4px; }
.copyright {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--muted);
}
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto minmax(0, 1fr); column-gap: 48px; }
  .footer-nav { justify-self: end; }
  .footer-nav ul { justify-content: flex-end; }
  .copyright { grid-column: 1 / -1; }
}

/* Thanks page */
.thanks-main {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 64px 0;
}
.thanks-panel {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding: 48px var(--pad-x) 52px;
  text-align: center;
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
@media (min-width: 600px) {
  .thanks-panel { padding: 72px var(--pad-x) 76px; }
}
.thanks-panel .cta-logo { margin-inline: auto; }
.thanks-panel h1 {
  margin-top: 32px;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.022em;
}
@media (min-width: 600px) {
  .thanks-panel h1 { font-size: 48px; }
}
.thanks-panel .btn { margin-top: 32px; }

/* View transitions (started by app.js only when motion is allowed) */
html.vt-open::view-transition-group(tool-shot) { animation-duration: .36s; animation-timing-function: var(--ease-out); }
html.vt-close::view-transition-group(tool-shot) { animation-duration: .3s; animation-timing-function: var(--ease-out); }
html.vt-open::view-transition-group(root) { animation-duration: .24s; animation-timing-function: ease-out; }
html.vt-close::view-transition-group(root) { animation-duration: .2s; animation-timing-function: ease-out; }

html.vt-join::view-transition-old(root),
html.vt-join::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-join::view-transition-group(join-done) { animation-duration: .28s; animation-timing-function: var(--ease-out); }
html.vt-join::view-transition-old(join-done) { animation: lp-fade-out .14s ease-out both; mix-blend-mode: normal; }
html.vt-join::view-transition-new(join-done) { animation: lp-settle .28s var(--ease-out) both; mix-blend-mode: normal; }
@keyframes lp-fade-out { to { opacity: 0; } }
@keyframes lp-settle { from { opacity: 0; transform: translateY(4px); } }

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}
