/* ============================================================================
   Markly cinematic site (demo/cinematic.css)
   Dark, high-contrast, motion-led direction for the Markly Motion Demo page.
   Page chrome is near-black graphite; the product UI inside .app-light keeps
   Markly's real light theme so the interface reads as the actual app.
   Type: Manrope (display), Instrument Sans (body), Spline Sans Mono (labels).
   One accent: Markly teal. Pairs with motion/motion.css (the kit) and
   demo/cinematic.js (nav state, counters, workflow pin, pointer depth).
   ============================================================================ */
:root {
  --bg0:  #0A0C0D;
  --bg1:  #0E1113;
  --bg2:  #14181A;
  --card: #14181A;
  --ink:  #F1F5F3;
  --body: #ADB8B3;
  --muted:#7E8B86;
  --line: rgba(236, 242, 240, .08);
  --line2:rgba(236, 242, 240, .16);
  --soft2:rgba(236, 242, 240, .05);

  --acc:      #2FB39C;
  --acc-deep: #5BCBB6;
  --acc-soft: rgba(47, 179, 156, .16);
  --acc-ink:  #06110E;
  --acc-rgb:  47, 179, 156;

  --card-sh: 0 1px 2px rgba(0, 0, 0, .5);
  --lift-sh: 0 6px 16px rgba(0, 0, 0, .35), 0 24px 60px -24px rgba(0, 0, 0, .7);
  --display: "Manrope", "Segoe UI", sans-serif;
  --sans:    "Instrument Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:    "Spline Sans Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --spring:  cubic-bezier(.22, .9, .24, 1);
  --navh: 64px;
}
/* the real Markly app theme, scoped to every product surface */
.app-light {
  --bg:   #FAFAF8;
  --card: #FFFFFF;
  --ink:  #2A2E35;
  --body: #4B5158;
  --muted:#697076;
  --line: #E6EAE8;
  --line2:#D3DEDB;
  --soft2:#F0F4F2;
  --acc:      #0F9682;
  --acc-deep: #0B7565;
  --acc-soft: #D9F0EA;
  --card-sh: 0 1px 2px rgba(42, 46, 53, .04), 0 6px 20px -14px rgba(42, 46, 53, .08);
  color: var(--body);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--sans); font-size: 15.5px; line-height: 1.6;
  color: var(--body); background: var(--bg0);
  -webkit-font-smoothing: antialiased;
}
/* film grain, one fixed layer, very quiet */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 3; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .04;
}
a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc-deep); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -.02em; margin: 0; }
::selection { background: rgba(47, 179, 156, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.shell { max-width: 1480px; margin: 0 auto; padding: 0 clamp(20px, 4.2vw, 72px); }
.skip {
  position: fixed; top: -48px; left: 16px; z-index: 200;
  background: var(--acc); color: var(--acc-ink); font-weight: 600; font-size: 13px;
  padding: 9px 16px; border-radius: 8px; transition: top .2s ease;
}
.skip:focus-visible { top: 12px; color: var(--acc-ink); }

/* mono micro-labels */
.tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tag b { color: var(--acc); font-weight: 500; }

/* ------------ buttons ------------ */
.cbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; cursor: pointer; text-decoration: none;
  background: var(--acc); color: var(--acc-ink);
  font-family: var(--sans); font-size: 14.5px; font-weight: 700;
  padding: 13px 24px; border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}
.cbtn:hover { background: var(--acc-deep); color: var(--acc-ink); }
.cbtn:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(.97); }
.cbtn.ghostline { background: transparent; color: var(--ink); border: 1px solid var(--line2); font-weight: 600; }
.cbtn.ghostline:hover { border-color: var(--acc); color: var(--acc); background: transparent; }
.cbtn.small { padding: 9px 16px; font-size: 13px; border-radius: 8px; }
.textlink { font-size: 13.5px; font-weight: 600; color: var(--body); }
.textlink:hover { color: var(--ink); }

