/* Resource site: Blueprint look, soft and airy, on a faint architect paper grid. One file, no frameworks, no external requests. */
@font-face { font-family: "Archivo X"; src: url("ArchivoX-900.woff2") format("woff2"); font-weight: 900; font-stretch: 125%; font-display: swap; }
/* Geist and Geist Mono are variable fonts: one file covers every weight. */
@font-face { font-family: "Geist"; src: url("Geist-500.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("GeistMono-400.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ----- tokens: light ----- */
:root {
  --ice: #E3EAFF; --ink: #0B1030; --cobalt: #1636CF; --volt: #D4F74A; --white: #F6F8FF; --navy: #0A1450;
  --bg: #E3EAFF;
  --bg-glow: radial-gradient(900px 520px at -10% -8%, rgba(22, 54, 207, .13), transparent 60%),
             radial-gradient(700px 520px at 110% 30%, rgba(212, 247, 74, .16), transparent 60%),
             linear-gradient(180deg, #E3EAFF 0%, #ECF0FF 45%, #E3EAFF 100%);
  --card: #FBFCFF;
  --card-2: #EEF2FF;          /* chips, soft panels */
  --text: #0B1030;
  --text-2: #3A4270;          /* 8:1 on ice */
  --text-3: #535B85;          /* 5.3:1 on ice, hints and meta */
  --accent: #1636CF;          /* links and accent text */
  --line: rgba(11, 16, 48, .09);
  --shadow: 0 1px 2px rgba(10, 20, 80, .05), 0 10px 30px -14px rgba(10, 20, 80, .22);
  --shadow-up: 0 2px 4px rgba(10, 20, 80, .06), 0 22px 44px -18px rgba(10, 20, 80, .32);
  /* blueprint paper: a fine grid with a stronger line every 4 squares */
  --grid-minor: rgba(22, 54, 207, .055); --grid-major: rgba(22, 54, 207, .1);
  --wm-blue: #1636CF;
  --code-bg: #0B1030; --code-text: #E9EEFF;
  --display: "Archivo X", "Arial Black", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: 16px;
  color-scheme: light;
}
/* ----- tokens: dark (deep navy, not inverted) ----- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070B24;
    --bg-glow: radial-gradient(900px 560px at -10% -10%, rgba(22, 54, 207, .38), transparent 60%),
               radial-gradient(700px 500px at 110% 35%, rgba(212, 247, 74, .06), transparent 60%),
               linear-gradient(180deg, #070B24 0%, #0A0F2E 50%, #070B24 100%);
    --card: #10173F; --card-2: #1A2256;
    --text: #EEF1FF; --text-2: #C2CAF0; --text-3: #9AA4D6; --accent: #A8B7FF;
    --line: rgba(227, 234, 255, .10);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .7);
    --shadow-up: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 44px -18px rgba(0, 0, 0, .8);
    --grid-minor: rgba(140, 160, 255, .05); --grid-major: rgba(140, 160, 255, .09);
    --wm-blue: #7B93FF;
    --code-bg: #050820;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070B24;
  --bg-glow: radial-gradient(900px 560px at -10% -10%, rgba(22, 54, 207, .38), transparent 60%),
             radial-gradient(700px 500px at 110% 35%, rgba(212, 247, 74, .06), transparent 60%),
             linear-gradient(180deg, #070B24 0%, #0A0F2E 50%, #070B24 100%);
  --card: #10173F; --card-2: #1A2256;
  --text: #EEF1FF; --text-2: #C2CAF0; --text-3: #9AA4D6; --accent: #A8B7FF;
  --line: rgba(227, 234, 255, .10);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .7);
  --shadow-up: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 44px -18px rgba(0, 0, 0, .8);
  --grid-minor: rgba(140, 160, 255, .05); --grid-major: rgba(140, 160, 255, .09);
  --wm-blue: #7B93FF;
  --code-bg: #050820;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background-color: var(--bg);
  background-image: linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
                    linear-gradient(var(--grid-minor) 1px, transparent 1px), linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px), var(--bg-glow);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px, auto, auto, auto;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px, 0 0, 0 0, 0 0;
  font: 450 16px/1.55 var(--body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; }
svg { flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.wrap { width: 100%; max-width: 1064px; margin: 0 auto; padding: 0 var(--gutter); }
.print-only { display: none; }
code {
  font: 500 .86em/1.4 var(--mono); background: var(--card-2); border: 1px solid var(--line);
  padding: .08em .35em; border-radius: 6px; overflow-wrap: anywhere;
}
code.cmd {
  display: block; width: fit-content; max-width: 100%; margin: 8px 0 4px; padding: 9px 12px;
  background: var(--code-bg); color: var(--code-text); border: 0; border-radius: 10px; font-size: 13.5px; line-height: 1.5;
}

/* ----- top ----- */
.top { padding-top: 22px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; }
.wordmark { display: inline-flex; align-items: baseline; text-decoration: none; font: 900 25px/1 var(--display); letter-spacing: -.035em; }
.wm-a, .wm-c { color: var(--text); }
.wm-b { color: var(--wm-blue); }
.wm-dot { width: .3em; height: .3em; margin-left: .1em; border-radius: 50%; background: var(--volt); box-shadow: inset 0 0 0 1.5px var(--ink); align-self: baseline; }
.theme-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--card); color: var(--text); box-shadow: var(--shadow);
}
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.back {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 9px 14px 9px 10px; border-radius: 99px;
  background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: var(--shadow);
}
.back svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ----- home: tagline, search, filters ----- */
.tagline { margin-top: 10px; font-size: 15.5px; font-weight: 550; color: var(--text); }
.tagline span { color: var(--text-3); font-weight: 450; }
.search { margin-top: 22px; }
.search-box {
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 20px; min-height: 58px; border-radius: 99px; cursor: text;
  background: var(--card); box-shadow: var(--shadow); border: 1.5px solid transparent; transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: var(--shadow), 0 0 0 4px rgba(22, 54, 207, .14); }
.search-box > svg { width: 20px; height: 20px; fill: none; stroke: var(--text-3); stroke-width: 2; stroke-linecap: round; }
.search input {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font: 500 17px/1.2 var(--body); color: var(--text); padding: 16px 0;
}
.search input::placeholder { color: var(--text-3); opacity: 1; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.q-clear[hidden] { display: none; }
.q-clear { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card-2); display: grid; place-items: center; cursor: pointer; }
.q-clear svg { width: 18px; height: 18px; stroke: var(--text-2); stroke-width: 2.2; stroke-linecap: round; }
.hint { margin: 10px 6px 0; font-size: 13px; color: var(--text-3); }

.filters {
  display: flex; gap: 8px; margin: 16px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 6px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.fchip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--line); background: color-mix(in srgb, var(--card) 70%, transparent);
  font: 700 12px/1 var(--body); letter-spacing: .06em; color: var(--text-2);
}
.fchip .ic { width: 14px; height: 14px; color: var(--accent); }
.fchip:hover { border-color: var(--accent); }
.fchip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip.is-on .ic { color: var(--volt); }
:root[data-theme="dark"] .fchip.is-on { background: var(--volt); border-color: var(--volt); color: var(--ink); }
:root[data-theme="dark"] .fchip.is-on .ic { color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fchip.is-on { background: var(--volt); border-color: var(--volt); color: var(--ink); }
  :root:not([data-theme="light"]) .fchip.is-on .ic { color: var(--ink); }
}

