:root {
  color-scheme: dark;
  --bg: #050807;
  --bg-soft: #0a0f0d;
  --panel: rgba(12, 18, 16, 0.82);
  --panel-strong: rgba(15, 24, 21, 0.95);
  --line: rgba(158, 255, 213, 0.17);
  --line-strong: rgba(141, 255, 214, 0.36);
  --text: #edf8f3;
  --muted: #a8b8b0;
  --soft: #6f8078;
  --cyan: #4fd8ff;
  --green: #7dffb2;
  --amber: #ffbd63;
  --red: #ff6f8a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --max: 1180px;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(79, 216, 255, 0.1), transparent 26rem),
    radial-gradient(circle at 82% 18%, rgba(125, 255, 178, 0.08), transparent 28rem),
    linear-gradient(180deg, #050807 0%, #08100d 42%, #050807 100%);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(141, 255, 214, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 255, 214, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.08));
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.35;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  padding-left: 1.1rem;
}

li {
  margin: 0.42rem 0;
  color: var(--muted);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--bg);
  background: var(--green);
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 2rem), var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  transform: translateX(-50%);
}

.topbar::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(5, 8, 7, 0.72);
  border: 1px solid rgba(141, 255, 214, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-left: 0.8rem;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: #00120c;
  font-weight: 900;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border-radius: var(--radius);
  box-shadow: 0 0 28px rgba(125, 255, 178, 0.22);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.95rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding-right: 0.55rem;
}

.nav-links a {
  padding: 0.78rem 0.72rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-radius: var(--radius);
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(141, 255, 214, 0.08);
}

.hero {
  position: relative;
  min-height: 92svh;
  padding: 7.5rem 1rem 3rem;
  overflow: hidden;
}

#neuralCanvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.64;
}

.hero-grid,
.section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  min-height: calc(92svh - 10rem);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.3rem;
  font-size: 5.2rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-role {
  margin-bottom: 1.4rem;
  color: var(--cyan);
  font-size: 1.45rem;
  font-weight: 800;
}

.hero-lede {
  max-width: 660px;
  color: #d8e8e1;
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.82rem 1.05rem;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #00120c;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 14px 40px rgba(79, 216, 255, 0.16);
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(141, 255, 214, 0.25);
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}

.signal-strip span {
  padding: 0.5rem 0.68rem;
  color: #dffdf0;
  font-size: 0.82rem;
  border: 1px solid rgba(141, 255, 214, 0.18);
  border-radius: var(--radius);
  background: rgba(5, 8, 7, 0.56);
}

.hero-visual {
  align-self: end;
}

.portrait-stage {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: end center;
}

.portrait-stage::before {
  position: absolute;
  right: 8%;
  bottom: 4%;
  left: 11%;
  height: 56%;
  content: "";
  background:
    linear-gradient(90deg, rgba(79, 216, 255, 0), rgba(79, 216, 255, 0.26), rgba(125, 255, 178, 0)),
    linear-gradient(180deg, rgba(125, 255, 178, 0.12), rgba(255, 189, 99, 0.08));
  border: 1px solid rgba(141, 255, 214, 0.14);
  border-radius: var(--radius);
  transform: perspective(800px) rotateX(58deg) rotateZ(-8deg);
  filter: blur(0.2px);
  opacity: 0.8;
}

.portrait-stage::after {
  position: absolute;
  right: 2%;
  bottom: 0;
  left: 2%;
  z-index: 5;
  height: 24%;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 8, 7, 0), rgba(5, 8, 7, 0.74) 70%, #050807),
    linear-gradient(90deg, rgba(79, 216, 255, 0.04), rgba(125, 255, 178, 0.08), rgba(79, 216, 255, 0.04));
  filter: blur(0.2px);
}

.portrait {
  position: relative;
  z-index: 3;
  width: min(82vw, 480px);
  height: auto;
  filter:
    drop-shadow(0 26px 40px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 30px rgba(79, 216, 255, 0.12));
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0, 0, 0, 0.72) 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0, 0, 0, 0.72) 92%, transparent 100%);
  animation: portraitFloat 7s ease-in-out infinite;
}

