/* adtwist, the dark video-first landing and sign-in (2026-11-25). Loads AFTER site.css and only adds to it: the same
   tokens, .wrap/.top/.btn/.chip/.card/.input/.modal as every other page; everything new is prefixed m-.
   The pages that use it set <html data-theme="dark" class="mx">, so the dashboard and onboarding stay light. */
:root.mx { --bg: #0c0806; --surface: #17110d; --line: #2b2019; --soft: #2a1a10; --glow: color-mix(in srgb, var(--accent) 30%, transparent) }
.mx body { overflow-x: hidden }
/* moving between these pages, and to a place on one: a cross-fade from page to page (the header stays put), a glide to
   the section, which stops clear of the sticky header */
@view-transition { navigation: auto }
.mx .top { view-transition-name: m-top }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: ease }
/* the gallery sits "above" the landing page's sections: arriving at it, the old page drops away and the gallery comes
   down from the top; arriving at a section of the landing page (/#how), the page comes up from below */
.mx.m-up::view-transition-old(root) { animation: m-out-down .42s cubic-bezier(.4,0,.2,1) both }
.mx.m-up::view-transition-new(root) { animation: m-in-down .42s cubic-bezier(.2,.7,.2,1) both }
.mx.m-down::view-transition-old(root) { animation: m-out-up .42s cubic-bezier(.4,0,.2,1) both }
.mx.m-down::view-transition-new(root) { animation: m-in-up .42s cubic-bezier(.2,.7,.2,1) both }
@keyframes m-out-down { to { opacity: 0; transform: translateY(90px) } }
@keyframes m-in-down { from { opacity: 0; transform: translateY(-90px) } }
@keyframes m-out-up { to { opacity: 0; transform: translateY(-90px) } }
@keyframes m-in-up { from { opacity: 0; transform: translateY(90px) } }
.mx { scroll-behavior: smooth }
.mx [id] { scroll-margin-top: 84px }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none } .mx { scroll-behavior: auto } }
.mx .section { padding-block: 88px }
.m-head { text-align: center; max-width: 820px; margin: 0 auto }
.m-head h2, .m-cta h2 { font-size: clamp(32px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -.035em; margin-top: 14px }
.m-head .sub { margin: 16px auto 0; font-size: 18px }
.m-grad { font-style: normal; background: linear-gradient(100deg, var(--accent), #ffc98a); -webkit-background-clip: text; background-clip: text; color: transparent }

/* sections rise in as they enter the screen (only when the script is running) */
.js .m-rise { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1) }
.js .m-rise.in { opacity: 1; transform: none }

/* hero: the audience switch, a very large line, the website box, then the wall of reels */
.m-hero { position: relative; padding-top: 64px; text-align: center }
.m-hero::before { content: ""; position: absolute; inset: -80px 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, var(--glow), transparent 70%) }
.m-switch { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line) }
.m-switch button { border: 0; background: none; color: var(--muted); padding: 9px 18px; border-radius: 999px; font: 600 14px/1 var(--body); display: inline-flex; align-items: center; gap: 8px }
.m-switch button:hover { color: var(--ink) }
.m-switch button[aria-selected="true"] { background: var(--ink); color: var(--bg) }
.m-switch i { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: var(--soft); color: var(--accent) }
.m-aud { animation: rise .5s both }
.m-aud[hidden] { display: none }
.m-hero h1 { font-size: clamp(44px, 9.4vw, 112px); line-height: .94; letter-spacing: -.05em; margin-top: 30px }
.m-hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 34em; margin: 24px auto 0 }
.m-ask { display: flex; gap: 8px; padding: 7px; max-width: 580px; margin: 34px auto 0; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line);
  box-shadow: 0 0 0 0 var(--glow), 0 20px 60px rgba(0,0,0,.45); transition: border-color .2s, box-shadow .3s }
.m-ask:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px var(--glow), 0 20px 60px rgba(0,0,0,.45) }
.m-ask input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 17px; padding: 0 8px 0 18px; outline: none }
.m-ask input::placeholder { color: var(--muted) }
.m-ask .btn { flex: none; padding: 15px 24px; font-size: 16px }
.m-ask-note { min-height: 1.4em; margin-top: 12px; font-size: 14px; color: var(--muted) }
.m-ask-note.ok { color: var(--good) } .m-ask-note.bad { color: var(--bad) }
.m-proof { display: flex; gap: 8px 22px; flex-wrap: wrap; justify-content: center; margin-top: 10px; color: var(--muted); font-size: 14px }
.m-proof span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle }
@media (max-width: 460px) { .m-ask { flex-direction: column; border-radius: 24px; padding: 8px } .m-ask input { padding: 14px 12px; text-align: center } .m-ask .btn { width: 100% } }

