/* ===== LENIS ===== */
html.lenis,
html.lenis body {
  height: auto
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain
}

.lenis.lenis-smooth iframe {
  pointer-events: none
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete
}

/* Manrope (Variable) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/manrope-variable.woff2') format('woff2-variations');
}

/* Inter Tight */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-tight-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-tight-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-tight-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/inter-tight-800.woff2') format('woff2');
}

:root {
  --navy-980: #09111b;
  --navy-960: #0e1623;
  --navy-950: #182232;
  --navy-900: #212e40;
  --navy-880: #29374d;
  --navy-800: #313e59;
  --blue-700: #54678c;
  --blue-500: #7890bf;
  --blue-300: #a9b9d9;
  --acid: #c9f31d;
  --coral: #ff7a4f;
  --mint: #84f1c4;
  --mist-500: #b2c1d8;
  --mist-100: #edf3fd;
  --mist-200: #dfe8f7;
  --white: #f9fbff;
  --border-dark: rgba(169, 185, 217, 0.18);
  --border-light: rgba(169, 185, 217, 0.14);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  --glass-fill:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 14, 23, 0.28);
  --glass-fill-strong:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(8, 14, 23, 0.36);
  --glass-radius: 1rem;
  --glass-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --shadow-dark: 0 28px 80px rgba(8, 12, 20, 0.28);
  --shadow-light: 0 24px 60px rgba(26, 39, 60, 0.12);

  --font-display: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--navy-980);
}

/* Lenis toma el control del scroll cuando esta activo; esto evita doble suavizado. */
html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

html.lenis.lenis-stopped {
  overflow: hidden;
}

html.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  position: relative;
  margin: 0;
  color: var(--white);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 18% 12%, rgba(132, 241, 196, 0.1), transparent 28rem),
    radial-gradient(circle at 84% 16%, rgba(120, 144, 191, 0.15), transparent 34rem),
    radial-gradient(circle at 54% 78%, rgba(255, 122, 79, 0.08), transparent 32rem),
    linear-gradient(180deg, #101722 0%, #0c131d 52%, #09111b 100%);
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

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

body::before {
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(201, 243, 29, 0.04), transparent 32%),
    linear-gradient(220deg, rgba(255, 122, 79, 0.06), transparent 35%),
    radial-gradient(circle at 50% 82%, rgba(84, 103, 140, 0.16), transparent 32rem);
}

body::after {
  z-index: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, transparent, black 12%, black 88%, transparent);
}

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

body.has-vision-cursor,
body.has-vision-cursor * {
  cursor: none !important;
}

.cursor-follower {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.cursor-follower.is-visible {
  opacity: 1;
}

.cursor-follower__outer-carrier,
.cursor-follower__inner-carrier {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.cursor-follower__outer,
.cursor-follower__inner {
  display: block;
  transform: translate(-50%, -50%);
  transform-origin: center;
  will-change: width, height, opacity, border-radius, box-shadow, backdrop-filter;
}

.cursor-follower__outer {
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(10, 17, 27, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(201, 243, 29, 0.04),
    0 14px 40px rgba(3, 8, 14, 0.14),
    0 0 32px rgba(132, 241, 196, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(146%);
  backdrop-filter: blur(18px) saturate(146%);
  transition:
    width 260ms cubic-bezier(0.22, 1, 0.36, 1),
    height 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms ease,
    background 260ms ease,
    box-shadow 260ms ease,
    opacity 220ms ease,
    filter 260ms ease,
    transform 260ms ease;
}

.cursor-follower__inner {
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.68) 52%, rgba(132, 241, 196, 0.2) 100%);
  box-shadow:
    0 0 0.4rem rgba(255, 255, 255, 0.16),
    0 0 1.2rem rgba(132, 241, 196, 0.18);
  transition:
    width 220ms cubic-bezier(0.22, 1, 0.36, 1),
    height 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    box-shadow 220ms ease;
}

.cursor-follower:not(.is-moving) .cursor-follower__outer {
  opacity: 0;
  filter: blur(4px);
}

.cursor-follower[data-state="interactive"] .cursor-follower__outer {
  width: 1.55rem;
  height: 1.55rem;
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(10, 17, 27, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 8px 22px rgba(3, 8, 14, 0.11),
    0 0 18px rgba(132, 241, 196, 0.08);
  filter: blur(0.25px);
}

.cursor-follower[data-state="interactive"] .cursor-follower__inner {
  width: 0.4rem;
  height: 0.4rem;
  box-shadow:
    0 0 0.38rem rgba(255, 255, 255, 0.14),
    0 0 0.92rem rgba(132, 241, 196, 0.16);
}

.cursor-follower.is-pressed .cursor-follower__outer {
  border-color: rgba(255, 255, 255, 0.22);
}

.cursor-follower.is-pressed .cursor-follower__inner {
  opacity: 0.96;
}

#top,
#about,
#work,
#contact {
  scroll-margin-top: 0;
}

button {
  font: inherit;
}

.site-shell {
  position: relative;
  z-index: 2;
  overflow-x: clip;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  padding: 1rem 1.2rem 0;
}

.topbar__inner {
  display: grid;
  position: relative;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(9, 15, 24, 0.22);
  backdrop-filter: blur(18px) saturate(135%);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 10px 32px rgba(0, 0, 0, 0.1);
  isolation: isolate;
}

.topbar__inner::after,
.fact-row::before,
.profile-card::before,
.project-row::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-image: var(--glass-grain);
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  opacity: 0.03;
  pointer-events: none;
  content: "";
}

.topbar__inner>.brand,
.topbar__inner>.lang-switch,
.fact-row>*,
.profile-card>*,
.project-row>* {
  position: relative;
  z-index: 1;
}

.topbar__inner>.topbar__nav {
  z-index: 1;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(201, 243, 29, 0.92), rgba(132, 241, 196, 0.82));
  background-size: 180% 180%;
  background-position: 20% 40%;
  color: var(--navy-980);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  box-shadow: 0 10px 26px rgba(132, 241, 196, 0.18);
  isolation: isolate;
  transition: box-shadow 220ms ease, filter 220ms ease, transform 220ms ease;
}

.topbar__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  justify-content: center;
  gap: 1.25rem;
}

.topbar__nav a {
  position: relative;
  color: rgba(249, 251, 255, 0.84);
  transition: color 220ms ease, transform 220ms ease, filter 220ms ease;
}

.topbar__nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.12rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
  content: "";
}

.topbar__nav a:hover::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  gap: 0.45rem;
  justify-self: end;
}

.lang-switch__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(249, 251, 255, 0.76);
  cursor: pointer;
  isolation: isolate;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.lang-switch__button.is-active {
  border-color: rgba(201, 243, 29, 0.3);
  background: rgba(201, 243, 29, 0.12);
  color: var(--white);
}