.tech-ring {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(79, 216, 255, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 35px rgba(79, 216, 255, 0.08);
}

.ring-one {
  width: 430px;
  height: 430px;
  animation: spinSlow 28s linear infinite;
}

.ring-two {
  width: 310px;
  height: 310px;
  border-color: rgba(125, 255, 178, 0.26);
  animation: spinReverse 22s linear infinite;
}

.tech-ring::before,
.tech-ring::after {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  content: "";
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--green);
}

.tech-ring::before {
  top: 9%;
  left: 23%;
}

.tech-ring::after {
  right: 12%;
  bottom: 18%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}

.scan-panel {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 0.25rem;
  width: 5.4rem;
  padding: 0.55rem;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  background: rgba(5, 8, 7, 0.72);
  border: 1px solid rgba(141, 255, 214, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 0 28px rgba(125, 255, 178, 0.12);
}

.scan-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(125, 255, 178, 0.18), transparent);
  transform: translateY(-100%);
  animation: panelScan 3.8s linear infinite;
}

.panel-left {
  top: 30%;
  left: 2%;
}

.panel-right {
  right: 0;
  bottom: 29%;
}

.section {
  padding: 5.6rem 0;
  scroll-margin-top: 6.2rem;
}

.hero {
  scroll-margin-top: 6.2rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2.4rem;
}

.section-heading h2 {
  margin-bottom: 0.9rem;
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 1rem;
  color: #dbece4;
  font-size: 1.05rem;
  line-height: 1.8;
}

.lens-switcher,
.project-card,
.skill-group,
.timeline-item,
.credential-item,
.hosting-option,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.lens-switcher {
  padding: 1rem;
}

.lens-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(141, 255, 214, 0.11);
  border-radius: var(--radius);
}

.lens-button {
  min-height: 2.75rem;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.lens-button.active {
  color: #00120c;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.lens-panel {
  display: none;
  padding: 0.35rem 0.3rem 0.2rem;
}

.lens-panel.active {
  display: block;
  animation: fadeLift 260ms ease both;
}

.lens-panel h3,
.skill-group h3,
.timeline-body h3,
.credential-item h3,
.hosting-option h3 {
  margin-bottom: 0.55rem;
  font-size: 1.12rem;
}

.lens-panel p,
.timeline-body p,
.credential-item p,
.hosting-option li,
.project-head p,
.project-proof li {
  color: var(--muted);
  line-height: 1.65;
}

.projects-grid {
  display: grid;
  gap: 1.1rem;
}

.project-card {
  position: relative;
  display: grid;
  gap: 1.35rem;
  padding: 1.25rem;
  overflow: hidden;
}

.project-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(79, 216, 255, 0.08), transparent),
    linear-gradient(180deg, rgba(125, 255, 178, 0.05), transparent 28%);
  opacity: 0;
  transform: translateX(-55%);
  transition: opacity 240ms ease;
}

.project-card:hover::before {
  opacity: 1;
  animation: cardSweep 1.6s linear;
}

.project-card.featured {
  border-color: rgba(125, 255, 178, 0.26);
  background:
    linear-gradient(120deg, rgba(125, 255, 178, 0.075), transparent 32%),
    var(--panel-strong);
}

.project-index {
  margin-bottom: 0.35rem;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-head h3 {
  margin-bottom: 0.65rem;
  font-size: 1.75rem;
  line-height: 1.15;
}

.project-actions {
  margin-top: 0.8rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  color: var(--green);
  font-weight: 900;
  border-bottom: 1px solid rgba(125, 255, 178, 0.45);
}

.text-link:hover {
  color: var(--cyan);
  border-color: rgba(79, 216, 255, 0.6);
}

.text-link.muted {
  color: var(--soft);
  border-color: rgba(111, 128, 120, 0.4);
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.logo-chip {
  display: inline-flex;
  min-height: 2.3rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.62rem;
  color: #e9fbf5;
  font-size: 0.84rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(141, 255, 214, 0.15);
  border-radius: var(--radius);
}

.logo-chip img {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
}

.architecture {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: 0.4rem;
  align-items: center;
  padding: 1rem;
  background:
    linear-gradient(90deg, rgba(79, 216, 255, 0.06), transparent),
    rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(141, 255, 214, 0.14);
  border-radius: var(--radius);
}

.architecture::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(141, 255, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 255, 214, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.6;
}

.arch-stage {
  position: relative;
  z-index: 1;
  min-height: 7.25rem;
  padding: 0.85rem;
  overflow: hidden;
  background: rgba(5, 8, 7, 0.68);
  border: 1px solid rgba(141, 255, 214, 0.19);
  border-radius: var(--radius);
}

.arch-stage::before {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(125, 255, 178, 0.13), transparent);
  animation: nodeSweep 3.4s ease-in-out infinite;
}

.stage-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arch-stage strong {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.98rem;
}

.arch-stage small {
  color: var(--muted);
  line-height: 1.4;
}

.flow-link {
  position: relative;
  z-index: 1;
  height: 2px;
  overflow: hidden;
  background: rgba(141, 255, 214, 0.16);
}

.flow-link::before {
  position: absolute;
  top: 0;
  left: -45%;
  width: 45%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green));
  animation: flowPulse 1.35s linear infinite;
}

