:root {
  color-scheme: light;
  --bg: #eef1ff;
  --surface: rgba(255, 255, 255, .76);
  --surface-solid: #fff;
  --surface-soft: #e5e8fa;
  --ink: #17152b;
  --muted: #5f6175;
  --line: rgba(32, 27, 82, .12);
  --primary: #3448ff;
  --primary-deep: #2333d5;
  --violet: #7c3cff;
  --lime: #c9ff67;
  --stack-surface: #17152b;
  --stack-card: #24213d;
  --stack-ink: #f4f2ff;
  --stack-muted: #bbb8d0;
  --shadow: 0 22px 70px rgba(48, 45, 115, .13);
  --radius: 2rem;
  --max: 1180px;
  --font-size-base: 1rem;
  --font-size-sm: .875rem;
  --font-size-xs: .75rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-card-title: clamp(1.375rem, 2.5vw, 1.875rem);
  --font-size-section-title: clamp(1.625rem, 3vw, 2.5rem);
  --font-size-display: clamp(2rem, 5vw, 4.5rem);
  --font-size-hero: clamp(3rem, 8vw, 6.4rem);
}

@font-face {
  font-family: "Kunaroh";
  src: url("assets/kunaroh/Kunaroh.ttf") format("truetype");
  font-display: swap;
}

/* Propuesta ciruela: rosa mineral, ciruela y amarillo suave. */
:root {
  --bg: #fcf1f7;
  --surface: rgba(255, 253, 255, .8);
  --surface-solid: #fffdfd;
  --surface-soft: #f5dfe9;
  --ink: #2c1726;
  --muted: #725c6a;
  --line: rgba(82, 39, 64, .15);
  --primary: #b63d76;
  --primary-deep: #8d2859;
  --violet: #6b4fd3;
  --lime: #f2c56b;
  --stack-surface: #241323;
  --stack-card: #3a1e34;
  --stack-ink: #fff3f8;
  --stack-muted: #d0b7c5;
  --shadow: 0 22px 70px rgba(126, 45, 91, .15);
}

.languages {
  background: var(--stack-surface);
  color: var(--stack-ink);
}

.languages .section-title {
  color: var(--stack-ink);
}

.stack .tech-icon.logo-surface {
  background: #f7e3ec;
}

.stack .tech-icon.logo-surface img {
  filter: none;
}

.stack .tech figcaption {
  color: #ce88ae;
}

.intro .eyebrow,
.intro .keywords {
  margin-block: 0;
}

.intro .eyebrow {
  font-size: var(--font-size-xl);
}

.typewriter-line {
  min-width: clamp(17rem, 28vw, 21rem);
}

.typewriter-text {
  display: inline-block;
  white-space: nowrap;
}

.typewriter-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: .9em;
  margin-left: .16em;
  background: currentColor;
  box-shadow: 0 0 7px color-mix(in srgb, currentColor 55%, transparent);
  vertical-align: -.04em;
  animation: typewriter-caret .78s step-end infinite;
}

.stack .stack-title {
  margin: 0 0 1.5rem;
  font-size: var(--font-size-xl);
  letter-spacing: -.045em;
  line-height: 1.05;
}

.about>.eyebrow,
.languages>.eyebrow,
.journey-head .eyebrow,
.contact .eyebrow {
  font-size: var(--font-size-xl);
  letter-spacing: -.045em;
  line-height: 1.05;
}

.about>.eyebrow {
  margin-bottom: 2rem;
  color: var(--primary-deep);
}


:root .languages,
:root .stack {
  background: var(--surface-solid);
  color: var(--ink);
}

:root .languages .section-title,
:root .stack .section-title {
  color: var(--ink);
}

:root .languages .eyebrow,
:root .stack .eyebrow {
  color: var(--primary-deep);
}

:root .language-list div {
  border-color: var(--line);
}

:root .stack-group {
  border-color: var(--line);
  background: linear-gradient(145deg, var(--surface-soft), var(--surface-solid));
  box-shadow: inset 0 1px rgba(82, 39, 64, .08);
}

