/* =========================================================================
   AEGIS // SPANOS — hero variants + content sections
   ========================================================================= */

/* =========================================================================
   HERO A — COMMAND CENTER
   ========================================================================= */
.hero-a-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 80px); align-items: center; width: 100%; }
.hero-a-grid .portrait-col { position: relative; }
.hero-a-grid .subject-frame { max-width: 380px; margin-left: auto; }
.hero-a-grid .ring-deco { width: 130px; height: 130px; right: -38px; top: -38px; }
.hero-a-grid .chip.c1 { top: 8%; left: -36px; animation-delay: -1s; }
.hero-a-grid .chip.c2 { bottom: 22%; left: -52px; animation-delay: -2.4s; }
.hero-a-grid .chip.c3 { bottom: 4%; right: -28px; animation-delay: -3.1s; }
.hero-a-grid .conn { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hero-a-grid .conn path { stroke: rgba(125,220,255,.4); stroke-width: 1; fill: none; filter: drop-shadow(0 0 4px var(--cyan-500)); }
.hero-a-grid .conn .moving { fill: var(--cyan-100); filter: drop-shadow(0 0 5px var(--cyan-500)); }

/* =========================================================================
   HERO B — BLUEPRINT SCHEMATIC
   ========================================================================= */
.hero-b { position: relative; width: 100%; }
.hero-b .blueprint-grid {
  position: absolute; inset: -60px -20px;
  background-image:
    linear-gradient(rgba(125,220,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,220,255,.05) 1px, transparent 1px),
    linear-gradient(rgba(125,220,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,220,255,.12) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
  mask-image: radial-gradient(ellipse 80% 90% at 40% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 40% 50%, #000 30%, transparent 90%);
  pointer-events: none;
}
.hero-b-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 70px); align-items: center; width: 100%; }
.hero-b .spec-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--cyan-400); }
.hero-b .dim-line { display: flex; align-items: center; gap: 8px; margin: 18px 0; color: var(--cyan-500); font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; }
.hero-b .dim-line .bar { flex: 1; height: 1px; background: linear-gradient(90deg, var(--cyan-600), transparent); position: relative; }
.hero-b .dim-line .bar::before, .hero-b .dim-line .bar::after { content: ""; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--cyan-500); }
.hero-b .dim-line .bar::before { left: 0; } .hero-b .dim-line .bar::after { right: 0; }