/* the wall: one drifting row of reels, every second one set lower; a reel on screen plays its short silent loop */
.m-wall { margin-top: 64px; padding-block: 8px 44px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent) }
.m-track { display: flex; gap: 16px; width: max-content; animation: m-drift 90s linear infinite }
.m-wall:hover .m-track, .m-wall:focus-within .m-track { animation-play-state: paused }
@keyframes m-drift { to { transform: translateX(calc(-50% - 8px)) } }
.m-reel { position: relative; flex: none; width: clamp(148px, 17vw, 236px); aspect-ratio: 9/16; padding: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: #000; color: #fff; text-align: left; transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .35s }
.m-reel:nth-child(even) { margin-top: 36px }
.m-reel:nth-child(odd) { margin-bottom: 36px }
.m-reel:hover, .m-reel:focus-visible { transform: scale(1.035); border-color: var(--accent); box-shadow: 0 18px 50px var(--glow) }
.m-reel img, .m-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.m-reel video { opacity: 0; transition: opacity .5s }
.m-reel.live video { opacity: 1 }
.m-reel .cap { position: absolute; inset: auto 0 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(0,0,0,.82)); display: grid; gap: 2px }
.m-reel .cap b { font: 700 15px/1.2 var(--display) } .m-reel .cap b.hi { font-family: "Noto Sans Devanagari", var(--display) }
.m-reel .cap span { font-size: 12px; opacity: .75 }
.m-reel .lang { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px) }
.m-reel .go { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #1f1814; opacity: 0; transform: scale(.8); transition: .25s }
.m-reel:hover .go, .m-reel:focus-visible .go { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) { .m-wall { overflow-x: auto } }

/* how a reel is made: the process film in a lit frame */
.mx .made-film { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 40px 120px -30px var(--glow), 0 30px 80px rgba(0,0,0,.5) }

/* the four steps as a bento: unequal tiles, each with its own picture */
.m-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 44px }
.m-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 380px; padding: 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line) }
.m-tile.w4 { grid-column: span 4 } .m-tile.w2 { grid-column: span 2 }
.m-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(70% 50% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%) }
.m-tile .vis { flex: 1; min-height: 180px; position: relative; margin-bottom: 22px }
.m-tile .n { font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent); letter-spacing: .08em }
.m-tile h3 { font-size: 24px; letter-spacing: -.02em; margin-top: 10px }
.m-tile p { color: var(--muted); font-size: 15.5px; margin-top: 8px; max-width: 34em }
@media (max-width: 900px) { .m-bento { grid-template-columns: 1fr } .m-tile.w4, .m-tile.w2 { grid-column: auto } .m-tile { min-height: 0 } }

/* 1: reading the site */
.m-site { max-width: 460px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; position: relative }
.m-site .bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted) }
.m-site .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line) }
.m-site .bar span { margin-left: 8px; padding: 4px 12px; border-radius: 999px; background: var(--surface); flex: 1 }
.m-site .body { padding: 18px; display: grid; gap: 11px; position: relative }
.m-site .ln { height: 11px; border-radius: 6px; background: var(--line) }
.m-site .sweep { position: absolute; left: 0; right: 0; height: 46px; background: linear-gradient(180deg, transparent, var(--glow), transparent); animation: m-scan 2.2s ease-in-out infinite }
@keyframes m-scan { 0% { top: -46px } 100% { top: 100% } }
.m-found { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px }
.m-found .sw { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line) }
/* 2: ideas, three pictures fanned */
.m-fan { display: grid; place-items: center }
.m-fan img { position: absolute; width: 38%; max-width: 150px; aspect-ratio: 9/16; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.5); transition: transform .5s cubic-bezier(.2,.7,.2,1) }
.m-fan img:nth-child(1) { transform: translateX(-62%) rotate(-9deg) } .m-fan img:nth-child(3) { transform: translateX(62%) rotate(9deg) } .m-fan img:nth-child(2) { z-index: 1 }
.m-tile:hover .m-fan img:nth-child(1) { transform: translateX(-74%) rotate(-13deg) } .m-tile:hover .m-fan img:nth-child(3) { transform: translateX(74%) rotate(13deg) } .m-tile:hover .m-fan img:nth-child(2) { transform: translateY(-8px) }
/* 3: being made */
.m-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; align-content: center; height: 100% }
.m-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; color: var(--muted) }
.m-steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px var(--line) }
.m-steps li.on { color: var(--ink) }
.m-steps li.on::before { box-shadow: none; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='%230c0806' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") }
.m-steps li.now { color: var(--ink); border-color: var(--accent) }
.m-steps li.now::before { box-shadow: none; background: var(--accent); animation: pulse 1.2s infinite }
/* 4: the reel arrives */
.m-tile.arrive { flex-direction: row; align-items: flex-end; gap: 28px }
.m-tile.arrive .txt { flex: 1; min-width: 0 }
.m-mini { flex: none; width: 210px; aspect-ratio: 9/16; margin-bottom: -90px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #000; transform: rotate(4deg); box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 80px var(--glow); position: relative }
.m-mini video, .m-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
@media (max-width: 600px) { .m-tile.arrive { flex-direction: column-reverse; align-items: stretch } .m-mini { width: 170px; margin: 0 auto 10px; } }

/* not translated: the two lines, large */
.m-lang { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px }
.m-quote { padding: 34px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; align-content: space-between; min-height: 220px }
.m-quote small { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent) }
.m-quote q { quotes: none; font: 600 clamp(24px, 3.4vw, 38px)/1.2 var(--display); letter-spacing: -.02em }
.m-quote q.hi { font-family: "Noto Sans Devanagari", var(--display); line-height: 1.4; letter-spacing: 0 }
@media (max-width: 760px) { .m-lang { grid-template-columns: 1fr } }

/* for creators (coming soon): the waiting list */
.m-creators { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 48px; border-radius: 32px; border: 1px solid var(--line);
  background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--surface) }
