/* yogeshveera.com
   Concept: the site is an edit. A signal field plays behind the hero, the career is a sequence on a timeline,
   and each company is a chapter with a working miniature of what I built there.
   Layout: left-aligned, 1200px max. Demos sit in dark "app" windows in both themes, like the real tools. */
:root {
  --bg: #EEF0F4;
  --bg-2: #E4E7EE;
  --panel: #FFFFFF;
  --ink: #12161F;
  --muted: #545E71;
  --line: #D3D8E1;
  --accent: #3D6BF0;
  --focus: #3D6BF0;
  --glow: rgba(61, 107, 240, 0.16);

  /* App windows keep the tools' dark UI in both themes, on purpose. */
  --app-bg: #1A1D24;
  --app-panel: #22262F;
  --app-raised: #2B303B;
  --app-line: #353B47;
  --app-ink: #DDE1E8;
  --app-muted: #8D96A6;
  --app-blue: #5B93FF;

  /* Premiere label colors, used for clips and swatches. */
  --violet: #A990DD; --iris: #7F97E0; --caribbean: #29D698; --lavender: #E384E3;
  --cerulean: #2FBDDF; --forest: #7BC86A; --rose: #F767A5; --mango: #F2A33A;
  --clip-ink: #0F1218;

  /* Company accents */
  --adobe: #9C8CFF;
  --ms: #2B8CE8;
  --tdt: #22C98B;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --nav-h: 60px;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1116; --bg-2: #161921; --panel: #181B23; --ink: #E8EBF1; --muted: #9BA4B4; --line: #272C37;
    --accent: #6E97FF; --focus: #8DB0FF; --glow: rgba(110, 151, 255, 0.14);
    --app-bg: #14171D; --app-panel: #1B1F27; --app-raised: #242934; --app-line: #2F3540;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1116; --bg-2: #161921; --panel: #181B23; --ink: #E8EBF1; --muted: #9BA4B4; --line: #272C37;
  --accent: #6E97FF; --focus: #8DB0FF; --glow: rgba(110, 151, 255, 0.14);
  --app-bg: #14171D; --app-panel: #1B1F27; --app-raised: #242934; --app-line: #2F3540;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1.1875rem; line-height: 1.6; font-optical-sizing: auto;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
@media (min-width: 760px) { .wrap { padding-left: max(36px, env(safe-area-inset-left, 0px)); padding-right: max(36px, env(safe-area-inset-right, 0px)); } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-stretch: 110%; font-size: 1.02rem; white-space: nowrap; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { font-family: var(--f-display); font-weight: 500; font-size: 0.96rem; color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-tc { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; white-space: nowrap; }
.nav-tc b { color: var(--accent); font-weight: 600; }
.icon-btn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.scroll-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); }
.mobile-menu { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-tc { display: none; }
  .menu-btn { display: grid; margin-left: auto; }
  .mobile-menu {
    display: block; position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 auto 0; z-index: 29;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px max(18px, env(safe-area-inset-right, 0px)) 22px max(18px, env(safe-area-inset-left, 0px));
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a { display: block; padding: 12px 0; font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; font-stretch: 110%; text-decoration: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) { .brand span { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, transparent 100%);
}
.hero-inner { padding-block: clamp(48px, 9vw, 110px) clamp(40px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.hero-inner > * { min-width: 0; }
.role-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 25%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--rose) 0%, transparent); } }
.name { font-stretch: 118%; font-weight: 800; letter-spacing: -0.03em; line-height: 0.9; font-size: 11vw; margin-left: -0.04em; }
.name .line { display: block; white-space: nowrap; position: relative; width: max-content; }
.name .ch { display: inline-block; }
.name.go .ch { animation: rise .8s cubic-bezier(.2,.8,.15,1) both; animation-delay: calc(var(--i) * 28ms + 120ms); }
@keyframes rise { from { transform: translateY(105%); opacity: 0; } }
.name { position: relative; width: max-content; max-width: 100%; font-size: 8.2vw; }
.name .line-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.render-head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); left: 0; opacity: 0; pointer-events: none; }
.render-head::before { content: ""; position: absolute; top: -8px; left: -6px; width: 14px; height: 12px; background: var(--accent); clip-path: polygon(0 0,100% 0,100% 55%,50% 100%,0 55%); }
.name.go .render-head { animation: sweep 1.25s cubic-bezier(.5,0,.2,1) .1s forwards; }
@keyframes sweep { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.42rem); line-height: 1.55; max-width: 60ch; color: var(--muted); }
.lede strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { font-family: var(--f-display); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; background: transparent; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.now-row { display: flex; flex-wrap: wrap; gap: 10px; }
.now { display: inline-flex; gap: 8px; align-items: baseline; padding: 7px 12px; border-radius: 10px; background: color-mix(in srgb, var(--panel) 80%, transparent); border: 1px solid var(--line); font-family: var(--f-display); font-size: 0.9rem; }
.now b { font-family: var(--f-mono); font-weight: 600; font-size: 0.72rem; color: var(--muted); }

/* ---------- Section scaffolding ---------- */
.sec { padding-block: clamp(64px, 9vw, 112px); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 52px); max-width: 780px; }
.sec-head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-stretch: 115%; font-weight: 800; letter-spacing: -0.025em; }
.sec-head p { color: var(--muted); font-size: 1.2rem; }
.tc-tag { font-family: var(--f-mono); font-size: 0.78rem; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- Career timeline ---------- */
.nle { margin: 0; background: var(--app-bg); color: var(--app-ink); border-radius: var(--r); overflow: hidden; border: 1px solid var(--app-line); box-shadow: 0 30px 60px -30px rgba(10, 14, 30, 0.45); }
.nle-bar { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--app-panel); border-bottom: 1px solid var(--app-line); font-family: var(--f-mono); font-size: 0.78rem; color: var(--app-muted); }
.nle-seq { display: flex; align-items: center; gap: 10px; }
.nle-seq b { color: var(--app-ink); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.tc { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.tc output { font-size: 1.35rem; font-weight: 600; color: var(--app-blue); font-variant-numeric: tabular-nums; }
.tc-label { font-family: var(--f-display); font-size: 0.95rem; color: var(--app-ink); }
.nle-inner { display: grid; grid-template-columns: 96px 1fr; }
.nle-heads { background: var(--app-panel); border-right: 1px solid var(--app-line); }
.nle-heads div { height: 54px; display: flex; align-items: center; gap: 8px; padding-inline: 10px; font-family: var(--f-mono); font-size: 0.72rem; color: var(--app-muted); border-bottom: 1px solid var(--app-line); }
.nle-heads div:first-child { height: 48px; }
.nle-heads b { color: var(--app-ink); background: var(--app-raised); padding: 2px 6px; border-radius: 4px; }
.nle-area { position: relative; }
.ruler { height: 48px; position: relative; border-bottom: 1px solid var(--app-line); cursor: ew-resize; touch-action: none; }
.tick { position: absolute; bottom: 0; width: 1px; height: 6px; background: var(--app-line); }
.tick.major { height: 12px; background: #4C5363; }
.tick span { position: absolute; top: -38px; left: 4px; font-family: var(--f-mono); font-size: 0.68rem; color: var(--app-muted); white-space: nowrap; }
.marker { position: absolute; bottom: 2px; width: 13px; height: 13px; transform: translateX(-6.5px); background: var(--forest); border: 0; padding: 0; cursor: pointer; clip-path: polygon(0 0,100% 0,100% 62%,50% 100%,0 62%); }
.marker:hover, .marker:focus-visible, .marker.on { background: var(--mango); }
.track { height: 54px; position: relative; border-bottom: 1px solid var(--app-line); }
.track:nth-of-type(odd) { background: rgba(255,255,255,0.016); }
.clip { position: absolute; top: 7px; bottom: 7px; border-radius: 5px; overflow: hidden; color: var(--clip-ink); text-decoration: none; display: flex; flex-direction: column; justify-content: flex-start; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.28); transition: filter .2s, box-shadow .2s, transform .2s; cursor: pointer; border: 0; padding: 0; text-align: left; }
.clip:hover { filter: brightness(1.1); }
.clip.live { box-shadow: inset 0 0 0 2px #fff; }
.clip .cl-name { position: relative; z-index: 1; font-family: var(--f-display); font-size: 0.78rem; font-weight: 700; padding: 4px 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.clip .cl-sub { position: relative; z-index: 1; font-family: var(--f-mono); font-size: 0.64rem; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.8; }
.clip.tiny .cl-name, .clip.tiny .cl-sub { display: none; }
.clip canvas { position: absolute; left: 0; right: 0; bottom: 2px; height: 45%; width: 100%; opacity: 0.35; pointer-events: none; }
.clip.audio .cl-sub { display: none; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--app-blue); z-index: 3; pointer-events: none; }
.playhead::before { content: ""; position: absolute; top: 0; left: -7px; width: 16px; height: 14px; background: var(--app-blue); clip-path: polygon(0 0,100% 0,100% 55%,50% 100%,0 55%); }
.ph-handle { position: absolute; top: 0; width: 28px; height: 48px; margin-left: -14px; z-index: 4; background: transparent; border: 0; padding: 0; cursor: ew-resize; touch-action: none; }
.tl-tip { position: absolute; z-index: 6; pointer-events: none; transform: translate(-50%, -110%); background: #0B0D12; color: #fff; font-family: var(--f-display); font-size: 0.8rem; padding: 5px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; transition: opacity .15s; }
.tl-tip.show { opacity: 1; }
.nle-detail { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: center; padding: 14px 16px; background: var(--app-panel); border-top: 1px solid var(--app-line); min-height: 64px; }
.nle-detail i { width: 12px; height: 34px; border-radius: 3px; }
.nle-detail b { font-family: var(--f-display); font-size: 1.05rem; display: block; }
.nle-detail span { font-family: var(--f-display); font-size: 0.92rem; color: var(--app-muted); }
.nle-detail a { font-family: var(--f-display); font-size: 0.92rem; color: var(--app-ink); white-space: nowrap; }
.vtl { display: none; }
@media (max-width: 760px) {
  .nle { display: none; }
  .vtl { display: grid; list-style: none; margin: 0; padding: 0; position: relative; }
  .vtl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
  .vtl li { position: relative; display: grid; gap: 2px; padding: 0 0 22px 32px; }
  .vtl li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 4px; background: var(--c); box-shadow: 0 0 0 4px var(--bg); }
  .vtl .when { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
  .vtl b { font-family: var(--f-display); font-size: 1.15rem; }
  .vtl span { color: var(--muted); font-size: 1rem; }
  .vtl a { text-decoration: none; }
}

/* ---------- Chapters ---------- */
.chapter { --accent-co: var(--accent); padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); position: relative; }
.chapter[data-co="adobe"] { --accent-co: var(--adobe); }
.chapter[data-co="ms"] { --accent-co: var(--ms); }
.chapter[data-co="tdt"] { --accent-co: var(--tdt); }
.chapter::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: linear-gradient(90deg, var(--accent-co) var(--fill, 0%), transparent var(--fill, 0%)); transition: --fill 1s; }
.ch-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; margin-bottom: clamp(36px, 6vw, 64px); }
.ch-num { font-family: var(--f-mono); font-size: 0.8rem; color: var(--accent-co); display: flex; gap: 10px; align-items: center; }
.ch-num::after { content: ""; height: 1px; width: 48px; background: var(--accent-co); }
.co-mark { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.co-mark img.logo { height: clamp(34px, 5vw, 52px); width: auto; }
.co-mark h2 { font-size: clamp(2.6rem, 8vw, 5.6rem); font-stretch: 122%; font-weight: 800; letter-spacing: -0.035em; line-height: 0.92; }
.ch-sub { margin-top: 14px; font-family: var(--f-display); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; color: var(--muted); }
.ch-sub b { color: var(--ink); font-weight: 600; }
.ch-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat { display: grid; gap: 2px; min-width: 110px; }
.stat b { font-family: var(--f-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; font-stretch: 112%; line-height: 1; color: var(--accent-co); font-variant-numeric: tabular-nums; }
.stat span { font-family: var(--f-display); font-size: 0.85rem; color: var(--muted); max-width: 16ch; line-height: 1.3; }
@media (max-width: 860px) { .ch-head { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding-block: clamp(36px, 5vw, 56px); }
.feature + .feature { border-top: 1px dashed var(--line); }
.feature-text { display: grid; gap: 20px; position: sticky; top: calc(var(--nav-h) + 28px + env(safe-area-inset-top, 0px)); }
.feature-text h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-stretch: 112%; font-weight: 800; letter-spacing: -0.02em; }
.ship { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ship span { font-family: var(--f-display); font-size: 0.82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent-co) 16%, transparent); color: var(--ink); }
.feature-text p { font-size: 1.12rem; line-height: 1.6; }
.built { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.built li { position: relative; padding-left: 22px; font-size: 1.05rem; line-height: 1.5; }
.built li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 11px; height: 2px; background: var(--accent-co); }
.built b { font-family: var(--f-display); font-weight: 650; font-size: 0.98rem; }
.refs { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--f-display); font-size: 0.92rem; font-weight: 500; }
.refs a::after { content: "↗"; margin-left: 3px; font-size: 0.85em; display: inline-block; }
.feature-demo { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; } .feature-text { position: static; } }