:root .stack-group h3 {
  color: var(--primary-deep);
}

:root .tech-icon:not(.logo-surface) {
  padding: .35rem;
  border-radius: .55rem;
  background: transparent;
  box-shadow: none;
}

:root .tech {
  border-color: rgba(255, 255, 255, .12);
  background: #f0d8e2;
}

:root .tech figcaption {
  color: #ce88ae;
}

:root .logo-note {
  color: var(--stack-muted);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--violet) 19%, transparent) 0, transparent 27rem),
    radial-gradient(circle at 92% 36%, color-mix(in srgb, var(--primary) 16%, transparent) 0, transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.6;
  transition: background-color .25s ease, color .25s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: auto;
  padding: .65rem .7rem .65rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 77%, transparent);
  box-shadow: 0 10px 30px rgba(29, 28, 73, .08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: var(--font-size-base);
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}

.brand > span:last-child {
  font-family: "Kunaroh", sans-serif;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .015em;
  transform: translateY(5px);
}

.brand-mark {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50% 50% 18% 50%;
  background: var(--primary);
  color: #fff;
  font-size: var(--font-size-xs);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle span:first-child {
  transform: translate(-50%, calc(-50% - .3rem));
}

.nav-toggle span:nth-child(2) {
  transform: translate(-50%, -50%);
}

.nav-toggle span:last-child {
  transform: translate(-50%, calc(-50% + .3rem));
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-links a {
  padding: .5rem .75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--font-size-base);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.nav-links .nav-cv {
  background: var(--primary);
  color: #fff;
}

.nav-links .nav-cv:hover {
  background: var(--primary-deep);
  color: #fff;
}

main,
footer {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

main {
  padding: clamp(3rem, 8vw, 6.5rem) 0 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.25rem;
  color: var(--primary-deep);
  font-size: var(--font-size-xs);
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.7rem;
  height: 2px;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.intro {
  height: auto;
  min-height: 390px;
  padding: clamp(1.6rem, 5vw, 3.5rem);
}

.intro h1 {
  max-width: 760px;
  margin: 0 0 1rem 0;
  font-size: var(--font-size-hero);
  font-weight: 880;
  letter-spacing: -.075em;
  line-height: .88;
}

.intro h1 span {
  display: block;
  color: var(--primary);
}

.intro-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.intro-meta .eyebrow {
  margin: 0;
}

.role {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.orbit {
  position: absolute;
  z-index: -1;
  right: -6rem;
  bottom: -7rem;
  width: 20rem;
  aspect-ratio: 1;
  border: 3rem solid color-mix(in srgb, var(--violet) 14%, transparent);
  border-radius: 50%;
}

.status-card {
  display: flex;
  height: auto;
  min-height: 390px;
  padding: .7rem;
  flex-direction: column;
  background: linear-gradient(145deg, var(--primary), var(--violet));
  color: #fff;
}

.status-card::after {
  display: none;
}

.status-card p {
  margin: 0;
}

.location {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--font-size-sm);
  font-weight: 750;
}

.location::before {
  content: "";
  width: .65rem;
  aspect-ratio: 1;
  border: 3px solid var(--lime);
  border-radius: 50%;
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
  border: .55rem solid rgba(255, 255, 255, .22);
  border-radius: 1.5rem;
  object-fit: cover;
  object-position: center 22%;
  box-shadow: 0 18px 35px rgba(21, 15, 77, .25);
}

.keywords {
  margin: 2rem 0 0;
  color: var(--primary-deep);
  font-size: var(--font-size-lg);
  font-weight: 800;
  letter-spacing: .01em;
}

.cv-button {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 22%, transparent);
}

.cv-button:hover {
  background: var(--primary-deep);
}

.cv-button span {
  font-size: 1.25em;
  line-height: .8;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.about {
  grid-column: span 7;
  padding: clamp(1.6rem, 4vw, 3rem);
}

.languages {
  grid-column: span 5;
  padding: clamp(1.6rem, 4vw, 3rem);
  background: #17152b;
  color: #eef1ff;
}

.journey,
.stack,
.contact {
  grid-column: 1 / -1;
  padding: clamp(1.6rem, 4vw, 3rem);
}

.contact {
  background: #fbe5f0;
  color: #9c446e;
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: var(--font-size-section-title);
  letter-spacing: -.045em;
  line-height: 1.05;
}

.about p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--font-size-lg);
}

.languages .eyebrow,
.contact .eyebrow {
  color: var(--lime);
}

.languages .section-title {
  color: #eef1ff;
}

.language-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
  margin: 0;
}

.language-list div {
  position: relative;
  display: flex;
  min-height: 7rem;
  padding: 1.1rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .25rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, var(--surface-soft), var(--surface-solid));
}

