:root {
  --bg-dark: #08111f;
  --bg-blue: #12304f;
  --bg-soft: #e3ebf3;
  --bg-tint: #cfd9e4;
  --text: #0b1623;
  --muted: #516170;
  --white: #ffffff;
  --accent: #9ae6b4;
  --accent-strong: #4fd1c5;
  --border: rgba(11, 22, 35, 0.1);
  --shadow: 0 20px 48px rgba(8, 17, 31, 0.08);
  --radius: 18px;
  --container: 1224px;
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-snap-type: y proximity;
  scroll-padding-top: 124px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-tint);
  overflow-x: clip;
}

main > section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 10, 18, 0.9);
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 124px;
}

.brand img {
  width: 130px;
  height: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(186, 215, 240, 0.18);
  border-radius: 12px;
  background: rgba(9, 18, 30, 0.78);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
}

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

.main-nav a {
  font-size: 16px;
  color: rgba(236, 245, 255, 0.86);
}

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

.social-link {
  font-size: 15px;
  font-weight: 600;
  color: rgba(186, 215, 240, 0.9);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 28px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button-primary {
  background: #0d2238;
  color: var(--white);
}

.button-primary:hover {
  background: #183756;
}

.button-secondary {
  border: 0;
  background: linear-gradient(135deg, #163757, #24507a);
  color: var(--white);
  cursor: pointer;
}

.hero {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background:
    radial-gradient(circle at 18% 20%, rgba(125, 211, 252, 0.06), transparent 16%),
    radial-gradient(circle at 68% 14%, rgba(96, 165, 250, 0.07), transparent 22%),
    radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.03), transparent 18%),
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.05), transparent 22%),
    radial-gradient(circle at 18% 76%, rgba(255, 255, 255, 0.04), transparent 26%),
    linear-gradient(180deg, rgba(1, 4, 10, 0.99), rgba(3, 8, 14, 0.99) 18%, rgba(6, 12, 22, 0.97) 52%, rgba(9, 18, 30, 0.94) 100%);
  padding: 44px 0 154px;
  margin-bottom: -108px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.8px),
    radial-gradient(circle at 17% 68%, rgba(255, 255, 255, 0.74) 0 1px, transparent 1.8px),
    radial-gradient(circle at 23% 34%, rgba(255, 255, 255, 0.92) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 31% 82%, rgba(255, 255, 255, 0.68) 0 1px, transparent 1.8px),
    radial-gradient(circle at 39% 22%, rgba(255, 255, 255, 0.86) 0 1.2px, transparent 2px),
    radial-gradient(circle at 48% 57%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 57% 14%, rgba(255, 255, 255, 0.9) 0 1.5px, transparent 2.3px),
    radial-gradient(circle at 63% 74%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.8px),
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.83) 0 1.2px, transparent 2px),
    radial-gradient(circle at 81% 62%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.8px),
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.76) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 94% 84%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.8px),
    radial-gradient(circle at 12% 44%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.8px),
    radial-gradient(circle at 44% 10%, rgba(255, 255, 255, 0.88) 0 1.3px, transparent 2.1px),
    radial-gradient(circle at 59% 88%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.8px),
    radial-gradient(circle at 76% 48%, rgba(255, 255, 255, 0.86) 0 1.2px, transparent 2px),
    radial-gradient(circle at 6% 54%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.8px),
    radial-gradient(circle at 15% 86%, rgba(255, 255, 255, 0.76) 0 1px, transparent 1.8px),
    radial-gradient(circle at 28% 8%, rgba(255, 255, 255, 0.92) 0 1.5px, transparent 2.3px),
    radial-gradient(circle at 36% 46%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.8px),
    radial-gradient(circle at 46% 76%, rgba(255, 255, 255, 0.88) 0 1.2px, transparent 2px),
    radial-gradient(circle at 54% 30%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 66% 8%, rgba(255, 255, 255, 0.94) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 71% 88%, rgba(255, 255, 255, 0.74) 0 1px, transparent 1.8px),
    radial-gradient(circle at 84% 42%, rgba(255, 255, 255, 0.9) 0 1.2px, transparent 2px),
    radial-gradient(circle at 97% 58%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.8px);
  transform-origin: center;
  animation: hero-star-drift 9s linear infinite alternate, hero-star-twinkle 3.8s ease-in-out infinite;
  opacity: 0.95;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -20% -20% -14% -20%;
  background:
    radial-gradient(circle at 16% 22%, rgba(103, 232, 249, 0.1) 0, transparent 22%),
    radial-gradient(circle at 58% 18%, rgba(125, 211, 252, 0.11) 0, transparent 28%),
    radial-gradient(circle at 78% 34%, rgba(255, 255, 255, 0.05) 0, transparent 24%),
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.08) 0, transparent 24%),
    radial-gradient(circle at 72% 36%, rgba(255, 255, 255, 0.06) 0, transparent 28%),
    radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.04) 0, transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  filter: blur(24px);
  mix-blend-mode: screen;
  animation: hero-nebula-float 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero + .section {
  position: relative;
  z-index: 1;
  padding-top: 182px;
  background: var(--bg-tint);
}

