/* ============================================================
   Frame Minion — section layouts
   ============================================================ */

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(15,10,24,0.72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; flex: none; box-shadow: 0 4px 14px -4px rgba(0,0,0,0.6); }
.brand .mark img, .brand .mark svg { width: 100%; height: 100%; display: block; }
.brand .word { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { font-size: 14.5px; color: var(--muted); transition: color .18s; white-space: nowrap; }
.nav-links a.link:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
@media (max-width: 860px) {
  .nav-links .link { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 92px; position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%,-50%);
  width: min(1100px, 120vw); height: min(900px, 90vh);
  background: radial-gradient(45% 45% at 50% 50%, rgba(255,93,30,0.34), rgba(255,61,46,0.12) 45%, transparent 72%);
  filter: blur(20px);
  z-index: 0; pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%,100%{ opacity:.75; transform:translate(-50%,-50%) scale(1);} 50%{ opacity:1; transform:translate(-50%,-50%) scale(1.07);} }
@media (prefers-reduced-motion: reduce){ .hero-glow{ animation:none; } }

.hero-inner { text-align: center; padding-top: clamp(48px, 8vw, 90px); }
.hero h1 { margin: 22px auto 0; max-width: 16ch; }
.hero .lead { margin: 26px auto 0; text-align: center; font-size: clamp(17px, 1.7vw, 21px); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-models { margin-top: 30px; display: flex; justify-content: center; }
.hero-models .chip-row { justify-content: center; max-width: 720px; }

.hero-shot { margin-top: clamp(48px, 7vw, 84px); position: relative; }
.hero-shot .window { max-width: 1080px; margin: 0 auto; }
.hero-shot .window-body { display: flex; justify-content: center; background: #1c140f; }
.hero-shot .window-body img { max-height: 660px; width: auto; max-width: 100%; }

/* ---------- Marquee ---------- */
.marquee-sec { padding-block: clamp(40px, 6vw, 72px); border-block: 1px solid var(--hairline); background: var(--deep-2); }
.marquee-head { text-align: center; margin-bottom: 30px; }
.marquee-head p { margin-top: 12px; }
.marquee {
  display: flex; gap: 14px; width: max-content;
  animation: scrollx 38s linear infinite;
}
.marquee-mask { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-mask:hover .marquee { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee{ animation:none; } }
.mcell {
  display: flex; align-items: center; gap: 11px;
  background: var(--film-black);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 13px 18px;
  font-family: var(--font-mono); font-size: 14.5px;
  flex: none;
}
.mcell .cat { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); border-right: 1px solid var(--hairline-2); padding-right: 11px; }
.mcell .cat.vid { color: var(--flame-1); }
.mcell .cat.img { color: #8aa0ff; }
.mcell .cat.lip { color: #5fd0a8; }
.powered-by { text-align: center; margin-top: 28px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.powered-by b { color: var(--text); font-weight: 600; }

/* ---------- 3-beat pitch ---------- */
.beats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.beat { position: relative; }
.beat .num { font-family: var(--font-mono); font-size: 13px; color: var(--flame-1); letter-spacing: .1em; }
.beat .cell {
  margin-top: 16px; aspect-ratio: 1 / 1; max-height: 64px; width: 64px;
  border-radius: 12px; display: grid; place-items: center;
  background: var(--film-black); border: 1px solid var(--hairline-2);
}
.beat h3 { font-size: 21px; margin-top: 20px; }
.beat p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.beat .ico { width: 28px; height: 28px; stroke: var(--flame-1); }
.flow-arrow { display: none; }
@media (max-width: 820px){ .beats{ grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Feature zig-zag ---------- */
.feat {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px);
  align-items: center;
  margin-top: clamp(60px, 8vw, 110px);
}
.feat:first-of-type { margin-top: 56px; }
.feat.flip .feat-media { order: 2; }
.feat-copy .eyebrow { margin-bottom: 18px; }
.feat-copy h2 { margin-bottom: 18px; }
.feat-copy .lead { margin-bottom: 22px; }
.feat-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.feat-list li { display: flex; gap: 13px; align-items: flex-start; list-style: none; color: var(--muted); font-size: 15.5px; }
.feat-list li .tick { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; background: rgba(255,122,24,0.14); display: grid; place-items: center; }
.feat-list li .tick svg { width: 12px; height: 12px; stroke: var(--flame-1); }
.feat-list li b { color: var(--text); font-weight: 600; }
.pull-quote {
  margin-top: 26px; padding-left: 20px; border-left: 2px solid; border-image: var(--flame) 1;
  font-family: var(--font-display); font-size: 19px; line-height: 1.35; letter-spacing: -0.01em;
}
.feat-media .panel-shot { max-width: 420px; margin: 0 auto; }
.feat.wide .feat-media .panel-shot { max-width: 100%; }
@media (max-width: 880px){
  .feat { grid-template-columns: 1fr; gap: 32px; }
  .feat.flip .feat-media { order: 0; }
}

/* balance strip inset */
.balance-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.bal-card { background: var(--film-black); border: 1px solid var(--hairline); border-radius: 12px; padding: 16px 18px; }
.bal-card .who { font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.bal-card .who .d { width: 8px; height: 8px; border-radius: 50%; }
.bal-card .amt { font-family: var(--font-mono); font-size: 26px; margin-top: 8px; letter-spacing: -0.02em; }
.bal-card .amt small { font-size: 13px; color: var(--muted-2); }
.bal-card .track { height: 4px; border-radius: 3px; background: rgba(255,255,255,0.08); margin-top: 12px; overflow: hidden; }
.bal-card .track i { display: block; height: 100%; background: var(--flame-h); }

/* ---------- MVO centerpiece ---------- */
.mvo { background: var(--deep-2); border-block: 1px solid var(--hairline); overflow: hidden; }
.mvo-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.mvo-head .intro h2 { margin-top: 18px; }
.mvo-head .intro p { margin-top: 18px; }
@media (max-width: 820px){ .mvo-head { grid-template-columns: 1fr; gap: 20px; } }

.mvo-steps { margin-top: clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid; grid-template-columns: 64px 1fr 1fr; gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(34px, 4.5vw, 56px);
  border-top: 1px solid var(--hairline);
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step .rail-num {
  position: relative;
  font-family: var(--font-mono); font-size: 13px; color: var(--flame-1);
  align-self: start;
}
.step .rail-num .n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: var(--film-black); border: 1px solid var(--hairline-2); font-size: 15px; }
.step.flip .step-media { order: 2; }
.step-copy h3 { font-size: clamp(22px, 2.4vw, 28px); }
.step-copy p { margin-top: 14px; color: var(--muted); font-size: 16px; }
.step-copy .tag { margin-top: 16px; }
.step-media .panel-shot, .step-media .window { max-width: 460px; }
.step-media.tall .panel-shot { max-width: 320px; }

/* full-width stacked step (for wide/landscape assets like the plan table) */
.step.full { grid-template-columns: 64px 1fr; }
.step.full .step-copy { grid-column: 2; }
.step.full .step-media { grid-column: 2; order: 0; margin-top: 26px; }
.step.full .step-media .panel-shot, .step.full .step-media .window { max-width: 100%; }
@media (max-width: 880px){
  .step.full { grid-template-columns: 40px 1fr; }
}
@media (max-width: 880px){
  .step { grid-template-columns: 40px 1fr; }
  .step-media { grid-column: 2; }
  .step.flip .step-media { order: 0; }
  .step .rail-num .n { width: 38px; height: 38px; }
}

.mvo-rail-chips { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: clamp(40px,5vw,64px); }
.rail-chip { background: var(--panel); border: 1px solid var(--hairline); border-radius: 13px; padding: 20px; }
.rail-chip h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.rail-chip p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.rail-chip .ico { width: 22px; height: 22px; stroke: var(--flame-1); margin-bottom: 12px; }
@media (max-width: 820px){ .mvo-rail-chips{ grid-template-columns: 1fr; } }

/* ---------- Video showcase ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 50px; }
.album-note {
  margin-top: 16px; color: var(--muted-2); font-size: 12px; letter-spacing: .02em;
}
.album-note b,
.album-note a { color: var(--text); font-weight: 600; }
.album-note a { text-decoration: underline; text-decoration-color: rgba(255,122,24,.45); text-underline-offset: 3px; }
.album-note a:hover { color: var(--flame-1); }
.vcard { display: flex; flex-direction: column; gap: 14px; }
.vframe {
  position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden;
  background: #0c0712; border: 1px solid var(--hairline-2);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.85);
  cursor: pointer;
}
.vframe::after { content:''; position:absolute; inset:0; border-radius:16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05); pointer-events:none; }
.vclip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vslot {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(180deg, rgba(20,14,30,0.5), rgba(13,10,20,0.78));
  text-align: center; padding: 20px;
}
.vslot.hide { display: none; }
.sound-cta {
  position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 12px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 44px; padding: 8px 12px; border-radius: 9px;
  color: var(--text); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(15,10,24,.78); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px -18px rgba(0,0,0,.9);
  opacity: .92; transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}
.sound-cta small {
  font-size: 9px; letter-spacing: .08em; color: var(--muted-2); text-transform: uppercase;
}
.vframe:hover .sound-cta,
.vframe:focus-visible .sound-cta {
  opacity: 1; transform: translateY(-2px); border-color: rgba(255,122,24,.45);
}
.vplay {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--flame); color: #fff; font-size: 20px; padding-left: 4px;
  box-shadow: 0 8px 30px -6px rgba(255,61,46,0.7); cursor: pointer;
  transition: transform .2s ease;
}
.vframe:hover .vplay { transform: scale(1.08); }
.vlabel { font-size: 13px; color: var(--text); }
.vhint { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); letter-spacing: .02em; }
.vcard figcaption { font-size: 12.5px; color: var(--muted); letter-spacing: .01em; }
@media (max-width: 820px){ .showcase-grid{ grid-template-columns: 1fr; max-width: 360px; margin-inline:auto; } }

.video-modal[hidden] { display: none; }
.video-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: clamp(16px, 4vw, 48px);
}
.video-modal-backdrop {
  position: absolute; inset: 0; border: 0; cursor: pointer;
  background: rgba(8,5,13,.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.video-modal-panel {
  position: relative; z-index: 1; width: min(92vw, 520px);
  border-radius: 16px; overflow: hidden;
  background: #0c0712; border: 1px solid var(--hairline-2);
  box-shadow: 0 36px 120px -28px rgba(0,0,0,.92), 0 0 60px -24px rgba(255,61,46,.72);
}
.video-modal-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; background: #0F0A18; border-bottom: 1px solid var(--hairline);
}
.video-modal-bar h3 {
  font-size: 15px; letter-spacing: 0; line-height: 1.2;
}
.video-modal-close {
  flex: none; border: 1px solid var(--hairline-2); border-radius: 8px;
  background: rgba(255,255,255,.05); color: var(--text);
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  padding: 7px 10px; cursor: pointer;
}
.video-modal-close:hover { border-color: rgba(255,122,24,.45); }
#modalVideo {
  display: block; width: 100%; aspect-ratio: 9 / 16;
  background: #000;
}

/* ---------- Highlights grid ---------- */
.hl-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 50px; }
.hl {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--hairline); border-radius: 14px; padding: 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.hl:hover { transform: translateY(-3px); border-color: var(--hairline-2); }
.hl .ico { width: 24px; height: 24px; stroke: var(--flame-1); margin-bottom: 14px; }
.hl h4 { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.hl p { margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 880px){ .hl-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .hl-grid{ grid-template-columns: 1fr; } }

/* ---------- Built right ---------- */
.trust { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 50px; }
.trust-card { background: var(--panel); border: 1px solid var(--hairline); border-radius: 14px; padding: 26px; }
.trust-card .lock { width: 38px; height: 38px; border-radius: 10px; background: var(--film-black); border: 1px solid var(--hairline-2); display: grid; place-items: center; margin-bottom: 18px; }
.trust-card .lock svg { width: 19px; height: 19px; stroke: var(--flame-1); }
.trust-card h3 { font-size: 19px; }
.trust-card p { margin-top: 11px; color: var(--muted); font-size: 15px; }
.trust-card code { font-family: var(--font-mono); font-size: 13px; color: var(--flame-1); background: rgba(255,122,24,0.08); padding: 1px 6px; border-radius: 5px; }
@media (max-width: 880px){ .trust{ grid-template-columns: 1fr; } }

/* ---------- Get started ---------- */
.start { background: var(--deep-2); border-block: 1px solid var(--hairline); }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,80px); align-items: center; }
.steps-num { display: flex; flex-direction: column; gap: 8px; }
.snum { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-radius: 13px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.snum:hover { background: var(--panel); border-color: var(--hairline); }
.snum .i { font-family: var(--font-mono); font-size: 14px; color: var(--flame-1); width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--film-black); border: 1px solid var(--hairline-2); display: grid; place-items: center; }
.snum h4 { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.snum p { margin-top: 5px; font-size: 14.5px; color: var(--muted); }
.snum code { font-family: var(--font-mono); color: var(--text); }
.start-terminal {
  background: var(--film-black); border: 1px solid var(--hairline-2); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
}
.term-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.term-body { padding: 22px; font-family: var(--font-mono); font-size: 13.5px; line-height: 2; }
.term-body .c { color: var(--muted-2); }
.term-body .p { color: var(--flame-1); }
.term-body .g { color: #5fd0a8; }
.term-body .t { color: var(--text); }
.start-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.start-note { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
@media (max-width: 880px){ .start-grid{ grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 50px auto 0; }
.acc { border-top: 1px solid var(--hairline); }
.acc:last-child { border-bottom: 1px solid var(--hairline); }
.acc-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 28px; color: var(--text);
  font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 2vw, 21px); letter-spacing: -0.01em;
}
.acc-q .pm { flex: none; width: 26px; height: 26px; position: relative; }
.acc-q .pm::before, .acc-q .pm::after { content: ''; position: absolute; background: var(--flame-1); border-radius: 2px; transition: transform .25s ease; }
.acc-q .pm::before { left: 5px; right: 5px; top: 12px; height: 2px; }
.acc-q .pm::after { top: 5px; bottom: 5px; left: 12px; width: 2px; }
.acc.open .pm::after { transform: scaleY(0); }
.acc-a { overflow: hidden; max-height: 0; transition: max-height .32s ease; }
.acc-a-inner { padding: 0 28px 24px; color: var(--muted); font-size: 16px; max-width: 68ch; }
.acc-a-inner code { font-family: var(--font-mono); font-size: .9em; color: var(--flame-1); background: rgba(255,122,24,0.08); padding: 1px 6px; border-radius: 5px; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; background: var(--film-black); text-align: center; }
.final .glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 900px; height: 600px; max-width: 130vw;
  background: radial-gradient(45% 50% at 50% 50%, rgba(255,93,30,0.35), transparent 70%);
  filter: blur(30px); animation: breathe 7s ease-in-out infinite; pointer-events: none;
}
.final-inner { position: relative; z-index: 1; padding-block: clamp(80px, 11vw, 150px); }
.final h2 { margin: 22px auto 0; max-width: 16ch; }
.final .hero-cta { margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { background: var(--film-black); border-top: 1px solid var(--hairline); }
.footer-inner { padding-block: 54px; display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; align-items: flex-start; }
.footer .brand .word { font-size: 17px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.fcol h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.fcol a, .fcol span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 9px; transition: color .15s; }
.fcol a:hover { color: var(--text); }
.fcol .flink-disabled { color: var(--muted-2); cursor: not-allowed; }
.fcol .flink-disabled em { font-style: normal; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); border: 1px solid var(--hairline); border-radius: 4px; padding: 1px 5px; margin-left: 7px; }
.footer-bottom { border-top: 1px solid var(--hairline); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.footer-bottom p { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-2); }
.vsbadge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); border: 1px solid var(--hairline); border-radius: 8px; padding: 7px 12px; }
.vsbadge .d { width: 8px; height: 8px; border-radius: 2px; background: #28c840; }