.language-list div::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -30%;
  right: -8%;
  bottom: -30%;
  width: 64%;
  opacity: .2;
  filter: blur(5px);
  -webkit-mask-image: linear-gradient(to left, #000 12%, transparent 100%);
  mask-image: linear-gradient(to left, #000 12%, transparent 100%);
  pointer-events: none;
}

.language-list div:first-child::before {
  background: linear-gradient(to bottom, #aa151b 0 28%, #f1bf00 28% 72%, #aa151b 72% 100%);
}

.language-list div:last-child::before {
  background:
    linear-gradient(90deg, transparent 0 47%, #c8102e 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 0 46%, #c8102e 46% 54%, transparent 54%),
    linear-gradient(90deg, transparent 0 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 0 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(45deg, transparent 0 39%, #fff 39% 45%, #c8102e 45% 55%, #fff 55% 61%, transparent 61%),
    linear-gradient(-45deg, transparent 0 39%, #fff 39% 45%, #c8102e 45% 55%, #fff 55% 61%, transparent 61%),
    #012169;
}

.language-list div > * {
  position: relative;
  z-index: 1;
}

.language-list dt {
  font-weight: 800;
  font-size: var(--font-size-lg);
}

.language-list dd {
  margin: .35rem 0 0;
  color: var(--muted);
  font-weight: 700;
  opacity: 1;
}

.journey-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1rem, 6vw, 1rem);
}

.journey-head .section-title {
  margin: 0;
}

.journey-note {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--font-size-sm);
}

.timeline {
  position: relative;
  display: grid;
  gap: clamp(3.5rem, 7vw, 5.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: .7rem;
  bottom: .7rem;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(var(--primary), var(--violet));
  transform: translateX(-50%);
  opacity: .7;
}

.timeline-node {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3.5rem, 8vw, 7rem);
}

.timeline-node::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: .55rem;
  left: 50%;
  width: .9rem;
  aspect-ratio: 1;
  border: 3px solid var(--surface-solid);
  border-radius: 4px 50% 50%;
  outline: 2px solid var(--violet);
  background: var(--lime);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--violet) 15%, transparent);
  transform: translateX(-50%) rotate(45deg);
}

.node-meta {
  min-width: 0;
  padding-top: .15rem;
  text-align: right;
}

.timeline-node:nth-child(even) .node-meta {
  grid-column: 2;
  text-align: left;
}

.timeline-node:nth-child(even) .node-card {
  grid-column: 1;
  grid-row: 1;
}

.node-date {
  margin: 0 0 .35rem;
  color: var(--primary-deep);
  font-size: var(--font-size-sm);
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.node-place {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-size-lg);
  font-weight: 800;
}

.node-card {
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  border: 1px solid color-mix(in srgb, var(--violet) 24%, var(--line));
  border-radius: 1.5rem;
  background: var(--surface-solid);
  box-shadow: 10px 12px 0 color-mix(in srgb, var(--primary) 9%, transparent);
}

