@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --blur: blur(24px) saturate(170%);
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #8e8e93;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .22);
  --hover: rgba(255, 255, 255, .07);

  --glass-bg: rgba(255, 255, 255, .05);
  --glass-bg-strong: rgba(28, 28, 30, .72);
  --glass-border: rgba(255, 255, 255, .12);
  --glass-highlight: rgba(255, 255, 255, .16);
  --glass-sheen: rgba(255, 255, 255, .08);
  --glass-glow: rgba(255, 255, 255, .09);
  --glass-shadow: 0 24px 60px -28px rgba(0, 0, 0, .9);
  --logo-glow: rgba(255, 255, 255, .22);
  --modal-bg: rgba(18, 18, 20, .9);
  --cursor-default: url("../img/cursors/fletxa-fosc.svg") 6 4, default;
  --cursor-click: url("../img/cursors/ma-fosc.svg") 12 3, pointer;

  --btn-bg: #f5f5f7;
  --btn-text: #000000;
  --seg-active: rgba(255, 255, 255, .16);

  --orb: rgba(255, 255, 255, .13);
  --grid-line: rgba(255, 255, 255, .045);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #515154;
  --text-3: #6e6e73;
  --line: rgba(0, 0, 0, .09);
  --line-strong: rgba(0, 0, 0, .2);
  --hover: rgba(0, 0, 0, .05);

  --glass-bg: rgba(255, 255, 255, .55);
  --glass-bg-strong: rgba(255, 255, 255, .78);
  --glass-border: rgba(255, 255, 255, .8);
  --glass-highlight: rgba(255, 255, 255, 1);
  --glass-sheen: rgba(255, 255, 255, .5);
  --glass-glow: rgba(255, 255, 255, .7);
  --glass-shadow: 0 24px 60px -30px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .04);
  --logo-glow: rgba(0, 0, 0, .16);
  --modal-bg: rgba(255, 255, 255, .92);
  --cursor-default: url("../img/cursors/fletxa-clar.svg") 6 4, default;
  --cursor-click: url("../img/cursors/ma-clar.svg") 12 3, pointer;

  --btn-bg: #1d1d1f;
  --btn-text: #ffffff;
  --seg-active: #ffffff;

  --orb: rgba(0, 0, 0, .09);
  --grid-line: rgba(0, 0, 0, .045);
}

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

html {
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

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

button { font: inherit; color: inherit; }

ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

[hidden] { display: none !important; }

::selection { background: var(--text); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  font-size: .9rem;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="light"] .logo,
[data-theme="light"] .invert-on-light,
[data-theme="dark"] .invert-on-dark { filter: invert(1); }

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

.backdrop__orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orb) 0%, transparent 70%);
  filter: blur(40px);
  animation: drift 28s ease-in-out infinite alternate;
}

.backdrop__orb--1 { width: 60vmax; height: 60vmax; top: -25vmax; left: -15vmax; }
.backdrop__orb--2 { width: 45vmax; height: 45vmax; top: 30%; right: -20vmax; animation-duration: 34s; animation-delay: -8s; }
.backdrop__orb--3 { width: 40vmax; height: 40vmax; bottom: -20vmax; left: 20%; animation-duration: 40s; animation-delay: -16s; }

.backdrop__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 70%);
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
  100% { transform: translate3d(-4vmax, 8vmax, 0) scale(.95); }
}

.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur);
          backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--glass-sheen) 0%, transparent 38%, transparent 70%, var(--glass-sheen) 130%);
  pointer-events: none;
}

.glass--interactive::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--glass-glow), transparent 45%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.glass--interactive:hover::after { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: -.005em;
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
}
.btn--primary:hover { box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .6); }
.btn--primary .icon { transition: transform .3s var(--ease); }
.btn--primary:hover .icon { transform: translateX(3px); }

.btn--glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur);
          backdrop-filter: var(--blur);
  border-color: var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  color: var(--text);
}
.btn--glass:hover { border-color: var(--line-strong); background: var(--hover); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  transition: background-color .2s var(--ease);
}
.icon-btn:hover { background: var(--hover); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .84rem;
  color: var(--text);
  background: var(--hover);
  transition: border-color .25s var(--ease);
}
.tag:hover { border-color: var(--line-strong); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur);
          backdrop-filter: var(--blur);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-2);
}

