/* Below-hero sections — Sternify construction (grid, density, card patterns,
   example visuals, motion) with Rumi brand and official copy only. */

.home, .maxie { --wrap: 1320px; --gutter: 20px; --sec-y: 100px; --radius: 20px; }

.home .sec, .maxie .sec, .sec { padding: var(--sec-y) 0; scroll-margin-top: 84px; }
.sec .wrap { width: min(var(--wrap), calc(100% - 40px)); }

/* 12-col intro: left heading, right supporting copy, optional kicker. */
.sec-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 16px;
  margin-bottom: 48px;
  align-items: end;
}
.sec-intro .kicker {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-text);
}
.sec-intro h2 {
  grid-column: 1 / 8;
  margin: 0;
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 3.6vw, 3.35rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}
.sec-intro .lede {
  grid-column: 8 / 13;
  margin: 0;
  max-width: none;
  color: var(--mute);
  font-size: 16.5px;
  line-height: 1.55;
  padding-bottom: 4px;
}
.sec-intro.center {
  text-align: center;
  justify-items: center;
}
.sec-intro.center .kicker,
.sec-intro.center h2,
.sec-intro.center .lede { grid-column: 1 / -1; }
.sec-intro.center h2 { max-width: 18ch; }
.sec-intro.center .lede { max-width: 40em; }
.sec-intro .lede:empty { display: none; }
.sec-intro:not(:has(.lede:not(:empty))) h2 { grid-column: 1 / -1; }

.home .sec-h, .maxie .sec-h { margin-bottom: 0; } /* prefer .sec-intro */

/* Shared reveal (works with home.js .reveal / .in) */
.reveal.will-reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

