:root {
  color-scheme: dark;
  --bg: #050607;
  --surface: #0d1010;
  --surface-strong: #12191a;
  --line: rgba(0, 213, 255, 0.18);
  --line-strong: rgba(0, 245, 159, 0.35);
  --text: #ecfbf8;
  --muted: #96aaa6;
  --muted-strong: #b7c7c3;
  --cyan: #00d5ff;
  --pink: #ff3d81;
  --green: #00f59f;
  --amber: #ffd166;
  --violet: #8e6bff;
  --danger: #ff5678;
  --shadow-cyan: 0 0 28px rgba(0, 213, 255, 0.24);
  --shadow-green: 0 0 28px rgba(0, 245, 159, 0.18);
  --radius: 8px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.hero,
.section {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.has-fancy-pointer {
  cursor: none;
}

body.has-fancy-pointer :where(a, button, [role="button"], label, summary) {
  cursor: pointer;
}

body.has-fancy-pointer :where(input, textarea) {
  cursor: text;
}

body.has-fancy-pointer :where(
  button,
  select,
  input[type="button"],
  input[type="checkbox"],
  input[type="radio"],
  input[type="reset"],
  input[type="submit"]
) {
  cursor: pointer;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

#signal-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#cursor-core,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

#cursor-core {
  z-index: 9999;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 213, 255, 0.85);
}

#cursor-ring {
  z-index: 9998;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 213, 255, 0.45);
  border-radius: 50%;
  transition: width 180ms ease, height 180ms ease, border-color 180ms ease;
}

.cursor-ripple,
.cursor-trail-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cursor-ripple {
  z-index: 7;
  border-radius: 50%;
  animation: rippleExpand 900ms ease-out forwards;
}

.cursor-trail-dot {
  z-index: 7;
  border-radius: 50%;
  animation: trailFade 620ms ease-out forwards;
}

.site-footer,
.admin-topbar,
.admin-shell,
.auth-page {
  position: relative;
  z-index: 2;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.88);
  backdrop-filter: blur(18px);
}

.site-header.is-open {
  border-bottom-color: rgba(0, 213, 255, 0.3);
}

.brand,
.nav-links a,
.button,
.section-kicker,
.stat-label,
.card-meta,
.form-field label,
.info-list dt {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.brand {
  color: var(--cyan);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-decoration: none;
  text-shadow: var(--shadow-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--cyan);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  min-width: 42px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(0, 213, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(0, 213, 255, 0.05);
  color: var(--cyan);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: rgba(0, 213, 255, 0.6);
  box-shadow: var(--shadow-cyan);
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
  padding: 120px 72px 56px;
}

.hero-content {
  max-width: 760px;
}

.identity-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.avatar-shell {
  position: relative;
  width: 152px;
  height: 152px;
  flex: 0 0 auto;
}

.avatar-shell::before,
.avatar-shell::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.avatar-shell::after {
  inset: -18px;
  border-style: dashed;
  border-color: rgba(255, 61, 129, 0.35);
  animation: spin 18s linear infinite;
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 213, 255, 0.55);
  box-shadow: var(--shadow-cyan), 0 12px 40px rgba(0, 0, 0, 0.36);
}

.status-dot {
  position: absolute;
  right: 10px;
  bottom: 12px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(0, 245, 159, 0.7);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

h1,
h2,
.card-title,
.admin-topbar h1 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 4rem;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: 2.4rem;
  text-transform: uppercase;
}

h2 span,
.role-line,
.card-link,
.stat-value,
.skill-title {
  color: var(--cyan);
}

.role-line {
  min-height: 34px;
  margin: 32px 0 18px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
  letter-spacing: 1px;
}

.blink {
  animation: blink 900ms steps(2, jump-none) infinite;
}

.hero-summary {
  max-width: 620px;
  color: var(--muted-strong);
  font-size: 1.06rem;
}

.hero-actions,
.form-row,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #04100d;
  box-shadow: var(--shadow-green);
}

.button-secondary {
  border-color: rgba(0, 213, 255, 0.55);
  color: var(--cyan);
  background: rgba(0, 213, 255, 0.06);
}

.button-danger {
  border-color: rgba(255, 86, 120, 0.6);
  color: var(--danger);
  background: rgba(255, 86, 120, 0.08);
}

