:root {
  --bg: #07080d;
  --bg-deep: #030407;
  --surface: rgba(13, 18, 28, 0.72);
  --surface-strong: rgba(248, 250, 252, 0.1);
  --text: #fff8ec;
  --muted: #a8b2c4;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 248, 236, 0.26);
  --accent: #ff8a4c;
  --accent-2: #47e0cb;
  --accent-3: #f3c969;
  --violet: #a394ff;
  --glass: linear-gradient(145deg, rgba(17, 24, 37, 0.86), rgba(8, 12, 20, 0.68));
  --premium-line: linear-gradient(135deg, rgba(255, 248, 236, 0.24), rgba(71, 224, 203, 0.22), rgba(255, 138, 76, 0.18));
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 16px 44px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --radius-sm: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(7, 8, 13, 0.68), rgba(7, 8, 13, 0.94) 44%, #04050a 100%),
    linear-gradient(120deg, rgba(71, 224, 203, 0.18), transparent 30%, rgba(255, 138, 76, 0.13) 64%, rgba(243, 201, 105, 0.12)),
    #07080d;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 42%, rgba(243, 201, 105, 0.08) 42% 42.2%, transparent 42.2% 100%);
  background-size: 72px 72px, 72px 72px, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 78%);
}

::selection {
  color: #081014;
  background: var(--accent-2);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.webgl-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.webgl-scene--hidden {
  display: none;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.72rem 0.9rem;
  background: rgba(7, 9, 15, 0.78);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(22px) saturate(1.2);
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 236, 0.28);
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3), var(--accent));
  color: var(--bg-deep);
  box-shadow: 0 0 0 4px rgba(71, 224, 203, 0.08), 0 12px 30px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
}

.brand-text {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-cta {
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  color: #071010 !important;
  background: var(--accent-2);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
}

.section {
  padding: 6.4rem 0 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
  gap: 3rem;
  min-height: calc(100vh - 7rem);
  align-items: center;
  perspective: 1200px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 5.2rem -1rem auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 236, 0.24), rgba(71, 224, 203, 0.34), transparent);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--accent-2);
}

.hero h1,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  line-height: 0.95;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  letter-spacing: 0;
}

.hero h1 span,
.section-heading h2,
.contact-card h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(110deg, #fff8ec, var(--accent-3) 42%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text {
  max-width: 44rem;
  margin: 1.4rem 0 0;
  font-size: 1.16rem;
  line-height: 1.72;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent-3), var(--accent), #ff6c4f);
  color: #101014;
  box-shadow: 0 18px 48px rgba(255, 138, 76, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button-secondary {
  border-color: rgba(255, 248, 236, 0.18);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

.hero-facts div,
.panel,
.skill-card,
.project,
.timeline-card,
.contact-card,
.signal-card {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.18);
}

.hero-facts div {
  position: relative;
  overflow: hidden;
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius);
  transform-style: preserve-3d;
  border-color: rgba(255, 248, 236, 0.14);
  box-shadow: var(--shadow-soft);
}

.hero-facts div::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--premium-line);
}

.hero-facts dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero-facts dd {
  margin: 0.55rem 0 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  color: #fffaf2;
}

.hero-card {
  position: relative;
  display: grid;
  gap: 1rem;
  align-content: center;
  transform-style: preserve-3d;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.ai-visual {
  position: relative;
  isolation: isolate;
  width: min(100%, 26rem);
  aspect-ratio: 1.08;
  margin: 0 auto;
  border: 1px solid rgba(255, 248, 236, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 44%, rgba(71, 224, 203, 0.3), transparent 19%),
    radial-gradient(circle at 28% 24%, rgba(243, 201, 105, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(13, 18, 28, 0.76), rgba(4, 7, 12, 0.82));
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.42), 0 0 70px rgba(71, 224, 203, 0.13);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 900px;
}

.ai-visual::before,
.ai-visual::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(71, 224, 203, 0.16);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(20deg);
}

.ai-visual::after {
  inset: 22%;
  border-color: rgba(255, 138, 76, 0.18);
  transform: rotateX(66deg) rotateY(24deg) rotateZ(-28deg);
}

.ai-ring {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 236, 0.16);
  transform-style: preserve-3d;
}

.ai-ring::before,
.ai-ring::after {
  content: "";
  position: absolute;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 22px rgba(71, 224, 203, 0.92);
}

.ai-ring::before {
  top: 7%;
  left: 48%;
}

.ai-ring::after {
  right: 11%;
  bottom: 18%;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(255, 138, 76, 0.84);
}

