/* Core variables, layout, components, and responsive rules */

:root {
  color-scheme: dark;
  --bg:var(--theme-component-page-3);
  --ink:var(--theme-component-ink-2);
  --muted:var(--theme-component-muted-1);
  --line:var(--theme-catalog-border-11);
  --green:var(--theme-component-primary-1);
  --green-soft:var(--theme-component-primary-83);
  --cyan:var(--theme-component-info-27);
  --amber:var(--theme-catalog-warning-14);
  --red:var(--theme-component-error-9);
  --panel:var(--theme-catalog-surface-16);
  --nav-h:72px;
  --sans:'Geist', sans-serif;
  --mono:"JetBrains Mono", Consolas, monospace;
  --bb-kelly:var(--green);
  --bb-text:var(--ink);
  --bb-error:var(--red);
  --font-tech:'Ultra', Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background:var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:var(--bg);
  color:var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-tap-highlight-color:var(--theme-component-primary-37);
}

a {
  color:inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  background:var(--ink);
  color:var(--theme-catalog-primary-18);
  border-radius:6px;
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline:3px solid var(--green);
  outline-offset:3px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom:1px solid var(--theme-catalog-border-19);
  background:var(--theme-component-page-8);
  backdrop-filter: blur(14px);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: max(14px, 0.92rem);
  color:var(--muted);
}

.nav-links a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover, .nav-links a:focus-visible {
  color:var(--ink);
}

.nav-links a:focus-visible, .faq summary:focus-visible {
  outline:3px solid var(--green);
  outline-offset:4px;
}

main {
  min-width: 0;
}

section {
  scroll-margin-top: calc(var(--nav-h) + 22px);
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 58px) 0 48px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter:saturate(0.9) contrast(1.05);
  transform: scale(1.03);
  animation: heroDrift 14s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:linear-gradient(90deg, var(--theme-component-page-4) 0%, var(--theme-component-page-8) 42%, var(--theme-catalog-page-22) 100%), linear-gradient(180deg, var(--theme-catalog-page-23) 0%, var(--theme-catalog-page-24) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:linear-gradient(var(--theme-catalog-surface-25) 1px, transparent 1px), linear-gradient(90deg, var(--theme-catalog-surface-25) 1px, transparent 1px);
  background-size:54px 54px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  gap: 26px;
}

h1, h2, h3, p {
  margin: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: 4.8rem;
  line-height: 0.96;
  font-weight: 950;
  text-wrap: balance;
}

