/* McCoy Studio public site. Same family as the Easley site: a film-reel hero, a white platform body with a
   sticky chapter index and the real app, then dark engineering sections (cutaway, engines, deploy, security).
   Inter for words, JetBrains Mono for labels, one McCoy-blue accent, hairline borders.
   On phones every heading, line, button and icon is centred (the owner's standing rule). */

@font-face { font-family: "Inter Variable"; src: url(fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono Variable"; src: url(fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

.ld {
  --font-sans: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --black: #0b0c0d; --dark: #111214; --dark-2: #17181b;
  --dark-line: rgba(255,255,255,.09); --dark-line-2: rgba(255,255,255,.16);
  --white: #fff; --paper: #f6f6f5; --line: #e6e6e3; --line-2: #d6d6d2;
  --ink: #0d0e10; --ink-2: #4a4d55; --ink-3: #7a7d85;
  --on-dark: #f2f3f4; --on-dark-2: #a3a7b0; --on-dark-3: #6d717a;
  --blue: #3b7bf6; --sky: #8db8ff; --amber: #d99a1b; --red: #e5484d;
  --max: 1240px; --m: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2,.7,.1,1);
  margin: 0; background: var(--black); color: var(--on-dark);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip; font-feature-settings: "cv11", "ss01";
}
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
.ld *, .ld *::before, .ld *::after { box-sizing: border-box; }
.ld a { color: inherit; text-decoration: none; }
.ld :is(h1,h2,h3,p,figure,ol,ul) { margin: 0; }
.ld :is(ol,ul) { list-style: none; padding: 0; }
.ld img, .ld video { display: block; max-width: 100%; }
.ld button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.ld h1, .ld h2, .ld h3 { text-wrap: balance; font-weight: 500; letter-spacing: -.02em; }
.ld p { text-wrap: pretty; }
.ld :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ld-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--m); }
.ld-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ld-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 14px !important; }
[data-theme="light"] .ld-kicker { color: var(--ink-3); }
.ld h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; letter-spacing: -.03em; }
.ld-sub { margin-top: 16px !important; color: var(--on-dark-2); max-width: 46ch; font-size: 16px; }
.ld-center .ld-sub { margin-inline: auto; }