.full-button {
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stat-card {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(0, 213, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(13, 16, 16, 0.78);
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.system-orbit {
  position: relative;
  width: 420px;
  height: 420px;
  display: grid;
  place-items: center;
  perspective: 900px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 180ms ease-out;
}

.orbit {
  position: absolute;
  border: 1px dashed;
  border-radius: 50%;
}

.orbit-one {
  width: 250px;
  height: 250px;
  border-color: rgba(0, 213, 255, 0.28);
  animation: spin 16s linear infinite;
}

.orbit-two {
  width: 330px;
  height: 330px;
  border-color: rgba(255, 61, 129, 0.25);
  animation: spin 24s linear infinite reverse;
}

.orbit-three {
  width: 405px;
  height: 405px;
  border-color: rgba(255, 209, 102, 0.18);
  animation: spin 32s linear infinite;
}

.cube {
  position: relative;
  width: 156px;
  height: 156px;
  transform-style: preserve-3d;
  will-change: transform;
  animation: cubeRotate 14s linear infinite;
}

.cube-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 213, 255, 0.42);
  background: rgba(0, 213, 255, 0.055);
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  backface-visibility: hidden;
  box-shadow: inset 0 0 34px rgba(0, 213, 255, 0.08);
}

.cube-face:nth-child(1) {
  transform: translateZ(78px);
}

.cube-face:nth-child(2) {
  transform: rotateY(180deg) translateZ(78px);
}

.cube-face:nth-child(3) {
  transform: rotateY(-90deg) translateZ(78px);
}

.cube-face:nth-child(4) {
  transform: rotateY(90deg) translateZ(78px);
}

.cube-face:nth-child(5) {
  transform: rotateX(90deg) translateZ(78px);
}

.cube-face:nth-child(6) {
  transform: rotateX(-90deg) translateZ(78px);
}

.section {
  padding: 104px 72px;
}

.alt-section {
  background: rgba(18, 25, 26, 0.54);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.subsection-heading {
  margin: 52px 0 20px;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 56px;
  align-items: start;
}

.rich-copy p {
  max-width: 780px;
  color: var(--muted-strong);
  font-size: 1rem;
}

.badge-list,
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.chip {
  max-width: 100%;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border: 1px solid rgba(0, 213, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 213, 255, 0.055);
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.73rem;
}

.profile-panel,
.auth-card,
.admin-form {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 16, 16, 0.88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.profile-panel {
  padding: 28px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.profile-panel:hover {
  border-color: rgba(0, 213, 255, 0.32);
  box-shadow: var(--shadow-cyan);
}

.panel-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--green);
}

.top-left {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.top-right {
  top: -1px;
  right: -1px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.bottom-left {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.bottom-right {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.info-list {
  display: grid;
  gap: 20px;
  margin: 0;
}

.info-list div {
  display: grid;
  gap: 3px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 213, 255, 0.1);
}

.info-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-list dt {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.info-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.info-list a,
.contact-row:hover strong,
.contact-row:focus-visible strong {
  color: var(--cyan);
}

.skills-grid,
.projects-grid,
.cert-grid {
  display: grid;
  gap: 20px;
}

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

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

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

.experience-timeline {
  position: relative;
  display: grid;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
  padding: 6px 0 6px 36px;
}

.experience-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), rgba(0, 213, 255, 0.12) 86%, transparent);
  box-shadow: 0 0 14px rgba(0, 213, 255, 0.34);
  content: "";
}

.experience-item {
  position: relative;
  padding: 26px 30px;
  border: 1px solid rgba(0, 213, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(13, 16, 16, 0.84);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.experience-item:hover,
.experience-item.reveal.is-visible:hover {
  transform: translateX(4px);
  border-color: rgba(0, 245, 159, 0.4);
  box-shadow: var(--shadow-green);
}

.experience-marker {
  position: absolute;
  top: 30px;
  left: -32px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 5px rgba(0, 213, 255, 0.08), 0 0 16px rgba(0, 213, 255, 0.72);
}

.experience-item:nth-child(3n + 2) .experience-marker {
  border-color: var(--green);
  box-shadow: 0 0 0 5px rgba(0, 245, 159, 0.08), 0 0 16px rgba(0, 245, 159, 0.72);
}

.experience-item:nth-child(3n) .experience-marker {
  border-color: var(--pink);
  box-shadow: 0 0 0 5px rgba(255, 61, 129, 0.08), 0 0 16px rgba(255, 61, 129, 0.72);
}

.experience-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.experience-header .card-meta {
  margin-bottom: 0;
}

.experience-type {
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(0, 245, 159, 0.3);
  border-radius: 999px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.8px;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

.experience-organization {
  margin: -4px 0 14px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.experience-highlights {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted-strong);
}

.experience-highlights li::marker {
  color: var(--green);
}

.skill-card,
.project-card,
.cert-card,
.admin-list-item {
  border: 1px solid rgba(0, 213, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(13, 16, 16, 0.84);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.skill-card,
.cert-card {
  min-height: 156px;
  padding: 24px;
}

.project-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.skill-card:hover,
.project-card:hover,
.cert-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 245, 159, 0.4);
  box-shadow: var(--shadow-green);
}

.skill-title,
.card-title {
  margin-bottom: 14px;
  font-weight: 900;
}

.card-title {
  color: var(--text);
  font-size: 1.1rem;
}

.card-meta {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-description,
.cert-issuer,
.cert-year {
  color: var(--muted-strong);
}

.project-description {
  flex: 1;
}

.card-link {
  width: fit-content;
  margin-top: 20px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-row {
  min-height: 78px;
  display: grid;
  gap: 2px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 213, 255, 0.12);
  text-decoration: none;
}

.contact-row span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  transition: color 160ms ease;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--cyan);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(0, 213, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  outline: 0;
}

input {
  min-height: 44px;
  padding: 0 13px;
}

textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px 13px;
}

input:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.form-status.is-error {
  color: var(--danger);
}

.site-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 72px;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.86);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--cyan);
  text-decoration: none;
}

.auth-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(100%, 430px);
  padding: 34px;
}

.auth-card h1 {
  margin-bottom: 24px;
  font-size: 2.4rem;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 28px 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.9);
}