/* App window (demo shell) */
.app { background: var(--app-bg); color: var(--app-ink); border: 1px solid var(--app-line); border-radius: var(--r); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(8, 12, 28, 0.55); position: relative; }
.app-bar { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 14px; background: var(--app-panel); border-bottom: 1px solid var(--app-line); font-family: var(--f-mono); font-size: 0.74rem; color: var(--app-muted); }
.app-bar b { color: var(--app-ink); font-weight: 600; }
.app-tabs { display: flex; gap: 14px; align-items: center; }
.app-tabs span.on { color: var(--app-ink); border-bottom: 2px solid var(--accent-co); padding-bottom: 2px; }
.app-btn { font-family: var(--f-display); font-size: 0.82rem; font-weight: 600; border: 1px solid var(--app-line); background: var(--app-raised); color: var(--app-ink); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.app-btn:hover { border-color: var(--app-blue); }
.app-btn.primary { background: var(--app-blue); border-color: var(--app-blue); color: #fff; }
.app-btn:disabled { opacity: .45; cursor: default; }
.demo-note { font-family: var(--f-display); font-size: 0.85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.demo-note::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent-co); flex: none; }
.hint { position: absolute; z-index: 5; font-family: var(--f-display); font-size: 0.85rem; font-weight: 600; color: #fff; background: rgba(12,14,20,.86); border: 1px solid var(--app-line); padding: 7px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap; transition: opacity .3s; }

/* Generative Media Tool demo */
.gmt-stage { position: relative; padding: 14px 14px 18px; display: grid; gap: 12px; }
.gmt-monitor { position: relative; aspect-ratio: 16 / 7; border-radius: 8px; overflow: hidden; background: #000; }
.gmt-monitor canvas { width: 100%; height: 100%; }
.gmt-monitor .mon-tc { position: absolute; right: 10px; bottom: 8px; font-family: var(--f-mono); font-size: 0.72rem; color: #fff; background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 4px; }
.gmt-monitor .mon-label { position: absolute; left: 10px; top: 8px; font-family: var(--f-display); font-size: 0.75rem; color: #fff; background: rgba(0,0,0,.5); padding: 2px 7px; border-radius: 4px; }
.gmt-tl { position: relative; display: grid; grid-template-columns: 40px 1fr; border: 1px solid var(--app-line); border-radius: 8px; overflow: visible; background: var(--app-bg); }
.gmt-heads div { height: 46px; display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.7rem; color: var(--app-muted); border-bottom: 1px solid var(--app-line); background: var(--app-panel); }
.gmt-heads div:last-child { border-bottom: 0; }
.gmt-tracks { position: relative; touch-action: none; cursor: crosshair; }
.gmt-track { height: 46px; position: relative; border-bottom: 1px solid var(--app-line); }
.gmt-track:last-child { border-bottom: 0; }
.gclip { position: absolute; top: 5px; bottom: 5px; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.gclip canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gclip .gl { position: absolute; left: 0; top: 0; right: 0; font-family: var(--f-display); font-size: 0.68rem; font-weight: 700; color: #fff; padding: 2px 6px; background: linear-gradient(rgba(0,0,0,.55), transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; }
.gclip.audio { background: #2F5B3A; }
.gclip.audio canvas { opacity: .8; }
.gclip.gen { outline: 2px solid var(--violet); }
.gclip .ai { position: absolute; right: 4px; bottom: 4px; z-index: 2; font-family: var(--f-display); font-size: 0.62rem; font-weight: 800; color: #fff; background: rgba(0,0,0,.55); border-radius: 4px; padding: 1px 5px; }
.gclip.pending { background: repeating-linear-gradient(-45deg, #3A3F4D 0 8px, #2C303A 8px 16px); background-size: 200% 100%; animation: stripes 1.2s linear infinite; display: grid; place-items: center; }
.gclip.pending span { font-family: var(--f-display); font-size: 0.72rem; font-weight: 600; color: #fff; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 999px; }
@keyframes stripes { to { background-position: -64px 0; } }
.gsel { position: absolute; top: 0; bottom: 0; background: rgba(91,147,255,.22); border-left: 2px solid var(--app-blue); border-right: 2px solid var(--app-blue); pointer-events: none; }
.taskbar {
  position: absolute; z-index: 6; width: min(430px, calc(100% - 16px)); transform: translate(-50%, calc(-100% - 10px));
  background: #2A2E38; border: 1px solid #454B59; border-radius: 12px; padding: 10px; display: grid; gap: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,.5); animation: pop .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, calc(-100% + 4px)) scale(.96); } }
.tb-prompt { background: #1B1E25; border: 1px solid #3B414E; border-radius: 8px; padding: 8px 10px; font-family: var(--f-display); font-size: 0.88rem; min-height: 36px; color: #fff; }
.tb-prompt .caret { display: inline-block; width: 1px; height: 1em; background: #fff; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tb-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tb-chip { font-family: var(--f-display); font-size: 0.78rem; font-weight: 600; color: #E7EAF0; background: #1F232B; border: 1px solid #3B414E; border-radius: 7px; padding: 5px 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tb-chip:hover { border-color: var(--app-blue); }
.tb-chip.on { border-color: var(--app-blue); background: rgba(91,147,255,.18); }
.tb-chip canvas { width: 34px; height: 20px; border-radius: 3px; }
.tb-gen { margin-left: auto; }
.tb-credits { font-family: var(--f-mono); font-size: 0.68rem; color: var(--app-muted); }
.picking .gmt-tracks { cursor: copy; }
.peek { position: absolute; z-index: 8; width: 200px; border-radius: 8px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 16px 30px rgba(0,0,0,.55); pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); background: #000; }
.peek canvas { width: 100%; aspect-ratio: 16/9; height: auto; }
.peek span { position: absolute; left: 6px; bottom: 5px; font-family: var(--f-mono); font-size: 0.66rem; color: #fff; background: rgba(0,0,0,.6); padding: 1px 5px; border-radius: 3px; }
.gmt-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--app-line); background: var(--app-panel); font-family: var(--f-display); font-size: 0.82rem; color: var(--app-muted); }
.gmt-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.gmt-steps span { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--app-line); }
.gmt-steps span.on { border-color: var(--violet); color: #fff; background: rgba(169,144,221,.2); }

/* Search demo */
.srch { padding: 14px; display: grid; gap: 12px; }
.srch-box { display: flex; align-items: center; gap: 10px; background: #12151B; border: 1px solid var(--app-line); border-radius: 10px; padding: 9px 12px; }
.srch-box svg { width: 16px; height: 16px; color: var(--app-muted); flex: none; }
.srch-box input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font-family: var(--f-display); font-size: 1rem; }
.srch-box .local { font-family: var(--f-mono); font-size: 0.66rem; color: var(--caribbean); white-space: nowrap; }
.srch-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.srch-chips button { font-family: var(--f-display); font-size: 0.8rem; color: var(--app-ink); background: var(--app-raised); border: 1px solid var(--app-line); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.srch-chips button:hover { border-color: var(--app-blue); }
.srch-tabs { display: flex; gap: 14px; font-family: var(--f-display); font-size: 0.82rem; color: var(--app-muted); border-bottom: 1px solid var(--app-line); padding-bottom: 6px; }
.srch-tabs b { color: var(--app-ink); font-weight: 600; }
.srch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-height: 210px; align-content: start; }
.res { position: relative; border-radius: 7px; overflow: hidden; background: #000; transition: opacity .3s, transform .3s; cursor: ew-resize; }
.res canvas { width: 100%; aspect-ratio: 16/9; height: auto; }
.res .rl { display: block; font-family: var(--f-display); font-size: 0.72rem; color: var(--app-ink); padding: 5px 2px 0; background: var(--app-bg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res .rtc { position: absolute; right: 5px; top: 5px; font-family: var(--f-mono); font-size: 0.6rem; color: #fff; background: rgba(0,0,0,.6); padding: 1px 4px; border-radius: 3px; }
.res .rph { position: absolute; top: 0; width: 2px; aspect-ratio: auto; height: calc(100% - 22px); background: var(--app-blue); left: 0; opacity: 0; }
.res:hover .rph { opacity: 1; }
.res.out { display: none; }
.res .why { position: absolute; left: 5px; top: 5px; font-family: var(--f-mono); font-size: 0.58rem; color: #0F1218; background: var(--caribbean); padding: 1px 5px; border-radius: 3px; }
.srch-empty { grid-column: 1 / -1; font-family: var(--f-display); color: var(--app-muted); font-size: 0.9rem; padding: 20px 0; }
@media (max-width: 560px) { .srch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Product screenshots */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shots.one { grid-template-columns: 1fr; }
.shot { margin: 0; display: grid; gap: 8px; min-width: 0; }
.zoom { display: block; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--app-bg); cursor: zoom-in; width: 100%; }
.zoom img { width: 100%; height: auto; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.zoom:hover img { transform: scale(1.02); }
.shot figcaption { font-family: var(--f-display); font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.credit a { color: var(--muted); }
.light-img .zoom { background: #fff; }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } }

/* Workflow list */
.wf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.wf li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.wf h4 { font-size: 1.15rem; font-stretch: 108%; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.wf h4 small { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 400; color: var(--muted); }
.wf p { font-size: 1.02rem; color: var(--muted); line-height: 1.5; }
.wf p b { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .wf { grid-template-columns: 1fr; } }

/* OneDrive sync demo */
.sync { padding: 16px; display: grid; gap: 14px; }
.sync-ends { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sync-end { background: var(--app-panel); border: 1px solid var(--app-line); border-radius: 10px; padding: 10px 12px; min-height: 128px; }
.sync-end h5 { margin: 0 0 6px; font-family: var(--f-display); font-size: 0.78rem; font-weight: 700; color: var(--app-muted); display: flex; justify-content: space-between; }
.sync-end ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sync-end li { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 0.74rem; padding: 3px 6px; border-radius: 5px; transition: background .4s; }
.sync-end li.flash { background: rgba(43,140,232,.28); }
.sync-end li small { color: var(--app-muted); }
.pipe { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.stage { position: relative; text-align: center; font-family: var(--f-display); font-size: 0.72rem; font-weight: 600; color: var(--app-muted); padding: 10px 2px 8px; border-radius: 8px; background: var(--app-panel); border: 1px solid var(--app-line); transition: all .25s; }
.stage small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 0.6rem; margin-top: 2px; opacity: .8; min-height: 1.2em; }
.stage.on { color: #fff; border-color: var(--ms); background: rgba(43,140,232,.22); transform: translateY(-2px); }
.stage.done { color: var(--app-ink); }
.sync-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.log { background: #0E1015; border: 1px solid var(--app-line); border-radius: 10px; padding: 10px 12px; font-family: var(--f-mono); font-size: 0.7rem; line-height: 1.6; height: 132px; overflow: hidden; color: var(--app-muted); display: flex; flex-direction: column; justify-content: flex-end; }
.log div b { color: var(--ms); font-weight: 600; }
.log div em { color: var(--caribbean); font-style: normal; }
.log div i { color: var(--mango); font-style: normal; }
@media (max-width: 640px) {
  .pipe { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sync-ends { grid-template-columns: 1fr; }
}
.namecheck { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; }
.namecheck label { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.namecheck input { width: 100%; font-family: var(--f-mono); font-size: 1rem; padding: 11px 13px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.namecheck input:focus { outline: none; border-color: var(--ms); }
.verdict { font-family: var(--f-display); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.verdict i { width: 10px; height: 10px; border-radius: 50%; background: var(--forest); flex: none; }
.verdict.bad i { background: var(--rose); }
.nc-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.98rem; color: var(--muted); }
.nc-rules li.hit { color: var(--ink); }
.nc-rules li.hit::before { content: "✕ "; color: var(--rose); font-weight: 700; }
.nc-rules li:not(.hit)::before { content: "✓ "; color: var(--forest); font-weight: 700; }
.nc-rules code, .namecheck code { font-family: var(--f-mono); font-size: 0.86em; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
.nc-try { display: flex; flex-wrap: wrap; gap: 6px; }
.nc-try button { font-family: var(--f-mono); font-size: 0.8rem; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.nc-try button:hover { border-color: var(--ms); }

/* Tetrode demo */
.tet { padding: 14px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; }
.tet canvas { width: 100%; border-radius: 8px; background: #05070A; border: 1px solid #1E242C; }
.tet .scope { aspect-ratio: 4 / 3; }
.tet .scatter { aspect-ratio: 1; touch-action: none; cursor: crosshair; }
.tet-side { display: grid; gap: 8px; align-content: start; }
.tet-label { font-family: var(--f-mono); font-size: 0.66rem; color: var(--app-muted); display: flex; justify-content: space-between; }
.tet-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; font-family: var(--f-display); font-size: 0.82rem; color: var(--app-muted); }
.units { display: flex; gap: 10px; flex-wrap: wrap; }
.units span { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: 0.72rem; }
.units i { width: 9px; height: 9px; border-radius: 50%; }
@media (max-width: 640px) { .tet { grid-template-columns: 1fr; } .tet .scatter { max-width: 340px; justify-self: center; width: 100%; } }

/* Earlier roles + education */
.cv { list-style: none; margin: 0; padding: 0; display: grid; }
.cv li { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 4px 36px; padding-block: 20px; border-top: 1px solid var(--line); }
.cv li:first-child { border-top: 0; padding-top: 0; }
.cv .when { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); padding-top: 5px; font-variant-numeric: tabular-nums; }
.cv h3 { font-size: 1.25rem; font-stretch: 108%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cv h3 span { font-weight: 500; font-size: 1rem; font-stretch: 100%; color: var(--muted); }
.cv p { color: var(--muted); font-size: 1.05rem; margin-top: 4px; max-width: 70ch; }
@media (max-width: 640px) { .cv li { grid-template-columns: 1fr; } .cv .when { padding-top: 0; } }
.edu { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 40px; }
.edu li { display: grid; gap: 4px; padding: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.edu b { font-family: var(--f-display); font-size: 1.2rem; font-stretch: 106%; }
.edu span { color: var(--muted); }
.edu .dates { font-family: var(--f-mono); font-size: 0.8rem; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px 40px; }
.skills h3 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-family: var(--f-display); font-size: 0.93rem; padding: 6px 13px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.chips li:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Kind words marquee */
.marquee { display: grid; gap: 18px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-row { display: flex; gap: 18px; width: max-content; animation: mq var(--dur, 60s) linear infinite; }
.mq-row.rev { animation-direction: reverse; }
.marquee:hover .mq-row { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.q { width: min(420px, 78vw); flex: none; margin: 0; padding: 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 12px; align-content: space-between; }
.q blockquote { margin: 0; font-size: 1.15rem; line-height: 1.5; font-style: italic; }
.q figcaption { font-family: var(--f-display); font-size: 0.85rem; color: var(--muted); }
.q.big { width: min(560px, 86vw); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.q.big blockquote { font-family: var(--f-display); font-style: normal; font-weight: 650; font-size: 1.45rem; line-height: 1.25; }
.q.big figcaption { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.kw-note { font-family: var(--f-display); font-size: 0.88rem; color: var(--muted); margin-top: 18px; }

/* Empty tracks */
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.slot { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 8px; min-height: 180px; background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--bg-2) 60%, transparent) 14px 15px); transition: border-color .2s; }
.slot:hover { border-color: var(--accent); }
.slot .trk { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); }
.slot h3 { font-size: 1.35rem; font-stretch: 108%; }
.slot p { color: var(--muted); font-size: 1.02rem; }
.slot .soon { align-self: flex-start; margin-top: auto; font-family: var(--f-display); font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }

/* Contact */
.contact h2 { font-size: clamp(2.8rem, 10vw, 7rem); font-stretch: 122%; font-weight: 800; letter-spacing: -0.035em; line-height: .9; }
.contact-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 30px; }
.email { font-family: var(--f-display); font-size: clamp(1.15rem, 3vw, 1.7rem); font-weight: 600; overflow-wrap: anywhere; }
.copy-btn { font-family: var(--f-display); font-size: 0.9rem; font-weight: 600; cursor: pointer; border: 1.5px solid var(--line); background: var(--panel); border-radius: 999px; padding: 8px 15px; }
.copy-btn:hover { border-color: var(--accent); }

.footer { padding-block: 30px 48px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--f-display); font-size: 0.88rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Lightbox (shared) */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1240px, 94vw); width: 100%; color: #fff; }
.lightbox::backdrop { background: rgba(6, 8, 12, 0.95); }
.lightbox figure { margin: 0; display: grid; gap: 12px; }
.lightbox img, .lightbox video { max-height: 80vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: 8px; }
.lightbox figcaption { font-family: var(--f-display); text-align: center; color: #D5DAE3; max-width: 80ch; margin-inline: auto; }
.lightbox figcaption span { display: block; color: #B9C0CC; font-family: var(--f-body); }
.lb-close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.4rem; cursor: pointer; }

/* Media page */
.page-head { padding-block: 64px 32px; display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(2.8rem, 9vw, 6rem); font-stretch: 122%; font-weight: 800; letter-spacing: -0.03em; line-height: .92; }
.page-head p { color: var(--muted); font-size: 1.25rem; max-width: 60ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font-family: var(--f-display); font-weight: 600; font-size: .95rem; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters button span { font-family: var(--f-mono); font-weight: 400; font-size: .8rem; opacity: .7; margin-left: 4px; }
.grid { list-style: none; margin: 0 0 96px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 36px 24px; }
.tile { display: grid; gap: 14px; align-content: start; min-width: 0; }
.tile-media { position: relative; aspect-ratio: 4 / 3; width: 100%; border-radius: 12px; overflow: hidden; background: var(--app-bg); border: 0; padding: 0; cursor: zoom-in; display: block; color: var(--app-ink); }
.tile-media img, .tile-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tile-media:hover img { transform: scale(1.03); }
.badge { position: absolute; left: 10px; bottom: 10px; font-family: var(--f-mono); font-size: .72rem; background: rgba(10,12,16,.72); color: #fff; padding: 3px 7px; border-radius: 4px; }
.scrub { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--app-blue); left: 0; opacity: 0; pointer-events: none; }
.tile-media.scrubbing .scrub { opacity: 1; }
.tile-media.empty { cursor: default; display: grid; place-items: center; }
.tile-media.empty .ph { display: grid; justify-items: center; gap: 10px; font-family: var(--f-display); font-size: .95rem; color: var(--app-muted); position: relative; z-index: 1; }
.tile-media.empty svg { width: 34px; height: 34px; }
.tile-media.empty::before { content: ""; position: absolute; inset: 0; opacity: .25; background: linear-gradient(135deg, var(--tone, var(--violet)), transparent 70%); }
.tile-media.empty::after { content: ""; position: absolute; inset: 12px; border: 1px dashed var(--app-line); border-radius: 6px; }
.tile-cap { display: grid; gap: 4px; }
.tile-cap h2 { font-size: 1.2rem; font-stretch: 105%; }
.tile-cap p { color: var(--muted); font-size: 1.05rem; line-height: 1.45; }
.tile-cap .meta { font-family: var(--f-mono); font-size: .75rem; }

/* Label colors as classes (no inline styles, for a strict CSP) */
.c-violet { background: var(--violet); } .c-iris { background: var(--iris); } .c-caribbean { background: var(--caribbean); }
.c-lavender { background: var(--lavender); } .c-cerulean { background: var(--cerulean); } .c-forest { background: var(--forest); }
.c-rose { background: var(--rose); } .c-mango { background: var(--mango); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .mq-row { animation: none !important; flex-wrap: wrap; width: auto; }
}

/* Demo details */
.gap-glow { position: absolute; top: 5px; bottom: 5px; border: 1.5px dashed rgba(169,144,221,.75); border-radius: 4px; background: rgba(169,144,221,.06); animation: glow 1.8s ease-in-out infinite; pointer-events: none; }
@keyframes glow { 50% { background: rgba(169,144,221,.16); border-color: rgba(169,144,221,1); } }
.gph { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--app-blue); z-index: 4; pointer-events: none; }
.gph::before { content: ""; position: absolute; top: -2px; left: -5px; width: 12px; height: 9px; background: var(--app-blue); clip-path: polygon(0 0,100% 0,100% 55%,50% 100%,0 55%); }
.units i.u1 { background: #F2D43D; } .units i.u2 { background: #F767A5; } .units i.u3 { background: #2FBDDF; }
.tet-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tet-tools .tb-chip[aria-pressed="true"] { border-color: var(--tdt); background: rgba(34,201,139,.18); }
.co-mark img.logo[hidden] { display: none; }

.vtl li.k-violet { --c: var(--violet); }
.vtl li.k-iris { --c: var(--iris); }
.vtl li.k-caribbean { --c: var(--caribbean); }
.vtl li.k-lavender { --c: var(--lavender); }
.vtl li.k-cerulean { --c: var(--cerulean); }
.vtl li.k-forest { --c: var(--forest); }
.vtl li.k-rose { --c: var(--rose); }
.vtl li.k-mango { --c: var(--mango); }

.gmt-foot .gmt-say { color: var(--app-ink); font-weight: 600; }
.gap-glow span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 0.72rem; font-weight: 700; color: #E9E2FF; white-space: nowrap; }
@media (max-width: 420px) { .srch-box .local { display: none; } }

/* Video walls */
.vids { display: grid; gap: 14px; }
.vids-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.vids-head h4 { font-size: 1.15rem; font-stretch: 108%; }
.vids-head span { font-family: var(--f-display); font-size: 0.85rem; color: var(--muted); }
.vid-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.vid-item { display: grid; gap: 8px; align-content: start; min-width: 0; }
.vid-item.big { grid-column: 1 / -1; }
.vid { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--app-bg); aspect-ratio: 16 / 9; box-shadow: 0 24px 50px -30px rgba(8, 12, 28, 0.6); }
.vid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s; }
.vid:hover img, .vid:focus-visible img { transform: scale(1.04); filter: brightness(.85); }
.vid .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(12, 14, 20, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1.5px solid rgba(255,255,255,.55); transition: transform .3s, background .3s; }
.vid .play::after { content: ""; position: absolute; left: 25px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.vid:hover .play { transform: scale(1.1); background: var(--accent-co, var(--accent)); }
.vid-item:not(.big) .play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.vid-item:not(.big) .play::after { left: 17px; top: 13px; border-width: 10px 0 10px 15px; }
.vid .dur { position: absolute; right: 8px; bottom: 8px; font-family: var(--f-mono); font-size: 0.72rem; color: #fff; background: rgba(0,0,0,.75); padding: 2px 6px; border-radius: 4px; }
.vid-meta { display: grid; gap: 2px; }
.vid-meta b { font-family: var(--f-display); font-weight: 650; font-size: 0.98rem; line-height: 1.3; }
.vid-item.big .vid-meta b { font-size: 1.1rem; }
.vid-meta span { font-family: var(--f-display); font-size: 0.84rem; color: var(--muted); }
@media (max-width: 560px) { .vid-grid { grid-template-columns: 1fr; } }
.video-box { max-width: min(1100px, 94vw); }
.video-frame { aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: 10px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-cap { margin-top: 12px; text-align: center; font-family: var(--f-display); color: #D5DAE3; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.video-cap a { color: #fff; }

/* OneDrive sync cycle explainer */
.pl { padding: 16px; display: grid; gap: 16px; }
.pl-tabs { flex-wrap: wrap; }
.pl-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--app-muted); font-family: var(--f-mono); font-size: 0.76rem; cursor: pointer; padding: 2px 0; }
.pl-tabs button[aria-selected="true"] { color: var(--app-ink); border-bottom-color: var(--ms); }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(24px, 0.7fr) minmax(0, 1fr) minmax(24px, 0.7fr) minmax(0, 1fr); align-items: center; gap: 6px; padding: 6px 0 4px; }
.fnode { text-align: center; padding: 12px 6px; border-radius: 12px; background: var(--app-panel); border: 1px solid var(--app-line); transition: border-color .35s, box-shadow .35s, transform .35s; min-width: 0; }
.fnode .fn-t { display: block; font-family: var(--f-display); font-weight: 700; font-size: 0.92rem; color: var(--app-ink); }
.fnode .fn-s { display: block; font-family: var(--f-display); font-size: 0.68rem; color: var(--app-muted); margin-top: 2px; }
.fnode.on { border-color: var(--ms); box-shadow: 0 0 0 4px rgba(43,140,232,.18), 0 0 28px rgba(43,140,232,.35); transform: translateY(-2px); }
.flink { position: relative; height: 2px; background: var(--app-line); }
.flink i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--ms); box-shadow: 0 0 10px var(--ms); opacity: 0; animation: flowR 1.8s linear infinite; }
.flink i:nth-child(2) { animation-delay: .6s; } .flink i:nth-child(3) { animation-delay: 1.2s; }
.flow[data-dir="down"] .flink i { animation-name: flowL; }
@keyframes flowR { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes flowL { 0% { left: calc(100% - 8px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: 0; opacity: 0; } }
.pl-lane { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 2px; --p: 0%; }
.pl-lane::before, .pl-lane::after { content: ""; position: absolute; left: 15px; top: 24px; width: 2px; }
.pl-lane::before { bottom: 24px; background: var(--app-line); }
.pl-lane::after { height: calc((100% - 48px) * var(--pk, 0)); background: var(--ms); transition: height .5s ease; }
.pl-head { width: 100%; display: grid; grid-template-columns: 32px auto minmax(0, 1fr); align-items: center; gap: 2px 12px; background: none; border: 0; padding: 8px 0; text-align: left; cursor: pointer; color: var(--app-ink); }
.pl-n { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--app-panel); border: 1.5px solid var(--app-line); font-family: var(--f-mono); font-size: 0.78rem; color: var(--app-muted); transition: all .3s; }
.pl-head b { font-family: var(--f-display); font-size: 1rem; font-weight: 700; }
.pl-head small { font-family: var(--f-display); font-size: 0.82rem; color: var(--app-muted); }
.pl-head:hover .pl-n { border-color: var(--ms); }
.pl-step.done .pl-n { border-color: var(--ms); color: var(--app-ink); }
.pl-step.on .pl-n { background: var(--ms); border-color: var(--ms); color: #fff; box-shadow: 0 0 0 5px rgba(43,140,232,.22); }
.pl-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; margin-left: 44px; }
.pl-desc > p { overflow: hidden; font-size: 1rem; line-height: 1.55; color: #CBD1DB; }
.pl-step.on .pl-desc { grid-template-rows: 1fr; }
.pl-step.on .pl-desc > p { padding-bottom: 10px; }
.pl-foot { font-family: var(--f-display); font-size: 0.84rem; color: var(--app-muted); border-top: 1px solid var(--app-line); padding-top: 10px; }
@media (max-width: 560px) {
  .fnode .fn-s { display: none; }
  .fnode .fn-t { font-size: 0.8rem; }
  .pl-head { grid-template-columns: 32px minmax(0, 1fr); }
  .pl-head small { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .flink i { animation: none; opacity: 1; left: 45%; } }
[hidden] { display: none !important; }