/* Buttons */
.ld-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; background: var(--white); color: var(--ink) !important; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; transition: background .2s, transform .2s var(--ease); white-space: nowrap; }
.ld-button:hover { background: var(--sky); }
.ld-button:active { transform: scale(.97); }
.ld-button.is-ghost { background: rgba(255,255,255,.08); color: var(--on-dark) !important; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); }
.ld-button.is-ghost:hover { background: rgba(255,255,255,.16); }
.ld-button.is-dark { background: var(--ink); color: #fff !important; }
.ld-button.is-dark:hover { background: var(--blue); }
.ld-button.is-small { height: 32px; padding: 0 12px; font-size: 11px; }

/* Nav */
.ld-nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, border-color .35s, color .35s; border-bottom: 1px solid transparent; }
.ld-nav-in { max-width: calc(var(--max) + 120px); margin: 0 auto; padding: 0 var(--m); height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ld-nav-mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 600; font-size: 14px; letter-spacing: .2em; }
.ld-nav-mark svg { width: 22px; height: 22px; }
.ld-nav nav { display: flex; gap: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ld-nav nav a { opacity: .7; transition: opacity .2s; }
.ld-nav nav a:hover { opacity: 1; }
.ld-nav-action { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 3px; background: var(--white); color: var(--ink) !important; transition: background .2s; }
.ld-nav-action:hover { background: var(--sky); }
.ld-nav.is-film { color: var(--on-dark); }
.ld-nav.is-dark { color: var(--on-dark); background: rgba(11,12,13,.82); backdrop-filter: blur(14px); border-color: var(--dark-line); }
.ld-nav.is-light { color: var(--ink); background: rgba(255,255,255,.86); backdrop-filter: blur(14px); border-color: var(--line); }
.ld-nav.is-light .ld-nav-action { background: var(--ink); color: #fff !important; }

/* Hero */
.ld-hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: #000; display: flex; flex-direction: column; justify-content: flex-end; }
.ld-hero-film { position: absolute; inset: 0; overflow: hidden; }
.ld-hero-film > video, .ld-hero-film > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; opacity: 0; transform: scale(1.08); transition: opacity 1.1s ease, transform 7s linear; }
@media (min-width: 641px) { .ld-hero-film > video { left: 10%; width: 100%; object-position: 100% 50%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); } }
.ld-hero-film > .is-on { opacity: 1; transform: scale(1); }
.ld-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 50%, rgba(0,0,0,.8) 100%), linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,0) 62%); }
.ld-hero-copy { position: relative; z-index: 2; max-width: calc(var(--max) + 120px); width: 100%; margin: 0 auto; padding: 0 var(--m) 44px; }
.ld-hero h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -.035em; max-width: 13ch; color: #fff; animation: ld-rise 1.1s var(--ease) both .15s; }
.ld-hero h1 span { color: var(--sky); }
.ld-hero-lead { margin-top: 20px !important; max-width: 540px; font-size: 17px; color: rgba(255,255,255,.78); animation: ld-rise 1.1s var(--ease) both .3s; }
.ld-hero-actions { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; animation: ld-rise 1.1s var(--ease) both .45s; }
.ld-hero-actions.is-center { justify-content: center; animation: none; }
.ld-hero .ld-kicker { animation: ld-rise 1.1s var(--ease) both; color: rgba(255,255,255,.7); }
@keyframes ld-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ld-hero-reel { position: relative; z-index: 2; max-width: calc(var(--max) + 120px); width: 100%; margin: 0 auto; padding: 0 var(--m) 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.ld-hero-reel ol { display: flex; gap: 6px; }
.ld-hero-reel button { display: flex; flex-direction: column; gap: 8px; width: 116px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); transition: color .3s; }
.ld-hero-reel li.is-on button, .ld-hero-reel button:hover { color: #fff; }
.ld-reel-n { margin-right: 8px; color: rgba(255,255,255,.4); }
.ld-hero-reel i { display: block; height: 2px; background: rgba(255,255,255,.2); overflow: hidden; }
.ld-hero-reel b { display: block; height: 100%; width: 0; background: #fff; }
.ld-hero-reel li.is-done b { width: 100%; }
.ld-hero-reel li.is-on b { animation: ld-fill 6s linear forwards; }
@keyframes ld-fill { from { width: 0; } to { width: 100%; } }
.ld-hero-credit { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: rgba(255,255,255,.45); text-align: right; max-width: 340px; }

/* Intro */
.ld-intro { background: var(--white); color: var(--ink); padding: 72px 0 40px; }
.ld-programs { display: flex; gap: 10px; height: clamp(340px, 40vw, 480px); }
.ld-program { position: relative; flex: .55 1 0; min-width: 0; overflow: hidden; border-radius: 4px; background: #000; transition: flex .9s var(--ease); cursor: pointer; }
.ld-program.is-on { flex: 4 1 0; cursor: default; }
.ld-program img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: grayscale(1) contrast(1.05); transition: filter .9s, transform 1.4s var(--ease); transform: scale(1.06); }
.ld-program.is-on img { filter: none; transform: scale(1); }
.ld-program-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82)); }
.ld-program-text { position: absolute; left: 24px; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 6px; color: #fff; opacity: 0; transform: translateY(10px); transition: opacity .5s .25s, transform .6s .25s var(--ease); max-width: 380px; }
.ld-program.is-on .ld-program-text { opacity: 1; transform: none; }
.ld-program-text strong { font-size: 44px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.ld-program-text span { font-size: 14px; color: rgba(255,255,255,.85); }
.ld-program-text em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 6px; }
.ld-intro-head { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: end; padding: 80px 0 0; }
.ld-intro-head h2 { font-size: clamp(32px, 3.6vw, 48px); max-width: 14ch; }
.ld-intro-head > p { color: var(--ink-2); font-size: 15px; }

/* Platform */
.ld-platform { background: var(--white); color: var(--ink); padding: 40px 0 120px; }
.ld-platform-grid { display: grid; grid-template-columns: 220px 1fr; }
.ld-index { position: sticky; top: 40vh; align-self: start; display: flex; flex-direction: column; gap: 24px; padding-right: 24px; }
.ld-index ol { display: flex; flex-direction: column; gap: 12px; }
.ld-index li { font-size: 14px; color: var(--ink-3); padding-left: 12px; border-left: 2px solid transparent; transition: color .3s, border-color .3s; }
.ld-index li.is-on { color: var(--ink); border-color: var(--blue); }
.ld-index li:hover { color: var(--ink); }
.ld-index .ld-button { align-self: flex-start; }
.ld-chapters { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.ld-chapter { padding: 56px 40px 48px; border-bottom: 1px solid var(--line); }
.ld-chapter h3 { font-size: 28px; line-height: 1.14; }
.ld-chapter > p { margin-top: 12px; color: var(--ink-2); font-size: 15px; max-width: 56ch; }
.ld-pair { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.ld-pair .ld-chapter { border-bottom: 0; }
.ld-pair .ld-chapter + .ld-chapter { border-left: 1px solid var(--line); }
.ld-chapter.is-half h3 { font-size: 21px; }
.ld-chapter.is-half > p { font-size: 14px; }
.ld-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px !important; }
.ld-tags li { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--ink-2); }
.ld-cap { margin-top: 12px !important; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Studio backdrop behind each real screen */
.ld-stage { position: relative; margin-top: 26px; border-radius: 4px; overflow: hidden; padding: clamp(18px, 4.5%, 48px); background: radial-gradient(120% 90% at 85% 0%, #fff 0%, #d9d9d6 35%, #a9aaa7 70%, #8c8d8b 100%); }
.ld-stage.is-blue { background: radial-gradient(120% 100% at 80% 0%, #eaf2ff 0%, #a9c6f5 40%, #5a7fc0 80%, #34548e 100%); }
.ld-stage.is-dark { background: radial-gradient(120% 100% at 80% 0%, #3a3d44 0%, #1b1d21 55%, #0d0e10 100%); }
.ld-stage.is-black { padding: 0; background: #070809; }
.ld-stage > img { width: 100%; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.12); transition: transform 1.2s var(--ease); }
.ld-stage:hover > img { transform: scale(1.01); }
.ld-stage.is-small { padding: 16px; }
.ld-stage.is-black > img { border-radius: 0; box-shadow: none; aspect-ratio: 4 / 3; object-fit: cover; }

/* Live chat mock */
.ld-chat { max-width: 560px; margin: 0 auto; background: #121317; color: var(--on-dark); border-radius: 10px; box-shadow: 0 40px 80px -30px rgba(10,20,40,.6), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; font-size: 14px; }
.ld-chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--dark-line); font-size: 12px; color: var(--on-dark-2); }
.ld-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(59,123,246,.25); }
.ld-chat-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 330px; }
.ld-msg { max-width: 88%; padding: 10px 13px; border-radius: 10px; line-height: 1.45; }
.ld-msg.is-me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 3px; }
.ld-msg.is-ai { align-self: flex-start; background: #1c1e23; border: 1px solid var(--dark-line); border-bottom-left-radius: 3px; }
.ld-steps { margin-top: 10px !important; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--on-dark-2); }
.ld-steps b, .ld-checks b { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; font-size: 11px; background: rgba(59,123,246,.18); color: var(--sky); }
.ld-steps .is-warn b, .ld-checks .is-warn b { background: rgba(217,154,27,.18); color: #f0c060; }
.ld-chat [data-step] { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.ld-chat [data-step].is-shown { opacity: 1; transform: none; }
.ld-chat-input { margin: 0 12px 12px; padding: 11px 13px; border: 1px solid var(--dark-line-2); border-radius: 8px; color: var(--on-dark-3); font-size: 13px; display: flex; align-items: center; gap: 2px; }
.ld-chat-input i { width: 1px; height: 15px; background: var(--sky); animation: ld-blink 1s steps(1) infinite; }
@keyframes ld-blink { 50% { opacity: 0; } }

.ld-darkcard { margin-top: 26px; background: #111214; color: var(--on-dark); border-radius: 4px; padding: 22px; }
.ld-checks { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.ld-checks li { display: flex; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--dark-line); }
.ld-checks li:last-child { border: 0; padding: 0; }

.ld-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 4px; margin-top: 14px; }
.ld-stats > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.ld-stats > div + div { border-left: 1px solid var(--line); }
.ld-stats span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ld-stats strong { font-size: 34px; font-weight: 500; letter-spacing: -.03em; font-family: var(--font-mono); }
.ld-stats em { font-style: normal; font-size: 14px; color: var(--ink-3); margin-left: 4px; }
.ld-stats small { font-size: 12.5px; color: var(--ink-2); }

/* Cutaway */
.ld-cutaway { background: var(--dark); }
.ld-cut-track { height: 340vh; position: relative; }
.ld-cut-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.ld-cut-grid { width: 100%; display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.ld-cut-steps { margin-top: 36px !important; border-top: 1px solid var(--dark-line); }
.ld-cut-steps li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--dark-line); color: var(--on-dark-3); transition: color .4s; }
.ld-cut-steps li > span { font-family: var(--font-mono); font-size: 11px; padding-top: 4px; }
.ld-cut-steps strong { font-weight: 500; font-size: 16px; }
.ld-cut-steps p { font-size: 14px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .5s, margin .5s; }
.ld-cut-steps li.is-on { color: var(--on-dark); }
.ld-cut-steps li.is-on > span { color: var(--sky); }
.ld-cut-steps li.is-on p { max-height: 90px; opacity: 1; margin-top: 6px; color: var(--on-dark-2); }
.ld-cut-view { position: relative; aspect-ratio: 4 / 3; background: #08090a; border: 1px solid var(--dark-line); border-radius: 4px; overflow: hidden; }
.ld-cut-view { background: radial-gradient(70% 70% at 50% 60%, #1c2230 0%, #0b0c0e 70%); cursor: grab; touch-action: pan-y; }
.ld-cut-view:active { cursor: grabbing; }
.ld-3d { position: absolute; inset: 0; z-index: 1; }
.ld-3d canvas { width: 100% !important; height: 100% !important; display: block; }
.ld-3d-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s ease; }
.ld-cut-view.is-live .ld-3d-poster, .ld-cut-view.is-live .ld-3d-load { opacity: 0; pointer-events: none; }
.ld-3d-load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); background: rgba(10,11,12,.7); padding: 8px 12px; border-radius: 3px; transition: opacity .5s; }
.ld-3d-load i { width: 12px; height: 12px; border: 1.5px solid var(--sky); border-right-color: transparent; border-radius: 50%; animation: ld-spin .8s linear infinite; }
@keyframes ld-spin { to { transform: rotate(360deg); } }
.ld-cut-hint { margin-top: 22px !important; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-3); }
.ld-cut-hint svg { color: var(--sky); animation: ld-spin 6s linear infinite; }
.ld-cut-steps li { cursor: pointer; }
.ld-cut-steps li:hover strong { color: #fff; }
#hud-mode.is-flash { animation: ld-flash .6s var(--ease); }
@keyframes ld-flash { from { color: var(--sky); transform: translateY(4px); opacity: 0; } to { opacity: 1; transform: none; } }
.ld-cut-hud, .ld-cut-view > i, .ld-cut-view figcaption { pointer-events: none; }
.ld-cut-view > i { position: absolute; width: 18px; height: 18px; border-color: var(--sky); border-style: solid; border-width: 0; z-index: 2; }
.ld-cut-view .c1 { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.ld-cut-view .c2 { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.ld-cut-view .c3 { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.ld-cut-view .c4 { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }
.ld-cut-hud { position: absolute; top: 22px; right: 22px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.ld-cut-hud div { background: rgba(10,11,12,.75); backdrop-filter: blur(8px); border: 1px solid var(--dark-line-2); border-radius: 3px; padding: 6px 10px; min-width: 110px; font-family: var(--font-mono); }
.ld-cut-hud span { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); }
.ld-cut-hud b { font-weight: 500; font-size: 13px; }
.ld-cut-view figcaption { position: absolute; left: 22px; bottom: 18px; z-index: 2; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); }

/* Engines */
.ld-engines { background: var(--dark-2); padding: 110px 0 100px; border-top: 1px solid var(--dark-line); }
.ld-marquee { margin-top: 54px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ld-marquee ul { display: flex; gap: 10px; width: max-content; animation: ld-scroll 40s linear infinite; }
.ld-marquee:hover ul { animation-play-state: paused; }
.ld-marquee li { width: 168px; height: 92px; flex: none; padding: 14px 16px; border: 1px solid var(--dark-line-2); border-radius: 4px; background: #1b1c20; display: flex; flex-direction: column; justify-content: space-between; }
.ld-marquee b { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.ld-marquee span { font-size: 12px; color: var(--on-dark-3); }
@keyframes ld-scroll { to { transform: translateX(-50%); } }

/* Deploy */
.ld-deploy { background: var(--dark); padding: 110px 0 60px; border-top: 1px solid var(--dark-line); }
.ld-sub.is-left { max-width: 44ch; }
.ld-deploy-grid { margin-top: 44px; display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--dark-line); border-radius: 4px; overflow: hidden; }
.ld-deploy-art { position: relative; background: radial-gradient(80% 80% at 50% 40%, #1a1c21, #0b0c0d); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; }
.ld-deploy-art svg { width: 100%; max-width: 460px; margin: auto; }
.ld-deploy-art p { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); }
.ld-deploy-list { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--dark-line); }
.ld-deploy-list li { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--dark-line); border-left: 2px solid transparent; transition: background .3s, border-color .3s; }
.ld-deploy-list li:last-child { border-bottom: 0; }
.ld-deploy-list li.is-on { background: rgba(255,255,255,.03); border-left-color: var(--sky); }
.ld-deploy-list strong { font-weight: 500; font-size: 15px; }
.ld-deploy-list p { font-size: 13px; color: var(--on-dark-2); margin-top: 4px !important; max-width: 36ch; }
.ld-deploy-list span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); white-space: nowrap; padding-top: 3px; }
.ld-deploy-list span.is-live { color: var(--sky); }

/* Security */
.ld-security { background: var(--dark); padding: 70px 0 110px; }
.ld-sec-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.ld-sec-grid h2 { font-size: clamp(30px, 3.4vw, 44px); }
.ld-sec-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); padding-bottom: 10px; }
.ld-sec { display: flex; flex-direction: column; gap: 8px; }
.ld-sec li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--dark-line); border-radius: 4px; background: #15161a; transition: border-color .3s, transform .3s var(--ease); }
.ld-sec li:hover { border-color: var(--dark-line-2); transform: translateX(3px); }
.ld-sec i { font-style: normal; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--dark-line-2); display: grid; place-items: center; font-family: var(--font-mono); font-size: 9px; font-weight: 600; color: var(--on-dark-2); }
.ld-sec strong { font-weight: 500; font-size: 14.5px; }
.ld-sec p { font-size: 12.5px; color: var(--on-dark-2); margin-top: 2px !important; }
.ld-sec li > span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ld-sec li > span.is-on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }

/* CTA */
.ld-cta { background: var(--dark); padding: 20px 0 110px; }
.ld-cta-box { text-align: center; padding: 80px 24px; border: 1px solid var(--dark-line-2); border-radius: 6px; background: radial-gradient(80% 120% at 50% 0%, rgba(59,123,246,.16), rgba(17,18,20,0) 60%), #141519; }
.ld-cta-box h2 { font-size: clamp(30px, 3.6vw, 46px); }
.ld-cta-box > p:not(.ld-kicker) { color: var(--on-dark-2); margin: 16px 0 28px !important; }

/* Footer */
.ld-footer { background: var(--dark); border-top: 1px solid var(--dark-line); padding-top: 34px; overflow: hidden; }
.ld-foot-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--dark-line); }
.ld-foot-mark { font-family: var(--font-mono); font-weight: 600; letter-spacing: .2em; font-size: 13px; }
.ld-foot-mark em { font-style: normal; font-weight: 400; color: var(--on-dark-3); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-left: 12px; }
.ld-foot-radius { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); display: flex; gap: 8px; align-items: center; }
.ld-foot-radius i { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.ld-foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 30px 0; }
.ld-foot-cols p { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 12px !important; }
.ld-foot-cols a { display: block; font-size: 13.5px; color: var(--on-dark-2); padding: 3px 0; }
.ld-foot-cols a:hover { color: #fff; }
.ld-foot-note { border-top: 1px solid var(--dark-line); padding: 22px 0 0; max-width: 560px; font-size: 13px; color: var(--on-dark-2); }
.ld-foot-legal { margin-top: 10px !important; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--on-dark-3); }
.ld-foot-word { font-weight: 600; font-size: clamp(90px, 23vw, 340px); letter-spacing: -.05em; line-height: .78; text-align: center; margin-top: 30px; background: linear-gradient(180deg, #c9ccd2 0%, #3a3d44 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* Tablet */
@media (max-width: 1000px) {
  .ld-nav nav { display: none; }
  .ld-platform-grid { grid-template-columns: 1fr; }
  .ld-index { display: none; }
  .ld-chapters { border: 0; }
  .ld-chapter { padding: 48px 0 40px; }
  .ld-pair { grid-template-columns: 1fr; }
  .ld-pair .ld-chapter + .ld-chapter { border-left: 0; border-top: 1px solid var(--line); }
  .ld-intro-head, .ld-cut-grid, .ld-deploy-grid, .ld-sec-grid { grid-template-columns: 1fr; }
  .ld-deploy-list { border-left: 0; border-top: 1px solid var(--dark-line); }
  .ld-cut-track { height: auto; }
  .ld-cut-sticky { position: static; height: auto; padding: 90px 0; }
  .ld-cut-steps p { max-height: none; opacity: 1; margin-top: 6px; }
  .ld-cut-steps li { color: var(--on-dark); }
}

/* Phones: everything centred */
@media (max-width: 640px) {
  /* Phones: the picture sits on its own above the words, never behind them. */
  .ld-hero { height: auto; min-height: 0; display: block; padding-top: 60px; }
  .ld-hero-film { position: relative; inset: auto; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
  /* Centre the pod in the square crop: it sits at 66% across the film and at 62.5% across the stills. */
  .ld-hero-film > video { object-position: 91% 50%; }
  .ld-hero-film > img { object-position: 78.6% 50%; }
  .ld-hero-shade { background: linear-gradient(180deg, rgba(0,0,0,0) 75%, #000 100%); }
  .ld-hero-copy { padding-top: 8px; padding-bottom: 32px; }
  .ld-nav.is-film { background: rgba(0,0,0,.88); backdrop-filter: blur(14px); }
  .ld-program.is-on { height: 460px; }
  .ld-program img { height: 64%; bottom: auto; object-position: 50% 45%; }
  .ld-program-shade { background: linear-gradient(180deg, rgba(0,0,0,0) 46%, #000 64%); }
  .ld-hero h1 { font-size: 38px; }
  .ld-hero-lead { font-size: 15.5px; }
  .ld-hero-copy, .ld-hero-reel { text-align: center; }
  .ld-hero h1, .ld-hero-lead { margin-inline: auto; }
  .ld-hero-actions { justify-content: center; }
  .ld-hero-reel { flex-direction: column; align-items: center; }
  .ld-hero-reel button { width: 74px; font-size: 9px; }
  .ld-reel-n { display: none; }
  .ld-hero-credit { text-align: center; }
  .ld-programs { flex-direction: column; height: auto; }
  .ld-program { flex: none; height: 70px; }
  .ld-program.is-on { flex: none; }
  .ld-program-text { text-align: center; align-items: center; left: 16px; right: 16px; max-width: none; }
  .ld-intro-head, .ld-chapter, .ld-cut-copy, .ld-sec-grid > div:first-child, .ld-deploy .ld-wrap > :is(p,h2) { text-align: center; }
  .ld-intro-head h2, .ld-chapter > p, .ld-sub { margin-inline: auto; }
  .ld-tags { justify-content: center; }
  .ld-cut-steps li { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .ld-stats { grid-template-columns: 1fr; text-align: center; }
  .ld-stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .ld-stats > div { align-items: center; }
  .ld-checks li { justify-content: center; }
  .ld-darkcard { text-align: center; }
  .ld-msg { text-align: left; }
  .ld-deploy-list li { flex-direction: column; align-items: center; text-align: center; }
  .ld-deploy-list p { margin-inline: auto; }
  .ld-sec li { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ld-foot-top { flex-direction: column; gap: 12px; }
  .ld-foot-mark em { display: block; margin: 6px 0 0; }
  .ld-foot-cols { grid-template-columns: 1fr 1fr; text-align: center; }
  .ld-foot-note { text-align: center; margin-inline: auto; }
  .ld-stage { padding: 12px; }
  .ld-chat-body { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ld *, .ld *::before, .ld *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
.ld-stage.is-crop { padding: 0; background: #0f1012; }
.ld-stage.is-crop > img { border-radius: 0; box-shadow: none; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ===== Alive: motion added across the page ===== */
.ld-code { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--sky); margin-bottom: 14px !important; }
[data-theme="light"] .ld-code { color: var(--blue); }

/* Model to drawing */
.ld-draw { background-color: #070d18; background-image: linear-gradient(rgba(141,184,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(141,184,255,.06) 1px, transparent 1px); background-size: 48px 48px; color: var(--on-dark); }
.ld-draw-track { height: 260vh; position: relative; }
.ld-draw-sticky { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; padding: 70px 0 30px; }
.ld-draw-grid { width: 100%; display: grid; grid-template-columns: .8fr 1.5fr; gap: 48px; align-items: center; }
.ld-draw-head h2 { font-size: clamp(30px, 3.4vw, 46px); }
.ld-draw-view { --split: .5; position: relative; aspect-ratio: 4 / 3; border: 1px solid rgba(141,184,255,.22); background: radial-gradient(70% 70% at 30% 60%, #1c2230 0%, rgba(11,12,14,0) 70%); overflow: hidden; touch-action: pan-y; }
.ld-draw-view.is-live .ld-3d-poster, .ld-draw-view.is-live .ld-3d-load { opacity: 0; pointer-events: none; }
.ld-draw-handle { position: absolute; top: 0; bottom: 0; left: calc(var(--split) * 100%); width: 44px; margin-left: -22px; z-index: 3; cursor: ew-resize; display: flex; justify-content: center; touch-action: none; outline: none; }
.ld-draw-handle::before { content: ""; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, var(--sky) 15%, var(--sky) 85%, transparent); }
.ld-draw-handle b { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: #0b1426; border: 1px solid var(--sky); color: var(--sky); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(141,184,255,.08); animation: ld-knob 2.4s ease-in-out infinite; transition: transform .2s; }
.ld-draw-handle:hover b, .ld-draw-handle:focus-visible b { transform: scale(1.1); background: #12203a; }
@keyframes ld-knob { 50% { box-shadow: 0 0 0 12px rgba(141,184,255,0); } }
.ld-draw-label { position: absolute; top: 18px; z-index: 2; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 8px; border-radius: 2px; transition: opacity .3s; pointer-events: none; }
.ld-draw-label.is-l { left: 18px; background: rgba(255,255,255,.9); color: #111; opacity: calc(var(--split) * 4 - .4); }
.ld-draw-label.is-r { right: 18px; border: 1px solid rgba(141,184,255,.5); color: var(--sky); opacity: calc((1 - var(--split)) * 4 - .4); }
.ld-draw-view > i { position: absolute; width: 14px; height: 14px; z-index: 2; pointer-events: none; }
.ld-draw-view > i::before, .ld-draw-view > i::after { content: ""; position: absolute; background: var(--sky); }
.ld-draw-view > i::before { left: 6px; top: 0; width: 1px; height: 14px; }
.ld-draw-view > i::after { top: 6px; left: 0; height: 1px; width: 14px; }
.ld-draw-view .p1 { top: 8px; left: 8px; } .ld-draw-view .p2 { top: 8px; right: 8px; } .ld-draw-view .p3 { bottom: 8px; left: 8px; } .ld-draw-view .p4 { bottom: 8px; right: 8px; }
.ld-draw-view figcaption { position: absolute; left: 22px; right: 22px; bottom: 16px; z-index: 2; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); pointer-events: none; }

/* Statement */
.ld-statement { background: var(--dark); padding: 130px 0 40px; }
.ld-big { font-size: clamp(26px, 3.3vw, 46px); line-height: 1.22; letter-spacing: -.02em; font-weight: 500; max-width: 26ch; }

/* Words that light up as you scroll */
[data-light] .lw { transition: color .35s ease, opacity .35s ease; opacity: .22; }
[data-light] .lw.is-lit { opacity: 1; }

/* Headings: words rise in one after another */
.hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hw > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.is-words .hw > span { transform: none; }

/* Lists and tags come in one by one */
.ld-st { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .3s; transition-delay: calc(var(--i) * 70ms); }
.is-stagger .ld-st { opacity: 1; transform: none; }
.ld-sec li.ld-st:hover { transform: translateX(3px); transition-delay: 0s; }

/* Pictures drift slowly with the scroll */
.ld-stage > img { transform: translateY(var(--py, 0px)) scale(1.03); }
.ld-stage:hover > img { transform: translateY(var(--py, 0px)) scale(1.045); }

/* Engines: a second row going the other way */
.ld-marquee.is-rev { margin-top: 10px; }
.ld-marquee.is-rev ul { animation-direction: reverse; animation-duration: 52s; }
.ld-marquee li { transition: border-color .3s, background .3s, transform .3s var(--ease); }
.ld-marquee li:hover { border-color: var(--sky); background: #1d2433; transform: translateY(-3px); }

/* Deploy art */
.ld-flow { animation: ld-dash 1s linear infinite; }
@keyframes ld-dash { to { stroke-dashoffset: -16; } }
.ld-ping { transform-origin: 210px 150px; transform-box: view-box; animation: ld-ping 2.8s ease-out infinite; }
@keyframes ld-ping { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.ld-float { animation: ld-float 3.6s ease-in-out infinite; }
@keyframes ld-float { 50% { transform: translateY(-6px); } }
.ld-deploy-list li { transition: border-color .4s, background .4s, opacity .4s; }

/* Security: live status dots */
.ld-sec li > span.is-on::before { animation: ld-dot 2s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(141,184,255,.6); }
@keyframes ld-dot { 50% { box-shadow: 0 0 0 5px rgba(141,184,255,0); } }

/* CTA glow drifts; footer word catches the light */
.ld-cta-box { position: relative; overflow: hidden; }
.ld-cta-box > *:not(.ld-cta-glow) { position: relative; }
.ld-cta-glow { position: absolute; width: 60%; aspect-ratio: 1; left: 20%; top: -40%; border-radius: 50%; background: radial-gradient(closest-side, rgba(59,123,246,.28), rgba(59,123,246,0)); animation: ld-drift 12s ease-in-out infinite; pointer-events: none; }
@keyframes ld-drift { 0%, 100% { transform: translate(-25%, 0); } 50% { transform: translate(25%, 12%); } }
.ld-foot-word { background: linear-gradient(100deg, #c9ccd2 0%, #3a3d44 40%, #8db8ff 50%, #3a3d44 60%, #c9ccd2 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: ld-shine 9s linear infinite; }
@keyframes ld-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }

@media (max-width: 1000px) {
  .ld-draw-track { height: auto; }
  .ld-draw-sticky { position: static; min-height: 0; padding: 90px 0; }
  .ld-draw-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .ld-draw-head, .ld-statement .ld-wrap { text-align: center; }
  .ld-draw-head .ld-sub { margin-inline: auto; }
  .ld-big { margin-inline: auto; }
  .ld-statement { padding: 90px 0 20px; }
  .ld-draw-view { aspect-ratio: 1 / 1; }
  .ld-draw-view figcaption { display: none; }
  .ld-draw-label { top: auto; bottom: 14px; font-size: 9px; }
  .ld-draw-label.is-l { left: 14px; } .ld-draw-label.is-r { right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw > span, .ld-st { transform: none; opacity: 1; transition: none; }
  [data-light] .lw { opacity: 1; }
  .ld-flow, .ld-ping, .ld-float, .ld-cta-glow, .ld-foot-word, .ld-draw-handle b, .ld-sec li > span.is-on::before { animation: none; }
}

/* Scan to CAD */
.ld-draw.is-scan { padding: 120px 0; }
.ld-draw-grid.is-flip { grid-template-columns: 1.5fr .8fr; }
.ld-draw.is-scan .ld-draw-view { background: radial-gradient(70% 70% at 50% 55%, #1a2333 0%, rgba(11,12,14,0) 70%); }
.ld-draw.is-scan .ld-draw-label.is-l { background: transparent; border: 1px solid rgba(141,184,255,.5); color: var(--sky); }
.ld-draw.is-scan .ld-draw-label.is-r { background: rgba(255,255,255,.9); color: #111; border: 0; }
.ld-scan-stats { margin-top: 28px !important; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(141,184,255,.22); }
.ld-scan-stats li { padding: 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.ld-scan-stats li + li { border-left: 1px solid rgba(141,184,255,.22); }
.ld-scan-stats span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); }
.ld-scan-stats strong { font-family: var(--font-mono); font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.ld-scan-stats em { font-style: normal; font-size: 12px; color: var(--on-dark-3); margin-left: 3px; }
.ld-scan-stats small { font-size: 11.5px; color: var(--on-dark-2); }
@media (max-width: 1000px) {
  .ld-draw-grid.is-flip { grid-template-columns: 1fr; }
  .ld-draw-grid.is-flip .ld-draw-head { order: -1; }
}
@media (max-width: 640px) {
  .ld-draw.is-scan { padding: 90px 0; }
  .ld-scan-stats { grid-template-columns: 1fr; text-align: center; }
  .ld-scan-stats li { align-items: center; }
  .ld-scan-stats li + li { border-left: 0; border-top: 1px solid rgba(141,184,255,.22); }
}
.ld-scan-legend { position: absolute; left: 18px; top: 56px; z-index: 2; display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; color: var(--on-dark-3); pointer-events: none; opacity: calc(var(--split) * 4 - .4); }
.ld-scan-legend b { width: 54px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #96a0af, #4d8dff, #ff3d00); order: 0; }
.ld-scan-legend i { display: none; }
@media (max-width: 640px) { .ld-scan-legend { top: auto; bottom: 40px; left: 14px; } }
.ld .ld-draw-handle:focus-visible { outline: none; } .ld .ld-draw-handle:focus-visible b { outline: 2px solid var(--sky); outline-offset: 3px; }

/* Render gallery: crossfades with a slow push-in */
.ld-gallery-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ld-gallery-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.ld-gallery-frame img.is-on { opacity: 1; animation: ld-push 5s ease-out both; }
@keyframes ld-push { from { transform: scale(1.0); } to { transform: scale(1.07); } }
.ld-gallery figcaption { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); }
.ld-gallery-dots { display: flex; gap: 5px; }
.ld-gallery-dots i { width: 14px; height: 2px; background: rgba(255,255,255,.2); transition: background .4s, width .4s; }
.ld-gallery-dots i.is-on { background: var(--sky); width: 24px; }
@media (prefers-reduced-motion: reduce) { .ld-gallery-frame img.is-on { animation: none; } }
.ld-stage.ld-gallery { padding: 0; }

/* Physics replay film */
.ld-film { background: var(--dark); padding: 120px 0 40px; }
.ld-film-head { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: end; margin-bottom: 36px; }
.ld-film-head h2 { font-size: clamp(30px, 3.4vw, 46px); }
.ld-film-view { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--dark-line); border-radius: 4px; overflow: hidden; background: #0b0c0e; }
.ld-film-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-film-view > i { position: absolute; width: 14px; height: 14px; z-index: 2; pointer-events: none; }
.ld-film-view > i::before, .ld-film-view > i::after { content: ""; position: absolute; background: #fff; opacity: .8; }
.ld-film-view > i::before { left: 6px; top: 0; width: 1px; height: 14px; }
.ld-film-view > i::after { top: 6px; left: 0; height: 1px; width: 14px; }
.ld-film-view .p1 { top: 10px; left: 10px; } .ld-film-view .p2 { top: 10px; right: 10px; } .ld-film-view .p3 { bottom: 10px; left: 10px; } .ld-film-view .p4 { bottom: 10px; right: 10px; }
.ld-film-view figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 28px 18px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); pointer-events: none; }
.ld-film-play { position: absolute; top: 18px; right: 18px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.35); cursor: pointer; display: grid; place-items: center; }
.ld-film-play span { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.ld-film-play.is-paused span { width: 0; height: 0; border: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
@media (max-width: 1000px) { .ld-film-head { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 640px) {
  .ld-film { padding: 90px 0 20px; }
  .ld-film-head { text-align: center; } .ld-film-head .ld-sub { margin-inline: auto; }
  .ld-film-view figcaption { position: static; background: #0b0c0e; padding: 12px 14px; text-align: center; }
  .ld-film-view { aspect-ratio: auto; }
  .ld-film-view video { aspect-ratio: 16 / 9; }
  .ld-film-view .p3, .ld-film-view .p4 { display: none; }
}

/* ===== Pass 2: tighter page, bigger drawing view, livelier hero ===== */
.ld-intro { padding: 48px 0 20px; }
.ld-intro-head { padding: 52px 0 0; }
.ld-platform { padding: 16px 0 72px; }
.ld-chapter { padding: 44px 40px 40px; }
@media (min-width: 1001px) { .ld-cut-track { height: 280vh; } .ld-draw-track { height: 220vh; } .ld-draw-sticky { padding: 76px 0 24px; } }
.ld-draw.is-scan { padding: 84px 0; }
.ld-film { padding: 84px 0 24px; }
.ld-statement { padding: 90px 0 24px; }
.ld-engines { padding: 80px 0 70px; }
.ld-marquee { margin-top: 40px; }
.ld-deploy { padding: 80px 0 40px; }
.ld-security { padding: 50px 0 80px; }
.ld-cta { padding: 0 0 80px; }

/* Model to drawing, wide */
.ld-draw-grid.is-wide { grid-template-columns: 1fr; gap: 22px; }
.ld-draw-grid.is-wide .ld-draw-head { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: end; }
.ld-draw-grid.is-wide .ld-draw-head h2 { font-size: clamp(30px, 3.2vw, 44px); }
.ld-draw-view.is-big { aspect-ratio: auto; height: min(68vh, 640px); }
.ld-draw { position: relative; overflow: clip; animation: ld-gridmove 18s linear infinite; }
@keyframes ld-gridmove { to { background-position: 48px 48px, 48px 48px; } }
.ld-draw::before { content: ""; position: absolute; width: 70vw; aspect-ratio: 1; left: 50%; top: 55%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(59,123,246,.22), rgba(59,123,246,0)); animation: ld-breathe 7s ease-in-out infinite; pointer-events: none; }
@keyframes ld-breathe { 50% { transform: scale(1.12); opacity: .7; } }
.ld-draw > * { position: relative; }
.ld-draw-scan { position: absolute; left: 0; right: 0; height: 2px; top: 0; z-index: 1; background: linear-gradient(90deg, transparent, rgba(141,184,255,.7), transparent); box-shadow: 0 0 18px rgba(141,184,255,.6); animation: ld-scanline 5.5s ease-in-out infinite; pointer-events: none; }
@keyframes ld-scanline { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.ld-draw-dims { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.ld-dim path, .ld-dim circle { fill: none; stroke: rgba(141,184,255,.55); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 600; stroke-dashoffset: 600; animation: ld-drawin 2.4s var(--ease) forwards; }
.ld-dim text { fill: var(--sky); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; opacity: 0; animation: ld-fadein .6s ease forwards; }
.ld-dim.is-v path { animation-delay: .4s; } .ld-dim.is-v text { animation-delay: 1.6s; }
.ld-dim.is-h path { animation-delay: .9s; } .ld-dim.is-h text { animation-delay: 2.1s; }
.ld-dim.is-c path { animation-delay: 1.4s; } .ld-dim.is-c text { animation-delay: 2.6s; }
.ld-dim { opacity: calc((1 - var(--split, .5)) * 3); transition: opacity .3s; }
@keyframes ld-drawin { to { stroke-dashoffset: 0; } }
@keyframes ld-fadein { to { opacity: 1; } }
.ld-titleblock { position: absolute; right: 18px; bottom: 40px; z-index: 2; display: grid; grid-template-columns: repeat(2, auto); border: 1px solid rgba(141,184,255,.4); background: rgba(7,13,24,.75); pointer-events: none; opacity: calc((1 - var(--split, .5)) * 3); transition: opacity .3s; }
.ld-titleblock div { padding: 6px 10px; border: 1px solid rgba(141,184,255,.18); }
.ld-titleblock span { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); }
.ld-titleblock b { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--sky); }

/* Hero: faint grid, light sweep, spec tags */
.ld-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent); animation: ld-gridmove2 24s linear infinite; pointer-events: none; }
@keyframes ld-gridmove2 { to { background-position: 64px 64px, 64px 64px; } }
.ld-hero-sweep { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(141,184,255,.07) 50%, transparent 60%); background-size: 250% 100%; animation: ld-sweep 9s ease-in-out infinite; pointer-events: none; mix-blend-mode: screen; }
@keyframes ld-sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.ld-hero-tags { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ld-htag { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; opacity: 0; animation: ld-tagcycle 8.4s ease-in-out infinite; animation-delay: calc(var(--d) + 1.2s); }
.ld-htag i { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 rgba(141,184,255,.7); animation: ld-dot 1.6s ease-out infinite; flex: none; }
.ld-htag i::after { content: ""; position: absolute; left: 10px; top: 4.5px; width: 34px; height: 1px; background: rgba(141,184,255,.7); }
.ld-htag.is-left { flex-direction: row-reverse; }
.ld-htag.is-left i::after { left: auto; right: 10px; }
.ld-htag i { position: relative; }
.ld-htag span { margin-left: 34px; padding: 8px 12px; border: 1px solid rgba(141,184,255,.35); background: rgba(8,10,14,.6); backdrop-filter: blur(6px); font-size: 12px; color: rgba(255,255,255,.75); white-space: nowrap; }
.ld-htag.is-left span { margin-left: 0; margin-right: 34px; }
.ld-htag b { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 2px; }
@keyframes ld-tagcycle { 0% { opacity: 0; transform: translateY(8px); } 6%, 40% { opacity: 1; transform: none; } 48%, 100% { opacity: 0; transform: translateY(-6px); } }
.ld-hero:has(#reel li:not(:first-child).is-on) .ld-hero-tags { display: none; }

@media (max-width: 1000px) {
  .ld-hero-tags { display: none; }
  .ld-draw-grid.is-wide .ld-draw-head { grid-template-columns: 1fr; gap: 12px; }
  .ld-draw-view.is-big { height: auto; aspect-ratio: 4 / 3; }
  .ld-titleblock { display: none; }
}
@media (max-width: 640px) {
  .ld-draw-view.is-big { aspect-ratio: 1 / 1; }
  .ld-draw-dims { display: none; }
  .ld-intro { padding: 32px 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-draw, .ld-draw::before, .ld-draw-scan, .ld-hero-grid, .ld-hero-sweep { animation: none; }
  .ld-dim path, .ld-dim circle { stroke-dashoffset: 0; animation: none; } .ld-dim text { opacity: 1; animation: none; }
  .ld-htag { animation: none; opacity: 1; }
}