.eyebrow__dot,
.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
}

.eyebrow__dot::after,
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--text);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(3); opacity: 0; }
}

.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 100;
  padding-inline: var(--gutter);
}

.nav {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--container);
  height: 60px;
  margin-inline: auto;
  padding: 0 8px 0 18px;
  border-radius: var(--radius);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--blur);
          backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  transition: box-shadow .4s var(--ease);
}
.nav--scrolled::before { box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow); }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 6px 4px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
}

.nav__brand .logo { width: auto; height: 36px; }

.nav__links { display: flex; gap: 2px; }

.nav__link {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9rem;
  color: var(--text-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--hover); }
.nav__link.is-active { color: var(--text); background: var(--hover); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--hover);
  border: 1px solid var(--line);
}

.segmented__btn {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.segmented__btn:hover { color: var(--text); }
.segmented__btn[aria-pressed="true"],
.segmented__btn[aria-current="page"] {
  background: var(--seg-active);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.icon--moon { display: none; }
[data-theme="light"] .icon--sun { display: none; }
[data-theme="light"] .icon--moon { display: block; }

.nav__burger-lines {
  position: relative;
  display: block;
  width: 18px;
  height: 10px;
}
.nav__burger-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__burger-lines span:first-child { top: 0; }
.nav__burger-lines span:last-child  { top: calc(100% - 1.6px); }
.nav--open .nav__burger-lines span:first-child { top: calc(50% - .8px); transform: rotate(45deg); }
.nav--open .nav__burger-lines span:last-child  { top: calc(50% - .8px); transform: rotate(-45deg); }

@media (min-width: 1080px) {
  .nav__burger { display: none; }

  .nav__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 20px;
  }

  .nav__actions { margin-left: 0; }
}

@media (max-width: 1079.98px) {
  .nav__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100svh - 100px);
    overflow-y: auto;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--glass-bg-strong);
    -webkit-backdrop-filter: var(--blur);
            backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--glass-shadow);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top center;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }

  .nav--open .nav__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
  }

  .nav__links { flex-direction: column; }

  .nav__link {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    color: var(--text);
  }

  .nav__tools {
    padding: 12px 6px 4px;
    border-top: 1px solid var(--line);
  }

  .segmented__btn { min-width: 52px; padding: 10px 14px; font-size: .85rem; }
}

@media (max-width: 360px) {
  .nav__brand-name { display: none; }
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 120px 0 96px;
}

.hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero__title {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
  background: linear-gradient(180deg, var(--text) 40%, var(--text-2) 120%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: var(--text-2);
}

.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -8px;
  font-size: .92rem;
  color: var(--text-3);
}
.hero__location .icon { width: 16px; height: 16px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  padding: 24px 0;
}

.portrait {
  margin: 0;
  padding: 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.portrait__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: calc(var(--radius-lg) - 10px);
  filter: grayscale(1) contrast(1.04);
  transition: filter .8s var(--ease), transform .8s var(--ease);
}
.portrait:hover .portrait__img { filter: grayscale(0); transform: scale(1.02); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
}

.chip--float {
  position: absolute;
  z-index: 1;
  background: var(--glass-bg-strong);
  animation: float 7s ease-in-out infinite;
}
.chip--top    { top: 12%; left: -12px; }
.chip--bottom { bottom: 14%; right: -12px; animation-delay: -3.5s; }

.chip__logo { width: auto; height: 16px; }

.chip__logo--uoc { width: 26px; height: 26px; margin: -5px -4px; }

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

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.2fr .8fr; gap: 64px; }
  .chip--top    { left: -48px; }
  .chip--bottom { right: -32px; }
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color .2s var(--ease);
}
.scroll-hint:hover { color: var(--text); }

.scroll-hint__line {
  position: relative;
  width: 1px;
  height: 36px;
  overflow: hidden;
  background: var(--line);
}
.scroll-hint__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  animation: scroll-line 2.2s var(--ease) infinite;
}

@keyframes scroll-line {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@media (min-width: 900px) and (min-height: 760px) {
  .scroll-hint { display: flex; }
}

.section { padding-block: clamp(72px, 11vw, 136px); }

.section__head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.section__title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  letter-spacing: -.035em;
  line-height: 1.1;
}