.node-type {
  margin: 0 0 .65rem;
  color: var(--violet);
  font-size: var(--font-size-xs);
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.node-card h3 {
  margin: 0;
  font-size: var(--font-size-card-title);
  letter-spacing: -.035em;
  line-height: 1.15;
}

.node-card>p:last-child {
  margin: .75rem 0 0;
  color: var(--muted);
}

.tasks {
  display: grid;
  gap: .65rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: task;
}

.tasks li {
  position: relative;
  min-width: 0;
  padding: .8rem .9rem .8rem 2.65rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: var(--font-size-base);
  overflow-wrap: anywhere;
  counter-increment: task;
}

.tasks li::before {
  content: "0" counter(task);
  position: absolute;
  top: 1rem;
  left: .9rem;
  color: var(--violet);
  font: 850 var(--font-size-xs)/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.stack {
  background: var(--stack-surface);
  color: var(--stack-ink);
  backdrop-filter: none;
}

.stack .eyebrow {
  color: var(--lime);
}

.stack .section-title {
  color: var(--stack-ink);
}

.stack-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(180px, 1fr));
  gap: 1rem;
}

.stack-group {
  display: flex;
  min-width: 0;
  min-height: 180px;
  padding: 1rem clamp(1rem, 2vw, 1.35rem);
  flex-direction: column;
  border: 1px solid rgba(229, 226, 255, .12);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, var(--stack-card), color-mix(in srgb, var(--stack-card) 82%, var(--primary)));
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

.stack-group:last-child {
  grid-column: 1 / -1;
}

.stack-group h3 {
  margin: 0 0 1.2rem;
  color: var(--lime);
  font-size: var(--font-size-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  flex: 1;
  gap: .45rem;
}

.stack-group:nth-child(1) .tech-grid,
.stack-group:nth-child(4) .tech-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stack-group:last-child .tech-grid {
  grid-template-columns: repeat(4, minmax(120px, 150px));
  justify-content: center;
}

.tech {
  min-width: 0;
  margin: 0;
  padding: .6rem .3rem .55rem;
  border: 1px solid rgba(229, 226, 255, .1);
  border-radius: .9rem;
  background: #f7e3ec;
  text-align: center;
}

.tech-icon {
  display: grid;
  width: 2.25rem;
  aspect-ratio: 1;
  margin: 0 auto .45rem;
  place-items: center;
}

.tech-icon--mockito {
  width: 4rem;
  aspect-ratio: 2 / 1;
}

.tech-icon img,
.tech-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tech-icon.logo-surface {
  padding: .35rem;
  border-radius: .55rem;
  background: #f7e3ec;
}

.tech-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px solid rgba(201, 255, 103, .55);
  border-radius: .6rem;
  color: var(--lime);
  font-size: var(--font-size-xs);
  font-weight: 900;
  letter-spacing: -.02em;
}

