:root {
  --bg: #07090d;
  --bg-soft: #0d1119;
  --surface: rgba(18, 24, 35, 0.78);
  --surface-strong: #151b26;
  --text: #f5f7fb;
  --muted: #a8b0bf;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html,
  body { overflow-x: clip; }
}
html { scroll-behavior: smooth; }
html.page-loading,
html.page-loading body { overflow: hidden; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.10), transparent 26rem),
    radial-gradient(circle at 88% 30%, rgba(99, 102, 241, 0.09), transparent 28rem),
    var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 189, 248, .12), transparent 22rem),
    #07090d;
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { width: min(calc(100% - 48px), 360px); text-align: center; }
.loader-orbit {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  margin: 0 auto 28px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
}
.loader-orbit::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: rgba(56,189,248,.35);
  border-radius: inherit;
  animation: loader-spin 1.15s linear infinite;
}
.loader-monogram { font: 700 24px/1 "Space Grotesk", sans-serif; letter-spacing: -.05em; }
.loader-monogram span { color: var(--accent); }
.loader-label { margin: 0 0 16px; color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.loader-progress {
  overflow: hidden;
  height: 3px;
  background: rgba(255,255,255,.09);
  border-radius: 99px;
}
.loader-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(56,189,248,.5);
  transition: width .22s ease;
}
.loader-count { margin: 10px 0 0; color: rgba(255,255,255,.5); font-size: 12px; font-variant-numeric: tabular-nums; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: #071018;
  background: var(--accent);
  border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 24px 0;
}
.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max));
  min-height: 70px;
  margin: 0 auto;
  padding: 10px 12px 10px 18px;
  background: rgba(8, 11, 17, 0.76);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand img {
  width: 44px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 38%;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
}
.brand-dot { color: var(--accent); }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  display: block;
  padding: 11px 13px;
  color: var(--muted);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease, background .2s ease;
}
.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  color: var(--text);
  background: rgba(255,255,255,.07);
}
.nav-list a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); }
.menu-toggle {
  position: relative;
  display: none;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  color: var(--text);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 8px 24px rgba(0,0,0,.18);
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 23px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  transform-origin: center;
  transition: transform .32s cubic-bezier(.2,.75,.25,1), opacity .2s ease, width .25s ease;
}
.menu-toggle::before { transform: translate(-50%, -50%) translateY(-7px); }
.menu-toggle span { margin: 0; transform: translate(-50%, -50%); }
.menu-toggle::after { transform: translate(-50%, -50%) translateY(7px); }
.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: linear-gradient(145deg, rgba(56,189,248,.14), rgba(255,255,255,.05));
  border-color: rgba(56,189,248,.34);
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 10px 28px rgba(0,0,0,.25), 0 0 0 4px rgba(56,189,248,.08);
  outline: none;
}
.menu-toggle:active { transform: scale(.96); }
.menu-toggle[aria-expanded="true"] {
  color: #dff6ff;
  background: rgba(56,189,248,.11);
  border-color: rgba(56,189,248,.30);
}
.menu-toggle[aria-expanded="true"] span { opacity: 0; transform: translate(-50%, -50%) scaleX(0); }
.menu-toggle[aria-expanded="true"]::before { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(-45deg); }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.page-main { min-height: 70vh; padding: 28px 0 110px; }
.content-section + .content-section { margin-top: 96px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.display-title,
.page-title,
.section-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.display-title { max-width: 850px; font-size: clamp(56px, 8vw, 112px); }
.page-title { max-width: 850px; font-size: clamp(48px, 7vw, 86px); }
.section-title { font-size: clamp(32px, 4.5vw, 52px); }
.gradient-text {
  color: transparent;
  background: linear-gradient(110deg, #fff 25%, var(--accent) 65%, #8b8cff);
  background-clip: text;
  -webkit-background-clip: text;
}
.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}
.section-intro { margin-bottom: 36px; }
.section-intro .lead { font-size: 18px; }
.page-hero { padding: 32px 0 64px; }
.page-hero .kicker-row { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.page-hero .kicker-row::after { content: ""; width: 72px; height: 1px; background: var(--accent); }

.home-main { padding: 0; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: center;
  gap: 44px;
  min-height: calc(100svh - 98px);
  padding: 78px 0 82px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #061018; background: var(--accent); box-shadow: 0 12px 30px rgba(56,189,248,.22); }
.button-primary:hover { background: #7dd3fc; box-shadow: 0 16px 36px rgba(56,189,248,.3); }
.button-secondary { background: rgba(255,255,255,.04); border-color: var(--line); }
.button-secondary:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.button-arrow { font-size: 18px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.portrait-frame {
  position: relative;
  z-index: 2;
  width: min(88%, 410px);
  aspect-ratio: .82;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 46% 46% 26px 26px;
  box-shadow: var(--shadow);
  background: linear-gradient(145deg, rgba(56,189,248,.2), rgba(99,102,241,.08));
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -100px 100px rgba(7,9,13,.35); }
.orbit {
  position: absolute;
  width: 105%;
  aspect-ratio: 1;
  border: 1px solid rgba(56,189,248,.28);
  border-radius: 50%;
  animation: orbit-spin 24s linear infinite;
}
.orbit::before,
.orbit::after { content: ""; position: absolute; width: 9px; height: 9px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 22px var(--accent); }
.orbit::before { top: 18%; left: 8%; }
.orbit::after { right: 4%; bottom: 28%; }
.hero-badge {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 9%;
  padding: 13px 16px;
  background: rgba(10,14,22,.82);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  backdrop-filter: blur(14px);
}
.hero-badge strong { display: block; color: var(--text); font-size: 16px; }

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 0 100px;
}
.quick-card {
  min-height: 190px;
  padding: 26px;
  background: linear-gradient(150deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.quick-card:hover { transform: translateY(-5px); border-color: rgba(56,189,248,.42); background: linear-gradient(150deg, rgba(56,189,248,.12), rgba(255,255,255,.025)); }
.quick-card-number { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.quick-card h2 { margin: 36px 0 8px; font: 650 24px/1.1 "Space Grotesk", sans-serif; }
.quick-card p { margin: 0; color: var(--muted); font-size: 14px; }

.stack { display: grid; gap: 24px; }
.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(22,28,40,.88), rgba(12,16,24,.88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}
.card-body { padding: clamp(24px, 4vw, 42px); }
.card h2, .card h3 { margin-top: 0; font-family: "Space Grotesk", sans-serif; letter-spacing: -.025em; }
.card h2 { font-size: clamp(27px, 3.4vw, 40px); }
.card h3 { font-size: 23px; }
.card p { color: var(--muted); }
.meta { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tag { padding: 7px 11px; color: #c7eefe; background: var(--accent-soft); border: 1px solid rgba(56,189,248,.18); border-radius: 999px; font-size: 12px; font-weight: 650; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--text); font-weight: 700; }
.text-link:hover { color: var(--accent); }

.timeline { position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; top: 24px; bottom: 24px; left: 27px; width: 1px; background: linear-gradient(var(--accent), rgba(56,189,248,.08)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; }
.timeline-dot { position: relative; z-index: 1; width: 15px; height: 15px; margin: 29px 0 0 20px; background: var(--accent); border: 4px solid var(--bg); border-radius: 50%; box-shadow: 0 0 0 4px rgba(56,189,248,.18); }
.timeline-card { display: grid; grid-template-columns: 1fr minmax(200px, 320px); gap: 28px; align-items: center; padding: 30px; }
.timeline-card h2 { margin-bottom: 10px; }
.timeline-card h2 + p { margin-top: 0; }
.timeline-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video-card { padding: 18px; }
.video-frame { overflow: hidden; aspect-ratio: 16/9; background: #000; border-radius: 16px; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.youtube-player { position: relative; }
.video-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #020304;
}
.video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,4,8,.72), rgba(2,4,8,.05) 58%), linear-gradient(110deg, rgba(56,189,248,.10), transparent 50%);
  transition: background .25s ease;
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.video-poster:hover img,
.video-poster:focus-visible img { transform: scale(1.035); filter: brightness(.8); }
.play-control {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  padding-left: 5px;
  background: rgba(56,189,248,.94);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(0,0,0,.34), 0 0 0 10px rgba(56,189,248,.12);
  transition: transform .25s ease, background .25s ease;
}
.play-control span { color: #061018; font-size: 25px; line-height: 1; }
.video-poster:hover .play-control,
.video-poster:focus-visible .play-control { transform: scale(1.08); background: #7dd3fc; }
.video-state {
  position: absolute;
  right: 18px;
  bottom: 15px;
  left: 18px;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,.75);
}
.youtube-player.is-loading .play-control { animation: player-pulse .8s ease-in-out infinite alternate; }
.youtube-player.is-loading .video-state::after { content: "…"; }
.video-copy { padding: 22px 6px 8px; }
.video-copy h2 { margin-bottom: 8px; font-size: 24px; }
.video-copy p { margin: 0; font-size: 14px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature-card { display: flex; flex-direction: column; }
.feature-media { overflow: hidden; aspect-ratio: 16/10; background: #090b10; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.feature-card:hover .feature-media img { transform: scale(1.035); }
.feature-card .card-body { flex: 1; display: flex; flex-direction: column; }
.feature-card .text-link { margin-top: auto; padding-top: 12px; }

.chess-project-preview {
  position: relative;
  background: #080705;
}
.chess-project-preview img { object-position: center top; }
.chess-project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(5,4,3,.5), transparent 42%);
}
.chess-preview-badge {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  color: #f4ead7;
  background: rgba(8,7,5,.76);
  border: 1px solid rgba(232,211,173,.3);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.logo-tile { display: grid; place-items: center; min-height: 130px; padding: 22px; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 18px; }
.logo-tile img { max-width: 110px; max-height: 72px; object-fit: contain; }
.logo-tile span { margin-top: 12px; color: var(--muted); font-size: 12px; }
.logo-tile--brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 150px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.logo-tile--brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -20% -60% 10%;
  height: 130px;
  border-radius: 50%;
  filter: blur(32px);
  opacity: .55;
}
.logo-tile--brand:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
}
.logo-tile--brand img {
  position: relative;
  width: 94px;
  max-width: 100%;
  max-height: 78px;
  filter: brightness(0) invert(1);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.logo-tile--brand:hover img { transform: scale(1.08) rotate(-2deg); }
.logo-tile--brand span { color: rgba(255,255,255,.82); font-weight: 700; letter-spacing: .04em; }
.logo-tile--react {
  background: linear-gradient(145deg, rgba(97,218,251,.16), rgba(12,18,27,.92) 58%);
  border-color: rgba(97,218,251,.25);
}
.logo-tile--react::before { background: #61dafb; }
.logo-tile--php {
  background: linear-gradient(145deg, rgba(119,123,180,.22), rgba(14,15,25,.94) 58%);
  border-color: rgba(119,123,180,.30);
}
.logo-tile--php::before { background: #777bb4; }
.logo-tile--php img { width: 112px; }
.logo-tile--bootstrap {
  background: linear-gradient(145deg, rgba(121,82,179,.23), rgba(16,12,24,.94) 58%);
  border-color: rgba(121,82,179,.32);
}
.logo-tile--bootstrap::before { background: #7952b3; }
.logo-tile--native img { filter: none; }
.logo-tile--web {
  background: linear-gradient(145deg, rgba(240,101,41,.15), rgba(17,21,31,.94) 58%);
  border-color: rgba(240,101,41,.26);
}
.logo-tile--web::before { background: linear-gradient(90deg, #e34f26, #f7df1e 50%, #1572b6); }
.logo-tile--web img { width: 116px; max-height: 84px; }
.logo-tile--os img { width: 92px; height: 82px; max-height: 82px; object-fit: contain; }
.logo-tile--macos {
  background: linear-gradient(145deg, rgba(190,198,210,.13), rgba(15,18,25,.94) 58%);
  border-color: rgba(190,198,210,.22);
}
.logo-tile--macos::before { background: #b8c0cc; }
.logo-tile--windows {
  background: linear-gradient(145deg, rgba(0,164,239,.18), rgba(12,19,27,.94) 58%);
  border-color: rgba(0,164,239,.28);
}
.logo-tile--windows::before { background: #00a4ef; }
.logo-tile--linux {
  background: linear-gradient(145deg, rgba(246,201,21,.16), rgba(20,19,13,.94) 58%);
  border-color: rgba(246,201,21,.25);
}
.logo-tile--linux::before { background: #f6c915; }
.logo-tile--ubuntu {
  background: linear-gradient(145deg, rgba(233,84,32,.19), rgba(23,15,14,.94) 58%);
  border-color: rgba(233,84,32,.28);
}
.logo-tile--ubuntu::before { background: #e95420; }
.skill-panel { padding: clamp(26px, 4vw, 44px); }

.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.art-card { display: flex; min-height: 0; flex-direction: column; }
.art-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  background: #0b0e14;
}
.art-card .card-body { flex: 1; padding: 20px; }
.art-card h3 { margin: 0 0 4px; }
.art-card p { margin: 0; font-size: 13px; }

.cv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.cv-preview { padding: 18px; }
.cv-preview img { width: 100%; border-radius: 14px; }
.cv-panel { position: sticky; top: 112px; padding: 32px; }
.cv-panel h2 { font-size: 32px; }
.cv-panel .button { width: 100%; margin-top: 14px; }

.nav-list a.nav-contact {
  color: #c7eefe;
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, .18);
}
.nav-list a.nav-contact:hover,
.nav-list a.nav-contact:focus-visible {
  color: #061018;
  background: var(--accent);
  border-color: var(--accent);
}

.contact-section {
  padding: 0 0 100px;
  scroll-margin-top: 112px;
}
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  background:
    radial-gradient(circle at 92% 12%, rgba(99, 102, 241, .22), transparent 30rem),
    radial-gradient(circle at 8% 90%, rgba(56, 189, 248, .14), transparent 24rem),
    linear-gradient(145deg, rgba(22, 28, 40, .94), rgba(10, 14, 22, .94));
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.contact-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -110px;
  right: -70px;
  width: 300px;
  aspect-ratio: 1;
  border: 1px solid rgba(125, 211, 252, .18);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(56, 189, 248, .08);
}
.contact-heading {
  max-width: 760px;
  margin-bottom: 34px;
}
.contact-heading .lead {
  margin-top: 18px;
  font-size: clamp(16px, 1.8vw, 19px);
}
.contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.contact-link {
  display: flex;
  min-width: 0;
  min-height: 164px;
  padding: 21px;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--muted);
  background: rgba(5, 8, 13, .42);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .25s ease, color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.contact-link:hover,
.contact-link:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(56, 189, 248, .42);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
  transform: translateY(-4px);
}
.contact-link--email {
  background: linear-gradient(145deg, rgba(56, 189, 248, .17), rgba(5, 8, 13, .42));
  border-color: rgba(56, 189, 248, .28);
}
.contact-link-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}
.contact-link-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.contact-link-arrow {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  color: #061018;
  background: var(--accent);
  border-radius: 50%;
  font-size: 16px;
  transition: transform .25s ease, background .25s ease;
}
.contact-link:hover .contact-link-arrow,
.contact-link:focus-visible .contact-link-arrow {
  background: #7dd3fc;
  transform: translate(2px, -2px);
}
.contact-link strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font: 650 clamp(17px, 1.8vw, 21px) / 1.2 "Space Grotesk", sans-serif;
  letter-spacing: -.025em;
}
.contact-link > span:last-child {
  margin-top: 7px;
  font-size: 13px;
}
@media (max-width: 900px) {
  .contact-links { grid-template-columns: 1fr; }
  .contact-link { min-height: 142px; }
}
@media (max-width: 600px) {
  .contact-section { padding-bottom: 76px; }
  .contact-panel { padding: 26px 18px 18px; }
  .contact-heading { margin-bottom: 26px; }
  .contact-link { min-height: 132px; padding: 18px; }
}

.timeline-kind {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  color: #c7eefe;
  background: var(--accent-soft);
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}
.timeline-kind--experience {
  color: #e9e4ff;
  background: rgba(139,92,246,.15);
  border-color: rgba(167,139,250,.3);
}
.timeline-item--experience .timeline-dot {
  background: #a78bfa;
  box-shadow: 0 0 0 4px rgba(167,139,250,.18);
}
.experience-card {
  grid-template-columns: minmax(0, 1fr);
  margin-left: clamp(0px, 3vw, 36px);
  background: linear-gradient(145deg, rgba(40,31,66,.9), rgba(12,16,24,.9) 58%);
  border-color: rgba(167,139,250,.22);
}
.timeline-item--experience .tag {
  color: #e9e4ff;
  background: rgba(139,92,246,.13);
  border-color: rgba(167,139,250,.2);
}
.experience-tasks {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.experience-tasks li::marker { color: #a78bfa; }

.site-footer { position: relative; padding: 26px 0 34px; border-top: 1px solid var(--line); }
.footer-shell { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.footer-copy { color: var(--muted); font-size: 13px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { padding: 8px 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 650; }
.social-links a:hover { color: var(--text); border-color: rgba(56,189,248,.35); }
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  background: rgba(15,20,30,.86);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

.reveal.is-pending { opacity: 0; transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes player-pulse { to { transform: scale(.9); opacity: .65; } }
@keyframes loader-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .site-header { padding: 12px 14px 0; }
  .nav-shell { min-height: 64px; }
  .menu-toggle { display: grid; }
  .nav-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    padding: 10px;
    background: rgba(8,11,17,.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(.985);
    transform-origin: top;
    transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  }
  .nav-list.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .nav-list a { padding: 13px 14px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 68px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-right: auto; margin-left: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 440px; }
  .quick-links { grid-template-columns: 1fr; }
  .quick-card { min-height: 150px; }
  .quick-card h2 { margin-top: 24px; }
  .timeline-card { grid-template-columns: 1fr; }
  .video-grid, .feature-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .cv-layout { grid-template-columns: 1fr; }
  .cv-panel { position: static; order: -1; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .page-main { padding-top: 18px; }
  .page-hero { padding-top: 24px; padding-bottom: 52px; }
  .nav-shell { gap: 8px; padding: 8px 8px 8px 12px; }
  .brand { gap: 9px; font-size: clamp(14px, 4.5vw, 17px); }
  .brand img { width: 38px; }
  .menu-toggle { width: 46px; height: 46px; flex: 0 0 auto; }
  .hero { padding-top: 54px; gap: 20px; }
  .display-title { font-size: clamp(50px, 16vw, 72px); }
  .page-title { font-size: clamp(44px, 14vw, 64px); }
  .hero-visual { min-height: 360px; }
  .portrait-frame { width: min(82%, 320px); }
  .hero-badge { right: 2%; bottom: 2%; }
  .timeline-item { grid-template-columns: 28px 1fr; gap: 12px; }
  .timeline::before { left: 9px; }
  .timeline-dot { margin-left: 2px; }
  .timeline-card { padding: 22px; }
  .logo-grid, .art-grid { grid-template-columns: 1fr; }
  .footer-shell { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 360px) {
  .site-header { padding: 8px 8px 0; }
  .nav-shell { min-height: 58px; padding: 7px 7px 7px 9px; border-radius: 14px; }
  .brand { gap: 7px; font-size: 14px; }
  .brand img { width: 34px; }
  .menu-toggle { width: 42px; height: 42px; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}
