/* trgsys.com v2 — loaded after style.css. Plainer type, lists instead of cards, no emoji. */

/* ── Wordmark (replaces the ET box) ── */
.wordmark { display: inline-flex; align-items: baseline; gap: 9px; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--text); }
.wordmark:hover { color: var(--text); }
.wm-chev { font-family: var(--mono); font-weight: 700; color: var(--accent); }

/* ── Footer ── */
.footer-brand p { margin-bottom: 0; }
.footer-bottom span { max-width: 560px; }

/* ── Home: hero ── */
.h2-hero { position: relative; padding: 88px 0 40px; overflow: hidden; }
.h2-hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 640px; background: radial-gradient(ellipse at 70% 30%, rgba(79,142,247,0.13), transparent 60%); pointer-events: none; }
.h2-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; max-width: 820px; margin-bottom: 22px; }
.h2-hero h1 em { font-style: normal; color: var(--red); }
.h2-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 560px; line-height: 1.6; margin-bottom: 30px; }

/* ── Home: attack path graphic ── */
.path-wrap { margin-top: 48px; scroll-margin-top: 90px; }
.path-svg { width: 100%; height: auto; display: block; overflow: visible; }
.path-svg.v { display: none; max-width: 380px; margin: 0 auto; }
@media (max-width: 760px) { .path-svg.h { display: none; } .path-svg.v { display: block; } .h2-hero { padding-top: 56px; } }
.path-cap { font-size: 0.86rem; color: var(--text-3); margin-top: 14px; text-align: center; }