.section__intro {
  margin-top: 16px;
  max-width: 40em;
  font-size: 1.05rem;
  color: var(--text-2);
}

.about {
  display: grid;
  gap: 40px;
  align-items: start;
}

.about__text {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.8;
  color: var(--text-2);
}

@media (min-width: 640px) {
  .about__text,
  .job__story p,
  .degree__text,
  .panel__text {
    text-align: justify;
    -webkit-hyphens: auto;
            hyphens: auto;
  }
}

.about__keys { display: grid; gap: 12px; }

.key {
  padding: 22px 24px;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.key:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.key__title { font-size: 1.05rem; margin-bottom: 6px; }
.key__text  { font-size: .95rem; color: var(--text-2); }

@media (min-width: 900px) {
  .about { grid-template-columns: 1.25fr 1fr; gap: 64px; }
}

.timeline {
  position: relative;
  max-width: 880px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 7px;
  width: 1px;
  background: linear-gradient(var(--line-strong) 80%, transparent);
}

.timeline__item {
  position: relative;
  padding: 0 0 40px 44px;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  background: var(--bg);
  transition: transform .35s var(--ease);
}
.timeline__item:hover::before { transform: scale(1.25); }

.timeline__item--now::before {
  background: var(--text);
  box-shadow: 0 0 0 5px var(--hover);
}

.timeline__item--future::before { border-style: dashed; border-color: var(--text-3); }
.timeline__item--future .timeline__title { color: var(--text-2); }

.timeline__date {
  margin-bottom: 6px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.timeline__title { font-size: 1.15rem; margin-bottom: 6px; }
.timeline__text  { color: var(--text-2); max-width: 46em; }

@media (min-width: 900px) {
  .timeline::before { left: 183px; }
  .timeline__item {
    display: grid;
    grid-template-columns: 150px 1fr;
    column-gap: 70px;
    padding-left: 0;
  }
  .timeline__item::before { left: 176px; }
  .timeline__date { margin: 3px 0 0; text-align: right; }
}

.job {
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
}

.job__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.job__brand {
  display: grid;
  place-items: center;
  width: 132px;
  height: 64px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--hover);
}

.job__logo { width: 100%; height: 100%; object-fit: contain; }

.job__brand--link {
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.job__brand--link .job__logo {
  opacity: .65;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.job__brand--link:hover,
.job__brand--link:focus-visible {
  border-color: var(--line-strong);
  background: var(--glass-bg);
  box-shadow: 0 0 28px -4px var(--logo-glow);
}
.job__brand--link:hover .job__logo,
.job__brand--link:focus-visible .job__logo {
  opacity: 1;
  transform: scale(1.04);
}

.job__role   { font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -.025em; }
.job__period { margin-top: 4px; font-size: .95rem; color: var(--text-3); }

.job__body {
  display: grid;
  gap: 40px;
}

.job__story {
  display: grid;
  gap: 18px;
  color: var(--text-2);
  line-height: 1.75;
}

.job__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job__aside-title {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.job__aside-title:not(:first-child) { margin-top: 12px; }

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.list li {
  position: relative;
  padding-left: 22px;
  font-size: .95rem;
  color: var(--text-2);
}
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 10px;
  height: 1px;
  background: var(--text);
}

@media (min-width: 900px) {
  .job__body { grid-template-columns: 1.6fr 1fr; gap: 56px; }
  .job__aside { padding-left: 40px; border-left: 1px solid var(--line); }
}

body.modal-open { overflow: hidden; }

.cert-viewer {
  width: min(980px, calc(100% - 32px));
  max-height: calc(100svh - 48px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--text);
  background: var(--modal-bg);
  -webkit-backdrop-filter: var(--blur);
          backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 40px 100px -30px rgba(0, 0, 0, .7);
}

.cert-viewer[open] { animation: modal-in .35s var(--ease); }
.cert-viewer::backdrop {
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  animation: backdrop-in .35s var(--ease);
}
[data-theme="light"] .cert-viewer::backdrop { background: rgba(0, 0, 0, .25); }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cert-viewer__close {
  position: relative;
  z-index: 2;
  margin: 10px 10px 0 auto;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--blur);
          backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
}

.cert-viewer__nav {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--blur);
          backdrop-filter: var(--blur);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.cert-viewer__nav:hover { transform: scale(1.06); }

@media (max-width: 600px) {
  .cert-viewer__nav { width: 34px; height: 34px; }
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}

.skill {
  padding: 24px;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.skill:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.skill__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.skill__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .85;
  transition: filter .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
}
.skill:hover .skill__icon { filter: grayscale(0); opacity: 1; transform: scale(1.06); }

.skill__cat {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}

.skill__name { font-size: 1.2rem; margin-bottom: 8px; }
.skill__text { font-size: .93rem; line-height: 1.65; color: var(--text-2); }

.skills-group__title {
  margin-bottom: 18px;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -.02em;
}

.toolsets {
  display: grid;
  gap: 14px;
  margin-top: clamp(36px, 5vw, 52px);
}
@media (min-width: 800px) {
  .toolsets { grid-template-columns: repeat(2, 1fr); }
}

.toolset { padding: 24px; }

.toolset__title {
  margin-bottom: 16px;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.tag--tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.tag--tool:hover { transform: translateY(-2px); }

.tag__icon {
  flex: none;
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: var(--text-3);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.tag--tool:hover .tag__icon { color: var(--brand, var(--text)); transform: scale(1.12); }

.learning {
  display: grid;
  gap: 14px;
}

.degree {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
}

.degree__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.degree__logo { width: auto; height: 40px; }

.degree__logo-wrap {
  position: relative;
  display: inline-grid;
  transform-origin: right center;
  transition: transform .45s var(--ease);
}
.degree__logo-wrap > .degree__logo { grid-area: 1 / 1; transition: opacity .45s var(--ease); }
.degree__logo--color { opacity: 0; }

[data-theme="dark"]  .degree__logo--on-light,
[data-theme="light"] .degree__logo--on-dark { display: none; }

.degree:hover .degree__logo-wrap { transform: scale(1.12); }
.degree:hover .degree__logo--color { opacity: 1; }
.degree:hover .degree__logo--mono  { opacity: 0; }

.degree,
.learning .panel {
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.degree:hover,
.learning .panel:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.degree__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-2);
}

.degree__title { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.03em; }
.degree__place { margin-top: 8px; color: var(--text-3); }
.degree__text  { margin-top: 24px; color: var(--text-2); line-height: 1.75; }

.degree__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}
@media (min-width: 640px) {
  .degree__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.degree__fact { padding: 14px 16px; background: var(--modal-bg); }
.degree__fact dt { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.degree__fact dd { margin: 4px 0 0; font-weight: 500; line-height: 1.35; }

.degree__subtitle { margin: 28px 0 12px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }

.learning__side {
  display: grid;
  gap: 14px;
}

.panel { padding: 28px; }
.panel__title { font-size: 1.05rem; margin-bottom: 16px; }
.panel__text  { color: var(--text-2); line-height: 1.7; }

@media (min-width: 900px) {
  .learning { grid-template-columns: 1.3fr 1fr; }
}

.lang-list { display: grid; }
.lang-row + .lang-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.lang-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.lang-row__name { font-weight: 600; }
.lang-row__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-2);
}

.certs { margin-top: clamp(48px, 7vw, 72px); }

.certs__head { margin-bottom: 24px; }
.certs__title { font-size: clamp(1.4rem, 2.6vw, 1.8rem); letter-spacing: -.03em; }
.certs__intro { margin-top: 8px; color: var(--text-2); }

.certs__list {
  display: grid;
  gap: 10px;
}
@media (min-width: 800px) {
  .certs__list { grid-template-columns: repeat(2, 1fr); }
}

.certs:not(.is-expanded) .cert-item:nth-child(n + 7) { display: none; }

.cert {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--blur);
          backdrop-filter: var(--blur);
  color: var(--text);
  text-align: left;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.cert:hover { border-color: var(--line-strong); background: var(--hover); transform: translateY(-2px); }

.cert__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-2);
}
.cert__body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.cert__name { font-size: .96rem; font-weight: 500; line-height: 1.35; }
.cert__meta { font-size: .8rem; color: var(--text-3); }
.cert__arrow { width: 16px; height: 16px; color: var(--text-3); transition: transform .3s var(--ease), color .3s var(--ease); }
.cert:hover .cert__arrow { transform: translateX(3px); color: var(--text); }