.cloud-map .flow-link::before {
  background: linear-gradient(90deg, transparent, var(--amber), var(--cyan));
}

.terraform-map .flow-link::before {
  background: linear-gradient(90deg, transparent, #b48cff, var(--green));
}

.security-map .flow-link::before {
  background: linear-gradient(90deg, transparent, var(--red), var(--cyan));
}

.project-proof {
  padding-left: 1rem;
  border-left: 2px solid rgba(125, 255, 178, 0.44);
}

.project-proof h4 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.project-signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.signal-card {
  position: relative;
  display: grid;
  min-height: 8rem;
  align-content: start;
  gap: 0.45rem;
  padding: 0.9rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(141, 255, 214, 0.16);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
}

.signal-card::before {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  content: "";
  background: linear-gradient(120deg, transparent, rgba(125, 255, 178, 0.16), transparent);
  opacity: 0;
  transform: translateX(-65%);
}

.project-card.is-visible .signal-card {
  animation: signalPop 520ms cubic-bezier(0.2, 0.9, 0.2, 1.12) both;
}

.project-card.is-visible .signal-card:nth-child(2) {
  animation-delay: 100ms;
}

.project-card.is-visible .signal-card:nth-child(3) {
  animation-delay: 200ms;
}

.project-card.is-visible .signal-card::before {
  animation: signalSweep 2.6s ease-in-out 700ms infinite;
}

.signal-icon,
.mini-logo {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: #00120c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 0 28px rgba(125, 255, 178, 0.16);
}

.signal-icon.aws,
.mini-logo.aws {
  background: linear-gradient(135deg, #ffbd63, #ff8a3d);
}

.signal-icon.tf {
  color: #f3edff;
  background: linear-gradient(135deg, #844fba, #4fd8ff);
}

.signal-icon.sec,
.signal-icon.ai {
  background: linear-gradient(135deg, #ff6f8a, #4fd8ff);
}

.signal-card strong {
  font-size: 1rem;
}

.signal-card small {
  color: var(--muted);
  line-height: 1.45;
}

.project-console {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  overflow: hidden;
  color: #dffdf0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background:
    linear-gradient(180deg, rgba(79, 216, 255, 0.08), rgba(5, 8, 7, 0.68)),
    rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(79, 216, 255, 0.18);
  border-radius: var(--radius);
}

.project-console::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(79, 216, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 216, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.7;
}

.console-title,
.console-grid,
.metric-bars,
.traffic-lanes,
.iac-flow,
.threat-meter {
  position: relative;
  z-index: 1;
}

.console-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
}

.status-dot {
  width: 0.72rem;
  height: 0.72rem;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(125, 255, 178, 0.58);
  animation: statusPulse 1.8s ease-out infinite;
}

.status-dot.warning {
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 189, 99, 0.58);
}

.console-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.45rem 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.console-grid strong {
  color: var(--text);
  font-weight: 800;
}

.metric-bars {
  display: grid;
  gap: 0.42rem;
}

.metric-bars span {
  position: relative;
  height: 0.48rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.metric-bars span::before {
  display: block;
  width: var(--bar);
  height: 100%;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: inherit;
  animation: metricBreathe 2.4s ease-in-out infinite;
}

.traffic-lanes,
.iac-flow,
.threat-meter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.traffic-lanes span,
.iac-flow span,
.threat-meter span {
  padding: 0.48rem 0.6rem;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(141, 255, 214, 0.15);
  border-radius: var(--radius);
}

.traffic-lanes i {
  width: 2.4rem;
  height: 2px;
  overflow: hidden;
  background: rgba(141, 255, 214, 0.14);
}

.traffic-lanes i::before {
  display: block;
  width: 52%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  animation: flowPulse 1.15s linear infinite;
}

.iac-flow span {
  color: #f3edff;
  border-color: rgba(180, 140, 255, 0.22);
}

.iac-flow span:nth-child(2) {
  animation: phaseGlow 2s ease-in-out infinite;
}

.threat-meter span {
  position: relative;
  overflow: hidden;
}

.threat-meter span::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--risk);
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(125, 255, 178, 0.24), rgba(255, 111, 138, 0.28));
  animation: riskSweep 2.6s ease-in-out infinite;
}

