/* ─── Frames of Presence — Teaching Modules ───────────────────────
   Visual language matched to andresmarder.com:
   black/near-black background, yellow accent (#e5c84b),
   condensed display sans-serif (Oswald), JetBrains Mono for cinema UI.
   ─────────────────────────────────────────────────────────────── */

:root {
  --bg:      #050505;
  --bg-2:    #0a0a0a;
  --bg-3:    #141414;
  --bg-card: #191919;
  --line:    #2a2a2a;
  --line-2:  #1c1c1c;
  --text:    #fafafa;
  --text-2:  #bdbdbd;
  --text-3:  #6a6a6a;
  --gold:    #e5c84b;
  --gold-2:  #b59c30;
  --teal:    #03a4ad;

  --display: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1480px;
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: #000; }

/* ─── TOP BAR ──────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  z-index: 100;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0) 100%);
  backdrop-filter: blur(8px);
}
.logo {
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  transition: opacity .2s;
}
.logo:hover { opacity: .75; }
/* Match the site-wide logo size (am-logo-animated): 32px mobile, 36px desktop */
.logo svg { height: 32px; width: auto; display: block; }
@media (min-width: 768px) { .logo svg { height: 36px; } }
.logo-divider {
  width: 1px;
  height: 24px;
  background: rgba(229, 200, 75, 0.35);
}
.timecode {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
}
/* Primary nav = right-side glass flyout at ALL widths (matches the andresmarder.com header) */
.topnav {
  position: fixed;
  top: 0; right: -320px; left: auto; bottom: auto;
  width: 300px; height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 2px;
  padding: 84px 36px 40px;
  background: rgba(10, 10, 18, 0.92);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 90;
}
.topnav.open { right: 0; }
.topnav a {
  font-family: 'Bebas Neue', var(--display), sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 9px 0;
  transition: color .2s;
}
.topnav a:hover { color: var(--gold); }
.scope {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.15em;
}

/* Hamburger toggle — visible at all widths (minimal header).
   Borderless thin-line ☰ to match the site-wide header on andresmarder.com. */
.navtoggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.navtoggle span {
  display: block;
  width: 21px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.8);
  transition: transform .25s ease, opacity .2s ease;
}
.navtoggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navtoggle.is-open span:nth-child(2) { opacity: 0; }
.navtoggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Current-page indicator */
.topnav a[aria-current="page"] { color: var(--gold); }

/* EN/DE bar lives at the bottom of the flyout */
.flyout-controls { display: flex; margin-top: auto; padding-top: 24px; }

/* Right-side flyout backdrop — matches the site-wide menu on andresmarder.com */
.fop-flyout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.fop-flyout-backdrop.open { opacity: 1; pointer-events: auto; }

/* ─── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 100px var(--gutter) 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroCycle 32s infinite;
  filter: saturate(0.85);
}
.hero-bg-img:nth-child(1) { animation-delay:  0s; }
.hero-bg-img:nth-child(2) { animation-delay:  8s; }
.hero-bg-img:nth-child(3) { animation-delay: 16s; }
.hero-bg-img:nth-child(4) { animation-delay: 24s; }
@keyframes heroCycle {
  0%       { opacity: 0; transform: scale(1.08); }
  6%, 22%  { opacity: 0.55; transform: scale(1.00); }
  28%, 100%{ opacity: 0; transform: scale(0.98); }
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.92) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.20) 50%, rgba(0,0,0,0.90) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 40px;
  min-height: calc(100vh - 280px);
  padding-top: 40px;
}
.hero-meta-left,
.hero-meta-right {
  align-self: end;
  padding-bottom: 30px;
}
.hero-meta-right { text-align: right; }
.hero-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-tag-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.2em;
}
.hero-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 14px;
  line-height: 1.6;
}
.hero-quote {
  font-family: var(--body);
  font-style: italic;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 280px;
  margin-left: auto;
}

.hero-title h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.01em;
  color: var(--text);
  text-transform: uppercase;
  margin: 0;
  text-align: center;
}

.hero-cta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
}
.cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 16px 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all .25s ease;
  background: transparent;
  cursor: pointer;
}
.cta:hover {
  background: var(--gold);
  color: #000;
}
.cta-primary { /* alias */ }
.cta-ghost {
  border-color: var(--line);
  color: var(--text-2);
}
.cta-ghost:hover {
  border-color: var(--text);
  color: var(--text);
  background: transparent;
}
.cta .play { font-size: 8px; }
.cta .arr { font-size: 14px; }

.hero-pagedots {
  position: absolute;
  bottom: 38px;
  right: var(--gutter);
  display: flex;
  gap: 10px;
}
.hero-pagedots .d {
  width: 22px;
  height: 2px;
  background: var(--line);
  transition: background .3s;
}
.hero-pagedots .d.active { background: var(--gold); }

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .hero-meta-right { text-align: center; }
  .hero-quote { margin: 0 auto; }
  .hero-title h1 { font-size: clamp(56px, 18vw, 110px); }
}

/* ─── INTRO ────────────────────────────────────────────────────── */
.intro {
  padding: 120px var(--gutter) 100px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.intro-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 60px;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 80px;
  align-items: start;
}
.intro-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.22em;
  padding-top: 8px;
}
.intro-body {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--text);
  font-family: var(--body);
}
.intro-body p + p { margin-top: 28px; color: var(--text-2); font-size: clamp(17px, 1.6vw, 22px); }
.intro-body em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
@media (max-width: 720px) {
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── SECTION HEAD ─────────────────────────────────────────────── */
.section-head {
  max-width: var(--maxw);
  margin: 0 auto 80px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: baseline;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 28px;
}
.section-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.22em;
}
.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.section-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.22em;
  text-align: right;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
  .section-sub { text-align: left; }
}