/* ------------ nav ------------ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.nav.scrolled {
  background: rgba(10, 12, 13, .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: var(--navh); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { display: block; height: 26px; width: auto; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.wordmark .up { color: var(--acc); }
.nav-links { display: flex; gap: 24px; margin-left: 12px; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--body); }
.nav-links a:hover { color: var(--ink); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 16px; }

/* colour theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: none; padding: 0; cursor: pointer;
  background: transparent; color: var(--body);
  border: 1px solid var(--line2); border-radius: 10px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--acc); background: var(--soft2); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .ic-sun { display: block; }
.theme-toggle .ic-moon { display: none; }
html[data-theme="light"] .theme-toggle .ic-sun { display: none; }
html[data-theme="light"] .theme-toggle .ic-moon { display: block; }

/* ------------ hero ------------ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--navh) + 56px) 0 0; overflow: hidden; background: var(--bg0); }
.hero-gridlines, .stage-gridlines {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 160px),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 160px);
  opacity: .5;
  -webkit-mask-image: radial-gradient(70% 70% at 62% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 62% 40%, #000 30%, transparent 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.hero h1 {
  font-weight: 800; font-size: clamp(44px, 5.6vw, 86px);
  line-height: 1.0; letter-spacing: -.035em; margin: 22px 0 20px;
}
.rvl { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.rvl i { display: block; font-style: normal; }
html.mk-js .rvl i { transform: translateY(115%); animation: rvl-up .9s var(--spring) forwards; }
html.mk-js .rvl:nth-child(2) i { animation-delay: .09s; }
html.mk-js .rvl:nth-child(3) i { animation-delay: .18s; }
@keyframes rvl-up { to { transform: translateY(0); } }
.hero-sub { font-size: 17px; line-height: 1.65; max-width: 46ch; margin: 0 0 30px; color: var(--body); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.fine { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 18px 0 0; }

/* hero visual stage */
.hero-stage { position: relative; height: clamp(460px, 60vw, 660px); }
.bloom {
  position: absolute; width: 130%; height: 110%; top: -14%; left: -6%;
  background: radial-gradient(closest-side, rgba(47, 179, 156, .17), transparent 72%);
  pointer-events: none;
}
[data-depth] { transform: translate3d(calc(var(--px, 0) * var(--d, 0) * 1px), calc(var(--py, 0) * var(--d, 0) * 1px), 0); transition: transform .3s cubic-bezier(.2, .6, .3, 1); will-change: transform; }

