:root {
  --bg: #050806;
  --bg-soft: #0a100c;
  --panel: rgba(10, 17, 13, 0.9);
  --panel-strong: rgba(8, 12, 10, 0.96);
  --panel-border: rgba(98, 255, 155, 0.12);
  --text: #eaf8ee;
  --muted: #92af9d;
  --accent: #62ff9b;
  --accent-strong: #9dff67;
  --accent-soft: rgba(98, 255, 155, 0.12);
  --shadow: 0 26px 56px rgba(0, 0, 0, 0.32);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1440px;
  --sidebar-width: 320px;
  --gutter: 28px;
  --section-gap: 22px;
  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-display);
  color: var(--text);
  background:
    radial-gradient(circle at 15% 18%, rgba(98, 255, 155, 0.17), transparent 18%),
    radial-gradient(circle at 78% 12%, rgba(98, 255, 155, 0.12), transparent 20%),
    linear-gradient(135deg, #040604 0%, #090d0a 45%, #050806 100%);
}

body.is-loading {
  overflow: hidden;
}

body.is-loading .skip-link,
body.is-loading .page-shell,
body.is-loading .floating-nav,
body.is-loading .whatsapp-float,
body.is-loading .project-modal {
  visibility: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    linear-gradient(transparent 0, rgba(98, 255, 155, 0.025) 2px, transparent 2px) 0 0 / 100% 54px,
    linear-gradient(90deg, transparent 0, rgba(98, 255, 155, 0.025) 1px, transparent 1px) 0 0 / 54px 100%;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6) 12%, #000);
}

body::after {
  background:
    linear-gradient(
      180deg,
      transparent 0,
      rgba(98, 255, 155, 0.07) 48%,
      transparent 52%,
      transparent 100%
    );
  background-size: 100% 220px;
  opacity: 0.45;
  animation: scanline 10s linear infinite;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: 12px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #031007;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

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

.page-shell {
  width: min(calc(100% - 30px), var(--max-width));
  margin: 0 auto;
  padding: 20px 0 48px;
  display: grid;
  grid-template-columns: minmax(280px, var(--sidebar-width)) minmax(0, 1fr);
  gap: var(--gutter);
}

.panel {
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(15, 24, 18, 0.88), rgba(7, 11, 9, 0.95)),
    rgba(10, 17, 13, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: auto -10% 68% 38%;
  height: 180px;
  background: radial-gradient(circle, rgba(98, 255, 155, 0.18), transparent 70%);
  pointer-events: none;
}

.panel--inner {
  background: linear-gradient(180deg, rgba(13, 19, 15, 0.92), rgba(7, 10, 8, 0.98));
}

.sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}

.profile-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.profile-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.status-pill,
.section-kicker,
.metric-card__label,
.contact-card__label,
.timeline__year,
.hero__console-title,
.loader__eyebrow,
.loader__copy,
.profile-card__code {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(98, 255, 155, 0.08);
  border: 1px solid rgba(98, 255, 155, 0.2);
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(98, 255, 155, 0.76);
}

.profile-card__code {
  color: var(--muted);
}

.profile-image-frame {
  width: min(100%, 220px);
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  padding: 10px;
  border-radius: 28px;
  border: 1px solid rgba(98, 255, 155, 0.14);
  background:
    linear-gradient(135deg, rgba(98, 255, 155, 0.08), transparent 45%),
    rgba(6, 10, 7, 0.68);
}

.profile-image-frame--photo {
  background-image:
    linear-gradient(180deg, rgba(2, 5, 3, 0.1), rgba(2, 5, 3, 0.1)),
    image-set(
      url("assets/foto-perfil-armando.webp") type("image/webp"),
      url("assets/foto-perfil-armando.png") type("image/png")
    ),
    url("assets/profile-placeholder.svg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.profile-copy {
  display: grid;
  gap: 10px;
}

.profile-name {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 0.96;
}

.profile-role,
.hero__description,
.section-copy,
.about-card p,
.metric-card p,
.experience-card p,
.contact-card p,
.project-card__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.profile-meta {
  display: grid;
  gap: 8px;
}

.profile-meta p {
  margin: 0;
  color: var(--muted);
}

.profile-meta a:hover {
  color: var(--accent);
}

.profile-stack,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-stack span,
.chip-row span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text);
  border: 1px solid rgba(98, 255, 155, 0.14);
  background: rgba(98, 255, 155, 0.06);
}

.profile-actions,
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

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

.btn--primary {
  color: #041108;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 34px rgba(98, 255, 155, 0.22);
}

.btn--secondary {
  color: #dff7ff;
  border-color: rgba(91, 211, 255, 0.32);
  background: linear-gradient(135deg, rgba(7, 31, 37, 0.92), rgba(10, 59, 54, 0.88));
  box-shadow: 0 16px 34px rgba(57, 184, 255, 0.14);
}

