/* Lightning Command Lines — scroll film (draft, 480p segments) */

:root {
  --film-blue: #1e8fff;
  --film-cyan: #19e6ff;
  --film-ice: #dff4ff;
  --film-ink: #f2f8ff;
  --tshadow: 0 1px 2px rgba(5,8,14,.95), 0 3px 12px rgba(5,8,14,.78), 0 10px 44px rgba(5,8,14,.8);
}

.film { position: relative; height: 3200vh; background: #05070c; }
.film-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #05070c; }
.film-v, .film-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film-v { opacity: 0; will-change: opacity, transform; transform: translateZ(0); }
.film-still { opacity: 0; transition: opacity .4s linear; }
.film-still.is-on { opacity: 1; }
.film-scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse 120% 90% at 50% 45%, rgba(5,7,12,0) 35%, rgba(5,7,12,.62) 100%); }
.film-prog { position: absolute; z-index: 5; left: 0; top: 0; height: 2px; width: 100%; background: var(--film-cyan); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: .85; box-shadow: 0 0 10px var(--film-cyan); }

.band { position: absolute; z-index: 5; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 24px; opacity: 0; visibility: hidden; pointer-events: none; text-align: center; color: var(--film-ink); text-shadow: var(--tshadow); }
.band::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 110vw); height: 380px; transform: translate(-50%, -50%); background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(5,8,14,calc(.3 + .4 * var(--k, 1))) 0%, rgba(5,8,14,calc(.2 + .25 * var(--k, 1))) 50%, rgba(5,8,14,0) 76%); z-index: -1; pointer-events: none; }
.band--top { top: 22vh; }
.band--low { bottom: 14vh; }
/* subtitles: one fixed slot, 3-6 words, fade in / out */
.band--sub { top: auto; bottom: 13vh; gap: 18px; }
.band--sub::before { height: 260px; }
.band--sub h2 { font-size: clamp(1.5rem, 3.4vw, 2.9rem); font-weight: 760; letter-spacing: -.025em; line-height: 1.2; max-width: 30ch; text-wrap: balance; }
.band--sub .w { --dy: 14px; }
.band--settle h2 { font-size: clamp(1.7rem, 4vw, 3.4rem); }
/* final shot: the []_ sits low center in the footage, so the last lines move to the top of the frame */
.band--hi { bottom: auto; top: 11vh; }
.band--hi::before { height: 320px; }
.band--left { align-items: flex-start; text-align: left; left: max(24px, 6vw); right: auto; width: min(560px, 80vw); }
.band--left::before { left: 40%; }
.band h2 { margin: 0; font-size: clamp(2.2rem, 6vw, 5.2rem); font-weight: 850; letter-spacing: -.045em; line-height: .98; }
.band .band-eyebrow, .band .band-eyebrow.w { display: flex; width: 100%; justify-content: center; margin: 0 0 .9rem; align-items: center; gap: .65rem; font-family: ui-monospace, var(--font-mono); font-size: .78rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--film-cyan); }
.band .band-sub { margin: 0; max-width: 36ch; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #e0e8f0; line-height: 1.45; }
.band .w { display: inline-block; opacity: var(--kc, 1); transform: translateY(calc((1 - var(--kc, 1)) * var(--dy, 18px))) scale(calc(var(--s0, 1) + (1 - var(--s0, 1)) * var(--kc, 1))); }
.band--why h2 { font-size: clamp(1.5rem, 3.2vw, 2.6rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.3; max-width: 26ch; text-align: center; }
.band-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; pointer-events: auto; }
.band-cta .btn { text-shadow: none; }
.band--settle { pointer-events: auto; }

/* scroll-typed terminal: centered under the strike, part of the scene */
.band--term { top: auto; bottom: 13vh; align-items: center; text-align: center; }
.band--term::before { width: min(900px, 100vw); height: 300px; }
.term-box { display: inline-block; max-width: 92vw; margin: 0 auto; padding: 0; border: 0; background: transparent; font-family: ui-monospace, var(--font-mono); font-size: clamp(1rem, 2.1vw, 1.55rem); line-height: 1.9; letter-spacing: .02em; color: var(--film-ice); white-space: pre; text-align: left; text-shadow: 0 0 10px rgba(25,230,255,.75), 0 0 28px rgba(30,143,255,.45), 0 2px 8px rgba(5,8,14,.9); }
.term-box .cur { display: inline-block; width: .6em; height: 1.05em; vertical-align: -.15em; background: var(--film-cyan); box-shadow: 0 0 14px var(--film-cyan); animation: cursor-blink 1s steps(1, end) infinite; }

/* node readouts */
.hud { position: absolute; display: flex; flex-direction: column; gap: 4px; width: min(300px, 44vw); box-sizing: border-box; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(30,143,255,.45); background: rgba(6,9,16,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: ui-monospace, var(--font-mono); font-size: clamp(.68rem, 1vw, .8rem); line-height: 1.6; color: #e0e8f0; text-shadow: none; opacity: var(--k, 0); transform: translateY(calc((1 - var(--k, 0)) * 12px)); }
.hud b { color: var(--film-cyan); font-weight: 600; }
.hud--l { left: max(20px, 5vw); top: 18vh; }
.hud--r { right: max(20px, 5vw); top: 18vh; }
.band--hud { pointer-events: none; }

.film-cue { position: absolute; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--film-ink); font-family: ui-monospace, var(--font-mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .85; transition: opacity .5s; }
.film-cue i { width: 1px; height: 42px; background: linear-gradient(var(--film-cyan), transparent); animation: film-cue 2.4s ease-in-out infinite; }
@keyframes film-cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.film-ring { position: absolute; z-index: 5; right: 22px; bottom: 22px; width: 36px; height: 36px; color: var(--film-cyan); opacity: .9; transition: opacity .4s; }
.film-ring circle { transition: stroke-dashoffset .15s linear; }
.film-ring.is-done { opacity: 0; }

/* static hero (phones, portrait tablets, reduced motion) */
.hero-static { display: none; position: relative; min-height: 86vh; overflow: hidden; background: #05070c; }
.hero-static img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-static::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,12,.82) 0%, rgba(5,7,12,.55) 45%, rgba(5,7,12,.25) 100%); }
.hero-static .hero-static-copy { position: relative; z-index: 1; width: min(100% - 2rem, 1200px); margin: 0 auto; padding: 5rem 0 4rem; text-shadow: var(--tshadow); }
.hero-static h1 { margin: .5rem 0 0; font-size: clamp(2.6rem, 11vw, 4.4rem); letter-spacing: -.05em; line-height: .95; }
.hero-static p { max-width: 36ch; color: #e0e8f0; }
.hero-static .hero-actions .btn { text-shadow: none; }

@media (max-width: 720px), (orientation: portrait) and (pointer: coarse), (orientation: landscape) and (pointer: coarse) and (max-height: 560px), (prefers-reduced-motion: reduce) {
  .film { display: none; }
  .hero-static { display: block; }
}
@media (max-height: 560px) { .film-cue, .hud { display: none; } }

/* products grid */
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-card { position: relative; display: flex; flex-direction: column; min-height: 280px; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(145deg, rgba(17,24,39,.96), rgba(13,17,23,.94)); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.product-card:hover { border-color: rgba(30,143,255,.6); box-shadow: 0 18px 45px rgba(0,0,0,.28), var(--shadow-glow); transform: translateY(-4px); }
.product-card--flagship { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; border-color: rgba(30,143,255,.4); background: radial-gradient(circle at 90% 15%, rgba(25,230,255,.16), transparent 18rem), linear-gradient(130deg, rgba(17,24,39,.98), rgba(10,10,15,.98)); }
.product-card h3 { margin: 0 0 .6rem; font-size: clamp(1.15rem, 2vw, 1.4rem); }
.product-card--flagship h3 { font-size: clamp(1.75rem, 4vw, 3.25rem); letter-spacing: -.035em; }
.product-card p { margin: 0 0 1.2rem; color: var(--text-secondary); font-size: .93rem; line-height: 1.7; flex: 1; }
.product-card .product-stats, .work-copy .product-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 0 0 1.2rem; font-family: ui-monospace, var(--font-mono); font-size: .74rem; color: var(--film-cyan); letter-spacing: .06em; }
.product-card .btn { align-self: flex-start; }
@media (max-width: 920px) { .products-grid { grid-template-columns: 1fr 1fr; } .product-card--flagship { grid-column: span 2; grid-template-columns: 1fr; align-items: start; } }
@media (max-width: 680px) { .products-grid { grid-template-columns: 1fr; } .product-card--flagship { grid-column: span 1; } }

/* brand */
.nav-logo-img { display: block; height: 30px; width: auto; max-width: min(60vw, 400px); object-fit: contain; }
@media (max-width: 720px) { .nav-logo-img { height: 24px; } }
.hero-static picture, .hero-static picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* product thumbnails */
.product-card { gap: 0; }
.product-shot { display: block; margin: -.4rem 0 1rem; border-radius: 8px; overflow: hidden; border: 1px solid rgba(30,143,255,.25); background: #0a0d14; aspect-ratio: 16 / 9; }
.product-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s ease; }
.product-card:hover .product-shot img { transform: scale(1.03); }
.product-card--flagship .product-shot { margin: 0; align-self: stretch; aspect-ratio: auto; min-height: 240px; }
.product-card--flagship { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: stretch; }
.product-card--flagship .btn { margin-top: .4rem; }
@media (max-width: 920px) { .product-card--flagship { grid-template-columns: 1fr; } .product-card--flagship .product-shot { aspect-ratio: 16 / 9; min-height: 0; } }

/* client work: picture-in-picture preview */
.work-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.4rem, 3vw, 2.6rem); align-items: center; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid rgba(30,143,255,.4); border-radius: 14px; background: radial-gradient(circle at 10% 10%, rgba(25,230,255,.12), transparent 18rem), linear-gradient(130deg, rgba(17,24,39,.98), rgba(10,10,15,.98)); }
.work-copy h3 { margin: .3rem 0 .6rem; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.03em; }
.work-copy p { color: var(--text-secondary); line-height: 1.7; margin: 0 0 1.1rem; }
.work-logo { display: block; width: 72px; height: 72px; margin: 0 0 .8rem; border-radius: 14px; background: #fff; padding: 8px; box-sizing: border-box; object-fit: contain; }
.work-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }
.pip { border-radius: 12px; overflow: hidden; border: 1px solid rgba(30,143,255,.45); background: #0b0f17; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(30,143,255,.12); }
.pip-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #111827; border-bottom: 1px solid rgba(255,255,255,.06); }
.pip-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2a3444; }
.pip-bar span:nth-child(1) { background: #ff5f57; } .pip-bar span:nth-child(2) { background: #febc2e; } .pip-bar span:nth-child(3) { background: #28c840; }
.pip-bar em { margin-left: 10px; font: 600 11px ui-monospace, var(--font-mono); font-style: normal; letter-spacing: .08em; color: #8b94a3; }
.pip-frame { position: relative; aspect-ratio: 16 / 10; background: #0b0f17; }
.pip-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pip-iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; opacity: 0; transition: opacity .4s; background: #0b0f17; }
.pip.is-live .pip-iframe { opacity: 1; }
.pip.is-live .pip-poster { opacity: 0; }
@media (max-width: 920px) { .work-card { grid-template-columns: 1fr; } }

/* Director, Oct 31 2026 10:53 AM: the top bar over the film is solid black and hides once you start scrolling (back at the top it returns). */
/* Director 11:14 AM: the bar is the same black as the logo image background (#010102, sampled from logo-wide.png); the logo is served lossless so no box shows */
html .nav { background: #010102; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; transition: transform .2s ease, opacity .2s ease; }
html .nav.nav--hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { html .nav { transition: none; } }