/* ─── MODULES ──────────────────────────────────────────────────── */
.modules {
  padding: 80px 0 120px;
  background: var(--bg);
}
.module-list {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.mod {
  display: grid;
  grid-template-columns: 80px 1fr 1.1fr;
  gap: 50px;
  align-items: start;
  padding-top: 40px;
  border-top: 1px solid var(--line-2);
  position: relative;
}
.mod-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  padding-top: 8px;
}
.mod-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 18px;
}
.mod-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.mod-blurb {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 460px;
  margin-bottom: 24px;
}
.mod-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 26px;
}
.mod-tags li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-3);
  padding: 4px 9px;
  border: 1px solid var(--line);
  text-transform: uppercase;
}
.mod-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--gold-2);
  display: inline-block;
  transition: color .2s, border-color .2s;
}
.mod-link:hover { color: var(--text); border-color: var(--text); }
.mod-card {
  aspect-ratio: 10 / 8;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card);
  position: relative;
  transition: transform .5s ease;
}
.mod-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 35%);
  pointer-events: none;
}
.mod:hover .mod-card { transform: translateY(-4px); }
@media (max-width: 980px) {
  .mod { grid-template-columns: 1fr; gap: 24px; }
  .mod-num { padding-top: 0; }
}

/* ─── STATS ────────────────────────────────────────────────────── */
.stats {
  padding: 80px var(--gutter);
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  max-width: 100%;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 14px;
}
.stat .plus { font-size: 0.55em; color: var(--gold-2); }
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-2);
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 50px; }
}

/* ─── QUOTE BAND ───────────────────────────────────────────────── */
.quote-band {
  padding: 140px var(--gutter);
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(229,200,75,0.05) 0%, transparent 60%),
    var(--bg);
}
.quote-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 40px;
}
.quote-band blockquote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 64px);
  line-height: 1.15;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.quote-attr {
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-3);
}

/* ─── FORMAT ───────────────────────────────────────────────────── */
.format {
  padding: 100px 0 120px;
}
.format-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.fc {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-right: 16px;
}
.fc-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.22em;
  margin-bottom: 14px;
}
.fc h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--text);
}
.fc p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
@media (max-width: 880px) {
  .format-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ─── BOOK / CTA SECTION ───────────────────────────────────────── */
.book {
  padding: 140px var(--gutter);
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.92)),
    url('assets/stills/hero1.png') center / cover no-repeat;
  border-top: 1px solid var(--line-2);
  position: relative;
}
.book-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.book-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 30px;
}
.book-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.22em;
  margin-bottom: 26px;
  text-transform: uppercase;
}
.book-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin-bottom: 30px;
}
.book-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 auto 48px;
  max-width: 620px;
}
.book-cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.footer {
  padding: 30px var(--gutter);
  border-top: 1px solid var(--line-2);
  background: var(--bg);
}
.footer-row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-logo {
  color: var(--gold);
  display: inline-flex;
}
.footer-mid {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}
.footer-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.2em;
}
@media (max-width: 720px) {
  .footer-row { grid-template-columns: 1fr; text-align: center; }
}

/* ─── REVEAL ANIMATIONS ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── LANGUAGE TOGGLE (added for bilingual EN/DE) ──────────────── */
.topbar-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.langtoggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.langtoggle button {
  background: transparent;
  border: 0;
  color: var(--text-3);
  font: inherit;
  letter-spacing: inherit;
  padding: 4px 9px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.langtoggle button:hover { color: var(--text-2); }
.langtoggle button.active {
  color: var(--bg);
  background: var(--gold);
  font-weight: 500;
}
/* Keep the 2.39:1 SCOPE accent on phones; hide only on very small screens to avoid crowding */
@media (max-width: 460px) {
  .scope { display: none; }
}

/* ─── PAYWALL STATUS BANNER (Frames of Presence Complete bundle) ──── */
.paywall-note {
  display: block;
  width: 100%;
  margin: 0 0 28px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: left;
  color: var(--text-2);
  cursor: default;
  transition: border-color .2s, color .2s, background .2s;
}
.paywall-note.is-locked {
  cursor: pointer;
  color: var(--gold);
}
.paywall-note.is-locked:hover {
  background: var(--bg-3);
  border-color: var(--gold);
}
.paywall-note.is-unlocked {
  color: var(--text-2);
  border-left-color: var(--teal);
}

/* ─── MENTORING — track price ──────────────────────────────────── */
.mod-price {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.05;
  color: var(--gold);
  letter-spacing: 0.01em;
  margin: 18px 0 6px;
}
.mod-price small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}

/* ─── MENTORING — payment note ─────────────────────────────────── */
.book-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-top: 14px;
}

/* ─── LEXICON — term selection grid ────────────────────────────── */
.lx-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.lx-term {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background .25s ease;
}
.lx-term:hover { background: var(--bg-2); }
.lx-img {
  width: 100%;
  aspect-ratio: 1000 / 550;
  object-fit: cover;
  display: block;
  background: var(--bg-3);
}
.lx-body {
  padding: 22px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.lx-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.lx-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.lx-def {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  flex: 1;
}
.lx-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-2);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.lx-link:hover { color: var(--text); border-color: var(--text); }
@media (max-width: 880px) { .lx-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lx-grid { grid-template-columns: 1fr; } }