.btn--secondary:hover {
  border-color: rgba(91, 211, 255, 0.54);
  background: linear-gradient(135deg, rgba(10, 43, 51, 0.96), rgba(12, 77, 68, 0.92));
}

.btn--ghost,
.carousel-btn {
  color: var(--text);
  border: 1px solid rgba(98, 255, 155, 0.16);
  background: rgba(255, 255, 255, 0.015);
}

.btn--ghost:hover,
.carousel-btn:hover {
  border-color: rgba(98, 255, 155, 0.3);
  background: rgba(98, 255, 155, 0.08);
}

.content {
  display: grid;
  gap: 24px;
}

.section {
  display: grid;
  gap: var(--section-gap);
  scroll-margin-top: 24px;
}

.section-heading {
  display: grid;
  gap: 10px;
}

.section-heading--compact {
  max-width: 1240px;
}

.section-heading--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
}

.section-heading h2,
.hero__title {
  margin: 0;
  line-height: 0.95;
}

.hero__title {
  font-size: clamp(2.3rem, 4.2vw, 4.5rem);
  max-width: 13ch;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  max-width: 26ch;
}

.hero__title span,
.section-heading h2 span {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(98, 255, 155, 0.28);
}

.hero {
  padding: clamp(26px, 4vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.78fr);
  gap: 18px;
  align-items: stretch;
}

.hero__copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.hero__media {
  min-height: 100%;
  padding: 10px;
}

.hero__media-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 24px;
  background-image:
    linear-gradient(180deg, rgba(3, 7, 5, 0.12), rgba(3, 7, 5, 0.2)),
    image-set(
      url("assets/foto-portada-armando.webp") type("image/webp"),
      url("assets/foto-portada-armando.png") type("image/png")
    ),
    url("assets/hero-placeholder.svg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.about-card {
  padding: 24px;
}

.about-card--lead {
  display: grid;
  gap: 14px;
}

