/* ============================================================
   poxisFX , Empowered Trader's Academy
   Design system: dark indigo ink, iris violet, brand gold,
   coral heat. Editorial type: Bricolage Grotesque (display),
   Instrument Serif (italic accents), Inter (body),
   IBM Plex Mono (kickers & data).
   ============================================================ */

:root {
  --ink: #08060f;
  --ink-2: #0d0a1a;
  --ink-3: #131025;
  --surface: #14102a;
  --text: #f2f0fb;
  --text-dim: #e3e0f4;
  --muted: #c8c3e0;
  --faint: #8f88b3;
  --iris: #8b7cf7;
  --iris-bright: #a89bff;
  --iris-deep: #5b3df5;
  --gold: #e8af1e;
  --amber: #f5b942;
  --coral: #f2695c;
  --line: rgba(139, 124, 247, 0.14);
  --line-strong: rgba(139, 124, 247, 0.28);
  --glow: rgba(91, 61, 245, 0.22);
  --cta-grad: linear-gradient(100deg, #f5b942 0%, #f2695c 100%);
  --font-display: "Bricolage Grotesque", "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-gap: clamp(6rem, 14vw, 14rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain over everything, very subtle */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: rgba(232, 175, 30, 0.85); color: #14100a; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.display-xl { font-size: clamp(2.9rem, 8.5vw, 7.25rem); }
.display-lg { font-size: clamp(2.3rem, 5.6vw, 4.6rem); }
.display-md { font-size: clamp(1.8rem, 3.8vw, 3.1rem); }
.display-sm { font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: -0.015em; }

.serif-i {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--iris-bright);
}

/* Emphasis device: serif italic, colour-differentiated. Never a solid
   fill-box behind text , emphasis comes from the letterforms, not a
   highlighter block. (The gold fill-box remains the correct treatment
   in the Instagram carousel system; it is deliberately not used here.) */
.em-gold {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--gold);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.4rem;
}
.kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  flex: none;
}
.kicker--bare::before { display: none; }
.kicker--center { justify-content: center; }
.kicker--center::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(270deg, var(--gold), transparent);
  flex: none;
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--text-dim);
  max-width: 34em;
}

.muted { color: var(--muted); }

/* ---------- Layout ---------- */

.wrap {
  width: min(100% - 2 * var(--gutter), 76rem);
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2 * var(--gutter), 56rem); }

section { position: relative; }

.section-pad { padding-block: var(--section-gap); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10001;
  background: var(--gold);
  color: #14100a;
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  will-change: transform;
}
.btn svg { flex: none; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--cta-grad);
  color: #1c0e06;
  box-shadow: 0 8px 32px -8px rgba(242, 105, 92, 0.45);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px -8px rgba(242, 105, 92, 0.6);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(139, 124, 247, 0.06);
}
.btn--ghost:hover {
  border-color: var(--iris);
  background: rgba(139, 124, 247, 0.12);
  transform: translateY(-2px);
}

/* Restrained single-colour CTA. Used for persistent chrome and repeat
   actions so the gradient stays reserved for the one primary apply
   action per page. */
.btn--solid {
  background: #241a52;
  color: var(--text);
  border-color: rgba(139, 124, 247, 0.32);
}
.btn--solid:hover {
  background: #2f2368;
  border-color: var(--iris);
  transform: translateY(-2px);
}

.btn--gold-line {
  border-color: rgba(232, 175, 30, 0.55);
  color: var(--text);
  background: transparent;
}
.btn--gold-line:hover {
  background: rgba(232, 175, 30, 0.1);
  transform: translateY(-2px);
}