/* film frames: video with a user-fillable still behind it */
.film { position: relative; overflow: hidden; border: 1px solid var(--line2); border-radius: 6px; background: var(--bg1); }
.film .slotwrap { position: absolute; inset: 0; z-index: 1; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.film video.ready { opacity: 1; }
.film-label {
  position: absolute; left: 12px; bottom: 10px; z-index: 4; pointer-events: none;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em;
  color: rgba(241, 245, 243, .78); background: rgba(10, 12, 13, .6);
  border: 1px solid var(--line); border-radius: 5px; padding: 4px 9px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
html[data-hide-film-labels] .film-label { display: none; }
.film-hero { position: absolute; top: 0; right: 0; width: 78%; aspect-ratio: 16 / 10; }

/* floating micro panels */
.chiplet {
  position: absolute; z-index: 6;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink);
  background: rgba(20, 24, 26, .78); border: 1px solid var(--line2); border-radius: 8px;
  padding: 8px 12px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-color: rgba(47, 179, 156, .32);
  box-shadow: 0 0 14px rgba(47, 179, 156, .38), 0 0 34px -2px rgba(47, 179, 156, .3), var(--lift-sh);
}
.chiplet b { color: var(--acc); font-weight: 500; }
html.mk-js .chiplet { opacity: 0; transform: translateY(10px); animation: chip-in .6s var(--spring) forwards; }
html.mk-js .chiplet.c2 { animation-delay: 1s; }
html.mk-js .chiplet.c1 { animation-delay: .7s; }
@keyframes chip-in { to { opacity: 1; transform: translateY(0); } }

/* ------------ product windows (light UI on dark stage) ------------ */
.app-window {
  background: var(--card); border: 1px solid rgba(47, 179, 156, .3); border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(47, 179, 156, .12), 0 0 18px rgba(47, 179, 156, .28), 0 0 52px -6px rgba(47, 179, 156, .32), 0 30px 90px -30px rgba(0, 0, 0, .85);
}
.app-light.app-window { background: #FFFFFF; }
.aw-bar { display: flex; align-items: center; gap: 7px; padding: 9px 14px; background: #F4F6F4; border-bottom: 1px solid #E6EAE8; }
.aw-logo { display: block; height: 15px; width: auto; }
.aw-brand { font-family: var(--display); font-weight: 800; font-size: 12.5px; color: #2A2E35; letter-spacing: -.01em; }
.aw-brand .up { color: #0F9682; }
.aw-dot { width: 9px; height: 9px; border-radius: 50%; background: #D3DEDB; }
.aw-title { margin-left: auto; font-family: var(--mono); font-size: 11px; color: #697076; }
.aw-body { padding: 16px 18px 14px; background: #FAFAF8; }
.aw-student { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.aw-ava {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: #D9F0EA; color: #0B7565; font-family: var(--mono); font-size: 12px; font-weight: 600;
}
.aw-name { font-size: 13.5px; font-weight: 600; color: #2A2E35; }
.aw-meta { font-size: 12px; color: #697076; }
.aw-state { margin-left: auto; font-size: 11px; font-weight: 600; color: #0B7565; background: #D9F0EA; border-radius: 6px; padding: 3px 9px; }
.aw-foot { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid #E6EAE8; margin-top: 2px; }
.aw-btn {
  display: inline-flex; align-items: center; border: 0; cursor: pointer;
  background: #0F9682; color: #fff; font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px;
}
.aw-btn:hover { background: #0B7565; }
.aw-btn.quiet { background: #fff; color: #2A2E35; border: 1px solid #D3DEDB; }
.aw-btn.quiet:hover { border-color: #0F9682; color: #0F9682; }
.aw-note { font-family: var(--mono); font-size: 10.5px; color: #697076; margin-left: auto; }
.hero-app { position: absolute; left: 0; bottom: 0; width: min(70%, 480px); }
.hero-app .mk-diag { border: 0; border-radius: 0; padding: 0; background: transparent; }

/* generic light rows inside windows */
.aw-row { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 44px; gap: 12px; align-items: center; min-height: 40px; border-top: 1px solid #E6EAE8; font-size: 13px; color: #2A2E35; }
.aw-row:first-of-type { border-top: 0; }
.aw-track { height: 7px; border-radius: 4px; background: #F0F4F2; overflow: hidden; }
.aw-fill { display: block; height: 100%; border-radius: 4px; background: #0F9682; }
.aw-val { font-family: var(--mono); font-size: 11.5px; color: #697076; text-align: right; font-variant-numeric: tabular-nums; }
.aw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: #F0F4F2; color: #4B5158; }
.aw-chip.warn { background: #F5E6E0; color: #9C4128; }
.aw-chip.good { background: #D9F0EA; color: #0B7565; }
.aw-q { border: 1px solid #E6EAE8; border-radius: 9px; padding: 11px 13px; margin-top: 10px; background: #fff; }
.aw-q p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.5; color: #2A2E35; }
.aw-q-meta { display: flex; gap: 8px; align-items: center; }
.aw-q-meta span { font-family: var(--mono); font-size: 10.5px; color: #697076; }
.aw-q-meta .aw-mini { margin-left: auto; display: flex; gap: 6px; }
.aw-mini button { border: 1px solid #D3DEDB; background: #fff; color: #4B5158; font-family: var(--sans); font-size: 11px; font-weight: 600; border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.aw-mini button:hover { border-color: #0F9682; color: #0F9682; }

/* ------------ credibility strip ------------ */
.cred { position: relative; margin-top: clamp(40px, 6vh, 72px); border-top: 1px solid var(--line); padding: 26px 0 30px; }
.cred-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 1.4fr; gap: 28px; align-items: start; }
.stat-num { font-family: var(--mono); font-size: clamp(24px, 2.2vw, 34px); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cred-copy { font-size: 13.5px; color: var(--body); border-left: 1px solid var(--line); padding-left: 24px; }
.cred-copy .tag { display: block; margin-top: 10px; letter-spacing: .18em; }

/* ------------ section scaffolding ------------ */
section { position: relative; }
.sec-pad { padding: clamp(84px, 11vh, 140px) 0; }
.sec-head { display: flex; align-items: baseline; gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 14px; }
.sec-head .tag { flex: none; }
.sec-head .rule { flex: 1; height: 1px; background: var(--line); align-self: center; }
.sec-title { font-weight: 800; font-size: clamp(30px, 3.2vw, 52px); letter-spacing: -.03em; line-height: 1.05; max-width: 22ch; margin: 10px 0 14px; }
.sec-sub { font-size: 16px; max-width: 58ch; margin: 0; }
.mk-u::after { bottom: -12px; }

/* ------------ workflow (pinned) ------------ */
.wf-track { position: relative; }
.wf-pin { position: sticky; top: calc(var(--navh) + 24px); display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: stretch; min-height: min(76vh, 720px); }
.wf-rail { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 22px; }
.wf-line { position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 1px; }
.wf-bar { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--acc); border-radius: 1px; transform: scaleY(0); transform-origin: top; transition: transform .2s linear; }
.wf-step { appearance: none; background: none; border: 0; width: 100%; text-align: left; font: inherit; color: inherit; padding: 15px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.wf-step:hover .t { color: var(--ink); }
.wf-step:last-child { border-bottom: 0; }
.wf-step .n { font-family: var(--mono); font-size: 11px; color: var(--muted); display: block; }
.wf-step .t { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--muted); transition: color .25s ease; }
.wf-step .d { display: block; font-size: 13px; color: var(--muted); margin: 3px 0 0; max-width: 34ch; opacity: .75; }
.wf-step.active .t { color: var(--ink); }
.wf-step.active .n { color: var(--acc); }
.wf-flow .wf-panel { transition: none; will-change: transform, opacity; }
.wf-flow .wf-bar { transition: none; }
.wf-stage { position: relative; min-height: 460px; }
.wf-stage-note { position: absolute; top: -26px; right: 2px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.wf-panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .45s ease, transform .55s var(--spring); pointer-events: none; }
.wf-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.wf-panel .app-window { max-width: 640px; margin: 0 auto; width: 100%; }
/* static fallback: small screens and reduced motion */
.wf-static .wf-pin { position: static; display: block; min-height: 0; }
.wf-static .wf-rail { display: none; }
.wf-static .wf-stage { min-height: 0; }
.wf-static .wf-panel { position: static; opacity: 1; transform: none; pointer-events: auto; margin: 0 0 26px; }
.wf-static .wf-stage-note { position: static; display: block; margin-bottom: 14px; }

/* paper document mock, used in the Diagnose panel */
.paper { background: #fff; border: 1px solid #E6EAE8; border-radius: 10px; padding: 16px 18px; }
.paper h4 { margin: 0 0 4px; font-family: var(--display); font-size: 14px; color: #2A2E35; }
.paper .pm { font-family: var(--mono); font-size: 10.5px; color: #697076; }
.paper ol { margin: 10px 0 0; padding-left: 18px; }
.paper li { font-size: 12.5px; color: #2A2E35; line-height: 1.5; padding: 4px 0; }
.paper li span { font-family: var(--mono); font-size: 10.5px; color: #697076; }

/* ------------ cinematic scenes ------------ */
.scene { padding: clamp(60px, 9vh, 110px) 0; }
.scene-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); align-items: center; }
.scene-copy h3 { font-weight: 800; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.028em; line-height: 1.08; margin: 12px 0 14px; }
.scene-copy p { margin: 0 0 14px; max-width: 46ch; }
.scene-note { display: flex; gap: 10px; align-items: flex-start; border-left: 2px solid var(--acc); padding: 2px 0 2px 14px; font-size: 13px; color: var(--muted); max-width: 44ch; }
.scene-film { position: relative; }
.scene-film .film { width: 100%; }
.overlay-card { position: absolute; z-index: 8; width: min(400px, 82%); box-shadow: 0 0 18px rgba(47, 179, 156, .28), 0 0 52px -6px rgba(47, 179, 156, .32), 0 30px 90px -30px rgba(0, 0, 0, .9); transition: transform .55s cubic-bezier(.33, .9, .3, 1), opacity .4s ease; }
.s-a .scene-film { grid-column: 1 / span 8; }
.s-a .film { aspect-ratio: 16 / 9; }
.s-a .overlay-card { right: -8%; bottom: -9%; }
.s-a .scene-copy { grid-column: 10 / span 3; }
.s-b .scene-copy { grid-column: 1 / span 4; }
.s-b .scene-film { grid-column: 6 / span 7; }
.s-b .film { aspect-ratio: 16 / 8; }
.s-b .overlay-card { left: -6%; bottom: -12%; width: min(440px, 88%); }
.s-c .scene-film { grid-column: 1 / span 12; }
.s-c .film { aspect-ratio: 21 / 8; }
.s-c .overlay-card { right: 5%; top: 50%; transform: translateY(-50%); width: min(460px, 86%); }
.s-c .scene-copy { grid-column: 1 / span 5; margin-top: 34px; }
/* hover the film and the overlay card dodges clear so the video can be watched */
@media (hover: hover) and (pointer: fine) {
  .scene-film .film:hover ~ .overlay-card { opacity: 0; pointer-events: none; }
  .s-a .film:hover ~ .overlay-card { transform: translate(48%, 36%) scale(.96); }
  .s-b .film:hover ~ .overlay-card { transform: translate(-48%, 36%) scale(.96); }
  .s-c .film:hover ~ .overlay-card { transform: translateY(-50%) translateX(58%) scale(.96); }
}

/* trajectory chart inside the report card (drawn on scroll by cinematic.js) */
.cine-chart { position: relative; }
.cine-chart svg { display: block; width: 100%; height: auto; }
.cine-chart [data-cine-line] { transition: stroke-dashoffset 1.4s cubic-bezier(.3, .08, .24, 1); }
.cine-chart .cc-pt { fill: #fff; stroke: #0F9682; stroke-width: 2; opacity: 0; transition: opacity .3s ease; }
.cine-chart.mk-drawing .cc-pt, .cine-chart.mk-done .cc-pt { opacity: 1; }
.cine-chart .cc-end { fill: #0F9682; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .4s var(--spring); }
.cine-chart.mk-done .cc-end { transform: scale(1); }
.cine-chip { position: absolute; top: 4px; right: 4px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: #0B7565; background: #D9F0EA; border-radius: 6px; padding: 3px 9px; opacity: 0; transform: translateY(7px) scale(.92); transition: opacity .35s ease .25s, transform .5s cubic-bezier(.3, 1.36, .4, 1) .25s; }
.cine-chart.mk-done .cine-chip { opacity: 1; transform: none; }

/* ------------ models and plans (card panels) ------------ */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 22px 24px; box-shadow: var(--card-sh);
}
.price-card h3 { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--ink); }
.price-card .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 14px 0 2px; }
.price-card .price .mono { font-family: var(--mono); font-size: 32px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price-card .price .word { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price-card .price .per { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.price-card ul { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card li { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.45; color: var(--body); }
.price-card li::before {
  content: ""; position: absolute; left: 2px; top: 3px;
  width: 5px; height: 9px; border: solid var(--acc); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.price-card .cbtn { margin-top: 22px; width: 100%; }
.price-card.featured {
  border-color: var(--acc);
  box-shadow: 0 0 0 1px var(--acc-soft), 0 0 26px -4px rgba(var(--acc-rgb), .26), var(--lift-sh);
}
/* cinematic hover: teal glow and a gentle zoom in, matching the app windows */
.prices .price-card { transition: transform .34s var(--spring), box-shadow .34s ease, border-color .2s ease; will-change: transform; }
.prices .price-card:hover {
  transform: translateY(-6px) scale(1.035);
  border-color: var(--acc);
  box-shadow:
    0 0 0 1px var(--acc-soft),
    0 0 24px rgba(var(--acc-rgb), .24),
    0 0 66px -12px rgba(var(--acc-rgb), .36),
    var(--lift-sh);
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .prices .price-card { transition: box-shadow .2s ease, border-color .2s ease; }
  .prices .price-card:hover { transform: none; }
}
.price-tag {
  position: absolute; top: -11px; left: 22px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--acc-ink); background: var(--acc); padding: 4px 11px; border-radius: 999px;
}
.models-note { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 24px; text-align: center; }

/* ------------ finale ------------ */
.finale { position: relative; overflow: hidden; text-align: center; padding: clamp(110px, 16vh, 190px) 0; border-top: 1px solid var(--line); background: var(--bg0); }
.finale .bloom { width: 70%; height: 120%; left: 15%; top: 10%; }
.finale .ghost { position: absolute; right: -4%; bottom: -18%; width: clamp(280px, 30vw, 520px); opacity: .05; pointer-events: none; }
.finale h2 { font-weight: 800; font-size: clamp(36px, 4.4vw, 72px); letter-spacing: -.035em; line-height: 1.02; margin: 0 0 16px; }
.finale p { max-width: 44ch; margin: 0 auto 30px; }
.finale .cta-row { justify-content: center; }
.finale .fine { margin-top: 20px; }

/* ------------ footer ------------ */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; }
.foot-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot .tag { letter-spacing: .16em; }

/* kit dark adjustments */
.mk-minicta { background: rgba(20, 24, 26, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.mk-minicta-copy strong { color: var(--ink); }
.mk-u::after { background: var(--acc); }

/* hero app: keep the diagnosis readable at narrow window widths */
.hero-app .mk-row { grid-template-columns: minmax(96px, 1.1fr) minmax(56px, 1fr) 38px max-content; gap: 10px; }
.hero-app .mk-row-name { font-size: 12.5px; }
.hero-app .mk-diag-cap { font-size: 10.5px; }
/* the hero app overlaps the film's lower-left, so its label lives top-right */
.film-hero .film-label { left: auto; bottom: auto; right: 12px; top: 10px; }

/* ------------ light mode ------------ */
html[data-theme="light"] {
  --bg0: #FAFAF8;
  --bg1: #F2F3F0;
  --bg2: #FFFFFF;
  --card: #FFFFFF;
  --ink: #2A2E35;
  --body: #4B5158;
  --muted: #697076;
  --line: #E6EAE8;
  --line2: #D3DEDB;
  --soft2: #F0F4F2;
  --acc: #0F9682;
  --acc-deep: #0B7565;
  --acc-soft: #D9F0EA;
  --acc-ink: #FFFFFF;
  --acc-rgb: 15, 150, 130;
  --card-sh: 0 1px 2px rgba(42, 46, 53, .04), 0 6px 20px -14px rgba(42, 46, 53, .08);
  --lift-sh: 0 2px 4px rgba(42, 46, 53, .05), 0 10px 26px -14px rgba(42, 46, 53, .16);
}
html[data-theme="light"] ::selection { background: #D9F0EA; color: #2A2E35; }
html[data-theme="light"] body::after { opacity: .028; }
html[data-theme="light"] .nav.scrolled { background: rgba(250, 250, 248, .82); }
html[data-theme="light"] .chiplet { background: rgba(255, 255, 255, .9); }
html[data-theme="light"] .app-window { border-color: rgba(15, 150, 130, .3); box-shadow: 0 0 0 1px rgba(15, 150, 130, .08), 0 0 16px rgba(15, 150, 130, .16), 0 0 46px -6px rgba(15, 150, 130, .22), 0 24px 70px -28px rgba(42, 46, 53, .28); }
html[data-theme="light"] .chiplet { border-color: rgba(15, 150, 130, .3); box-shadow: 0 0 12px rgba(15, 150, 130, .22), 0 0 30px -2px rgba(15, 150, 130, .2), var(--lift-sh); }
html[data-theme="light"] .bloom { background: radial-gradient(closest-side, rgba(15, 150, 130, .1), transparent 72%); }
html[data-theme="light"] .finale .bloom { background: radial-gradient(closest-side, rgba(15, 150, 130, .12), transparent 72%); }
html[data-theme="light"] .mk-minicta { background: rgba(255, 255, 255, .92); }
html[data-theme="light"] .hero-gridlines, html[data-theme="light"] .stage-gridlines { opacity: .9; }

/* ------------ companies enquiry page ------------ */
.enq-main { padding: calc(var(--navh) + 48px) 0 0; }
.enq { padding: clamp(24px, 5vh, 56px) 0 clamp(64px, 11vh, 120px); position: relative; }
.enq .bloom { top: -20%; left: 20%; width: 70%; height: 80%; }
.enq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; position: relative; z-index: 1; }
.enq-intro h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.03; letter-spacing: -.03em; color: var(--ink); margin: 20px 0 18px; }
.enq-intro p { font-size: 16.5px; line-height: 1.62; color: var(--body); max-width: 46ch; }
.enq-points { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.enq-points li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--body); }
.enq-points li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 6px; height: 10px; border: solid var(--acc); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.enq-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 0 0 1px var(--acc-soft), 0 0 30px -6px rgba(var(--acc-rgb), .2), var(--lift-sh); }
.enq-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.enq-field label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.enq-field .req { color: var(--acc); }
.enq-input, .enq-card select, .enq-card textarea {
  width: 100%; font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  background: var(--bg1); border: 1px solid var(--line2); border-radius: 10px; padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.enq-card textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.enq-input:focus, .enq-card select:focus, .enq-card textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.enq-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.enq-card .cbtn { width: 100%; margin-top: 6px; }
.enq-consent { font-size: 11.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.enq-consent a { color: var(--acc); }
.enq-err { font-size: 13px; color: #E8705F; margin: 12px 0 0; }
.enq-done { text-align: center; padding: 22px 4px; }
.enq-done h2 { font-family: var(--display); font-size: 23px; letter-spacing: -.02em; color: var(--ink); margin-bottom: 8px; }
.enq-done p { color: var(--body); font-size: 15px; line-height: 1.6; }
.enq-noscript { font-size: 13.5px; color: var(--body); margin-top: 16px; }
@media (max-width: 900px) {
  .enq-grid { grid-template-columns: 1fr; }
  .enq-intro { max-width: 640px; }
  .enq-intro p { max-width: none; }
}
@media (max-width: 560px) { .enq-row2 { grid-template-columns: 1fr; gap: 0; } }

/* ------------ responsive ------------ */
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: 0; padding-bottom: 0; }
  .hero-stage { height: auto; min-height: 0; }
  .film-hero { position: relative; width: 100%; }
  .hero-app { position: relative; left: 0; bottom: 0; width: min(100%, 560px); margin: -54px auto 0; }
  .chiplet { display: none; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cred-copy { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .s-a .scene-copy { grid-column: 1 / -1; margin-top: 46px; }
  .s-a .scene-film, .s-b .scene-film { grid-column: 1 / -1; }
  .s-b .scene-copy { grid-column: 1 / -1; order: 2; margin-top: 46px; }
  .s-a .overlay-card, .s-b .overlay-card { position: static; width: 100%; margin-top: -40px; }
  .s-c .overlay-card { position: static; transform: none; width: 100%; margin-top: -60px; }
  .prices { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .wf-track { height: auto !important; }
  .wf-pin { position: static; display: block; min-height: 0; }
  .wf-rail { display: none; }
  .wf-stage { min-height: 0; }
  .wf-panel { position: static; opacity: 1; transform: none; pointer-events: auto; margin: 0 0 24px; }
  .wf-stage-note { position: static; display: block; margin-bottom: 14px; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .scene { padding: 52px 0; }
  .prices { grid-template-columns: 1fr; }
}

/* ------------ reduced motion ------------ */
@media (prefers-reduced-motion: reduce) {
  .rvl i, html.mk-js .rvl i { transform: none; animation: none; }
  .chiplet, html.mk-js .chiplet { opacity: 1; transform: none; animation: none; }
  [data-depth] { transform: none; transition: none; }
  .wf-panel, .wf-bar, .film video, .nav { transition: none; }
  .cine-chart [data-cine-line] { transition: none; }
  .cine-chart .cc-pt { opacity: 1; transition: none; }
  .cine-chart .cc-end { transform: scale(1); transition: none; }
  .cine-chip { opacity: 1; transform: none; transition: none; }
  .scene-film .film:hover ~ .overlay-card { opacity: 1; pointer-events: auto; }
  .s-a .film:hover ~ .overlay-card, .s-b .film:hover ~ .overlay-card { transform: none; }
  .s-c .film:hover ~ .overlay-card { transform: translateY(-50%); }
}
/* demo-only helper: mirrors the reduced-motion switch for the tweak toggle */
html[data-reduce-motion] *, html[data-reduce-motion] *::before, html[data-reduce-motion] *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}
html[data-reduce-motion] { scroll-behavior: auto; }
html[data-reduce-motion] .rvl i { transform: none; animation: none; }
html[data-reduce-motion] .chiplet { opacity: 1; transform: none; animation: none; }
html[data-reduce-motion] [data-depth] { transform: none; }
html[data-reduce-motion] .scene-film .film:hover ~ .overlay-card { opacity: 1; pointer-events: auto; }
html[data-reduce-motion] .s-a .film:hover ~ .overlay-card, html[data-reduce-motion] .s-b .film:hover ~ .overlay-card { transform: none; }
html[data-reduce-motion] .s-c .film:hover ~ .overlay-card { transform: translateY(-50%); }

/* trademark mark in the nav wordmark (production addition) */
.tm { font-size: 9px; color: var(--muted); font-weight: 500; margin-left: 2px; vertical-align: super; }