.tool-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  opacity: 1;
  transform: none;
}

.tool-card {
  position: relative;
  display: grid;
  min-height: 12.5rem;
  align-content: start;
  gap: 0.55rem;
  padding: 1rem;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    var(--panel);
  border: 1px solid rgba(141, 255, 214, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tool-matrix:not(.is-visible) .tool-card {
  opacity: 0;
  transform: translateY(22px) scale(0.94);
}

.tool-matrix.is-visible .tool-card,
.tool-matrix:not([data-reveal]) .tool-card {
  animation: toolPop 420ms cubic-bezier(0.2, 0.9, 0.2, 1.08) both;
  animation-delay: calc(var(--i) * 32ms);
}

.tool-card:hover,
.tool-card:focus-visible {
  z-index: 6;
  border-color: rgba(125, 255, 178, 0.52);
  transform: translateY(-8px) scale(1.02);
}

.tool-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 24% 18%, rgba(125, 255, 178, 0.18), transparent 7rem);
  opacity: 0;
  transition: opacity 180ms ease;
}

.tool-card:hover::before,
.tool-card:focus-visible::before {
  opacity: 1;
}

.tool-icon {
  display: inline-grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  color: #00120c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22), 0 0 30px rgba(125, 255, 178, 0.14);
}

.tool-icon.aws {
  background: linear-gradient(135deg, #ffbd63, #ff8a3d);
}

.tool-icon.tf {
  color: #f5efff;
  background: linear-gradient(135deg, #844fba, #4fd8ff);
}

.tool-icon.sec,
.tool-icon.py {
  background: linear-gradient(135deg, #ff6f8a, #4fd8ff);
}

.tool-icon.prom,
.tool-icon.graf,
.tool-icon.linux {
  background: linear-gradient(135deg, #ffbd63, #7dffb2);
}

.tool-card strong {
  font-size: 1.05rem;
}

.tool-card small {
  color: var(--muted);
  line-height: 1.45;
}

.tool-pop {
  position: absolute;
  right: 0.85rem;
  bottom: calc(100% - 0.45rem);
  left: 0.85rem;
  z-index: 8;
  padding: 0.75rem;
  color: #00120c;
  line-height: 1.42;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
}

.tool-card:hover .tool-pop,
.tool-card:focus-visible .tool-pop {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.logo-chip-aws img {
  display: none;
}

.logo-chip .mini-logo {
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.54rem;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.skill-group {
  padding: 1.15rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.1rem;
}

.timeline-date {
  color: var(--amber);
  font-weight: 900;
}

.credential-grid,
.hosting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.credential-item,
.hosting-option {
  padding: 1.15rem;
}

.option-label {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.34rem 0.52rem;
  color: #00120c;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--green);
  border-radius: var(--radius);
}

.hosting-option:not(.recommended) .option-label {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(141, 255, 214, 0.16);
}

.contact-section {
  padding-bottom: 2rem;
}

.contact-panel {
  padding: 1.4rem;
}

.contact-panel h2 {
  margin-bottom: 0.7rem;
  font-size: 2rem;
}

.contact-panel p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.contact-links a {
  padding: 0.65rem 0.78rem;
  color: var(--text);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(141, 255, 214, 0.16);
  border-radius: var(--radius);
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.contact-links a:hover {
  color: var(--green);
  border-color: rgba(125, 255, 178, 0.42);
  transform: translateY(-2px);
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.tool-matrix[data-reveal],
.tool-matrix[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes portraitFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(1deg);
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes panelScan {
  to {
    transform: translateY(100%);
  }
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardSweep {
  to {
    transform: translateX(65%);
  }
}

@keyframes nodeSweep {
  0%,
  40% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(420%);
  }
}

@keyframes flowPulse {
  to {
    transform: translateX(325%);
  }
}

@keyframes signalPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes signalSweep {
  0%,
  35% {
    opacity: 0;
    transform: translateX(-65%);
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(65%);
  }
}

@keyframes statusPulse {
  70% {
    box-shadow: 0 0 0 9px rgba(125, 255, 178, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(125, 255, 178, 0);
  }
}

@keyframes metricBreathe {
  0%,
  100% {
    filter: brightness(0.9);
    transform: scaleX(0.92);
    transform-origin: left;
  }
  50% {
    filter: brightness(1.28);
    transform: scaleX(1);
  }
}

@keyframes phaseGlow {
  0%,
  100% {
    box-shadow: inset 0 0 0 rgba(180, 140, 255, 0);
  }
  50% {
    box-shadow: inset 0 0 22px rgba(180, 140, 255, 0.2);
  }
}

@keyframes riskSweep {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(0.82);
    transform-origin: left;
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes toolPop {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .topbar {
    width: min(calc(100% - 1rem), var(--max));
  }

  .brand-copy span,
  .nav-links a:nth-child(3) {
    display: none;
  }

  .hero-grid,
  .intro-grid,
  .credential-grid,
  .hosting-grid {
    grid-template-columns: 1fr;
  }

  .tool-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-signal-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 6.8rem;
  }

  .hero-grid {
    min-height: auto;
  }

  h1 {
    font-size: 4.1rem;
  }

  .portrait-stage {
    min-height: 520px;
  }

  .portrait {
    width: min(76vw, 400px);
  }

  .architecture {
    grid-template-columns: 1fr;
  }

  .flow-link {
    width: 2px;
    height: 34px;
    margin: 0 auto;
  }

  .flow-link::before {
    top: -45%;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(180deg, transparent, var(--cyan), var(--green));
    animation-name: flowPulseDown;
  }

  .cloud-map .flow-link::before {
    background: linear-gradient(180deg, transparent, var(--amber), var(--cyan));
  }

  .terraform-map .flow-link::before {
    background: linear-gradient(180deg, transparent, #b48cff, var(--green));
  }

  .security-map .flow-link::before {
    background: linear-gradient(180deg, transparent, var(--red), var(--cyan));
  }
}

@keyframes flowPulseDown {
  to {
    transform: translateY(325%);
  }
}

@media (max-width: 680px) {
  .topbar {
    top: 0.5rem;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 0.74rem 0.48rem;
    font-size: 0.78rem;
  }

  .brand {
    padding-left: 0.55rem;
  }

  .brand-copy strong {
    display: none;
  }

  .hero {
    padding-top: 6.4rem;
  }

  h1 {
    font-size: 3.1rem;
  }

  .hero-role {
    font-size: 1.18rem;
  }

  .hero-lede,
  .intro-copy {
    font-size: 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .portrait-stage {
    min-height: 450px;
  }

  .portrait {
    width: min(82vw, 330px);
  }

  .scan-panel {
    display: none;
  }

  .ring-one {
    width: 320px;
    height: 320px;
  }

  .ring-two {
    width: 230px;
    height: 230px;
  }

  .project-card,
  .lens-switcher,
  .timeline-item,
  .credential-item,
  .hosting-option,
  .contact-panel {
    padding: 1rem;
  }

  .tool-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-card {
    min-height: 11.25rem;
  }

  .tool-pop {
    position: static;
    margin-top: 0.2rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(141, 255, 214, 0.14);
    opacity: 1;
    transform: none;
  }

  .project-console {
    padding: 0.9rem;
  }

  .console-grid {
    grid-template-columns: 1fr;
  }

  .project-head h3 {
    font-size: 1.45rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .contact-links {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  #neuralCanvas {
    display: none;
  }
}
