:root{
  --ivory:#efece6;
  --ivory-2:#e6e1d8;
  --ink:#0a0a0a;
  --cosmos:#05060a;
  --cosmos-2:#0a0d18;
  --white:#f6f3ec;
  --muted:#8b8a86;
  --muted-dark:#6e7686;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:#000;overflow-x:clip;overflow-y:auto;width:100%;}
body{background:#000;color:var(--ink);font-family:'Inter',system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:clip;overflow-y:visible;width:100%;max-width:100%;overscroll-behavior-x:none;position:relative;}

/* IMPORTANT: use overflow-x: clip, NOT hidden. `hidden` auto-promotes overflow-y
   to `auto` per spec, which creates a second scroll container on .stage and is
   what was causing the double scrollbar + scroll-jump in the videos section. */
.stage{position:relative;width:100%;min-height:100vh;overflow-x:clip;padding-bottom:0;margin-bottom:0}
.stage > .home-content { padding-bottom: 0; margin-bottom: 0; }
/* Desktop only — pin the hero overlay to the first viewport instead of
   stretching with the whole stage (which was creating the void at page bottom). */
@media (min-width: 901px) {
  .stage > .centerpiece { height: 100vh; bottom: auto; }
  /* Pull the gallery up flush against the hero on desktop */
  .stage > .home-content { margin-top: -8vh; }
  .social-strip { padding-top: 0; }
  .ss-header { margin-bottom: 20px; }
}
.tpf-ecosystem { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.tpf-connect { margin-bottom: 0 !important; padding-bottom: 24px !important; }
body, html { padding-bottom: 0 !important; margin-bottom: 0 !important; }

/* PANELS — cosmos fills the entire viewport; the curved divider is the only ivory shape on top */
.panel{position:absolute;top:0;height:100%}
.panel-left{display:none}
.panel-right{
  left:0;right:0;width:100%;
  background:#04050a;
  overflow:hidden;
}
.panel-right{background:#000}

/* THREE.JS HERO CANVAS */
#hero-three{
  position:absolute;
  inset:0;
  width:100%;height:100%;
  z-index:1;
  pointer-events:none;
  display:block;
}
/* Soft ambient glow behind text */
.hero-glow{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  background:
    radial-gradient(46% 38% at 50% 52%, rgba(0,0,0,.65) 0%, rgba(0,0,0,0) 75%),
    radial-gradient(70% 60% at 50% 50%, rgba(255,170,110,.02) 0%, transparent 60%),
    radial-gradient(60% 50% at 30% 70%, rgba(120,160,255,.015) 0%, transparent 60%);
}
#stars{position:absolute;inset:0;width:100%;height:100%}
.vignette{
  position:absolute;inset:0;
  background:
    radial-gradient(140% 90% at 50% 50%, transparent 40%, rgba(0,0,0,.55) 90%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 25%, transparent 75%, rgba(0,0,0,.4) 100%);
  pointer-events:none;
}

/* CURVED DIVIDER — this IS the left side. Cosmos shows everywhere else. */
.divider{
  position:absolute;
  top:0;left:0;
  width:58%;
  height:100%;
  z-index:3;
  filter:drop-shadow(2px 0 40px rgba(0,0,0,.45));
  animation:breathe 12s ease-in-out infinite alternate;
}
@keyframes breathe{
  0%{transform:translateX(-0.4%) scaleX(1)}
  100%{transform:translateX(0.4%) scaleX(1.01)}
}

/* PLANETS */
.planet{
  position:absolute;border-radius:50%;
  background:radial-gradient(circle at 30% 30%, #2a2a2a, #050505 70%);
  box-shadow:inset -8px -6px 20px rgba(0,0,0,.8);
  z-index:4;
}
.planet-1{width:46px;height:46px;top:24%;left:38%;
  background:radial-gradient(circle at 35% 30%, #1a1a1a, #000 70%);}
.planet-2{width:14px;height:14px;top:22%;left:44%;
  background:radial-gradient(circle at 30% 30%, #333, #050505 80%);}
.planet-3{width:8px;height:8px;top:62%;left:18%;background:#0a0a0a}

/* HAIRLINE */
.hairline{
  position:absolute;
  top:43%;left:0;
  width:38%;
  height:1px;
  background:linear-gradient(90deg, transparent, #0a0a0a 12%, #0a0a0a 92%, transparent);
  z-index:5;
}
.ink-splatter{
  position:absolute;
  top:calc(43% - 14px);
  left:0;
  width:90px;height:28px;
  z-index:5;
  background:
    radial-gradient(2px 1px at 10px 14px, #0a0a0a 100%, transparent 100%),
    radial-gradient(3px 2px at 24px 18px, #0a0a0a 100%, transparent 100%),
    radial-gradient(1px 1px at 40px 12px, #0a0a0a 100%, transparent 100%),
    radial-gradient(2px 1px at 56px 20px, #0a0a0a 100%, transparent 100%),
    radial-gradient(1px 1px at 70px 16px, #0a0a0a 100%, transparent 100%),
    radial-gradient(1px 1px at 82px 22px, #0a0a0a 100%, transparent 100%);
}

/* NAV — Framer style, no background */
.nav{
  position:absolute;
  top:22px;left:0;right:0;
  display:flex;align-items:center;justify-content:space-between;
  gap:24px;
  padding:0 36px;
  background:transparent;
  border:none;
  z-index:999;
  font-family:'Inter',sans-serif;
  color:#f4f1ea;
  pointer-events: auto;
}
.nav-brand{
  display:inline-flex;align-items:center;gap:11px;
  color:#f4f1ea;text-decoration:none;
  font-weight:600;letter-spacing:.02em;font-size:19px;
}
.brand-mark{
  display:inline-flex;align-items:center;justify-content:center;
  width:31px;height:31px;
  font-size:20px;line-height:1;
  color:#0a0a0a;background:#f4f1ea;
  border-radius:7px;
}
.brand-name{font-size:19px}

.nav-links{
  display:flex;align-items:center;gap:28px;
  flex:1;justify-content:center;
}
.nav-item{position:relative}
.nav-trigger{
  appearance:none;
  background:transparent;
  border:0;
  padding:8px 14px;
  display:inline-flex;align-items:center;gap:6px;
  color:#d8d4cc;
  font-family:inherit;
  font-size:13px;
  letter-spacing:.005em;
  cursor:pointer;
  border-radius:8px;
  transition:color .2s ease, background-color .2s ease;
}
.nav-trigger:hover,
.nav-item:hover .nav-trigger{
  color:#fff;
  background:rgba(255,255,255,.05);
}
.caret{
  width:9px;height:9px;
  transition:transform .25s ease;
  opacity:.75;
}
.nav-item:hover .caret{transform:rotate(180deg);opacity:1}

/* Dropdown menu */
.nav-menu{
  position:absolute;
  top:calc(100% + 10px);
  left:50%;
  transform:translateX(-50%) translateY(-6px);
  min-width:280px;
  padding:10px;
  background:rgba(10,10,10,.60);
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  backdrop-filter:blur(32px) saturate(1.4);
  -webkit-backdrop-filter:blur(32px) saturate(1.4);
  box-shadow:0 24px 60px rgba(0,0,0,.5);
  display:flex;flex-direction:column;gap:2px;
  opacity:0;visibility:hidden;
  transition:opacity .22s ease, transform .22s ease, visibility .22s;
  z-index:30;
}
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu{
  opacity:1;visibility:visible;
  transform:translateX(-50%) translateY(0);
}
.nav-menu.nav-menu-right {
  transform: translateX(0) translateY(-6px);
}
.nav-item:hover .nav-menu.nav-menu-right,
.nav-item:focus-within .nav-menu.nav-menu-right {
  transform: translateX(0) translateY(0);
}
/* Hover bridge so the menu doesn't disappear when crossing the gap */
.nav-menu::before{
  content:"";
  position:absolute;
  top:-12px;left:0;right:0;height:12px;
}
.nav-menu a{
  display:flex;flex-direction:column;gap:2px;
  padding:10px 12px;
  border-radius:8px;
  color:#f4f1ea;
  text-decoration:none;
  transition:background-color .15s ease;
}
.nav-menu a:hover{background:rgba(255,255,255,.06)}
.mi-title{
  font-size:13px;font-weight:500;color:#f4f1ea;
}
.mi-sub{
  font-size:11px;color:#9b978f;letter-spacing:.01em;
}

.nav-cta{display:flex;align-items:center;gap:14px}
.nav-login{
  color:#d8d4cc;
  font-size:13px;
  text-decoration:none;
  transition:color .2s ease;
}
.nav-login:hover{color:#fff}
.nav-signup{
  display:inline-flex;align-items:center;gap:6px;
  background:linear-gradient(135deg, #fff 0%, #e8e4dd 100%);
  color:#0a0a0a;
  font-size:13px;font-weight:600;
  text-decoration:none;
  padding:9px 18px 9px 20px;
  border-radius:999px;
  transition:all .25s ease;
  box-shadow:0 2px 12px rgba(255,255,255,.08);
}
.nav-signup:hover{
  background:#fff;
  transform:translateY(-1px);
  box-shadow:0 4px 20px rgba(255,255,255,.15);
}
.nav-signup svg{transition:transform .2s ease}
.nav-signup:hover svg{transform:translateX(2px)}

@media (max-width:900px){
  .nav-links{display:none}
}

/* services list removed */

/* RIGHT TAG */
.tag-right{
  position:absolute;
  right:8%;top:38%;
  color:#e3dfd5;
  font-size:22px;
  font-weight:300;
  letter-spacing:.005em;
  line-height:1.25;
  text-align:left;
  z-index:6;
}

/* CENTERPIECE TPF */
.centerpiece{
  position:relative;
  width:100%;
  max-width:100%;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  z-index:7;
  pointer-events:none;
  will-change:transform;
}
.brand-layer{
  position:relative;
  z-index:5;
  width:100%;
  max-width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding-top:18vh;
  padding-bottom:4vh;
  gap:.02em;
  font-family:'Manrope','SF Pro Display','Inter',system-ui,sans-serif;
  font-weight:600;
  font-size:clamp(48px, 7.8vw, 120px);
  line-height:.98;
  letter-spacing:-0.04em;
  text-align:center;
  pointer-events:none;
  user-select:none;
}
.brand-layer .bl-line{font-weight:600}
.brand-sub{font-family:'Inter',system-ui,sans-serif;font-weight:400}

.home-content {
  position: relative;
  z-index: 10;
  width: 100%;
}
.brand-layer span{display:block}
.brand-white{
  color:#fafaf4;
}

/* Subtext under main wordmark — inherits color from parent layer */
.brand-sub{
  margin-top:clamp(20px, 2vw, 32px);
  font-family:'Manrope',sans-serif;
  font-weight:400;
  font-size:clamp(15px, 1.2vw, 20px);
  letter-spacing:-0.01em;
  line-height:1.45;
  color:inherit;
  opacity:.72;
  max-width:680px;
  text-align:center;
  white-space:normal;
}
.mobile-br { display: none; }

/* WELCOME VIDEO — fluid card */
.welcome-video{
  margin: clamp(28px, 3vw, 44px) auto 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  max-width:680px;
  text-align:left;
  pointer-events:auto;
}
.wv-thumb{
  position:relative;
  flex-shrink:0;
  width:460px;
  aspect-ratio:16/9;
  border-radius:14px;
  background-color:#111;
  background-image:url("thumb.png?v=2");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  border:1px solid rgba(255,255,255,.08);
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  text-decoration:none;
  cursor:pointer;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.wv-thumb:hover{
  transform:scale(1.03);
  border-color:rgba(255,255,255,.2);
  box-shadow:0 8px 32px rgba(0,0,0,.4);
}
.wv-play-ring{
  position:relative;z-index:2;
  width:36px;height:36px;
  border-radius:50%;
  border:1.5px solid rgba(255,255,255,.6);
  background:rgba(0,0,0,.4);
  backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:center;
  transition:background .25s ease, border-color .25s ease, transform .25s ease;
}
.wv-thumb:hover .wv-play-ring{
  background:rgba(255,255,255,.12);
  border-color:#fff;
  transform:scale(1.08);
}
.wv-text{
  display:flex;flex-direction:column;gap:8px;
  min-width:0;
  align-items:flex-start;
}
.wv-label{
  font-family:'Inter',sans-serif;
  font-size:11px;
  font-weight:600;
  letter-spacing:0.15em;
  text-transform:uppercase;
  color:rgba(255,255,255,.65);
}
.wv-title{
  font-family:'Manrope',sans-serif;
  font-weight:600;
  font-size:18px;
  color:#fff;
  line-height:1.3;
  margin:0;
  letter-spacing:-.02em;
}
/* Watch button */
.wv-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.wv-watch-btn{
  display:inline-flex;align-items:center;gap:7px;
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
  padding:8px 18px;
  border-radius:999px;
  font-family:'Inter',sans-serif;
  font-size:12px;font-weight:500;
  letter-spacing:.03em;
  text-decoration:none;
  cursor:pointer;
  pointer-events:auto;
  transition:all .25s ease;
  margin-top:2px;
}
.wv-watch-btn:hover{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.5);
  transform:translateY(-1px);
}
.wv-watch-btn svg{transition:transform .2s ease}
.wv-watch-btn:hover svg{transform:translateX(3px)}

/* White-fill variant — same shape as wv-watch-btn, inverted colors */
.wv-watch-btn.wv-watch-btn--fill{
  background:#fff;
  color:#000;
  border-color:#fff;
  margin-top:8px;
}
.wv-watch-btn.wv-watch-btn--fill:hover{
  background:rgba(255,255,255,.85);
  border-color:#fff;
  transform:translateY(-1px);
}

/* ── PORTAL LIVE EMBED — clean, matches site ── */
.portal-live-embed{
  width:100%;
  max-width:1280px;
  margin:56px auto 0;
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px;
  overflow:hidden;
  background:#000;
  box-shadow:0 30px 80px rgba(0,0,0,.4);
}
.portal-embed-chrome{
  background:#0a0a0a;
  padding:12px 18px;
  display:flex;
  align-items:center;
  gap:18px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.portal-embed-dots{display:flex;gap:6px;flex-shrink:0}
.portal-embed-dots span{
  width:9px;height:9px;border-radius:50%;display:block;
  background:rgba(255,255,255,.18);
}
.portal-embed-dots span:nth-child(1){background:#ff5f57}
.portal-embed-dots span:nth-child(2){background:#febc2e}
.portal-embed-dots span:nth-child(3){background:#28c840}
.portal-embed-url{
  flex:1;
  display:flex;
  align-items:center;
  gap:8px;
  background:transparent;
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  padding:6px 14px;
  color:rgba(255,255,255,.4);
}
.portal-embed-url span{
  font-family:'Inter',sans-serif;
  font-size:.72rem;
  color:rgba(255,255,255,.6);
  letter-spacing:.01em;
}
.portal-embed-visit{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:'Inter',sans-serif;
  font-size:.7rem;
  font-weight:500;
  letter-spacing:.04em;
  color:#fff;
  text-decoration:none;
  padding:6px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background:transparent;
  transition:background .2s,border-color .2s,transform .2s;
  white-space:nowrap;
  flex-shrink:0;
}
.portal-embed-visit:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.5);
  transform:translateY(-1px);
}
.portal-iframe-wrap{
  position:relative;
  width:100%;
  height:560px;
  overflow:hidden;
  background:#000;
}
.portal-iframe{
  width:100%;
  height:100%;
  border:none;
  background:#000;
  display:block;
  pointer-events:none;     /* kill scroll-hijack from the iframe */
}
/* Transparent click overlay: lets visitors click through to the hub */
.portal-iframe-overlay{
  position:absolute;
  inset:0;
  display:block;
  z-index:2;
  cursor:pointer;
}
@media (max-width:900px){
  .portal-live-embed{border-radius:12px;margin-top:36px}
  .portal-embed-chrome{padding:10px 14px;gap:12px}
  .portal-embed-dots span{width:8px;height:8px}
  .portal-embed-url{padding:5px 12px}
  .portal-embed-url span{font-size:.62rem}
  .portal-embed-visit{font-size:.62rem;padding:5px 12px}
  .portal-iframe-wrap{
    height: 440px;
    container-type: inline-size;
  }
  .portal-iframe {
    width: 1280px !important;
    height: 800px !important;
    transform-origin: 0 0;
    transform: scale(calc(100cqi / 1280)) !important;
  }
}
@media (max-width:500px){
  .portal-embed-chrome{padding:8px 10px;gap:8px}
  .portal-embed-url{padding:4px 10px}
  .portal-embed-url span{font-size:.58rem}
  .portal-embed-visit svg{display:none}
  .portal-iframe-wrap{height:380px}
}

@media (max-width:600px){
  .welcome-video{flex-direction:column;align-items:flex-start;gap:14px;max-width:320px}
  .wv-thumb{width:100%}
}

.mobile-connect { display: none; }

/* ========== CINEMATIC GALLERY ========== */
/* ============ SOCIAL STRIP — IG + TikTok feed row ============ */
.social-strip {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding-bottom: 80px;
  background: transparent;
  pointer-events: auto;
}
.ss-header {
  padding: 0 48px;
  margin-bottom: 32px;
  text-align: center;
  width: 100%;
}
.ss-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.ss-title {
  font-family: 'Manrope', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.ss-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

/* Arrow controls under the subtext */
.ss-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}
.ss-arrow {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.ss-arrow:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.25);
}
.ss-arrow:active { transform: scale(0.94); }
.ss-arrow svg { width: 16px; height: 16px; }

/* Native scroll-snap row — no JS layout, no scroll hijacking.
   On desktop the row is centered; on mobile it scrolls horizontally with snap. */
.ss-stage {
  position: relative;
  width: 100%;
  margin-top: 28px;
  overflow: visible;
  /* Browser handles touch; nothing here intercepts vertical scroll. */
}
.ss-track {
  display: flex;
  gap: 20px;
  padding: 8px 24px 16px;
  align-items: stretch;
  justify-content: center;
}
.ss-card {
  position: relative;
  flex: 0 0 280px;
  width: 280px;
  height: 497px;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.ss-card:hover { transform: translateY(-4px); }

/* MOBILE: turn the row into a native horizontal scroller with snap.
   No JS, no transforms — vertical page scroll is never intercepted. */
@media (max-width: 900px) {
  .ss-stage {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .ss-stage::-webkit-scrollbar { display: none; }
  .ss-track {
    display: flex;
    justify-content: flex-start;
    padding: 8px 16vw 16px;     /* big side padding so first/last cards center */
    width: max-content;
    gap: 16px;
  }
  .ss-card {
    scroll-snap-align: center;
    flex: 0 0 78vw;
    width: 78vw;
    max-width: 320px;
    height: calc(78vw * 1.78);
    max-height: 560px;
  }
}

.ss-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0c;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ss-card.is-active .ss-frame {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

/* Cover image fills the frame as the video poster.
   Hidden until JS injects a real src from oEmbed — never show g1/g2/g3 placeholders. */
.ss-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ss-cover[src]:not([src=""]) {
  opacity: 1;
}
.ss-frame::before {
  /* subtle vignette so handle + play button read on any cover */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Avatar circle */
.ss-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  background: linear-gradient(135deg, #2a2a2a, #0e0e0e);
  border: 1px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}
/* Profile chip sits in top-left over the cover */
.ss-user {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 3;
}
.ss-handle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}

/* Centered play button over the cover */
.ss-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  z-index: 3;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.ss-play svg { width: 24px; height: 24px; margin-left: 3px; }
.ss-card.is-active:hover .ss-play {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.55);
  transform: translate(-50%, -50%) scale(1.06);
}

/* ========== TPF ECOSYSTEM ========== */
.tpf-ecosystem {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 4vw, 48px);
  pointer-events: auto;
  width: 100%;
}
@media (max-width: 900px) {
  .tpf-ecosystem { margin-top: clamp(24px, 6vw, 48px); }
}

.tpf-resources {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 40px;
  box-sizing: border-box;
}

.tpf-companies {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  overflow-x: clip;
}

/* Intro header for the resources block */
.resources-intro {
  text-align: center;
  margin-bottom: 80px;
}
.resources-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.resources-intro .section-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin: 0;
}

/* Each resource = its own tighter scroll section */
.resource-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: 60vh;
  padding: 48px 0;
  scroll-margin-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.resource-section:first-of-type {
  border-top: none;
}
.resource-section--flip .resource-visual { order: 2; }
.resource-section--flip .resource-text   { order: 1; }

.resource-visual {
  position: relative;
  width: 100%;
  height: clamp(260px, 42vh, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.resource-visual .rc-canvas {
  width: 100%;
  height: 100%;
  max-width: 360px;
  max-height: 360px;
  background: transparent;
  display: block;
}

/* Inline canvas next to the heading — used on mobile.
   On desktop we keep it laid out but invisible so its size is real at init time. */
.rc-canvas-inline {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: transparent;
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

.resource-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 460px;
}
.resource-heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.resource-heading span { display: inline-block; }

/* Plain heading (no inline 3D canvas) + left-margined text variant */
.resource-heading--plain { gap: 0; }
.resource-text--left {
  text-align: left;
  align-items: flex-start;
  margin-left: 0;
}
.resource-text--left .resource-heading,
.resource-text--left .resource-desc { text-align: left; }
.resource-desc {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  margin: 0;
  max-width: 460px;
}
/* Minimal underlined link with arrow — used by resource CTAs + Open Nav */
.resource-cta,
.footer-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 0;
  background: transparent;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  margin-top: 4px;
  transition: color 0.2s ease;
}
.resource-cta:hover,
.footer-nav-link:hover {
  color: #fff;
}
.resource-cta svg,
.footer-nav-link svg {
  transition: transform 0.25s ease;
}
.resource-cta:hover svg,
.footer-nav-link:hover svg {
  transform: translateX(3px);
}

.eco-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* EXPLORE TPF ECOSYSTEM */
.tpf-ecosystem {
  pointer-events: auto;
  white-space: normal;
  letter-spacing: normal;
  text-align: left;
  width: 100%;
}

/* Resource Grid — flat editorial */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  width: 100%;
}
.resource-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  padding: 0;
  align-items: flex-start;
}

/* Inline title row */
.rc-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.rc-canvas {
  width: 48px;
  height: 48px;
  background: transparent;
  display: block;
}
.rc-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 36px);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.rc-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  margin: 0 0 24px 0;
  max-width: 420px;
}
.rc-link {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border-radius: 0;
  transition: opacity 0.2s ease;
  width: fit-content;
}
.rc-link:hover {
  opacity: 0.7;
}

/* Inline footer sitemap nav — expandable accordion */
.footer-nav {
  width: 100%;
  max-width: 720px;
  margin: 48px auto 24px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-nav .fn-link,
.footer-nav .fn-trigger {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #fff;
  text-align: left;
  text-decoration: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease;
}
.footer-nav .fn-link:hover,
.footer-nav .fn-trigger:hover {
  background: rgba(255,255,255,0.03);
}
.footer-nav .fn-caret {
  width: 11px;
  height: 7px;
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.footer-nav .fn-group.active .fn-caret {
  transform: rotate(180deg);
  opacity: 1;
}
.footer-nav .fn-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 20px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}
.footer-nav .fn-group.active .fn-content {
  max-height: 600px;
  opacity: 1;
  padding: 6px 20px 14px 32px;
}
.footer-nav .fn-sublink {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  padding: 10px 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
}
.footer-nav .fn-sublink:hover {
  color: #fff;
}
.footer-nav .fn-sub-desc {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .footer-nav {
    margin: 32px auto 16px;
  }
  .footer-nav .fn-link,
  .footer-nav .fn-trigger {
    font-size: 17px;
    padding: 16px 16px;
  }
  .footer-nav .fn-content {
    padding: 0 16px 0 24px;
  }
  .footer-nav .fn-group.active .fn-content {
    padding: 4px 16px 10px 24px;
  }
}

/* Connect with TPF — footer */
.tpf-connect {
  margin-top: 60px;
  padding: 40px 0 32px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}
.connect-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 18px;
}
.mc-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}
.mc-socials a {
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.mc-socials a:hover {
  color: #fff;
  transform: translateY(-2px);
}
.mc-socials svg {
  width: 20px;
  height: 20px;
}
.connect-winr {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
}

.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 60px 0;
  text-align: left;
}

@media (max-width: 900px) {
  .tpf-ecosystem {
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: clip;
  }
  .tpf-resources {
    padding: 48px 0 24px !important;
    box-sizing: border-box;
  }
  .resources-intro {
    margin-bottom: 28px;
  }
  .resources-intro .section-title {
    font-size: clamp(26px, 7.5vw, 36px);
  }

  /* Mobile: text-only column, asset sits inline next to the heading */
  .resource-section,
  .resource-section--flip {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
    padding: 32px 0;
  }
  .resource-section .resource-text,
  .resource-section--flip .resource-text {
    order: 1;
    gap: 14px;
  }

  /* Hide the large standalone canvas on mobile */
  .resource-section .resource-visual,
  .resource-section--flip .resource-visual {
    display: none;
  }

  /* Show the inline canvas right next to the heading on mobile */
  .rc-canvas-inline {
    visibility: visible;
    position: static;
    pointer-events: none;   /* let scroll/tap pass through the small canvas */
    display: inline-block;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: transparent;
  }
  /* Make sure resource sections never trap touch-scroll */
  .resource-section,
  .resource-section--flip,
  .tpf-resources {
    touch-action: pan-y;
  }
  .resource-heading {
    font-size: clamp(26px, 8vw, 36px);
    line-height: 1.05;
    gap: 10px;
    align-items: center;
  }
  .resource-desc { font-size: 14px; line-height: 1.55; }
  .resource-cta { padding: 11px 16px; font-size: 13px; }
  .tpf-connect { margin-top: 40px; }
  .mc-socials { gap: 24px; }
  .mc-socials svg { width: 20px; height: 20px; }
  .connect-winr { font-size: 14px !important; }
}


.explore-item {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .22s ease, transform .22s ease, filter .22s ease;
  opacity: .85;
}
.explore-item:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Morning BREF — original logo: serif italic top + bold main, lime */
.explore-bref{
  flex-direction:column;
  align-items:center;
  gap:1px;
  line-height:1;
}
.explore-bref-top{
  font-family:'Instrument Serif',serif;
  font-style:italic;
  font-size:11px;
  letter-spacing:.28em;
  color:#cdfa3d;
  text-transform:uppercase;
}
.explore-bref-main{
  font-family:'Manrope',sans-serif;
  font-weight:900;
  font-size:32px;
  color:#cdfa3d;
  letter-spacing:-.02em;
  line-height:1;
}

/* Traider — original logo: lavender + AI badge */
.explore-traider{
  align-items:baseline;
  gap:4px;
}
.explore-traider-main{
  font-family:'Manrope',sans-serif;
  font-weight:700;
  font-size:28px;
  color:#c2b9e8;
  letter-spacing:.02em;
}
.explore-traider-ai{
  font-family:'Inter',sans-serif;
  font-size:11px;
  font-weight:600;
  letter-spacing:.14em;
  color:#c2b9e8;
  padding:2px 5px;
  border:1px solid rgba(194,185,232,.35);
  border-radius:3px;
  text-transform:uppercase;
}

/* WINR — clean white bold */
.explore-winr-text{
  font-family:'Manrope',sans-serif;
  font-weight:700;
  font-size:30px;
  color:#fff;
  letter-spacing:.03em;
}

/* Dot separator */
.explore-dot{
  width:4px;height:4px;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  flex-shrink:0;
}

/* New Logos */
.explore-openai-text{font-family:'Inter',sans-serif;font-weight:600;font-size:24px;color:#fff;letter-spacing:-.03em;}
.explore-claude-text{font-family:'Manrope',sans-serif;font-weight:500;font-size:26px;color:#d4c5b9;letter-spacing:.01em;}
.explore-youtube-text{font-family:'Inter',sans-serif;font-weight:700;font-size:24px;color:#ff0000;letter-spacing:-.04em;}

/* Horizontal Ticker styles */
.ticker-horizontal {
  width: 480px; /* Wider to comfortably fit all 3 logos side-by-side */
  height: 48px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.ticker-horizontal .ticker-wrapper {
  display: flex;
  flex-direction: row;
  width: 300%; /* 3 slides total */
  height: 100%;
  gap: 0;
  animation: tickerSlideHoriz 12s cubic-bezier(0.8, 0, 0.2, 1) infinite;
}
.ticker-slide {
  width: 33.3333%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
@keyframes tickerSlideHoriz {
  0%, 35% { transform: translateX(0); }
  45%, 85% { transform: translateX(-33.3333%); }
  95%, 100% { transform: translateX(-66.6666%); }
}

@media (max-width:700px){
  .explore-strip{
    padding:12px 20px;
    border-radius:20px;
    gap:12px;
  }
  .explore-bref-main{font-size:15px}
  .explore-traider-main{font-size:13px}
  .explore-winr-text{font-size:14px}
}
@media (max-width:500px){
  .explore-strip{flex-direction:column;gap:10px;border-radius:16px}
  .explore-sep{width:40px;height:1px}
}



/* PARTNERS BLOCK — lives inside .brand-layer flex stack, directly under .brand-sub */
.hp-title{
  margin-top:clamp(28px, 3vw, 48px);
  font-family:'Inter',system-ui,sans-serif;
  font-size:11px;
  font-weight:500;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:inherit;
  opacity:.55;
}

/* Infinite marquee — duplicate set + 50% translate loop */
.hp-marquee{
  margin-top:clamp(20px, 2vw, 32px);
  width:min(880px, 80vw);
  max-width:880px;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image:linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.hp-track{
  display:flex;
  width:max-content;
  gap:clamp(48px, 5vw, 96px);
  animation:hp-slide 38s linear infinite;
}
.hp-set{
  display:flex;
  gap:clamp(48px, 5vw, 96px);
  align-items:center;
  flex-shrink:0;
}
@keyframes hp-slide{
  from{transform:translateX(0)}
  to{transform:translateX(calc(-50% - clamp(24px, 2.5vw, 48px)))}
}
.hpl{
  width:clamp(30px, 2.6vw, 42px);
  height:clamp(30px, 2.6vw, 42px);
  display:block;
  flex-shrink:0;
  color:inherit;
  opacity:.72;
  transition:opacity .25s ease, transform .25s ease;
}
.hpl:hover{opacity:1;transform:scale(1.08)}

@media (max-width:900px){
  .hpl{width:26px;height:26px}
  .hp-title{font-size:10px;letter-spacing:.24em}
  .hp-track{gap:36px;animation-duration:30s}
  .hp-set{gap:36px}
}
.brand{
  font-family:'Manrope',sans-serif;
  font-weight:900;
  font-size:clamp(140px, 24vw, 360px);
  line-height:.85;
  letter-spacing:-.04em;
  white-space:nowrap;
  display:inline-flex;
  align-items:flex-start;
}
/* Legacy stacked-copy rules removed — single .brand-white layer used now */
/* Screen-reader-only single H1 for semantics */
.brand-sr{
  position:absolute;
  width:1px;height:1px;
  overflow:hidden;clip:rect(0 0 0 0);
  white-space:nowrap;
}
.reg{
  font-family:'Inter',sans-serif;
  font-size:.09em;
  font-weight:400;
  margin-top:.15em;
  margin-left:.05em;
  color:#0a0a0a;
}
.reg-white{color:#fafaf4}

/* CAPTION BLOCK */
.caption-block{
  position:absolute;
  left:50%;
  bottom:64px;
  transform:translateX(-50%);
  text-align:center;
  color:#efece4;
  z-index:9;
}
.caption-headline{
  font-family:'Manrope',sans-serif;
  font-weight:500;
  font-size:14px;
  line-height:1.45;
  letter-spacing:.01em;
}
.caption-sub{
  margin-top:14px;
  font-size:10px;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:#a8a39a;
}

/* FOOTNOTES */
.footnote{
  position:absolute;
  bottom:32px;
  font-size:10px;
  letter-spacing:.22em;
  text-transform:uppercase;
  z-index:10;
}
.footnote-left{
  left:44px;bottom:32px;
  display:none; /* services occupy this area */
}
.footnote-right{
  right:44px;
  display:flex;flex-direction:column;gap:2px;
  color:#cfcbc1;
  text-align:right;
  letter-spacing:.02em;
  text-transform:none;
  font-size:11px;
}

/* custom cursor removed — using native OS cursor */

/* FILM GRAIN */
.film-grain{
  position:absolute;inset:-50%;
  pointer-events:none;
  z-index:20;
  opacity:.06;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
  animation:grain 1.4s steps(3) infinite;
}
@keyframes grain{
  0%{transform:translate(0,0)}
  33%{transform:translate(-2%,1%)}
  66%{transform:translate(1%,-2%)}
  100%{transform:translate(0,0)}
}

/* LOAD FADE-IN */
.nav,.tag-right,.caption-block,.footnote-right,.centerpiece,.hairline,.ink-splatter,.planet{
  opacity:0;
  transform:translateY(8px);
  animation:fadeIn 1.4s cubic-bezier(.2,.7,.2,1) forwards;
}
.centerpiece{animation-delay:.2s;animation-duration:1.6s}
.nav{animation-delay:.5s}
.tag-right{animation-delay:.7s}
.caption-block{animation-delay:.95s}
.footnote-right{animation-delay:1s}
.hairline,.ink-splatter{animation-delay:1.1s}
.planet-1{animation-delay:1.2s}
.planet-2{animation-delay:1.3s}
.planet-3{animation-delay:1.35s}
@keyframes fadeIn{
  to{opacity:1;transform:translateY(0)}
}

@media (max-width: 900px){
  .brand{font-size:38vw}
  .services,.tag-right{display:none}
  .panel-right{width:60%}
}

/* ========== MOBILE BACK ARROW — subpages only ========== */
.nav-back{
  display: none; /* hidden on desktop; mobile media query reveals it */
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, border-color 0.2s;
}
.nav-back:active { background: rgba(255,255,255,0.10); }
.nav-back svg { width: 18px; height: 18px; }

/* ========== HAMBURGER BUTTON — Framer-style minimal ========== */
.nav-burger{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:flex-end;
  gap:6px;
  width:44px;height:44px;
  background:none;
  border:none;
  cursor:pointer;
  padding:10px;
  z-index:2000;
  -webkit-tap-highlight-color:transparent;
  transition:transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}
.nav-burger span{
  display:block;
  width:26px;
  height:2px;
  background:#fff;
  border-radius:2px;
  transition:transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, width 0.3s ease;
  transform-origin:center;
}
.nav-burger span:last-child { width: 18px; }
.nav-burger:hover span:last-child { width: 26px; }

.nav-burger.open{
  transform: rotate(90deg);
}
.nav-burger.open span{
  background: #fff;
  width: 26px !important;
}
.nav-burger.open span:first-child{
  transform:translateY(4px) rotate(45deg);
}
.nav-burger.open span:last-child{
  transform:translateY(-4px) rotate(-45deg);
}

/* ========== MOBILE MENU OVERLAY ========== */
.mobile-menu{
  position:fixed; inset:0; z-index:1500;
  background:#000;
  display:flex; flex-direction:column;
  opacity:0; visibility:hidden;
  transition:opacity 0.35s ease, visibility 0.35s;
  pointer-events:none;
}
.mobile-menu.open{ opacity:1; visibility:visible; pointer-events:auto; }

.mm-inner{
  display:flex; flex-direction:column;
  padding: 80px 24px 40px;
  width: 100%; height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.mm-global-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9b978f;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 32px;
  cursor: pointer;
  transition: color 0.2s ease;
  width: fit-content;
}
.mm-global-back:hover { color: #fff; }
.mm-global-back svg { width: 18px; height: 18px; }

.mm-main-list {
  display: flex; flex-direction: column;
  width: 100%;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.mm-link, .mm-group-trigger{
  font-family: -apple-system, 'SF Pro Display', 'Inter', sans-serif;
  font-size: 26px; font-weight: 600; color:#fff;
  text-decoration:none; letter-spacing: -0.02em;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  outline: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: opacity 0.2s ease;
  opacity: 0; transform: translateY(12px);
  width: 100%;
  background: none;
  cursor: pointer;
  text-align: left;
}

/* Staggered entrance */
.mobile-menu.open .mm-link,
.mobile-menu.open .mm-group-trigger {
  animation: mmSlideIn 0.4s ease forwards;
}
.mobile-menu.open .mm-main-list > :nth-child(1) { animation-delay: 0.04s; }
.mobile-menu.open .mm-main-list > :nth-child(2) .mm-group-trigger { animation-delay: 0.08s; }
.mobile-menu.open .mm-main-list > :nth-child(3) .mm-group-trigger { animation-delay: 0.12s; }
.mobile-menu.open .mm-main-list > :nth-child(4) .mm-group-trigger { animation-delay: 0.16s; }
.mobile-menu.open .mm-main-list > :nth-child(5) .mm-group-trigger { animation-delay: 0.20s; }

@keyframes mmSlideIn {
  to { opacity: 1; transform: translateY(0); }
}

.mm-link:active, .mm-group-trigger:active { opacity: 0.5; }

.mm-group { width: 100%; }
.mm-group-trigger {
  background: none; border: none; outline: none;
  width: 100%; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mm-group-trigger .caret {
  width: 12px; height: 12px;
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mm-group.active .mm-group-trigger .caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* Back button no longer needed — hidden in inline-accordion mode */
.mm-back-btn { display: none; }

/* Inline accordion: dropdown expands directly under its trigger */
.mm-group-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
  padding: 0 0 0 14px;
  border-left: 1px solid rgba(255,255,255,0.08);
  margin-left: 4px;
}

.mm-group.active .mm-group-content {
  max-height: 800px;
  opacity: 1;
  padding: 4px 0 12px 14px;
}

.mm-group-content > div { display: flex; flex-direction: column; gap: 0; }

.mm-sublink {
  font-family: -apple-system, 'SF Pro Display', 'Inter', sans-serif;
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.78);
  text-decoration: none; padding: 10px 0; transition: opacity 0.2s, color 0.2s;
  border: none;
  display: flex; flex-direction: column;
  letter-spacing: -0.01em;
}
.mm-sublink:hover { color: #fff; }
.mm-sublink-desc {
  font-family: -apple-system, 'Inter', sans-serif;
  font-size: 12px; color: rgba(255,255,255,0.35);
  margin-top: 2px; display: block; font-weight: 400;
  letter-spacing: 0;
}
.mm-sublink:active { opacity: 0.5; }

.mm-footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex; align-items: center; justify-content: center; gap: 28px;
  opacity: 0;
  transition: opacity 0.3s ease 0.25s;
}
.mobile-menu.open .mm-footer { opacity: 1; }

.mm-login{
  font-family: 'Inter', sans-serif;
  font-size:16px; font-weight:500; color:rgba(255,255,255,.6);
  text-decoration: none;
}
.mm-cta{
  background:#fff; color:#000;
  font-family:'Manrope',sans-serif; font-size:16px; font-weight:700;
  padding:14px 32px; border-radius:999px;
  text-decoration:none;
  box-shadow: 0 8px 24px rgba(255,255,255,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mm-cta:active { transform: scale(0.96); box-shadow: 0 4px 12px rgba(255,255,255,0.05); }
.mm-cta:hover{transform:scale(1.03)}

/* ========== MOBILE BREAKPOINT — 768px ========== */
@media (max-width:768px){
  #hero-three {
    height: 100svh !important;
  }
  /* Nav */
  .nav-links{display:none}
  .nav-cta{display:none}
  .nav-burger{
    display:flex !important;
    position: fixed;
    top: 16px;
    right: 16px;
  }
  .nav-back{
    display:flex !important;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1600;
  }
  .nav{padding:16px 20px}

  /* Stage fills viewport */
  .stage{height:auto; min-height:100svh; overflow:visible;}

  /* Centerpiece — compact to fit viewport */
  .centerpiece { position: relative; height: auto; min-height: 100svh; padding-bottom: 60px; align-items: flex-start; }
  .mobile-br { display: block; }
  .brand-layer{
    position: relative; height: auto;
    padding-top: 26vh !important;
    font-size:clamp(32px, 10vw, 42px) !important;
    line-height:1.0 !important;
    white-space: normal !important;
    width: 100%;
    margin: 0;
    align-items: flex-start !important;
    text-align: left !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  /* Force 2-row hero header: kill the inner <br> inside the big lines */
  .bl-line .mobile-br { display: none !important; }
  .brand-sub{
    font-size:clamp(14px, 4vw, 16px) !important;
    margin-top:24px !important;
    color: rgba(255,255,255,0.65) !important;
    line-height: 1.5 !important;
    max-width:65vw;
    padding:0;
    text-align: left !important;
    margin-left: 0 !important;
  }

  /* Video CTA — stacked, pulled up closer to subtext */
  .welcome-video{
    flex-direction:column !important;
    align-items:center !important;
    gap:14px !important;
    max-width:100% !important;
    margin-top:24px !important;
    text-align: left;
    width: 100%;
  }
  .wv-text{
    display: contents !important;
  }
  .wv-label {
    order: 2;
    font-size: 11px !important;
    letter-spacing: 0.15em !important;
    align-self: center !important;
    margin: -8px 0 0 0 !important;     /* pull tight to the title above */
    color: rgba(255,255,255,0.65) !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
  }
  .wv-title {
    order: 1;
    font-size: 18px !important;
    margin: 0 !important;              /* no extra gap below — label sits right under */
    align-self: center !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
  }
  .wv-thumb{
    order: 3;
    width: 85% !important;
    max-width: 400px !important;
    border-radius:14px !important;
    aspect-ratio: 16/9 !important;
    margin: 0 auto 6px auto !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
  }
  .wv-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    justify-content: center !important;
    width: 100% !important;
    order: 4 !important;
    margin-top: 10px !important;
  }
  .wv-watch-btn{
    padding: 8px 16px !important;
    font-size: 11px !important;
    border-radius: 999px !important;
    width: auto !important;
    min-width: unset !important;
    flex: 1 !important;
    max-width: 145px !important;
    justify-content: center !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
  
  .mobile-connect {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    margin-top: 48px;
    gap: 16px;
    order: 5;
    width: 100%;
  }
  .mc-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .24em;
    color: rgba(255,255,255,0.4);
  }
  .mc-socials {
    display: flex;
    gap: 24px;
    align-items: center;
  }
  .mc-socials a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s;
  }

  /* Explore strip — vertical stack - push down below hero viewport */
  .explore-strip{
    margin-top:100px !important;
    flex-direction:column !important;
    gap:24px !important;
    align-items:center !important;
    padding:24px 16px !important;
    border-radius:16px !important;
    width:90vw !important;
  }
  .explore-group{
    width:100% !important;
    align-items:center !important;
    gap:12px !important;
  }
  .explore-group-label{font-size:10px !important}
  .explore-sep{
    width:60% !important;
    height:1px !important;
    background:linear-gradient(90deg, transparent 0%, rgba(255,255,255,.15) 50%, transparent 100%) !important;
    margin:12px 0 !important;
  }
  
  /* Mobile Social Strip — header sizing; layout handled in main scroll-snap block */
  .social-strip {
    margin-top: 20px;
    padding-bottom: 24px;
  }
  .ss-header {
    padding: 0 24px;
    margin-bottom: 12px;
    text-align: center;
  }
  .ss-title { font-size: 24px; }
  .ss-eyebrow { font-size: 10px; margin-bottom: 8px; }
  .ss-sub { font-size: 13px; }
  .ss-card:active .ss-frame { transform: scale(0.985); }
  
  /* Scale Ticker for mobile */
  .ticker-horizontal {
    width: 300px !important;
  }
  .ticker-slide {
    gap: 16px !important;
  }
  
  .explore-portal .explore-letter{
    width:32px !important;height:32px !important;
    font-size:16px !important;border-radius:8px !important;
  }
  .explore-milly .explore-circle{
    width:32px !important;height:32px !important;
    font-size:14px !important;
  }
  .explore-bref-top{font-size:8px !important}
  .explore-bref-main{font-size:20px !important}
  .explore-traider-main{font-size:18px !important}
  .explore-traider-ai{font-size:8px !important;padding:2px 4px !important}
  .explore-winr-text{font-size:18px !important}
  .explore-openai-text{font-size:16px !important}
  .explore-claude-text{font-size:18px !important}
  .explore-youtube-text{font-size:16px !important}
  .explore-dot{width:2px;height:2px}

  /* Milly card */
  .milly{padding:24px 16px}
  .milly-card{flex-direction:column}
  .milly-visual{min-height:200px;border-radius:16px 16px 0 0}
  .milly-body{padding:24px 20px}
  .milly-body h2{font-size:22px}
}

/* Extra small — iPhone SE etc */
@media (max-width:400px){
  .brand-layer{
    font-size:clamp(28px, 10vw, 44px) !important;
  }
  .brand-sub{font-size:12px !important}
  .explore-bref-main{font-size:14px !important}
  .explore-traider-main{font-size:12px !important}
  .explore-winr-text{font-size:13px !important}
}
