:root {
  --bg: #03070f;
  --bg-2: #07101f;
  --card: #0c1730;
  --line: rgba(255,255,255,.08);
  --text: #f2f6ff;
  --muted: #9aa7c2;
  --blue: #1f6fff;
  --blue-2: #4fb4ff;
  --violet: #1238d6;
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
svg { width: 1.1em; height: 1.1em; fill: currentColor; stroke: currentColor; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; }
h2 { font: 400 clamp(34px, 5vw, 60px)/1 Montserrat, Inter, sans-serif; letter-spacing: .02em; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.lede { color: var(--muted); max-width: 640px; font-size: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; border-radius: 6px;
  padding: 13px 26px; font: 600 16px Inter, sans-serif; transition: transform .15s, background .2s, opacity .2s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; }
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #e6e6e6; }
.btn-ghost { background: rgba(110,112,130,.45); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost svg { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.btn-ghost:hover { background: rgba(110,112,130,.65); }
.btn-gold { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 32px;
  padding: 16px var(--gutter); background: linear-gradient(#000c, transparent); transition: background .3s; }
.nav.solid { background: rgba(3,7,16,.96); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  font: 400 26px/1 Montserrat, sans-serif; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.brand-text { font: 400 26px/1 Montserrat, sans-serif; letter-spacing: .06em; }
.brand-text b { font-weight: 400; color: var(--blue); margin-left: 6px; }
.brand-text.small { font-size: 20px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; color: #ddd; margin-right: auto; }
.nav-links a:hover { color: #fff; }

/* Hero */
.hero { position: relative; height: min(92vh, 860px); min-height: 600px; overflow: hidden;
  display: flex; align-items: flex-end; padding: 96px var(--gutter) max(14vh, 110px); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.hero-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,7,16,.92) 0%, rgba(3,7,16,.55) 38%, transparent 70%),
              linear-gradient(0deg, var(--bg) 0%, transparent 32%); }
.hero-content { position: relative; z-index: 2; max-width: 560px; }
.hero-title { font: 400 clamp(52px, min(9vw, 13vh), 120px)/.9 Montserrat, sans-serif; letter-spacing: .02em; margin-bottom: 18px;
  text-shadow: 0 4px 30px #000a; }
.hero-blurb { font-size: clamp(16px, 1.6vw, 19px); color: #e8e6e0; text-shadow: 0 2px 10px #000; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-mute { position: absolute; z-index: 2; right: var(--gutter); bottom: max(14vh, 110px); width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid #fffa; background: #0006; color: #fff; cursor: pointer; display: grid; place-items: center; }
.hero-mute svg { width: 22px; height: 22px; stroke-width: 2; stroke-linecap: round; }
.hero-mute svg path:first-child { stroke: none; }
.hero-mute svg .mute-x { fill: none; }
.hero-mute.on .mute-x { display: none; }

/* Rows */
.rows { position: relative; z-index: 2; margin-top: -9vh; padding-bottom: 40px; }
.row { margin: 0 0 3.2vw; }
.row-head { display: flex; align-items: baseline; gap: 14px; padding: 0 var(--gutter); margin-bottom: 10px; }
.row-head h3 { font-size: clamp(18px, 1.6vw, 24px); }
.row-head span { color: var(--blue); font-size: 13px; font-weight: 600; opacity: 0; transform: translateX(-6px); transition: .25s; }
.row:hover .row-head span { opacity: 1; transform: none; }
.row-track-wrap { position: relative; }
.row-track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: var(--gutter);
  padding: 18px var(--gutter) 26px; scrollbar-width: none; }
.row-track::-webkit-scrollbar { display: none; }
.row-arrow { position: absolute; top: 18px; bottom: 26px; width: calc(var(--gutter) - 6px); z-index: 5; border: 0; cursor: pointer;
  background: rgba(3,7,16,.6); color: #fff; font-size: 40px; opacity: 0; transition: opacity .2s; }
.row-track-wrap:hover .row-arrow { opacity: 1; }
.row-arrow.left { left: 0; } .row-arrow.right { right: 0; }

.tile { position: relative; flex: 0 0 clamp(220px, 23vw, 340px); aspect-ratio: 16/9; border-radius: 6px; overflow: hidden;
  background: var(--card); cursor: pointer; scroll-snap-align: start; transition: transform .3s ease, box-shadow .3s; border: 0; padding: 0; color: inherit; text-align: left; }
.row.vertical .tile { flex-basis: clamp(150px, 14vw, 210px); aspect-ratio: 9/16; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile video { opacity: 0; transition: opacity .35s; }
.tile.previewing video { opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000d 0%, transparent 55%); }
.tile-info { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; }
.tile-info strong { display: block; font-size: 15px; line-height: 1.25; }
.tile-info small { color: var(--blue-2); font-size: 12px; font-weight: 500; }
.tile-badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--blue); color: #fff;
  font: 400 15px/1 Montserrat, sans-serif; letter-spacing: .08em; padding: 4px 7px 3px; border-radius: 3px; }
@media (hover: hover) {
  .tile:hover { transform: scale(1.08); z-index: 6; box-shadow: 0 18px 40px #000c; }
  .row-track .tile:first-child:hover { transform-origin: left center; }
  .row-track .tile:last-child:hover { transform-origin: right center; }
}
.tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Services */
.services, .process { padding: 90px var(--gutter); border-top: 1px solid var(--line); }
.section-head { margin-bottom: 44px; }
.section-head h2 { margin-bottom: 14px; max-width: 900px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1024px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }
section[id] { scroll-margin-top: 72px; }
.nav .btn { white-space: nowrap; }
.tile-info strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service { background: linear-gradient(160deg, var(--card), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .25s, transform .25s; }
.service:hover { border-color: rgba(47,128,255,.5); transform: translateY(-3px); }
.service .ico { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(47,128,255,.12); color: var(--blue); }
.service .ico svg { width: 24px; height: 24px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 19px; margin-bottom: 8px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }
.service a { display: inline-block; margin-top: 14px; color: var(--blue); font-size: 14px; font-weight: 600; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.steps span { font: 400 54px/1 Montserrat, sans-serif; color: transparent; -webkit-text-stroke: 1.5px var(--blue); }
.steps h3 { margin: 10px 0 6px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); }

/* CTA */
.cta { padding: 100px var(--gutter); background:
  radial-gradient(ellipse at 20% 0%, rgba(124,92,255,.22), transparent 60%),
  radial-gradient(ellipse at 90% 100%, rgba(47,128,255,.18), transparent 55%), var(--bg-2);
  border-top: 1px solid var(--line); }
.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta-inner .lede { margin: 14px auto 30px; }
.cta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.cta-form input, .cta-form select, .cta-form textarea { width: 100%; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255,255,255,.05); color: var(--text); font: 15px Inter, sans-serif; }
.cta-form select { grid-column: 1 / -1; }
.cta-form select option { color: #000; }
.cta-form textarea { grid-column: 1 / -1; resize: vertical; }
.cta-form button { grid-column: 1 / -1; justify-content: center; }
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus { outline: none; border-color: var(--blue); }
.form-note { grid-column: 1 / -1; text-align: center; color: var(--blue-2); margin: 4px 0 0; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 30px var(--gutter);
  color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; overflow-y: auto; padding: 4vh 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.78); }
.modal-card { position: relative; width: min(1000px, 100%); background: var(--bg-2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px #000; animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: #000a; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.player-wrap { background: #000; display: flex; justify-content: center; }
.player-wrap video { width: 100%; max-height: 72vh; display: block; background: #000; }
.modal-body { padding: 24px 28px 30px; }
.modal-body h3 { font: 400 clamp(32px, 4vw, 46px)/1 Montserrat, sans-serif; letter-spacing: .02em; margin-bottom: 8px; }
.modal-blurb { color: var(--muted); margin: 0 0 18px; }
.episodes { display: grid; gap: 6px; margin-bottom: 22px; max-height: 340px; overflow-y: auto; }
.episodes:empty { display: none; }
.ep { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 8px; background: transparent; border: 0; color: inherit;
  cursor: pointer; text-align: left; font: inherit; }
.ep:hover, .ep.active { background: rgba(255,255,255,.07); }
.ep.active { box-shadow: inset 3px 0 0 var(--blue); }
.ep b { width: 28px; text-align: center; color: var(--muted); font-size: 20px; }
.ep img { width: 130px; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; background: var(--card); }

@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .brand-text { font-size: 22px; }
  .hero { height: auto; min-height: 88vh; padding-bottom: 12vh; }
  .hero-mute { bottom: auto; top: 84px; }
  .nav .btn { padding: 8px 12px; font-size: 13px; }
  .brand-mark { width: 30px; height: 30px; font-size: 22px; }
  .rows { margin-top: -6vh; }
  .row-arrow { display: none; }
  .cta-form { grid-template-columns: 1fr; }
  .ep img { width: 96px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- VersAssist Studio brand (from logo): electric blue on deep navy, Montserrat ---------- */
body { background:
  radial-gradient(ellipse 80% 50% at 50% -10%, rgba(31,111,255,.10), transparent 70%), var(--bg); }
.eyebrow, .row-head span, .service a, .form-note, .brand-text b { color: var(--blue-2); }
h2 { font: 800 clamp(28px, 3.6vw, 48px)/1.08 Montserrat, Inter, sans-serif; letter-spacing: -.01em; text-transform: uppercase; }
.hero-title { font: 800 clamp(40px, min(6.6vw, 10vh), 92px)/.95 Montserrat, sans-serif; letter-spacing: -.02em; text-transform: uppercase; }
.modal-body h3 { font: 800 clamp(26px, 3vw, 36px)/1.05 Montserrat, sans-serif; text-transform: uppercase; letter-spacing: -.01em; }
.steps span { font: 800 48px/1 Montserrat, sans-serif; -webkit-text-stroke: 1.5px var(--blue-2); }
.tile-badge { font: 700 11px/1 Montserrat, sans-serif; letter-spacing: .14em; padding: 5px 7px; color: #fff; background: var(--blue); text-transform: uppercase; }

/* Logo lockup: V mark + VERS(A)SSIST / S T U D I O */
.brand-logo { width: 46px; height: auto; filter: drop-shadow(0 0 10px rgba(31,111,255,.45)); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word .wm { font: 700 19px/1 Montserrat, sans-serif; letter-spacing: .06em; color: #fff; }
.brand-word .wm em { font-style: normal; color: var(--blue); }
.brand-word .sub { font: 500 9.5px/1 Montserrat, sans-serif; letter-spacing: .62em; color: var(--blue-2); margin-top: 5px; padding-left: 2px; }
.footer .brand-logo { width: 34px; }

/* Blue glow accents, echoing the logo ring */
.btn-gold { box-shadow: 0 6px 24px rgba(31,111,255,.35); }
.btn-gold:hover { box-shadow: 0 8px 32px rgba(79,180,255,.5); }
.tile:focus-visible, .cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus { border-color: var(--blue-2); outline-color: var(--blue-2); }
.service:hover { border-color: rgba(79,180,255,.55); box-shadow: 0 0 0 1px rgba(79,180,255,.15), 0 10px 40px rgba(31,111,255,.15); }
.ep.active { box-shadow: inset 3px 0 0 var(--blue-2); }
.cta { background:
  radial-gradient(ellipse at 20% 0%, rgba(18,56,214,.35), transparent 60%),
  radial-gradient(ellipse at 90% 100%, rgba(79,180,255,.18), transparent 55%), var(--bg-2); }
@media (max-width: 760px) {
  .brand-logo { width: 38px; }
  .brand-word .wm { font-size: 15px; }
  .brand-word .sub { font-size: 8px; letter-spacing: .5em; }
}

/* ---------- Featured service (Book Production) ---------- */
.service.featured { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 22px;
  background: linear-gradient(120deg, rgba(31,111,255,.18), var(--card) 55%); border-color: rgba(79,180,255,.35); }
.service.featured .ico { margin: 0; grid-row: span 2; width: 56px; height: 56px; }
.service.featured h3 { margin: 0; font-size: 21px; }
.service.featured p { grid-column: 2; }
.service.featured a { grid-column: 3; grid-row: 1 / span 2; margin: 0; white-space: nowrap; padding: 11px 18px;
  border: 1px solid rgba(79,180,255,.5); border-radius: 6px; }
.service.featured a:hover { background: rgba(31,111,255,.18); }
@media (max-width: 640px) {
  .service.featured { grid-template-columns: 1fr; }
  .service.featured .ico, .service.featured p, .service.featured a { grid-column: 1; grid-row: auto; }
  .service.featured a { justify-self: start; }
}

/* ---------- Books marquee ---------- */
.books { padding: 90px 0; border-top: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(31,111,255,.12), transparent 70%); }
.books-head { padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.books-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.marquee { position: relative; overflow: hidden; padding: 14px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee 70s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 11px)); } }
.book { flex: 0 0 auto; width: clamp(118px, 11vw, 160px); aspect-ratio: 2/3; border-radius: 4px; overflow: hidden;
  background: var(--card); box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .3s ease, box-shadow .3s ease; }
.book img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book:hover { transform: translateY(-8px) scale(1.04); box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(79,180,255,.6), 0 0 30px rgba(31,111,255,.35); }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none !important; }
}

/* ---------- Embedded GoHighLevel form ---------- */
.ghl-form { max-width: 640px; margin: 0 auto; border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 1px rgba(79,180,255,.35), 0 20px 60px rgba(0,0,0,.45), 0 0 40px rgba(31,111,255,.18); }
.ghl-form iframe { display: block; width: 100%; height: 940px; }

/* ---------- Hero heading (H1 for SEO) ---------- */
.hero-h1 { font-size: 12px; margin: 0 0 14px; font-family: Montserrat, Inter, sans-serif; font-weight: 700; color: var(--blue-2); letter-spacing: .2em; text-transform: uppercase; }
.hero-tag { margin: 0 0 8px; color: #dfe7ff; font: 600 13px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }

/* ---------- FAQ (AEO) ---------- */
.faq { padding: 90px var(--gutter); border-top: 1px solid var(--line); }
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-item { background: linear-gradient(160deg, var(--card), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: border-color .2s; }
.faq-item[open], .faq-item:hover { border-color: rgba(79,180,255,.45); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--blue-2); font: 600 24px/1 Inter, sans-serif; transition: transform .2s; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item h3 { margin: 0; font-size: 17px; }
.faq-item p { margin: 0 0 20px; color: var(--muted); max-width: 760px; }

/* ---------- Full catalog index (crawlable, collapsed) ---------- */
.work-index { padding: 26px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.work-index summary { cursor: pointer; color: var(--text); font-weight: 600; }
.work-index details[open] { display: block; }
.work-index details > .wi-group:first-of-type { margin-top: 18px; }
.wi-group { margin: 0 0 16px; }
.wi-group h3 { font-size: 14px; margin: 0 0 6px; color: var(--text); }
.wi-group h3 small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.wi-group ul { margin: 0; padding-left: 18px; columns: 3 240px; }
.wi-group li span { color: #6f7c97; }
.wi-group p { margin: 0; }