.hero + .section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -170px;
  height: 250px;
  background:
    linear-gradient(
      180deg,
      rgba(9, 18, 30, 0.96) 0%,
      rgba(16, 28, 42, 0.84) 18%,
      rgba(28, 43, 60, 0.62) 42%,
      rgba(79, 99, 121, 0.28) 68%,
      rgba(207, 217, 228, 0) 100%
    );
  filter: blur(32px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  align-items: start;
  gap: 64px;
  padding: 0 32px 0 0;
}

.hero-copy,
.hero-photo-frame {
  position: relative;
  z-index: 1;
}

.hero-copy {
  min-height: 420px;
  padding: 96px 0 96px 32px;
  color: #f8fafc;
}

@keyframes hero-star-drift {
  from {
    transform: translate3d(-20px, -12px, 0) scale(1);
  }

  to {
    transform: translate3d(28px, 22px, 0) scale(1.08);
  }
}

@keyframes hero-star-twinkle {
  0% {
    opacity: 0.7;
    filter: brightness(0.9);
  }

  25% {
    opacity: 0.98;
    filter: brightness(1.15);
  }

  55% {
    opacity: 0.78;
    filter: brightness(0.95);
  }

  100% {
    opacity: 0.95;
    filter: brightness(1.08);
  }
}

@keyframes hero-nebula-float {
  from {
    transform: translate3d(-5%, -3%, 0) scale(1) rotate(-2deg);
    opacity: 0.28;
  }

  to {
    transform: translate3d(4%, 5%, 0) scale(1.14) rotate(2deg);
    opacity: 0.62;
  }
}

.eyebrow {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 88px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(125, 211, 252, 0.08);
}

.hero-subtitle {
  max-width: 440px;
  margin: 36px 0 0;
  font-size: 24px;
  line-height: 1.25;
  color: var(--white);
}

.hero-photo-frame {
  width: 540px;
  min-height: 640px;
  padding: 42px 56px;
  background: transparent;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  min-height: 556px;
  object-fit: contain;
  object-position: center center;
}

.section {
  padding: 88px 0;
}

.section-light {
  background: var(--bg-tint);
}

.section-alt {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading-left {
  margin: 0 0 32px;
  text-align: left;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 52px;
  line-height: 1.08;
}

.section-heading p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
  text-wrap: pretty;
}

.section-dark .section-heading p,
.section-dark .contact-copy p,
.section-dark .contact-list p,
.section-dark .contact-list a {
  color: rgba(255, 255, 255, 0.86);
}

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

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

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

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

.cards-featured .card p {
  text-align: left;
  text-wrap: balance;
}