/* ---------- Intro loader (home) ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
html.has-intro .intro { display: flex; }
html.has-intro.intro-leave .intro { transform: translateY(-100%); }
html.has-intro:not(.intro-done) body { overflow: hidden; }

.intro__word {
  font-family: var(--font-display);
  font-weight: 680;
  font-size: clamp(2.6rem, 9vw, 6rem);
  letter-spacing: -0.03em;
  display: flex;
  overflow: hidden;
}
.intro__word span {
  display: inline-block;
  transform: translateY(115%);
  animation: intro-rise 0.7s var(--ease-out) forwards;
}
.intro__word .fx { color: var(--gold); }
@keyframes intro-rise { to { transform: translateY(0); } }

.intro__tag {
  position: absolute;
  bottom: 12vh;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--faint);
  opacity: 0;
  animation: intro-fade 0.6s 0.55s var(--ease-out) forwards;
}
@keyframes intro-fade { to { opacity: 1; } }

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
    backdrop-filter 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(8, 6, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.05rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 660;
  font-size: 1.42rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand img { width: 38px; height: 38px; object-fit: contain; flex: none; }
.brand .fx { color: var(--gold); }

.nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.25s var(--ease-out);
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav a:not(.btn):hover { color: var(--text); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 0.72rem 1.4rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle span + span { margin-top: 5px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(8, 6, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
    z-index: 950;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: 1.5rem; font-family: var(--font-display); }
  .nav-toggle { position: relative; z-index: 960; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 0;
  overflow: hidden;
}

/* The hero illustration is a compositional anchor, not wallpaper: the
   lens sits right-of-centre and the scrim protects the left column
   where the headline lives. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
}
/* Legibility scrim: a single left-to-right fade, transparent by 62% so it
   never darkens the video/illustration on the right. No vertical vignette
   exists here on purpose, the video runs at full, untouched contrast. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, var(--ink) 4%, rgba(8, 6, 15, 0.9) 26%, rgba(8, 6, 15, 0.45) 44%, transparent 62%);
  pointer-events: none;
}
@media (max-width: 860px) {
  /* The video plays at every size. Below this breakpoint the headline stops
     sitting to the left of the footage and instead stacks directly over the
     full-bleed video, so the diagonal left-to-right scrim above no longer
     lines up with anything. Swap it for an even vertical scrim that is dark
     enough to hold the bright, pre-graded footage back behind the whole text
     column. object-fit:cover (set above) means the <video> always fills the
     hero box and is cropped to fit -- it can never overflow or push layout --
     so only the crop focus needs recentring so the portal sits behind the
     copy rather than half-off one edge. */
  .hero__media video,
  .hero__media img { object-position: 58% 50%; }
  .hero__media::after {
    background: linear-gradient(
      180deg,
      rgba(8, 6, 15, 0.82) 0%,
      rgba(8, 6, 15, 0.74) 42%,
      rgba(8, 6, 15, 0.88) 100%
    );
  }
  /* No negative-margin panel: the text column is just the full-width wrap with
     its normal gutters, so headline, paragraph and buttons never touch or
     cross the viewport edge. Legibility is handled by the scrim above. */
  .hero__inner { background: none; }
}

/* Vertical rotated edge labels , minimal hero chrome */
.hero__edge {
  position: absolute;
  top: 50%;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  pointer-events: none;
}
.hero__edge--l {
  left: clamp(0.5rem, 1.6vw, 1.4rem);
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
}
.hero__edge--r {
  right: clamp(0.5rem, 1.6vw, 1.4rem);
  transform: translateY(-50%);
  writing-mode: vertical-rl;
}
@media (max-width: 900px) { .hero__edge { display: none; } }