/* ========== 2. Replace a scattered stack of hires ========== */
.home #stack.sec, .maxie #stack.sec, #stack { padding-top: 120px; padding-bottom: 88px; }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: stretch;
}
.compare-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.compare-pane {
  position: relative;
  border-radius: var(--radius);
  min-height: 500px;
  overflow: hidden;
  isolation: isolate;
}
.compare-pane .tag {
  position: absolute; top: 18px; left: 18px; z-index: 3;
  font-size: 12px; font-weight: 650; letter-spacing: 0.04em;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #111214;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.compare-pane.after .tag {
  background: rgba(255,255,255,0.1);
  color: #fff;
  box-shadow: none;
}
.compare-pane.before {
  background-color: #E8EBEE;
  background-image:
    linear-gradient(to right, rgba(17,18,20,0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,18,20,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center;
}
.compare-pane.after { background: #111214; }

.hire-card {
  position: absolute;
  width: min(64%, 280px);
  background: #fff;
  color: #111214;
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 18px 44px -18px rgba(0,0,0,0.38), 0 0 0 1px rgba(0,0,0,0.04);
  transform: rotate(var(--r, 0deg)) translateY(16px);
  opacity: 0;
}
.sec.in-view .hire-card,
.prefers-static .hire-card {
  opacity: 1;
  transform: rotate(var(--r, 0deg)) translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
  .sec.in-view .hire-card {
    animation: hire-in 0.85s var(--ease) both;
    animation-delay: var(--d, 0s);
  }
}
@keyframes hire-in {
  from { opacity: 0; transform: rotate(var(--r, 0deg)) translateY(16px); }
  to { opacity: 1; transform: rotate(var(--r, 0deg)) translateY(0); }
}
.hire-card .role {
  font-size: 15px; font-weight: 650; letter-spacing: -0.01em;
}
.hire-card .kind {
  margin-top: 4px; font-size: 13px; color: #5A6270;
}
.hire-card .faces { display: flex; margin-top: 12px; }
.hire-card .faces img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  margin-left: -8px; box-shadow: 0 0 0 2px #fff;
}
.hire-card .faces img:first-child { margin-left: 0; }

/* Positions mimic a slightly messy stack of separate hires */
.hire-card.c1 { top: 64px;  left: 8%;  --r: -8deg; --d: 0.05s; z-index: 2; }
.hire-card.c2 { top: 118px; right: 6%; left: auto; --r: 7deg;  --d: 0.16s; z-index: 3; }
.hire-card.c3 { top: 210px; left: 14%; --r: -4deg; --d: 0.28s; z-index: 4; }
.hire-card.c4 { top: 292px; right: 10%; left: auto; --r: 6deg; --d: 0.40s; z-index: 5; }
.hire-card.c5 { top: 368px; left: 10%; --r: -6deg; --d: 0.52s; z-index: 6; }

.with-card {
  position: absolute;
  inset: 86px 48px 56px;
  background: #fff;
  color: #111214;
  border-radius: 18px;
  padding: 28px 26px 24px;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.55);
  display: flex; flex-direction: column; gap: 14px;
  transform: translateY(18px); opacity: 0;
}
.sec.in-view .with-card,
.prefers-static .with-card {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .sec.in-view .with-card {
    animation: hire-in 0.8s var(--ease) 0.2s both;
    --r: 0deg;
  }
}
.with-card .brandrow {
  display: flex; align-items: center; gap: 10px;
  font-weight: 650; letter-spacing: -0.02em;
}
.with-card .brandrow svg { width: 22px; height: 22px; color: var(--blue); }
.with-card h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.15;
}
.with-card p { color: #5A6270; font-size: 14.5px; }
.with-card .faces { display: flex; margin: 4px 0 2px; }
.with-card .faces img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center 18%;
  margin-left: -8px; box-shadow: 0 0 0 2px #fff;
}
.with-card .faces img:first-child { margin-left: 0; }
.with-card .price-line {
  margin-top: auto;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.with-card .price-line strong {
  font-family: var(--display); font-weight: 500;
  font-size: 1.65rem; letter-spacing: -0.03em;
}
.with-card .price-line span { font-size: 13px; color: #5A6270; }
.with-card .note { font-size: 12px; color: #6B7380; }

.demo-cursor {
  position: absolute; z-index: 8; top: 0; left: 0;
  width: 22px; height: 22px;
  pointer-events: none; color: #fff; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45));
  opacity: 0; will-change: transform, opacity;
}
.with-card.clicked { box-shadow: 0 30px 60px -24px rgba(0,100,212,0.35), 0 0 0 2px var(--blue); }

.pill {
  align-self: center;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--paper);
  font-size: 13.5px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line);
}
html[data-theme="light"] .pill { background: #fff; }
.pill strong { font-weight: 700; color: var(--paper); }
.pill.accent { background: #111214; color: #fff; box-shadow: none; }
html[data-theme="light"] .pill.accent,
html[data-theme="light"] .pill.accent strong { background: #111214; color: #fff; }
html[data-theme="dark"] .pill.accent,
html[data-theme="dark"] .pill.accent strong { background: #fff; color: #111214; }

.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 28px;
  margin-top: 28px;
  color: var(--mute);
  font-size: 14px; font-weight: 500;
}
.trust-row li {
  display: inline-flex; align-items: center; gap: 8px;
}
.trust-row li svg { width: 16px; height: 16px; color: var(--blue-text); flex-shrink: 0; }

/* ========== 3. Dark journey: three rich product visuals ========== */
#moments {
  background: #0A0A0A;
  color: #fff;
}
.home #moments.sec, .maxie #moments.sec, #moments { padding: 112px 0; }
#moments .sec-intro .kicker { color: #1793FF; }
#moments .sec-intro h2 { color: #fff; }
#moments .sec-intro .lede { color: #B8BDC6; }

.moments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.moment {
  background: #141518;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  display: flex; flex-direction: column;
  transform: translateY(24px); opacity: 0;
}
.sec.in-view .moment,
.prefers-static .moment {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .sec.in-view .moment {
    animation: hire-in 0.8s var(--ease) both;
    animation-delay: var(--d, 0s);
    --r: 0deg;
  }
}
.moment:nth-child(1) { --d: 0.05s; }
.moment:nth-child(2) { --d: 0.18s; }
.moment:nth-child(3) { --d: 0.31s; }
.moment-art {
  background: #0E0F12;
  min-height: 260px;
  padding: 18px 16px 8px;
  position: relative;
}
.moment-copy { padding: 18px 20px 22px; }
.moment-copy .label {
  font-size: 11px; font-weight: 650; letter-spacing: 0.08em;
  text-transform: uppercase; color: #1793FF;
}
.moment-copy h3 {
  margin-top: 6px;
  font-family: var(--display); font-weight: 500;
  font-size: 1.45rem; letter-spacing: -0.03em;
}
.moment-copy p { margin-top: 8px; color: #B8BDC6; font-size: 14.5px; }

/* Mini product surfaces inside moment / module art */
.ui {
  background: #fff; color: #111214;
  border-radius: 14px;
  padding: 14px 14px 16px;
  box-shadow: 0 16px 36px -20px rgba(0,0,0,0.6);
  font-size: 12.5px;
  height: 100%;
}
.ui .meta { font-size: 11px; font-weight: 650; color: #6B7380; letter-spacing: 0.02em; }
.ui h4 { font-family: var(--display); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.03em; margin: 6px 0 10px; }
.ui .field { display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px solid #EEF0F3; }
.ui .field b { width: 56px; color: #6B7380; font-weight: 600; }
.ui .line { color: #3F4653; line-height: 1.45; }
.ui .hold-chip {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 11px; font-weight: 650; color: var(--blue);
}
.ui .hold-chip svg { width: 12px; height: 12px; }
.bars { display: grid; gap: 9px; margin-top: 8px; }
.bars div { display: grid; grid-template-columns: 86px 1fr; gap: 8px; align-items: center; }
.bars span { font-size: 11px; color: #5A6270; }
.bars i { display: block; height: 8px; border-radius: 99px; background: #E8EBEE; position: relative; overflow: hidden; }
.bars i::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w);
  background: var(--blue); border-radius: inherit;
}
.sec.in-view .bars i::after { animation: bar-fill 1s var(--ease) both; }
@keyframes bar-fill { from { width: 0; } }
.sheet { display: grid; gap: 0; margin-top: 4px; border: 1px solid #EEF0F3; border-radius: 10px; overflow: hidden; }
.sheet div { display: grid; grid-template-columns: 1.1fr 0.8fr 1fr; gap: 6px; padding: 7px 10px; font-size: 11px; }
.sheet div:nth-child(odd) { background: #F6F7F9; }
.sheet em { font-style: normal; font-weight: 650; color: #6B7380; }
.cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.cal span {
  background: #F3F5F8; border-radius: 8px; padding: 8px 4px; text-align: center;
  font-size: 10px; color: #5A6270;
}
.cal span.on { background: #E8F1FB; color: var(--blue); font-weight: 650; }
.mail-row { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid #EEF0F3; }
.mail-row img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.mail-row b { font-size: 12px; }
.mail-row small { display: block; color: #6B7380; font-size: 11px; }

/* ========== 4. Two-column module cards ========== */
.home #work.sec, .maxie #work.sec, #work { padding-top: 112px; padding-bottom: 40px; }
.mods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}
.mod {
  background: var(--raised);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column;
  min-height: 0;
}
html[data-theme="light"] .mod { background: #fff; }
.mod-art {
  min-height: 280px;
  padding: 22px 22px 8px;
  background: #0E0F12;
}
html[data-theme="light"] .mod-art { background: #EEF1F5; }
.mod-art.ink { background: #0E0F12; }
.mod-art.mist { background: #E8F1FB; }
.mod-art.paper { background: #F3F5F8; }
.mod-copy { padding: 22px 24px 26px; }
.mod-copy .label {
  font-size: 11px; font-weight: 650; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue-text);
}
.mod-copy h3 {
  margin-top: 6px;
  font-family: var(--display); font-weight: 500;
  font-size: 1.55rem; letter-spacing: -0.03em;
}
.mod-copy p { margin-top: 8px; color: var(--mute); font-size: 15px; max-width: 42em; }

.mod.flip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}
.mod.flip .mod-art { min-height: 340px; padding: 28px; }
.mod.flip .mod-copy { display: flex; flex-direction: column; justify-content: center; padding: 36px 40px; }

.team-board {
  background: #fff; color: #111214; border-radius: 16px;
  padding: 18px; box-shadow: 0 18px 40px -20px rgba(0,0,0,0.45);
  display: grid; gap: 8px;
}
.team-board .row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 6px; border-bottom: 1px solid #EEF0F3;
}
.team-board .row:last-child { border-bottom: 0; }
.team-board img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center 18%; }
.team-board b { display: block; font-size: 13.5px; font-weight: 650; }
.team-board small { color: #5A6270; font-size: 12px; }
.team-board .st {
  font-size: 11px; font-weight: 650; color: var(--blue);
  background: #E8F1FB; padding: 4px 8px; border-radius: 999px;
}

/* ========== 5. Meet / The Hold — centered demo + 3 cards ========== */
.home #safety.sec, .maxie #safety.sec, #safety.sec { padding: 112px 0; background: transparent; color: inherit; }
#safety .hold-demo {
  margin: 0 auto 28px;
  max-width: 920px;
  background: #111214;
  color: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 80px -36px rgba(0,0,0,0.55);
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}
.hold-demo .pane { padding: 28px 26px; }
.hold-demo .pane + .pane { background: #0A0A0A; border-left: 1px solid rgba(255,255,255,0.08); }
.hold-demo .chrome {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 650; color: #B8BDC6; margin-bottom: 16px;
}
.hold-demo .chrome svg { width: 16px; height: 16px; color: #fff; }
.hold-demo .draft {
  background: #fff; color: #111214; border-radius: 14px; padding: 16px;
}
.hold-demo .draft .meta { font-size: 11px; font-weight: 650; color: #6B7380; }
.hold-demo .draft h4 { font-family: var(--display); font-weight: 500; font-size: 1.15rem; margin: 6px 0 10px; }
.hold-demo .draft p { font-size: 13.5px; color: #3F4653; }
.hold-demo .wait {
  margin-top: 18px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 650;
}
.hold-demo .wait svg { width: 20px; height: 20px; color: #1793FF; }
.hold-demo .actions { display: flex; gap: 8px; margin-top: 16px; }
.hold-demo .actions span {
  padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 650;
}
.hold-demo .actions .yes { background: var(--blue); color: #fff; }
.hold-demo .actions .no { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); color: #fff; }
.hold-pulse { width: 8px; height: 8px; border-radius: 50%; background: #1793FF; }
.sec.in-view .hold-pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.7); } }

.guard-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: 8px;
}
.guard-row article {
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  background: var(--raised);
}
html[data-theme="light"] .guard-row article { background: #fff; }
.guard-row h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 1.35rem; letter-spacing: -0.03em;
}
.guard-row p { margin-top: 8px; color: var(--mute); font-size: 14.5px; }

/* ========== 6. Dark product gallery / tools ========== */
#apps.band {
  background: #0A0A0A;
  color: #fff;
}
.home #apps.band, .maxie #apps.band, #apps.band { padding: 112px 0; }
#apps.band .sec-intro .kicker { color: #1793FF; }
#apps.band .sec-intro h2 { color: #fff; }
#apps.band .sec-intro .lede { color: #B8BDC6; }

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin: 0 calc(50% - 50vw) 0 0;
  padding-right: 20px;
}
.gallery-item {
  scroll-snap-align: start;
  background: #141518;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  min-height: 340px;
  display: flex; flex-direction: column;
}
.gallery-item .art { flex: 1; padding: 18px 16px 10px; background: #0E0F12; }
.gallery-item .cap { padding: 16px 18px 18px; }
.gallery-item h3 { font-size: 15px; font-weight: 650; }
.gallery-item p { margin-top: 4px; font-size: 13px; color: #B8BDC6; }
.gallery-item .st {
  display: inline-block; margin-top: 8px;
  font-size: 11px; font-weight: 650; letter-spacing: 0.04em;
  color: #1793FF;
}

.coming {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 22px;
}
.coming li {
  padding: 8px 12px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
  font-size: 13px; color: #C8CDD5;
}
.coming li small { color: #8B929C; margin-left: 6px; }

/* Desktop: three cards in view, the rest scroll — Sternify gallery density. */
@media (min-width: 800px) {
  .gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 40px) / 3);
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0;
    padding-right: 0;
    scrollbar-width: thin;
  }
  .gallery-item { scroll-snap-align: start; }
}

/* ========== 7. How the work happens (official steps, not testimonials) ========== */
.home #how.sec, .maxie #how.sec, #how { padding: 112px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.step {
  background: var(--raised);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column;
}
html[data-theme="light"] .step { background: #fff; }
.step-art { min-height: 200px; padding: 18px; background: #EEF1F5; }
html[data-theme="dark"] .step-art { background: #111214; }
.step-copy { padding: 20px 22px 24px; }
.step-copy .num {
  font-size: 12px; font-weight: 650; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue-text);
}
.step-copy h3 {
  margin-top: 6px;
  font-family: var(--display); font-weight: 500;
  font-size: 1.5rem; letter-spacing: -0.03em;
}
.step-copy p { margin-top: 8px; color: var(--mute); font-size: 14.5px; }

/* ========== 8. Plans — four equal cards ========== */
.home #pricing.sec, .maxie #pricing.sec, #pricing.sec { padding-top: 40px; padding-bottom: 80px; border: 0; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}
.plan-card {
  background: var(--raised);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 8px;
  min-height: 100%;
}
html[data-theme="light"] .plan-card { background: #fff; }
.plan-card.featured { box-shadow: inset 0 0 0 2px var(--blue); }
.plan-card .for { font-size: 12.5px; color: var(--mute); font-weight: 500; }
.plan-card h3 { font-size: 15px; font-weight: 650; }
.plan-card .price {
  font-family: var(--display); font-weight: 500;
  font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1;
  margin: 6px 0;
}
.plan-card .price small { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--mute); }
.plan-card .tag { font-size: 12px; color: var(--mute); }
.plan-card ul { margin: 10px 0 16px; display: grid; gap: 8px; }
.plan-card li {
  position: relative; padding-left: 16px;
  font-size: 13.5px; color: var(--mute);
}
.plan-card li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.plan-card .btn { margin-top: auto; text-align: center; }
.plan-note, .refills { margin-top: 16px; font-size: 13.5px; color: var(--mute); }
.plan-note a, .refills a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; }

/* ========== 9. Built to stay in your control — chip cloud ========== */
.home #fit.sec, .maxie #fit.sec, #fit { padding: 96px 0 112px; }
.orbit {
  position: relative;
  min-height: 460px;
  display: grid; place-items: center;
}
.orbit-core {
  width: 120px; height: 120px; border-radius: 50%;
  background: #111214; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.45);
  z-index: 2;
}
.orbit-core svg { width: 48px; height: 48px; }
.chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 20px -14px rgba(0,0,0,0.4);
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.92);
}
html[data-theme="light"] .chip { background: #fff; }
.sec.in-view .chip,
.prefers-static .chip {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .sec.in-view .chip {
    animation: chip-in 0.6s var(--ease) both;
    animation-delay: var(--d, 0s);
  }
}
@keyframes chip-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
.chip.c1 { top: 8%; left: 12%; --d: 0.05s; }
.chip.c2 { top: 6%; right: 16%; --d: 0.12s; }
.chip.c3 { top: 28%; left: 2%; --d: 0.18s; }
.chip.c4 { top: 26%; right: 4%; --d: 0.24s; }
.chip.c5 { top: 52%; left: 6%; --d: 0.30s; }
.chip.c6 { top: 50%; right: 8%; --d: 0.36s; }
.chip.c7 { bottom: 16%; left: 18%; --d: 0.42s; }
.chip.c8 { bottom: 14%; right: 14%; --d: 0.48s; }
.chip.c9 { bottom: 4%; left: 38%; --d: 0.54s; }

/* ========== FAQ in the same tight grid ========== */
.home #faq.sec, .maxie #faq.sec, #faq.sec { padding-top: 40px; padding-bottom: 80px; }
#faq .faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--gutter);
  border-top: 0;
}
#faq .faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
#faq .faq details:nth-child(odd):last-child { grid-column: 1; }

/* ========== Close CTA (dark typographic band) ========== */
.home .sec.close, .maxie .sec.close, .sec.close, .home #join.sec, #join.sec {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 120px 0 128px;
}
.sec.close .close-box, #join.sec .close-box {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 0; padding: 0;
}
.sec.close h2, #join.sec h2 {
  color: #fff;
  max-width: 16ch;
  font-size: clamp(2.4rem, 5vw, 4rem);
}
.sec.close p, #join.sec p { color: #B8BDC6; margin-left: auto; margin-right: auto; }
.sec.close .btn-ghost, #join.sec .btn-ghost {
  color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
}

/* Structured footer */
.home footer, .maxie footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px var(--gutter);
  align-items: start;
}
.foot-brand { display: flex; flex-direction: column; gap: 10px; }
.foot-brand .word { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.foot-brand img { width: 28px; height: 28px; }
.foot-brand p { color: var(--mute); font-size: 13.5px; max-width: 28em; }
.foot-col h4 { font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; color: var(--mute); }
.foot-col a { display: block; padding: 4px 0; font-size: 14px; }
.foot-col a:hover { color: var(--blue-text); }
.foot-legal {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; margin-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--mute);
}

/* Typing caret used in vignettes */
.ui .cursor, .type-caret {
  display: inline-block; width: 1.5px; height: 0.95em;
  background: var(--blue); margin-left: 1px; vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Maxie role modules (10 roles) */
.roles-mods { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.role-mod {
  display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center;
  background: var(--raised);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}
html[data-theme="light"] .role-mod { background: #fff; }
.role-mod img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 18%; }
.role-mod h3 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.03em; }
.role-mod p { margin-top: 4px; color: var(--mute); font-size: 14px; }
.role-mod .who { font-size: 12px; font-weight: 650; color: var(--blue-text); margin-top: 4px; }

/* ========== Mobile: same construction, stacked, readable type ========== */
@media (max-width: 799px) {
  .home, .maxie { --sec-y: 72px; }
  .sec .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .sec-intro { margin-bottom: 28px; }
  .sec-intro h2, .sec-intro .lede { grid-column: 1 / -1; }
  .sec-intro h2 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .sec-intro .lede { font-size: 15.5px; }
  #stack { padding-top: 88px; }
  .compare { grid-template-columns: 1fr; }
  .compare-pane { min-height: 420px; }
  .hire-card { width: min(70%, 240px); padding: 13px 14px 12px; }
  .hire-card.c1 { top: 54px; left: 6%; }
  .hire-card.c2 { top: 100px; right: 5%; }
  .hire-card.c3 { top: 168px; left: 10%; }
  .hire-card.c4 { top: 236px; right: 8%; }
  .hire-card.c5 { top: 304px; left: 8%; }
  .with-card { inset: 70px 22px 36px; padding: 20px 18px 18px; }
  .with-card h3 { font-size: 1.4rem; }
  .moments, .mods, .guard-row, .steps, .plan-grid, #faq .faq, .roles-mods {
    grid-template-columns: 1fr;
  }
  .mod.flip { grid-template-columns: 1fr; }
  .mod.flip .mod-art { min-height: 260px; padding: 18px; }
  .mod.flip .mod-copy { padding: 22px 20px 24px; }
  .mod-art, .moment-art { min-height: 220px; }
  #safety .hold-demo { grid-template-columns: 1fr; min-height: 0; }
  .hold-demo .pane + .pane { border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); }
  .gallery {
    grid-auto-columns: 78%;
    margin-right: calc(14px - 6vw);
  }
  .orbit {
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 0 4px;
  }
  .orbit-core { width: 96px; height: 96px; margin: 4px 0 10px; }
  .orbit-core svg { width: 40px; height: 40px; }
  .chip { position: static; font-size: 12.5px; padding: 8px 12px; white-space: nowrap; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .foot-brand { grid-column: 1 / -1; }
  .trust-row { gap: 10px 16px; font-size: 13px; justify-content: flex-start; }
  .home #moments.sec, .maxie #moments.sec, .home #apps.band, .maxie #apps.band,
  .home #safety.sec, .maxie #safety.sec, .home #how.sec, .maxie #how.sec,
  .home #fit.sec, .maxie #fit.sec, .home #work.sec, .maxie #work.sec,
  .home #stack.sec, .maxie #stack.sec { padding-top: 72px; padding-bottom: 72px; }
  .home #stack.sec, .maxie #stack.sec { padding-top: 88px; }
  .home .sec.close, .maxie .sec.close, .sec.close, #join.sec { padding: 80px 0 88px; }
}

@media (min-width: 800px) and (max-width: 1100px) {
  .plan-grid { grid-template-columns: 1fr 1fr; }
  /* gallery uses the shared 3-up scroll at mid widths too */
  .orbit { min-height: 500px; }
}

/* Reduced motion: end state, no loops, no caret blink */
@media (prefers-reduced-motion: reduce) {
  .reveal.will-reveal, .hire-card, .with-card, .moment, .chip, .demo-cursor {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .hire-card { transform: rotate(var(--r, 0deg)) !important; }
  .demo-cursor { display: none; }
  .sec.in-view .bars i::after, .hold-pulse, .ui .cursor, .type-caret { animation: none !important; }
  html { scroll-behavior: auto; }
}