.ssdv-carousel {
  position: relative;
  max-width: none;
  margin: 8px 0 0 auto;
  width: 100%;
  padding: 8px 26px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0b1624, #122234);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  margin: 0;
  aspect-ratio: 16 / 10.6;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.carousel-slide figcaption {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(226, 236, 246, 0.92);
  text-align: center;
}

.carousel-slide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  height: 100%;
}

.carousel-panel {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(180deg, #0a1420, #132435);
  border-radius: 14px;
}

.carousel-expandable {
  cursor: zoom-in;
}

.carousel-panel img {
  min-height: 0;
  flex: 1;
}

.carousel-control {
  position: absolute;
  top: calc(50% - 12px);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.82);
  color: rgba(236, 245, 255, 0.92);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-control:hover {
  background: rgba(13, 34, 56, 0.94);
  transform: translateY(-50%) scale(1.04);
}

.carousel-prev {
  left: 18px;
}

.carousel-next {
  right: 18px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(81, 97, 112, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-dot.is-active {
  background: var(--accent-strong);
  transform: scale(1.15);
}

.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(2, 6, 12, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  width: min(1100px, 100%);
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lightbox-image {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 18px;
  background: linear-gradient(180deg, #09121e, #132435);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.lightbox-caption {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: rgba(236, 245, 255, 0.92);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.82);
  color: rgba(236, 245, 255, 0.96);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.card {
  height: 100%;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.card h3,
.stack-item h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.15;
  text-align: center;
}

.card p,
.stack-item p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  text-align: justify;
  text-wrap: pretty;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.competencies-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 40px;
  align-items: start;
}

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

.competencies-visual {
  align-self: start;
  padding-top: 22px;
}

.competency-list {
  display: grid;
  gap: 18px;
}

.competency-item {
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.competency-item h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.15;
}

.competency-item ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.competency-item li {
  font-size: 17px;
  line-height: 1.6;
}

.competencies-figure {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.competencies-figure img {
  width: 100%;
  display: block;
  max-height: 720px;
  object-fit: contain;
  border-radius: 14px;
  background: linear-gradient(180deg, #0b1624, #122234);
  padding: 8px;
}

.competencies-figure figcaption {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: var(--muted);
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(780px, 1.48fr);
  gap: 84px;
  align-items: start;
}

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

.experience-visual {
  justify-self: end;
  width: min(100%, 860px);
}

.experience-copy .section-heading p {
  text-align: justify;
  text-wrap: pretty;
}

.experience-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(13, 34, 56, 0.92);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.experience-link:hover {
  background: #183756;
  transform: translateY(-1px);
}

.split-section.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
}

.split-section.reverse .split-media {
  order: 2;
}

.split-section.reverse .split-content {
  order: 1;
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 503 / 624;
  object-fit: cover;
}

.stack {
  display: grid;
  gap: 18px;
}

.stack-item {
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 48px;
  align-items: start;
}

.contact-copy h2 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.08;
}

.contact-copy > p {
  max-width: 340px;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.5;
  text-align: justify;
  text-wrap: pretty;
}

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

.contact-list p,
.contact-list a {
  text-align: justify;
  text-wrap: pretty;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.contact-form label {
  font-size: 15px;
  font-weight: 600;
}

.contact-form input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(120, 144, 168, 0.6);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.98);
  color: var(--text);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 110;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #86dca7);
  color: #08111f;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(8, 17, 31, 0.22);
}

@media (max-width: 1100px) {
  html {
    scroll-padding-top: 96px;
  }

  .hero-grid,
  .split-section,
  .split-section.reverse,
  .contact-grid,
  .experience-layout,
  .competencies-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 96px;
    margin-bottom: -56px;
  }

  .hero + .section {
    padding-top: 120px;
  }

  .hero + .section::before {
    top: -116px;
    height: 180px;
    filter: blur(22px);
  }

  .split-section.reverse .split-media,
  .split-section.reverse .split-content {
    order: initial;
  }

  .hero-grid {
    gap: 24px;
    padding-right: 0;
  }

  .hero-copy {
    padding-right: 24px;
  }

  .hero-photo-frame {
    width: min(100%, 540px);
    margin: 0 auto;
  }

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

  .cards-3 {
    grid-template-columns: 1fr;
  }

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

  .ssdv-carousel {
    margin-top: 28px;
    padding-right: 48px;
    padding-left: 48px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .header-inner {
    min-height: 82px;
    padding: 14px 0;
    align-items: center;
    flex-wrap: wrap;
  }

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

  .header-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0 8px;
  }

  .site-header.menu-open .header-menu {
    display: flex;
  }

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

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

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

  .main-nav,
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .main-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 17px;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 12px 16px;
    padding-top: 6px;
  }

  .hero {
    padding: 28px 0 72px;
    margin-bottom: 0;
  }

  .hero + .section {
    padding-top: 64px;
  }

  .hero + .section::before {
    display: none;
  }

  .hero-copy {
    min-height: auto;
    padding: 36px 0 0;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(56px, 13vw, 76px);
  }

  .hero-subtitle {
    margin-top: 24px;
    font-size: 20px;
    max-width: none;
  }

  .hero-photo-frame {
    min-height: auto;
    padding: 8px;
  }

  .hero-photo-frame img {
    min-height: auto;
    aspect-ratio: 4 / 5;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 38px;
  }

  .section-heading p,
  .experience-copy .section-heading p,
  .contact-copy > p,
  .contact-list p,
  .contact-list a,
  .card p,
  .competency-item li {
    text-align: left;
  }

  .cards-4 {
    grid-template-columns: 1fr;
  }

  .cards-featured {
    grid-template-columns: 1fr;
  }

  .ssdv-carousel {
    padding: 16px 16px 24px;
  }

  .carousel-slide {
    aspect-ratio: auto;
    min-height: 360px;
  }

  .carousel-slide-grid {
    grid-template-columns: 1fr;
  }

  .carousel-control {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-image {
    max-height: calc(100vh - 120px);
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 82px;
  }

  .brand img {
    width: 104px;
  }

  .header-actions {
    align-items: stretch;
  }

  .button,
  .experience-link {
    min-height: 48px;
    padding-inline: 20px;
  }

  .hero h1 {
    font-size: clamp(42px, 15vw, 58px);
    line-height: 1.02;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 1.35;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 32px;
  }

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

  .card h3,
  .stack-item h3,
  .competency-item h3 {
    font-size: 22px;
    text-align: left;
  }

  .carousel-slide {
    min-height: 300px;
    padding: 4px;
  }

  .carousel-slide figcaption,
  .competencies-figure figcaption,
  .lightbox-caption {
    font-size: 14px;
  }

  .carousel-control {
    top: auto;
    bottom: -6px;
    transform: none;
  }

  .carousel-control:hover {
    transform: scale(1.04);
  }

  .carousel-prev {
    left: calc(50% - 54px);
  }

  .carousel-next {
    right: calc(50% - 54px);
  }

  .carousel-dots {
    margin-top: 22px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 16px;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .header-actions {
    width: 100%;
  }

  .header-actions .button {
    width: 100%;
  }

  .hero {
    padding-top: 20px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 28px;
  }

  .contact-copy > p {
    max-width: none;
  }

  .carousel-slide {
    min-height: 260px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    background:
      radial-gradient(circle at 18% 22%, rgba(125, 211, 252, 0.06), transparent 18%),
      radial-gradient(circle at 68% 16%, rgba(125, 211, 252, 0.07), transparent 24%),
      radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.07), transparent 26%),
      radial-gradient(circle at 18% 78%, rgba(255, 255, 255, 0.05), transparent 28%),
      linear-gradient(180deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.96));
  }

  .hero::before {
    animation: hero-star-drift 18s linear infinite alternate, hero-star-twinkle 8s ease-in-out infinite;
  }

  .hero::after {
    animation: hero-nebula-float 14s ease-in-out infinite alternate;
  }
}