.ai-ring-outer {
  animation: ai-spin 16s linear infinite;
}

.ai-ring-inner {
  inset: 30%;
  border-color: rgba(163, 148, 255, 0.3);
  transform: rotateX(65deg) rotateY(28deg);
  animation: ai-spin-reverse 11s linear infinite;
}

.ai-core {
  position: absolute;
  inset: 33%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff8ec 0 4%, rgba(243, 201, 105, 0.96) 5% 16%, rgba(71, 224, 203, 0.32) 17% 42%, rgba(7, 9, 15, 0.1) 43%);
  box-shadow: 0 0 42px rgba(71, 224, 203, 0.36), inset 0 0 30px rgba(255, 248, 236, 0.18);
  transform: translateZ(68px) rotateX(58deg);
  animation: ai-pulse 3.2s ease-in-out infinite;
}

.ai-core span {
  position: absolute;
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 236, 0.7), transparent);
  transform-origin: center;
}

.ai-core span:nth-child(1) {
  transform: rotate(0deg);
}

.ai-core span:nth-child(2) {
  transform: rotate(45deg);
}

.ai-core span:nth-child(3) {
  transform: rotate(90deg);
}

.ai-core span:nth-child(4) {
  transform: rotate(135deg);
}

.ai-orbit {
  position: absolute;
  inset: 14%;
  transform-style: preserve-3d;
  animation: ai-orbit 12s linear infinite;
}

.ai-orbit span,
.ai-code {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.66rem;
  border: 1px solid rgba(255, 248, 236, 0.18);
  border-radius: 999px;
  background: rgba(5, 8, 12, 0.7);
  color: #fffaf2;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.ai-orbit span {
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateZ(36px);
}

.ai-orbit-two {
  inset: 20%;
  animation-duration: 14s;
  animation-direction: reverse;
}

.ai-orbit-three {
  inset: 27%;
  animation-duration: 9s;
  transform: rotateX(72deg) rotateZ(40deg);
}

.ai-orbit-four {
  inset: 8%;
  animation-duration: 18s;
  animation-direction: reverse;
}

.ai-code {
  border-radius: var(--radius-sm);
  color: var(--accent-2);
}

.ai-code-one {
  left: 6%;
  top: 18%;
  animation: ai-float 4.4s ease-in-out infinite;
}

.ai-code-two {
  right: 5%;
  top: 42%;
  color: var(--accent-3);
  animation: ai-float 4.9s ease-in-out infinite 0.3s;
}

.ai-code-three {
  left: 17%;
  bottom: 13%;
  color: var(--accent);
  animation: ai-float 5.2s ease-in-out infinite 0.6s;
}

.portrait-frame {
  position: relative;
  isolation: isolate;
  width: min(100%, 26rem);
  aspect-ratio: 0.92 / 1;
  margin: 0 auto;
  padding: 0.42rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(8, 12, 20, 0.9), rgba(8, 12, 20, 0.9)) padding-box,
    linear-gradient(135deg, rgba(255, 248, 236, 0.34), rgba(71, 224, 203, 0.28), rgba(255, 138, 76, 0.26), rgba(163, 148, 255, 0.22)) border-box;
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.44), 0 0 58px rgba(71, 224, 203, 0.12);
  overflow: hidden;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -28%;
  z-index: 0;
  background: conic-gradient(from 130deg, transparent, rgba(71, 224, 203, 0.3), rgba(243, 201, 105, 0.22), transparent 44%);
  opacity: 0.44;
  animation: portrait-glow 10s linear infinite;
  pointer-events: none;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0.42rem;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(3, 4, 7, 0.02) 42%, rgba(3, 4, 7, 0.36)),
    linear-gradient(120deg, rgba(255, 248, 236, 0.12), transparent 24%);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

.portrait-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  object-position: center 17%;
  transform: scale(1.045);
}

.portrait-tag {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  max-width: calc(100% - 2rem);
  padding: 0.56rem 0.78rem;
  border: 1px solid rgba(255, 248, 236, 0.22);
  border-radius: 999px;
  background: rgba(5, 8, 12, 0.72);
  color: #fffaf2;
  backdrop-filter: blur(16px) saturate(1.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.signal-card {
  position: relative;
  width: min(100%, 26rem);
  margin: 0 auto;
  padding: 1.25rem;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(18, 30, 40, 0.94), rgba(8, 12, 20, 0.82));
  border-color: rgba(255, 248, 236, 0.18);
  overflow: hidden;
}

.signal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(71, 224, 203, 0.16), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
  opacity: 0.7;
  pointer-events: none;
}