.hero__inner {
  /* Just enough to clear the fixed header (~72px) , the flex-centered
     .hero handles the rest of the vertical balance, so this shouldn't
     reserve extra dead space above the kicker. */
  padding-top: clamp(6rem, 10vh, 7.5rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.hero h1 { max-width: 11em; }

.hero .lede { margin-top: 1.8rem; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.6rem;
}

.hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-bottom: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(180deg, var(--iris), transparent);
  animation: cue-drop 2.2s var(--ease-out) infinite;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Line-reveal for hero headline */
.line-reveal .line {
  display: block;
  overflow: hidden;
}
.line-reveal .line > span {
  display: inline-block;
  transform: translateY(110%);
}
html.js .line-reveal.in-view .line > span,
html:not(.js) .line-reveal .line > span {
  transform: translateY(0);
}
html.js .line-reveal.in-view .line > span {
  transition: transform 1s var(--ease-out);
}
.line-reveal .line:nth-child(2) > span { transition-delay: 0.12s; }
.line-reveal .line:nth-child(3) > span { transition-delay: 0.24s; }

/* ---------- Ticker marquee ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(13, 10, 26, 0.6);
  position: relative;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 46s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}
.ticker__set {
  display: flex;
  align-items: center;
  flex: none;
}
.ticker__set span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.95rem 1.9rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 1.9rem;
}
.ticker__set span::after {
  content: "◆";
  font-size: 0.5rem;
  color: var(--gold);
}
.ticker__set span.up { color: var(--iris-bright); }

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
}
.stat {
  border-right: 1px solid var(--line);
  padding: 2.2rem 1.8rem 2rem;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 620;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.stat b em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.stat span {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 18em;
}
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .stat { border-bottom: 1px solid var(--line); }
}

/* ---------- Media frame ---------- */

.media-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  box-shadow: 0 30px 80px -30px rgba(8, 4, 30, 0.9);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  border-radius: inherit;
  pointer-events: none;
}
.media-frame img { width: 100%; }

/* ---------- Workspace chrome ----------
   Frames the four method modules as a trading-desk workspace rather than
   four illustrations floating on a marketing page. Sidebar modules act as
   tabs; without JS every panel simply stacks and stays readable. */

.workspace {
  margin-top: 3.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    radial-gradient(60rem 30rem at 70% -10%, rgba(91, 61, 245, 0.1), transparent 60%),
    var(--ink-2);
  box-shadow: 0 50px 120px -45px rgba(8, 4, 30, 0.95);
  overflow: hidden;
}

.workspace__bar {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 6, 15, 0.5);
}
.workspace__dots { display: inline-flex; gap: 0.42rem; flex: none; }
.workspace__dots i {
  width: 10px; height: 10px; border-radius: 50%; display: block;
}
.workspace__dots i:nth-child(1) { background: #f2695c; }
.workspace__dots i:nth-child(2) { background: #e8af1e; }
.workspace__dots i:nth-child(3) { background: #4caf6e; }
.workspace__crumb {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.workspace__crumb b { color: var(--faint); font-weight: 400; margin: 0 0.4rem; }
.workspace__crumb em { font-style: normal; color: var(--text-dim); }
.workspace__meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.workspace__body {
  display: grid;
  grid-template-columns: 15.5rem 1fr;
}

.workspace__side {
  border-right: 1px solid var(--line);
  padding: 1.5rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.workspace__label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.75rem;
}
.workspace__label + .workspace__label { margin-top: 1.6rem; }

.workspace__list { list-style: none; margin: 0 0 0.4rem; padding: 0; }
.workspace__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.42rem 0.6rem;
  border-radius: 7px;
}
.workspace__list li.is-on { color: var(--text); background: rgba(139, 124, 247, 0.08); }

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--faint); flex: none;
}
.dot--on { background: #4caf6e; box-shadow: 0 0 8px 1px rgba(76, 175, 110, 0.55); }
.dot--gold { background: var(--gold); box-shadow: 0 0 8px 1px rgba(232, 175, 30, 0.5); }

.workspace__modules { list-style: none; margin: 0; padding: 0; }
.workspace__modules li + li { margin-top: 0.25rem; }
.workspace__modules button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}
.workspace__modules button:hover { color: var(--text-dim); background: rgba(139, 124, 247, 0.06); }
.workspace__modules button.is-active {
  color: var(--text);
  background: rgba(139, 124, 247, 0.1);
  border-color: var(--line-strong);
}
.workspace__modules button i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.68rem;
  color: var(--faint);
}
.workspace__modules button.is-active i { color: var(--gold); }

.workspace__user {
  margin-top: auto;
  padding-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.workspace__user img {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; object-position: 50% 18%;
  border: 1px solid var(--line-strong);
  flex: none;
}
.workspace__user b { display: block; font-size: 0.82rem; font-weight: 600; }
.workspace__user span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

.workspace__panels { position: relative; }
.workspace__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
}
html.js .workspace__panel { display: none; }
html.js .workspace__panel.is-active { display: grid; }
html.js .workspace__panel.is-active { animation: ws-fade 0.5s var(--ease-out); }
@keyframes ws-fade { from { opacity: 0; transform: translateY(8px); } }

