:root {
  color-scheme: light;
  --bg: #f5f5f2;
  --bg-strong: #eceae5;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.66);
  --line: rgba(17, 17, 17, 0.1);
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 16px 38px rgba(0, 0, 0, 0.07);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  background:
    radial-gradient(circle at top left, rgba(10, 132, 255, 0.15), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.06), transparent 32%),
    linear-gradient(180deg, #fbfbf9 0%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(17, 17, 17, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 17, 17, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 85%);
}

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

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

button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
.lang-btn:focus-visible,
.button:focus-visible,
.social-link:focus-visible,
.project-links a:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

section {
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ambient {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.34;
  pointer-events: none;
  z-index: -1;
}

.ambient-left {
  top: -180px;
  left: -180px;
  background: rgba(255, 255, 255, 0.9);
}

.ambient-right {
  right: -160px;
  top: 18vh;
  background: rgba(10, 132, 255, 0.12);
}

.topbar {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 16px;
  z-index: 20;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.brand {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  isolation: isolate;
}

.nav-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  overflow: hidden;
  pointer-events: none;
}

.nav-progress-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(var(--section-progress, 0));
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.55), rgba(17, 17, 17, 0.45));
  transition: transform 180ms linear;
}

.nav-link {
  position: relative;
  z-index: 1;
  min-height: 34px;
  white-space: nowrap;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: color 220ms ease;
}

.nav a:hover {
  color: var(--text);
}

.nav-link.is-current {
  color: var(--text);
  text-shadow: 0 0 14px rgba(10, 132, 255, 0.18);
}

.nav-indicator {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) translate(-50%, -50%);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4) 42%, rgba(255, 255, 255, 0.14) 100%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(10, 132, 255, 0.08);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  transition: transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1), width 420ms cubic-bezier(0.2, 0.8, 0.2, 1), height 420ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.nav-indicator.is-visible {
  opacity: 1;
}

.nav-indicator.is-instant {
  transition: none;
}

.nav-indicator.is-switching {
  animation: nav-liquid-switch 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes nav-liquid-switch {
  0% {
    filter: saturate(1) brightness(1);
  }
  45% {
    filter: saturate(1.22) brightness(1.03);
  }
  100% {
    filter: saturate(1) brightness(1);
  }
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.lang-btn {
  min-height: 30px;
  min-width: 42px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.lang-btn.is-current {
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
}

main {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 56px 0 88px;
}

.section:not(#hero),
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 780px;
}

.section {
  padding: 64px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  padding-top: 48px;
}

.hero-visual {
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(244, 249, 255, 0.66) 46%, rgba(255, 255, 255, 0.5)),
    radial-gradient(circle at 0% 110%, rgba(10, 132, 255, 0.18), transparent 56%);
  box-shadow: 0 26px 66px rgba(13, 29, 48, 0.18);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.45), transparent 45%);
  pointer-events: none;
}

.hero-visual-header {
  display: flex;
  gap: 7px;
}

.hero-visual-header span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.22);
}

.hero-visual-title {
  margin: 14px 0 12px;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-visual-grid p {
  margin: 0;
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.hero-visual-grid strong {
  color: var(--text);
  font-weight: 500;
}

.hero-visual-lines {
  display: grid;
  gap: 8px;
}

.hero-visual-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.18), rgba(17, 17, 17, 0.06));
  transform-origin: left;
  animation: pulse-line 3.6s ease-in-out infinite;
}

.hero-visual-lines .line-two {
  width: 86%;
  animation-delay: 240ms;
}

.hero-visual-lines .line-three {
  width: 72%;
  animation-delay: 480ms;
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.55;
    transform: scaleX(0.96);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.hero-copy h1,
.section-heading h2,
.contact-card h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(4rem, 10vw, 8.5rem);
  max-width: 10ch;
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--muted);
}

.lede,
.about-card p,
.contact-card p,
.projects-note,
.project-meta,
.project-description {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  max-width: 38rem;
  font-size: 1.08rem;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

.button-primary {
  background: var(--text);
  color: #fff;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  max-width: 11ch;
}

.projects-note {
  max-width: 24rem;
  margin: 0;
}

.about-grid,
.experience-grid,
.projects-grid {
  display: grid;
  gap: 18px;
}

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

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

.skills-carousel-container {
  margin: 32px 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--bg) 0%, transparent 15%, transparent 85%, var(--bg) 100%);
  position: relative;
  z-index: 1;
  touch-action: pan-y;
  cursor: grab;
}

.skills-carousel-container.is-dragging {
  cursor: grabbing;
}

.skills-carousel-track {
  display: flex;
  gap: 24px;
  padding: 28px 24px;
  will-change: transform;
  user-select: none;
}

.skills-carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 100px;
  flex-shrink: 0;
}

.skills-carousel-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.skills-carousel-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: opacity(0.9);
}

.skills-carousel-item:hover .skills-carousel-icon {
  transform: translateY(-2px) scale(1.08);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.skills-carousel-label {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  text-transform: capitalize;
}

.about-card,
.contact-card,
.project-card,
.experience-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.about-card h3,
.project-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

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

.experience-card {
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.7));
}

.experience-header {
  display: grid;
  gap: 6px;
}

.experience-badge {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.experience-title {
  margin: 0;
  font-size: 1.24rem;
}

.experience-company,
.experience-period,
.experience-highlights-title {
  margin: 0;
  color: var(--muted);
}

.experience-company a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.experience-period,
.experience-highlights-title {
  font-size: 0.92rem;
}

.experience-highlights {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.project-card {
  --project-accent: rgba(10, 132, 255, 0.22);
  --project-edge: rgba(255, 255, 255, 0.72);
  grid-column: 1 / -1;
  width: 100%;
  display: grid;
  gap: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22) 45%, rgba(255, 255, 255, 0.42) 100%),
    rgba(255, 255, 255, 0.28);
  border: 1px solid var(--project-edge);
  backdrop-filter: blur(24px) saturate(128%);
  -webkit-backdrop-filter: blur(24px) saturate(128%);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, opacity 700ms ease, filter 700ms ease;
  position: relative;
  overflow: hidden;
}