.tech figcaption {
  color: #ce88ae;
  font-size: var(--font-size-sm);
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.logo-note {
  margin: 1.25rem 0 0;
  color: var(--stack-muted);
  font-size: var(--font-size-sm);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.contact .eyebrow {
  color: #9c446e;
}

.contact .section-title {
  max-width: none;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: .95;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem 1.5rem;
  margin: 0;
  font-style: normal;
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(156, 68, 110, .25);
  font-weight: 750;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-links a:first-child {
  grid-column: 1 / -1;
  white-space: nowrap;
}

.contact-icon {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  margin-right: .85rem;
  color: currentColor;
}

.contact-links a > span {
  min-width: 0;
  flex: 1;
}

.contact-icon--email {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-icon--brand {
  fill: currentColor;
}

.contact-links a::after {
  content: "↗";
  flex: none;
  font-size: var(--font-size-xl);
}

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

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: var(--font-size-sm);
}

@media (max-width: 900px) {
  .stack-groups {
    grid-template-rows: repeat(3, minmax(220px, 1fr));
  }

  .stack-group {
    min-height: 220px;
  }

  .stack-group:nth-child(1) .tech-grid,
  .stack-group:nth-child(4) .tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .nav-shell {
    flex-wrap: wrap;
    border-radius: 1.25rem;
  }

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

  .nav-links {
    flex-basis: 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .25rem;
    padding-top: .5rem;
    border-top: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    display: block;
    padding: .45rem .5rem;
    text-align: center;
    font-size: var(--font-size-sm);
  }

  .nav-links .nav-cv {
    grid-column: 1 / -1;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .intro {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-height: 380px;
  }

  .intro-meta {
    display: contents;
  }

  .intro-meta .eyebrow {
    order: 2;
  }

  .intro .keywords {
    order: 3;
  }

  .intro .cv-button {
    order: 4;
  }

  .status-card {
    width: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    justify-self: stretch;
  }

  .about,
  .languages {
    grid-column: 1 / -1;
  }

  .journey-head {
    align-items: flex-start;
    flex-direction: column;
    gap: .75rem;
  }

  .timeline {
    gap: 3rem;
    padding-left: 1.4rem;
  }

  .timeline::before {
    left: 0;
    transform: none;
  }

  .timeline-node {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .timeline-node::before {
    left: -1rem;
    transform: translateX(-50%) rotate(45deg);
  }

  .node-meta,
  .timeline-node:nth-child(even) .node-meta {
    grid-column: 1;
    text-align: left;
  }

  .timeline-node:nth-child(even) .node-card {
    grid-column: 1;
    grid-row: auto;
  }

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

@media (max-width: 600px) {
  .stack-groups {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .stack-group {
    min-height: 0;
  }

  .stack-group,
  .stack-group:last-child {
    grid-column: 1;
  }

  .tech-grid,
  .stack-group:nth-child(1) .tech-grid,
  .stack-group:nth-child(4) .tech-grid,
  .stack-group:last-child .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: .35rem;
    align-content: start;
  }
}

@media (max-width: 520px) {
  :root {
    --radius: 1.45rem;
    --font-size-hero: clamp(2.8rem, 15vw, 4.3rem);
  }

  .site-header {
    padding: .7rem .7rem 0;
  }

  main,
  footer {
    width: min(calc(100% - 1.4rem), var(--max));
  }

  main {
    padding-top: 2.5rem;
  }

  .intro h1 {
    font-size: var(--font-size-hero);
  }

  .journey,
  .stack {
    padding-inline: 1.1rem;
  }

  .timeline {
    padding-left: 1rem;
  }

  .node-card {
    padding: 1.1rem;
    border-radius: 1.15rem;
    box-shadow: 6px 7px 0 color-mix(in srgb, var(--primary) 9%, transparent);
  }

  .tasks li {
    padding-right: .7rem;
  }

  .contact-links a {
    align-items: flex-start;
  }

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

  .contact-links a:first-child {
    grid-column: auto;
    white-space: normal;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Visual effects layer: isolated so each enhancement can be evaluated independently. */
.scroll-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--violet), var(--lime));
  box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 55%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.ambient-layer {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .24;
  will-change: transform;
}

.ambient-orb--one {
  top: 8%;
  left: -7rem;
  width: 20rem;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  animation: ambient-drift-one 18s ease-in-out infinite alternate;
}

.ambient-orb--two {
  top: 42%;
  right: -9rem;
  width: 28rem;
  aspect-ratio: 1;
  border: 5rem solid color-mix(in srgb, var(--violet) 8%, transparent);
  animation: ambient-drift-two 22s ease-in-out infinite alternate;
}

.ambient-orb--three {
  bottom: -9rem;
  left: 42%;
  width: 15rem;
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--lime) 18%, transparent);
  filter: blur(30px);
  animation: ambient-drift-one 15s ease-in-out -7s infinite alternate-reverse;
}

.cursor-light {
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--cursor-x) var(--cursor-y), color-mix(in srgb, var(--primary) 7%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}

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

main,
footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
}

.nav-shell {
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}

.site-header:hover .nav-shell {
  border-color: color-mix(in srgb, var(--primary) 26%, var(--line));
  box-shadow: 0 14px 38px rgba(126, 45, 91, .13);
}

.brand-mark {
  position: relative;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--violet) 45%, transparent);
  background: linear-gradient(135deg, var(--primary), var(--violet));
  box-shadow: 0 7px 18px color-mix(in srgb, var(--primary) 30%, transparent), 0 0 0 3px color-mix(in srgb, var(--violet) 12%, transparent);
  text-shadow: 0 1px 7px color-mix(in srgb, #17152b 30%, transparent);
  animation: brand-breathe 3.5s ease-in-out infinite;
}

.brand-mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -5px;
  border: 2px solid color-mix(in srgb, var(--violet) 34%, transparent);
  border-radius: inherit;
  opacity: 0;
  animation: brand-ring 3.5s ease-out infinite;
}

.nav-links a {
  position: relative;
  transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

.nav-links a:not(.nav-cv)::after {
  content: "";
  position: absolute;
  right: .75rem;
  bottom: .3rem;
  left: .75rem;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.nav-links a:not(.nav-cv):hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-links a.is-active {
  color: var(--primary-deep);
}

.card:not(.stack) {
  isolation: isolate;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.node-card {
  isolation: isolate;
  transition: border-color .35s ease, box-shadow .35s ease;
}

.surface-glow {
  position: absolute;
  z-index: 5;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 255, 255, .32), transparent 68%);
  mix-blend-mode: soft-light;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.card:hover > .surface-glow,
.node-card:hover > .surface-glow {
  opacity: 1;
}

.intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -55%;
  left: -30%;
  width: 42%;
  height: 210%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: rotate(18deg) translateX(-220%);
  animation: intro-sheen 8s ease-in-out 1.5s infinite;
}

.intro h1 .hero-name,
.intro h1 .hero-surname {
  display: block;
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: title-gradient 7s ease-in-out infinite alternate;
}

.intro h1 .hero-name {
  background-image: linear-gradient(100deg, #5e438f 8%, #b65b7f 40%, #d49a4c 66%, #7651a5 92%);
}

.intro h1 .hero-surname {
  background-image: linear-gradient(100deg, var(--primary-deep) 10%, var(--primary) 45%, var(--violet) 60%, var(--primary) 85%);
}

.eyebrow::before {
  transform-origin: left;
  animation: eyebrow-pulse 3s ease-in-out infinite;
}

.orbit {
  animation: orbit-float 8s ease-in-out infinite alternate;
}

.orbit::before {
  inset: -1.7rem;
  content: "";
  position: absolute;
  border: 1px dashed color-mix(in srgb, var(--violet) 28%, transparent);
  border-radius: 50%;
  animation: orbit-spin 24s linear infinite;
}

.status-card {
  transition: box-shadow .45s ease;
}

.status-card:hover {
  box-shadow: 0 30px 80px rgba(126, 45, 91, .23);
}

.portrait {
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
}

.status-card:hover .portrait {
  filter: none;
  transform: none;
}

.cv-button,
.nav-cv {
  transition: background-color .25s ease, box-shadow .25s ease;
}

.cv-button:hover,
.nav-cv:hover {
  box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 32%, transparent);
}

.cv-button span {
  animation: arrow-bounce 1.8s ease-in-out infinite;
}

.about:hover,
.languages:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
}

.contact:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
}