/* ----- shared bits ----- */
.ic { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 13px; border-radius: 99px; font: 650 13px/1 var(--body); width: fit-content; }
.pill-ghost { border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; }
.pill-volt { background: var(--volt); color: var(--ink); }
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: 99px;
  background: var(--card-2); color: var(--text); font: 750 10.5px/1 var(--body); letter-spacing: .08em; text-decoration: none; white-space: nowrap;
}
.tag .ic { color: var(--accent); width: 13px; height: 13px; }
a.tag:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 99px; font: 750 10.5px/1 var(--body); letter-spacing: .04em; white-space: nowrap; }
.badge-new { background: var(--volt); color: var(--ink); letter-spacing: .08em; }
.badge-official { background: var(--cobalt); color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 99px;
  border: 0; cursor: pointer; font: 700 15px/1 var(--body); text-decoration: none;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-soft { background: var(--card-2); color: var(--text); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: #1230BA; color: #fff; }

/* ----- hero card ----- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 18px; border-radius: 30px; min-height: 236px;
  padding: 22px 20px 22px; color: #fff; display: flex; align-items: flex-end;
  background: linear-gradient(140deg, #2448F0 0%, var(--cobalt) 30%, #0F2699 62%, var(--navy) 100%);
  box-shadow: 0 24px 50px -26px rgba(10, 20, 80, .65);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 1; }
.hero-art circle:last-child { stroke: var(--volt); stroke-opacity: .7; }
.g-banner .hero-art circle:last-child { stroke-opacity: .28; }
.hero-abhi { position: absolute; right: -14px; bottom: 0; height: 66%; width: auto; z-index: -1; filter: drop-shadow(0 10px 24px rgba(5, 10, 40, .45)); }
.hero-copy { display: flex; flex-direction: column; gap: 12px; max-width: 64%; }
.hero h1 { font: 700 23px/1.14 var(--body); letter-spacing: -.025em; text-wrap: balance; }
/* phones: the character sits inside the card (head, hand and shoulders all visible, the cut chest fades out),
   and the text column stops before the waving hand */
@media (max-width: 599px) {
  .hero { container-type: inline-size; }
  .hero-abhi { width: 37cqw; height: auto; right: 3cqw; bottom: 10px;
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%); mask-image: linear-gradient(to bottom, #000 80%, transparent 99%); }
  .hero-copy { max-width: calc(61cqw - 22px); }
  .hero h1 { font-size: clamp(20px, 6.6cqw, 23px); }
}
.hero .hl { color: var(--volt); }
.nw { white-space: nowrap; }
.hero-sub { font-size: 13.5px; font-weight: 550; color: rgba(255, 255, 255, .86); }

/* ----- toolbar: tabs + view ----- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 14px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px 0 14px; border-radius: 99px; border: 0; cursor: pointer;
  background: none; font: 650 14px/1 var(--body); color: var(--text-2); white-space: nowrap;
}
.tab .n { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--card-2); color: var(--accent); font: 700 12px/1 var(--body); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab[aria-selected="true"] .n { background: var(--volt); color: var(--ink); }
:root[data-theme="dark"] .tab[aria-selected="true"] { background: var(--cobalt); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tab[aria-selected="true"] { background: var(--cobalt); } }
.seg { display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); flex: none; }
.seg-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.seg-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.seg-btn.is-on { background: var(--card-2); color: var(--accent); }
/* phones: a compact toggle and size switch, so both fit on one line down to 340px */
@media (max-width: 599px) {
  .toolbar { gap: 8px; }
  .tabs { gap: 2px; padding: 3px; }
  .tab { gap: 5px; min-height: 34px; padding: 0 9px 0 11px; font-size: 13px; }
  .tab .n { min-width: 19px; height: 18px; padding: 0 5px; font-size: 11px; }
  .seg { padding: 3px; }
  .seg-btn { width: 34px; height: 34px; }
  .seg-btn svg { width: 16px; height: 16px; }
}
@media (max-width: 400px) {
  .toolbar { gap: 6px; }
  .tab { gap: 4px; min-height: 32px; padding: 0 7px 0 9px; font-size: 12px; letter-spacing: -.01em; }
  .tab .n { min-width: 17px; height: 17px; padding: 0 4px; font-size: 10.5px; }
  .seg { gap: 0; }
  .seg-btn { width: 30px; height: 32px; }
  .seg-btn svg { width: 15px; height: 15px; }
}

/* ----- card grid ----- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.view-large .grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.card[hidden], .panel[hidden] { display: none; }
.card > a {
  display: flex; flex-direction: column; height: 100%; padding: 6px; border-radius: 24px; text-decoration: none; color: var(--text);
  background: var(--card); box-shadow: var(--shadow); transition: transform .2s cubic-bezier(.2, .7, .3, 1), box-shadow .2s;
}
.card > a:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.card > a:focus-visible { outline-offset: 2px; border-radius: 24px; }
.card-body { display: flex; flex-direction: column; gap: 5px; flex: 1; padding: 11px 8px 6px; }
.card-title { font: 700 15px/1.25 var(--body); letter-spacing: -.012em; margin-top: 2px; }
.card-line {
  font-size: 13px; line-height: 1.4; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 8px; margin-top: auto; padding-top: 9px; }
.meta-r { font-size: 12px; color: var(--text-3); font-weight: 550; }
.view-large .card-title { font-size: 18px; }
.view-large .card-line { font-size: 14.5px; }
.view-large .card-body { padding: 14px 12px 10px; }

/* covers: square, rounded, inset in the card */
.cover {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; container-type: inline-size;
  aspect-ratio: 1 / 1; border-radius: 18px;
}
.cv-in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 9cqw 8cqw 8cqw; }
.cover-img { padding: 0; background: var(--card-2); }
.cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover::before {   /* thin blueprint rings */
  content: ""; position: absolute; z-index: -1; width: 120cqw; height: 120cqw; right: -62cqw; top: -58cqw; border-radius: 50%;
  border: 1px solid currentColor; opacity: .2; box-shadow: 0 0 0 16cqw transparent, inset 0 0 0 18cqw transparent;
}
.cover::after {    /* blueprint grid, fading out */
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 12cqw 12cqw; -webkit-mask-image: linear-gradient(160deg, rgba(0,0,0,.14), transparent 70%); mask-image: linear-gradient(160deg, rgba(0,0,0,.14), transparent 70%);
}
.cv-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }

.cover-guide { color: #fff; background: radial-gradient(90cqw 70cqw at 100% 100%, rgba(212, 247, 74, .22), transparent 70%), linear-gradient(155deg, #1C3EE6, var(--cobalt) 35%, var(--navy)); }
.cover-guide .cv-top { justify-content: flex-start; gap: 3cqw; }
.cv-eyebrow { font: 600 5.2cqw/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.cv-kw { background: var(--volt); color: var(--ink); font: 900 9cqw/1 var(--display); padding: 2.6cqw 3.4cqw 2.2cqw; border-radius: 3cqw; box-shadow: 1.4cqw 1.4cqw 0 rgba(5, 10, 40, .5); }
.cv-title { margin-top: auto; font: 900 9.6cqw/1.02 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.cv-foot { margin-top: 5cqw; font: 500 5cqw/1 var(--mono); opacity: .8; }
.cv-foot b { font-weight: 500; color: var(--volt); margin-left: 2cqw; }

.cover-skill { aspect-ratio: 5 / 4; }
.mark {
  display: grid; place-items: center; width: 17cqw; height: 17cqw; min-width: 30px; min-height: 30px; border-radius: 5cqw;
  background: #fff; color: var(--ink); box-shadow: 0 6px 16px -8px rgba(5, 10, 40, .5);
}
.mark .logo { width: 52%; height: 52%; }
.mark-img { overflow: hidden; background: #fff; }
.mark-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mark-txt { font: 900 5.6cqw/1 var(--display); letter-spacing: -.02em; }
.cv-stars { font: 600 5.6cqw/1 var(--mono); padding: 2.2cqw 3cqw; border-radius: 99px; background: rgba(255, 255, 255, .18); white-space: nowrap; }
.cv-name { margin-top: auto; font: 900 var(--fs, 10cqw)/1.04 var(--display); letter-spacing: -.025em; hyphens: none; }
.cv-by { margin-top: 2.5cqw; font: 500 5.2cqw/1.2 var(--mono); opacity: .78; }
.tone-cobalt { color: #fff; background: radial-gradient(80cqw 60cqw at 100% 0%, rgba(255, 255, 255, .16), transparent 70%), linear-gradient(150deg, #2A4CF2, var(--cobalt) 45%, #0F2699); }
.tone-cobalt .mark { color: var(--cobalt); }
.tone-ice { color: var(--ink); background: linear-gradient(150deg, #FFFFFF, #E3EAFF 70%, #D3DEFF); }
.tone-ice .mark { background: var(--ink); color: #fff; }
.tone-ice .cv-stars { background: rgba(11, 16, 48, .07); }
.tone-ink { color: #fff; background: radial-gradient(90cqw 70cqw at 0% 100%, rgba(22, 54, 207, .7), transparent 70%), linear-gradient(160deg, #141C4A, var(--ink)); }
.tone-ink .mark { background: var(--volt); }
.tone-ink .cv-name { color: #fff; }
.tone-volt { color: var(--ink); background: radial-gradient(80cqw 60cqw at 100% 0%, rgba(255, 255, 255, .5), transparent 70%), linear-gradient(150deg, #E1FB7A, var(--volt) 50%, #BFE82E); }
.tone-volt .mark { background: var(--ink); color: var(--volt); }
.tone-volt .cv-stars { background: rgba(11, 16, 48, .08); }
.tone-sky { color: var(--navy); background: linear-gradient(150deg, #CCD9FF, #A9BEFF 60%, #8EA8FF); }
.tone-sky .mark { background: var(--navy); color: #fff; }
.tone-sky .cv-stars { background: rgba(10, 20, 80, .1); }
:root[data-theme="dark"] .tone-ice { color: #fff; background: linear-gradient(150deg, #26306B, #1A2256 70%, #151C4A); }
:root[data-theme="dark"] .tone-ice .mark { background: #fff; color: var(--ink); }
:root[data-theme="dark"] .tone-ice .cv-stars { background: rgba(255, 255, 255, .12); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tone-ice { color: #fff; background: linear-gradient(150deg, #26306B, #1A2256 70%, #151C4A); }
  :root:not([data-theme="light"]) .tone-ice .mark { background: #fff; color: var(--ink); }
  :root:not([data-theme="light"]) .tone-ice .cv-stars { background: rgba(255, 255, 255, .12); }
}

.none-yet { padding: 18px 4px; color: var(--text-2); }
.empty { margin: 8px 0 0; padding: 34px 22px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty[hidden] { display: none; }
.empty-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); }
.empty-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.empty h2 { font: 700 18px/1.2 var(--body); }
.empty p { color: var(--text-2); font-size: 14.5px; max-width: 30em; }
.empty .btn { margin-top: 6px; }

/* ----- the pipeline (coming soon) ----- */
.pipeline {
  margin-top: 36px; padding: 24px 20px 22px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow);
  display: grid; gap: 20px; position: relative; overflow: hidden;
}
.pipe-copy { display: flex; flex-direction: column; gap: 10px; }
.pipeline h2 { font: 900 25px/1 var(--display); letter-spacing: -.03em; }
.pipe-copy p { color: var(--text-2); font-size: 15px; max-width: 30em; }
.pipe { position: relative; container-type: inline-size; height: 104px; display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 20px; }
.pipe-line { position: absolute; left: 19px; right: 19px; bottom: 38px; height: 2px; background-image: linear-gradient(90deg, var(--accent) 50%, transparent 50%); background-size: 10px 2px; opacity: .45; }
.bot { position: relative; width: 38px; height: 38px; border-radius: 13px; background: var(--cobalt); box-shadow: 0 8px 16px -8px rgba(10, 20, 80, .6); }
.bot::before, .bot::after { content: ""; position: absolute; top: 14px; width: 6px; height: 7px; border-radius: 3px; background: #fff; }
.bot::before { left: 10px; } .bot::after { right: 10px; }
.bot i { position: absolute; left: 50%; top: -9px; width: 2px; height: 8px; margin-left: -1px; background: currentColor; color: var(--text-3); }
.bot i::after { content: ""; position: absolute; top: -4px; left: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 1.5px var(--ink); }
.bot-2 { background: var(--navy); } .bot-4 { background: var(--navy); }
.bot-3 { background: #5C78FF; }
.bot-5 { background: var(--volt); } .bot-5::before, .bot-5::after { background: var(--ink); }
:root[data-theme="dark"] .bot-2, :root[data-theme="dark"] .bot-4 { background: #2A3577; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bot-2, :root:not([data-theme="light"]) .bot-4 { background: #2A3577; } }
.bot em { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); font: 600 10.5px/1 var(--mono); font-style: normal; color: var(--text-3); letter-spacing: .04em; white-space: nowrap; }
.pipe-card {
  --step: calc((100cqw - 38px) / 4);
  position: absolute; left: 8px; top: 8px; width: 22px; height: 28px; border-radius: 5px; padding: 5px 4px; display: flex; flex-direction: column; gap: 3px;
  background: var(--volt); box-shadow: 0 0 0 1.5px var(--ink), 3px 3px 0 var(--ink);
  animation: pass 7s cubic-bezier(.6, 0, .3, 1) infinite;
}
.pipe-card b { display: block; height: 2px; border-radius: 1px; background: var(--ink); }
.pipe-card b:nth-child(2) { width: 70%; } .pipe-card b:nth-child(3) { width: 85%; }
@keyframes pass {
  0% { transform: translate(0, 6px); opacity: 0; }
  5%, 12% { transform: translate(0, 0); opacity: 1; }
  20%, 30% { transform: translate(var(--step), 0) rotate(-6deg); }
  38%, 48% { transform: translate(calc(var(--step) * 2), 0) rotate(5deg); }
  56%, 66% { transform: translate(calc(var(--step) * 3), 0) rotate(-4deg); }
  74%, 86% { transform: translate(calc(var(--step) * 4), 0) rotate(0); opacity: 1; }
  94%, 100% { transform: translate(calc(var(--step) * 4), -10px) scale(.6); opacity: 0; }
}
.bot { animation: bop 7s ease-in-out infinite; }
.bot-1 { animation-delay: .3s; } .bot-2 { animation-delay: 1.4s; } .bot-3 { animation-delay: 2.66s; }
.bot-4 { animation-delay: 3.92s; } .bot-5 { animation-delay: 5.18s; }
@keyframes bop { 0%, 9%, 100% { transform: none; } 3% { transform: translateY(-6px); } 6% { transform: translateY(1px); } }
.pipe-cta .soon { margin: 0; }
.pipeline .soon { background: var(--card-2); color: var(--text); }
.pipeline .soon strong { color: var(--accent); }
.pipeline .dl-form label { color: var(--text); }
.pipeline .fine { color: var(--text-3); }

/* ----- Studio Zero (coming soon, above the crew; the smaller card) ----- */
.studio {
  margin-top: 36px; padding: 22px 20px 20px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow);
  display: grid; gap: 18px; align-items: center;
}
.studio-copy { display: flex; flex-direction: column; gap: 10px; }
.studio h2 { font: 900 25px/1 var(--display); letter-spacing: -.03em; }
.studio-copy p { color: var(--text-2); font-size: 15px; max-width: 26em; }
.studio-art { width: 100%; max-width: 340px; justify-self: center; }
@media (min-width: 700px) {
  .studio { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 32px; padding: 26px 32px 26px; }
  .studio-art { max-width: none; }
}
.studio + .pipeline { margin-top: 20px; }

/* ----- footer ----- */
.foot { margin-top: 56px; padding-top: 8px; padding-bottom: 44px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.foot .wordmark { font-size: 19px; }
.foot-made { font-size: 14px; color: var(--text-2); }
.foot-made a { color: var(--text); font-weight: 650; text-decoration: none; }
.foot-made a:hover { color: var(--accent); }
.foot-safe {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 550; color: var(--text-2);
}
.foot-safe svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.foot-fine { font-size: 12.5px; color: var(--text-3); }

/* ----- guide page ----- */
.g-head { padding: 18px 0 8px; max-width: 760px; }
.g-banner {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; padding: 24px 20px 26px; color: #fff;
  background: radial-gradient(420px 260px at 100% 100%, rgba(212, 247, 74, .2), transparent 70%), linear-gradient(150deg, #2448F0, var(--cobalt) 35%, var(--navy));
  box-shadow: 0 24px 50px -26px rgba(10, 20, 80, .65);
}
.kw { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.kw-label { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.chip { display: inline-flex; align-items: center; background: var(--volt); color: var(--ink); font-family: var(--display); font-weight: 900; line-height: 1; border-radius: 10px; }
.chip-lg { font-size: clamp(30px, 10vw, 54px); padding: .16em .28em .12em; box-shadow: 5px 5px 0 rgba(5, 10, 40, .55); }
.g-banner h1 { font: 900 clamp(25px, 7.4vw, 46px)/1.04 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.sub { margin-top: 14px; font: 500 16px/1.45 var(--body); color: rgba(255, 255, 255, .9); max-width: 36em; }
.g-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 18px 4px 0; font-size: 13.5px; color: var(--text-3); font-weight: 550; }
.intro { margin: 14px 4px 0; color: var(--text-2); font-size: 16.5px; max-width: 38em; }

.g-body { display: block; margin-top: 22px; }
.toc { background: var(--card); border-radius: 24px; padding: 18px 20px 12px; box-shadow: var(--shadow); }
.toc h2 { font: 650 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 8px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc li + li { border-top: 1px solid var(--line); }
.toc a { display: flex; gap: 12px; padding: 11px 0; color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.35; }
.toc a::before { content: counter(toc); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--card-2); color: var(--accent); font: 700 12.5px/1 var(--body); }
.toc a:hover { color: var(--accent); }

.item { margin-top: 16px; padding: 24px 20px 22px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); max-width: 760px; }
.item h2 { display: flex; gap: 12px; align-items: flex-start; font: 900 clamp(19px, 5.4vw, 25px)/1.15 var(--display); letter-spacing: -.025em; }
.num { flex: none; display: grid; place-items: center; width: 1.65em; height: 1.65em; margin-top: -.18em; background: var(--cobalt); color: #fff; border-radius: 10px; font-size: .85em; }
.why { margin-top: 14px; font-size: 16.5px; color: var(--text); }
.shot { display: block; width: 100%; height: auto; margin-top: 18px; border-radius: 16px; box-shadow: var(--shadow); }
.item h3 { font: 650 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.item > h3 { margin-top: 22px; }
.steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 38px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center;
  font: 700 12.5px/1 var(--body); color: var(--accent); background: var(--card-2); border-radius: 50%;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 12.5px; top: 30px; bottom: 3px; width: 1.5px; background: var(--line); }

.prompt, .cmd-box { margin-top: 18px; background: var(--code-bg); color: var(--code-text); border-radius: 18px; overflow: hidden; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid rgba(227, 234, 255, .12); }
.prompt h3, .cmd-box h4 { font: 650 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--volt); }
.cmd-box h4 { text-transform: none; letter-spacing: 0; font: 600 13px/1.3 var(--body); color: #C9D3FF; }
.prompt pre, .cmd-box pre { margin: 0; padding: 14px 16px 18px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 13.5px/1.62 var(--mono); }
.prompt pre:focus-visible, .cmd-box pre:focus-visible { outline: 3px solid var(--volt); outline-offset: -3px; border-radius: 0; }
.prompt mark { background: rgba(212, 247, 74, .16); color: var(--volt); border-radius: 3px; padding: 0 2px; }
.copy {
  flex: none; font: 700 14px/1 var(--body); color: var(--ink); background: var(--volt); border: 0; border-radius: 99px;
  padding: 0 18px; min-height: 40px; min-width: 84px; cursor: pointer;
}
.copy:hover { background: #E3FF73; }
.copy:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.copy.done { background: #fff; }

.check { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: var(--card-2); }
.check h3 { display: flex; align-items: center; gap: 10px; }
.tick { width: 22px; height: 22px; border-radius: 50%; background: var(--cobalt); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.check p { margin-top: 8px; }
.links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.links a { display: inline-block; padding: 6px 0; font-weight: 600; }
.links a::after { content: "\2197"; display: inline-block; margin-left: 6px; font-size: .85em; text-decoration: none; }

/* ----- download card ----- */
.dl {
  margin: 28px 0 8px; padding: 26px 22px 24px; border-radius: 28px; max-width: 760px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(380px 240px at 100% 0%, rgba(212, 247, 74, .18), transparent 70%), linear-gradient(150deg, #13207A, var(--navy) 55%, #070E3A);
  box-shadow: 0 24px 50px -26px rgba(10, 20, 80, .65);
}
.dl-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--volt); margin-bottom: 14px; }
.dl-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.dl h2 { font: 900 clamp(21px, 5.8vw, 27px)/1.12 var(--display); letter-spacing: -.025em; }
.inc { margin: 14px 0 0; padding: 0; list-style: none; }
.inc li { position: relative; padding: 4px 0 4px 26px; color: rgba(255, 255, 255, .92); }
.inc li::before { content: ""; position: absolute; left: 0; top: .66em; width: 12px; height: 12px; background: var(--volt); border-radius: 4px; }
.dl-form { margin-top: 18px; }
.dl-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.dl-row { display: flex; flex-direction: column; gap: 10px; }
.dl-form input {
  width: 100%; font: 500 17px/1.2 var(--body); color: var(--ink); background: #fff;
  border: 0; border-radius: 99px; padding: 14px 20px; min-height: 52px; box-shadow: inset 0 0 0 1.5px rgba(11, 16, 48, .18);
}
.dl-form input:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
.dl-form button { font: 700 16px/1 var(--body); color: var(--ink); background: var(--volt); border: 0; border-radius: 99px; min-height: 52px; padding: 0 22px; cursor: pointer; }
.dl-form button:hover { background: #E3FF73; }
.dl-form button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.fine { margin-top: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.soon { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .09); font-size: 15px; }
.soon strong { color: var(--volt); }

/* ----- skill page ----- */
.skill { max-width: 760px; }
.s-head {
  position: relative; overflow: hidden; isolation: isolate; container-type: inline-size; margin-top: 18px; border-radius: 30px;
  padding: 22px 22px 24px; min-height: 230px; display: flex; flex-direction: column; aspect-ratio: auto;
  box-shadow: 0 24px 50px -26px rgba(10, 20, 80, .55);
}
.s-head::before {
  content: ""; position: absolute; z-index: -1; width: 90cqw; height: 90cqw; right: -40cqw; top: -45cqw; border-radius: 50%; border: 1px solid currentColor; opacity: .22;
}
.s-head .mark { width: 54px; height: 54px; border-radius: 16px; }
.s-head .mark-txt { font-size: 17px; }
.s-head .cv-stars { font-size: 13px; padding: 7px 11px; }
.s-head .cv-name { font-size: min(var(--fs, 9.4cqw), 52px); margin-top: auto; padding-top: 34px; }
.s-head .cv-by { font-size: 13px; margin-top: 10px; }
.s-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 2px 0; }
.s-meta .badge { height: 26px; padding: 0 11px; font-size: 11.5px; }
.s-line { margin: 14px 2px 0; font: 700 21px/1.25 var(--body); letter-spacing: -.02em; text-wrap: balance; }
.s-sec { margin-top: 14px; padding: 20px 20px 20px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.s-sec > h2 { display: flex; align-items: center; gap: 10px; font: 700 17px/1.2 var(--body); letter-spacing: -.015em; margin-bottom: 10px; }
.sn { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 9px; background: var(--cobalt); color: #fff; font-size: 13px; font-weight: 700; }
.s-sec > p { color: var(--text-2); font-size: 16px; }
.helps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.helps li { position: relative; padding-left: 32px; font-size: 16px; }
.helps li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px; background: var(--volt); }
.helps li::after { content: ""; position: absolute; left: 8px; top: 5px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2.3px 2.3px 0; transform: rotate(45deg); }
.try { margin-top: 14px; padding: 13px 15px; border-radius: 16px; background: var(--card-2); font-size: 14.5px; color: var(--text-2); }
.try span { display: block; font: 650 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 7px; }
.s-sec .btn-primary { margin-top: 2px; }
.repo { margin-top: 8px; font: 500 13px/1.3 var(--mono); color: var(--text-3); }
.route { margin-top: 18px; }
.route h3 { font: 650 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.route > p { margin-top: 8px; padding: 13px 15px; border-radius: 16px; background: var(--card-2); font-size: 15px; }
.route .cmd-box { margin-top: 8px; }
.route-no > p { color: var(--text-2); }
.more { margin-top: 10px; }
.more summary { cursor: pointer; padding: 10px 2px; font-weight: 650; font-size: 14.5px; color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--card-2); font-weight: 700; }
.more[open] summary::before { content: "\2212"; }
.more .cmd-box { margin-top: 8px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fact { padding: 13px 14px; border-radius: 16px; background: var(--card-2); }
.fact dt { font: 650 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.fact dd { margin: 6px 0 0; font: 700 15.5px/1.25 var(--body); }
.note { margin-top: 14px; padding: 18px 20px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); border-left: 0; position: relative; overflow: hidden; }
.note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.note-warn::before { background: var(--volt); }
.note h2 { display: flex; align-items: center; gap: 10px; font: 700 16px/1.2 var(--body); margin-bottom: 8px; }
.note p { color: var(--text-2); font-size: 15px; }
.note-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); position: relative; }
.note-ic::after { content: "i"; font: 800 14px/1 var(--body); color: var(--accent); }
.note-safe .note-ic { background: var(--cobalt); }
.note-safe .note-ic::after { content: ""; width: 5px; height: 10px; margin-top: -3px; border: solid #fff; border-width: 0 2.3px 2.3px 0; transform: rotate(45deg); }
.note-warn .note-ic { background: var(--volt); }
.note-warn .note-ic::after { content: "!"; color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 160%); margin: 0; z-index: 9;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 12px 30px -10px rgba(5, 10, 40, .6); transition: transform .22s ease, visibility .22s; pointer-events: none; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ----- wider screens ----- */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .wordmark { font-size: 30px; }
  .hero { min-height: 270px; padding: 30px 30px 30px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 14.5px; }
  .hero-abhi { height: 86%; right: 4%; }
  .hero-copy { max-width: 58%; }
  .grid { gap: 16px; }
  .filters { flex-wrap: wrap; gap: 7px; margin: 16px 0 0; padding: 4px 0 6px; overflow: visible; }
  .fchip { padding: 0 12px; }
  .view-large .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl, .pipeline { padding: 32px 32px 30px; }
  .dl-row { flex-direction: row; }
  .dl-form button { flex: none; }
  .g-banner { padding: 32px 32px 34px; }
  .item { padding: 30px 30px 26px; }
  .s-sec, .note { padding: 24px 26px; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* copy and CTA side by side on top, the scene full width below so Agent HQ gets the room */
  .pipeline { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: 40px; }
  .pipe-copy { grid-column: 1; grid-row: 1; }
  .pipe-cta { grid-column: 2; grid-row: 1; }
  .pipeline > .pipe, .pipeline > .pipe-hq { grid-column: 1 / -1; grid-row: 2; }
  .pipe-cta .dl-form, .pipe-cta .soon { max-width: 560px; }
}
@media (min-width: 860px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .view-large .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .view-large .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { min-height: 300px; padding: 40px 44px; }
  .hero h1 { font-size: 36px; }
  .hero-copy { max-width: 60%; }
  .hero-abhi { height: 94%; right: 7%; }
  .g-head { padding-top: 26px; max-width: none; }
  .g-banner { padding: 44px 48px 46px; }
  .g-banner h1, .sub { max-width: 820px; }
  .g-meta, .intro { margin-left: 8px; }
  .g-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
  .toc { position: sticky; top: 20px; }
  .g-main > .item:first-child { margin-top: 0; }
  .skill { max-width: 820px; }
}

/* ----- the Night Shift Crew: robots in the Agent HQ look ----- */
.rb { display: block; overflow: visible; }
.rb rect, .rb path, .rb circle { stroke: #0B1030; stroke-width: 2; stroke-linejoin: round; }
.rb .rb-ant { fill: none; }
.rb .rb-tip { fill: var(--volt); stroke-width: 1.6; }
.rb .rb-screen { fill: #fff; stroke: none; }
.rb .rb-eye, .rb .rb-leg { fill: #0B1030; stroke: none; }

/* B: peek strip under the hero */
.peek {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 7px 16px 7px 12px; min-height: 48px; border-radius: 18px;
  color: var(--text); text-decoration: none; font: 600 13.5px/1.25 var(--body);
  background: color-mix(in srgb, var(--card) 72%, transparent); border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent);
}
.peek:hover { border-style: solid; }
.walk { --trav: 34px; position: relative; flex: none; width: 56px; height: 30px; overflow: hidden; border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.walker { position: absolute; left: 0; bottom: 1px; width: 22px; animation: crew-walk 7s linear infinite; }
.walker .rb { width: 22px; height: 26px; animation: crew-bob .32s ease-in-out infinite alternate; }
.walker .rb-leg { transform-box: fill-box; transform-origin: 50% 0; animation: crew-step .32s ease-in-out infinite alternate; }
.walker .rb-leg-2 { animation-direction: alternate-reverse; }
@keyframes crew-walk {
  0% { transform: translateX(0); } 46% { transform: translateX(var(--trav)); }
  50% { transform: translateX(var(--trav)) scaleX(-1); } 96% { transform: translateX(0) scaleX(-1); } 100% { transform: translateX(0); }
}
@keyframes crew-bob { to { transform: translateY(-1px); } }
@keyframes crew-step { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
.peek-t { flex: 1; min-width: 0; }
.pk-short { display: none; }
.peek-go { flex: none; color: var(--accent); font-weight: 700; white-space: nowrap; }
@media (max-width: 420px) {
  .peek { gap: 8px; padding: 6px 12px 6px 10px; font-size: 12.5px; }
  .walk { --trav: 20px; width: 42px; }
  .pk-long { display: none; }
  .pk-short { display: inline; }
}
@media (max-width: 360px) {
  .peek { gap: 6px; padding: 6px 10px 6px 8px; font-size: 12px; }
  .walk { --trav: 8px; width: 30px; }
}

/* C: the peekaboo robot (home only, driven by app.js).
   .mascot is a zero-size anchor ON a screen edge (set by data-edge and --pos). The robot is drawn standing on that
   edge and rotated so its head points into the page; it sits fully outside the screen until .is-on slides it in. */
.mascot { position: fixed; z-index: 30; width: 0; height: 0; pointer-events: none; --pos: 50%; }
.mascot[data-edge="bottom"] { left: var(--pos); bottom: 0; --rot: 0deg; }
.mascot[data-edge="right"]  { right: 0; top: var(--pos); --rot: -90deg; }
.mascot[data-edge="left"]   { left: 0; top: var(--pos); --rot: 90deg; }
.mascot[data-edge="top"]    { left: var(--pos); top: 0; --rot: 180deg; }
.mascot-bot {
  position: absolute; left: -36px; bottom: 0; width: 72px; height: 81px; padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 100%; transform: rotate(var(--rot)) translateY(105%); visibility: hidden;
  transition: transform .32s cubic-bezier(.5, 0, .9, .5), visibility 0s .32s;
}
.mascot.is-on .mascot-bot {
  pointer-events: auto; visibility: visible; transform: rotate(var(--rot)) translateY(19px);   /* hand + head show, chin stays behind the edge */
  transition: transform .55s cubic-bezier(.3, 1.5, .5, 1), visibility 0s;
}
.mascot-bot .rb { width: 72px; height: 81px; filter: drop-shadow(0 4px 10px rgba(11, 16, 48, .28)); }
.rb-peek .rb-eyes { animation: peek-look 3.4s ease-in-out infinite; }
@keyframes peek-look { 0%, 30% { transform: translateX(0); } 40%, 62% { transform: translateX(-3px); } 72%, 100% { transform: translateX(2px); } }
.rb-peek .rb-eye { transform-box: fill-box; transform-origin: 50% 50%; animation: peek-blink 3.4s infinite; }
@keyframes peek-blink { 0%, 52%, 58%, 100% { transform: scaleY(1); } 55% { transform: scaleY(.15); } }
.rb-peek .rb-arm { transform-box: fill-box; transform-origin: 50% 100%; }
.mascot.is-on .rb-peek .rb-arm { animation: crew-wave 1.6s .5s ease-in-out infinite; }
@keyframes crew-wave { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(32deg); } 40%, 80% { transform: rotate(-4deg); } }
.mascot-bub {
  position: absolute; width: max-content; max-width: 180px; margin: 0; padding: 9px 13px;
  border-radius: 16px; background: var(--ink); color: #fff; font: 600 13.5px/1.3 var(--body); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; pointer-events: none;
}
.mascot[data-edge="bottom"] .mascot-bub { bottom: 76px; left: 0; transform: translateX(-50%); }
.mascot[data-edge="top"]    .mascot-bub { top: 76px; left: 0; transform: translateX(-50%); }
.mascot[data-edge="right"]  .mascot-bub { right: 76px; top: 0; transform: translateY(-50%); }
.mascot[data-edge="left"]   .mascot-bub { left: 76px; top: 0; transform: translateY(-50%); }
.mascot-bub.show { opacity: 1; visibility: visible; }
:root[data-theme="dark"] .mascot-bub { background: var(--volt); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mascot-bub { background: var(--volt); color: var(--ink); }
}

/* E: crew teaser at the end of guide and skill pages */
.crew-teaser {
  display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 36px auto 0; padding: 14px 18px 14px 14px;
  border-radius: 24px; background: var(--card); box-shadow: var(--shadow);
}
.ct-art {
  flex: none; display: flex; align-items: flex-end; justify-content: center; width: 104px; height: 88px; padding-bottom: 2px; border-radius: 18px;
  background: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 13px 13px,
              linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 13px 13px,
              linear-gradient(150deg, #2448F0, var(--cobalt) 45%, var(--navy));
}
.ct-art .rb { width: 32px; height: 38px; margin: 0 -1px -6px; }
.ct-art .rb:nth-child(2) { width: 36px; height: 43px; margin-bottom: 4px; }
.ct-copy { min-width: 0; }
.ct-soon { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; background: var(--volt); color: var(--ink); font: 700 11px/1 var(--body); }
.crew-teaser h2 { margin-top: 7px; font: 900 19px/1.1 var(--display); letter-spacing: -.02em; }
.crew-teaser p { margin-top: 4px; color: var(--text-2); font-size: 14.5px; line-height: 1.4; }
.ct-go { display: inline-block; margin-top: 6px; padding: 4px 0; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.ct-go:hover { text-decoration: underline; }
@media (max-width: 400px) { .ct-art { width: 84px; height: 76px; } .ct-art .rb { width: 26px; height: 31px; } .ct-art .rb:nth-child(2) { width: 30px; height: 36px; } }

@media (prefers-reduced-motion: reduce) {
  .walker, .walker .rb, .walker .rb-leg { animation: none; }
  .walker { transform: translateX(calc(var(--trav) / 2)); }
  .mascot { display: none !important; }
  html { scroll-behavior: auto; }
  .toast, .card > a, .search-box { transition: none; }
  .card > a:hover { transform: none; }
  .pipe-card { animation: none; transform: translateX(calc(var(--step) * 2)); }
  .bot { animation: none; }
}

/* ----- print (the guide PDF): light, no form, no buttons, links spelled out ----- */
@media print {
  @page { size: A4; margin: 16mm 15mm 16mm; }
  :root, :root[data-theme="dark"] {
    --bg: #fff; --card: #fff; --card-2: #EEF2FF; --text: #0B1030; --text-2: #39416B; --text-3: #535B85; --accent: #1636CF;
    --line: rgba(11, 16, 48, .14); --shadow: none; color-scheme: light;
  }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.5; }
  .wrap { max-width: none; padding: 0; }
  .top, .dl, .copy, .toast, .foot-safe, .theme-btn, .back, .hero-art, .search, .filters, .crew-teaser, .peek, .mascot { display: none !important; }
  .print-only { display: block; margin: 8pt 0 0; font-size: 9.5pt; color: var(--text-2); }
  .g-head { padding: 0 0 6pt; max-width: none; }
  .g-banner { background: #fff; color: var(--ink); box-shadow: none; padding: 0; border-radius: 0; }
  .kw { margin-bottom: 12pt; }
  .kw-label { color: var(--text-3); }
  .chip-lg { font-size: 30pt; box-shadow: inset 0 0 0 2px var(--ink); }
  .g-banner h1 { font-size: 24pt; }
  .sub { color: var(--ink); font-weight: 600; }
  .g-meta, .intro { margin-left: 0; }
  .g-body { display: block; margin-top: 12pt; }
  .toc { padding: 8pt 12pt; border: 1.5px solid var(--ink); border-radius: 10px; break-inside: avoid; }
  .toc a { padding: 4pt 0; }
  .item { max-width: none; box-shadow: none; border-radius: 0; padding: 14pt 0 0; margin-top: 14pt; border-top: 1.5px solid var(--ink); }
  .item h2 { font-size: 15pt; break-after: avoid; }
  .item h3 { break-after: avoid; }
  .why, .steps li, .check, .prompt, .links { break-inside: avoid; }
  .steps li::after { display: none; }
  .prompt { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 10px; }
  .prompt-head { border-bottom-color: var(--line); }
  .prompt h3 { color: var(--cobalt); }
  .prompt pre { font-size: 9pt; }
  .prompt mark { background: #EEF9C4; color: var(--ink); }
  code.cmd { background: #EEF2FF; color: var(--ink); }
  .check { background: #fff; border: 1.5px solid var(--cobalt); }
  .links a::after { content: " " attr(href); font: 400 8pt/1.4 var(--mono); color: var(--text-2); margin-left: 4px; overflow-wrap: anywhere; }
  .foot { margin-top: 18pt; padding: 10pt 0 0; border-top: 1.5px solid var(--ink); }
}
