/* SiteWorks marketing page. Dark and light bands alternate; footage carries each band. */
:root {
  --ink: #0a0f1c;
  --ink-2: #121a2c;
  --ink-3: #1c2640;
  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --on-dark: #eef1f7;
  --on-dark-2: #a3adc2;
  --on-light: #111318;
  --on-light-2: #545c6e;
  --blue: #2a66ea;
  --blue-hi: #8fb0ff;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 48px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--on-dark); font: 400 17px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--blue-hi); }
.h2 { font: 350 clamp(36px, 5vw, 72px)/1.02 var(--display); font-variation-settings: 'opsz' 144; letter-spacing: -.02em; max-width: 18ch; text-wrap: balance; }
.h3 { font: 400 clamp(26px, 2.6vw, 36px)/1.1 var(--display); font-variation-settings: 'opsz' 96; letter-spacing: -.012em; text-wrap: balance; }
.h4 { font: 450 21px/1.2 var(--display); font-variation-settings: 'opsz' 36; letter-spacing: -.005em; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; max-width: 56ch; }
.dark { background: var(--ink); color: var(--on-dark); }
.dark .lead, .dark p { color: var(--on-dark-2); }
.light { background: var(--paper); color: var(--on-light); }
.light .lead, .light p { color: var(--on-light-2); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .25s var(--ease), background .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e7ecf8; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: #3d75f0; }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px #fff; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- header ---------- */
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); background: linear-gradient(to bottom, rgba(10, 15, 28, .72), rgba(10, 15, 28, .38)); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); color: #fff; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 500 22px/1 var(--display); letter-spacing: -.01em; text-decoration: none; color: #fff; }
.mark svg { width: 22px; height: 22px; fill: var(--blue); }