.certs__toggle { margin-top: 18px; }

.cert-viewer__figure {
  display: grid;
  place-items: center;
  margin: 8px 10px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 10px);
  background: var(--hover);
}
.cert-viewer__img {
  width: 100%;
  max-height: calc(100svh - 230px);
  object-fit: contain;
}
.cert-viewer__missing {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 100%;
  aspect-ratio: 1.414 / 1;
  max-height: calc(100svh - 230px);
  font-size: .85rem;
  color: var(--text-3);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 24px 24px;
}
.cert-viewer__missing .icon { width: 48px; height: 48px; stroke-width: 1.3; }

.cert-viewer__sides {
  display: flex;
  width: fit-content;
  margin: 12px auto 0;
}
.cert-viewer__side { padding: 6px 14px; letter-spacing: .02em; }

.cert-viewer__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 18px;
}
.cert-viewer__caption { flex: 1; min-width: 0; text-align: center; }
.cert-viewer__title { font-weight: 600; line-height: 1.35; }
.cert-viewer__count { margin-top: 2px; font-size: .82rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

.steps {
  display: grid;
  gap: 36px 28px;
}

.step {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width .6s var(--ease);
}
.step:hover::before { width: 100%; }

.step__num {
  display: block;
  margin-bottom: 20px;
  font-size: .8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}

.step__title { font-size: 1.15rem; margin-bottom: 10px; }
.step__text  { font-size: .95rem; color: var(--text-2); line-height: 1.65; }

@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.goals {
  display: grid;
  gap: 40px;
  align-items: start;
}

.goal {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.goal:first-child { border-top: 1px solid var(--line); }

.goal__title { font-size: clamp(1.15rem, 2vw, 1.35rem); margin-bottom: 8px; }
.goal__text  { color: var(--text-2); }

.areas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.areas li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
}
.areas li:last-child { border-bottom: 0; }
.areas li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}