.language-list div {
  transition: padding-inline .25s ease, border-color .25s ease, color .25s ease;
}

.language-list div:hover {
  padding-inline: .65rem;
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  color: var(--primary-deep);
}

.timeline::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: .7rem;
  bottom: .7rem;
  left: 50%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(var(--lime), var(--primary));
  box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 40%, transparent);
  transform: translateX(-50%) scaleY(var(--timeline-progress, 0));
  transform-origin: top;
  transition: transform .1s linear;
}

.timeline-node::before {
  transition: box-shadow .3s ease, transform .3s ease;
}

.timeline-node:hover::before {
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--violet) 18%, transparent), 0 0 24px color-mix(in srgb, var(--lime) 65%, transparent);
  transform: translateX(-50%) rotate(225deg) scale(1.12);
}

.node-card:hover {
  border-color: color-mix(in srgb, var(--violet) 45%, var(--line));
  box-shadow: 14px 17px 0 color-mix(in srgb, var(--primary) 12%, transparent);
}

.tasks li {
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.tasks li:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
  background: color-mix(in srgb, var(--surface-soft) 84%, white);
  transform: translateX(4px);
}

.contact-links a {
  transition: color .25s ease, padding-inline .25s ease, border-color .25s ease;
}

.contact-links a::after {
  transition: transform .25s ease;
}

