:root {
  --bg: #000;
  --ink: #f5f5f5;
  --muted: #9b9b9b;
  --font: Arial, Helvetica, sans-serif;
  --mono: "SF Mono", "IBM Plex Mono", "Roboto Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  scroll-behavior: smooth;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
}

html::-webkit-scrollbar {
  display: none;
}

html.is-loop-transitioning,
html.is-loop-transitioning body {
  overflow: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -ms-overflow-style: none;
}

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

.page {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--bg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgb(255 255 255 / 9%), transparent 34%),
    var(--bg);
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-name {
  position: absolute;
  inset: 10% -4% auto -4%;
  z-index: 1;
  display: grid;
  color: #111;
  font-size: clamp(74px, 14vw, 220px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.78;
  text-align: center;
  text-transform: uppercase;
  user-select: none;
}

.hero-name span {
  -webkit-text-stroke: 1px rgb(255 255 255 / 20%);
}

.hero-character {
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: min(450px, 43vw);
  max-height: min(660px, 68vh);
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgb(0 0 0 / 80%));
  transform: translateY(-34px);
}

.hero-contacts {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
}

.hero-contacts a {
  position: relative;
  display: inline-block;
  padding: 12px 10px;
  color: rgb(245 245 245 / 72%);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-contacts a:hover,
.hero-contacts a:focus-visible {
  color: #fff;
  outline: 0;
}

.hero-contacts a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.hero-label {
  position: absolute;
  bottom: 34px;
  left: 34px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgb(245 245 245 / 70%);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.hero-login-icon {
  position: relative;
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgb(245 245 245 / 54%);
  color: rgb(245 245 245 / 72%);
  transform: translateY(2px);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.hero-login-icon::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.hero-login-icon::after {
  position: absolute;
  right: 5px;
  bottom: 4px;
  left: 5px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero-login-icon:hover,
.hero-login-icon:focus-visible {
  border-color: #f5f5f5;
  background: rgb(245 245 245 / 8%);
  color: #f5f5f5;
  outline: 0;
}

.summit-chart-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.summit-chart-head span {
  color: rgb(245 245 245 / 58%);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.summit-chart-head strong {
  color: #f5f5f5;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.summit-plot {
  position: relative;
  height: 168px;
  border-bottom: 1px solid rgb(245 245 245 / 48%);
  border-left: 1px solid rgb(245 245 245 / 48%);
  background:
    linear-gradient(rgb(245 245 245 / 10%) 1px, transparent 1px) 0 0 / 100% 33.33%,
    linear-gradient(90deg, rgb(245 245 245 / 8%) 1px, transparent 1px) 0 0 / 33.33% 100%;
}

.height-mark,
.date-mark {
  position: absolute;
  color: rgb(245 245 245 / 42%);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.height-mark {
  right: calc(100% + 8px);
}

.height-high {
  top: 0;
}

.height-mid {
  top: 48%;
}

.date-mark {
  top: calc(100% + 8px);
  transform: translateX(-50%);
}

.date-a {
  left: 18%;
}

.date-b {
  left: 54%;
}

.date-c {
  left: 84%;
}

.summit-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  gap: 4px;
  color: #f5f5f5;
  font-style: normal;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.summit-point::before {
  width: 12px;
  height: 12px;
  justify-self: center;
  border: 2px solid var(--bg);
  background: #f5f5f5;
  border-radius: 999px;
  box-shadow: 0 0 0 1px #f5f5f5, 0 0 24px rgb(245 245 245 / 42%);
  content: "";
}

.summit-point b {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.summit-point small {
  color: rgb(245 245 245 / 56%);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  z-index: 3;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 14px 18px;
  color: rgb(245 245 245 / 64%);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: #fff;
  outline: 0;
}

.scroll-cue i {
  width: 1px;
  height: 38px;
  background: currentColor;
  transform-origin: top;
  animation: scrollLine 1500ms ease-in-out infinite;
}

.scroll-cue-up {
  top: 18px;
  bottom: auto;
}

.scroll-cue-up i {
  order: -1;
  transform-origin: bottom;
  animation-name: scrollLineUp;
}

.career-section {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  padding: clamp(72px, 8vh, 104px) clamp(28px, 6vw, 72px);
  background: var(--bg);
  font-family: var(--font);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.career-shell {
  display: grid;
  gap: clamp(28px, 5vh, 54px);
  width: min(1260px, 100%);
}

.career-section h2 {
  margin: 0;
  color: #f5f5f5;
  font-size: clamp(42px, 7vw, 112px);
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  text-align: left;
  text-transform: uppercase;
}

.career-chart {
  position: relative;
  display: grid;
  gap: clamp(30px, 5vh, 58px);
  width: 100%;
}

.career-years {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: rgb(245 245 245 / 34%);
  font-size: 13px;
  font-weight: 800;
}

.career-years span:nth-child(2),
.career-years span:nth-child(3) {
  text-align: center;
}

.career-years span:last-child {
  text-align: right;
}

.career-track {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.track-label {
  display: grid;
  gap: 8px;
}

.track-label span {
  color: rgb(245 245 245 / 36%);
  font-size: 13px;
  font-weight: 900;
}

.track-label strong {
  color: #f5f5f5;
  font-size: clamp(18px, 1.65vw, 26px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.track-line {
  position: relative;
  height: 4px;
  background: currentColor;
  color: var(--track-color);
  box-shadow: 0 0 34px rgb(var(--track-rgb) / 34%);
}

.track-line::before {
  position: absolute;
  inset: -10px 0;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  content: "";
  opacity: 0.16;
}

.track-line i {
  position: absolute;
  top: 50%;
  left: var(--x);
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 3px solid var(--bg);
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 0 0 2px currentColor, 0 0 28px currentColor;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.track-line i:focus-visible {
  outline: 2px solid #f5f5f5;
  outline-offset: 8px;
}

.milestone-title {
  position: absolute;
  bottom: 30px;
  left: 50%;
  max-width: 120px;
  color: rgb(245 245 245 / 78%);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  transform: translateX(-50%);
  transition: color 160ms ease, transform 160ms ease;
}

.track-line b {
  position: absolute;
  top: 28px;
  color: rgb(245 245 245 / 66%);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.milestone-card {
  position: absolute;
  bottom: 52px;
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  width: 280px;
  min-height: 108px;
  padding: 10px;
  border: 1px solid rgb(245 245 245 / 24%);
  background: rgb(0 0 0 / 92%);
  box-shadow: 0 18px 54px rgb(0 0 0 / 72%), 0 0 0 1px rgb(var(--track-rgb) / 34%);
  color: #f5f5f5;
  font-style: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease;
}

.track-line i:first-child .milestone-card {
  left: 0;
  transform: translate(0, 8px) scale(0.96);
}

.track-line i:last-child .milestone-card {
  right: 0;
  left: auto;
  transform: translate(0, 8px) scale(0.96);
}

.milestone-card span {
  display: block;
  grid-row: 1 / 3;
  min-height: 88px;
  background:
    linear-gradient(135deg, rgb(var(--track-rgb) / 48%), transparent 62%),
    repeating-linear-gradient(0deg, rgb(245 245 245 / 16%) 0 1px, transparent 1px 6px),
    #111;
  filter: saturate(0.9);
}

.milestone-card strong {
  display: block;
  grid-column: 2;
  align-self: end;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.milestone-card small {
  display: block;
  grid-column: 2;
  align-self: start;
  margin-top: 6px;
  color: rgb(245 245 245 / 68%);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.mobile-milestone-panel {
  display: none;
}

.track-line i:hover .milestone-title,
.track-line i:focus-visible .milestone-title {
  color: #fff;
  transform: translateX(-50%) translateY(-4px);
}

.track-line i:hover .milestone-card,
.track-line i:focus-visible .milestone-card {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.track-line i:first-child:hover .milestone-card,
.track-line i:first-child:focus-visible .milestone-card,
.track-line i:last-child:hover .milestone-card,
.track-line i:last-child:focus-visible .milestone-card {
  transform: translate(0, 0) scale(1);
}

.track-dev {
  --track-color: #58d5ff;
  --track-rgb: 88 213 255;
}

.track-sys {
  --track-color: #b6ff6a;
  --track-rgb: 182 255 106;
}

.track-lead {
  --track-color: #ff6a8a;
  --track-rgb: 255 106 138;
}

.projects-section {
  position: relative;
  display: grid;
  min-height: 100vh;
  height: 100vh;
  align-items: start;
  justify-items: center;
  padding: clamp(72px, 8vh, 104px) clamp(28px, 6vw, 72px);
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #f5f5f5 rgb(245 245 245 / 12%);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.projects-section::-webkit-scrollbar {
  width: 10px;
}

.projects-section::-webkit-scrollbar-track {
  background: rgb(245 245 245 / 10%);
}

.projects-section::-webkit-scrollbar-thumb {
  border: 2px solid #000;
  background: #f5f5f5;
}

.projects-shell {
  display: grid;
  gap: clamp(28px, 5vh, 54px);
  width: min(1260px, 100%);
  min-height: auto;
  align-content: start;
  padding-bottom: clamp(36px, 6vh, 72px);
}

.projects-section h2 {
  margin: 0;
  color: #f5f5f5;
  font-size: clamp(42px, 7vw, 112px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  text-align: left;
  text-transform: uppercase;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1fr);
  min-height: 320px;
  border-top: 1px solid rgb(245 245 245 / 18%);
  border-bottom: 1px solid rgb(245 245 245 / 18%);
  color: #f5f5f5;
}

.project-preview {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgb(245 245 245 / 28%), transparent 62%),
    repeating-linear-gradient(0deg, rgb(245 245 245 / 13%) 0 1px, transparent 1px 8px),
    #111;
  background-position: center;
  background-size: cover;
  filter: saturate(0.9);
}

.project-content {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
}

.project-content > span {
  color: rgb(245 245 245 / 42%);
  font-size: 12px;
  font-weight: 900;
}

.project-content h3 {
  margin: 0;
  color: #f5f5f5;
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.project-content p {
  margin: 0;
  color: rgb(245 245 245 / 62%);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

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

.project-stack span {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgb(245 245 245 / 26%);
  color: rgb(245 245 245 / 78%);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-content a {
  display: inline-grid;
  width: max-content;
  min-height: 40px;
  place-items: center;
  padding: 0 16px;
  border: 1px solid #f5f5f5;
  color: #050505;
  background: #f5f5f5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.projects-section .section-scroll {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  display: grid;
  justify-self: center;
  margin-top: clamp(28px, 5vh, 54px);
  margin-bottom: 12px;
  transform: none;
}

.competence-section {
  position: relative;
  display: grid;
  min-height: 100vh;
  height: 100vh;
  place-items: center;
  padding: clamp(72px, 8vh, 104px) clamp(28px, 6vw, 72px);
  background: var(--bg);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.competence-shell {
  display: grid;
  gap: clamp(28px, 5vh, 54px);
  width: min(1260px, 100%);
}

.competence-section h2 {
  margin: 0;
  color: #f5f5f5;
  font-size: clamp(42px, 7vw, 112px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  text-align: left;
  text-transform: uppercase;
}

.competence-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}

.competence-group {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.competence-group h3 {
  margin: 0;
  color: #f5f5f5;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 900;
  line-height: 1;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}

.skill-list button {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgb(245 245 245 / 14%);
  background: rgb(0 0 0 / 42%);
  color: rgb(245 245 245 / 70%);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.skill-list button:hover,
.skill-list button:focus-visible {
  border-color: rgb(245 245 245 / 74%);
  background: #f5f5f5;
  box-shadow: 0 0 28px rgb(245 245 245 / 22%);
  color: #000;
  outline: 0;
}

.skill-list button em {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  width: 260px;
  min-height: 100px;
  padding: 10px;
  border: 1px solid rgb(245 245 245 / 24%);
  background: rgb(0 0 0 / 94%);
  box-shadow: 0 18px 54px rgb(0 0 0 / 72%), 0 0 0 1px rgb(245 245 245 / 12%);
  color: #f5f5f5;
  font-style: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease;
}

.skill-list button:nth-child(1) em,
.skill-list button:nth-child(2) em {
  left: 0;
  transform: translate(0, 8px) scale(0.96);
}

.skill-list button:nth-last-child(1) em,
.skill-list button:nth-last-child(2) em {
  right: 0;
  left: auto;
  transform: translate(0, 8px) scale(0.96);
}

.skill-list button em span {
  display: block;
  grid-row: 1 / 3;
  min-height: 78px;
  background:
    linear-gradient(135deg, rgb(245 245 245 / 28%), transparent 62%),
    repeating-linear-gradient(0deg, rgb(245 245 245 / 14%) 0 1px, transparent 1px 6px),
    #101010;
}

.skill-list button em strong {
  display: block;
  grid-column: 2;
  align-self: end;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.skill-list button em small {
  display: block;
  grid-column: 2;
  align-self: start;
  margin-top: 5px;
  color: rgb(245 245 245 / 68%);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.skill-list button:hover em,
.skill-list button:focus-visible em {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.skill-list button:nth-child(1):hover em,
.skill-list button:nth-child(1):focus-visible em,
.skill-list button:nth-child(2):hover em,
.skill-list button:nth-child(2):focus-visible em,
.skill-list button:nth-last-child(1):hover em,
.skill-list button:nth-last-child(1):focus-visible em,
.skill-list button:nth-last-child(2):hover em,
.skill-list button:nth-last-child(2):focus-visible em {
  transform: translate(0, 0) scale(1);
}

.section-scroll {
  right: auto;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.education-section {
  position: relative;
  display: grid;
  min-height: 100vh;
  height: 100vh;
  place-items: center;
  padding: clamp(72px, 8vh, 104px) clamp(28px, 6vw, 72px);
  background: var(--bg);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.education-shell {
  display: grid;
  gap: clamp(28px, 5vh, 54px);
  width: min(1260px, 100%);
}

.education-section h2 {
  margin: 0;
  color: #f5f5f5;
  font-size: clamp(42px, 7vw, 112px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  text-align: left;
  text-transform: uppercase;
}

.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(20px, 4vw, 56px);
}

.education-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.education-panel h3 {
  margin: 0;
  color: #f5f5f5;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 900;
  line-height: 1;
}

.document-list {
  display: grid;
  gap: 10px;
}

.document-list button {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 5px 14px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid rgb(245 245 245 / 14%);
  background: transparent;
  color: #f5f5f5;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.document-list button:last-child {
  border-bottom: 1px solid rgb(245 245 245 / 14%);
}

.document-list button > span {
  grid-row: 1 / 3;
  color: rgb(245 245 245 / 42%);
  font-size: 13px;
  font-weight: 900;
}

.document-list button > strong {
  color: rgb(245 245 245 / 90%);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 900;
  line-height: 1;
}

.document-list button > small {
  color: rgb(245 245 245 / 54%);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.document-list button:hover,
.document-list button:focus-visible {
  outline: 0;
}

.document-list button:hover > strong,
.document-list button:focus-visible > strong {
  color: #fff;
}

.document-list button em {
  position: absolute;
  top: 50%;
  left: calc(100% + 26px);
  z-index: 25;
  display: grid;
  gap: 12px;
  width: min(360px, 38vw);
  padding: 14px;
  border: 1px solid rgb(245 245 245 / 24%);
  background: rgb(0 0 0 / 94%);
  box-shadow: 0 22px 80px rgb(0 0 0 / 78%), 0 0 0 1px rgb(245 245 245 / 12%);
  color: #f5f5f5;
  font-style: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-46%) scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease;
}

.document-list-featured button em {
  right: calc(100% + 26px);
  left: auto;
}

.document-list button em i {
  display: block;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgb(245 245 245 / 82%) 0 12%, transparent 12%),
    linear-gradient(#f1f1f1 0 0) 22% 22% / 56% 4px no-repeat,
    linear-gradient(#bdbdbd 0 0) 22% 34% / 44% 3px no-repeat,
    linear-gradient(#bdbdbd 0 0) 22% 43% / 52% 3px no-repeat,
    linear-gradient(#bdbdbd 0 0) 22% 52% / 34% 3px no-repeat,
    repeating-linear-gradient(0deg, transparent 0 10px, rgb(0 0 0 / 8%) 10px 11px),
    #e8e8e8;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 18%);
}

.document-list button em b {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
}

.document-list button em small {
  color: rgb(245 245 245 / 68%);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.document-list button:hover em,
.document-list button:focus-visible em {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.travel-section {
  position: relative;
  display: grid;
  min-height: 100vh;
  height: 100vh;
  place-items: center;
  padding: clamp(72px, 8vh, 104px) clamp(28px, 6vw, 72px);
  background: var(--bg);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.travel-shell {
  display: grid;
  gap: clamp(28px, 5vh, 54px);
  width: min(1260px, 100%);
}

.travel-section h2 {
  margin: 0;
  color: #f5f5f5;
  font-size: clamp(42px, 7vw, 112px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  text-align: left;
  text-transform: uppercase;
}

.travel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}

.world-map {
  position: relative;
  display: grid;
  width: 100%;
  max-width: min(680px, 100%);
  height: auto;
  aspect-ratio: 2754 / 1398;
  justify-self: center;
  gap: 18px;
  overflow: hidden;
  place-items: center;
  contain: paint;
}

.world-map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 22px 70px rgb(0 0 0 / 58%));
}

.world-map svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  filter: drop-shadow(0 22px 70px rgb(0 0 0 / 58%));
}

.travel-summits {
  display: grid;
  gap: 12px;
}

.contacts-section {
  position: relative;
  display: grid;
  min-height: 100vh;
  height: 100vh;
  place-items: center;
  padding: clamp(72px, 8vh, 104px) clamp(28px, 6vw, 72px);
  background: var(--bg);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.contacts-shell {
  display: grid;
  gap: clamp(28px, 5vh, 54px);
  width: min(1260px, 100%);
}

.contacts-section h2 {
  margin: 0;
  color: #f5f5f5;
  font-size: clamp(42px, 7vw, 112px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  text-align: left;
  text-transform: uppercase;
}

.contacts-grid {
  display: grid;
  gap: clamp(14px, 2vw, 26px);
  width: min(760px, 100%);
}

.contacts-grid button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #f5f5f5;
  cursor: copy;
  font-family: inherit;
  text-align: left;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.contacts-grid button:hover,
.contacts-grid button:focus-visible {
  color: #fff;
  outline: 0;
  transform: translateX(8px);
}

.contacts-grid span {
  grid-row: 1 / 3;
  color: rgb(245 245 245 / 36%);
  font-size: 13px;
  font-weight: 900;
}

.contacts-grid button:hover span,
.contacts-grid button:focus-visible span {
  color: rgb(245 245 245 / 72%);
}

.contacts-grid strong {
  font-size: clamp(26px, 4vw, 56px);
  font-weight: 900;
  line-height: 0.9;
}

.contacts-grid small {
  color: rgb(245 245 245 / 58%);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 800;
  line-height: 1.2;
}

.contacts-grid button:hover small,
.contacts-grid button:focus-visible small {
  color: rgb(245 245 245 / 78%);
}

.contacts-grid button small::after {
  display: inline-block;
  margin-left: 10px;
  color: rgb(245 245 245 / 42%);
  content: "нажмите, чтобы скопировать";
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contacts-grid button.is-copied small::after {
  color: #f5f5f5;
  content: "скопировано";
}

.hero-contacts a:hover::after,
.hero-contacts a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

@keyframes scrollLine {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.45;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes scrollLineUp {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.45;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 860px) {
  html {
    scroll-snap-type: y proximity;
  }

  .hero,
  .career-section,
  .competence-section,
  .projects-section,
  .education-section,
  .travel-section,
  .contacts-section {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .hero-name {
    top: 14%;
    font-size: clamp(56px, 20vw, 120px);
  }

  .hero-character {
    width: min(360px, 76vw);
    max-height: 540px;
  }

  .hero-contacts {
    top: 18px;
    right: 18px;
    gap: 16px;
  }

  .hero-label {
    bottom: 86px;
    left: 18px;
    gap: 10px;
    font-size: clamp(28px, 10vw, 46px);
  }

  .hero-login-icon {
    width: 22px;
    height: 22px;
  }

  .scroll-cue {
    right: auto;
    bottom: 18px;
    left: 50%;
    gap: 7px;
    padding: 8px 12px;
    font-size: 11px;
    line-height: 1;
    transform: translateX(-50%);
  }

  .scroll-cue i {
    height: 28px;
  }

  .scroll-cue-up {
    top: 10px;
    bottom: auto;
  }

  .career-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    min-height: 100svh;
    padding: 118px 18px 46px;
  }

  .career-shell {
    gap: 24px;
    flex: 0 0 auto;
  }

  .career-section h2,
  .competence-section h2,
  .projects-section h2,
  .education-section h2,
  .travel-section h2,
  .contacts-section h2 {
    font-size: clamp(30px, 11vw, 54px);
    text-align: left;
    overflow-wrap: anywhere;
  }

  .career-chart {
    gap: 58px;
  }

  .career-track {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .track-label {
    gap: 6px;
  }

  .track-label span {
    font-size: 11px;
  }

  .track-label strong {
    font-size: clamp(18px, 5.7vw, 22px);
    line-height: 0.94;
  }

  .track-line {
    width: calc(100% - 18px);
    margin-inline: 9px;
  }

  .milestone-title {
    max-width: 86px;
    bottom: 34px;
    font-size: 8px;
    line-height: 0.95;
  }

  .track-line b {
    top: 28px;
    font-size: 11px;
  }

  .milestone-card {
    display: none;
  }

  .track-line i {
    cursor: pointer;
    touch-action: manipulation;
  }

  .mobile-milestone-panel.is-active {
    position: fixed;
    right: 18px;
    bottom: 86px;
    left: 18px;
    z-index: 40;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    min-height: 96px;
    padding: 10px;
    border: 1px solid rgb(245 245 245 / 24%);
    background: rgb(0 0 0 / 94%);
    box-shadow: 0 18px 54px rgb(0 0 0 / 72%), 0 0 0 1px rgb(245 245 245 / 16%);
    color: #f5f5f5;
    opacity: 1;
  }

  .track-line i.is-active .milestone-title {
    color: #fff;
    transform: translateX(-50%) translateY(-4px);
  }

  .mobile-milestone-panel span {
    display: block;
    grid-row: 1 / 3;
    min-height: 76px;
    background:
      repeating-linear-gradient(0deg, rgb(245 245 245 / 16%) 0 1px, transparent 1px 6px),
      #111;
  }

  .mobile-milestone-panel strong {
    display: block;
    grid-column: 2;
    align-self: end;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
  }

  .mobile-milestone-panel small {
    display: block;
    grid-column: 2;
    align-self: start;
    margin-top: 6px;
    color: rgb(245 245 245 / 68%);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
  }

  .summit-plot {
    height: 132px;
  }

  .height-mark {
    right: auto;
    left: 6px;
  }

  .date-mark {
    top: calc(100% + 7px);
  }

  .summit-point b {
    font-size: 10px;
  }

  .summit-point small {
    font-size: 9px;
  }

  .competence-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    min-height: 100svh;
    padding: 118px 18px 46px;
  }

  .competence-shell {
    gap: 24px;
  }

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

  .competence-group {
    min-height: auto;
  }

  .projects-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    min-height: 100svh;
    padding: 118px 18px 46px;
  }

  .projects-shell {
    gap: 24px;
  }

  .projects-grid,
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-preview {
    min-height: 180px;
  }

  .skill-list button em {
    display: none;
  }

  .section-scroll {
    right: auto;
    bottom: 18px;
    left: 50%;
  }

  .competence-section .section-scroll,
  .career-section .section-scroll,
  .projects-section .section-scroll,
  .education-section .section-scroll,
  .travel-section .section-scroll,
  .contacts-section .section-scroll {
    position: static;
    align-self: center;
    justify-self: center;
    margin-top: clamp(28px, 7vh, 56px);
    margin-bottom: 0;
    transform: none;
  }

  .career-section .section-scroll,
  .contacts-section .section-scroll {
    margin-top: auto;
    padding-top: 34px;
  }

  .education-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    min-height: 100svh;
    padding: 118px 18px 46px;
  }

  .education-shell {
    gap: 24px;
  }

  .education-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .document-list button em,
  .document-list-featured button em {
    right: auto;
    left: 0;
    width: min(280px, 86vw);
    transform: translateY(-46%) scale(0.96);
  }

  .travel-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    min-height: 100svh;
    padding: 118px 18px 46px;
  }

  .travel-shell {
    gap: 24px;
  }

  .travel-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contacts-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    min-height: 100svh;
    padding: 118px 18px 46px;
  }

  .contacts-shell {
    gap: 24px;
  }

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

  .contacts-grid button {
    grid-template-columns: 34px minmax(0, 1fr);
    transform: none;
  }

  .contacts-grid button:hover,
  .contacts-grid button:focus-visible {
    transform: translateX(4px);
  }

  .contacts-grid button small::after {
    display: block;
    margin-top: 6px;
    margin-left: 0;
  }
}