.brand::before,
.lang-switch__button::before {
  position: absolute;
  inset: -1px;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  background:
    conic-gradient(from 0deg,
      rgba(201, 243, 29, 0),
      rgba(201, 243, 29, 0.95),
      rgba(132, 241, 196, 0.85),
      rgba(255, 122, 79, 0.72),
      rgba(201, 243, 29, 0));
  opacity: 0;
  pointer-events: none;
  content: "";
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.brand::after,
.lang-switch__button::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0.55rem rgba(255, 255, 255, 0.16),
    inset 0 0 1.15rem rgba(201, 243, 29, 0.16),
    0 0 1rem rgba(132, 241, 196, 0.12);
  opacity: 0;
  pointer-events: none;
  content: "";
}

.brand:hover,
.brand:focus-visible,
.lang-switch__button:hover,
.lang-switch__button:focus-visible {
  transform: translateY(-1px);
}

.brand:hover,
.brand:focus-visible {
  animation: navBrandBreathing 1.7s ease-in-out infinite;
  box-shadow:
    0 16px 36px rgba(132, 241, 196, 0.28),
    0 0 0 0.28rem rgba(201, 243, 29, 0.08),
    inset 0 0 1.25rem rgba(255, 255, 255, 0.24),
    inset 0 -0.35rem 0.9rem rgba(9, 17, 27, 0.08);
  filter: saturate(1.16) brightness(1.04);
}

.lang-switch__button:hover,
.lang-switch__button:focus-visible {
  border-color: rgba(201, 243, 29, 0.34);
  background: transparent !important;
  box-shadow: 0 0.8rem 1.8rem rgba(3, 8, 14, 0.14);
  color: var(--white);
}



.brand:hover::before,
.brand:focus-visible::before {
  opacity: 1;
  animation: navBorderSpin 1.6s linear infinite;
}

.brand:hover::before,
.brand:focus-visible::before {
  animation-duration: 0.95s;
}

.brand:hover::after,
.brand:focus-visible::after,
.lang-switch__button:hover::after,
.lang-switch__button:focus-visible::after {
  opacity: 1;
  animation: navInnerGlowPulse 1.55s ease-in-out infinite;
}



.lang-switch__button>* {
  position: relative;
  z-index: 1;
}

.brand::before {
  inset: -2px;
  padding: 2px;
  background:
    conic-gradient(from 0deg,
      rgba(201, 243, 29, 0),
      rgba(255, 255, 255, 0.98),
      rgba(201, 243, 29, 0.98),
      rgba(132, 241, 196, 0.95),
      rgba(255, 122, 79, 0.7),
      rgba(201, 243, 29, 0));
  filter: drop-shadow(0 0 0.55rem rgba(201, 243, 29, 0.3));
}

.brand::after {
  inset: 0.16rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.46), transparent 34%),
    radial-gradient(circle at 72% 82%, rgba(132, 241, 196, 0.28), transparent 42%);
  box-shadow:
    inset 0 0 0.7rem rgba(255, 255, 255, 0.2),
    inset 0 0 1.35rem rgba(201, 243, 29, 0.22),
    0 0 1.2rem rgba(132, 241, 196, 0.16);
}

.flag {
  position: relative;
  width: 1.22rem;
  height: 0.88rem;
  aspect-ratio: 19 / 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.18rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 0.01rem rgba(255, 255, 255, 0.22);
}

.flag--ar {
  background: linear-gradient(180deg, #86c4ff 0 33%, #ffffff 33% 66%, #86c4ff 66% 100%);
}

.flag--ar::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.16rem;
  height: 0.16rem;
  border-radius: 999px;
  background: #e3b53e;
  transform: translate(-50%, -50%);
  content: "";
}

.flag--us {
  background: repeating-linear-gradient(180deg,
      #b22234 0 7.69%,
      #ffffff 7.69% 15.38%);
}

.flag--us::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 46%;
  height: 56%;
  background:
    radial-gradient(circle, #ffffff 0 0.03rem, transparent 0.04rem) 0.08rem 0.08rem / 0.16rem 0.14rem,
    radial-gradient(circle, #ffffff 0 0.03rem, transparent 0.04rem) 0.16rem 0.15rem / 0.16rem 0.14rem,
    #3c3b6e;
  content: "";
}

.flag--us::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%);
  content: "";
}

.band {
  position: relative;
  z-index: 3;
  padding: 6rem 1.4rem;
  isolation: isolate;
}

.band::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.band__shell,
.footer__inner {
  position: relative;
  z-index: 1;
}

.band--light {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(9, 17, 27, 0.08) 0%, rgba(9, 17, 27, 0.14) 100%);
}

.band--light::before {
  background:
    radial-gradient(circle at 24% 22%, rgba(132, 241, 196, 0.04), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 20%);
}

.band--dark {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 17, 27, 0.1) 0%, rgba(9, 17, 27, 0.18) 100%);
}

.band--dark::before {
  background:
    radial-gradient(circle at 78% 34%, rgba(120, 144, 191, 0.04), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 18%);
}

.band--accent {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(10, 17, 27, 0.22) 0%, rgba(9, 17, 27, 0.12) 100%);
}

.band--accent::before {
  background:
    radial-gradient(circle at 76% 24%, rgba(201, 243, 29, 0.022), transparent 18rem),
    radial-gradient(circle at 18% 72%, rgba(132, 241, 196, 0.024), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 26%);
}

.section-head {
  position: relative;
  max-width: 52rem;
  text-shadow:
    0 0.08rem 0.16rem rgba(0, 0, 0, 0.48),
    0 1rem 2.6rem rgba(4, 9, 16, 0.34);
}

.section-head h2 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 7.5vw, 8rem);
  line-height: 0.88;
}

.section-head p {
  max-width: 35rem;
  margin: 0.8rem 0 0;
}

.band--light .eyebrow,
.band--light .section-head p,
.band--light .about__story p,
.band--light .fact-row__text {
  color: rgba(249, 251, 255, 0.76);
}

.band--light .section-head h2,
.band--light .fact-row__value {
  color: var(--white);
}

.footer {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 2.8rem));
  margin: 1rem auto 0;
  min-height: auto;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  min-height: auto;
  padding-top: 0;
  text-align: center;
}

