/* BioGPU tech stack page (technology-v2.html) */
.ts-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 var(--s-5); }
.ts-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.ts-layer { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.ts-layer:first-child { border-color: rgba(255, 157, 52, .55); background: linear-gradient(180deg, rgba(255, 157, 52, .07), rgba(255, 157, 52, 0)); }
.ts-n { font: 500 1rem/1.4 var(--mono); color: var(--accent); }
.ts-body { display: grid; gap: var(--s-2); }
.ts-body h3 { margin: 0; font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; }
.ts-body p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 72ch; }
.ts-body .ts-fact { font: 400 .78rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.ts-body .text-link { justify-self: start; font-size: .92rem; }
@media (min-width: 901px) {
  .ts-layer { grid-template-columns: 64px 1fr; padding: var(--s-6); }
  .ts-n { font-size: 1.2rem; }
}

/* Foundation Model section on the tech stack page */
@media (min-width: 901px) { .ts-fm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ts-fm-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ts-fm-card { display: grid; gap: var(--s-2); align-content: start; height: 100%; padding: var(--s-5); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: inherit; text-decoration: none; transition: border-color .3s var(--ease); }
.ts-fm-card:hover { border-color: rgba(255, 157, 52, .6); }
.ts-fm-card b { font-weight: 500; font-size: 1.05rem; line-height: 1.35; }
.ts-fm-card > span:last-child { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* Seven components as one chain (js/tech/tech-chain.js). Without JS the list of cards shows. */
.tsc { display: grid; gap: var(--s-4); margin-bottom: var(--s-5); }
.tsc-chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); position: relative; }
.tsc-chain::before { content: ""; position: absolute; left: 8%; right: 8%; top: 44px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,157,52,.55) 0 6px, transparent 6px 11px); }
.tsc-chain button { position: relative; width: 100%; display: grid; justify-items: center; gap: 8px; padding: var(--s-3) var(--s-2); background: none; border: 1px solid transparent; border-radius: var(--radius-sm); color: #ccc; cursor: pointer; font: inherit; text-align: center; }
.tsc-ic { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: #0b0b0b; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.tsc-ic svg { width: 46px; height: 46px; fill: none; stroke: #999; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s var(--ease); }
.tsc-ic svg .f { fill: #999; stroke: none; transition: fill .3s var(--ease); }
.tsc-n { font: 500 .85rem/1 var(--mono); color: var(--muted); }
.tsc-name { font-size: .98rem; line-height: 1.3; font-weight: 500; }
.tsc-chain button.is-past .tsc-ic { border-color: rgba(255,157,52,.45); }
.tsc-chain button.is-past .tsc-ic svg { stroke: rgba(255,157,52,.7); }
.tsc-chain button.is-past .tsc-ic svg .f { fill: rgba(255,157,52,.7); }
.tsc-chain button.is-on { color: var(--text); }
.tsc-chain button.is-on .tsc-ic { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(255,157,52,.12); }
.tsc-chain button.is-on .tsc-ic svg { stroke: var(--accent); }
.tsc-chain button.is-on .tsc-ic svg .f { fill: var(--accent); }
.tsc-chain button.is-on .tsc-n { color: var(--accent); }
.tsc-chain button:hover .tsc-ic { border-color: var(--accent); }
.tsc-loop { margin: 0; text-align: center; font: 500 .9rem/1.4 var(--mono); color: var(--label); }
.tsc-runtime { width: 100%; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: baseline; justify-content: center; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-strong); border-top: 2px solid rgba(255,157,52,.55); border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: none; color: #ccc; cursor: pointer; font: inherit; }
.tsc-runtime b { font-weight: 500; color: var(--text); }
.tsc-runtime.is-on, .tsc.is-runtime .tsc-runtime { border-color: var(--accent); background: rgba(255,157,52,.07); }
.tsc.is-runtime .tsc-chain .tsc-ic { border-color: rgba(255,157,52,.6); }
.tsc.is-runtime .tsc-chain .tsc-ic svg { stroke: rgba(255,157,52,.85); }
.tsc.is-runtime .tsc-chain .tsc-ic svg .f { fill: rgba(255,157,52,.85); }
.ts-layers.is-chain .ts-layer { display: none; }
.ts-layers.is-chain .ts-layer.is-active { display: grid; animation: tsc-in .35s var(--ease); }
@keyframes tsc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ts-layers.is-chain .ts-layer.is-active { animation: none; } }
@media (max-width: 900px) {
  .tsc-chain { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-2); }
  .tsc-chain::before { display: none; }
  .tsc-ic { width: 64px; height: 64px; } .tsc-ic svg { width: 34px; height: 34px; }
  .tsc-name { font-size: .9rem; }
}
/* motion layer + active ring (tech-chain.js) */
.tsc { position: relative; padding-top: 48px; }
.tsc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.tsc-chain, .tsc-loop, .tsc-runtime { position: relative; z-index: 1; }
.tsc-chain::before { display: none; }
.tsc-ic { position: relative; }
.tsc-chain button.is-on .tsc-ic::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px dashed rgba(255,157,52,.8); animation: tsc-spin 9s linear infinite; }
.tsc-chain button.is-on .tsc-ic { transform: scale(1.06); transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); box-shadow: 0 0 28px rgba(255,157,52,.28), 0 0 0 6px rgba(255,157,52,.10); }
@keyframes tsc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tsc-chain button.is-on .tsc-ic::after { animation: none; } }
@media (max-width: 900px) { .tsc { padding-top: 0; } }

