:root {
  --bg: #061326;
  --band: #091b31;
  --surface: #0d2238;
  --surface-strong: #102b46;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --ink: #f2f8ff;
  --muted: #a7b8ca;
  --line: rgba(147, 178, 211, 0.18);
  --soft-line: rgba(147, 178, 211, 0.11);
  --accent: #3bd1df;
  --accent-strong: #8eeaf0;
  --accent-soft: rgba(59, 209, 223, 0.12);
  --cyan: #58bdf5;
  --emerald: #35d49f;
  --steel: #7f96b2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --max: 1220px;
  --scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(65, 179, 255, 0.19), transparent 30%),
    radial-gradient(circle at 12% 24%, rgba(53, 212, 159, 0.12), transparent 28%),
    linear-gradient(180deg, #081b33 0, #061326 360px, #071427 100%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 58px);
  background: rgba(6, 19, 38, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition:
    min-height 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.site-header.scrolled {
  min-height: 64px;
  background: rgba(6, 19, 38, 0.94);
  border-color: rgba(59, 209, 223, 0.22);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--emerald));
  transform: scaleX(var(--scroll-progress));
  transform-origin: left;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #041220;
  background: linear-gradient(135deg, var(--accent), var(--emerald));
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 46px);
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  color: #c8d7e8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.desktop-nav a {
  position: relative;
  padding: 29px 0;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--emerald));
  opacity: 0;
  transform: scaleX(0.5);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

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

.button-primary {
  color: #041220;
  background: linear-gradient(135deg, var(--accent), var(--emerald));
  box-shadow: 0 18px 36px rgba(59, 209, 223, 0.18);
}

.button-secondary {
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(142, 234, 240, 0.58);
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.menu-button svg {
  width: 22px;
  height: 22px;
}

svg {
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.mobile-nav {
  position: fixed;
  inset: 72px 14px auto;
  z-index: 19;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: rgba(9, 27, 49, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.mobile-nav a {
  padding: 15px 14px;
  border-radius: 6px;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

main section[id] {
  scroll-margin-top: 88px;
}

.hero {
  min-height: min(760px, calc(100vh - 110px));
  display: grid;
  align-items: center;
  padding: 66px 0 42px;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(330px, 0.76fr) minmax(420px, 1.24fr);
  align-items: center;
  gap: clamp(32px, 5vw, 78px);
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

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

.hero h1 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.94;
  font-weight: 850;
  letter-spacing: 0;
}

@media (min-width: 1081px) {
  .hero-content {
    grid-template-columns: minmax(600px, 0.94fr) minmax(0, 1fr);
    gap: clamp(30px, 4vw, 64px);
  }

  .hero h1 {
    white-space: nowrap;
    font-size: clamp(60px, 5vw, 72px);
  }

  .hero-title {
    white-space: nowrap;
    font-size: clamp(30px, 2.45vw, 34px);
  }
}

.hero-title {
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  font-weight: 650;
}

.location-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  color: #d5e6f7;
  font-size: 17px;
  font-weight: 700;
}

.location-line svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.hero-summary {
  max-width: 590px;
  margin-bottom: 18px;
  color: #b7c8d8;
  font-size: 18px;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 28px;
  color: #d9e8f7;
  font-size: 14px;
  font-weight: 800;
}

.hero-meta span + span {
  position: relative;
  padding-left: 18px;
}

.hero-meta span + span::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "|";
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-actions .button {
  min-width: 160px;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
  border: 1px solid rgba(147, 178, 211, 0.18);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  transform:
    perspective(1100px)
    rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg))
    translateZ(0);
  transition:
    transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 220ms ease;
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 19, 38, 0.74) 0%, rgba(6, 19, 38, 0.28) 28%, rgba(6, 19, 38, 0) 52%),
    radial-gradient(circle at 80% 20%, rgba(59, 209, 223, 0.18), transparent 30%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.status-panel {
  position: absolute;
  z-index: 2;
  min-width: 168px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(6, 19, 38, 0.84);
  border: 1px solid rgba(142, 234, 240, 0.34);
  border-radius: 6px;
  box-shadow: 0 18px 42px rgba(7, 19, 38, 0.24);
  backdrop-filter: blur(12px);
  animation: panel-float 5.5s ease-in-out infinite;
}

.status-panel span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-panel strong {
  font-size: 24px;
  line-height: 1;
}

.status-panel-top {
  top: 24px;
  right: 26px;
}

.status-panel-bottom {
  right: 42px;
  bottom: 32px;
  animation-delay: -2.2s;
}

.ops-console {
  position: absolute;
  bottom: 26px;
  left: 24px;
  z-index: 3;
  width: min(290px, calc(100% - 200px));
  padding: 14px;
  color: #dcedff;
  background: rgba(8, 26, 47, 0.86);
  border: 1px solid rgba(142, 234, 240, 0.24);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.ops-console-head,
.ops-row {
  display: grid;
  align-items: center;
  gap: 10px;
}

.ops-console-head {
  grid-template-columns: 10px 1fr;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-console-head span {
  width: 9px;
  height: 9px;
  background: #3fcb91;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(63, 203, 145, 0.48);
  animation: live-pulse 1.9s ease-out infinite;
}

.ops-row {
  grid-template-columns: 74px 1fr auto;
  padding: 8px 0;
  border-top: 1px solid rgba(142, 234, 240, 0.14);
  font-size: 12px;
  font-weight: 800;
}

.ops-row i {
  height: 5px;
  overflow: hidden;
  background: rgba(142, 234, 240, 0.13);
  border-radius: 999px;
}

.ops-row i::before {
  display: block;
  width: 76%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--emerald));
  border-radius: inherit;
  animation: meter-scan 2.8s ease-in-out infinite;
}

.ops-row:nth-child(3) i::before {
  width: 88%;
  animation-delay: -0.8s;
}

.ops-row:nth-child(4) i::before {
  width: 68%;
  animation-delay: -1.5s;
}

.ops-row b {
  color: var(--accent-strong);
  font-size: 11px;
  text-transform: uppercase;
}

.band {
  padding: 44px 0;
  background:
    linear-gradient(135deg, rgba(15, 43, 70, 0.72), rgba(7, 20, 39, 0.9)),
    var(--band);
  border-block: 1px solid var(--line);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.27fr) minmax(0, 1fr);
  gap: 38px;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  font-weight: 850;
}

h3 {
  margin-bottom: 9px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 830;
}

.split-heading > div:first-child p,
.section-top p,
.experience-layout > div:first-child p,
.contact p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.skill-card {
  min-height: 190px;
  padding: 26px;
  background: rgba(13, 34, 56, 0.82);
  transition:
    transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 220ms ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  background: rgba(16, 43, 70, 0.96);
}

.skill-card,
.project-card,
.cert-card {
  position: relative;
  overflow: hidden;
}

.skill-card::after,
.project-card::after,
.cert-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(
      135deg,
      rgba(70, 188, 198, 0.18) 0%,
      rgba(64, 198, 161, 0.08) 34%,
      rgba(255, 255, 255, 0) 62%
    );
  opacity: 0;
  transform: translate(var(--spot-move-x, 0), var(--spot-move-y, 0));
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.skill-card:hover::after,
.project-card:hover::after,
.cert-card:hover::after {
  opacity: 1;
}

.skill-card > *,
.project-card > *,
.cert-card > * {
  position: relative;
  z-index: 2;
}

.icon-box,
.project-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(142, 234, 240, 0.22);
  border-radius: 6px;
}