.admin-topbar h1 {
  margin: 0;
  font-size: 1.8rem;
}

.admin-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 42px 48px;
}

.admin-tabs {
  position: sticky;
  top: 22px;
  display: grid;
  align-content: start;
  gap: 8px;
  height: fit-content;
}

.admin-tab {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(0, 213, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(13, 16, 16, 0.9);
  color: var(--muted);
  cursor: pointer;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
}

.admin-tab.is-active,
.admin-tab:hover,
.admin-tab:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 213, 255, 0.08);
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: grid;
  gap: 22px;
}

.admin-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.profile-image-editor {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 213, 255, 0.12);
}

.admin-avatar-preview {
  width: 104px;
  height: 104px;
  display: block;
  border: 1px solid rgba(0, 213, 255, 0.4);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-cyan);
}

.profile-image-controls {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.profile-image-controls .form-status {
  min-height: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.admin-list-title {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.admin-list-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

.admin-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.small-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.68rem;
}

.message-body {
  margin: 8px 0 0;
  color: var(--muted-strong);
  white-space: pre-wrap;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

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

@keyframes cubeRotate {
  from {
    transform: rotateX(22deg) rotateY(0deg);
  }

  to {
    transform: rotateX(22deg) rotateY(360deg);
  }
}

@keyframes rippleExpand {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(6);
  }
}

@keyframes trailFade {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.15);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .system-orbit {
    width: 320px;
    height: 320px;
    justify-self: center;
  }

  .orbit-one {
    width: 210px;
    height: 210px;
  }

  .orbit-two {
    width: 270px;
    height: 270px;
  }

  .orbit-three {
    width: 320px;
    height: 320px;
  }

  .skills-grid,
  .projects-grid,
  .cert-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    height: auto;
    min-height: var(--header-height);
    padding: 12px 18px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    max-height: 0;
    padding-top: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 220ms ease, opacity 180ms ease, padding-top 220ms ease;
  }

  .site-header.is-open .nav-links {
    max-height: 240px;
    padding-top: 14px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero,
  .section,
  .site-footer {
    padding-right: 22px;
    padding-left: 22px;
  }

  .hero {
    padding-top: 104px;
  }

  .identity-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .avatar-shell {
    width: 126px;
    height: 126px;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .stats-grid,
  .about-layout,
  .contact-layout,
  .skills-grid,
  .projects-grid,
  .cert-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .system-orbit {
    width: 240px;
    height: 240px;
    justify-self: center;
  }

  .orbit-one {
    width: 160px;
    height: 160px;
  }

  .orbit-two {
    width: 205px;
    height: 205px;
  }

  .orbit-three {
    width: 240px;
    height: 240px;
  }

  .experience-timeline {
    padding-left: 24px;
  }

  .experience-timeline::before {
    left: 7px;
  }

  .experience-marker {
    top: 26px;
    left: -24px;
    width: 11px;
    height: 11px;
  }

  .experience-item {
    padding: 22px 20px;
  }

  .cube {
    width: 120px;
    height: 120px;
  }

  .cube-face:nth-child(1) {
    transform: translateZ(60px);
  }

  .cube-face:nth-child(2) {
    transform: rotateY(180deg) translateZ(60px);
  }

  .cube-face:nth-child(3) {
    transform: rotateY(-90deg) translateZ(60px);
  }

  .cube-face:nth-child(4) {
    transform: rotateY(90deg) translateZ(60px);
  }

  .cube-face:nth-child(5) {
    transform: rotateX(90deg) translateZ(60px);
  }

  .cube-face:nth-child(6) {
    transform: rotateX(-90deg) translateZ(60px);
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .admin-tabs {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-list-item {
    grid-template-columns: 1fr;
  }

  .profile-image-editor {
    grid-template-columns: 1fr;
  }

  .admin-list-actions {
    justify-content: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (pointer: coarse) {
  #cursor-core,
  #cursor-ring {
    display: none;
  }
}

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