.m-creators h2 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.04; letter-spacing: -.035em; margin-top: 14px }
.m-creators .sub { margin-top: 16px }
.m-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px }
.m-points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15.5px; color: var(--muted) }
.m-points li b { color: var(--ink); font-weight: 600 }
.m-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin: 8px 0 0 6px }
.m-creators .m-ask { margin: 28px 0 0; max-width: 480px }
.m-creators .m-ask-note { text-align: left }
.m-avatar { display: grid; justify-items: center; gap: 22px }
.m-face { position: relative; width: min(230px, 62vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: var(--muted);
  background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 0 0 10px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 90px var(--glow) }
.m-face svg { width: 56%; height: 56% }
.m-face .rec { position: absolute; top: 6%; right: -4%; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line) }
.m-face .rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: pulse 1.2s infinite }
.m-wave { display: flex; align-items: center; gap: 4px; height: 56px }
.m-wave i { width: 4px; border-radius: 3px; background: var(--accent); height: var(--h, 40%); animation: m-wave 1.1s ease-in-out infinite alternate; animation-delay: var(--d, 0s) }
@keyframes m-wave { from { transform: scaleY(.25) } to { transform: scaleY(1) } }
@media (max-width: 860px) { .m-creators { grid-template-columns: 1fr; padding: 28px } .m-avatar { order: -1 } }

/* the closing ask */
.m-cta { position: relative; text-align: center; padding-block: 110px 120px }
.m-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50% 60% at 50% 100%, var(--glow), transparent 70%) }

/* sign-in: a reel playing on the left, the Google button on the right; on a phone the reel is a soft backdrop */
.m-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100dvh - 61px) }
.m-split-form { display: grid; place-items: center; padding: 40px 24px; position: relative; z-index: 1 }
.m-signin-box { width: min(400px, 100%); display: grid; gap: 14px }
.m-signin-box h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1; letter-spacing: -.04em }
.m-signin-box .muted { font-size: 17px }
.m-signin-box .gbtn { margin-top: 14px; padding: 16px 20px; font-size: 16px; width: 100% }
.m-signin-box hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0 0; width: 100% }
.m-split-reel { position: relative; overflow: hidden; display: grid; place-items: center; background: #000; order: -1; border-right: 1px solid var(--line) }
.m-split-reel .back { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); max-width: none; object-fit: cover; filter: blur(46px) saturate(1.2); opacity: .55 }
.m-split-reel .frame { position: relative; height: min(76vh, 720px); aspect-ratio: 9/16; border-radius: 28px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 100px rgba(0,0,0,.6) }
.m-split-reel .frame video { width: 100%; height: 100%; object-fit: cover }
.m-split-reel .cap { position: absolute; inset: auto 0 0; padding: 60px 20px 20px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; display: grid; gap: 3px }
.m-split-reel .cap b { font: 700 19px/1.2 var(--display) } .m-split-reel .cap b.hi { font-family: "Noto Sans Devanagari", var(--display) }
.m-split-reel .cap span { font-size: 13px; opacity: .75 }
@media (max-width: 860px) {
  .m-split { grid-template-columns: 1fr }
  .m-split-reel { position: absolute; inset: 0; z-index: 0; border: 0 }
  .m-split-reel .frame { display: none }
  .m-split-reel .back { opacity: .8 }
  .m-split-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(color-mix(in srgb, var(--bg) 25%, transparent), color-mix(in srgb, var(--bg) 88%, transparent)) }
  .m-split { position: relative }
  .m-signin-box { padding: 28px; border-radius: 26px; background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--line); backdrop-filter: blur(18px); text-align: center; justify-items: center }
}