@media (min-width: 900px) {
  .goals { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(36px, 7vw, 80px) clamp(20px, 5vw, 64px);
  border-radius: 32px;
  text-align: center;
}

.contact .section__label { justify-content: center; }

.contact__title {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  letter-spacing: -.045em;
  line-height: 1;
}

.contact__intro {
  max-width: 38em;
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--text-2);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.contact__email {
  margin-top: 24px;
  font-size: .95rem;
  color: var(--text-3);
  user-select: all;
  overflow-wrap: anywhere;
}

.contact__status {
  min-height: 1.6em;
  margin-top: 8px;
  font-size: .9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.contact__status.is-visible { opacity: 1; transform: none; }

.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: var(--text-3);
}
.footer__brand .logo { width: auto; height: 30px; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: .9rem;
}
.footer__links a {
  color: var(--text-2);
  transition: color .2s var(--ease);
}
.footer__links a:hover { color: var(--text); }

.nav--simple .nav__actions { margin-left: auto; gap: 6px; }
.nav--simple .segmented__btn { min-width: 34px; padding: 5px 9px; font-size: .75rem; }

.notfound {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 110px 0 60px;
}

.notfound__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(36px, 7vw, 64px) clamp(24px, 6vw, 56px);
  border-radius: 32px;
  text-align: center;
}

.notfound__code {
  font-size: clamp(5rem, 18vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1;
  background: linear-gradient(180deg, var(--text) 30%, var(--text-3) 120%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.notfound__title { font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -.03em; }
.notfound__text  { color: var(--text-2); }
.notfound .btn   { margin-top: 12px; }

html,
body,
body * { cursor: var(--cursor-default); }

:is(a[href], button, [role="button"], label, summary, select,
    input[type="checkbox"], input[type="radio"], input[type="submit"]),
:is(a[href], button, [role="button"], label, summary, select) * {
  cursor: var(--cursor-click);
}

.js .reveal {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity .9s var(--ease) var(--reveal-delay, 0ms),
    translate .9s var(--ease) var(--reveal-delay, 0ms),
    transform .35s var(--ease),
    border-color .35s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  translate: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal { opacity: 1; translate: none; }
  .backdrop__orb, .chip--float { animation: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-theme="dark"]  { --glass-bg: rgba(28, 28, 30, .9); --glass-bg-strong: rgba(28, 28, 30, .97); }
  [data-theme="light"] { --glass-bg: rgba(255, 255, 255, .9); --glass-bg-strong: rgba(255, 255, 255, .97); }
}