.projects-grid .project-card:nth-child(2n) {
  --project-accent: rgba(59, 145, 255, 0.24);
}

.projects-grid .project-card:nth-child(3n) {
  --project-accent: rgba(42, 116, 196, 0.24);
}

.projects-grid .project-card:nth-child(odd) {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.24) 45%, rgba(255, 255, 255, 0.46) 100%),
    rgba(255, 255, 255, 0.3);
}

.projects-grid .project-card:nth-child(even) {
  background:
    linear-gradient(160deg, rgba(245, 250, 255, 0.54), rgba(255, 255, 255, 0.2) 45%, rgba(242, 248, 255, 0.42) 100%),
    rgba(255, 255, 255, 0.24);
  border-color: rgba(235, 244, 255, 0.75);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -55% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--project-accent), rgba(10, 132, 255, 0.02) 45%, transparent 70%);
  pointer-events: none;
}

.projects-grid .project-card:nth-child(even)::after {
  background: radial-gradient(circle, rgba(115, 165, 255, 0.2), rgba(115, 165, 255, 0.03) 45%, transparent 70%);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.07) 38%, transparent 62%),
    linear-gradient(90deg, transparent, rgba(10, 132, 255, 0.22), transparent);
  transform: scaleX(0.9);
  opacity: 0;
  transition: transform 700ms ease, opacity 700ms ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.68);
}

.project-card.is-visible::before {
  transform: scaleX(1);
  opacity: 0.78;
}

.project-image {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  position: relative;
}

.project-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(148deg, rgba(255, 255, 255, 0.5), transparent 52%);
  pointer-events: none;
  z-index: 2;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 3;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 360ms ease, filter 360ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.03);
}

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

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  color: var(--muted);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.92rem;
}

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

.project-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 0.84rem;
}

.project-highlights {
  display: grid;
  gap: 6px;
}

.project-highlight {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.project-links a,
.project-link-button {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  transition: background 180ms ease, border-color 180ms ease;
}

.project-links a:hover,
.project-link-button:hover {
  background: rgba(17, 17, 17, 0.04);
  border-color: rgba(17, 17, 17, 0.16);
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68));
}

.contact-card p {
  max-width: 46rem;
}

.cv-request-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  gap: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7));
}

.cv-request-intro h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.cv-request-intro p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 56ch;
}

.cv-request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-group input,
.field-group textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field-group textarea {
  resize: vertical;
  min-height: 130px;
}

.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: rgba(10, 132, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.field-group-email,
.field-group-full,
.cv-request-form .button {
  grid-column: 1 / -1;
}

.cv-request-form .button {
  justify-self: start;
}

.cv-request-form .button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.cv-form-status {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.cv-form-status.is-error {
  color: #9b1c1c;
}

.site-footer {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 8px auto 40px;
}

.footer-inner {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(216, 230, 245, 0.78);
  background:
    linear-gradient(145deg, rgba(245, 249, 255, 0.82), rgba(236, 245, 255, 0.65)),
    radial-gradient(circle at 96% 120%, rgba(10, 132, 255, 0.24), transparent 42%);
  box-shadow: var(--shadow-soft);
}

.footer-copy {
  margin: 0;
  color: rgba(17, 17, 17, 0.84);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 132, 255, 0.28);
  background: rgba(10, 132, 255, 0.08);
}

.social-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(10px);
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1), transform 720ms cubic-bezier(0.22, 1, 0.36, 1), filter 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.video-modal-content {
  position: relative;
  z-index: 1001;
  width: 90%;
  max-width: 900px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1002;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.video-player {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .contact-card {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .cv-request-form {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 9ch;
  }

  .hero-visual {
    min-height: 240px;
  }

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

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

  .project-card {
    grid-column: 1 / -1;
  }

  .nav-link {
    padding: 6px 12px;
    min-height: 32px;
  }
}

@media (max-width: 700px) {
  .topbar {
    border-radius: 24px;
    padding: 14px 16px;
  }

  .nav {
    display: none;
  }

  .language-switch {
    margin-left: auto;
  }

  main {
    padding-top: 24px;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    gap: 18px;
  }

  .hero-visual {
    padding: 16px;
    min-height: 210px;
  }

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

  .hero-copy h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .about-card,
  .project-card,
  .contact-card,
  .cv-request-card {
    border-radius: 22px;
  }

  .project-card {
    grid-column: 1 / -1;
  }

  .contact-card {
    padding: 22px;
  }

  .cv-request-card {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .skills-carousel-container {
    margin: 24px 0;
    border-radius: 20px;
  }

  .skills-carousel-track {
    padding: 20px 16px;
    gap: 16px;
  }

  .skills-carousel-item {
    min-width: 80px;
  }

  .skills-carousel-icon {
    width: 56px;
    height: 56px;
  }

  .skills-carousel-icon img {
    width: 32px;
    height: 32px;
  }

  .skills-carousel-label {
    font-size: 0.7rem;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .project-card,
  .project-image img,
  .button,
  .nav a,
  .nav-indicator {
    transform: none !important;
  }

  .reveal {
    filter: none;
    transition-delay: 0ms;
  }

  .nav-indicator {
    transition: none;
    animation: none;
  }

  .hero-visual-lines span,
  .nav-progress-fill,
  .project-image img,
  .skills-carousel-track {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