.hero-b .node-wrap { position: relative; }
.hero-b .subject-frame { max-width: 340px; margin: 0 auto; }
.hero-b .fan { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hero-b .fan path { stroke: rgba(125,220,255,.32); stroke-width: 1; fill: none; stroke-dasharray: 3 4; }
.hero-b .fan .moving { fill: var(--cyan-100); filter: drop-shadow(0 0 4px var(--cyan-500)); }
.hero-b .skill-node {
  position: absolute; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  color: var(--cyan-100); background: rgba(8,26,52,0.66); border: 1px solid rgba(125,220,255,.35);
  padding: 5px 9px; white-space: nowrap; box-shadow: 0 0 12px rgba(31,199,255,.22);
}
.hero-b .skill-node .k { color: var(--cyan-500); }
.hero-b .skill-node.s1 { top: 2%; right: -10px; }
.hero-b .skill-node.s2 { top: 30%; right: -42px; }
.hero-b .skill-node.s3 { bottom: 30%; right: -36px; }
.hero-b .skill-node.s4 { bottom: 2%; right: 0; }
.hero-b .skill-node.s5 { top: 50%; left: -44px; }

/* =========================================================================
   HERO C — BOOT SEQUENCE
   ========================================================================= */
.hero-c-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center; width: 100%; }
.boot-term { padding: 22px 24px; min-height: 340px; }
.boot-term header { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: var(--hair); margin-bottom: 16px; }
.boot-term header .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 8px var(--cyan-500); }
.boot-term header .t { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan-100); }
.boot-term header .r { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--cyan-500); letter-spacing: .1em; }
.boot-log { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.85; color: var(--cyan-200); letter-spacing: .02em; min-height: 230px; }
.boot-log .ln { display: block; white-space: pre-wrap; }
.boot-log .t { color: var(--cyan-600); }
.boot-log .ok { color: var(--signal-ok); }
.boot-log .warn { color: var(--signal-watch); }
.boot-log .key { color: var(--cyan-50); }
.boot-log .cursor { display: inline-block; width: 8px; height: 14px; background: var(--cyan-300); box-shadow: 0 0 8px var(--cyan-500); vertical-align: -2px; animation: curBlink 1s steps(1) infinite; }
@keyframes curBlink { 50% { opacity: 0; } }
.hero-c .headline-block { position: relative; }
.hero-c .id-badge { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 12px 14px; }
.hero-c .id-badge image-slot { width: 56px; height: 70px; display: block; }
.hero-c .id-badge .meta { font-family: var(--font-mono); font-size: 10px; line-height: 1.7; color: var(--cyan-200); letter-spacing: .06em; }
.hero-c .id-badge .meta .k { color: var(--cyan-500); }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.about-body p + p { margin-top: 18px; }
.cap-list { list-style: none; display: grid; gap: 0; }
.cap-list li {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 14px;
  padding: 13px 4px; border-bottom: var(--hair);
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  letter-spacing: .04em; color: var(--cyan-100); text-transform: uppercase;
  transition: background .3s, padding-left .3s var(--ease-hud);
}
.cap-list li:first-child { border-top: var(--hair); }
.cap-list li .n { font-family: var(--font-mono); font-size: 10px; color: var(--cyan-600); }
.cap-list li .lvl { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; color: var(--cyan-400); }
.cap-list li:hover { background: rgba(31,199,255,0.05); padding-left: 12px; }
.cap-list li:hover .lvl { color: var(--cyan-200); }

/* =========================================================================
   EXPERTISE GRID
   ========================================================================= */
.xgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.xcard { position: relative; padding: 26px 24px 28px; min-height: 230px; display: flex; flex-direction: column; transition: transform .4s var(--ease-hud), box-shadow .4s var(--ease-hud); overflow: hidden; }
.xcard .top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.xcard .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--cyan-500); }
.xcard .glyph { width: 40px; height: 40px; }
.xcard .glyph .s { stroke: var(--cyan-300); stroke-width: 1.2; fill: none; filter: drop-shadow(0 0 4px var(--cyan-500)); transition: stroke .35s; }
.xcard .glyph .f { fill: var(--cyan-400); opacity: .9; }
.xcard h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; color: var(--cyan-50); margin-bottom: 10px; }
.xcard p { font-family: var(--font-display); font-weight: 400; font-size: 14px; line-height: 1.55; color: rgba(213,246,255,.66); margin-top: auto; }
.xcard .edge { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--cyan-400); box-shadow: 0 0 10px var(--cyan-500); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease-hud); }
.xcard::after { content: ""; position: absolute; left: 0; right: 0; height: 30px; top: -30px; background: linear-gradient(180deg, transparent, rgba(125,220,255,.10), transparent); opacity: 0; transition: opacity .3s; }
.xcard:hover { transform: translateY(-5px); box-shadow: var(--glow-cyan); }
.xcard:hover .edge { transform: scaleY(1); }
.xcard:hover::after { opacity: 1; animation: scandrift 1.6s linear infinite; }
.xcard:hover .glyph .s { stroke: var(--cyan-100); }

/* =========================================================================
   PROJECTS — dossier rows
   ========================================================================= */
