/* pradeep.build: design system
   Stage (dark) for the site, paper (light) for reading build reports.
   Cyan marks an AI step, marigold marks a person deciding or acting. */

:root {
  --ink-0: #0A0D10;
  --ink-1: #0E1317;
  --ink-2: #141A1F;
  --ink-3: #1B2228;
  --chalk: #ECEAE3;
  --chalk-2: #A9AFB3;
  --chalk-3: #6E777E;
  --hair: rgba(236, 234, 227, .09);
  --hair-2: rgba(236, 234, 227, .18);
  --cyan: #7AD3E0;
  --marigold: #F4A62A;
  --paper: #E4E8EA;
  --paper-hi: #F1F3F4;
  --paper-ink: #12181D;
  --paper-ink-2: #4C575F;
  --paper-dot: rgba(18, 24, 29, .16);
  --cyan-ink: #17808F;
  --marigold-ink: #A9650A;

  --f-display: 'Anek Latin', 'Instrument Sans', system-ui, sans-serif;
  --f-body: 'Instrument Sans', system-ui, sans-serif;
  --f-mono: 'Martian Mono', ui-monospace, monospace;
  --f-tamil: 'Anek Tamil', 'Anek Latin', sans-serif;

  --wrap: 1296px;
  --gutter: 56px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pulli: radial-gradient(circle at center, rgba(236, 234, 227, .13) 1.1px, transparent 1.6px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink-0); color: var(--chalk); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font: 400 17px/1.6 var(--f-body); background: var(--ink-0); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--marigold); color: var(--ink-0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--chalk); color: var(--ink-0); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.band-0 { background: var(--ink-0); }
.band-1 { background: var(--ink-1); }
.mono, .kicker { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .02em; font-stretch: 100%; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--chalk-2); text-transform: uppercase; letter-spacing: .08em; font-weight: 400; }
.kicker::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.kicker:has(.tdot)::before { display: none; }

/* ---------------------------------------------------------------- type */
.display, .display-m, .h2, .h3, .next-title, .closing-q {
  font-family: var(--f-display); font-stretch: 116%; letter-spacing: -.022em; font-weight: 620; color: var(--chalk);
}
.display { font-size: clamp(52px, 4.9vw, 74px); line-height: .98; }
.display .line { display: block; overflow: hidden; padding-bottom: .06em; }
.display .line > span { display: inline-block; }
.display-m { font-size: clamp(40px, 4.2vw, 64px); line-height: 1.02; max-width: 18ch; }
.h2 { font-size: clamp(32px, 3vw, 46px); line-height: 1.06; max-width: 22ch; }
.h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.012em; font-stretch: 108%; }
.lede { font-size: 20px; line-height: 1.5; color: var(--chalk-2); max-width: 46ch; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--chalk-2); font-size: 15px; transition: color .2s; }
.link:hover { color: var(--chalk); }
.arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--ease); flex: none; }
a:hover .arr { transform: translateX(4px); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.005em; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--chalk); color: var(--ink-0); }
.btn-solid:hover { background: #fff; }
.btn-call { background: var(--marigold); color: #1A1104; box-shadow: 0 0 0 0 rgba(244, 166, 42, .4); }
.btn-call:hover { background: #FFB847; box-shadow: 0 0 32px -4px rgba(244, 166, 42, .55); }
.btn-ghost { border: 1px solid var(--hair-2); color: var(--chalk); }
.btn-ghost:hover { border-color: var(--chalk-2); background: rgba(236, 234, 227, .04); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; border-radius: 12px; }

/* ---------------------------------------------------------------- nav + logos */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; display: flex; align-items: center; gap: 40px; padding: 0 max(var(--gutter), (100% - var(--wrap)) / 2); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(10, 13, 16, .9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px); border-color: var(--hair); }
.nav nav { display: flex; gap: 30px; margin-left: auto; font-size: 15px; }
.nav nav a { color: var(--chalk-2); transition: color .2s; position: relative; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--chalk); }
.nav nav a[aria-current]::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--marigold); }
.nav-call { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 9px; }

.logo { display: inline-flex; align-items: center; font-size: 15px; }
.logo-opt { display: none; align-items: center; gap: 12px; }
html[data-logo="1"] .logo-opt[data-opt="1"], html[data-logo="2"] .logo-opt[data-opt="2"], html[data-logo="3"] .logo-opt[data-opt="3"] { display: inline-flex; }
.logo-name { font-family: var(--f-display); font-stretch: 110%; font-weight: 600; letter-spacing: -.01em; font-size: 1.07em; }

.wordmark { font-family: var(--f-display); font-stretch: 112%; font-weight: 640; letter-spacing: -.02em; font-size: 1.4em; color: var(--chalk); display: inline-flex; align-items: baseline; }
.wm-dot { width: .27em; height: .27em; border-radius: 50%; background: var(--marigold); margin: 0 .07em; align-self: baseline; transform: translateY(-.02em); box-shadow: 0 0 .35em .05em rgba(244, 166, 42, .75); animation: node 2.8s ease-in-out infinite; }
@keyframes node { 50% { box-shadow: 0 0 .7em .14em rgba(244, 166, 42, .55); } }

.mark-system { width: 2em; height: 2em; overflow: visible; }
.ms-link { fill: none; stroke: var(--chalk); stroke-opacity: .5; stroke-width: 1.7; stroke-linejoin: round; }
.ms-node { fill: var(--chalk); }
.ms-hub { fill: var(--marigold); filter: drop-shadow(0 0 3px rgba(244, 166, 42, .8)); }

.mark-tile { position: relative; display: inline-grid; place-items: center; width: 2.3em; height: 2.3em; border: 1.5px solid var(--chalk); border-radius: .42em; font-size: 1em; }
.mt-pl { font-family: var(--f-display); font-stretch: 108%; font-weight: 640; font-size: 1.08em; letter-spacing: -.03em; line-height: 1; }
.mt-n, .mt-b { position: absolute; font-family: var(--f-mono); font-size: .3em; color: var(--chalk-2); display: none; }
.mt-n { top: .45em; left: .55em; }
.mt-b { bottom: .4em; left: 0; right: 0; text-align: center; color: var(--marigold); }

/* ---------------------------------------------------------------- shared 3D slots */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
[data-gl] { position: relative; }
.gl-fallback { position: absolute; inset: 0; transition: opacity .6s; }
[data-gl].gl-live > .gl-fallback { opacity: 0; pointer-events: none; }
.pulli { position: absolute; inset: 0; background: var(--pulli); background-size: 26px 26px; mask: radial-gradient(closest-side, #000 30%, transparent); -webkit-mask: radial-gradient(closest-side, #000 30%, transparent); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; }
.hero-stick { position: sticky; z-index: 5; top: 0; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.hero-stick::before { content: ''; position: absolute; inset: 0; background: var(--pulli); background-size: 32px 32px; mask: radial-gradient(70% 80% at 68% 50%, #000 0%, transparent 75%); -webkit-mask: radial-gradient(70% 80% at 68% 50%, #000 0%, transparent 75%); opacity: .7; }
.hero-gl { position: absolute; top: 0; right: 0; width: 50%; height: 100%; }
/* copy centres in the space above the steps; the steps sit in flow so short screens can't make them collide */
.hero-grid { position: relative; z-index: 5; flex: 1; display: flex; flex-direction: column; padding: 104px 0 56px; pointer-events: none; }
.hero-grid a, .hero-grid button { pointer-events: auto; }
.hero-copy { max-width: 720px; margin-block: auto; }
.hero-copy .kicker { margin-bottom: 30px; }
.hero-copy .lede { margin-top: 30px; }
.ctas { display: flex; gap: 12px; margin-top: 40px; }
.hero-steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 230px); gap: 28px; }
.hero-steps li { cursor: pointer; display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--hair-2); color: var(--chalk-3); transition: color .5s, border-color .5s; position: relative; }
.hero-steps li::before { content: ''; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--chalk); transition: width .7s var(--ease); }
.hero-steps li.is-on { color: var(--chalk); }
.hero-steps li.is-on::before { width: 100%; }
.hero-caption { display: none; }
.hs-k { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.hs-t { font-size: 14.5px; line-height: 1.45; }
.hero-legend { position: absolute; right: max(var(--gutter), (100% - var(--wrap)) / 2); bottom: 60px; z-index: 5; display: flex; gap: 22px; color: var(--chalk-2); }
.lg::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.lg-ai::before { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.lg-human::before { background: var(--marigold); box-shadow: 0 0 8px var(--marigold); }

/* ---------------------------------------------------------------- sections */
.sec-head { margin-bottom: 64px; display: grid; gap: 20px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.sec-head-row > div { display: grid; gap: 20px; }
.sec-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.what, .featured, .films-home, .industries, .history, .how, .bindex, .logos { padding: 150px 0; }

/* career strip */
.career { padding: 72px 0 80px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.ruler { position: relative; padding-top: 26px; }
.ruler-years { position: relative; height: 0; }
.ruler-years span { position: absolute; top: -26px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 11px; color: var(--chalk-3); }
.ruler-years span::after { content: ''; position: absolute; left: 50%; top: 20px; width: 1px; height: 28px; background: var(--hair-2); }
.ruler-track { position: relative; height: 10px; margin-top: 9px; background: var(--pulli); background-size: 12px 10px; }
.rbar { position: absolute; top: 0; height: 10px; border-radius: 5px; transform-origin: left; }
.rbar-wipro { background: var(--chalk-3); }
.rbar-canada { background: var(--cyan); }
.rbar-indie { background: var(--marigold); }
.rnow { position: absolute; top: -3px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; border: 1.5px solid var(--marigold); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.career-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 44px; }
.career-list li { display: grid; gap: 4px; grid-template-columns: 18px minmax(0, 1fr); align-content: start; }
.career-list li > :not(.sw) { grid-column: 2; }
.career-list .sw { grid-row: 1 / span 4; width: 10px; height: 10px; border-radius: 3px; margin-top: 5px; }
.cl-wipro .sw { background: var(--chalk-3); } .cl-canada .sw { background: var(--cyan); } .cl-indie .sw { background: var(--marigold); }
.career-list .mono { color: var(--chalk-3); }
.career-list strong { font-family: var(--f-display); font-stretch: 110%; font-weight: 600; font-size: 21px; letter-spacing: -.01em; margin-top: 6px; }
.cl-role { color: var(--chalk); font-size: 15px; }
.cl-line { color: var(--chalk-2); font-size: 15px; line-height: 1.5; }

/* what I build */
.what-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; }
.what-item { background: var(--ink-0); padding: 0 36px 44px; display: grid; align-content: start; gap: 14px; }
.what-gl { height: 260px; margin: 0 -36px 18px; border-bottom: 1px solid var(--hair); background: radial-gradient(60% 70% at 50% 55%, rgba(236, 234, 227, .035), transparent); }
.what-item p { color: var(--chalk-2); font-size: 16px; }
.what-item ul { display: grid; gap: 9px; margin-top: 10px; }
.what-item li { font-size: 14.5px; color: var(--chalk-2); padding-left: 18px; position: relative; }
.what-item li::before { content: ''; position: absolute; left: 0; top: .68em; width: 8px; height: 1px; background: var(--chalk-3); }

/* build cards (home) */
.bcard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.bcard { display: grid; gap: 12px; align-content: start; }
.bcard .mscreen { margin-bottom: 14px; transition: transform .6s var(--ease), box-shadow .6s; }
.bcard:hover .mscreen { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--hair-2); }
.bcard .meta { font-family: var(--f-mono); font-size: 11px; color: var(--chalk-3); }
.bcard h3 { font-family: var(--f-display); font-stretch: 110%; font-weight: 600; font-size: 23px; letter-spacing: -.012em; line-height: 1.15; }
.bcard p { color: var(--chalk-2); font-size: 15px; line-height: 1.55; }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--chalk); margin-top: 4px; }

/* films (home) */
.films-home-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.films-home-copy { display: grid; gap: 22px; justify-items: start; }
.films-home-copy p { color: var(--chalk-2); max-width: 42ch; }
.reel-gl { display: block; height: 560px; border-radius: 18px; }

/* industries */
.ind-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--hair); }
.ind-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); padding: 20px 0 22px; border-bottom: 1px solid var(--hair); gap: 2px 0; }
.ind-dot { grid-row: 1 / span 2; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; border: 1.5px solid var(--chalk-3); transition: background .3s, border-color .3s, box-shadow .3s; }
.ind-list li:hover .ind-dot { background: var(--marigold); border-color: var(--marigold); box-shadow: 0 0 10px var(--marigold); }
.ind-name { font-family: var(--f-display); font-stretch: 108%; font-weight: 560; font-size: 20px; letter-spacing: -.01em; }
.ind-does { font-size: 14px; color: var(--chalk-3); }

