/* The TOM SHAW Stack, v2. Builds on ../shared/film2d.css. Black leads, violet is the brand light,
   cyan is signal, red is threat. The Noble1 window follows the portal design system's dark chrome
   (Code/portal-design-system/css/ts-tokens.css): #000 rail, #111 surfaces, white at .92/.72/.50. */
:root { --n1-1: rgba(255,255,255,.92); --n1-2: rgba(255,255,255,.72); --n1-3: rgba(255,255,255,.50); --n1-hair: rgba(255,255,255,.14); --s1: #A35FFF; --s2: #09A8AE;
  /* gradients run deep purple to blue-purple, not violet to cyan; text starts at the brand violet so it stays legible */
  --grad-deep: #4F1398; --grad-text: #9137FF; --grad-blue: #7C7CFF; }
.headline em .w, .intro__h span, .outro__h span, .title__s { background-image: linear-gradient(90deg, var(--grad-text), var(--grad-blue)); }
.chapters .bar i, .scrub__track i { background: linear-gradient(90deg, var(--grad-deep), var(--grad-blue)); }
.captions span.now { color: var(--violet-soft); }
.vignette { background:
  radial-gradient(120% 90% at 55% 50%, transparent 58%, rgba(0,0,0,0.62) 100%),
  linear-gradient(90deg, rgba(3,2,8,0.72) 0%, rgba(3,2,8,0.25) 24%, transparent 36%); }
.brand img { height: clamp(16px, 2.2vh, 24px); }
.copy { top: 30%; transform: none; width: min(30vw, 440px); }
.headline { font-size: clamp(28px, 2.7vw, 46px); }
.chapters { margin-top: clamp(16px, 3vh, 28px); gap: 5px; }
.chapters li { font-size: 15px; grid-template-columns: 28px 1fr 56px; }

/* ------------------------------------------------------------ tags with icons */
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; padding: 6px 10px 6px 8px; }
.tag svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tag svg * { vector-effect: non-scaling-stroke; }
.tag.threat { border-color: var(--err); color: #FFD0CC; background: rgba(40,6,6,0.84); box-shadow: 0 0 18px rgba(224,68,60,0.35); }
.tag.violet { border-color: var(--violet-soft); color: #E6D6FF; background: rgba(20,6,40,0.84); box-shadow: 0 0 18px rgba(145,55,255,0.4); }
.tag.amber { border-color: var(--warn); color: #FFE2A8; background: rgba(40,26,0,0.86); }
.tag.place { border-color: rgba(255,255,255,0.35); color: #fff; background: rgba(8,6,14,0.78); font-size: 15px; }
.tag.place svg { color: var(--ice); }

/* ------------------------------------------------------------ partner card */
/* top left, centred between the logo (its bottom is ~4.6vh down) and the chapter copy (which starts 30% down), so it
   never covers text; film.js slides it with `translate`, leaving `transform` for the centring */
.pcard { position: absolute; left: clamp(18px, 3vw, 48px); top: calc((clamp(36px, 4.6vh, 50px) + 30%) / 2); transform: translateY(-50%); z-index: 21; width: min(34vw, 520px); display: grid; grid-template-columns: 120px 1fr; gap: 0; border-radius: 16px; overflow: hidden; background: rgba(8,5,18,0.82); border: 1px solid rgba(185,138,255,0.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.85), 0 0 40px -12px rgba(145,55,255,0.5); opacity: 0; visibility: hidden; }
.pcard__logo { display: grid; place-items: center; padding: 12px; background: linear-gradient(135deg, rgba(79,19,152,0.55), rgba(32,0,80,0.4)); border-right: 1px solid rgba(185,138,255,0.25); }
.pcard__logo img { width: 100%; height: auto; max-height: 60px; object-fit: contain; }
.pcard__body { padding: 11px 16px 13px; }
.pcard__k { margin: 0 0 5px; display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); }
.pcard__k span:last-child { color: var(--muted); }
.pcard__how { margin: 0; font-size: clamp(14px, 1vw, 17px); line-height: 1.4; color: var(--ink); }
/* every card is a partner's product; TOM SHAW's own get "TOM SHAW ·" in the chapter eyebrow instead */
.pcard__src { margin: 0 0 3px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); opacity: 0.72; }
.kicker__name { white-space: nowrap; }
/* "TOM SHAW · Stealth Connect" (~312px at 15px) fits the 288-307px copy column at 320px and 1024px */
@media (max-width: 1100px) { .kicker { font-size: 14px; letter-spacing: 0.1em; } }

/* ------------------------------------------------------------ right panels */
.sp { right: clamp(18px, 3vw, 48px); top: 46%; transform: translateY(-50%); width: min(28vw, 400px); padding: 18px 18px 16px; }
.qs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.qs li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; font-size: 18px; color: var(--dim); transition: color .35s; }
.qs li i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.18); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; transition: all .35s; }
.qs li.on { color: var(--ink); }
.qs li.on i { border-color: var(--violet); background: var(--violet); color: #fff; box-shadow: 0 0 14px rgba(145,55,255,0.6); }
.qs li.on i::after { content: '✓'; }
.sp__out { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 16px; line-height: 1.4; color: var(--body); border: 1px solid rgba(0,241,255,0.3); background: rgba(0,241,255,0.06); opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.sp__out b { display: block; font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice); margin-bottom: 3px; }
.sp__out.on { opacity: 1; transform: none; }
.inv { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv li { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); color: var(--dim); font-size: 15.5px; transition: all .35s; }
.inv li svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.inv li.on { color: var(--ink); border-color: rgba(0,241,255,0.35); background: rgba(0,241,255,0.06); }
.inv li.on svg { color: var(--ice); }
#invOut { border-color: rgba(232,163,23,0.5); background: rgba(232,163,23,0.08); }
#invOut b { color: var(--warn); }
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.logos span { display: grid; place-items: center; height: 44px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); opacity: 0.12; transform: scale(0.9); transition: opacity .35s, transform .35s, border-color .35s; }
.logos span.on { opacity: 1; transform: none; border-color: rgba(185,138,255,0.3); }
.logos img { max-width: 82%; max-height: 30px; object-fit: contain; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1); color: var(--dim); transition: all .35s; }
.chips span.on { color: #04060a; background: var(--ice); border-color: var(--ice); box-shadow: 0 0 16px rgba(0,241,255,0.45); }
.flow { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.flow li { display: grid; gap: 2px; padding: 9px 12px; border-left: 2px solid rgba(255,255,255,0.1); color: var(--dim); transition: all .4s; }
.flow li b { font-family: var(--display); font-size: 21px; font-weight: 600; }
.flow li span { font-size: 15.5px; }
.flow li.on { color: var(--ink); border-left-color: var(--cyan); background: linear-gradient(90deg, rgba(0,241,255,0.1), transparent); }
.flow li.on span { color: var(--body); }
.alert { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--warn); background: rgba(232,163,23,0.1); opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; }
.alert.on { opacity: 1; transform: none; }
.alert i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #1c1200; background: var(--warn); }
.alert b { display: block; color: var(--ink); font-size: 16.5px; }
.alert span { font-size: 14.5px; color: var(--body); }

/* ------------------------------------------------------------ Noble1 window */
.n1 { position: absolute; right: clamp(18px, 2.4vw, 40px); top: 50%; transform: translateY(-52%); z-index: 22; width: min(44vw, 680px); display: grid; grid-template-columns: 48px 1fr; border-radius: 14px; overflow: hidden; background: #111; border: 1px solid var(--n1-hair); box-shadow: 0 40px 100px -30px rgba(0,0,0,0.9), 0 0 60px -20px rgba(145,55,255,0.55); opacity: 0; visibility: hidden; font-family: var(--sans); }
.n1__rail { background: #000; display: grid; align-content: start; justify-items: center; gap: 12px; padding: 12px 0; }
.n1__mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-family: var(--display); font-weight: 700; font-size: 12px; color: #fff; background: linear-gradient(135deg, #4F1398, #9137FF); }
.n1__ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: rgba(255,255,255,.62); }
.n1__ic.on { background: #9137FF; color: #fff; }
.n1__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.n1__main { padding: 0 16px 14px; min-width: 0; }
.n1__top { display: flex; justify-content: space-between; align-items: center; height: 42px; border-bottom: 1px solid var(--n1-hair); font-size: 14px; color: var(--n1-2); }
.n1__top i { font-style: normal; color: var(--n1-3); margin: 0 4px; }
.n1__top b { color: var(--n1-1); font-weight: 600; }
.n1__live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.n1__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: blink 1.4s steps(2) infinite; }
.n1__hero { margin-top: 12px; border-radius: 12px; padding: 14px 14px 8px; background: linear-gradient(135deg, #000 0%, #200050 55%, #4F1398 100%); }
.n1__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.n1__kpis small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--n1-3); }
.n1__kpis b { display: block; font-family: var(--display); font-size: 34px; line-height: 1.1; color: var(--n1-1); }
.n1__kpis b em { font-style: normal; font-size: 18px; color: var(--n1-2); }
.n1__kpis b.n1__who { font-size: 20px; line-height: 1.6; }
.n1__kpis span { font-size: 13px; color: var(--n1-2); }
.beh { font-style: normal; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; }
.beh--acc { color: #1c1200; background: var(--warn); }
.beh--neg { color: #1c0b00; background: #FF7A1A; }
.beh--mal { color: #fff; background: var(--err); }
.beh--low { color: #03140b; background: var(--ok); }
.n1__chart { display: block; width: 100%; height: auto; aspect-ratio: 560 / 160; overflow: visible; }
.n1__grid line { stroke: rgba(255,255,255,.10); stroke-width: 1; }
.n1__line { fill: none; stroke: var(--s1); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(163,95,255,.7)); }
.n1__org { fill: none; stroke: var(--s2); stroke-width: 1.6; opacity: .9; }
.n1__area { fill: url(#n1Grad); opacity: .9; }
.n1__cursor { stroke: rgba(255,255,255,.55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pin circle { stroke: #111; stroke-width: 2; vector-effect: non-scaling-stroke; }
.pin text { font-family: var(--mono); font-size: 11px; fill: #fff; letter-spacing: .04em; }
.pin rect { fill: rgba(0,0,0,.72); }
.n1__axis { display: flex; justify-content: space-between; padding: 2px 4px 0; font-family: var(--mono); font-size: 11px; color: var(--n1-3); }
.n1__users { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.n1__users li { display: grid; grid-template-columns: 1fr 96px 92px 44px; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--n1-hair); font-size: 14px; color: var(--n1-1); }
.n1__users li.sel { background: rgba(145,55,255,.14); border-radius: 6px; }
.n1__users li small { display: block; color: var(--n1-3); font-size: 12px; }
.n1__users svg { width: 92px; height: 22px; }
.n1__users svg path { fill: none; stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.n1__users li b { font-family: var(--mono); font-weight: 500; font-size: 14px; text-align: right; }
.n1__nano { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; margin-top: 10px; padding: 9px; border-radius: 10px; border: 1px solid rgba(0,241,255,.4); background: rgba(0,241,255,.07); opacity: 0; transform: translateY(6px); }
.n1__vid { position: relative; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #200050, #4F1398 60%, #9137FF); }
.n1__vid i { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%); border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.n1__vid span { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--cyan); }
.n1__nano b { display: block; color: #fff; font-size: 15px; }
.n1__nano span { font-size: 13px; color: var(--n1-2); }

/* ----------------------------------------------------------- closing title */
.title { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 22; display: grid; justify-items: center; text-align: center; visibility: hidden; opacity: 0; pointer-events: none; padding: 60px 120px; }
.title::before { content: ''; position: absolute; inset: -40px -80px; z-index: -1; background: radial-gradient(closest-side, rgba(3,2,8,0.82), rgba(3,2,8,0.55) 60%, transparent); }
.title img { width: min(56vw, 760px); height: auto; filter: drop-shadow(0 0 30px rgba(145,55,255,0.65)); }
.title__s { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 70px); letter-spacing: 0.32em; text-transform: uppercase; padding-left: 0.32em; -webkit-background-clip: text; background-clip: text; color: transparent; }
.title__t { margin: 18px 0 0; font-size: clamp(20px, 1.9vw, 30px); color: var(--ink); }
.title__t span { color: var(--ice); }
.outro__logo { width: min(40vw, 420px); height: auto; margin-bottom: 26px; opacity: 0.95; }
.outro__n { max-width: 110ch; }

.sp .panel__k { flex-wrap: wrap; gap: 4px 12px; }
@media (max-width: 1100px) {
  .sp { width: 40vw; } .n1 { width: 56vw; } .pcard { width: 52vw; }
}
@media (max-height: 520px) {
  .top__title, .chapters, .chips, .flow li span, .n1__users, .n1__axis, .alert span { display: none; }
  .headline { font-size: 24px; } .copy { top: 64px; width: 40vw; }
  .sp { width: 280px; top: 50%; padding: 10px 12px; }
  .qs li, .flow li b { font-size: 14px; } .qs { gap: 5px; margin-bottom: 6px; }
  .inv li { padding: 5px 8px; font-size: 13px; }
  .pcard { grid-template-columns: 96px 1fr; top: auto; bottom: 92px; transform: none; width: 56vw; } .pcard__how { font-size: 14px; } .pcard__body { padding: 8px 12px; }
  .n1 { width: 640px; zoom: 0.58; } .n1__nano { margin-top: 6px; }
  .title img { width: 50vw; } .title { padding: 20px 40px; }
}
@media (max-width: 720px) {
  .copy { top: 64px; width: auto; right: 16px; }
  .chapters { display: none; }
  /* portrait: cards and panels sit under the headline, clear of the captions */
  .sp, .n1 { left: 16px; right: 16px; width: auto; top: 150px; bottom: auto; transform: none !important; }
  .sp { padding: 12px; }
  .n1 { grid-template-columns: 1fr; } .n1__rail, .n1__users { display: none; }
  .pcard { left: 16px; right: 16px; width: auto; top: 150px; bottom: auto; transform: none; grid-template-columns: 90px 1fr; }
  .pcard__how { font-size: 15px; }
  .title img { width: 80vw; }
}