.contact-links a:hover {
  padding-inline: .5rem;
  border-color: currentColor;
}

.contact-links a:hover::after {
  transform: translate(3px, -3px);
}

.contact-icon {
  transition: filter .25s ease, transform .25s ease;
}

.contact-links a:hover .contact-icon {
  filter: drop-shadow(0 4px 5px rgba(107, 79, 211, .25));
  transform: scale(1.12) rotate(-4deg);
}

.fx-ready .reveal-item {
  opacity: 0;
  translate: 0 24px;
  scale: .985;
}

.fx-ready .reveal-item.is-visible {
  opacity: 1;
  translate: 0;
  scale: 1;
  transition-delay: var(--reveal-delay, 0ms);
}

/* Avoid rasterizing the whole technology grid, which can merge glyphs in some browsers. */
.fx-ready .stack.reveal-item,
.fx-ready .stack.reveal-item.is-visible {
  translate: none;
  scale: none;
}

.fx-ready .card.reveal-item {
  transition-property: opacity, translate, scale, transform, border-color, box-shadow;
  transition-duration: .7s, .7s, .7s, .35s, .35s, .35s;
  transition-timing-function: ease, cubic-bezier(.2, .8, .2, 1), cubic-bezier(.2, .8, .2, 1), ease, ease, ease;
}

.fx-ready .timeline-node.reveal-item {
  transition: opacity .7s ease, translate .7s cubic-bezier(.2, .8, .2, 1), scale .7s cubic-bezier(.2, .8, .2, 1);
}

@keyframes ambient-drift-one {
  to { transform: translate(4rem, 3rem) scale(1.12); }
}

@keyframes ambient-drift-two {
  to { transform: translate(-5rem, 4rem) rotate(18deg) scale(.92); }
}

@keyframes brand-breathe {
  0%, 100% { box-shadow: 0 7px 18px color-mix(in srgb, var(--primary) 30%, transparent), 0 0 0 3px color-mix(in srgb, var(--violet) 12%, transparent); }
  50% { box-shadow: 0 10px 25px color-mix(in srgb, var(--primary) 40%, transparent), 0 0 0 8px color-mix(in srgb, var(--violet) 16%, transparent); }
}

@keyframes brand-ring {
  35% { opacity: .7; }
  70%, 100% { opacity: 0; transform: scale(1.35); }
}

@keyframes intro-sheen {
  0%, 72% { transform: rotate(18deg) translateX(-220%); }
  100% { transform: rotate(18deg) translateX(520%); }
}

@keyframes title-gradient {
  to { background-position: 100% center; }
}

@keyframes eyebrow-pulse {
  0%, 100% { opacity: .65; transform: scaleX(.65); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes orbit-float {
  to { transform: translate(-1rem, -1.2rem) rotate(8deg); }
}

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

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

@keyframes typewriter-caret {
  50% { opacity: 0; }
}

@media (max-width: 800px) {
  .typewriter-line {
    width: 100%;
    min-width: 0;
  }

  .timeline::after {
    left: 0;
    transform: scaleY(var(--timeline-progress, 0));
  }

  .timeline-node:hover::before {
    transform: translateX(-50%) rotate(225deg) scale(1.12);
  }

  .ambient-orb {
    opacity: .16;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-light,
  .surface-glow {
    display: none;
  }

  .status-card:hover,
  .about:hover,
  .languages:hover,
  .contact:hover,
  .node-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-orb,
  .brand-mark,
  .brand-mark::after,
  .intro::after,
  .intro h1 span,
  .eyebrow::before,
  .orbit,
  .orbit::before,
  .cv-button span {
    animation: none !important;
  }

  .typewriter-text::after {
    animation: none !important;
  }

  .fx-ready .reveal-item {
    opacity: 1;
    translate: 0;
    scale: 1;
  }
}