/* tools */
.tools { padding: 150px 0 60px; }
.tools .sec-head { margin-bottom: 0; }
.tools-gl { height: 500px; }
.tool-legend { display: flex; gap: 22px; color: var(--chalk-2); }
.tl::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: 0; }
.tl-ai::before { background: var(--cyan); } .tl-app::before { background: var(--chalk); } .tl-auto::before { background: var(--marigold); } .tl-video::before { background: #C9A7FF; }
.tool-chips { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 40px 15%; }
.tc { border: 1px solid var(--hair-2); border-radius: 8px; padding: 8px 14px; font-size: 14px; }

/* ---------------------------------------------------------------- closing */
.closing { position: relative; padding: 70px 0 0; border-top: 1px solid var(--hair); overflow: hidden; }
.closing-name { height: 250px; width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; }
.closing-name .gl-fallback { display: grid; place-items: center; font-family: var(--f-display); font-stretch: 116%; font-weight: 640; font-size: 84px; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px var(--chalk-3); }
.closing-row { display: flex; align-items: center; gap: 28px; margin-top: 24px; padding-bottom: 110px; }
.closing-photo { width: 76px; height: 76px; border-radius: 50%; flex: none; object-fit: cover; border: 1px solid var(--hair-2); box-shadow: 0 0 0 4px var(--ink-0), 0 0 0 5px rgba(244, 166, 42, .5); }
.closing-q { font-size: clamp(36px, 3.6vw, 56px); line-height: 1.02; flex: 1; }
.foot { display: flex; justify-content: space-between; align-items: center; padding: 26px 0 34px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--chalk-3); }
.foot nav { display: flex; gap: 26px; }
.foot a:hover { color: var(--chalk); }

/* confidentiality note */
.conf-note { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--chalk-3); margin-top: 22px; }
.conf-dot { width: 7px; height: 7px; border-radius: 2px; border: 1.3px solid currentColor; flex: none; }
.conf-home { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--hair); }
.conf-paper { color: var(--paper-ink-2); grid-column: 1 / -1; margin-top: 20px; }

/* ---------------------------------------------------------------- page heros + filters */
.page-hero { padding: 200px 0 90px; }
.page-hero .display-m { margin: 26px 0 0; max-width: 21ch; }
.bindex-hero .display-m { max-width: none; }
.page-hero .lede { margin-top: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.chip { height: 38px; padding: 0 15px; border-radius: 9px; border: 1px solid var(--hair-2); font-size: 14px; color: var(--chalk-2); display: inline-flex; align-items: center; gap: 10px; transition: all .25s; }
.chip span { font-family: var(--f-mono); font-size: 10.5px; color: var(--chalk-3); }
.chip:hover { color: var(--chalk); border-color: var(--chalk-3); }
.chip.is-on { background: var(--chalk); color: var(--ink-0); border-color: var(--chalk); }
.chip.is-on span { color: rgba(10, 13, 16, .55); }
.tdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.tdot-product { background: var(--chalk); }
.tdot-automation { background: var(--marigold); }
.tdot-pipeline { background: var(--cyan); }

/* builds index */
.bindex { padding-top: 90px; }
.bindex-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; align-items: start; }
.rail { position: sticky; top: 112px; display: grid; gap: 22px; }
.rail ol { display: grid; border-left: 1px solid var(--hair); }
.rail a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0 9px 18px; margin-left: -1px; border-left: 1px solid transparent; font-size: 15px; color: var(--chalk-3); transition: color .25s, border-color .25s; }
.rail a:hover { color: var(--chalk-2); }
.rail a.is-on { color: var(--chalk); border-color: var(--marigold); }
.ind-block { padding-bottom: 80px; scroll-margin-top: 110px; }
.ind-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--hair-2); }
.ind-head .mono { color: var(--chalk-3); }
.type-group { padding-top: 26px; }
.type-label { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--chalk-3); margin-bottom: 4px; }
.brow { display: grid; grid-template-columns: 196px minmax(0, 1fr) 220px 28px; gap: 32px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--hair); transition: opacity .4s, background .3s; }
.brow-shot .mscreen { transition: transform .5s var(--ease); }
.brow:hover .brow-shot .mscreen { transform: scale(1.04) rotate(-1deg); }
.brow-main { display: grid; gap: 6px; }
.brow-title { font-family: var(--f-display); font-stretch: 110%; font-weight: 600; font-size: 22px; letter-spacing: -.01em; line-height: 1.15; }
.brow-one { color: var(--chalk-2); font-size: 15px; line-height: 1.5; }
.brow-stack { color: var(--chalk-3); font-size: 10.5px; line-height: 1.8; }
.brow-go { color: var(--chalk-3); }
.brow:hover .brow-go { color: var(--chalk); }
.brow.is-dim { opacity: .14; }
.type-group.is-hidden, .ind-block.is-hidden { display: none; }

/* ---------------------------------------------------------------- build page */
.bhero { padding: 170px 0 150px; overflow: hidden; }
.bhero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.bhero-copy { display: grid; gap: 22px; justify-items: start; }
.crumbs { display: flex; gap: 10px; color: var(--chalk-3); }
.crumbs a:hover { color: var(--chalk); }
.bhero .kicker::before { display: none; }
.bhero-shot { perspective: 1400px; }
.bhero-shot .mscreen { transform: rotateY(-14deg) rotateX(6deg); box-shadow: 0 60px 90px -40px rgba(0, 0, 0, .9); transition: transform 1s var(--ease); }
.bhero-shot:hover .mscreen { transform: rotateY(-6deg) rotateX(2deg); }

.sheet-wrap { padding: 0 0 140px; }
.sheet { position: relative; width: min(100% - 2 * var(--gutter), 1180px); margin: -90px auto 0; background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: 30px 80px 50px; background-image: radial-gradient(circle, var(--paper-dot) 1px, transparent 1.4px); background-size: 24px 24px; background-position: 12px 12px; box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .9); }
.sheet-top { display: flex; justify-content: space-between; color: var(--paper-ink-2); padding-bottom: 20px; margin-bottom: 30px; border-bottom: 1px solid rgba(18, 24, 29, .2); font-size: 10.5px; }
.sheet-sec { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; padding: 40px 0; border-bottom: 1px solid rgba(18, 24, 29, .12); }
.sheet-sec:last-child { border-bottom: 0; }
.sheet-sec-wide { grid-template-columns: 210px minmax(0, 1fr); }
.sheet-sec-wide > :not(.sheet-label):not(.sheet-body) { grid-column: 1 / -1; }
.sheet-label { font-family: var(--f-mono); font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--paper-ink-2); padding-top: 7px; }
.sheet-body { max-width: 62ch; font-size: 18px; line-height: 1.65; }
.sheet-body p + p { margin-top: 1em; }
.sheet-lead { font-family: var(--f-display); font-stretch: 104%; font-size: 26px; line-height: 1.35; font-weight: 480; letter-spacing: -.012em; }
.sheet .stack { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet .stack li { border: 1px solid rgba(18, 24, 29, .22); border-radius: 7px; padding: 6px 12px; font-size: 15px; background: var(--paper-hi); }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(18, 24, 29, .16); border: 1px solid rgba(18, 24, 29, .16); border-radius: 10px; overflow: hidden; margin-top: 6px; }
.res { background: var(--paper-hi); padding: 28px 28px 30px; display: grid; gap: 10px; align-content: start; }
.res strong { font-family: var(--f-display); font-stretch: 116%; font-weight: 640; font-size: 58px; line-height: 1; letter-spacing: -.03em; }
.res span { font-size: 15px; color: var(--paper-ink-2); line-height: 1.45; }
.res-note { grid-column: 1 / -1; font-size: 13.5px; color: var(--paper-ink-2); margin-top: 14px; }