.footer__monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  color: rgba(249, 251, 255, 0.88);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.footer__copy {
  margin: 0;
  color: rgba(249, 251, 255, 0.56);
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(9, 17, 27, 0.98);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-menu__link {
  color: var(--white);
  font-size: 2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 921px) {
  .mobile-menu {
    display: none !important;
  }
}

.eyebrow {
  margin: 0 0 0.95rem;
  color: var(--blue-300);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__title,
.section-head h2,
.project-row__name,
.fact-row__value {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.055em;
  text-transform: none;
}

.case-sensitive-term {
  text-transform: none;
}

.hero__lede,
.section-head p,
.about__story p,
.fact-row__text,
.project-row__description {
  font-size: 1.05rem;
  line-height: 1.72;
}

.topbar__nav a,
.text-link {
  position: relative;
  color: rgba(249, 251, 255, 0.84);
  transition: color 220ms ease, transform 220ms ease, filter 220ms ease;
}

.topbar__nav a::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -0.12rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
  content: "";
}

.topbar__nav a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

.topbar__nav a::after {
  display: none;
}

.topbar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.26rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  isolation: isolate;
}

.topbar__nav a::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(201, 243, 29, 0.1), rgba(132, 241, 196, 0.045)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 0 0 1px rgba(201, 243, 29, 0.16),
    inset 0 0 1.1rem rgba(201, 243, 29, 0.08),
    0 0.8rem 1.7rem rgba(3, 8, 14, 0.12);
  opacity: 0;
  transition: opacity 190ms ease;
  content: "";
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible {
  color: rgba(249, 251, 255, 0.96);
  filter: drop-shadow(0 0.45rem 1.05rem rgba(201, 243, 29, 0.13));
  transform: translateY(-1px);
}

.topbar__nav a:hover::before,
.topbar__nav a:focus-visible::before {
  opacity: 1;
  animation: navInnerGlowPulse 1.55s ease-in-out infinite;
}

.brand:active {
  animation: none !important;
  transform: translateY(0) scale(0.90) !important;
}

.topbar__nav a:active,
.lang-switch__button:active {
  transform: translateY(0) scale(0.85) !important;
}

.text-link {
  display: inline-flex;
  margin-top: 1.6rem;
  font-weight: 700;
}

.text-link:hover {
  color: rgba(201, 243, 29, 0.96);
  filter: drop-shadow(0 0.45rem 1.1rem rgba(201, 243, 29, 0.16));
  transform: translateY(-1px);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  min-height: 3.2rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  transform: translate3d(0, 0, 0) scale(1);
  text-shadow: none;
  box-shadow:
    0 0.45rem 1rem rgba(6, 12, 22, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 240ms ease,
    background-position 360ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease,
    filter 240ms ease;
  isolation: isolate;
  will-change: transform;
}

.button:hover {
  background-position: 100% 50%;
  transform: translate3d(0, -4px, 0) scale(1.02);
  box-shadow:
    0 0.75rem 1.75rem rgba(6, 12, 22, 0.22),
    0 0.35rem 1.4rem rgba(132, 241, 196, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: saturate(1.08) brightness(1.02);
}

.button::after {
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.32) 46%, transparent 68%);
  opacity: 0;
  transform: translateX(-120%);
  transition: transform 520ms ease, opacity 260ms ease;
  content: "";
  pointer-events: none;
}

.button * {
  text-shadow: none;
}

.button:hover::after {
  opacity: 0.72;
  transform: translateX(120%);
}

.button:active {
  box-shadow:
    0 0.35rem 0.9rem rgba(6, 12, 22, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translate3d(0, -1px, 0) scale(0.995);
}

.button:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.button--solid {
  background: linear-gradient(135deg, var(--acid), var(--mint));
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: var(--navy-950);
  font-weight: 800;
}

.button--ghost {
  background: linear-gradient(135deg, var(--acid), var(--mint));
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: var(--navy-950);
}

.button__icon {
  width: 1.12rem;
  height: 1.12rem;
  flex: 0 0 auto;
  fill: currentColor;
}

/* Contact button icon normalization */
.contact__actions .button__icon {
  display: block;
  width: 1.28rem;
  height: 1.28rem;
  flex: 0 0 1.28rem;
  overflow: visible;
}

.contact__actions a[href*="linkedin"] .button__icon {
  transform: scale(0.82);
  transform-origin: center;
}

/* Technology badges */
.tech-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.36rem;
  min-height: 2.3rem;
  padding: 0.38rem 0.78rem 0.38rem 0.42rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: rgba(249, 251, 255, 0.82);
  -webkit-backdrop-filter: blur(10px) saturate(128%);
  backdrop-filter: blur(10px) saturate(128%);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.05;
  isolation: isolate;
  will-change: transform, filter, opacity;
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    color 260ms ease;
}

.tech-badge::before,
.tech-badge::after {
  position: absolute;
  content: "";
}