.projects { display: grid; gap: 16px; }
.pcard { position: relative; display: grid; grid-template-columns: 78px 1.4fr 1fr 150px; gap: 26px; align-items: center; padding: 24px 26px; text-decoration: none; transition: transform .4s var(--ease-hud), box-shadow .4s var(--ease-hud); }
.pcard .pid { font-family: var(--font-mono); font-size: 12px; color: var(--cyan-500); letter-spacing: .1em; }
.pcard .pid .big { display: block; font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--cyan-100); line-height: 1; margin-bottom: 6px; }
.pcard .pmain h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: .03em; text-transform: uppercase; color: var(--cyan-50); margin-bottom: 8px; transition: color .3s; }
.pcard .pmain .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard .pmain .tags span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; color: var(--cyan-300); border: var(--hair); padding: 3px 7px; }
.pcard .pdesc { font-family: var(--font-display); font-weight: 400; font-size: 14px; line-height: 1.55; color: rgba(213,246,255,.66); }
.pcard .pright { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.pcard .pstatus { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; color: var(--signal-ok); display: inline-flex; align-items: center; gap: 6px; }
.pcard .pstatus .d { width: 5px; height: 5px; border-radius: 50%; background: var(--signal-ok); box-shadow: 0 0 6px var(--signal-ok); }
.pcard .open { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-200); display: inline-flex; align-items: center; gap: 8px; }
.pcard .open svg { width: 18px; height: 9px; }
.pcard .open svg line, .pcard .open svg path { stroke: currentColor; stroke-width: 1.4; fill: none; }
.pcard:hover { transform: translateX(6px); box-shadow: var(--glow-cyan); }
.pcard:hover .pmain h3 { color: var(--cyan-200); }
.pcard:hover .open { color: var(--cyan-50); }
.pcard:hover .open svg { animation: nudge .6s var(--ease-hud) infinite alternate; }

/* =========================================================================
   TIMELINE — evolution spine
   ========================================================================= */
.timeline { position: relative; padding-left: 8px; }
.tl-spine { position: absolute; left: 22px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, transparent, rgba(125,220,255,.45) 8%, rgba(125,220,255,.45) 92%, transparent); }
.tl-spine .runner { position: absolute; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-100); box-shadow: 0 0 10px var(--cyan-400); top: 0; animation: runDown 7s var(--ease-hud) infinite; }
@keyframes runDown { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.tl-item { position: relative; padding: 0 0 50px 70px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .node { position: absolute; left: 14px; top: 2px; width: 17px; height: 17px; }
.tl-item .node .ring { position: absolute; inset: 0; border: 1px solid var(--cyan-400); border-radius: 50%; filter: drop-shadow(0 0 5px var(--cyan-500)); }
.tl-item .node .core { position: absolute; inset: 5px; border-radius: 50%; background: var(--cyan-300); box-shadow: 0 0 8px var(--cyan-400); }
.tl-item .node .pulse { position: absolute; inset: 0; border: 1px solid var(--cyan-300); border-radius: 50%; animation: nodePulse 2.6s ease-out infinite; }
@keyframes nodePulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.tl-item .phase { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--cyan-500); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.tl-item .phase .yr { color: var(--cyan-300); }
.tl-item h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .03em; text-transform: uppercase; color: var(--cyan-50); margin-bottom: 12px; }
.tl-item p { font-family: var(--font-display); font-weight: 400; font-size: 15px; line-height: 1.6; color: rgba(213,246,255,.7); max-width: 62ch; }
.tl-item .arrow-down { color: var(--cyan-600); font-family: var(--font-mono); font-size: 11px; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .tl-spine .runner, .tl-item .node .pulse { animation: none; } }

/* =========================================================================
   PHILOSOPHY
   ========================================================================= */
.philosophy { position: relative; overflow: hidden; }
.philosophy .bigring { position: absolute; right: -180px; top: 50%; transform: translateY(-50%); width: 620px; height: 620px; opacity: .5; pointer-events: none; }
.philosophy .bigring svg { width: 100%; height: 100%; overflow: visible; }
.philosophy .bigring .st { stroke: rgba(125,220,255,.3); fill: none; stroke-width: 1; }
.philosophy .bigring .st2 { stroke: rgba(125,220,255,.16); fill: none; stroke-width: .8; }
.quote-block { position: relative; max-width: 980px; }
.quote-block .qm { font-family: var(--font-display); font-weight: 700; font-size: 90px; line-height: .6; color: var(--cyan-600); opacity: .6; }
.quote-block blockquote { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 5vw, 62px); line-height: 1.08; letter-spacing: .01em; color: var(--cyan-50); text-shadow: 0 0 24px rgba(31,199,255,.25); margin: 6px 0 30px; text-wrap: balance; }
.quote-block blockquote .hl { color: var(--cyan-300); }
.quote-block .support { max-width: 60ch; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact { position: relative; text-align: center; }
.contact .section-title { margin: 0 auto 18px; }
.contact .lead { margin: 0 auto 44px; text-align: center; }
.contact-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.contact-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 248px; padding: 26px 24px; text-decoration: none; text-align: left; transition: transform .4s var(--ease-hud), box-shadow .4s var(--ease-hud); }
.contact-card . glyph { } 
.contact-card .cglyph { width: 30px; height: 30px; }
.contact-card .cglyph .s { stroke: var(--cyan-200); stroke-width: 1.3; fill: none; filter: drop-shadow(0 0 4px var(--cyan-500)); }
.contact-card .clabel { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-50); }
.contact-card .chandle { font-family: var(--font-mono); font-size: 11px; color: var(--cyan-300); letter-spacing: .04em; }
.contact-card .go { margin-top: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--cyan-500); display: inline-flex; align-items: center; gap: 7px; }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--glow-cyan); }
.contact-card:hover .go { color: var(--cyan-100); }
.contact .placeholder-note { margin-top: 30px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--cyan-600); }