.workspace__main { padding: clamp(1.6rem, 3vw, 2.6rem); min-width: 0; }
.workspace__kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.workspace__chip {
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 0.22rem 0.5rem;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.workspace__main h3 { margin: 0 0 1rem; }
.workspace__main > p { color: var(--text-dim); max-width: 42em; margin: 0; }

.workspace__fig {
  margin: 1.9rem 0 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}
.workspace__fig img { width: 100%; display: block; }
.workspace__summary {
  position: absolute;
  right: clamp(0.7rem, 2%, 1.3rem);
  bottom: clamp(0.7rem, 2%, 1.3rem);
  width: min(21rem, 58%);
  background: rgba(10, 8, 20, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 1rem 1.15rem;
}
.workspace__summary h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.workspace__summary p { margin: 0; font-size: 0.86rem; line-height: 1.6; color: var(--text-dim); }

.workspace__props {
  border-left: 1px solid var(--line);
  padding: clamp(1.6rem, 3vw, 2.6rem) 1.4rem;
}
.workspace__props ul { list-style: none; margin: 0; padding: 0; }
.workspace__props li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-dim);
}
.workspace__props li + li { margin-top: 0.9rem; }
.workspace__props li .dot { margin-top: 0.5rem; }
.workspace__props hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.7rem 0;
}
.workspace__props p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 1080px) {
  /* minmax(0, 1fr) rather than 1fr so the single column is allowed to shrink
     below the intrinsic width of its content instead of overflowing (and being
     clipped by body overflow-x:hidden). */
  .workspace__panel { grid-template-columns: minmax(0, 1fr); }
  .workspace__props { border-left: 0; border-top: 1px solid var(--line); min-width: 0; }
  .workspace__main { min-width: 0; }
}
@media (max-width: 860px) {
  .workspace__body { grid-template-columns: minmax(0, 1fr); }
  .workspace__side { border-right: 0; border-bottom: 1px solid var(--line); min-width: 0; }
  .workspace__panels { min-width: 0; }
  .workspace__user { display: none; }
  /* Module tabs collapse to one horizontally-scrollable strip. min-width:0 lets
     the strip be narrower than its buttons; the visible thin scrollbar is the
     affordance that there is more to the right. */
  .workspace__modules {
    display: flex;
    gap: 0.4rem;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .workspace__modules li { flex: 0 0 auto; }
  .workspace__modules li + li { margin-top: 0; }
  .workspace__modules button { width: auto; white-space: nowrap; }
  .workspace__summary { position: static; width: auto; border: 0; border-top: 1px solid var(--line); border-radius: 0; backdrop-filter: none; }
}



/* ---------- Ticker -> socials -> stats block ----------
   This block reads as one unit directly under the ticker, so it opts out of
   the global section rhythm rather than inheriting the large --section-gap. */
.band-stats {
  padding-block: clamp(1.75rem, 3.5vw, 3rem) clamp(4rem, 8vw, 7rem);
}
.band-stats .socials {
  padding-top: 0;
  padding-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

/* ---------- Scroll-scrubbed workspace ----------
   The workspace pins while a tall track scrolls past it, so the active
   module advances with the reader instead of needing a click. The track
   only exists on desktop; on smaller screens the panel is a normal
   click-driven tab set. */
.workspace-scroll { position: relative; margin-top: 3.5rem; }
.workspace-scroll .workspace { margin-top: 0; }

@media (min-width: 981px) {
  .workspace-scroll { height: calc(6 * 62vh); }
  .workspace-scroll .workspace {
    position: sticky;
    top: 5.5rem;
  }
  /* Keep the pinned card comfortably inside the viewport so nothing is
     cut off while it is stuck. */
  .workspace__fig img { max-height: 40vh; object-fit: contain; background: var(--ink); }
  .workspace__panels { min-height: 33rem; }
}

/* ---------- Curriculum rows ---------- */

.rows { border-top: 1px solid var(--line); }
.row-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1.6rem;
  align-items: baseline;
  padding: 1.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease-out), padding-left 0.3s var(--ease-out);
}
.row-item:hover {
  background: rgba(139, 124, 247, 0.05);
  padding-left: 1rem;
}
.row-item i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.row-item h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 560;
  letter-spacing: -0.01em;
}
.row-item p {
  grid-column: 2;
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 44em;
}
.row-item .row-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .row-item { grid-template-columns: 3rem 1fr; }
  .row-item .row-note { display: none; }
}

/* ---------- Mentor ---------- */