.tech-badge::before {
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(132, 241, 196, 0.18) 52%,
      rgba(201, 243, 29, 0.16) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tech-badge::after {
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 72%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.tech-badge>* {
  position: relative;
  z-index: 1;
}

.tech-badge__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  min-width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(201, 243, 29, 0.14);
  color: rgba(201, 243, 29, 0.98);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

.tech-badge__icon {
  display: block;
  width: 1.34rem;
  height: 1.34rem;
  object-fit: contain;
}

.tech-badge__label {
  display: inline-flex;
  align-items: center;
  transition: transform 260ms ease;
}

@media (hover: hover) {
  .tech-badge:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 10px 24px rgba(3, 8, 14, 0.12);
    color: var(--white);
  }

  .tech-badge:hover::before {
    transform: scaleX(1);
  }

  .tech-badge:hover::after {
    opacity: 1;
  }

  .tech-badge:hover .tech-badge__mark {
    transform: scale(1.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .tech-badge:hover .tech-badge__label {
    transform: translateX(1px);
  }
}

/* iOS / Apple */
.tech-badge--swift .tech-badge__mark,
.tech-badge--swiftui .tech-badge__mark,
.tech-badge--uikit .tech-badge__mark,
.tech-badge--appkit .tech-badge__mark,
.tech-badge--ipados .tech-badge__mark,
.tech-badge--watchos .tech-badge__mark,
.tech-badge--swiftdata .tech-badge__mark {
  background: rgba(255, 122, 79, 0.16);
  color: rgba(255, 180, 150, 0.98);
}

/* APIs / architecture */
.tech-badge--api .tech-badge__mark,
.tech-badge--observation .tech-badge__mark,
.tech-badge--auth .tech-badge__mark,
.tech-badge--mvvm .tech-badge__mark {
  background: rgba(132, 241, 196, 0.14);
  color: rgba(132, 241, 196, 0.98);
}

/* Academic / backend */
.tech-badge--csharp .tech-badge__mark,
.tech-badge--dotnet .tech-badge__mark,
.tech-badge--winforms .tech-badge__mark,
.tech-badge--sql .tech-badge__mark,
.tech-badge--cpp .tech-badge__mark,
.tech-badge--oop .tech-badge__mark,
.tech-badge--files .tech-badge__mark,
.tech-badge--console .tech-badge__mark {
  background: rgba(120, 144, 191, 0.18);
  color: rgba(197, 211, 238, 0.98);
}

/* Tools */
.tech-badge--git .tech-badge__mark,
.tech-badge--github .tech-badge__mark,
.tech-badge--xcode .tech-badge__mark,
.tech-badge--macos .tech-badge__mark {
  background: rgba(249, 251, 255, 0.12);
  color: rgba(249, 251, 255, 0.92);
}

/* Dark SVG logos on dark UI */
.tech-badge--uikit .tech-badge__icon,
.tech-badge--appkit .tech-badge__icon,
.tech-badge--ipados .tech-badge__icon,
.tech-badge--watchos .tech-badge__icon,
.tech-badge--macos .tech-badge__icon,
.tech-badge--github .tech-badge__icon {
  filter: invert(1);
}

.hero {
  position: relative;
  --hero-pad-top: 7rem;
  --hero-pad-bottom: 3rem;
  --hero-gutter: 1.4rem;
  --hero-secondary-indent: clamp(8.75rem, 45vw, 30rem);
  min-height: 155svh;
  padding: 0;
  overflow: clip;
  background:
    radial-gradient(circle at 72% 38%, rgba(169, 185, 217, 0.16), transparent 34rem),
    radial-gradient(circle at 38% 72%, rgba(132, 241, 196, 0.08), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 28%, rgba(169, 185, 217, 0.08), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  content: "";
  pointer-events: none;
}

.hero__sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
  overflow: hidden;
}

.hero__shell,
.band__shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero__shell {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(20rem, 1fr);
  gap: 3rem;
  align-items: center;
  width: min(1180px, calc(100% - (var(--hero-gutter) * 2)));
  min-height: calc(100svh - var(--hero-pad-top) - var(--hero-pad-bottom));
}

.hero__copy {
  position: relative;
  z-index: 5;
  max-width: 36rem;
  margin-top: clamp(-32rem, -4vh, 0rem);
  text-shadow:
    0 0.08rem 0.14rem rgba(0, 0, 0, 0.55),
    0 0.8rem 2.2rem rgba(8, 12, 20, 0.42);
}

.hero__copy> :not(.hero__title) {
  opacity: 0;
  visibility: hidden;
}

.hero__title {
  display: grid;
  font-size: clamp(6rem, 14.4vw, 20.2rem);
  line-height: 0.79;
}

.hero__title span:last-child {
  padding-left: var(--hero-secondary-indent);
}

.hero__accent {
  position: relative;
  top: clamp(-8.45rem, -11.6vh, -6.15rem);
  margin: -1rem 0 0;
  color: var(--acid);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 0.86;
}

.hero__lede {
  position: relative;
  top: clamp(-8.45rem, -11.6vh, -6.15rem);
  max-width: 31rem;
  margin: 0.95rem 0 0;
  color: rgba(249, 251, 255, 0.82);
  font-size: 1.02rem;
  line-height: 1.68;
  text-wrap: balance;
}

.hero__meta-group {
  position: absolute;
  left: calc(var(--hero-secondary-indent) + clamp(1.55rem, 2.3vw, 2.15rem));
  top: clamp(30.5rem, 60.8vh, 37.7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: none;
  z-index: 10;
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.85rem;
  width: clamp(25rem, 31vw, 32rem);
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 1rem;
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  color: rgba(249, 251, 255, 0.6);
  font-size: 0.8rem;
  letter-spacing: -0.01em;
}

.global-apple-background {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero__wash,
.hero__liquid-light,
.hero__gridline {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__wash {
  background:
    radial-gradient(circle at 66% 42%, rgba(249, 251, 255, 0.08), transparent 23rem),
    radial-gradient(circle at 82% 18%, rgba(84, 103, 140, 0.12), transparent 28rem),
    radial-gradient(circle at 58% 78%, rgba(132, 241, 196, 0.05), transparent 24rem),
    linear-gradient(135deg, rgba(49, 62, 89, 0.08), transparent 46%);
}

.hero__liquid-light {
  z-index: 1;
  opacity: 0;
  background:
    radial-gradient(circle at 58% 36%, rgba(255, 255, 255, 0.32), transparent 18rem),
    radial-gradient(circle at 72% 62%, rgba(132, 241, 196, 0.1), transparent 20rem),
    radial-gradient(circle at 42% 74%, rgba(120, 144, 191, 0.12), transparent 20rem);
  mix-blend-mode: screen;
}

.hero__gridline {
  z-index: 1;
  opacity: 0.08;
  background:
    linear-gradient(rgba(33, 46, 64, 0.18), rgba(33, 46, 64, 0.18)),
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent 92px,
      rgba(33, 46, 64, 0.1) 93px);
  mask-image: linear-gradient(180deg, transparent, black 14%, black 88%, transparent);
}

.hero__apple-scene {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  perspective: 900px;
  --apple-offset: clamp(18rem, 34vw, 42rem);
  pointer-events: none;
  will-change: transform;
}

/* La manzana viaja como capa global: el fondo queda abajo, luego la fruta y por ultimo el contenido. */
.apple-aura {
  position: absolute;
  width: min(54rem, 72vw);
  margin-left: var(--apple-offset);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 32%, rgba(255, 255, 255, 0.52), transparent 18%),
    radial-gradient(circle at 62% 58%, rgba(120, 144, 191, 0.18), transparent 50%),
    radial-gradient(circle, rgba(201, 243, 29, 0.08), transparent 68%);
  filter: blur(16px);
  opacity: 0.18;
  transform: scale(0.9);
}

.apple-floor {
  position: absolute;
  bottom: 11.5%;
  width: min(30rem, 44vw);
  height: 3.8rem;
  margin-left: var(--apple-offset);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(49, 62, 89, 0.16), transparent 68%);
  filter: blur(6px);
  opacity: 0.22;
}

.apple-svg {
  position: relative;
  z-index: 2;
  width: min(64rem, 52vw);
  aspect-ratio: 1 / 1;
  margin-left: var(--apple-offset);
  overflow: visible;
  transform: scale(0.52);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  contain: layout paint;
}

.apple-stack {
  position: relative;
}

.apple-phase {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: blur(10px);
  object-fit: contain;
  object-position: center;
  transform: scale(0.985);
  user-select: none;
  pointer-events: none;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.apple-phase img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.apple-real,
.apple-solid,
.apple-metal,
.apple-glass {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.apple-real {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.apple-solid {
  opacity: 0;
}

.apple-metal,
.apple-glass {
  opacity: 0;
}

.no-gsap .apple-svg {
  animation: appleFallback 5.5s ease-in-out infinite alternate;
}

@keyframes navBorderSpin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes navBrandBreathing {

  0%,
  100% {
    background-position: 16% 42%;
    transform: translateY(-1px) scale(1.04);
  }

  50% {
    background-position: 86% 58%;
    transform: translateY(-1px) scale(1.22);
  }
}

@keyframes navInnerGlowPulse {

  0%,
  100% {
    box-shadow:
      inset 0 0 0.55rem rgba(255, 255, 255, 0.14),
      inset 0 0 1rem rgba(201, 243, 29, 0.14),
      0 0 0.95rem rgba(132, 241, 196, 0.1);
  }

  50% {
    box-shadow:
      inset 0 0 0.85rem rgba(255, 255, 255, 0.22),
      inset 0 0 1.65rem rgba(201, 243, 29, 0.24),
      0 0 1.35rem rgba(132, 241, 196, 0.18);
  }
}

@keyframes appleFallback {
  from {
    transform: translate3d(0, 0, 0) scale(0.52);
  }

  to {
    transform: translate3d(0, -0.8rem, 0) scale(0.58);
  }
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.88fr) minmax(0, 1.12fr);
  gap: 2.35rem 3.2rem;
  align-items: start;
  margin-top: 2.1rem;
  margin-bottom: 1.8rem;
}

.about__story p {
  position: relative;
  margin: 0;
}

.about__story {
  position: relative;
  max-width: 35rem;
  padding-top: 0.4rem;
  text-shadow: 0 0.08rem 0.14rem rgba(0, 0, 0, 0.38);
}

.about__education-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about__story p+p {
  margin-top: 1rem;
}

.fact-list {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.education-panel__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.education-panel__list {
  display: grid;
  gap: 0.75rem;
}

.education-panel .profile-mini-card {
  margin-top: 0;
}

.fact-row,
.profile-card,
.project-row {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  background: var(--glass-fill);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 18px 46px rgba(3, 8, 14, 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(124%);
  backdrop-filter: blur(14px) saturate(124%);
  isolation: isolate;
}

.fact-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1rem;
}

.fact-row__label,
.project-row__eyebrow {
  color: rgba(84, 103, 140, 0.86);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fact-row__value {
  font-size: 2rem;
  line-height: 0.92;
}

.fact-row__text {
  margin: 0.5rem 0 0;
  font-size: 0.96rem;
}

.profile-detail {
  margin-top: 1.25rem;
}

.profile-detail__head {
  margin-bottom: 1rem;
}

.profile-detail__head--mobile-only {
  display: block;
  margin-bottom: 0.5rem;
}

.profile-detail__head .eyebrow {
  margin-bottom: 0;
}

.profile-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(18rem, 0.78fr);
  gap: 0.85rem;
  align-items: stretch;
}

.profile-detail__side,
.profile-mini-list,
.profile-skill-list {
  display: grid;
  gap: 0.85rem;
}

.profile-detail__side {
  align-content: start;
}

.profile-card {
  padding: 1.05rem;
}

.profile-card h3 {
  margin: 0;
  margin-bottom: 2.2%;
  margin-top: -0.6%;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: none;
}

.profile-timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

.profile-timeline::before {
  position: absolute;
  top: 0.2rem;
  bottom: 0.3rem;
  left: 0.34rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(201, 243, 29, 0.48), rgba(169, 185, 217, 0.08));
  content: "";
}

.profile-timeline__item {
  position: relative;
  padding-left: 1.35rem;
}

.profile-timeline__item::before {
  position: absolute;
  top: 0.35rem;
  left: 0;
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid rgba(201, 243, 29, 0.5);
  border-radius: 999px;
  background: rgba(201, 243, 29, 0.18);
  box-shadow: 0 0 1.2rem rgba(201, 243, 29, 0.18);
  content: "";
}

.profile-timeline__item h4,
.profile-mini-card h4 {
  margin: 0.2rem 0 0;
  color: var(--white);
  font-size: 1rem;
}

.profile-timeline__item p,
.profile-mini-card p {
  margin: 0.35rem 0 0;
  color: rgba(249, 251, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.58;
}

.profile-card--timeline .profile-timeline__item h4 {
  font-size: 1.08rem;
}

.profile-card--timeline .profile-timeline__item p {
  font-size: 1rem;
  line-height: 1.64;
}

.profile-card--timeline .profile-timeline__period,
.profile-card--timeline .profile-timeline__place {
  font-size: 0.75rem;
}

.profile-timeline__period,
.profile-timeline__place,
.profile-skill-group>span,
.project-section__label,
.project-row__type,
.project-status {
  color: rgba(169, 185, 217, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-mini-card {
  padding: 0.85rem;
  margin-top: 0.5%;
  border: 1px solid rgba(169, 185, 217, 0.12);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.035);
}

.profile-mini-card__link {
  display: inline-flex;
  margin-top: 0.65rem;
  color: rgba(201, 243, 29, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
}

.profile-mini-card__link:hover {
  color: var(--acid);
}

.profile-skill-group {
  display: grid;
  gap: 0.55rem;
}

.profile-skill-group__items {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.hero,
.about,
.work,
.contact {
  position: relative;
}

.work {
  padding-top: clamp(7.8rem, 12svh, 9.2rem);
}

.project-list {
  display: grid;
  gap: 2.7rem;
  margin-top: 1.8rem;
}

.project-section {
  display: grid;
  gap: 0.85rem;
}

.project-section__head {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(169, 185, 217, 0.12);
}

.project-section__label {
  font-size: 0.8rem;
}

.project-section__grid {
  display: grid;
  gap: 1.25rem;
}

/* ── Project card – default (mobile-first horizontal layout) ── */
.project-row {
  display: grid;
  grid-template-columns: minmax(11.5rem, 0.32fr) minmax(0, 1fr);
  gap: 1.05rem;
  align-items: stretch;
  padding: 0.9rem;
  will-change: transform;
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    transform 260ms ease;
}

@media (hover: hover) {
  .project-row:hover {
    border-color: rgba(201, 243, 29, 0.22);
    box-shadow:
      inset 0 1px 0 var(--glass-highlight),
      0 22px 54px rgba(3, 8, 14, 0.18);
  }
}

.project-row__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.25rem 0.25rem 0.25rem 0;
}

.project-row__topline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}

.project-row__index {
  color: rgba(169, 185, 217, 0.42);
  font-family: var(--font-display);
  font-size: 2.35rem;
  line-height: 1;
}

.project-row__name {
  font-size: 2.55rem;
  line-height: 0.94;
}

.project-row__description {
  max-width: 42rem;
  margin: 0.55rem 0 0;
  color: rgba(249, 251, 255, 0.78);
}

.project-row__tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.project-row__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
}

.project-row__link {
  min-height: 2.75rem;
  padding: 0.72rem 1.05rem;
  white-space: nowrap;
}

.project-status {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
}

/* ── Project media ── */
.project-media {
  position: relative;
  min-height: 14rem;
  border: 1px solid rgba(169, 185, 217, 0.12);
  border-radius: 0.82rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 44% 28%, rgba(201, 243, 29, 0.13), transparent 9rem),
    radial-gradient(circle at 78% 72%, rgba(120, 144, 191, 0.15), transparent 11rem),
    rgba(255, 255, 255, 0.035);
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 19rem;
  object-fit: contain;
  /* Safer default for varying aspect ratios */
  object-position: center;
  transition: opacity 300ms ease;
}

/* Inline hover-video inside the media card */
.project-media__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Default for landscape previews */
  opacity: 0;
  transition: opacity 340ms ease;
  pointer-events: none;
  border-radius: inherit;
}

/* Ensure videos inside mockups fit properly */
.project-media--phone-mockup .project-media__video {
  object-fit: contain;
  padding: 0.5rem;
}

/* Play icon overlay on desktop cards with video */
.project-media__play-hint {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  display: none;
  /* Hidden on touch by default */
  align-items: center;
  gap: 0.38rem;
  padding: 0.32rem 0.68rem 0.32rem 0.44rem;
  border-radius: 999px;
  background: rgba(9, 17, 27, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 243, 29, 0.22);
  color: rgba(201, 243, 29, 0.95);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 1;
  transition: opacity 260ms ease;
}

@media (hover: hover) {
  .project-media__play-hint {
    display: inline-flex;
  }
}

.project-media__play-hint svg {
  width: 0.7rem;
  height: 0.7rem;
  fill: currentColor;
  flex: 0 0 auto;
}

.project-media--phone-mockup {
  display: grid;
  place-items: center;
  min-height: 18rem;
}

.project-media--phone-mockup img {
  width: auto;
  height: min(100%, 21rem);
  max-height: 21rem;
  object-fit: contain;
  transform: scale(1);
  /* Removed scaling that caused "too big" issues */
  transform-origin: center;
  filter: drop-shadow(0 1.2rem 2.4rem rgba(0, 0, 0, 0.32));
}

.project-media--placeholder {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  padding: 1.2rem;
  text-align: center;
}

.project-media--placeholder span {
  color: rgba(201, 243, 29, 0.85);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-media--placeholder strong {
  max-width: 13rem;
  color: rgba(249, 251, 255, 0.82);
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: none;
}

.work__footer {
  margin-top: 2rem;
}

.project-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(3, 8, 14, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.project-demo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-demo-modal__panel {
  width: min(62rem, 100%);
  max-height: calc(100svh - 2rem);
  padding: 0.85rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  background: var(--glass-fill-strong);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 2rem 6rem rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  transform: scale(0.965);
  transition: transform 180ms ease;
}

.project-demo-modal.is-open .project-demo-modal__panel {
  transform: scale(1);
}

.project-demo-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 0.7rem;
}

.project-demo-modal__title {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: none;
}

.project-demo-modal__close {
  flex: 0 0 auto;
  min-height: 2.45rem;
  padding: 0.58rem 0.82rem;
  border: 1px solid rgba(169, 185, 217, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(249, 251, 255, 0.84);
  cursor: pointer;
}

.project-demo-modal__close:hover,
.project-demo-modal__close:focus-visible {
  border-color: rgba(201, 243, 29, 0.36);
  color: var(--white);
}

.project-demo-modal__video {
  display: block;
  width: 100%;
  max-height: min(72svh, 42rem);
  border-radius: 0.8rem;
  background: #000;
}

@media (max-width: 760px) {
  .project-demo-modal {
    padding: 0.75rem;
  }

  .project-demo-modal__panel {
    max-height: calc(100svh - 1.5rem);
    padding: 0.65rem;
  }

  .project-demo-modal__title {
    font-size: 1.45rem;
  }

  .project-demo-modal__close {
    min-height: 2.25rem;
    padding: 0.5rem 0.68rem;
    font-size: 0.86rem;
  }
}

.contact__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 4rem;
}

.contact__shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.contact {
  min-height: auto !important;
  padding-top: clamp(7.4rem, 10svh, 8.9rem);
  padding-bottom: 0;
  border-top: 1px solid rgba(169, 185, 217, 0.12);
}

.contact .section-head {
  align-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .section-head:not(:has(> p:not(.eyebrow))) {
  gap: 0;
  padding-bottom: 1.65rem;
}

.contact__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(9.8rem, 1fr));
  gap: 0.75rem;
  align-self: center;
  justify-self: center;
  width: min(27rem, 100%);
  max-width: none;
  margin-top: clamp(8.2rem, 18svh, 10.8rem);
  margin-bottom: 0;
  scroll-margin-top: 5.2rem;
}

.contact__actions .button {
  width: 100%;
  min-height: 3.05rem;
}

.section-head--stack h2 {
  max-width: 16ch;
}

.contact .section-head h2 {
  max-width: 16ch;
  font-size: 4.45rem;
  line-height: 0.9;
}

.contact .section-head p {
  max-width: 31rem;
}

@media (min-width: 921px) {
  .contact .section-head .eyebrow {
    position: relative;
    top: clamp(-5.5rem, -6svh, -5rem);
  }

  .contact .section-head h2 {
    position: relative;
    top: clamp(-5.5rem, -6svh, -5rem);
  }
}

/* ════════════════════════════════════════════════════
   DESKTOP: 2-per-row project cards (≥ 921px)
   ════════════════════════════════════════════════════ */
@media (min-width: 921px) {
  .project-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
  }

  /* Card switches to vertical layout: media on top, body below */
  .project-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    cursor: default;
  }

  @media (hover: hover) {
    .project-row:hover {
      transform: translateY(-3px);
      border-color: rgba(201, 243, 29, 0.28);
      box-shadow:
        inset 0 1px 0 var(--glass-highlight),
        0 28px 64px rgba(3, 8, 14, 0.24),
        0 0 0 1px rgba(201, 243, 29, 0.08);
    }
  }

  /* Media area: tall thumbnail, expands to show video on hover */
  .project-row .project-media {
    width: 100%;
    min-height: 17rem;
    max-height: 22rem;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(169, 185, 217, 0.12);
    flex-shrink: 0;
  }

  .project-row .project-media img {
    width: 100%;
    height: 100%;
    min-height: 17rem;
    max-height: 22rem;
    object-fit: contain;
    /* Changed from cover to show the full mockup */
    object-position: center;
    transition: opacity 340ms ease;
  }

  /* Phone mockup variant stays contained */
  .project-row .project-media--phone-mockup {
    min-height: 20rem;
    max-height: 24rem;
    background:
      radial-gradient(circle at 50% 60%, rgba(120, 144, 191, 0.14), transparent 14rem),
      radial-gradient(circle at 44% 28%, rgba(201, 243, 29, 0.08), transparent 9rem),
      rgba(255, 255, 255, 0.025);
  }

  .project-row .project-media--phone-mockup img {
    width: auto;
    height: min(100%, 22rem);
    max-height: 22rem;
    min-height: auto;
    object-fit: contain;
    object-position: center;
  }

  /* Hover: show inline preview video, hide static image ONLY if video exists */
  @media (hover: hover) {
    .project-row:hover .project-media:has(.project-media__video) img {
      opacity: 0;
    }

    .project-row:hover .project-media__video {
      opacity: 1;
    }

    .project-row:hover .project-media__play-hint {
      opacity: 0;
    }
  }

  /* Body section below the media */
  .project-row .project-row__body {
    padding: 1rem 1.1rem 1rem;
    flex: 1;
  }

  .project-row__name {
    font-size: 2rem;
    line-height: 0.92;
  }

  .project-row__index {
    font-size: 1.85rem;
  }

  .project-row__description {
    font-size: 0.96rem;
    margin-top: 0.48rem;
  }

  .project-row__actions {
    padding-top: 0.85rem;
    gap: 0.55rem;
  }

  .project-row__link {
    min-height: 2.6rem;
    padding: 0.64rem 0.95rem;
    font-size: 0.88rem;
  }

  .profile-detail__head--mobile-only {
    display: none !important;
  }
}

@media (max-width: 1200px) {
  .hero__apple-scene {
    --apple-offset: clamp(14rem, 28vw, 32rem);
  }

  .hero__shell {
    grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1fr);
    gap: 2rem;
  }

  .about__grid {
    grid-template-columns: minmax(17rem, 0.92fr) minmax(0, 1.08fr);
    gap: 1.5rem 2.2rem;
  }

  .profile-detail__grid {
    grid-template-columns: 1fr 0.85fr;
    gap: 1rem;
  }

  .topbar__inner {
    width: min(900px, 100%);
  }

  .band__shell {
    width: min(1120px, 100%);
  }

  .project-row {
    grid-template-columns: minmax(10.5rem, 0.34fr) minmax(0, 1fr);
  }
}

@media (max-width: 920px) {

  .hero__shell,
  .about__grid,
  .contact__shell {
    grid-template-columns: 1fr;
  }

  .hero__apple-scene {
    --apple-offset: 0rem;
    align-items: end;
    padding-bottom: 7rem;
  }

  .apple-aura {
    width: min(35rem, 92vw);
    margin-left: 0;
  }

  .apple-floor {
    width: min(24rem, 72vw);
    margin-left: 0;
  }

  .apple-svg {
    width: min(42rem, 88vw);
    margin-left: 0;
    filter: none;
  }

  .hero__title {
    font-size: clamp(5.5rem, 22.6vw, 14.2rem);
  }

  .hero__accent {
    top: auto;
    font-size: clamp(2.4rem, 8.4vw, 4rem);
  }

  .hero__lede {
    top: auto;
  }

  .section-head h2 {
    font-size: clamp(3rem, 10vw, 8rem);
  }

  .profile-detail__grid,
  .project-section__head {
    grid-template-columns: 1fr;
  }

  .project-row {
    grid-template-columns: minmax(10rem, 0.38fr) minmax(0, 1fr);
  }

  .project-row__link {
    grid-column: auto;
  }

  .contact__shell {
    grid-template-rows: auto 1fr;
    align-items: stretch;
    min-height: auto;
  }

  .contact__actions {
    align-self: end;
    justify-self: start;
    width: min(27rem, 100%);
    margin-top: clamp(6.4rem, 18svh, 8.8rem);
  }
}

@media (max-width: 920px) {

  #top,
  #about,
  #work,
  #contact {
    scroll-margin-top: 0;
  }

  .topbar {
    padding: 0.85rem 0.85rem 0;
  }

  .topbar__nav {
    display: none;
  }

  .topbar__inner {
    grid-template-columns: auto 1fr;
    backdrop-filter: blur(14px);
  }

  .lang-switch {
    justify-self: end;
  }

  .global-apple-background {
    opacity: 0;
  }

  .band,
  .footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .band {
    padding-top: 4.8rem;
    padding-bottom: 5.4rem;
  }

  .hero {
    --hero-pad-top: 5.65rem;
    --hero-pad-bottom: 1.15rem;
    --hero-gutter: 1rem;
    min-height: 160svh;
  }

  .hero__sticky {
    justify-content: flex-start;
  }

  .hero__shell {
    align-items: start;
    min-height: calc(100svh - var(--hero-pad-top) - var(--hero-pad-bottom));
    padding-top: 0;
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    min-height: calc(100svh - var(--hero-pad-top) - var(--hero-pad-bottom));
    margin-top: 0;
    min-width: 0;
  }

  .hero__meta {
    gap: 0.42rem;
    margin-bottom: 1rem;
  }

  .hero__meta-group {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin-top: auto;
  }

  .hero__actions {
    position: relative;
    top: auto;
    left: auto;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: min(100%, 26rem);
    margin-top: 0;
    padding-top: 1.25rem;
  }

  .hero__meta {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    margin-top: 0.85rem;
    margin-bottom: 0;
    white-space: normal;
    transform: none;
  }

  .hero__meta li {
    min-height: auto;
    padding: 0;
    min-width: 0;
    font-size: 0.68rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero__meta li:first-child {
    grid-column: 1 / -1;
  }

  .hero__apple-scene {
    place-items: start center;
    padding-top: clamp(11rem, 28svh, 13.2rem);
    padding-bottom: 0;
  }

  .apple-aura {
    display: none;
  }

  .apple-floor {
    display: none;
  }

  .apple-svg {
    width: min(18.5rem, 70vw);
    margin-left: 0;
    filter: none;
  }

  .apple-real {
    opacity: 1;
  }

  .apple-solid {
    opacity: 0;
  }

  .apple-body--real,
  .apple-body--metal,
  .apple-body--glass {
    filter: none;
  }

  .hero__liquid-light {
    mix-blend-mode: normal;
  }

  .hero__copy .eyebrow {
    margin-top: clamp(3.6rem, 8svh, 5.2rem);
    font-size: 0.88rem;
  }

  .hero__title {
    font-size: clamp(5.35rem, 24.8vw, 7rem);
    margin-top: 0.5rem;
    line-height: 0.75;
  }

  .hero__title span:last-child {
    padding-left: clamp(4.1rem, 24vw, 7.25rem);
  }

  .hero__accent {
    font-size: clamp(2.35rem, 10.2vw, 2.9rem);
    margin-top: clamp(8rem, 20svh, 10.6rem);
  }

  .hero__lede {
    margin-top: 0.45rem;
  }

  .section-head h2 {
    font-size: 3rem;
  }

  .contact {
    min-height: auto;
    padding-top: 5.55rem;
    padding-bottom: 2rem;
  }

  .contact .section-head h2 {
    max-width: 15ch;
    font-size: 2.65rem;
    line-height: 0.92;
  }

  .contact .section-head p {
    max-width: 100%;
  }

  .contact .section-head:not(:has(> p:not(.eyebrow))) {
    padding-bottom: 1.1rem;
  }

  .fact-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .profile-detail {
    margin-top: 2rem;
  }

  .profile-card,
  .project-row {
    padding: 0.85rem;
  }

  .profile-card h3 {
    font-size: 1.75rem;
  }

  .education-panel__title {
    font-size: 1.75rem;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .project-row__index,
  .project-row__link,
  .project-media {
    grid-column: auto;
  }

  .project-media {
    min-height: 12rem;
  }

  .project-media--phone-mockup {
    min-height: 19rem;
  }

  .project-media img {
    max-height: 16rem;
  }

  .project-media--phone-mockup img {
    height: min(100%, 20rem);
    max-height: 20rem;
    transform: scale(1.16);
  }

  .project-row__body {
    padding: 0;
  }

  .project-row__name {
    font-size: 2.1rem;
  }

  .project-row__actions {
    padding-top: 0.85rem;
  }

  .project-row__link {
    justify-self: start;
  }

  .contact__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    width: 100%;
    margin-top: 4rem;
    margin-bottom: 0;
  }

  .contact__actions .button {
    min-height: 2.95rem;
    padding-right: 0.72rem;
    padding-left: 0.72rem;
    font-size: 0.86rem;
  }

  .footer {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    margin-top: 2rem;
  }

  .footer__inner {
    min-height: auto;
    padding-top: 0;
    gap: 0.45rem;
  }

  .footer__copy {
    font-size: 0.72rem;
    line-height: 1.5;
  }
}

@media (min-width: 521px) and (max-width: 920px) {
  .hero__copy {
    max-width: min(100%, 54rem);
  }

  .hero__title {
    width: max-content;
    max-width: 100%;
    font-size: clamp(7.1rem, 18.8vw, 10.9rem);
  }

  .hero__title span:last-child {
    justify-self: end;
    padding-left: 0;
    transform: translateX(0.35rem);
  }

  .hero__meta-group {
    align-items: flex-start;
  }

  .hero__actions {
    width: min(100%, 27rem);
  }

  .hero__meta {
    grid-template-columns: 1fr;
    width: min(100%, 31rem);
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 0.65rem 0.65rem 0;
  }

  .topbar__inner {
    gap: 0.55rem;
    padding: 0.62rem 0.68rem;
  }

  .brand {
    width: 2.45rem;
    height: 2.45rem;
    font-size: 1rem;
  }

  .lang-switch {
    gap: 0.28rem;
  }

  .lang-switch__button {
    min-height: 2.45rem;
    padding: 0.38rem 0.54rem;
  }

  .hero {
    min-height: 125svh;
  }

  .hero__copy .eyebrow {
    margin-top: clamp(3.4rem, 8svh, 4.7rem);
    font-size: 0.84rem;
  }

  .hero__title {
    font-size: clamp(4.95rem, 24vw, 6.35rem);
    margin-top: 0.5rem;
  }

  .hero__title span:last-child {
    padding-left: clamp(3.55rem, 21.8vw, 6.45rem);
  }

  .hero__accent {
    font-size: clamp(2.25rem, 11.2vw, 2.85rem);
    margin-top: clamp(8.05rem, 20.5svh, 10.35rem);
  }

  .hero__actions {
    gap: 0.62rem;
  }

  .hero__actions .button,
  .project-row__link,
  .contact__actions .button {
    min-height: 2.95rem;
  }

  .hero__meta {
    gap: 0.3rem 0.55rem;
  }

  .hero__meta li {
    font-size: 0.64rem;
  }

  .project-row__actions {
    gap: 0.52rem;
  }

  .project-row__link {
    width: 100%;
  }
}

@media (max-width: 520px) and (max-height: 720px) {
  .hero {
    --hero-pad-top: 5.15rem;
    --hero-pad-bottom: 0.9rem;
  }

  .hero__copy .eyebrow {
    margin-top: clamp(2.5rem, 6svh, 3.3rem);
    font-size: 0.8rem;
  }

  .hero__title {
    font-size: clamp(4.55rem, 22vw, 5.45rem);
    margin-top: 0.5rem;
  }

  .hero__apple-scene {
    padding-top: clamp(9.8rem, 26svh, 11.2rem);
  }

  .apple-svg {
    width: min(16.4rem, 66vw);
  }

  .hero__accent {
    margin-top: clamp(7.7rem, 20svh, 8.6rem);
    font-size: clamp(2.1rem, 10.8vw, 2.6rem);
  }

  .hero__lede {
    margin-top: 0.65rem;
    font-size: 0.94rem;
    line-height: 1.52;
  }

  .hero__actions {
    padding-top: 0.85rem;
  }

  .hero__meta {
    margin-top: 0.62rem;
  }

  .hero__meta li {
    font-size: 0.62rem;
  }
}

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

  .hero__meta li:first-child {
    grid-column: auto;
  }
}

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

  .hero__actions {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  .hero__actions .button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding-right: 0.55rem;
    padding-left: 0.55rem;
    font-size: 0.94rem;
  }
}

@media (max-width: 520px) {
  .hero__title {
    width: 100%;
  }

  .hero__title span:last-child {
    justify-self: end;
    padding-left: 0;
    text-align: right;
    transform: translateX(0.45rem);
  }
}

@media (prefers-reduced-motion: reduce) {

  body.has-vision-cursor,
  body.has-vision-cursor * {
    cursor: auto !important;
  }

  .cursor-follower {
    display: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .brand:hover::before,
  .brand:focus-visible::before,
  .brand:hover::after,
  .brand:focus-visible::after,
  .lang-switch__button:hover::before,
  .lang-switch__button:focus-visible::before,
  .lang-switch__button:hover::after,
  .lang-switch__button:focus-visible::after,
  .topbar__nav a:hover::before,
  .topbar__nav a:focus-visible::before {
    animation: none;
  }

  .brand:hover,
  .brand:focus-visible {
    animation: none;
  }

  .hero__copy>* {
    opacity: 1;
    visibility: visible;
    filter: none !important;
    transform: none !important;
  }
}