.about-card__title {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

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

.about-mini-grid article {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(98, 255, 155, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.about-mini-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  color: var(--accent);
}

.about-mini-grid p {
  font-size: 0.92rem;
  line-height: 1.5;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.skill-orb {
  position: relative;
  min-height: 176px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 50% 18%, rgba(98, 255, 155, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.01);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.skill-orb__ring {
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1px solid transparent;
  opacity: 0.9;
  pointer-events: none;
}

.skill-orb:hover {
  transform: translateY(-4px);
  border-color: rgba(98, 255, 155, 0.34);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.skill-orb__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(98, 255, 155, 0.18);
  background: rgba(98, 255, 155, 0.05);
  font-size: 0.78rem;
}

.skill-orb__value {
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  line-height: 1;
  color: var(--accent);
  font-weight: 500;
}

.skill-orb__label {
  margin: 0;
  font-size: 0.84rem;
  text-align: center;
}

.skill-orb--wordpress .skill-orb__icon,
.skill-orb__ring--wordpress {
  border-color: rgba(79, 156, 255, 0.4);
}

.skill-orb--wordpress .skill-orb__icon {
  background: rgba(79, 156, 255, 0.12);
  color: #90cbff;
}

.skill-orb--woocommerce .skill-orb__icon,
.skill-orb__ring--woocommerce {
  border-color: rgba(177, 97, 255, 0.38);
}

.skill-orb--woocommerce .skill-orb__icon {
  background: rgba(177, 97, 255, 0.12);
  color: #d1a3ff;
}

.skill-orb--gtm .skill-orb__icon,
.skill-orb__ring--gtm {
  border-color: rgba(92, 176, 255, 0.36);
}

.skill-orb--gtm .skill-orb__icon {
  background: rgba(92, 176, 255, 0.12);
  color: #9acfff;
}

.skill-orb--javascript .skill-orb__icon,
.skill-orb__ring--javascript {
  border-color: rgba(255, 214, 79, 0.38);
}

.skill-orb--javascript .skill-orb__icon {
  background: rgba(255, 214, 79, 0.14);
  color: #ffe278;
}

.skill-orb--typescript .skill-orb__icon,
.skill-orb__ring--typescript {
  border-color: rgba(84, 159, 255, 0.36);
}

.skill-orb--typescript .skill-orb__icon {
  background: rgba(84, 159, 255, 0.12);
  color: #90c2ff;
}

.skill-orb--react .skill-orb__icon,
.skill-orb__ring--react {
  border-color: rgba(97, 218, 251, 0.38);
}

.skill-orb--react .skill-orb__icon {
  background: rgba(97, 218, 251, 0.12);
  color: #86ecff;
}

.skill-orb--angular .skill-orb__icon,
.skill-orb__ring--angular {
  border-color: rgba(255, 89, 117, 0.38);
}

.skill-orb--angular .skill-orb__icon {
  background: rgba(255, 89, 117, 0.12);
  color: #ff9aaa;
}

.skill-orb--html .skill-orb__icon,
.skill-orb__ring--html {
  border-color: rgba(255, 125, 78, 0.38);
}

.skill-orb--html .skill-orb__icon {
  background: rgba(255, 125, 78, 0.12);
  color: #ffa278;
}

.skill-orb--css .skill-orb__icon,
.skill-orb__ring--css {
  border-color: rgba(86, 162, 255, 0.36);
}

.skill-orb--css .skill-orb__icon {
  background: rgba(86, 162, 255, 0.12);
  color: #8dc8ff;
}

.skill-orb--php .skill-orb__icon,
.skill-orb__ring--php {
  border-color: rgba(142, 122, 255, 0.38);
}

.skill-orb--php .skill-orb__icon {
  background: rgba(142, 122, 255, 0.12);
  color: #b3a4ff;
}

.skill-orb--node .skill-orb__icon,
.skill-orb__ring--node {
  border-color: rgba(98, 255, 155, 0.34);
}

.skill-orb--node .skill-orb__icon {
  background: rgba(98, 255, 155, 0.1);
  color: #98ffbf;
}

.skill-orb--seo .skill-orb__icon,
.skill-orb__ring--seo {
  border-color: rgba(255, 176, 71, 0.36);
}

.skill-orb--seo .skill-orb__icon {
  background: rgba(255, 176, 71, 0.12);
  color: #ffc67f;
}

.section-controls {
  display: flex;
  gap: 10px;
}

.carousel-btn {
  min-height: 42px;
  min-width: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
}

.experience-carousel {
  overflow: hidden;
}

.experience-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 31vw);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.experience-track::-webkit-scrollbar {
  display: none;
}

.experience-card {
  min-height: 260px;
  padding: 22px;
  scroll-snap-align: start;
}

.experience-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 14px;
}

.experience-dot {
  padding: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.experience-dot.is-active {
  transform: scale(1.15);
  border-color: rgba(98, 255, 155, 0.42);
  background: var(--accent);
}

.timeline__year {
  color: var(--accent);
}

.experience-card h3,
.project-card__title {
  margin: 10px 0 12px;
  font-size: 1.42rem;
}

.portfolio-toolbar {
  padding: 16px 18px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(98, 255, 155, 0.14);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #031007;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  transform: translateY(-1px);
}

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

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-height: 510px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(98, 255, 155, 0.28);
}

.project-media {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  min-height: 220px;
  overflow: hidden;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  appearance: none;
  text-align: left;
  background:
    radial-gradient(circle at 50% 28%, rgba(98, 255, 155, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(8, 16, 11, 0.92), rgba(4, 8, 6, 0.98));
  border-bottom: 1px solid rgba(98, 255, 155, 0.08);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.35s ease;
}

.project-media:hover img,
.project-media:focus-visible img {
  transform: scale(1.07);
}

.project-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 6, 0.94));
}

.project-media:focus-visible {
  outline: 2px solid rgba(98, 255, 155, 0.5);
  outline-offset: 4px;
}

.project-media__zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(98, 255, 155, 0.18);
  background: rgba(3, 12, 7, 0.74);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-content {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
}

.project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-link {
  color: var(--accent);
  font-weight: 700;
}

.project-link:hover {
  color: var(--accent-strong);
}

body.modal-open {
  overflow: hidden;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.project-modal[hidden] {
  display: none;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 3, 0.82);
  backdrop-filter: blur(16px);
}

.project-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.project-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-modal__close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(98, 255, 155, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
}

.project-modal__close:hover,
.project-modal__close:focus-visible {
  border-color: rgba(98, 255, 155, 0.42);
  color: var(--accent);
}

.project-modal__dialog img {
  width: 100%;
  max-height: min(78vh, 860px);
  object-fit: contain;
  border-radius: 22px;
  background: #040806;
}

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

.contact-card,
.contact-form {
  padding: 22px;
}

.contact-card a {
  display: inline-block;
  margin: 10px 0 12px;
  font-size: 1.24rem;
  font-weight: 700;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-form {
  grid-column: span 2;
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(98, 255, 155, 0.14);
  background: rgba(4, 8, 5, 0.72);
  color: var(--text);
  outline: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  transform: translateY(-1px);
  border-color: rgba(98, 255, 155, 0.34);
  box-shadow: 0 0 0 4px rgba(98, 255, 155, 0.1);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  padding: 4px 4px 8px;
}

.floating-nav {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 32;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 12, 10, 0.86);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.floating-nav a {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.01);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.floating-nav a::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8, 12, 10, 0.96);
  border: 1px solid rgba(98, 255, 155, 0.14);
  color: var(--text);
  font-size: 0.76rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.floating-nav a:hover,