.icon-box svg,
.project-icon svg {
  width: 25px;
  height: 25px;
}

.skill-card p,
.project-card p,
.timeline article p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.work,
.experience {
  padding: 70px 0;
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-button {
  min-height: 36px;
  padding: 0 14px;
  color: #bbccdc;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
  color: #041220;
  background: linear-gradient(135deg, var(--accent), var(--emerald));
}

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

.project-card {
  min-height: 330px;
  padding: 26px;
  background: rgba(13, 34, 56, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 180ms ease;
}

.project-card.hidden {
  display: none;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(142, 234, 240, 0.34);
}

.project-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.project-card li {
  padding: 6px 8px;
  color: var(--accent-strong);
  background: rgba(59, 209, 223, 0.11);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.32fr) minmax(0, 1fr);
  gap: 56px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.timeline::before {
  position: absolute;
  top: 16px;
  right: 8px;
  left: 8px;
  height: 1px;
  content: "";
  background: var(--accent);
}

.timeline article {
  position: relative;
  padding-top: 44px;
}

.detailed-timeline {
  grid-template-columns: 1fr;
  gap: 0;
}

.detailed-timeline::before {
  top: 10px;
  bottom: 10px;
  left: 8px;
  width: 1px;
  height: auto;
  background: var(--line);
}

.detailed-timeline article {
  padding-top: 0;
  padding-bottom: 32px;
  padding-left: 44px;
  border-bottom: 1px solid var(--soft-line);
}

.detailed-timeline article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detailed-timeline .timeline-dot {
  top: 4px;
}

.detailed-timeline ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.timeline-dot {
  position: absolute;
  top: 8px;
  left: 0;
  width: 17px;
  height: 17px;
  background: var(--accent);
  border: 4px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-date {
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.certifications-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.3fr) minmax(0, 1fr);
  gap: 44px;
}

.certifications-layout > div:first-child p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.cert-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.cert-filter {
  min-height: 34px;
  padding: 0 13px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(142, 234, 240, 0.2);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.cert-filter:hover {
  transform: translateY(-1px);
  border-color: rgba(142, 234, 240, 0.42);
}

.cert-filter.active {
  color: #041220;
  background: linear-gradient(135deg, var(--accent), var(--emerald));
  border-color: transparent;
}

.certification-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cert-card {
  position: relative;
  min-height: 168px;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 43, 70, 0.95), rgba(11, 31, 52, 0.95)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  transition:
    transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.cert-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 4px;
  content: "";
  background: linear-gradient(180deg, var(--accent), var(--emerald));
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(142, 234, 240, 0.34);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.35);
}

.cert-card.filtered-out {
  display: none;
}

.featured-cert {
  background:
    linear-gradient(135deg, rgba(59, 209, 223, 0.15), rgba(53, 212, 159, 0.08)),
    var(--surface);
}

.cert-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.exam-code {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: white;
  border-radius: 999px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.exam-code.m365,
.exam-code.azure {
  background: linear-gradient(135deg, #0f6cbd, #30a9bd);
}

.exam-code.network {
  background: linear-gradient(135deg, #006d6f, #40c6a1);
}

.exam-code.security {
  background: linear-gradient(135deg, #d82420, #f05f45);
}

.exam-code.comptia {
  background: linear-gradient(135deg, #c41435, #f05d5e);
}

.cert-year {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(142, 234, 240, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.certification-list h3 {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.25;
}

.certification-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.contact {
  padding: 56px 0;
  color: white;
  background:
    linear-gradient(135deg, #071326, #062c3b 56%, #073a3a),
    #071326;
}

.contact-layout {
  display: grid;
  grid-template-columns: 110px minmax(260px, 1fr) auto minmax(220px, 0.42fr);
  align-items: center;
  gap: 30px;
}

.contact-mark svg {
  width: 86px;
  height: 86px;
  color: var(--emerald);
  stroke-width: 3;
}

.contact h2 {
  max-width: 620px;
  margin-bottom: 10px;
  color: white;
}

.contact p {
  color: #c8d7df;
}

.contact-actions {
  display: grid;
  gap: 12px;
  min-width: 190px;
}

.contact .button-secondary {
  color: white;
  background: transparent;
  border-color: var(--cyan);
}

.contact-links {
  display: grid;
  gap: 12px;
  padding-left: 26px;
  color: #d9e8ee;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-links a:hover {
  color: var(--cyan);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 0 clamp(20px, 4vw, 58px);
  color: #c7d5dc;
  background: #06101f;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

.site-footer a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--cyan);
  border: 1px solid rgba(70, 188, 198, 0.65);
  border-radius: 6px;
}

.site-footer svg {
  width: 20px;
  height: 20px;
}

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

  50% {
    transform: translateY(-8px);
  }
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 203, 145, 0.48);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(63, 203, 145, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(63, 203, 145, 0);
  }
}

@keyframes meter-scan {
  0%,
  100% {
    transform: scaleX(0.72);
  }

  50% {
    transform: scaleX(1);
  }
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero-content,
  .split-heading,
  .experience-layout,
  .certifications-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 52px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-visual img {
    min-height: 390px;
  }

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

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

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

  .contact-layout {
    grid-template-columns: 86px 1fr;
  }

  .contact-actions,
  .contact-links {
    grid-column: 2;
  }

  .contact-links {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
    padding: 0 16px;
  }

  .brand {
    font-size: 17px;
  }

  .mobile-nav {
    inset-top: 66px;
  }

  .section-shell {
    width: min(100% - 28px, var(--max));
  }

  .hero-content,
  .hero-copy,
  .hero-visual {
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  main section[id] {
    scroll-margin-top: 76px;
  }

  .hero h1 {
    font-size: clamp(38px, 10.6vw, 44px);
    line-height: 1;
  }

  .hero-title {
    margin-bottom: 12px;
    font-size: 23px;
    line-height: 1.15;
  }

  .hero-summary {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.56;
    margin-bottom: 14px;
  }

  .location-line {
    margin-bottom: 16px;
    font-size: 15px;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
  }

  .hero-meta span + span {
    padding-left: 0;
  }

  .hero-meta span + span::before {
    display: none;
  }

  .band {
    padding: 28px 0;
  }

  .cert-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions .button {
    flex: 1 1 140px;
    min-width: 0;
    padding-inline: 18px;
  }

  .hero-visual {
    min-height: 220px;
  }

  .hero-visual img {
    min-height: 220px;
  }

  .status-panel {
    min-width: 132px;
    max-width: calc(100% - 28px);
    padding: 11px 12px;
  }

  .status-panel strong {
    font-size: 18px;
  }

  .status-panel-top {
    top: 14px;
    right: 14px;
  }

  .status-panel-bottom {
    display: none;
  }

  .ops-console {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    padding: 10px;
  }

  .ops-console-head {
    margin-bottom: 6px;
  }

  .ops-row {
    grid-template-columns: 58px minmax(64px, 1fr) minmax(48px, auto);
    gap: 7px;
    padding: 6px 0;
    font-size: 11px;
  }

  .ops-row b {
    font-size: 10px;
  }

  .expertise-grid,
  .project-grid,
  .timeline,
  .certification-list {
    grid-template-columns: 1fr;
  }

  .section-top {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-group {
    overflow-x: auto;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 8px;
    width: 1px;
    height: auto;
  }

  .timeline article {
    padding-top: 0;
    padding-left: 42px;
  }

  .timeline-dot {
    top: 4px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-actions,
  .contact-links {
    grid-column: auto;
  }

  .site-footer {
    padding: 16px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