.signal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: var(--premium-line) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.signal-label {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

.signal-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.signal-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.signal-list span {
  color: var(--muted);
}

.signal-list strong {
  max-width: 60%;
  text-align: right;
  color: #fffaf2;
}

.grid-section,
.split-section,
.dashboard-section {
  display: grid;
  gap: 2rem;
}

.dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.dashboard-header h2 {
  max-width: 46rem;
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
}

.dashboard-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(71, 224, 203, 0.32);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(71, 224, 203, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-grid,
.dashboard-panels {
  display: grid;
  gap: 1.2rem;
}

.dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-panels {
  grid-template-columns: 0.85fr 1.15fr;
}

.metric-card,
.status-panel,
.stack-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover,
.status-panel:hover,
.stack-panel:hover {
  border-color: rgba(71, 224, 203, 0.38);
  background: linear-gradient(145deg, rgba(20, 29, 44, 0.9), rgba(10, 16, 26, 0.78));
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 12.5rem;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto 1.2rem 1.1rem;
  height: 0.22rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
  opacity: 0.78;
}

.metric-label {
  display: block;
  min-height: 2.2rem;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 1.3rem;
  color: #fffaf2;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.9;
}

.metric-card p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.status-panel,
.stack-panel {
  padding: 1.25rem;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.panel-title span,
.status-row span {
  color: var(--muted);
}

.panel-title strong {
  color: var(--accent-3);
  text-align: right;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row strong {
  color: var(--accent-2);
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding-top: 1.2rem;
}

.stack-cloud span {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: #edf7fb;
  font-size: 0.88rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.section-heading {
  max-width: 52rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.75rem;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.about-grid,
.skills-layout,
.timeline,
.capability-grid {
  display: grid;
  gap: 1.2rem;
}

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

.panel,
.skill-card,
.project,
.timeline-card,
.capability,
.contact-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.panel::before,
.skill-card::before,
.project::before,
.timeline-card::before,
.capability::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--premium-line);
  opacity: 0.76;
  pointer-events: none;
}

.panel:hover,
.skill-card:hover,
.project:hover,
.timeline-card:hover,
.capability:hover {
  border-color: rgba(71, 224, 203, 0.36);
  background: linear-gradient(145deg, rgba(20, 29, 44, 0.92), rgba(9, 15, 25, 0.78));
  box-shadow: var(--shadow);
}

.panel p,
.skill-card p,
.project p,
.timeline-card p,
.timeline-card li,
.capability p,
.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.panel-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--accent-3);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stats-panel {
  display: grid;
  gap: 1.1rem;
  background: linear-gradient(135deg, rgba(243, 201, 105, 0.95), rgba(71, 224, 203, 0.78), rgba(255, 138, 76, 0.84));
  box-shadow: 0 24px 70px rgba(71, 224, 203, 0.18), var(--shadow-soft);
}

.stats-panel .stat strong,
.stats-panel .stat span {
  color: #081014;
}

.stats-panel .stat strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.skills-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-card h3,
.project h3,
.timeline-card h3,
.capability h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: #fffaf2;
}

.skill-card {
  min-height: 14rem;
  display: flex;
  flex-direction: column;
}

.skill-icon {
  display: inline-grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(71, 224, 203, 0.34);
  border-radius: var(--radius);
  color: var(--accent-2);
  background: rgba(71, 224, 203, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.skill-meter {
  height: 0.5rem;
  margin-top: auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.skill-meter span {
  display: block;
  width: var(--level);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3), var(--accent));
  box-shadow: 0 0 24px rgba(56, 213, 189, 0.28);
}

.capabilities-section {
  position: relative;
}

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

.capability {
  min-height: 16rem;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.capability span {
  display: inline-flex;
  margin-bottom: 3rem;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
}

.projects {
  display: grid;
  gap: 1.2rem;
}

.project {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.2rem;
}

.project-body {
  position: relative;
  z-index: 1;
}

.project.feature {
  background:
    linear-gradient(135deg, rgba(255, 138, 76, 0.18), rgba(71, 224, 203, 0.1), rgba(255, 255, 255, 0.07));
  border-color: rgba(243, 201, 105, 0.2);
}

.project-index {
  font-size: 0.9rem;
  color: var(--accent-2);
  letter-spacing: 0.16em;
  position: relative;
  z-index: 1;
  padding-top: 0.16rem;
}

.project-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.project-topline h3 {
  margin-bottom: 0;
}

.project-topline span {
  color: var(--accent-3);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.project-metrics div {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.project-metrics strong,
.project-metrics span {
  display: block;
}

.project-metrics strong {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.project-metrics span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.project-points,
.timeline-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.project-points li,
.timeline-card li {
  margin-top: 0.55rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.tag-row span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
  font-size: 0.87rem;
  color: #edf7fb;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(71, 224, 203, 0.3);
  background: rgba(71, 224, 203, 0.08);
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.project-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 201, 105, 0.42);
  background: rgba(243, 201, 105, 0.11);
}

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

.timeline-date,
.timeline-meta {
  display: block;
  color: var(--accent-2);
  margin-bottom: 0.7rem;
}

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

.contact-card {
  padding: 2.2rem;
  background:
    linear-gradient(145deg, rgba(8, 11, 18, 0.98), rgba(28, 39, 58, 0.92));
  color: #fff7ef;
  overflow: hidden;
  position: relative;
  border-color: rgba(255, 248, 236, 0.2);
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem 1.5rem auto;
  z-index: 0;
  width: 11rem;
  height: 6rem;
  border-right: 1px solid rgba(71, 224, 203, 0.32);
  border-bottom: 1px solid rgba(243, 201, 105, 0.26);
  background:
    linear-gradient(135deg, transparent 48%, rgba(71, 224, 203, 0.16) 48% 49%, transparent 49%),
    linear-gradient(135deg, transparent 62%, rgba(255, 248, 236, 0.1) 62% 63%, transparent 63%);
  pointer-events: none;
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-card .eyebrow,
.contact-card p,
.contact-links a {
  color: rgba(255, 247, 239, 0.8);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.contact-links a {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  background: rgba(71, 224, 203, 0.09);
  border-color: rgba(71, 224, 203, 0.32);
}

.reveal {
  opacity: 0;
  transform: translateY(28px) rotateX(5deg);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes portrait-glow {
  to {
    transform: rotate(1turn);
  }
}

@keyframes ai-spin {
  from {
    transform: rotateX(68deg) rotateY(-12deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(68deg) rotateY(-12deg) rotateZ(1turn);
  }
}

@keyframes ai-spin-reverse {
  from {
    transform: rotateX(65deg) rotateY(28deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(65deg) rotateY(28deg) rotateZ(-1turn);
  }
}

@keyframes ai-orbit {
  from {
    transform: rotateX(70deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(70deg) rotateZ(1turn);
  }
}

@keyframes ai-pulse {
  0%, 100% {
    transform: translateZ(68px) rotateX(58deg) scale(1);
    filter: saturate(1);
  }
  50% {
    transform: translateZ(82px) rotateX(58deg) scale(1.05);
    filter: saturate(1.32);
  }
}

@keyframes ai-float {
  0%, 100% {
    transform: translateY(0) translateZ(18px);
  }
  50% {
    transform: translateY(-10px) translateZ(42px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-ring-outer,
  .ai-ring-inner,
  .ai-orbit,
  .ai-core,
  .ai-code {
    animation: none;
  }
}

@media (max-width: 1080px) {
  .hero,
  .about-grid,
  .skills-layout,
  .timeline,
  .capability-grid,
  .dashboard-grid,
  .dashboard-panels {
    grid-template-columns: 1fr 1fr;
  }

  .hero-card,
  .stats-panel {
    grid-column: span 2;
  }
}

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

  .site-header {
    align-items: flex-start;
    border-radius: var(--radius);
  }

  .menu-toggle {
    display: inline-flex;
    padding-top: 0.3rem;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(8, 10, 15, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .about-grid,
  .skills-layout,
  .timeline,
  .capability-grid,
  .dashboard-grid,
  .dashboard-panels,
  .hero-facts {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    display: grid;
  }

  .dashboard-link {
    justify-self: start;
    white-space: normal;
  }

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

  .signal-card {
    transform: none;
  }

  .portrait-frame {
    position: relative;
    right: auto;
    width: min(100%, 22rem);
    margin: 0 auto 1rem;
    transform: none;
  }

  .hero-card {
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .hero-card,
  .stats-panel {
    grid-column: auto;
  }

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

  .project-topline,
  .project-metrics {
    grid-template-columns: 1fr;
  }

  .project-topline {
    display: grid;
  }

  .project-topline span {
    text-align: left;
  }

  .hero h1,
  .section-heading h2,
  .contact-card h2 {
    line-height: 1;
  }

}