/* Model cards: six, aligned three by three, each with a small visual */
.ts-fm-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.ts-fm-card { grid-template-rows: auto auto auto 1fr; padding: var(--s-5) var(--s-5) var(--s-6); transition: border-color .25s var(--ease), background .25s var(--ease); }
.ts-fm-card:hover { background: rgba(255, 157, 52, .05); }
.ts-fm-ic { width: 84px; height: 52px; margin-bottom: var(--s-2); fill: none; stroke: #8a8a8a; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ts-fm-ic .f { fill: #8a8a8a; stroke: none; }
.ts-fm-ic .hi { stroke: var(--accent); }
.ts-fm-ic .hf { fill: var(--accent); stroke: none; }
.ts-fm-card:hover .ts-fm-ic { stroke: #cfcfcf; } .ts-fm-card:hover .ts-fm-ic .f { fill: #cfcfcf; }
.ts-fm-card b { font-size: 1.12rem; }
.ts-fm-card > span:last-child { font-size: .95rem; }
@media (max-width: 900px) { .ts-fm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ts-fm-cards { grid-template-columns: 1fr; } }
/* Bolder chain icons: filled bodies (.f2), lit parts (.f, .k), wells (.w) */
.tsc-ic { width: 100px; height: 100px; }
.tsc-ic svg { width: 60px; height: 60px; stroke-width: 2.1; }
.tsc-ic svg .f2 { fill: rgba(255,255,255,.06); stroke: #9a9a9a; }
.tsc-ic svg .w { fill: rgba(255,255,255,.10); stroke: none; }
.tsc-ic svg .k { fill: #cfcfcf; stroke: none; }
.tsc-ic svg .k2 { fill: rgba(255,157,52,.18); stroke: none; }
.tsc-chain button.is-on .tsc-ic svg .f2, .tsc-chain button.is-past .tsc-ic svg .f2, .tsc.is-runtime .tsc-ic svg .f2 { fill: rgba(255,157,52,.12); stroke: var(--accent); }
.tsc-chain button.is-on .tsc-ic svg .k, .tsc.is-runtime .tsc-ic svg .k { fill: #ffe0b8; }
.tsc-chain button.is-on .tsc-ic svg .k2 { fill: rgba(255,157,52,.35); }
.tsc-chain button.is-on .tsc-ic svg .w { fill: rgba(255,157,52,.22); }
@media (max-width: 900px) { .tsc-ic { width: 74px; height: 74px; } .tsc-ic svg { width: 44px; height: 44px; } }