.mentor {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.mentor__photo { grid-column: 1 / 6; }
.mentor__copy { grid-column: 6 / 13; }
.mentor__photo .media-frame { border-radius: 18px; }
.mentor__photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.mentor blockquote {
  margin: 2rem 0 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 30em;
}
@media (max-width: 860px) {
  .mentor { grid-template-columns: 1fr; }
  .mentor__photo, .mentor__copy { grid-column: 1 / -1; }
  .mentor__photo { max-width: 26rem; }
}

/* ---------- Results / testimonials ---------- */

.payouts {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.75rem, 3vw, 2.75rem);
  margin-top: 3.5rem;
}
.payouts figure { margin: 0; position: relative; }
.payouts .media-frame {
  border-color: rgba(232, 175, 30, 0.25);
  padding: 0.6rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
}
/* Equal-height rows: `contain` keeps every payout proof fully visible
   (never cropped) while the dark mat absorbs the letterboxing, so rows
   align instead of leaving ragged gaps. */
.payouts .media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
}
.payouts .media-frame img {
  display: block;
  border-radius: 9px;
  width: 100%;
  object-fit: contain;
}
.payout--a .media-frame img,
.payout--b .media-frame img { height: clamp(19rem, 25vw, 28rem); }
.payout--c .media-frame img,
.payout--d .media-frame img,
.payout--e .media-frame img { height: clamp(15rem, 19vw, 22rem); }
@media (max-width: 700px) {
  .payouts .media-frame img { height: auto !important; }
}
.payouts figure:hover .media-frame {
  transform: translateY(-5px);
  border-color: rgba(232, 175, 30, 0.5);
  box-shadow: 0 44px 100px -32px rgba(8, 4, 30, 0.95), 0 0 0 1px rgba(232, 175, 30, 0.18);
}
.payouts figcaption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.payouts figcaption::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(232, 175, 30, 0.6);
}
.payout--a { grid-column: 1 / 7; }
.payout--b { grid-column: 7 / 13; }
.payout--c { grid-column: 1 / 5; }
.payout--d { grid-column: 5 / 9; }
.payout--e { grid-column: 9 / 13; }
@media (max-width: 700px) {
  .payout--a, .payout--b, .payout--c, .payout--d, .payout--e { grid-column: 1 / -1; }
}

.wall {
  columns: 3 320px;
  column-gap: 1.9rem;
  margin-top: 3.5rem;
}
.wall > figure {
  margin: 0 0 1.9rem;
  break-inside: avoid;
  position: relative;
}
/* Editorial quote-mark accent , ties the raw screenshots back into the
   site's serif-italic accent system instead of reading as bare pasted
   images. */
.wall > figure::before {
  content: "\201C";
  position: absolute;
  top: -1.4rem;
  left: -0.3rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.55;
  pointer-events: none;
}
.wall .media-frame {
  border-radius: 13px;
  padding: 0.55rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
}
.wall .media-frame img { border-radius: 8px; }
.wall img { width: 100%; display: block; }
.wall figure:hover .media-frame {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 44px 100px -32px rgba(8, 4, 30, 0.95);
}

/* ---------- Free course ---------- */

.course {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.course__copy { grid-column: 1 / 5; }
.course__video { grid-column: 5 / 13; }
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  box-shadow: 0 30px 80px -30px rgba(8, 4, 30, 0.9);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 860px) {
  .course { grid-template-columns: 1fr; }
  .course__copy, .course__video { grid-column: 1 / -1; }
}

/* ---------- Apply / widget ---------- */


.apply-hero {
  position: relative;
  padding-top: clamp(9rem, 18vh, 13rem);
  overflow: hidden;
}
.apply-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70rem 40rem at 80% -15%, rgba(91, 61, 245, 0.3), transparent 60%),
    radial-gradient(50rem 30rem at 5% 10%, rgba(232, 175, 30, 0.07), transparent 55%);
}

/* ---------- Big CTA ---------- */

.cta-final {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(65rem 40rem at 50% 120%, rgba(91, 61, 245, 0.35), transparent 65%),
    radial-gradient(40rem 26rem at 85% 0%, rgba(232, 175, 30, 0.06), transparent 55%);
}
.cta-final .display-lg { max-width: 14em; }

/* ---------- Pre-call ---------- */

