/* Dark gold theme for login / register / pricing (same look as the homepage). */
body.page-inner {
  font-size: 16px;
  background: #05060a;
  color: #e8ecf4;
  overflow-x: clip;
  --ink: #e8ecf4;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --paper: #05060a;
  --soft: rgba(14, 18, 28, 0.72);
}
body.page-inner .m-section .sub { color: #94a3b8; }
body.page-inner .m-section h2 em { color: #fbbf24; font-style: italic; }
body.page-inner .price-lg { color: #fff; }
body.page-inner .price-lg span { color: #94a3b8; font-family: var(--body, "DM Sans", sans-serif); font-weight: 600; }
body.page-inner .p-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 20px;
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
body.page-inner .p-card ul { color: #b6c2d6; }
body.page-inner .p-card .p-blurb { color: #94a3b8; margin: 0 0 0.85rem; line-height: 1.55; }
body.page-inner .p-card .m-btn { margin-top: auto; width: 100%; justify-content: center; }
body.page-inner .popular-tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #111;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
body.page-inner .pricing-section {
  padding-top: clamp(2rem, 4vh, 2.75rem);
  padding-bottom: 3rem;
}
body.page-inner .price-grid { gap: 1.15rem; align-items: stretch; }
body.page-inner .m-footer {
  background: rgba(5, 6, 10, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-inner .auth-page::before {
  background:
    radial-gradient(ellipse 50% 40% at 70% 15%, rgba(245, 158, 11, 0.14), transparent 60%),
    radial-gradient(ellipse 40% 35% at 10% 30%, rgba(56, 189, 248, 0.07), transparent 60%);
}
body.page-inner .auth-card {
  background: rgba(14, 18, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  padding: 2.1rem 1.9rem 1.8rem;
}
body.page-inner .auth-icon {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}
body.page-inner .auth-card h1 {
  color: #fff;
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.5rem);
}
body.page-inner .auth-lede { color: #b6c2d6; font-size: 1.02rem; }
body.page-inner .auth-hint { color: #94a3b8; font-size: 0.88rem; }
body.page-inner .auth-error {
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}
body.page-inner .auth-form label span { color: #e2e8f0; font-size: 0.92rem; font-weight: 800; }
body.page-inner .auth-form input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.3);
  color: #fff;
  font-size: 1rem;
}
body.page-inner .auth-form input::placeholder { color: #7f8da3; }
body.page-inner .auth-form input:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}
body.page-inner .auth-form select {
  width: 100%;
  border: 1.5px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
body.page-inner .auth-form select option {
  background: #0e121c;
  color: #f8fafc;
}
body.page-inner .auth-form select:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}
body.page-inner .auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 520px) {
  body.page-inner .auth-form-row { grid-template-columns: 1fr; }
}
body.page-inner .auth-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #b6c2d6;
  cursor: pointer;
}
body.page-inner .auth-check input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #f59e0b;
  flex-shrink: 0;
}
body.page-inner .auth-check a { color: #fbbf24; font-weight: 700; }
body.page-inner .auth-form .req {
  font-style: normal;
  color: #f87171;
  font-weight: 800;
}
body.page-inner .auth-form .opt {
  font-style: normal;
  color: #64748b;
  font-weight: 500;
}
body.page-inner .legal-section { padding: 2rem 0 3rem; max-width: 42rem; margin: 0 auto; }
body.page-inner .legal-section h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display, "Fraunces", serif);
  color: #fff;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
}
body.page-inner .legal-body p {
  color: #cbd5e1;
  line-height: 1.75;
  margin: 0 0 1rem;
  font-size: 0.98rem;
}
body.page-auth-register .auth-page {
  max-width: min(34rem, 94vw);
}
body.terms-modal-open { overflow: hidden; }
.terms-gate {
  padding: 0.85rem 0 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.35rem;
}
.terms-gate-hint {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #94a3b8;
}
.terms-gate-hint.ok { color: #4ade80; }
.terms-gate-hint strong { color: #e2e8f0; }
.terms-open-btn { width: 100%; justify-content: center; }
.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
.terms-modal[hidden] { display: none !important; }
.terms-modal-panel {
  width: min(520px, 100%);
  max-height: min(90vh, 640px);
  display: flex;
  flex-direction: column;
  background: rgba(14, 18, 28, 0.98);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.terms-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.terms-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
  font-family: var(--display, "Fraunces", serif);
}
.terms-modal-close {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}
.terms-modal-lede {
  margin: 0;
  padding: 0.65rem 1.1rem 0;
  font-size: 0.82rem;
  color: #94a3b8;
}
.terms-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  margin: 0.65rem 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 6, 10, 0.85);
  font-size: 0.88rem;
  line-height: 1.65;
  color: #cbd5e1;
}
.terms-scroll h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  color: #fbbf24;
}
.terms-scroll h3:first-child { margin-top: 0; }
.terms-scroll p { margin: 0 0 0.75rem; }
.terms-scroll-end {
  margin-top: 1rem !important;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(251, 191, 36, 0.35);
  color: #fbbf24 !important;
  font-weight: 700;
  text-align: center;
}
.terms-modal-foot {
  padding: 0.85rem 1.1rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.terms-agree-btn {
  width: 100%;
  justify-content: center;
}
.terms-agree-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
}
body.page-inner .auth-submit { font-size: 1.02rem; font-weight: 800; }
body.page-inner .auth-switch { color: #b6c2d6; }
body.page-inner .auth-switch a { color: #fbbf24; }
body.page-inner .auth-perk,
body.page-inner .auth-note {
  background: rgba(14, 18, 28, 0.85);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}
body.page-inner .auth-perk strong,
body.page-inner .auth-note strong { color: #fff; font-size: 0.98rem; }
body.page-inner .auth-perk p,
body.page-inner .auth-note p { color: #a3b0c4; font-size: 0.88rem; }
body.page-inner .perk-ico {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fbbf24;
}

/* Pricing */
body.page-inner .m-section h1,
body.page-inner .m-section h2,
body.page-inner .section-head h2 { color: #fff; }
body.page-inner .m-section h2 em, body.page-inner h1 em { color: #fbbf24; }
body.page-inner .p-card { background: rgba(14, 18, 28, 0.9); border: 1px solid rgba(255, 255, 255, 0.1); }
body.page-inner .p-card h3, body.page-inner .p-card .price, body.page-inner .p-card strong { color: #fff; }
body.page-inner .p-card li, body.page-inner .p-card p { color: #b6c2d6; }
body.page-inner .p-card.popular { border-color: #f59e0b; box-shadow: 0 22px 54px rgba(245, 158, 11, 0.2); }
body.page-inner .m-btn.outline { background: transparent; border-color: rgba(251, 191, 36, 0.5); color: #fbbf24; }
body.page-inner .m-nav { background: rgba(8, 10, 16, 0.88); }
body.page-inner .m-nav-links a { color: #cbd5e1; font-weight: 600; }
body.page-inner .m-nav-links a:hover, body.page-inner .m-nav-links a.active { color: #fbbf24; }
body.page-inner .m-brand { color: #f8fafc; }
body.page-inner .wrap { position: relative; z-index: 1; max-width: 100%; }
body.page-inner .auth-page { padding: 2.25rem 0 3rem; overflow-x: clip; }
body.page-inner .auth-layout {
  grid-template-columns: 1fr;
  max-width: min(28rem, 100%);
  gap: 0;
  margin: 0 auto;
}
body.page-inner .auth-aside {
  grid-template-columns: 1fr;
  gap: 0.65rem;
  padding-top: 1.35rem;
}
body.page-inner .auth-perk { padding: 0.75rem 0.85rem; }
body.page-inner .auth-notes {
  max-width: min(28rem, 100%);
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

/* Login V1: project hero (mirrored) — robot left, login card right + home robot FX */
body.page-auth-hero {
  background: #05060a;
  min-height: 100vh;
  --robot-img: url("/static/design/backgrounds/hero_bg_robot_wide.jpg");
  --robot-size: min(100%, max(100vw, calc(92vh * 1.7778))) auto;
  --robot-pos: 70% 8vh;
}
body.page-auth-hero .home-glow { display: none; }
body.page-auth-hero::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: scaleX(-1);
  transform-origin: center center;
  background:
    linear-gradient(90deg, #05060a 0%, rgba(5, 6, 10, 0.55) 34%, rgba(5, 6, 10, 0) 62%),
    var(--robot-img) var(--robot-pos) / var(--robot-size) no-repeat,
    #05060a;
}
body.page-auth-hero .robot-fx {
  z-index: 0;
  transform: scaleX(-1);
  transform-origin: center center;
}
body.page-auth-hero .fx-tag {
  transform: scaleX(-1);
}
body.page-auth-hero .fx-scanline {
  left: 0;
  right: 48%;
}
body.page-auth-hero .m-nav,
body.page-auth-hero .m-footer { display: none; }
body.page-auth-hero .auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vh, 2rem);
  box-sizing: border-box;
}
body.page-auth-hero .auth-page::before { display: none; }
body.page-auth-hero .auth-page {
  padding: 0;
  min-height: 0;
  width: 100%;
  max-width: min(26rem, 100%);
  display: block;
  position: relative;
  z-index: 1;
}
body.page-auth-hero .auth-layout {
  margin: 0 auto;
  max-width: none;
  width: 100%;
}
body.page-auth-hero .auth-card {
  text-align: left;
}
body.page-auth-hero .auth-brand {
  display: inline-flex;
  margin-bottom: 1.35rem;
  color: #f8fafc;
}
body.page-auth-hero .auth-card h1 {
  margin-top: 0;
}
body.page-auth-register .auth-shell {
  align-items: flex-start;
  padding-top: clamp(1.25rem, 4vh, 2.5rem);
  padding-bottom: clamp(1.25rem, 4vh, 2.5rem);
}
@media (min-height: 820px) {
  body.page-auth-register .auth-shell {
    align-items: center;
  }
}
body.page-auth-hero .auth-aside,
body.page-auth-hero .auth-notes { display: none; }
@media (max-width: 980px) {
  body.page-auth-hero {
    --robot-size: cover;
    --robot-pos: 78% 30%;
  }
  body.page-auth-hero::before {
    background:
      linear-gradient(180deg, #05060a 0%, rgba(5, 6, 10, 0.78) 50%, rgba(5, 6, 10, 0.92) 100%),
      var(--robot-img) var(--robot-pos) / var(--robot-size) no-repeat,
      #05060a;
  }
  body.page-auth-hero .auth-page {
    max-width: min(26rem, 92vw);
  }
  body.page-auth-hero .auth-layout {
    margin-left: auto;
    margin-right: auto;
  }
}

body.page-inner .lede, body.page-inner .section-lede { color: #b6c2d6; }

.m-footer .m-btn, .m-footer a.m-btn { color: #111 !important; }

/* ---------- Brand: gold robot badge + iFXdesk + caption (matches the desk sidebar) ---------- */
.m-brand { gap: 0.7rem; }
.m-brand .m-logo {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(145deg, #fcd34d, #d97706);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.m-brand-text { display: grid; gap: 0.14rem; line-height: 1; }
.m-brand-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.m-brand-name b { color: #fbbf24; font-weight: 800; }
.m-brand-cap { font-size: 0.56rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(251, 191, 36, 0.85); }

/* ---------- Homepage: robot head + candles background across the WHOLE page (fixed layer) ---------- */
body.page-home:not(.page-inner)::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #05060a 0%, rgba(5, 6, 10, 0.55) 34%, rgba(5, 6, 10, 0) 62%),
    var(--robot-img) var(--robot-pos) / var(--robot-size) no-repeat,
    #05060a;
}
/* dark veil that fades in while scrolling so the lower sections stay readable (the hero stays bright) */
body.page-home:not(.page-inner)::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: rgba(5, 6, 10, 0.72); opacity: 0.55;
}
@supports (animation-timeline: scroll()) {
  body.page-home:not(.page-inner)::after {
    opacity: 0;
    animation: home-veil linear both; animation-timeline: scroll(root); animation-range: 0 640px;
  }
  @keyframes home-veil { to { opacity: 1; } }
}
body.page-home:not(.page-inner) .m-footer { position: relative; z-index: 1; background: rgba(5, 6, 10, 0.92); }
body.page-home:not(.page-inner) .home-glow { z-index: 0; }

body.page-home .m-hero-robot {
  min-height: min(640px, calc(100vh - 150px));
  padding: 3.6rem 0 3rem;
  display: flex; align-items: center;
}
body.page-home .m-hero-robot .hero-copy { max-width: 40rem; }
body.page-home .m-hero-robot h1 {
  max-width: none; font-size: clamp(3rem, 6.4vw, 5.4rem); line-height: 1; margin: 0;
}
body.page-home .m-hero-robot .lede { color: #cbd5e1; font-size: 1.1rem; max-width: 36rem; }
body.page-home .m-hero-robot .trust-chips span { background: rgba(8, 10, 16, 0.6); backdrop-filter: blur(6px); }
@media (max-width: 980px) {
  body.page-home .m-hero-robot { min-height: 0; padding: 2.4rem 0 2.2rem; }
  body.page-home:not(.page-inner)::before {
    background:
      linear-gradient(90deg, #05060a 0%, rgba(5, 6, 10, 0.78) 60%, rgba(5, 6, 10, 0.5) 100%),
      var(--robot-img) var(--robot-pos) / var(--robot-size) no-repeat,
      #05060a;
  }
  body.page-home:not(.page-inner) { --robot-size: cover; --robot-pos: 78% 30%; }
}
/* ---------- "See what members see" preview: black-and-gold glass ---------- */
body.page-home .pv-eyebrow {
  display: table; margin: 0 auto 0.9rem; padding: 0.38rem 1rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #fbbf24;
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.35);
}
body.page-home .pv-title em { font-style: italic; color: #fbbf24; }
body.page-home .members-preview {
  background: linear-gradient(180deg, rgba(10, 12, 19, 0.82), rgba(6, 8, 13, 0.9));
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 28px; padding: 1.3rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 70px rgba(245, 158, 11, 0.12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.page-home .preview-grid { padding-top: 0; gap: 1rem; }
body.page-home .preview-card {
  position: relative; background: linear-gradient(180deg, rgba(14, 17, 26, 0.95), rgba(9, 11, 18, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 1.15rem 1.1rem;
  overflow: hidden; transition: border-color 0.2s, transform 0.2s;
}
body.page-home .preview-card::before {
  content: ""; position: absolute; left: 14%; right: 14%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.75), transparent);
}
body.page-home .preview-card:hover { border-color: rgba(251, 191, 36, 0.38); transform: translateY(-2px); }
body.page-home .preview-card h3 { font-size: 1.02rem; font-weight: 800; color: #fff; gap: 0.55rem; margin-bottom: 0.95rem; }
body.page-home .pv-ico {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(145deg, #fcd34d, #d97706) center / 100% no-repeat;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  -webkit-mask: none; position: relative;
}
body.page-home .pv-ico::before {
  content: ""; position: absolute; inset: 5px 4px 4px; border-radius: 5px; background: #1a1204;
}
body.page-home .pv-ico::after {
  content: ""; position: absolute; left: 8px; right: 8px; top: 10px; height: 4px; border-radius: 3px;
  background: #fbbf24; box-shadow: 0 0 0 0 transparent;
}
body.page-home .live-dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2), 0 0 12px rgba(34, 197, 94, 0.6); animation: pv-pulse 2s ease-in-out infinite; }
@keyframes pv-pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.05), 0 0 16px rgba(34, 197, 94, 0.8); } }
body.page-home .setup-head { font-size: 0.82rem; margin-bottom: 0.7rem; gap: 0.5rem; }
body.page-home .setup-head strong { color: #fff; }
body.page-home .badge-bull { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.4); color: #4ade80; letter-spacing: 0.06em; }
body.page-home .kv { font-size: 0.9rem; gap: 0; margin-bottom: 1rem; }
body.page-home .kv span, body.page-home .kv strong { padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
body.page-home .kv span { color: #8b97ab; }
body.page-home .kv strong { color: #fff; font-weight: 800; }
body.page-home .kv span:nth-last-child(2), body.page-home .kv strong:last-child { border-bottom: 0; }
body.page-home .kv strong:nth-child(2) { color: #fbbf24; }
body.page-home .preview-chart { border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.07); background:
  linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px) 0 0 / 100% 20px,
  linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px) 0 0 / 30px 100%, #080a11; }
body.page-home .preview-chart .band-label { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.04em; }
body.page-home .band.res { opacity: 0.32; }
body.page-home .band.sup { opacity: 0.36; }
body.page-home .rsi { background: #080a11; border-color: rgba(255, 255, 255, 0.07); }
body.page-home .rsi polyline { stroke: #fbbf24; filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.6)); }
body.page-home .preview-card .watch-row { padding: 0.62rem 0; border-bottom-color: rgba(255, 255, 255, 0.07); font-size: 0.88rem; }
body.page-home .preview-card .watch-row strong { color: #fff; font-weight: 700; }
body.page-home .preview-card .watch-row .muted { color: #8b97ab; font-size: 0.8rem; }
body.page-home .preview-card .lock { opacity: 0.8; filter: sepia(1) saturate(4) hue-rotate(5deg); }
body.page-home .preview-card .comment { color: #cbd5e1; font-size: 0.95rem; line-height: 1.7; }
body.page-home .preview-card .meta-line { color: #7c889c; font-size: 0.8rem; }
body.page-home .preview-cta {
  background: rgba(251, 191, 36, 0.05); border: 1.5px solid rgba(251, 191, 36, 0.5); color: #fbbf24;
  font-weight: 800; padding: 0.8rem 1rem;
}
body.page-home .preview-cta:hover { background: rgba(251, 191, 36, 0.16); border-color: #fbbf24; color: #fde68a; }

/* ---------- Founder page (/about) — separate from homepage “about us” features ---------- */
body.page-founder-about {
  background: #05060a;
}
body.page-founder-about .founder-section {
  padding: clamp(2rem, 5vh, 3.5rem) 0 3rem;
}
body.page-founder-about .founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
body.page-founder-about .founder-photo {
  margin: 0;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  background: #0a0c12;
  max-width: 420px;
}
body.page-founder-about .founder-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 10, 0.75) 100%);
}
body.page-founder-about .founder-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 12%;
}
body.page-founder-about .founder-eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
body.page-founder-about .founder-copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.08;
  color: #fff;
  letter-spacing: -0.03em;
}
body.page-founder-about .founder-copy h1 em { color: #fbbf24; font-style: italic; }
body.page-founder-about .founder-name {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
body.page-founder-about .founder-role {
  margin: 0 0 1.15rem;
  color: #94a3b8;
  font-size: 0.92rem;
  font-weight: 600;
}
body.page-founder-about .founder-story p {
  margin: 0 0 0.95rem;
  color: #cbd5e1;
  line-height: 1.75;
  font-size: 1.02rem;
}
body.page-founder-about .founder-story strong { color: #f8fafc; font-weight: 700; }
body.page-founder-about .founder-story em { color: #fbbf24; font-style: italic; }
body.page-founder-about .founder-points {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
body.page-founder-about .founder-points li {
  position: relative;
  padding-left: 1.45rem;
  color: #b6c2d6;
  font-size: 0.94rem;
  line-height: 1.45;
}
body.page-founder-about .founder-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #fbbf24;
  font-weight: 800;
}
body.page-founder-about .founder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (max-width: 900px) {
  body.page-founder-about .founder-grid {
    grid-template-columns: 1fr;
  }
  body.page-founder-about .founder-photo {
    max-width: min(340px, 100%);
    margin: 0 auto;
  }
}

/* ====================== Homepage robotic effects (subtle, slow) ====================== */
.robot-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; --eye-x: 62%; --eye-y: 40%; --eye-s: 1; }
body.page-home:not(.page-inner) {
  --robot-img: url("/static/design/backgrounds/hero_bg_robot_wide.jpg");
  /* whole head visible: image is a bit smaller and sits lower, below the nav + ticker */
  --robot-size: min(100%, max(100vw, calc(92vh * 1.7778))) auto;
  --robot-pos: 70% 8vh;
}
.fx-pulse, .fx-scanband {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #05060a 0%, rgba(5, 6, 10, 0.55) 34%, rgba(5, 6, 10, 0) 62%),
    var(--robot-img) var(--robot-pos) / var(--robot-size) no-repeat;
  mix-blend-mode: screen;
}
/* 1) light pulses travelling along the circuit lines + candles (bright copy of the art, revealed by a moving band) */
.fx-pulse {
  filter: brightness(2.7) saturate(1.5) contrast(1.15);
  -webkit-mask-image: linear-gradient(118deg, transparent 0 43%, #000 50%, transparent 57% 100%);
          mask-image: linear-gradient(118deg, transparent 0 43%, #000 50%, transparent 57% 100%);
  -webkit-mask-size: 320% 100%; mask-size: 320% 100%;
  animation: fx-sweep 8s linear infinite;
}
@keyframes fx-sweep { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0% 0; mask-position: 0% 0; } }
/* 2) scan: bright band + thin gold line moving down across the head */
.fx-scanband {
  filter: brightness(2.2) saturate(1.4);
  -webkit-mask-image: linear-gradient(180deg, transparent 0 44%, #000 50%, transparent 56% 100%);
          mask-image: linear-gradient(180deg, transparent 0 44%, #000 50%, transparent 56% 100%);
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%;
  animation: fx-scanband 6.5s ease-in-out infinite;
}
@keyframes fx-scanband { from { -webkit-mask-position: 0 68%; mask-position: 0 68%; } to { -webkit-mask-position: 0 35%; mask-position: 0 35%; } }
.fx-scanline {
  position: absolute; left: 52%; right: 0; top: 14vh; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.95) 30%, rgba(253, 230, 138, 1) 60%, transparent);
  box-shadow: 0 0 14px 2px rgba(251, 191, 36, 0.55);
  animation: fx-scanline 6.5s ease-in-out infinite;
}
@keyframes fx-scanline { from { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } to { transform: translateY(66vh); opacity: 0; } }
/* 3) eye halo that breathes */
.fx-halo {
  position: absolute; left: var(--eye-x); top: var(--eye-y);
  width: calc(280px * var(--eye-s)); height: calc(280px * var(--eye-s)); margin: calc(-140px * var(--eye-s)) 0 0 calc(-140px * var(--eye-s));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 120, 0.85) 0%, rgba(251, 191, 36, 0.38) 14%, rgba(245, 158, 11, 0.12) 38%, transparent 66%);
  mix-blend-mode: screen; animation: fx-eye 3.4s ease-in-out infinite;
}
@keyframes fx-eye { 0%, 100% { opacity: 0.35; transform: scale(0.82); } 50% { opacity: 1; transform: scale(1.12); } }
/* 4) rising embers */
.fx-embers { position: absolute; inset: 0; }
.fx-embers i {
  position: absolute; bottom: -10px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 8px 2px rgba(251, 191, 36, 0.7);
  opacity: 0; animation: fx-ember linear infinite;
}
@keyframes fx-ember { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 0.9; } 100% { transform: translate(24px, -85vh); opacity: 0; } }
/* 5) HUD tags (SCANNING / SIGNAL) */
.fx-tag {
  position: absolute; left: var(--eye-x); top: var(--eye-y);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #fbbf24;
  animation: fx-tag 4.2s ease-in-out infinite;
}
.fx-tag span {
  position: relative; display: block; padding: 0.4rem 0.7rem; border: 1px solid rgba(251, 191, 36, 0.55);
  background: rgba(8, 10, 16, 0.55); box-shadow: 0 0 18px rgba(251, 191, 36, 0.18); white-space: nowrap;
}
.fx-tag span::before, .fx-tag span::after { content: ""; position: absolute; width: 7px; height: 7px; border: 2px solid #fbbf24; }
.fx-tag span::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
.fx-tag span::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.fx-tag::after { content: ""; position: absolute; height: 1px; background: linear-gradient(90deg, rgba(251, 191, 36, 0.8), rgba(251, 191, 36, 0)); }
.fx-tag-scan   { transform: translate(calc(var(--eye-s) * -195px), calc(var(--eye-s) * -150px)); }
.fx-tag-scan::after   { left: 100%; top: 50%; width: calc(var(--eye-s) * 60px); }
.fx-tag-signal { transform: translate(calc(var(--eye-s) * -215px), calc(var(--eye-s) * 120px)); animation-delay: -2s; }
.fx-tag-signal::after { left: 100%; top: 50%; width: calc(var(--eye-s) * 70px); }
@keyframes fx-tag { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (max-width: 1180px) { .fx-tag, .fx-scanline { display: none; } }
@media (max-width: 760px) { .fx-embers, .fx-scanband { display: none; } }

/* 6) headline types in, then a blinking cursor */
body.page-home .m-hero-robot h1 { background: none; -webkit-text-fill-color: initial; color: #fff; }
body.page-home .m-hero-robot h1 .hl {
  display: inline-block; white-space: nowrap;
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  clip-path: inset(-0.1em 100% -0.2em 0);
  animation: hl-type 1.1s steps(15, end) forwards;
}
body.page-home .m-hero-robot h1 .hl em { color: #fbbf24; -webkit-text-fill-color: #fbbf24; font-style: italic; }
body.page-home .m-hero-robot h1 .hl1 { animation-delay: 0.25s; }
body.page-home .m-hero-robot h1 .hl2 { animation-delay: 1.45s; animation-duration: 1s; animation-timing-function: steps(14, end); }
@keyframes hl-type { to { clip-path: inset(-0.1em 0 -0.2em 0); } }
.hero-cursor {
  display: inline-block; width: 0.07em; height: 0.78em; margin-left: 0.1em; vertical-align: -0.02em;
  background: #fbbf24; box-shadow: 0 0 12px 2px rgba(251, 191, 36, 0.7);
  opacity: 0; animation: cursor-blink 1.05s steps(1, end) 2.5s infinite;
}
@keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .fx-pulse, .fx-scanband, .fx-scanline, .fx-embers, .fx-tag { display: none; }
  .fx-halo { animation: none; opacity: 0.6; }
  body.page-home .m-hero-robot h1 .hl { clip-path: none; animation: none; }
  .hero-cursor { display: none; }
}
/* ---------- Rotating ear ring (continuously rolling HUD rings over the head's ear) ---------- */
.fx-ring {
  position: absolute; left: var(--ring-x, 77%); top: var(--ring-y, 36%);
  width: var(--ring-d, 150px); height: var(--ring-d, 150px);
  margin: calc(var(--ring-d, 150px) / -2) 0 0 calc(var(--ring-d, 150px) / -2);
  mix-blend-mode: screen; opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.75));
}
.fx-ring svg { width: 100%; height: 100%; overflow: visible; }
.fx-ring g { transform-origin: 100px 100px; }
.fx-ring circle { fill: none; stroke: #fbbf24; }
.rg-comet { animation: rg-cw 4.8s linear infinite; }
.rg-ticks { animation: rg-ccw 30s linear infinite; }
.rg-dash  { animation: rg-ccw 11s linear infinite; }
.rg-nodes { animation: rg-cw 8s linear infinite; }
.rg-core  { animation: rg-core 2.6s ease-in-out infinite; }
@keyframes rg-cw  { to { transform: rotate(360deg); } }
@keyframes rg-ccw { to { transform: rotate(-360deg); } }
@keyframes rg-core { 0%, 100% { opacity: 0.45; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.25); } }
@media (max-width: 760px) { .fx-ring { opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) { .fx-ring g { animation: none; } }
@media (max-width: 980px) { body.page-home:not(.page-inner) { --robot-size: cover; --robot-pos: 78% 30%; } }
.fx-ring .rg-core circle { fill: #fde68a; stroke: none; }