.floating-nav a.is-active {
  color: #031007;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  transform: scale(1.05);
}

.floating-nav a:hover::after,
.floating-nav a.is-active::after {
  opacity: 1;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #031007;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow:
    0 16px 34px rgba(98, 255, 155, 0.28),
    0 0 0 10px rgba(98, 255, 155, 0.08);
  z-index: 33;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

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

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 60;
  background:
    radial-gradient(circle at 50% 44%, rgba(98, 255, 155, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(1, 2, 1, 1), rgba(3, 5, 3, 1));
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  width: min(90vw, 560px);
  display: grid;
  gap: 18px;
  text-align: center;
  justify-items: center;
}

.loader__name {
  margin: 0;
  font-size: clamp(3.8rem, 12vw, 7rem);
  letter-spacing: 0.18em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(98, 255, 155, 0.5);
  background: linear-gradient(
    90deg,
    rgba(98, 255, 155, 0.08) 0%,
    rgba(98, 255, 155, 0.08) 18%,
    rgba(98, 255, 155, 1) 50%,
    rgba(98, 255, 155, 0.08) 82%,
    rgba(98, 255, 155, 0.08) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: sweep 2.4s linear infinite;
}

.loader__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(98, 255, 155, 0.08);
  overflow: hidden;
}

.loader__progress {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 20px rgba(98, 255, 155, 0.42);
  animation: loading 2.8s ease forwards;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@keyframes loading {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes sweep {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 200% 0;
  }
}

@keyframes scanline {
  from {
    transform: translateY(-220px);
  }

  to {
    transform: translateY(220px);
  }
}

@media (max-width: 1240px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .profile-card {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
  }

  .profile-card__head,
  .profile-copy,
  .profile-meta,
  .profile-stack,
  .profile-actions {
    grid-column: 2;
  }

  .profile-image-frame {
    grid-column: 1;
    grid-row: 1 / span 5;
    width: 100%;
  }
}

@media (max-width: 1120px) {
  .hero,
  .about-grid,
  .portfolio-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero__grid,
  .project-card--featured,
  .contact-form {
    grid-column: span 1;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 18px), var(--max-width));
    padding-top: 12px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-card__head,
  .profile-copy,
  .profile-meta,
  .profile-stack,
  .profile-actions,
  .profile-image-frame {
    grid-column: auto;
    grid-row: auto;
  }

  .profile-image-frame {
    width: min(100%, 180px);
  }

  .hero,
  .about-card,
  .portfolio-toolbar,
  .project-content,
  .contact-card,
  .contact-form,
  .experience-card {
    padding: 20px;
  }

  .hero__title,
  .section-heading h2 {
    max-width: 100%;
  }

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

  .experience-track {
    grid-auto-columns: 88%;
  }

  .floating-nav {
    right: 50%;
    top: auto;
    bottom: 18px;
    transform: translateX(50%);
    flex-direction: row;
    gap: 8px;
    padding: 10px 12px;
    width: min(calc(100% - 24px), 520px);
    justify-content: center;
  }

  .floating-nav a {
    width: 38px;
    height: 38px;
    font-size: 0.68rem;
  }

  .floating-nav a::after {
    display: none;
  }

  .project-card {
    min-height: auto;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 92px;
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 560px) {
  .profile-actions,
  .hero__actions {
    flex-direction: column;
  }

  .btn,
  .carousel-btn {
    width: 100%;
  }

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

  .skill-orb {
    min-height: 158px;
  }

  .project-media {
    min-height: 190px;
    height: 190px;
  }

  .experience-track {
    grid-auto-columns: 100%;
  }

  .project-modal {
    padding: 14px;
  }

  .project-modal__dialog {
    padding: 14px;
  }

  .project-modal__dialog img {
    max-height: 70vh;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  body::after,
  .loader,
  .floating-nav,
  .whatsapp-float,
  .project-modal,
  .hero__actions,
  .section-controls,
  .portfolio-toolbar {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    padding: 0;
    display: block;
  }

  .panel,
  .skill-orb,
  .contact-card,
  .contact-form,
  .experience-card,
  .project-card {
    background: #fff;
    color: #111;
    box-shadow: none;
    border-color: #d2d2d2;
  }

  .panel::before {
    display: none;
  }

  .profile-role,
  .hero__description,
  .section-copy,
  .about-card p,
  .metric-card p,
  .experience-card p,
  .contact-card p,
  .project-card__description {
    color: #444;
  }

  .experience-track,
  .portfolio-grid,
  .contact-grid,
  .about-grid,
  .skills-grid,
  .hero {
    display: block;
  }

  .experience-card,
  .project-card,
  .contact-card,
  .skill-orb,
  .metric-card {
    margin-bottom: 18px;
  }
}