.hero-copy {
  max-width: 660px;
  color:var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.section-block {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-heading {
  max-width: 780px;
  display: grid;
  gap: 15px;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: 3rem;
  line-height: 1.04;
  font-weight: 950;
  text-wrap: balance;
}

.section-heading p {
  color:var(--muted);
  font-size: 1.08rem;
  max-width: 650px;
}

.faq {
  display: grid;
  gap: 12px;
}

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

.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.15rem;
  font-weight: 850;
}

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

.faq details p {
  margin-top: 12px;
  color:var(--muted);
  max-width: 800px;
}

footer {
  padding: 34px 0;
  color:var(--muted);
  border-top:1px solid var(--line);
  background:var(--theme-catalog-page-26);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {

  from {
    transform: scale(1.03) translateX(0);
  }

  to {
    transform: scale(1.06) translateX(18px);
  }
}

@media (max-width: 900px) {

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 84svh;
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .section-heading h2 {
    font-size: 2.35rem;
  }
}

@media (max-width: 560px) {

  .brand span {
    white-space: normal;
  }

  .brand {
    min-height: 44px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-copy {
    font-size: max(15px, 1rem);
  }

  .section-block {
    padding: 66px 0;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .hero-media img, .reveal {
    transform: none;
  }
}

/* Tactical cursor */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 55px;
  height: 55px;
  border:1px solid var(--bb-kelly,var(--theme-catalog-border-27));
  border-radius:50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  z-index: 10000;
  transition: width .3s,height .3s,border-color .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:0 0 8px var(--theme-catalog-primary-28);
  background-image:linear-gradient(90deg,var(--bb-kelly,var(--theme-catalog-surface-29)) 20%,transparent 20%,transparent 80%,var(--bb-kelly,var(--theme-catalog-surface-29)) 80%),linear-gradient(180deg,var(--bb-kelly,var(--theme-catalog-surface-29)) 20%,transparent 20%,transparent 80%,var(--bb-kelly,var(--theme-catalog-surface-29)) 80%);
  background-position:center;
  background-size:100% 1px,1px 100%;
  background-repeat:no-repeat;
}

.cursor::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  border-top:1px dotted var(--bb-kelly,var(--theme-catalog-border-27));
  opacity: .4;
}

.cursor::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 1px;
  border-left:1px dotted var(--bb-kelly,var(--theme-catalog-border-27));
  opacity: .4;
}

.cursor-coords {
  position: absolute;
  right: -85px;
  top: -15px;
  font-family: var(--mono,Consolas,monospace);
  font-size: 14px;
  color:var(--bb-kelly,var(--theme-component-primary-1));
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow:0 0 5px var(--theme-catalog-primary-30);
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background:var(--theme-catalog-surface-31);
  border-radius:50%;
  transform: translate(-50%,-50%);
  z-index: 10001;
  pointer-events: none;
  box-shadow:0 0 12px var(--theme-catalog-primary-32);
}

.cursor.active {
  width: 85px;
  height: 85px;
  background:var(--theme-catalog-surface-33);
  border-color:var(--theme-component-border-7);
}

@media (max-width:768px) {

  .cursor,.cursor-dot {
    display: none;
  }
}

/* Homepage sections */

.hero-actions .btn-secondary {
  --bb-action-surface:var(--theme-catalog-surface-35);
}

.home-pain {
  border-block:1px solid var(--line);
  background:var(--theme-catalog-surface-36);
}

.home-pain-inner {
  width: min(1180px,calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px,.8fr) minmax(520px,1.2fr);
  gap: 58px;
  align-items: center;
  padding: 58px 0;
}

.home-pain h2 {
  font-size: 2.7rem;
  line-height: 1.04;
  font-weight: 950;
  text-wrap: balance;
}

.home-pain p {
  margin-top: 14px;
  color:var(--muted);
  font-size: max(15px, 1.06rem);
  max-width: 650px;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background:var(--theme-catalog-surface-37);
  border:1px solid var(--theme-catalog-border-38);
}

.before-after article {
  background:var(--theme-catalog-surface-36);
  padding: 24px;
  min-height: 260px;
}

.before-after h3 {
  font-size: 14px;
  font-family: var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  color:var(--green);
}

.before-after ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.before-after li {
  color:var(--muted);
  font-size: max(15px, .96rem);
  line-height: 1.35;
}

.before-after li::before {
  content: "//";
  color:var(--green);
  font-family: var(--mono);
  margin-right: 9px;
}

.home-proof {
  border-bottom:1px solid var(--line);
  background:var(--theme-component-page-3);
}

.home-proof-inner {
  width: min(1180px,calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
  display: grid;
  gap: 34px;
}

.home-proof-head {
  display: grid;
  grid-template-columns: minmax(280px,.8fr) minmax(460px,1fr);
  gap: 54px;
  align-items: end;
}

.home-proof-head h2 {
  font-size: 2.85rem;
  line-height: 1.04;
  font-weight: 950;
  text-wrap: balance;
}

.home-proof-head p {
  color:var(--muted);
  font-size: 1.08rem;
  max-width: 670px;
}

.home-proof-list {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background:var(--theme-catalog-surface-37);
  border:1px solid var(--theme-catalog-border-38);
}

.home-proof-stat {
  background:var(--theme-catalog-surface-36);
  padding: 26px;
  min-height: 170px;
}

.home-proof-stat strong {
  display: block;
  font-size: 2.45rem;
  line-height: 1;
  font-weight: 950;
  color:var(--ink);
}

.home-proof-stat span {
  display: block;
  margin-top: 12px;
  color:var(--ink);
  font-weight: 850;
}

.home-proof-stat p {
  margin-top: 8px;
  color:var(--muted);
  font-size: 15px;
  line-height: 1.38;
}

.home-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.home-paths span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border:1px solid var(--theme-catalog-border-39);
  border-radius:6px;
  color:var(--green);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 850;
  background:var(--theme-catalog-surface-40);
}

.home-lanes {
  width: min(1180px,calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.home-lanes-head {
  display: grid;
  grid-template-columns: minmax(260px,.72fr) minmax(420px,1fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 34px;
}

.home-lanes-head h2 {
  font-size: 3.05rem;
  line-height: 1.02;
  font-weight: 950;
  text-wrap: balance;
}

.home-lanes-head p {
  color:var(--muted);
  font-size: 1.08rem;
  max-width: 610px;
}

.lane-list {
  display: grid;
  border-top:1px solid var(--line);
}

.lane-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 24px 0;
  border-bottom:1px solid var(--line);
  text-decoration: none;
  transition: background-color .2s ease,padding-left .2s ease;
}

.lane-row:hover {
  padding-left: 12px;
  background:var(--theme-catalog-surface-41);
}

.lane-kicker {
  color:var(--green);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.lane-row strong {
  font-size: 1.32rem;
  line-height: 1.15;
}

.lane-row p {
  margin-top: 5px;
  color:var(--muted);
  max-width: 760px;
}

.lane-action {
  font-weight: 900;
  color:var(--ink);
  white-space: nowrap;
}

.home-trust {
  border-block:1px solid var(--line);
  background:var(--theme-catalog-surface-36);
}

.home-trust-inner {
  width: min(1180px,calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(300px,.8fr) minmax(520px,1.2fr);
  gap: 58px;
}

.home-trust h2 {
  font-size: 2.5rem;
  line-height: 1.06;
  font-weight: 950;
  text-wrap: balance;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1px;
  background:var(--theme-catalog-surface-37);
  border:1px solid var(--theme-catalog-border-38);
}

.trust-item {
  background:var(--theme-catalog-surface-36);
  padding: 22px;
}

.trust-item strong {
  display: block;
  font-size: 1.05rem;
}

.trust-item p {
  margin-top: 8px;
  color:var(--muted);
  font-size: max(15px, .94rem);
  line-height: 1.4;
}

.home-beta {
  border-bottom:1px solid var(--line);
  background:linear-gradient(90deg,var(--theme-catalog-surface-42),transparent 58%),var(--theme-catalog-surface-36);
}

.home-beta-inner {
  width: min(1180px,calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 50px 0;
}

.home-beta h2 {
  font-size: 2.4rem;
  line-height: 1.06;
  font-weight: 950;
}

.home-beta p {
  margin-top: 10px;
  color:var(--muted);
  max-width: 760px;
}

.home-beta .btn {
  white-space: nowrap;
}

.home-story {
  border-bottom:1px solid var(--line);
  background:var(--theme-component-page-3);
}

.home-story-inner {
  width: min(1180px,calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
  display: grid;
  grid-template-columns: minmax(260px,.7fr) minmax(520px,1.3fr);
  gap: 58px;
  align-items: center;
}

.story-photo {
  position: relative;
  aspect-ratio: 4/5;
  border:1px solid var(--line);
  border-radius:8px;
  background:linear-gradient(var(--theme-catalog-surface-43) 1px,transparent 1px),linear-gradient(90deg,var(--theme-catalog-surface-43) 1px,transparent 1px),var(--theme-catalog-surface-36);
  background-size:28px 28px;
  display: grid;
  place-items: center;
  gap: 10px;
  overflow: hidden;
}

.story-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.story-photo i {
  font-size: 2.4rem;
  color:var(--muted);
}

.story-photo span {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .06em;
  color:var(--muted);
  text-transform: uppercase;
}

.story-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.story-copy h2 {
  font-size: 2.6rem;
  line-height: 1.05;
  font-weight: 950;
  text-wrap: balance;
}

.story-copy p {
  color:var(--muted);
  font-size: max(15px, 1.04rem);
  line-height: 1.5;
  max-width: 700px;
}

.story-note {
  color:var(--ink);
  font-style: italic;
  border-left:2px solid var(--green);
  padding-left: 16px;
}

@media(max-width:900px) {

  .home-story-inner {
    grid-template-columns: 1fr;
    padding: 52px 0;
  }

  .story-photo {
    aspect-ratio: 1/1;
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
  }

  .story-copy h2 {
    font-size: 2.15rem;
  }
}

.home-faq {
  padding-top: 76px;
}

@media(max-width:900px) {

  .home-pain-inner,.home-proof-head,.home-lanes-head,.home-trust-inner,.home-beta-inner {
    grid-template-columns: 1fr;
  }

  .before-after,.home-proof-list,.trust-list {
    grid-template-columns: 1fr;
  }

  .lane-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lane-action {
    justify-self: start;
  }

  .home-lanes-head h2,.home-proof-head h2,.home-pain h2 {
    font-size: 2.35rem;
  }

  .home-beta h2,.home-trust h2 {
    font-size: 2rem;
  }
}

@media(max-width:560px) {

  .home-pain-inner,.home-proof-inner,.home-trust-inner {
    padding: 44px 0;
  }

  .home-lanes {
    padding: 66px 0;
  }

  .lane-row:hover {
    padding-left: 0;
  }

  .home-beta-inner {
    padding: 38px 0;
  }

  .before-after article,.home-proof-stat,.trust-item {
    padding: 20px 0;
  }
}

/* Site footer */

.bb-site-footer {
  position: relative;
  padding: 82px 16px 76px;
  border-top:1px solid var(--theme-catalog-border-44);
  background:linear-gradient(var(--theme-catalog-surface-45) 1px, transparent 1px),
      linear-gradient(90deg, var(--theme-catalog-surface-45) 1px, transparent 1px),
      var(--theme-component-page-18);
  background-size:54px 54px;
  color:var(--theme-catalog-ink-47);
  text-align: center;
}

.bb-site-footer .bb-footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.bb-site-footer .bb-footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.76;
  filter:drop-shadow(0 0 8px var(--theme-component-primary-39));
}

.bb-site-footer p {
  margin: 0;
  color:var(--theme-component-info-3);
  font-family: var(--mono, var(--font-code, "JetBrains Mono", Consolas, monospace));
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.bb-site-footer .bb-footer-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.bb-site-footer .bb-footer-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border:1px solid var(--bb-kelly, var(--theme-catalog-border-27));
  color:var(--bb-kelly, var(--theme-component-primary-1));
  background:var(--theme-catalog-surface-50);
  font-family: var(--mono, var(--font-code, "JetBrains Mono", Consolas, monospace));
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.bb-site-footer .bb-footer-actions a:hover,
  .bb-site-footer .bb-footer-actions a:focus-visible {
  background:var(--theme-catalog-focus-51);
  color:var(--theme-catalog-focus-52);
  outline:none;
  box-shadow:0 0 14px var(--theme-catalog-focus-53);
}

@media (max-width: 560px) {

  .bb-site-footer {
    padding: 58px 14px 54px;
  }

  .bb-site-footer .bb-footer-actions {
    width: 100%;
  }

  .bb-site-footer .bb-footer-actions a {
    width: 100%;
    max-width: 260px;
  }
}

/* Hero membership row (hidden once signed in; bb-nav-auth.js sets html.bb-signed-in) */
.hero-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size: max(14px, .95rem);
}
.hero-account .btn { padding: 9px 16px; font-size: max(14px, .9rem); min-height: 40px; }
.hero-account .btn-secondary { --bb-action-surface:var(--theme-catalog-surface-35); }
html.bb-signed-in .bb-guest-only { display: none !important; }
@media (max-width: 640px) {
  .hero-account { flex-direction: column; align-items: stretch; text-align: center; }
}

/* T381: shared Intel signup, using the homepage theme palette. */
.home-newsletter { padding: 56px 16px; background: var(--theme-surface); color: var(--theme-ink); border-top: 1px solid var(--theme-border); }
.home-newsletter-inner { max-width: 1180px; margin: auto; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; font-family: 'Geist', sans-serif; }
.home-newsletter h2 { font-family: 'Ultra', Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; margin: 12px 0; }
.home-newsletter p { color: var(--theme-muted); }
.home-newsletter-benefits { list-style: none; padding: 0; display: grid; gap: 14px; }
.home-newsletter-benefits li { display: flex; gap: 12px; align-items: flex-start; }
.home-newsletter-benefits img { flex: 0 0 24px; object-fit: contain; }
.home-newsletter .su-form { min-width: 0; }
.home-newsletter .su-l { display: block; margin-bottom: 8px; font-weight: 700; }
.home-newsletter .su-row { display: flex; flex-wrap: wrap; gap: 12px; }
.home-newsletter input[type="email"] { flex: 1 1 180px; min-width: 0; width: 100%; max-width: 100%; min-height: 48px; padding: 12px; font: inherit; font-size: 16px; background: var(--theme-inset); color: var(--theme-ink); border: 1px solid var(--theme-border); border-radius: 6px; }
.home-newsletter button[type="submit"] { min-height: 48px; padding: 12px 20px; font: inherit; font-weight: 700; background: var(--theme-primary); color: var(--theme-on-primary); border: 1px solid var(--theme-primary); border-radius: 6px; }
.home-newsletter button:hover { background: var(--theme-primary-hover); }
.home-newsletter button:disabled { opacity: .65; }
.home-newsletter :is(input, button):focus-visible { outline: 3px solid var(--theme-focus); outline-offset: 3px; }
.home-newsletter .intel-consent, .home-newsletter [role="status"] { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
@media (max-width: 700px) { .home-newsletter-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Mobile hero (Brett 10/30): on tall phones the 84svh hero left a big dim gap above the headline.
   Start the copy near the top and fill the space with the study loop instead. */
.hero-loop { display: none; }
@media (max-width: 900px) {
  .hero { min-height: auto; align-items: start; padding: calc(var(--nav-h) + 36px) 0 40px; }
  .hero-media img { opacity: 0.3; }
  .hero-media { mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
  .hero-loop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 4px 0 0; padding: 0; counter-reset: none; }
  .hero-loop li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 10px; background: rgba(6, 14, 11, 0.78); min-width: 0; }
  .hl-n { font: 600 12px var(--font-code, monospace); color: var(--green); letter-spacing: 0.08em; }
  .hl-t { font-weight: 800; font-size: 17px; color: var(--ink); }
  .hl-d { font-size: 14px; color: var(--muted); }
}