.precall-hero {
  position: relative;
  padding-top: clamp(9rem, 18vh, 13rem);
  text-align: center;
  overflow: hidden;
}
.precall-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60rem 36rem at 50% -20%, rgba(91, 61, 245, 0.3), transparent 62%);
}

.check-seal {
  width: 74px;
  height: 74px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(232, 175, 30, 0.1);
  border: 1px solid rgba(232, 175, 30, 0.5);
  box-shadow: 0 0 40px rgba(232, 175, 30, 0.25);
  color: var(--gold);
}

.steps { counter-reset: step; margin-top: 3rem; }
.step {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-top: 0.5rem;
}
.step h3 { margin-bottom: 0.8rem; }
.step p { color: var(--text-dim); max-width: 36em; margin: 0; }
.step .step-hint {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.step .step-hint b { color: var(--text); }

.email-mock {
  margin-top: 1.6rem;
  max-width: 26rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--ink-3);
  padding: 1.1rem 1.3rem;
  font-size: 0.9rem;
}
.email-mock__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.8rem;
}
.email-mock__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--iris-deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  flex: none;
}
.email-mock__head b { font-size: 0.9rem; }
.email-mock__head span { color: var(--faint); font-size: 0.78rem; display: block; }
.email-mock p { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.86rem; }
.email-mock .confirm-chip {
  display: inline-block;
  background: rgba(76, 175, 110, 0.14);
  color: #7ed6a0;
  border: 1px solid rgba(126, 214, 160, 0.4);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}