/* screens: one large view, numbered tabs */
.shots { display: grid; gap: 18px; margin-top: 8px; }
.shots-view { display: grid; }
.shot { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.shot.is-on { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.shot .mscreen { box-shadow: 0 30px 60px -32px rgba(18, 24, 29, .55), 0 0 0 1px rgba(18, 24, 29, .12); }
.shots-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.shot-tab { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid rgba(18, 24, 29, .16); border-radius: 9px; background: var(--paper-hi); color: var(--paper-ink-2); font-size: 14px; line-height: 1.3; text-align: left; transition: border-color .3s, color .3s; }
.shot-tab .mono { font-size: 10px; }
.shot-tab:hover { color: var(--paper-ink); }
.shot-tab.is-on { color: var(--paper-ink); border-color: var(--paper-ink); box-shadow: inset 0 -2px 0 var(--paper-ink); }
.shot-cap { font-size: 14px; color: var(--paper-ink-2); }
.shots-hint { display: none; }
.results.r-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* NDA lock tag */
.nda { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 2px 7px 2px 6px; border: 1px solid rgba(244, 166, 42, .45); border-radius: 6px; background: rgba(244, 166, 42, .08); font-family: var(--f-mono); font-size: 9.5px; font-weight: 400; font-stretch: 100%; letter-spacing: .06em; color: var(--marigold); vertical-align: 3px; line-height: 1.5; white-space: nowrap; }
.nda svg { width: 9px; height: 10.5px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.nda-hero { margin-left: 14px; vertical-align: 0; }
/* the same lock on the thumbnail corner */
.thumb-nda { position: relative; display: block; }
.thumb-nda .nda { position: absolute; top: 8px; right: 8px; margin: 0; z-index: 2; background: rgba(10, 13, 16, .82); border-color: rgba(244, 166, 42, .6); }

/* diagram (rendered by diagram.js) */
.diagram { margin: 30px 0 0; padding: 34px 30px 24px; background: var(--paper-hi); border: 1px solid rgba(18, 24, 29, .14); border-radius: 12px; }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram figcaption { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(18, 24, 29, .1); }
.dg-hint { color: var(--paper-ink-2); font-size: 10.5px; }
.dg-legend { display: flex; gap: 22px; font-size: 10.5px; color: var(--paper-ink-2); }
.dg-legend li::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; border: 1.4px solid var(--paper-ink); }
.dg-legend .k-in::before { border-style: dashed; }
.dg-legend .k-ai::before { border-color: var(--cyan-ink); background: rgba(23, 128, 143, .14); }
.dg-legend .k-human::before { border-color: var(--marigold-ink); background: rgba(244, 166, 42, .25); }
.dg-legend .k-out::before { background: var(--paper-ink); }
.dg-node rect { fill: #fff; stroke: var(--paper-ink); stroke-width: 1.3; transition: opacity .5s, fill .5s; }
.dg-node.k-in rect { stroke-dasharray: 4 3; fill: var(--paper-hi); }
.dg-node.k-ai rect { stroke: var(--cyan-ink); fill: #E2F3F5; }
.dg-node.k-human rect { stroke: var(--marigold-ink); fill: #FCEBCF; }
.dg-node.k-out rect { fill: var(--paper-ink); }
.dg-node text { font-family: var(--f-body); fill: var(--paper-ink); }
.dg-node .t1 { font-size: 14.5px; font-weight: 600; }
.dg-node .t2 { font-size: 11.5px; fill: var(--paper-ink-2); }
.dg-node.k-out .t1 { fill: var(--paper); } .dg-node.k-out .t2 { fill: rgba(228, 232, 234, .7); }
.dg-node .tag { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .06em; fill: var(--paper-ink-2); }
.dg-node.k-ai .tag { fill: var(--cyan-ink); } .dg-node.k-human .tag { fill: var(--marigold-ink); }
.dg-node { opacity: .22; transition: opacity .6s; }
.dg-node.is-lit { opacity: 1; }
.dg-edge { fill: none; stroke: var(--paper-ink); stroke-width: 1.3; opacity: .85; }
.dg-edge-bg { fill: none; stroke: rgba(18, 24, 29, .14); stroke-width: 1.3; stroke-dasharray: 2 4; }
.dg-pulse { fill: var(--paper-ink); }
.dg-pulse.k-ai { fill: var(--cyan-ink); } .dg-pulse.k-human { fill: var(--marigold-ink); }

.next { padding: 0; border-top: 1px solid var(--hair); }
.next-link { display: grid; gap: 12px; padding: 90px 0; }
.next-title { font-size: clamp(36px, 4vw, 60px); line-height: 1.05; display: inline-flex; align-items: center; gap: 22px; }
.next-title .arr { width: 40px; height: 40px; stroke-width: 1.2; }
.next-link .mono { color: var(--chalk-3); }

/* ---------------------------------------------------------------- mock app screens (sized by container width) */
.mscreen { container-type: inline-size; contain: strict; aspect-ratio: 16 / 10.4; border-radius: 10px; overflow: hidden; background: var(--b-bg); color: var(--b-ink); display: grid; grid-template-rows: 7.5% 1fr; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.mscreen.is-big { border-radius: 14px; }
.mscreen i { display: block; font-style: normal; }
.ms-top { display: flex; align-items: center; gap: 3cqw; padding: 0 3cqw; border-bottom: 1px solid color-mix(in srgb, var(--b-ink) 10%, transparent); }
.ms-dots { display: flex; gap: .9cqw; }
.ms-dots i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: color-mix(in srgb, var(--b-ink) 22%, transparent); }
.ms-name { font: 600 2.3cqw/1 var(--f-body); letter-spacing: -.01em; }
.ms-name::before { content: ''; display: inline-block; width: 1.6cqw; height: 1.6cqw; border-radius: .5cqw; background: var(--b-accent); margin-right: 1.2cqw; vertical-align: -.2cqw; }
.ms-body { display: grid; grid-template-columns: 17% minmax(0, 1fr); min-height: 0; }
.ms-side { padding: 3cqw 2.4cqw; display: grid; gap: 2cqw; align-content: start; border-right: 1px solid color-mix(in srgb, var(--b-ink) 8%, transparent); background: color-mix(in srgb, var(--b-panel) 60%, transparent); }
.ms-nav { height: 1.5cqw; border-radius: 1cqw; width: var(--w); background: color-mix(in srgb, var(--b-ink) 14%, transparent); }
.ms-nav:first-child { background: var(--b-accent); opacity: .85; }
.ms-main { padding: 3.2cqw; display: grid; gap: 2cqw; align-content: start; min-height: 0; overflow: hidden; }
.ms-bar { height: 1.5cqw; border-radius: 1cqw; width: var(--w); background: color-mix(in srgb, var(--b-ink) 13%, transparent); }
.ms-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqw; }
.ms-kpis b { background: var(--b-panel); border-radius: 1.4cqw; padding: 2cqw; display: grid; gap: .8cqw; box-shadow: 0 0 0 1px color-mix(in srgb, var(--b-ink) 7%, transparent); }
.ms-kpis em { font: 500 1.7cqw/1 var(--f-body); font-style: normal; opacity: .6; }
.ms-kpis strong { font: 650 4.2cqw/1 var(--f-display); font-stretch: 110%; letter-spacing: -.02em; }
.ms-kpis b:first-child strong { color: var(--b-accent); }
.ms-chart { height: 14cqw; background: var(--b-panel); border-radius: 1.4cqw; padding: 1.6cqw; box-shadow: 0 0 0 1px color-mix(in srgb, var(--b-ink) 7%, transparent); }
.ms-chart svg { width: 100%; height: 100%; }
.ms-chart path { fill: none; stroke: var(--b-accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ms-head, .ms-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 2cqw; align-items: center; padding: 1.5cqw 1.6cqw; border-radius: 1cqw; }
.ms-head i { height: 1.1cqw; border-radius: 1cqw; background: color-mix(in srgb, var(--b-ink) 28%, transparent); width: 60%; }
.ms-row { background: var(--b-panel); box-shadow: 0 0 0 1px color-mix(in srgb, var(--b-ink) 6%, transparent); }
.ms-row i { height: 1.3cqw; border-radius: 1cqw; background: color-mix(in srgb, var(--b-ink) 15%, transparent); }
.ms-row i:nth-child(2) { width: 80%; }
.ms-row .ms-chip { height: 2.4cqw; border-radius: 2cqw; background: var(--b-soft); width: 80%; }
.ms-row.is-flag .ms-chip { background: var(--b-accent); }
.ms-detail { display: grid; gap: 2.2cqw; }
.ms-big { background: var(--b-panel); border-radius: 1.6cqw; padding: 2.6cqw; display: grid; gap: 1cqw; box-shadow: 0 0 0 1px color-mix(in srgb, var(--b-ink) 7%, transparent); }
.ms-big em { font: 500 1.8cqw/1 var(--f-body); font-style: normal; opacity: .6; }
.ms-big strong { font: 650 6.4cqw/1 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; color: var(--b-accent); }
.ms-actions { display: flex; gap: 1.6cqw; margin-top: 1cqw; }
.ms-btn { height: 4.6cqw; width: 18cqw; border-radius: 1.2cqw; background: var(--b-accent); }
.ms-btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b-ink) 30%, transparent); }
.ms-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8cqw; }
.ms-col { display: grid; gap: 1.4cqw; align-content: start; background: color-mix(in srgb, var(--b-panel) 70%, transparent); border-radius: 1.4cqw; padding: 1.4cqw; }
.ms-colh { height: 1.3cqw; width: 55%; border-radius: 1cqw; background: color-mix(in srgb, var(--b-ink) 30%, transparent); margin-bottom: .6cqw; }
.ms-card { height: 8cqw; border-radius: 1.2cqw; background: var(--b-panel); box-shadow: 0 0 0 1px color-mix(in srgb, var(--b-ink) 10%, transparent); position: relative; }
.ms-card::before { content: ''; position: absolute; left: 1.4cqw; top: 1.6cqw; width: 60%; height: 1.2cqw; border-radius: 1cqw; background: color-mix(in srgb, var(--b-ink) 18%, transparent); }
.ms-card::after { content: ''; position: absolute; left: 1.4cqw; bottom: 1.6cqw; width: 30%; height: 1.8cqw; border-radius: 1cqw; background: var(--b-soft); }
.ms-col:nth-child(2) .ms-card:first-of-type::after, .ms-card.hl::after { background: var(--b-accent); }
.ms-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.4cqw; }
.ms-doc { background: var(--b-panel); border-radius: 1.4cqw; padding: 2.4cqw; display: grid; gap: 1.6cqw; align-content: start; box-shadow: 0 0 0 1px color-mix(in srgb, var(--b-ink) 7%, transparent); }
.ms-doc .ms-bar:nth-child(3), .ms-doc .ms-bar:nth-child(6) { background: color-mix(in srgb, var(--b-accent) 55%, transparent); }
.ms-out { display: grid; gap: 1.6cqw; align-content: start; }
.ms-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1cqw; }
.ms-cal i { aspect-ratio: 1.15; border-radius: 1cqw; background: var(--b-panel); box-shadow: 0 0 0 1px color-mix(in srgb, var(--b-ink) 7%, transparent); }
.ms-cal i.on { background: var(--b-soft); box-shadow: inset 0 -1.2cqw 0 var(--b-accent); }
.ms-player { display: grid; gap: 1.8cqw; }
.ms-frame { aspect-ratio: 16 / 7; border-radius: 1.4cqw; background: linear-gradient(135deg, color-mix(in srgb, var(--b-accent) 30%, var(--b-panel)), var(--b-panel) 60%); display: grid; place-items: center; }
.ms-frame span { font: 600 3.4cqw/1 var(--f-tamil); letter-spacing: .02em; opacity: .9; }
.ms-track { display: flex; gap: .7cqw; }
.ms-track i { height: 3.4cqw; flex: var(--w); border-radius: .8cqw; background: var(--b-soft); }
.ms-track i:nth-child(3n) { background: var(--b-accent); opacity: .8; }
.ms-wave { height: 5cqw; background: repeating-linear-gradient(90deg, var(--b-accent) 0 .4cqw, transparent .4cqw 1.1cqw); mask: linear-gradient(transparent 0, #000 20%, #000 80%, transparent); opacity: .5; border-radius: 1cqw; }
.ms-chat { display: grid; gap: 1.8cqw; }
.ms-chat i { height: 6cqw; width: var(--w); border-radius: 2cqw; background: var(--b-panel); box-shadow: 0 0 0 1px color-mix(in srgb, var(--b-ink) 9%, transparent); }
.ms-chat i.out { justify-self: end; background: var(--b-soft); box-shadow: none; }
.ms-chat i.hl { background: var(--b-accent); }

/* ---------------------------------------------------------------- readable app screens (src/screens.mjs)
   Sized in cqw so a screen scales like a picture. Brand vars: --b-bg/panel/ink/accent/soft/on/font/r. */
.ap { --line: color-mix(in srgb, var(--b-ink) 10%, transparent); --mute: color-mix(in srgb, var(--b-ink) 58%, transparent); --tint: color-mix(in srgb, var(--b-ink) 4.5%, transparent);
  --rad: calc(.9cqw * var(--b-r)); font-family: var(--b-font); line-height: 1.3; grid-template-rows: 6.6% minmax(0, 1fr); letter-spacing: -.003em; text-align: left; }
.ap > * { font-size: 1.36cqw; } /* cqw on the container itself would resolve against the viewport */
.ap b, .ap strong { font-weight: 640; }
.ap small, .ap em { font-style: normal; }
.ap p { margin: 0; }
.ap-light { --ok-bg: #DDF3E4; --ok: #1E7A3D; --warn-bg: #FCEED3; --warn: #94570A; --bad-bg: #FADFDC; --bad: #B42318; --info-bg: #DEE8FA; --info: #1F4FC4; }
.ap-dark { --ok-bg: rgba(64, 196, 110, .17); --ok: #79E3A2; --warn-bg: rgba(245, 170, 50, .17); --warn: #F6C76E; --bad-bg: rgba(240, 90, 90, .18); --bad: #F6A3A3; --info-bg: rgba(90, 145, 255, .18); --info: #A4C0FF; }

.ap-top { display: flex; align-items: center; gap: 2.4cqw; padding: 0 1.8cqw 0 2.2cqw; border-bottom: 1px solid var(--line); background: var(--b-panel); min-width: 0; }
.ap-logo { font-weight: 700; font-size: 1.5cqw; display: inline-flex; align-items: center; gap: .8cqw; white-space: nowrap; letter-spacing: -.01em; }
.ap-logo::before { content: ''; width: 1.7cqw; height: 1.7cqw; border-radius: calc(.45cqw * var(--b-r)); background: var(--b-accent); flex: none; }
.ap-logo.mk-circle::before { border-radius: 50%; }
.ap-logo.mk-ring::before { border-radius: 50%; background: none; box-shadow: inset 0 0 0 .42cqw var(--b-accent); }
.ap-logo.mk-bar::before { width: .55cqw; height: 2cqw; border-radius: .3cqw; }
.ap-logo.mk-diamond::before { width: 1.3cqw; height: 1.3cqw; transform: rotate(45deg); border-radius: .25cqw; }
.ap-menu { display: flex; gap: .4cqw; min-width: 0; overflow: hidden; }
.ap-menu i { padding: .55cqw 1cqw; border-radius: var(--rad); color: var(--mute); white-space: nowrap; font-size: 1.22cqw; }
.ap-menu i.on { color: var(--b-ink); background: var(--tint); font-weight: 600; box-shadow: inset 0 -.22cqw 0 var(--b-accent); border-radius: var(--rad) var(--rad) 0 0; }
.ap-topr { margin-left: auto; display: flex; align-items: center; gap: 1.2cqw; }
.ap-search { display: inline-flex; align-items: center; gap: .7cqw; width: 15cqw; padding: .55cqw 1cqw; border-radius: var(--rad); background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); color: var(--mute); font-size: 1.12cqw; }
.ap-search::before { content: ''; width: .95cqw; height: .95cqw; border-radius: 50%; box-shadow: inset 0 0 0 .17cqw currentColor; }
.ap-av { display: inline-grid; place-items: center; width: 2.35cqw; height: 2.35cqw; border-radius: 50%; font-size: .92cqw; font-weight: 700; flex: none; color: #fff; letter-spacing: 0; }
.av-0 { background: #6D7FD6; } .av-1 { background: #D4806A; } .av-2 { background: #4E9F8C; } .av-3 { background: #B2779C; } .av-4 { background: color-mix(in srgb, var(--b-accent) 80%, #333); }

.ap-body { display: grid; grid-template-columns: 16.5% minmax(0, 1fr); min-height: 0; contain: strict; }
/* layout boundaries: without them the nested grids measure each other over and over (seconds of layout) */
.ap-top, .ap-side, .ap-main { contain: strict; }
.nav-top .ap-body { grid-template-columns: minmax(0, 1fr); }
.ap-side { display: grid; gap: .35cqw; align-content: start; padding: 1.8cqw 1.2cqw; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--b-panel) 55%, transparent); }
.ap-side i { padding: .7cqw 1cqw; border-radius: var(--rad); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.24cqw; display: flex; align-items: center; gap: .8cqw; }
.ap-side i::before { content: ''; width: .9cqw; height: .9cqw; border-radius: calc(.3cqw * var(--b-r)); box-shadow: inset 0 0 0 .16cqw currentColor; opacity: .7; flex: none; }
.ap-side i.on { background: color-mix(in srgb, var(--b-accent) 13%, transparent); color: var(--b-ink); font-weight: 600; }
.ap-side i.on::before { background: var(--b-accent); box-shadow: none; opacity: 1; }
.has-side-bg .ap-side { background: var(--b-side); border-right: 0; }
.has-side-bg .ap-side i { color: color-mix(in srgb, var(--b-side-ink, #fff) 66%, transparent); }
.has-side-bg .ap-side i.on { color: var(--b-side-ink, #fff); background: color-mix(in srgb, var(--b-side-ink, #fff) 14%, transparent); }

.ap-main { padding: 2cqw 2.4cqw; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.5cqw; min-height: 0; min-width: 0; overflow: hidden; }
.ap-content { display: grid; gap: 1.4cqw; align-content: start; min-height: 0; min-width: 0; }
.ap-content.v-dash { grid-template-rows: auto minmax(0, 1fr) auto; align-content: stretch; }
.v-dash > .ap-row { align-items: stretch; }
.v-dash .ap-chart { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.v-dash .ap-chart svg { height: 100%; min-height: 9cqw; }
.ap-tools { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; }
.ap-tabs { display: flex; gap: .5cqw; padding: .35cqw; border-radius: calc(var(--rad) * 1.2); background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.ap-tabs i { padding: .45cqw 1cqw; border-radius: var(--rad); font-size: 1.1cqw; color: var(--mute); white-space: nowrap; }
.ap-tabs i.on { background: var(--b-panel); color: var(--b-ink); font-weight: 620; box-shadow: 0 0 0 1px var(--line), 0 .2cqw .5cqw -.2cqw rgba(0, 0, 0, .2); }
.ap-head { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; }
.ap-title { font-size: 2.05cqw; letter-spacing: -.015em; font-weight: 680; }
.ap-2l { display: block; min-width: 0; }
.ap-2l > * { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-2l > small { margin-top: .25cqw; }
.ap-2l small { font-size: 1.06cqw; color: var(--mute); }
.ap-btn { display: inline-flex; align-items: center; padding: .65cqw 1.35cqw; border-radius: var(--rad); background: var(--b-accent); color: var(--b-on); font-weight: 620; font-size: 1.18cqw; white-space: nowrap; }
.ap-btn.ghost { background: transparent; color: var(--b-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b-ink) 25%, transparent); }
.ap-actions { display: flex; gap: 1cqw; flex-wrap: wrap; }

.ap-card { background: var(--b-panel); border-radius: var(--rad); box-shadow: 0 0 0 1px var(--line); padding: 1.3cqw 1.4cqw; min-width: 0; }
.ap-cardh { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; margin-bottom: 1cqw; font-size: 1.28cqw; }
.ap-row { display: grid; gap: 1.4cqw; min-height: 0; }
.ap-row.r-2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.ap-meta { color: var(--mute); font-size: 1.02cqw; white-space: nowrap; }

.ap-chip { display: inline-block; padding: .28cqw .85cqw; border-radius: calc(.4cqw + 1cqw * var(--b-r)); font-size: 1.02cqw; font-weight: 620; white-space: nowrap; background: var(--tint); color: color-mix(in srgb, var(--b-ink) 72%, transparent); line-height: 1.35; }
.ap-chip.t-ok { background: var(--ok-bg); color: var(--ok); }
.ap-chip.t-warn { background: var(--warn-bg); color: var(--warn); }
.ap-chip.t-bad { background: var(--bad-bg); color: var(--bad); }
.ap-chip.t-info { background: var(--info-bg); color: var(--info); }
.ap-chip.t-a { background: color-mix(in srgb, var(--b-accent) 16%, transparent); color: color-mix(in srgb, var(--b-accent) 80%, var(--b-ink)); }
.ap-meter { display: inline-flex; align-items: center; gap: .8cqw; width: 100%; }
.ap-meter i { display: block; height: .7cqw; flex: 1; max-width: 7cqw; border-radius: 1cqw; background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.ap-meter i { background: linear-gradient(var(--b-accent), var(--b-accent)) 0 0 / var(--w, 0) 100% no-repeat, var(--tint); }
.ap-meter em { font-size: 1.05cqw; color: var(--mute); }

/* table */
.ap-table { background: var(--b-panel); border-radius: var(--rad); box-shadow: 0 0 0 1px var(--line); overflow: hidden; min-width: 0; }
.ap-tr { display: grid; grid-template-columns: var(--cols); gap: 1.2cqw; align-items: center; padding: .85cqw 1.4cqw; border-top: 1px solid var(--line); min-height: 3.5cqw; }
.ap-tr > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-tr > span.r { text-align: right; justify-self: end; }
.ap-th { border-top: 0; background: var(--tint); min-height: 0; padding-block: .75cqw; font-size: 1.02cqw; font-weight: 620; color: var(--mute); text-transform: uppercase; letter-spacing: .035em; }
.ap-tr.hl { background: color-mix(in srgb, var(--b-accent) 8%, transparent); box-shadow: inset .3cqw 0 0 var(--b-accent); }
.ap-tfoot { display: flex; justify-content: space-between; align-items: center; font-size: 1.05cqw; color: var(--mute); padding: 0 .4cqw; }
.ap-pager { display: flex; gap: .4cqw; }
.ap-pager i { padding: .3cqw .75cqw; border-radius: var(--rad); box-shadow: inset 0 0 0 1px var(--line); background: var(--b-panel); }
.ap-pager i.on { background: var(--b-accent); color: var(--b-on); box-shadow: none; }
.ap-who { display: inline-flex; align-items: center; gap: .8cqw; min-width: 0; }
.ap-who .ap-av { width: 2cqw; height: 2cqw; font-size: .8cqw; }

/* dash */
.ap-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3cqw; }
.ap-kpis.k-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ap-kpis.k-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ap-kpi > * { display: block; }
.ap-kpi > * + * { margin-top: .45cqw; }
.ap-kpi em { font-size: 1.1cqw; color: var(--mute); }
.ap-kpi strong { font-size: 2.6cqw; letter-spacing: -.025em; line-height: 1.05; }
.ap-kpi small { font-size: 1cqw; font-weight: 600; }
.ap-kpi small.t-ok { color: var(--ok); } .ap-kpi small.t-bad { color: var(--bad); } .ap-kpi small.t-warn { color: var(--warn); } .ap-kpi small.t-n { color: var(--mute); }
.ap-chart svg { width: 100%; height: 10.5cqw; overflow: visible; }
.ap-chart line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ap-chart .l1 { fill: none; stroke: var(--b-accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ap-chart .l2 { fill: none; stroke: color-mix(in srgb, var(--b-ink) 35%, transparent); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ap-chart .area { fill: color-mix(in srgb, var(--b-accent) 12%, transparent); }
.ap-chart rect { fill: color-mix(in srgb, var(--b-accent) 55%, transparent); }
.ap-chart rect.hi { fill: var(--b-accent); }
.ap-xl { display: flex; justify-content: space-between; margin-top: .7cqw; font-size: .98cqw; color: var(--mute); }
.ap-legend { display: flex; gap: 1.2cqw; font-size: 1cqw; color: var(--mute); font-weight: 400; }
.ap-legend i::before { content: ''; display: inline-block; width: 1.4cqw; height: .25cqw; margin-right: .5cqw; vertical-align: .25cqw; background: var(--b-accent); }
.ap-legend i.lg1::before { background: color-mix(in srgb, var(--b-ink) 35%, transparent); }

/* lists, fields, steps */
.ap-items li { display: flex; align-items: center; gap: 1cqw; padding: .8cqw .2cqw; border-top: 1px solid var(--line); min-width: 0; }
.ap-items li:first-child { border-top: 0; }
.ap-items li .ap-2l { flex: 1; }
.ap-items li.on { background: color-mix(in srgb, var(--b-accent) 10%, transparent); border-radius: var(--rad); padding-inline: .9cqw; box-shadow: inset .28cqw 0 0 var(--b-accent); border-top-color: transparent; }
.ap-items li.on + li { border-top-color: transparent; }
.ap-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1cqw 1.6cqw; margin: 0; }
.ap-fields div { min-width: 0; }
.ap-fields dd { margin-top: .3cqw !important; }
.ap-fields dt { font-size: 1cqw; color: var(--mute); }
.ap-fields dd { margin: 0; font-size: 1.26cqw; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-steps { display: grid; }
.ap-steps li { display: grid; grid-template-columns: 1.7cqw minmax(0, 1fr) auto; gap: 1cqw; align-items: start; padding-bottom: 1.15cqw; position: relative; }
.ap-steps li:not(:last-child)::before { content: ''; position: absolute; left: .82cqw; top: 1.8cqw; bottom: .1cqw; width: 1px; background: var(--line); }
.ap-steps li > i { width: 1.7cqw; height: 1.7cqw; border-radius: 50%; box-shadow: inset 0 0 0 .17cqw color-mix(in srgb, var(--b-ink) 30%, transparent); position: relative; }
.ap-steps li > i::after { content: ''; position: absolute; inset: .5cqw; border-radius: 50%; }
.ap-steps .t-ok > i { background: var(--ok-bg); box-shadow: inset 0 0 0 .17cqw var(--ok); } .ap-steps .t-ok > i::after { background: var(--ok); }
.ap-steps .t-warn > i { background: var(--warn-bg); box-shadow: inset 0 0 0 .17cqw var(--warn); } .ap-steps .t-warn > i::after { background: var(--warn); }
.ap-steps .t-bad > i { background: var(--bad-bg); box-shadow: inset 0 0 0 .17cqw var(--bad); } .ap-steps .t-bad > i::after { background: var(--bad); }
.ap-steps .t-a > i { box-shadow: inset 0 0 0 .17cqw var(--b-accent); } .ap-steps .t-a > i::after { background: var(--b-accent); }
.ap-steps .ap-2l small { white-space: normal; }

/* detail */
.ap-row.r-detail { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.ap-rec { display: grid; gap: 1.5cqw; }
.ap-rech { display: flex; align-items: center; gap: 1.1cqw; }
.ap-rech .ap-2l { flex: 1; }
.ap-rech .ap-2l b { font-size: 1.6cqw; }
.ap-big { display: grid; gap: .35cqw; padding: 1.2cqw 1.3cqw; border-radius: var(--rad); background: color-mix(in srgb, var(--b-accent) 8%, transparent); }
.ap-big em { font-size: 1.08cqw; color: var(--mute); }
.ap-big strong { font-size: 3.3cqw; color: var(--b-accent); letter-spacing: -.03em; line-height: 1; }
.ap-big small { font-size: 1.04cqw; color: var(--mute); }

/* board */
.ap-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2cqw; align-items: start; }
.ap-board.c-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ap-board.c-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ap-col { display: grid; gap: .9cqw; padding: 1cqw; border-radius: calc(var(--rad) * 1.2); background: var(--tint); }
.ap-colh { display: flex; justify-content: space-between; align-items: center; font-size: 1.15cqw; padding: 0 .2cqw .2cqw; }
.ap-colh span { font-size: .95cqw; color: var(--mute); background: var(--b-panel); border-radius: 1cqw; padding: .1cqw .6cqw; box-shadow: 0 0 0 1px var(--line); }
.ap-kard { display: grid; gap: .5cqw; padding: 1cqw 1.1cqw; }
.ap-kard b { font-size: 1.2cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-kard small { font-size: 1cqw; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-kfoot { display: flex; justify-content: space-between; align-items: center; margin-top: .3cqw; }
.ap-kfoot .ap-av { width: 1.9cqw; height: 1.9cqw; font-size: .75cqw; }
.ap-kard.hl { box-shadow: 0 0 0 .16cqw var(--b-accent), 0 1cqw 2cqw -1.2cqw rgba(0, 0, 0, .35); }

/* chat */
.ap-chat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.3cqw; min-height: 0; }
.ap-chat.has-side { grid-template-columns: minmax(0, 1fr) 31%; }
.ap-chat.has-list.has-side { grid-template-columns: 25% minmax(0, 1fr) 28%; }
.ap-chat.has-list:not(.has-side) { grid-template-columns: 30% minmax(0, 1fr); }
.ap-convs { background: var(--b-panel); border-radius: var(--rad); box-shadow: 0 0 0 1px var(--line); padding: .6cqw 1cqw; align-self: start; }
.ap-thread { background: var(--b-panel); border-radius: var(--rad); box-shadow: 0 0 0 1px var(--line); display: grid; align-content: start; overflow: hidden; }
.ap-threadh { display: flex; align-items: center; gap: 1cqw; padding: 1cqw 1.3cqw; border-bottom: 1px solid var(--line); }
.ap-threadh .ap-2l { flex: 1; }
.ap-msgs { display: flex; flex-direction: column; gap: .85cqw; padding: 1.3cqw; }
.ap-msg { max-width: 76%; padding: .75cqw 1.1cqw; border-radius: calc(1.1cqw * var(--b-r)); background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); align-self: flex-start; display: grid; gap: .3cqw; }
.ap-msg p { font-size: 1.17cqw; line-height: 1.35; }
.ap-msg small { font-size: .88cqw; color: var(--mute); justify-self: end; }
.ap-msg.m-out { align-self: flex-end; background: var(--b-accent); color: var(--b-on); box-shadow: none; }
.ap-msg.m-out small { color: color-mix(in srgb, var(--b-on) 70%, transparent); }
.ap-msg.m-bot { align-self: flex-end; background: var(--b-soft); box-shadow: none; }
.ap-msg.m-note { align-self: center; background: none; box-shadow: none; padding: .1cqw; max-width: 90%; }
.ap-msg.m-note p { font-size: 1cqw; color: var(--mute); text-align: center; }
.ap-auto { font-size: .82cqw; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: color-mix(in srgb, var(--b-accent) 75%, var(--b-ink)); }
.ap-cside { align-self: start; }
.ap-cside .ap-fields { grid-template-columns: minmax(0, 1fr); gap: .9cqw; }

/* calendar */
.ap-cal { display: grid; grid-template-columns: 4.4cqw repeat(var(--days), minmax(0, 1fr)); grid-template-rows: 2.6cqw repeat(var(--hours), 4cqw); background: var(--b-panel); border-radius: var(--rad); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.ap-day { grid-row: 1; display: grid; place-items: center; font-size: 1.08cqw; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--tint); }
.ap-hr { grid-column: 1; font-size: .95cqw; color: var(--mute); padding: .4cqw .6cqw; text-align: right; }
.ap-cal > i { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.ap-ev { z-index: 1; margin: .25cqw; padding: .45cqw .7cqw; border-radius: calc(.55cqw * var(--b-r)); background: color-mix(in srgb, var(--b-accent) 16%, var(--b-panel)); box-shadow: inset .3cqw 0 0 var(--b-accent); display: grid; align-content: start; gap: .15cqw; overflow: hidden; }
.ap-ev b { font-size: 1.02cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-ev small { font-size: .88cqw; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-ev.t-ok { background: var(--ok-bg); box-shadow: inset .3cqw 0 0 var(--ok); }
.ap-ev.t-warn { background: var(--warn-bg); box-shadow: inset .3cqw 0 0 var(--warn); }
.ap-ev.t-bad { background: var(--bad-bg); box-shadow: inset .3cqw 0 0 var(--bad); }
.ap-ev.t-info { background: var(--info-bg); box-shadow: inset .3cqw 0 0 var(--info); }
.ap-ev.t-n { background: var(--tint); box-shadow: inset .3cqw 0 0 color-mix(in srgb, var(--b-ink) 30%, transparent); }

/* split: source and generated output */
.ap-row.r-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.ap-src { display: grid; gap: 1.1cqw; }
.ap-src .ap-cardh { margin: 0; }
.ap-lines { display: grid; gap: .65cqw; }
.ap-lines p { font-size: 1.15cqw; line-height: 1.45; color: color-mix(in srgb, var(--b-ink) 80%, transparent); }
.ap-lines p.hl { background: color-mix(in srgb, var(--b-accent) 15%, transparent); border-radius: calc(.4cqw * var(--b-r)); padding: .3cqw .6cqw; margin-inline: -.6cqw; color: var(--b-ink); }
.ap-ts { font-family: var(--f-mono); font-size: .9cqw; color: var(--mute); margin-right: .9cqw; }
.ap-out { display: grid; gap: 1cqw; align-content: start; }
.ap-outh { display: flex; justify-content: space-between; align-items: center; font-size: 1.28cqw; }
.ap-ocard { display: grid; gap: .6cqw; }
.ap-ocardh { display: flex; justify-content: space-between; align-items: center; gap: 1cqw; font-size: 1.22cqw; }
.ap-ocard p { font-size: 1.12cqw; line-height: 1.45; color: color-mix(in srgb, var(--b-ink) 78%, transparent); }
.ap-ocard.hl { box-shadow: 0 0 0 .16cqw var(--b-accent); }

/* list + detail */
.ap-row.r-ld { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); align-items: start; }
.ap-ldlist { padding: 1.1cqw 1.1cqw .6cqw; }
.ap-lddet { display: grid; gap: 1.4cqw; }
.ap-score { display: flex; align-items: center; gap: 1.3cqw; padding: 1cqw 1.2cqw; border-radius: var(--rad); background: var(--tint); }
.ap-score .ap-2l b { font-size: 1.3cqw; }
.ap-ring { width: 5.2cqw; height: 5.2cqw; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, var(--b-panel) 76%, transparent 78%), conic-gradient(var(--b-accent) calc(var(--p) * 1%), color-mix(in srgb, var(--b-ink) 10%, transparent) 0); flex: none; }
.ap-ring b { font-size: 1.6cqw; }
.ap-notes { display: grid; gap: .6cqw; }
.ap-notes p { font-size: 1.12cqw; line-height: 1.45; color: color-mix(in srgb, var(--b-ink) 80%, transparent); padding-left: 1.2cqw; position: relative; }
.ap-notes p::before { content: ''; position: absolute; left: 0; top: .65cqw; width: .45cqw; height: .45cqw; border-radius: 50%; background: var(--b-accent); }

/* phone */
.ap-phonewrap { display: grid; grid-template-columns: 27cqw minmax(0, 1fr); gap: 2.4cqw; align-items: start; }
.ap-phone { height: 47cqw; border-radius: 3cqw; box-shadow: 0 0 0 .55cqw color-mix(in srgb, var(--b-ink) 85%, #000), 0 2cqw 4cqw -2cqw rgba(0, 0, 0, .45); background: var(--b-bg); overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; margin: .6cqw; }
.ap-phoneh { display: flex; align-items: center; gap: .9cqw; padding: 1.6cqw 1.3cqw 1cqw; background: var(--b-accent); color: var(--b-on); }
.ap-phoneh small { color: color-mix(in srgb, var(--b-on) 75%, transparent) !important; }
.ap-phone .ap-msgs { padding: 1.1cqw; gap: .7cqw; background: var(--b-soft); overflow: hidden; }
.ap-phone .ap-msg { max-width: 86%; background: var(--b-panel); box-shadow: none; padding: .6cqw .9cqw; }
.ap-phone .ap-msg p { font-size: 1.04cqw; }
.ap-phone .ap-msg.m-out, .ap-phone .ap-msg.m-bot { background: color-mix(in srgb, var(--b-accent) 20%, var(--b-panel)); color: var(--b-ink); }
.ap-phone .ap-msg.m-out small, .ap-phone .ap-msg.m-bot small { color: var(--mute); }
.ap-quick { display: flex; flex-wrap: wrap; gap: .5cqw; padding: .9cqw; background: var(--b-soft); }
.ap-quick i { font-size: .95cqw; padding: .35cqw .8cqw; border-radius: 2cqw; box-shadow: inset 0 0 0 1px var(--b-accent); color: color-mix(in srgb, var(--b-accent) 80%, var(--b-ink)); background: var(--b-panel); }
.ap-pside { display: grid; gap: 1.3cqw; }

/* document + approvals */
.ap-row.r-doc { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
.ap-paper { background: #FFFFFF; color: #1E2328; border-radius: calc(.4cqw * var(--b-r)); padding: 2cqw 2.4cqw; box-shadow: 0 0 0 1px var(--line), 0 1.5cqw 3cqw -2cqw rgba(0, 0, 0, .4); display: grid; gap: 1.4cqw; --mute: #6B737A; --line: rgba(30, 35, 40, .1); }
.ap-paperh { display: grid; gap: .3cqw; padding-bottom: 1cqw; border-bottom: .2cqw solid var(--b-accent); }
.ap-paperh b { font-size: 1.65cqw; }
.ap-paperh small { font-size: 1cqw; color: var(--mute); }
.ap-paper .ap-lines p { color: #33393F; }
.ap-paper .ap-lines p.hl { background: color-mix(in srgb, var(--b-accent) 14%, #fff); color: #1E2328; }
.ap-docside { display: grid; gap: 1.3cqw; }

/* pipeline runs */
.ap-runs .ap-tr > span:not(:first-child):not(.r) { text-align: center; }
.ap-pill { display: inline-block; font-size: .92cqw; font-weight: 600; padding: .25cqw .7cqw; border-radius: 2cqw; background: var(--tint); color: var(--mute); }
.ap-pill.p-d { background: var(--ok-bg); color: var(--ok); }
.ap-pill.p-r { background: color-mix(in srgb, var(--b-accent) 18%, transparent); color: color-mix(in srgb, var(--b-accent) 80%, var(--b-ink)); }
.ap-pill.p-x { background: var(--bad-bg); color: var(--bad); }
.ap-pill.p-h { background: var(--warn-bg); color: var(--warn); }
.ap-pill.p-s { background: none; box-shadow: inset 0 0 0 1px var(--line); }

/* real screenshots */
.mscreen.ap-img { display: block; background: #fff; }
.ap-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ---------------------------------------------------------------- AI Films */
.films-hero { padding: 190px 0 30px; }
.films-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.films-hero .display-m { margin-top: 26px; }
.films-hero .filters { margin-top: 30px; }
.wall-stage { position: relative; padding: 50px 0 120px; perspective: 1500px; perspective-origin: 50% 40%; overflow: hidden; }
.wall { position: relative; height: 920px; pointer-events: none; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.ftile { pointer-events: auto; position: absolute; left: 50%; top: 0; width: 156px; height: 277px; margin-left: -78px; border-radius: 12px; transform-style: preserve-3d; transition: transform .55s var(--ease), opacity .6s, filter .5s; text-align: left; }
.wall.has-hover .ftile:not(.is-playing):not(.is-out) { filter: brightness(.42) saturate(.7); }
.ftile.is-playing { z-index: 2; }
.ftile.is-playing .ft-poster { box-shadow: 0 0 0 1.5px var(--marigold), 0 0 50px -10px rgba(244, 166, 42, .45), 0 50px 80px -30px #000; }
.ft-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s; z-index: 1; }
.ftile.is-playing .ft-media.is-ready { opacity: 1; }
.ftile.is-out { opacity: .1; filter: grayscale(1); pointer-events: none; }
.ft-poster { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background:
  radial-gradient(120% 60% at 50% 0%, hsl(var(--h) 60% 42% / .9), transparent 70%),
  linear-gradient(180deg, hsl(var(--h) 40% 16%), hsl(calc(var(--h) + 30) 35% 7%));
  background-size: 100% 140%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 50px -30px #000; transition: box-shadow .4s; }
.ftile:hover .ft-poster, .ftile:focus-visible .ft-poster { box-shadow: 0 0 0 1.5px var(--marigold), 0 40px 70px -30px #000; }
.ft-scene { position: absolute; inset: 0; }
.ft-scene::before, .ft-scene::after { content: ''; position: absolute; }
.ft-ads::before { left: 50%; top: 34%; width: 74px; height: 74px; margin-left: -37px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, hsl(var(--h) 80% 75%), hsl(var(--h) 60% 30%)); box-shadow: 0 0 60px hsl(var(--h) 80% 50% / .5); }
.ft-ads::after { left: 0; right: 0; top: 58%; height: 1px; background: hsl(var(--h) 60% 80% / .35); }
.ft-drama::before, .ft-drama::after { bottom: 30%; width: 40px; height: 96px; border-radius: 20px 20px 6px 6px; background: rgba(0, 0, 0, .55); box-shadow: 0 -34px 0 -6px rgba(0, 0, 0, .55); }
.ft-drama::before { left: 34%; } .ft-drama::after { left: 54%; height: 84px; }
.ft-presenter::before { left: 50%; bottom: 26%; width: 92px; height: 70px; margin-left: -46px; border-radius: 46px 46px 8px 8px; background: rgba(0, 0, 0, .5); }
.ft-presenter::after { left: 50%; bottom: calc(26% + 74px); width: 46px; height: 54px; margin-left: -23px; border-radius: 50%; background: rgba(0, 0, 0, .5); }
.ft-dub { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; font-family: var(--f-tamil); font-weight: 600; font-size: 24px; color: rgba(236, 234, 227, .85); }
.ft-dub span:nth-child(2) { font-family: var(--f-display); font-stretch: 116%; color: var(--cyan); }
.ft-dub span:nth-child(3) { color: var(--marigold); }
.ft-grain { position: absolute; inset: -50%; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 3px 3px; opacity: 0; }
.ft-play { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(10, 13, 16, .55); backdrop-filter: blur(6px); display: grid; place-items: center; }
.ft-play i { width: 0; height: 0; border-left: 8px solid var(--chalk); border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.ft-cat { position: absolute; left: 12px; top: 19px; font-size: 9.5px; color: var(--chalk); opacity: .85; transition: opacity .3s; }
.ftile.is-playing .ft-cat { opacity: 0; }
.ft-play, .ft-cat, .ft-tc { z-index: 2; }
.ft-tc { position: absolute; left: 12px; top: 19px; font-size: 9.5px; color: var(--chalk); opacity: 0; transition: opacity .3s; }
.ft-tc::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #FF5A4E; margin-right: 6px; vertical-align: 0; }
.ft-meta { z-index: 2; position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; display: grid; gap: 4px; border-radius: 0 0 12px 12px; background: linear-gradient(transparent, rgba(5, 7, 9, .9)); }
.ft-meta .mono { font-size: 9.5px; color: var(--chalk-2); }
.ft-title { font-family: var(--f-display); font-stretch: 106%; font-weight: 600; font-size: 14.5px; line-height: 1.15; letter-spacing: -.01em; }
.ftile.is-playing .ft-poster { animation: drift 7s linear infinite; }
.ftile.is-playing .ft-grain { opacity: 1; animation: grain .4s steps(3) infinite; }
.ftile.is-playing .ft-tc { opacity: 1; }
.ftile.is-playing .ft-play { opacity: 0; }
@keyframes drift { to { background-position: 0 -40%; } }
@keyframes grain { 33% { transform: translate(1px, -2px); } 66% { transform: translate(-2px, 1px); } }
.wall-note { text-align: center; color: var(--chalk-2); min-height: 18px; margin-top: 10px; }

/* ---------------------------------------------------------------- About */
.about-hero { padding: 180px 0 140px; }
.about-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 88px; align-items: start; }
.about-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; border: 1px solid var(--hair-2); position: sticky; top: 110px; box-shadow: 0 50px 90px -50px #000; }
.about-copy { display: grid; gap: 22px; }
.about-copy .display-m { margin: 6px 0 14px; max-width: 17ch; }
.about-copy > p:not(.kicker) { font-size: 19px; color: var(--chalk-2); max-width: 58ch; }
.ledger { border-top: 1px solid var(--hair-2); }
.role { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 64px; padding: 48px 0 52px; border-bottom: 1px solid var(--hair); }
.role-time { display: grid; gap: 16px; align-content: start; color: var(--chalk-2); }
.role-bar { position: relative; height: 6px; border-radius: 3px; background: var(--pulli); background-size: 8px 6px; }
.role-bar i { position: absolute; top: 0; height: 6px; border-radius: 3px; }
.rb-0 { background: var(--marigold); } .rb-1 { background: var(--cyan); } .rb-2 { background: var(--chalk-3); }
.role-body { display: grid; gap: 8px; }
.role-org { color: var(--chalk-2); }
.role-note { font-size: 14px; color: var(--chalk-3); font-style: italic; }
.role-body ul { display: grid; gap: 10px; margin-top: 14px; }
.role-body li { padding-left: 20px; position: relative; color: var(--chalk-2); font-size: 16px; max-width: 70ch; }
.role-body li::before { content: ''; position: absolute; left: 0; top: .72em; width: 9px; height: 1px; background: var(--chalk-3); }
.certs { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--hair-2); border-radius: 12px; display: grid; gap: 12px; }
.certs .mono { color: var(--chalk-3); text-transform: uppercase; letter-spacing: .08em; }
.certs ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.certs li { padding: 6px 12px 6px 12px; border-radius: 8px; background: var(--ink-3); color: var(--chalk); font-size: 14px; }
.certs li::before { display: none; }
.how-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 64px; }
.edu { display: grid; gap: 8px; margin-top: 20px; }
.edu strong { font-family: var(--f-display); font-stretch: 108%; font-weight: 600; font-size: 20px; }
.edu span { color: var(--chalk-2); font-size: 15px; }
.how .h2 { margin: 20px 0 50px; }
.how-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.how-steps::before { content: ''; position: absolute; left: 4px; right: 0; top: 4px; height: 1px; background: linear-gradient(90deg, var(--chalk-3), var(--hair)); }
.how-steps li { display: grid; gap: 10px; align-content: start; position: relative; }
.hw-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--chalk); margin-bottom: 12px; }
.how-steps li:last-child .hw-dot { background: var(--marigold); box-shadow: 0 0 10px var(--marigold); }
.how-steps strong { font-family: var(--f-display); font-stretch: 110%; font-weight: 600; font-size: 21px; }
.how-steps span:last-child { color: var(--chalk-2); font-size: 15px; }
.how-note { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hair); color: var(--chalk-2); }

/* ---------------------------------------------------------------- Logos review */
.logo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.logo-card { display: grid; gap: 16px; align-content: start; justify-items: start; }
.logo-card p { color: var(--chalk-2); font-size: 15px; }
.lc-stage, .lc-paper { width: 100%; height: 190px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--hair); }
.lc-stage { background: var(--ink-0); }
.lc-paper { background: var(--paper); --chalk: var(--paper-ink); --chalk-2: var(--paper-ink-2); color: var(--paper-ink); }
.lg-big { font-size: 22px; display: inline-flex; align-items: center; gap: 14px; }
.lg-tile .mark-tile { font-size: 26px; }
.lg-tile .mt-n, .lg-tile .mt-b { display: block; }
.lg-tile .logo-name, .lg-sys .logo-name { font-size: 20px; }
.lg-sys .mark-system { font-size: 22px; }
.lc-fav { display: flex; align-items: center; gap: 14px; color: var(--chalk-3); }
.fav { width: 32px; height: 32px; font-size: 13px; }
.mark-tile.fav { font-size: 13.5px; width: 32px; height: 32px; border-radius: 7px; }
.fav-wm { display: inline-grid; place-items: center; grid-auto-flow: column; gap: 1px; background: var(--ink-3); border-radius: 7px; font-family: var(--f-display); font-weight: 650; font-size: 15px; }
.fav-wm i { width: 4px; height: 4px; border-radius: 50%; background: var(--marigold); align-self: end; margin-bottom: 11px; }

/* ---------------------------------------------------------------- responsive
   >1100 desktop · 901-1100 small laptop / tablet landscape · 601-900 tablet · <=600 phone */
.menu-call { display: none; }
.logo-name { white-space: nowrap; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--hair-2); flex: none; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--chalk); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 16px; } .nav-toggle span:last-child { top: 24px; }
.nav.is-open .nav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .bcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .what-item { padding: 0 26px 36px; }
  .what-gl { margin: 0 -26px 16px; }
  .about-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; }
  .role, .how-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .brow { grid-template-columns: 170px minmax(0, 1fr) 28px; }
  .brow-stack { display: none; }
  .logo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-steps { grid-template-columns: repeat(3, 196px); gap: 20px; }
}

/* short laptop screens (1366x768, 1080p at 125-150% scaling): tighter hero so it fits one screen */
@media (min-width: 901px) and (max-height: 780px) {
  .hero-grid { padding: 92px 0 40px; }
  .display { font-size: clamp(46px, 4.3vw, 62px); }
  .hero-copy .kicker { margin-bottom: 22px; }
  .hero-copy .lede { margin-top: 20px; font-size: 18px; }
  .ctas { margin-top: 28px; }
  .hero-steps { margin-top: 36px; }
  .hero-legend { bottom: 44px; }
}

@media (max-width: 900px) {
  :root { --gutter: 28px; }
  body { font-size: 16px; }
  .what, .featured, .films-home, .industries, .history, .how, .bindex, .logos { padding: 100px 0; }
  .sec-head { margin-bottom: 44px; }

  /* nav: menu button opens a panel */
  .nav { gap: 14px; height: 64px; }
  .nav .logo { margin-right: auto; }
  .nav-toggle { display: block; }
  .nav nav { display: none; }
  .nav.is-open { background: var(--ink-0); border-color: var(--hair); }
  .nav.is-open nav { display: flex; flex-direction: column; gap: 0; position: fixed; top: 64px; left: 0; right: 0; padding: 8px var(--gutter) 24px; background: var(--ink-0); border-bottom: 1px solid var(--hair); margin: 0; }
  .nav.is-open nav a { font-family: var(--f-display); font-stretch: 110%; font-weight: 600; font-size: 26px; color: var(--chalk); padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .nav.is-open nav a[aria-current]::after { left: auto; right: 0; bottom: 50%; }

  /* hero stacks: copy, the 3D object, then the steps */
  .hero-stick { display: grid; height: auto; min-height: 0; padding: 112px var(--gutter) 56px; align-items: start; }
  .hero-grid { display: contents; }
  .hero-copy { order: 1; max-width: none; margin-block: 0; }
  .hero-gl { order: 2; position: relative; width: auto; height: min(76vw, 500px); margin: 12px calc(-1 * var(--gutter)) 0; }
  .hero-steps { order: 3; margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .hero-caption { order: 4; }
  .hero-legend { order: 5; position: static; margin-top: 22px; }
  .hero-stick::before { mask: radial-gradient(90% 40% at 50% 62%, #000, transparent 75%); -webkit-mask: radial-gradient(90% 40% at 50% 62%, #000, transparent 75%); }
  .display { font-size: clamp(40px, 8.4vw, 64px); }
  .ctas { flex-wrap: wrap; }

  .what-grid { grid-template-columns: minmax(0, 1fr); }
  .what-gl { height: 240px; }
  .films-home-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .reel-gl { height: 460px; }
  .ind-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sec-head-row { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* builds index: industries become chips */
  .bindex { padding-top: 40px; }
  .bindex-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .rail { position: static; }
  .rail ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .rail a { border: 1px solid var(--hair-2); border-radius: 9px; padding: 8px 12px; margin: 0; gap: 10px; font-size: 14px; }
  .rail a.is-on { border-color: var(--marigold); }

  /* build page */
  .bhero { padding: 120px 0 110px; }
  .bhero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .bhero-shot .mscreen { transform: rotateY(-8deg) rotateX(4deg); }
  .sheet { padding: 24px 32px 40px; margin-top: -60px; }
  .sheet-sec, .sheet-sec-wide { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 32px 0; }
  .sheet-label { padding-top: 0; }
  .sheet-top { flex-direction: column; gap: 6px; }
  .diagram { padding: 24px 18px 18px; }
  .diagram figcaption { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dg-legend { flex-wrap: wrap; gap: 10px 18px; }

  /* films */
  .films-hero { padding: 130px 0 10px; }
  .films-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }

  /* about */
  .about-hero { padding: 120px 0 90px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .about-photo { position: static; max-width: 420px; }
  .role, .how-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .role-bar { max-width: 420px; }
  .how-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px 24px; }
  .how-steps::before { display: none; }

  .logo-grid { grid-template-columns: minmax(0, 1fr); }
  .closing-name { height: 220px; }
  .closing-row { flex-wrap: wrap; }
  .closing-q { flex-basis: 60%; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .what, .featured, .films-home, .industries, .history, .how, .bindex, .logos { padding: 80px 0; }
  .nav-call { display: none; }
  .nav.is-open nav .menu-call { display: inline-flex; justify-content: center; margin-top: 20px; height: 52px; font-family: var(--f-body); font-size: 16px; font-stretch: 100%; color: #1A1104; border: 0; }
  .nav.is-open nav .menu-call::after { display: none; }
  .logo { font-size: 14px; }
  .display { font-size: min(10.4vw, 46px); }
  .display-m { font-size: 36px; }
  .h2 { font-size: 30px; }
  .lede { font-size: 17.5px; }
  .hero-stick { padding-top: 100px; }
  .hero-copy .kicker { margin-bottom: 22px; font-size: 10px; letter-spacing: .05em; }
  .hero-copy .lede { margin-top: 22px; }
  .ctas { margin-top: 28px; }
  .ctas .btn { flex: 1; justify-content: center; }
  .hero-steps li { padding-top: 12px; }
  .hs-t { display: none; }
  .hero-caption { display: block; margin-top: 14px; min-height: 3em; font-size: 15px; color: var(--chalk-2); }

  .career { padding: 56px 0; }
  .ruler-years span { font-size: 10px; }
  .career-list { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; }
  .bcard-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .what-gl { height: 220px; }
  .reel-gl { height: 340px; }
  .ind-list { grid-template-columns: minmax(0, 1fr); }
  .tools { padding-top: 80px; }
  .tools-gl { height: 560px; }
  .tool-legend { flex-wrap: wrap; gap: 10px 18px; }
  .conf-note { align-items: flex-start; }
  .conf-dot { margin-top: 5px; }

  .page-hero { padding: 120px 0 50px; }
  .filters { margin-top: 30px; }
  .brow { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 26px 0; }
  .brow-go { display: none; }
  .type-group { padding-top: 18px; }

  .bhero { padding: 104px 0 90px; }
  .sheet { width: calc(100% - 20px); padding: 18px 18px 30px; margin-top: -50px; }
  .sheet-body { font-size: 16.5px; }
  .sheet-lead { font-size: 20px; }
  .results, .results.r-2 { grid-template-columns: minmax(0, 1fr); }
  .shots-view { overflow-x: auto; margin: 0 -18px; padding: 4px 18px 14px; scrollbar-width: thin; }
  .shot-pan { width: 700px; }
  .shots-hint { display: block; font-size: 13px; color: var(--paper-ink-2); }
  .shot-tab { font-size: 13px; padding: 8px 11px; }
  .res strong { font-size: 48px; }
  .diagram { padding: 18px 12px 14px; margin-top: 22px; }
  .next-link { padding: 64px 0; }
  .next-title .arr { width: 28px; height: 28px; }

  .films-hero { padding-top: 110px; }
  .wall-stage { padding: 30px 0 90px; }

  .about-hero { padding: 104px 0 70px; }
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }

  .closing { padding-top: 50px; }
  .closing-name { height: 210px; }
  .closing-row { flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 70px; }
  .closing-q { font-size: 34px; }
  .closing-row .btn-lg { width: 100%; justify-content: center; }
  .foot { flex-direction: column; align-items: flex-start; gap: 14px; }
}

.wall.is-flat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; height: auto; transform: none !important; pointer-events: auto; width: calc(100% - 2 * var(--gutter)); margin: 0 auto; }
.wall.is-flat .ftile { position: relative; left: auto; margin: 0; width: auto; height: auto; aspect-ratio: 9 / 16; }
.wall.is-flat .ftile.is-out { display: none; }
.wall.is-flat.has-hover .ftile:not(.is-playing) { filter: none; }
.wall.is-flat .ft-title { font-size: 14px; }

@media (max-width: 380px) {
  .logo-name { display: none; }
}

/* ---------------------------------------------------------------- motion */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* diagram edge labels (e.g. "rejected", "no reply") */
.dg-label { opacity: 0; transition: opacity .6s .3s; }
.dg-label.is-lit { opacity: 1; }
.dg-label rect { fill: var(--paper-hi); stroke: rgba(18, 24, 29, .25); stroke-width: 1; }
.dg-label text { font-family: var(--f-mono); font-size: 9.5px; fill: var(--paper-ink-2); letter-spacing: .02em; }

/* single-column grids inside app screens: never let one long no-wrap line widen the column */
.ap-content, .ap-rec, .ap-lddet, .ap-ldlist, .ap-src, .ap-out, .ap-ocard, .ap-docside, .ap-pside, .ap-paper,
.ap-steps, .ap-kard, .ap-col, .ap-thread, .ap-lines, .ap-notes, .ap-big, .ap-kpi, .ap-cside, .ap-panel { grid-template-columns: minmax(0, 1fr); min-width: 0; }