/* =========================================================================
   FOOTER + ticker
   ========================================================================= */
.ticker-band { border-top: var(--hair); border-bottom: var(--hair); background: rgba(5,11,24,0.4); overflow: hidden; padding: 11px 0; }
.ticker-band .track { display: inline-block; white-space: nowrap; animation: tick 48s linear infinite; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--cyan-200); }
.ticker-band .track .row { padding-right: 3.5em; }
.ticker-band .track .row b { color: var(--cyan-500); font-weight: 400; }
.ticker-band .track .row .v { color: var(--cyan-100); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-band .track { animation: none; } }

.site-footer { padding: 40px 0 56px; }
.site-footer .shell { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer .sig { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--cyan-500); }
.site-footer .sig .ok { color: var(--signal-ok); }
.site-footer .up { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-200); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }

/* =========================================================================
   EMBED MODE (hero-only, for comparison canvas)
   ========================================================================= */
body.embed .site-nav,
body.embed .ticker-band,
body.embed .site-footer,
body.embed main > .section:not(.hero),
body.embed #tweaks-root { display: none !important; }
body.embed .hero { min-height: 760px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .xgrid { grid-template-columns: repeat(2, 1fr); }
  .pcard { grid-template-columns: 64px 1fr; row-gap: 16px; }
  .pcard .pdesc { grid-column: 1 / -1; }
  .pcard .pright { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-a-grid, .hero-b-grid, .hero-c-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-a-grid .portrait-col, .hero-b .node-wrap, .hero-c .term-col { display: none; }
  .hero-b .blueprint-grid { inset: 0; }
}
@media (max-width: 640px) {
  .xgrid { grid-template-columns: 1fr; }
}

/* =========================================================================
   HERO HEADLINE SAFETY (shared by full page + comparison canvas)
   .display sets text-wrap:balance + tight line-height, which under-reserves
   lines for the auto/<br>-wrapping B & C headlines and lets ink overlap the
   next line. Force normal wrapping + roomy leading + explicit bottom margin.
   ========================================================================= */
.hero-variant--b .hero-headline,
.hero-variant--c .hero-headline,
.hero-variant--d .hero-headline,
.hero-variant--e .hero-headline { text-wrap: wrap; line-height: 1.12; }
.hero-variant--b .hero-headline,
.hero-variant--d .hero-headline,
.hero-variant--e .hero-headline { font-size: clamp(36px, 4.4vw, 70px); margin: 14px 0 28px; }
.hero-variant--c .hero-headline { font-size: clamp(34px, 4.1vw, 64px); margin: 16px 0 24px; }
.hero-copy, .headline-block { min-width: 0; }