@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: 0.8rem; }
  .step::before { padding-top: 0; }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  background: var(--ink-2);
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  align-items: flex-start;
}
.footer__brand p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 26em;
}
.footer nav {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.footer nav h5 {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer nav ul { list-style: none; margin: 0; padding: 0; }
.footer nav li + li { margin-top: 0.6rem; }
.footer nav a {
  color: var(--text-dim);
  font-size: 0.94rem;
  transition: color 0.25s;
}
.footer nav a:hover { color: var(--gold); }

.footer__legal {
  margin-top: 3.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.8rem;
}
.footer__legal .risk { max-width: 62em; line-height: 1.6; }

/* ---------- Reveal-on-scroll primitives ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}
html.js [data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(26px);
}
html.js [data-reveal-group].in-view > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
html.js [data-reveal-group].in-view > *:nth-child(2) { transition-delay: 0.1s; }
html.js [data-reveal-group].in-view > *:nth-child(3) { transition-delay: 0.2s; }
html.js [data-reveal-group].in-view > *:nth-child(4) { transition-delay: 0.3s; }
html.js [data-reveal-group].in-view > *:nth-child(5) { transition-delay: 0.4s; }
html.js [data-reveal-group].in-view > *:nth-child(6) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js [data-reveal-group] > * {
    opacity: 1 !important;
    transform: none !important;
  }
  html.js .line-reveal .line > span { transform: none !important; }
  .ticker__track { animation: none !important; }
  html.has-intro .intro { display: none !important; }
}

/* ============================================================
   Additions: brand mark, social row, testimonial lightbox,
   embed facade, GHL widget framing.
   ============================================================ */

/* ---------- Brand wordmark (header + footer, identical) ---------- */
.brand {
  gap: 0.6rem;
  font-size: clamp(1.5rem, 1.3rem + 0.5vw, 1.8rem);
  color: var(--text);
}
.brand img {
  width: clamp(42px, 3.4vw, 52px);
  height: clamp(42px, 3.4vw, 52px);
}
/* Single wordmark: no space between "poxis" and "FX", all white */
.brand .fx { color: var(--text); }
.brand__word { letter-spacing: -0.02em; white-space: nowrap; }

/* ---------- Social icon row ---------- */
.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  padding: clamp(1.6rem, 3vw, 2.4rem) 1rem;
}
.socials a {
  width: clamp(52px, 4.4vw, 62px);
  height: clamp(52px, 4.4vw, 62px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #4b3ce0 0%, #6d3ff5 100%);
  box-shadow: 0 10px 26px -10px rgba(91, 61, 245, 0.75);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    filter 0.35s var(--ease-out);
}
.socials a:hover {
  transform: translateY(-4px);
  filter: brightness(1.12);
  box-shadow: 0 16px 34px -10px rgba(91, 61, 245, 0.9);
}
.socials svg { width: 52%; height: 52%; fill: currentColor; }

/* ---------- Hero CTA stack (third centred action) ---------- */
.hero__cta--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  margin-top: 2.6rem;
}
.hero__cta--stack .hero__cta { margin-top: 0; }
.hero__cta-wide {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 33rem;
}
@media (max-width: 640px) {
  .hero__cta-wide { max-width: 100%; }
  .hero__cta-wide .btn { width: 100%; justify-content: center; }
}

/* ---------- Testimonial cards + lightbox ---------- */
.tcard {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
  text-align: left;
}
.tcard .media-frame { transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out); }
.tcard:hover .media-frame,
.tcard:focus-visible .media-frame {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 44px 100px -32px rgba(8, 4, 30, 0.95);
}
.tcard__zoom {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 8, 20, 0.82);
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  pointer-events: none;
}
.tcard:hover .tcard__zoom,
.tcard:focus-visible .tcard__zoom { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 3, 10, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox.is-open { display: flex; }
.lightbox__inner {
  position: relative;
  max-width: min(1180px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation: lb-in 0.35s var(--ease-out);
}
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.95);
}
.lightbox__cap {
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(18, 14, 34, 0.9);
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.lightbox__btn:hover { background: rgba(40, 30, 78, 0.95); border-color: var(--iris); }
.lightbox__prev { left: clamp(-3.4rem, -4vw, -1rem); }
.lightbox__next { right: clamp(-3.4rem, -4vw, -1rem); }
.lightbox__close {
  position: fixed;
  top: clamp(0.9rem, 2.5vw, 1.6rem);
  right: clamp(0.9rem, 2.5vw, 1.6rem);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(18, 14, 34, 0.9);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.lightbox__close:hover { border-color: var(--iris); }
@media (max-width: 820px) {
  .lightbox__prev { left: 0.3rem; }
  .lightbox__next { right: 0.3rem; }
  .lightbox__img { max-height: calc(100vh - 11rem); }
}

/* ---------- Video facade (avoids a broken player when the page is
   opened straight from disk, where YouTube refuses the embed) ---------- */
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--ink-2) center/cover no-repeat;
  display: grid;
  place-items: center;
}
.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 6, 15, 0.15), rgba(8, 6, 15, 0.6));
}
.video-facade__play {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(232, 30, 30, 0.92);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}
.video-facade:hover .video-facade__play { transform: scale(1.08); background: #ff2020; }
.video-facade__play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.video-facade__label {
  position: absolute;
  z-index: 1;
  bottom: 1.1rem;
  left: 1.2rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
}

@media (max-width: 700px) {
  }

/* ============================================================
   PROTECTED: GHL survey widget
   ------------------------------------------------------------
   Do not add height, min-height or overflow rules for this embed
   anywhere else in this file.

   GHL's form_embed.js measures the form and writes an inline
   `height` onto the iframe, which changes per step. A CSS
   `min-height` beats an inline `height` in the cascade, so any
   min-height large enough to be "safe" silently overrides the
   script and leaves dead space, while a fixed `height` plus
   `overflow:hidden` clips the taller steps. That is exactly what
   broke this twice.

   So: the script owns the height. The floor below only covers the
   case where form_embed.js never loads, and is deliberately small
   enough that it never competes with a real measurement.

   The wrapper also pins its own spacing and width rather than
   inheriting them, so global section/spacing edits cannot reach in.
   ============================================================ */
.pfx-widget {
  position: relative;
  width: 100%;
  margin: 3rem auto 0;
  padding: clamp(0.5rem, 1.4vw, 1rem);
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(60rem 30rem at 50% -20%, rgba(91, 61, 245, 0.16), transparent 65%),
    var(--ink-2);
  box-shadow: 0 40px 100px -40px rgba(8, 4, 30, 0.95);
  overflow: visible;
  /* Isolate from inherited text layout so nothing shifts the embed. */
  font-size: 1rem;
  line-height: normal;
  text-align: left;
}
.pfx-widget > iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: transparent;
  /* Fallback floor only. form_embed.js supplies the real height inline. */
  min-height: 420px;
  /* Never clip: if the script under-reports, content stays reachable. */
  overflow: visible;
}