/* ---------- media slots ---------- */
[data-slot] video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; background: #fff; }
.pending { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(127, 140, 170, .07) 0 1px, transparent 1px 14px), var(--ink-2); }
.pending span { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #7f8aa3; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; max-width: 30ch; }
.pending span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #7f8aa3; animation: blink 2.4s ease-in-out infinite; flex: none; }
.light .pending { background: repeating-linear-gradient(135deg, rgba(60, 70, 90, .06) 0 1px, transparent 1px 14px), #e2dfd7; }
.light .pending span { color: #7a7f8c; }
.light .pending span::before { background: #9aa0ad; }
.is-still .pending span::before { animation: none; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- browser frame ---------- */
.frame { position: relative; border-radius: 14px; overflow: hidden; background: var(--ink-3); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); }
.light .frame { background: #d9d5cc; box-shadow: 0 50px 90px -40px rgba(20, 24, 40, .45), 0 0 0 1px rgba(17, 19, 24, .06); }
.frame__bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.light .frame__bar i { background: rgba(17, 19, 24, .14); }
.frame__bar span { flex: 0 1 38%; height: 18px; margin: 0 auto; border-radius: 9px; background: rgba(255, 255, 255, .07); }
.light .frame__bar span { background: rgba(255, 255, 255, .5); }
.frame__view { position: relative; aspect-ratio: 16 / 10; background: #fff; }
.layer { position: absolute; inset: 0; opacity: 0; transform: scale(1.015); transition: opacity .55s var(--ease), transform .8s var(--ease); }
.layer.is-on { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__media video { transform: scale(1.04); transform-origin: 70% 20%; animation: drift 24s ease-in-out infinite alternate; }
.is-still .hero__media video { animation-play-state: paused; }
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, 1%); } }
.hero__shade { position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 28, .97) 0%, rgba(10, 15, 28, .86) 30%, rgba(10, 15, 28, .45) 62%, rgba(10, 15, 28, .2) 100%),
              linear-gradient(to right, rgba(10, 15, 28, .82) 0%, rgba(10, 15, 28, .55) 45%, rgba(10, 15, 28, 0) 80%); }
.hero__copy { position: relative; padding-top: 140px; padding-bottom: clamp(56px, 9vh, 110px); display: flex; flex-direction: column; gap: 26px; }
.hero__h { font: 300 clamp(46px, 7.4vw, 116px)/.96 var(--display); font-variation-settings: 'opsz' 144; letter-spacing: -.03em; max-width: 15ch; color: #fff; text-wrap: balance; }
.hero__sub { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; max-width: 50ch; color: #c9d1e2; }
.hero__copy > * { animation: rise 1s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .18s; }
.hero__copy > :nth-child(4) { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

/* ---------- scroll-driven sections ---------- */
.scrub { position: relative; height: calc(var(--n) * 75vh + 100vh); }
.scrub__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 68px; }

/* story */
.story__head { padding-top: 140px; }
.story__grid { display: grid; grid-template-columns: minmax(250px, 300px) 1fr; gap: 56px; align-items: center; }
.chapters ol { display: flex; flex-direction: column; gap: 2px; counter-reset: c; position: relative; }
.chapter { display: flex; gap: 14px; align-items: baseline; width: 100%; padding: 9px 0; color: #5d6780; transition: color .35s; }
.chapter__n { font: 600 12px/1 var(--sans); letter-spacing: .1em; width: 22px; flex: none; }
.chapter__t { font: 400 17px/1.3 var(--display); font-variation-settings: 'opsz' 24; }
.chapter:hover { color: #b9c2d6; }
.chapter.is-on { color: #fff; }
.chapter.is-on .chapter__n { color: var(--blue-hi); }
.chapters ol::before { content: ''; position: absolute; left: -18px; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .08); border-radius: 1px; }
.chapters ol::after { content: ''; position: absolute; left: -18px; top: 0; width: 2px; height: calc(var(--p, 0) * 100%); background: var(--blue); border-radius: 1px; }
.story__stage { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.story__stage .frame { width: min(100%, calc((100svh - 68px - 190px) * 1.6 + 1px)); }
.story__text { position: relative; min-height: 128px; }
.steptext { position: absolute; inset: 0 0 auto 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4px 40px; align-items: start; opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .55s var(--ease); pointer-events: none; }
.steptext.is-on { opacity: 1; transform: none; pointer-events: auto; }
.steptext__n { grid-column: 1 / -1; font: 600 12px/1 var(--sans); letter-spacing: .14em; color: var(--blue-hi) !important; margin-bottom: 8px; }
.steptext .h3 { color: #fff; }
.steptext p:last-child { font-size: 17px; }

/* builder */
.builder__head { padding-top: 140px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: end; }
.builder__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 64px; align-items: center; }
.builder__grid .frame { width: min(100%, calc((100svh - 68px - 120px) * 1.6)); justify-self: end; }
.ticks { display: flex; gap: 6px; margin-bottom: 28px; }
.ticks i { flex: 1; height: 3px; border-radius: 2px; background: rgba(17, 19, 24, .12); position: relative; overflow: hidden; }
.ticks i::after { content: ''; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.ticks i.is-on::after, .ticks i.is-done::after { transform: scaleX(1); }
.bstep { padding: 16px 0; border-top: 1px solid rgba(17, 19, 24, .1); }
.bstep:last-child { border-bottom: 1px solid rgba(17, 19, 24, .1); }
.bstep button { display: flex; gap: 16px; align-items: baseline; width: 100%; color: #9a9ea8; transition: color .35s; }
.bstep.is-on button { color: var(--on-light); }
.bstep__n { font: 600 12px/1 var(--sans); letter-spacing: .1em; flex: none; }
.bstep.is-on .bstep__n { color: var(--blue); }
.bstep p { max-height: 0; overflow: hidden; opacity: 0; padding-left: 36px; transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.bstep.is-on p { max-height: 8em; opacity: 1; margin-top: 8px; }

/* ---------- record ---------- */
.record { padding: 140px 0; }
.record__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 80px; align-items: end; margin-bottom: 72px; }
.record__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: center; }
.chain { display: flex; flex-direction: column; }
.chain__node { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; }
.chain__node .h4 { color: #fff; margin: 12px 0 8px; }
.chain__node p { font-size: 15.5px; line-height: 1.55; }
.chain__mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--sans); letter-spacing: .08em; color: var(--blue-hi); box-shadow: inset 0 0 0 1.5px rgba(143, 176, 255, .55); background: radial-gradient(circle, rgba(42, 102, 234, .22), rgba(42, 102, 234, 0) 70%); }
.chain__link { width: 56px; height: 64px; display: flex; justify-content: center; margin: 4px 0; }
.chain__link svg { width: 22px; height: 64px; fill: none; stroke: var(--blue); stroke-width: 3; stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.1s var(--ease); }
.chain__link svg rect:last-child { transition-delay: .25s; }
.chain.is-in .chain__link svg { stroke-dashoffset: 0; }
.chain.is-in .chain__link:nth-of-type(4) svg { transition-delay: .5s; }
.chain__node { opacity: .35; transition: opacity .6s var(--ease); }
.chain.is-in .chain__node { opacity: 1; }
.chain.is-in .chain__node:nth-child(3) { transition-delay: .4s; }
.chain.is-in .chain__node:nth-child(5) { transition-delay: .9s; }

/* ---------- teach ---------- */
.teach { padding: 140px 0; }
.teach__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.teach__copy .lead { margin-top: 24px; }
.picks { margin-top: 44px; }
.pick { position: relative; display: block; width: 100%; padding: 18px 0 20px; border-top: 1px solid rgba(17, 19, 24, .1); color: #9a9ea8; transition: color .3s; }
.pick:last-child { border-bottom: 1px solid rgba(17, 19, 24, .1); }
.pick .h4 { display: block; }
.pick.is-on { color: var(--on-light); }
.pick__note { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 15.5px; line-height: 1.55; color: var(--on-light-2); transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.pick.is-on .pick__note { max-height: 7em; opacity: 1; margin-top: 8px; }
.pick__bar { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.picks.is-running:not(.is-held) .pick.is-on .pick__bar { animation: fillbar 7s linear forwards; }
.picks.is-held .pick.is-on .pick__bar { transform: scaleX(1); }
@keyframes fillbar { to { transform: scaleX(1); } }

/* ---------- modules ---------- */
.modules { padding: 140px 0 120px; }
.tiles { margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 28px; }
.tile__media { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--ink-2); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tile:hover .tile__media { transform: translateY(-4px); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .8); }
.tile__media video { transition: transform 1.2s var(--ease); }
.tile:hover .tile__media video { transform: scale(1.05); }
.tile .h4 { color: #fff; margin: 18px 0 6px; }
.tile p { font-size: 15px; line-height: 1.55; }
.tile .pending span { font-size: 10.5px; letter-spacing: .12em; }

/* ---------- sites ---------- */
.sites { padding: 140px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 44px 0 40px; }
.tab { min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--on-light-2); background: rgba(17, 19, 24, .05); transition: background .3s, color .3s; }
.tab:hover { background: rgba(17, 19, 24, .09); }
.tab.is-on { background: var(--on-light); color: #fff; }
.sitepanels { display: grid; }
.sitepanel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: center; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s; }
.sitepanel.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sitepanel__copy p { margin-top: 18px; font-size: 18px; }

/* ---------- close ---------- */
.close { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; }
.close__media { position: absolute; inset: 0; opacity: .5; }
.close__shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10, 15, 28, .96) 20%, rgba(10, 15, 28, .78) 60%, rgba(10, 15, 28, .55)), linear-gradient(to top, var(--ink), rgba(10, 15, 28, 0) 40%); }
.close__copy { position: relative; padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 26px; }
.close__h { font: 300 clamp(42px, 6.2vw, 96px)/1 var(--display); font-variation-settings: 'opsz' 144; letter-spacing: -.028em; max-width: 16ch; color: #fff; text-wrap: balance; }
.close .actions { margin-top: 10px; }
.foot { background: var(--ink); color: #6f7a92; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .06); }
.foot__row { display: flex; justify-content: space-between; align-items: center; min-height: 84px; }
.foot .mark { font-size: 18px; color: #c9d1e2; }

/* ---------- motion toggle ---------- */
.pause { position: fixed; z-index: 45; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 15, 28, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); opacity: .8; transition: opacity .2s; }
.pause:hover { opacity: 1; }
.pause svg { width: 15px; height: 15px; fill: #fff; }
.pause .i-play, .is-still .pause .i-pause { display: none; }
.is-still .pause .i-play { display: block; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.tiles .tile:nth-child(4n+2) { transition-delay: .06s; }
.tiles .tile:nth-child(4n+3) { transition-delay: .12s; }
.tiles .tile:nth-child(4n+4) { transition-delay: .18s; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story__grid { grid-template-columns: 230px 1fr; gap: 40px; }
}
@media (max-width: 959px) {
  :root { --gutter: 24px; }
  .story__head, .builder__head { padding-top: 96px; }
  .builder__head, .record__head { grid-template-columns: 1fr; gap: 20px; }
  .record, .teach, .sites { padding: 96px 0; }
  .modules { padding: 96px 0 80px; }
  .record__head { margin-bottom: 44px; }
  .record__grid, .teach__grid, .sitepanel { grid-template-columns: 1fr; gap: 40px; }
  .teach__grid .frame { order: -1; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
  .scrub { height: calc(var(--n) * 62vh + 100vh); }
  .scrub__sticky { align-items: center; padding-top: 60px; }
  /* story: numbered chapter row, frame, then the current step's text */
  .story__grid { grid-template-columns: 1fr; gap: 18px; }
  .chapters ol { flex-direction: row; gap: 6px; }
  .chapters ol::before, .chapters ol::after { display: none; }
  .chapters li { flex: 1; }
  .chapter { justify-content: center; padding: 10px 0; border-radius: 6px; background: rgba(255, 255, 255, .05); }
  .chapter.is-on { background: var(--blue); }
  .chapter.is-on .chapter__n { color: #fff; }
  .chapter__n { width: auto; }
  .chapter__t { display: none; }
  .story__stage { gap: 18px; }
  .story__stage .frame { width: 100%; }
  .steptext { grid-template-columns: 1fr; gap: 8px; }
  .steptext p:last-child { font-size: 16px; }
  .builder__grid { grid-template-columns: 1fr; gap: 22px; }
  .builder__grid .frame { width: 100%; }
  .ticks { display: none; }
  .bstep { padding: 11px 0; }
  .bstep .h4 { font-size: 18px; }
  .bstep p { font-size: 15px; }
}
@media (max-width: 599px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .top { height: 60px; }
  .mark { font-size: 20px; }
  .btn { min-height: 50px; padding: 0 22px; font-size: 15px; }
  .btn--sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
  .hero__copy { gap: 20px; }
  .hero__shade { background: linear-gradient(to top, rgba(10, 15, 28, .98) 0%, rgba(10, 15, 28, .9) 48%, rgba(10, 15, 28, .5) 75%, rgba(10, 15, 28, .3) 100%); }
  .scrub__sticky { padding-top: 72px; }
  .frame { border-radius: 10px; }
  .frame__bar { height: 24px; padding: 0 10px; gap: 5px; }
  .frame__bar i { width: 7px; height: 7px; }
  .frame__bar span { height: 12px; }
  .chapter { padding: 8px 0; }
  .chapter__n { font-size: 11px; letter-spacing: .02em; }
  .h3 { font-size: 25px; }
  .tiles { grid-template-columns: 1fr; gap: 26px; }
  .tile { display: grid; grid-template-columns: 42% 1fr; gap: 0 14px; align-items: start; }
  .tile__media { grid-row: span 2; }
  .tile .h4 { margin: 0 0 4px; font-size: 18px; }
  .tile p { font-size: 13.5px; }
  .tile .pending span { font-size: 8.5px; letter-spacing: .08em; gap: 6px; }
  .tile .pending span::before { width: 5px; height: 5px; }
  .pending span { font-size: 10.5px; }
  .chain__node { grid-template-columns: 44px 1fr; gap: 16px; }
  .chain__mark { width: 44px; height: 44px; }
  .chain__link { width: 44px; height: 52px; }
  .chain__link svg { height: 52px; }
  .tab { min-height: 42px; padding: 0 16px; font-size: 14px; }
  .close { min-height: 0; }
}

/* Still screenshots used where no recording exists yet. */
[data-slot] img.slot-still { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; background: #fff; }
.tile__media img.slot-still { transition: transform 1.2s var(--ease); }
.tile:hover .tile__media img.slot-still { transform: scale(1.05); }