.bg-edge { stroke: #1b2436; stroke-width: 1; }
.bg-node { fill: #1b2436; }
.bg-node.tw { animation: twinkle 5s ease-in-out infinite; }
.bg-node.tw2 { animation: twinkle 7s ease-in-out infinite 2s; }
@keyframes twinkle { 0%,100% { fill: #1b2436; } 50% { fill: #2f3f5c; } }

.edge-base { stroke: #24314a; stroke-width: 2; stroke-dasharray: 4 6; }
.edge { stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(248,113,113,0.6)); }
.elabel { font-family: var(--mono); font-size: 11px; fill: var(--text-3); letter-spacing: 0.02em; }
.node circle { fill: #131a28; stroke: #2a3954; stroke-width: 2; }
.node .ico { fill: none; stroke: var(--text-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.node .ring { fill: none; stroke: var(--red); stroke-width: 2; opacity: 0; }
.nlabel { font-family: var(--font); font-size: 15px; font-weight: 600; fill: var(--text); }
.nsub { font-family: var(--font); font-size: 12.5px; fill: var(--text-3); }

/* 9s loop: each hop draws in turn, everything holds, then resets together */
.e0 { animation: e0 9s ease-in-out infinite; }
.e1 { animation: e1 9s ease-in-out infinite; }
.e2 { animation: e2 9s ease-in-out infinite; }
.e3 { animation: e3 9s ease-in-out infinite; }
@keyframes e0 { 0%,6%   { stroke-dashoffset: 100; opacity: 1; } 16%,86% { stroke-dashoffset: 0; opacity: 1; } 95%,100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes e1 { 0%,20%  { stroke-dashoffset: 100; opacity: 1; } 30%,86% { stroke-dashoffset: 0; opacity: 1; } 95%,100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes e2 { 0%,34%  { stroke-dashoffset: 100; opacity: 1; } 44%,86% { stroke-dashoffset: 0; opacity: 1; } 95%,100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes e3 { 0%,48%  { stroke-dashoffset: 100; opacity: 1; } 58%,86% { stroke-dashoffset: 0; opacity: 1; } 95%,100% { stroke-dashoffset: 0; opacity: 0; } }

.n0 circle, .n0 .ico { animation: hit0 9s ease infinite; }
.n1 circle, .n1 .ico { animation: hit1 9s ease infinite; }
.n2 circle, .n2 .ico { animation: hit2 9s ease infinite; }
.n3 circle, .n3 .ico { animation: hit3 9s ease infinite; }
.n4 circle, .n4 .ico { animation: hit4 9s ease infinite; }
@keyframes hit0 { 0%,1%   { stroke: #2a3954; } 5%,88%  { stroke: var(--red); } 96%,100% { stroke: #2a3954; } }
@keyframes hit1 { 0%,15%  { stroke: #2a3954; } 19%,88% { stroke: var(--red); } 96%,100% { stroke: #2a3954; } }
@keyframes hit2 { 0%,29%  { stroke: #2a3954; } 33%,88% { stroke: var(--red); } 96%,100% { stroke: #2a3954; } }
@keyframes hit3 { 0%,43%  { stroke: #2a3954; } 47%,88% { stroke: var(--red); } 96%,100% { stroke: #2a3954; } }
@keyframes hit4 { 0%,57%  { stroke: #2a3954; } 61%,88% { stroke: var(--red); } 96%,100% { stroke: #2a3954; } }
.n0 .ring { animation: ring0 9s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.n4 .ring { animation: ring4 9s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring0 { 0%,1% { opacity: 0; transform: scale(1); } 3% { opacity: 0.9; } 14%,100% { opacity: 0; transform: scale(1.8); } }
@keyframes ring4 { 0%,57% { opacity: 0; transform: scale(1); } 60% { opacity: 0.9; } 72%,100% { opacity: 0; transform: scale(2); } }
.n4 circle { animation-name: hit4, glow4; animation-duration: 9s; animation-iteration-count: infinite; }
@keyframes glow4 { 0%,57% { fill: #131a28; } 62%,88% { fill: #2a1418; } 96%,100% { fill: #131a28; } }

@media (prefers-reduced-motion: reduce) {
  .edge, .node circle, .node .ico, .node .ring, .bg-node { animation: none !important; }
  .edge { stroke-dashoffset: 0; }
  .node circle { stroke: var(--red); }
}

/* ── Home: tool showcase ── */
.show { padding: 72px 0; }
.show-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.show h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; }
.show p { color: var(--text-2); line-height: 1.7; margin-bottom: 24px; max-width: 440px; }
.show-shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(79,142,247,0.08); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform 0.4s ease; }
.show-shot:hover { transform: none; }
.show-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .show-inner { grid-template-columns: 1fr; gap: 32px; } .show-shot { transform: none; } }

/* ── Plain post rows (home, blog index, related) ── */
.writing { padding: 40px 0 88px; }
.writing-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.writing-head h2 { font-size: 1.35rem; letter-spacing: -0.01em; }
.writing-head a { font-size: 0.9rem; }
.wrow { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--border); color: var(--text); transition: padding var(--t); }
.wrow:last-child { border-bottom: 1px solid var(--border); }
.wrow:hover { padding-left: 8px; color: var(--text); }
.wrow:hover b { color: var(--accent); }
.wrow time { font-family: var(--mono); font-size: 0.8rem; color: var(--text-3); }
.wrow b { font-weight: 600; font-size: 1.02rem; transition: color var(--t); }
.wrow > span { font-size: 0.78rem; color: var(--text-3); font-family: var(--mono); white-space: nowrap; }
.wrow i { display: block; font-style: normal; font-size: 0.9rem; color: var(--text-2); line-height: 1.6; margin-top: 6px; max-width: 640px; }
.wrow.r2 { grid-template-columns: 1fr auto; }
@media (max-width: 640px) { .wrow, .wrow.r2 { grid-template-columns: 1fr; gap: 4px; } .wrow > span { display: none; } }

/* Blog index rows keep .post-card for the filter script; strip the card look */
.post-list { border-bottom: 1px solid var(--border); }
.post-card.brow { background: none; border: 0; border-radius: 0; padding: 0; overflow: visible; display: block; }
.post-card.brow[hidden] { display: none; }
.post-card.brow::before { display: none; }
.post-card.brow:hover { transform: none; box-shadow: none; }
.post-card.brow .wrow:last-child { border-bottom: 0; }

/* Topic filters as plain text, not pills */
.chips { gap: 4px 22px; margin-bottom: 18px; }
.chips .chip { background: none; border: 0; border-radius: 0; padding: 4px 0; color: var(--text-2); box-shadow: none; border-bottom: 2px solid transparent; }
.chips .chip:hover { color: var(--text); border-color: transparent; }
.chips .chip.active { background: none; color: var(--text); border-bottom-color: var(--accent); }
.chips .chip.active span { color: var(--text-3); }

/* ── Articles ── */
.art-topics { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); margin-bottom: 16px; letter-spacing: 0.02em; }
.art-meta { font-size: 0.86rem; color: var(--text-3); margin-top: 22px; }
.art-meta b { color: var(--text-2); font-weight: 600; }
.author-bio { display: block; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 28px 0 0; }
.related-list { max-width: var(--max-prose); margin: 0 auto; }
.related-list .label { margin-bottom: 6px; }

/* ── About (home) ── */
.about-inner.no-av { grid-template-columns: 1fr; }
.about-certs { font-family: var(--mono); font-size: 0.8rem; color: var(--text-3); margin-top: 4px; }

/* ── Projects ── */
.proj-meta { font-family: var(--mono); font-size: 0.76rem; color: var(--text-3); margin-bottom: 10px; }
.project-card:hover { transform: none; }

/* ── Contact ── */
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; border-bottom: 1px solid var(--border); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); align-items: baseline; }
.contact-list li::before { content: none; display: none; }
.prose .contact-list li { padding-left: 0; margin: 0; }
.contact-list b { font-size: 0.86rem; color: var(--text-3); font-weight: 600; }

/* ── Preview pages only ── */
.preview-banner { background: var(--yellow); color: #1a1300; text-align: center; font-size: 0.8rem; font-weight: 600; padding: 6px 16px; }

/* ── Code blocks: keep line breaks and indentation (was collapsing into one line) ── */
.code-block { white-space: pre; tab-size: 4; }

/* ── Calmer home (Nov 3): smaller type, softer and slower graphic. Overrides the hero rules above. ── */
.h2-hero { padding: 64px 0 32px; }
.h2-hero::before { opacity: 0.6; }
.h2-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.h2-hero h1 em { color: var(--text-2); }
.h2-sub { font-size: 1.05rem; margin-bottom: 26px; }
.path-wrap { margin-top: 36px; }
.path-svg { --red: #c98a8a; }
.path-svg .edge { stroke-width: 1.75; filter: none; }
.path-svg .edge, .path-svg .node circle, .path-svg .node .ico { animation-duration: 14s; }
.path-svg .node .ring { display: none; }
.path-svg .node circle { stroke-width: 1.5; }
.path-svg .n4 circle { animation-name: hit4; }
.path-svg .bg-node { animation: none; }
.show h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; }
.show-shot, .show-shot:hover { transform: none; box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
