:root {
  --paper: #f3f3ed;
  --paper-deep: #e8e9df;
  --ink: #101412;
  --muted: #646b66;
  --line: rgba(16, 20, 18, 0.14);
  --lime: #c9f04a;
  --lime-soft: #e8f6b7;
  --blue: #5586ff;
  --dark: #151b19;
  --dark-soft: #202825;
  --white: #fff;
  --radius: 28px;
  --shell: min(1240px, calc(100vw - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

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

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-140%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 243, 237, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.monogram {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--ink);
  border-radius: 50%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 38px;
  color: #343a36;
  font-size: 14px;
}

.main-nav a,
.header-cv {
  transition: opacity 160ms ease;
}

.main-nav a:hover,
.header-cv:hover {
  opacity: 0.55;
}

.header-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}

.header-cv svg {
  width: 16px;
  height: 16px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.75fr);
  gap: 9vw;
  align-items: end;
  min-height: calc(100vh - 74px);
  padding-top: 86px;
  padding-bottom: 92px;
}

.hero-copy,
.hero-aside,
.project-content {
  min-width: 0;
}

.eyebrow,
.section-number,
.project-kind {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.eyebrow span {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border: 1px solid rgba(16, 20, 18, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(201, 240, 74, 0.3);
}

.hero h1 {
  margin: 28px 0 32px;
  font-size: clamp(58px, 6.6vw, 108px);
  font-weight: 680;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero h1 span {
  color: #878d88;
}

.hero-lead {
  max-width: 735px;
  margin: 0;
  color: #4e5550;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.52;
}

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

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 650;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--paper);
  background: var(--ink);
}

.button-primary:hover svg {
  transform: translate(2px, -2px);
}

.button-secondary:hover {
  color: var(--paper);
  background: var(--ink);
}

.hero-aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metric {
  min-height: 158px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-featured {
  background: var(--lime);
}

.metric-value,
.metric-label {
  display: block;
}

.metric-value {
  margin-bottom: 34px;
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1;
}

.metric-label {
  color: #555c57;
  font-size: 13px;
  line-height: 1.35;
}

.metric-featured .metric-label {
  color: #334010;
}

.about,
.projects,
.principles {
  padding-top: 140px;
  padding-bottom: 140px;
}

.about {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 2fr 8fr;
  align-items: start;
  margin-bottom: 72px;
}

.section-heading h2 {
  max-width: 850px;
  margin: -8px 0 0;
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 9vw;
  margin-left: 20%;
}

.about-intro {
  margin: 0;
  color: #333a36;
  font-size: 22px;
  line-height: 1.5;
}

.experience-list {
  border-top: 1px solid var(--line);
}

.experience-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}

.experience-date {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.experience-item h3 {
  margin: 0 0 9px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.experience-item p:not(.experience-date) {
  margin: 0;
  color: #626964;
  font-size: 15px;
  line-height: 1.55;
}

.skill-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 64px;
  margin-left: 20%;
}

.skill-line span,
.stack span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.projects {
  width: 100%;
  max-width: none;
  padding-right: max(32px, calc((100vw - 1240px) / 2));
  padding-left: max(32px, calc((100vw - 1240px) / 2));
  background: #e9eae1;
}

.project-heading {
  grid-template-columns: 2fr 5fr 3fr;
}

.project-heading > p:last-child {
  max-width: 380px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(390px, 0.88fr) minmax(520px, 1.12fr);
  min-height: 700px;
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--radius);
}

.project-card + .project-card {
  margin-top: 32px;
}

.project-content {
  display: flex;
  flex-direction: column;
  padding: 48px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}

.project-index {
  color: #777e79;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #53631a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status i {
  width: 7px;
  height: 7px;
  background: #8cb313;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(140, 179, 19, 0.14);
}

.project-content h3 {
  margin: 10px 0 22px;
  font-size: clamp(44px, 4.4vw, 68px);
  font-weight: 660;
  letter-spacing: -0.055em;
  line-height: 1;
}

.project-summary {
  max-width: 540px;
  margin: 0;
  color: #333a36;
  font-size: 20px;
  line-height: 1.48;
}

.project-points {
  display: grid;
  gap: 12px;
  margin: 30px 0 32px;
  padding: 28px 0 0;
  color: #515853;
  font-size: 14px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.project-points li {
  position: relative;
  padding-left: 19px;
}

.project-points li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

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

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: auto;
  padding-top: 38px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
}

.project-links svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.project-links a:hover svg {
  transform: translate(2px, -2px);
}

.project-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.reader-visual {
  display: grid;
  place-items: center;
  background: var(--lime);
}

.reader-orbit {
  position: absolute;
  border: 1px solid rgba(16, 20, 18, 0.14);
  border-radius: 50%;
}

.orbit-one {
  width: 620px;
  height: 620px;
}

.orbit-two {
  width: 860px;
  height: 860px;
}

.browser-frame {
  position: relative;
  z-index: 2;
  width: min(84%, 680px);
  overflow: hidden;
  background: #f8f8f3;
  border: 1px solid rgba(16, 20, 18, 0.22);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(47, 61, 8, 0.25);
  transform: rotate(-2deg);
}

.browser-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 48px;
  padding: 0 18px;
  color: #697069;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots i {
  width: 6px;
  height: 6px;
  background: #c8cbc4;
  border-radius: 50%;
}

.online-dot {
  justify-self: end;
  width: 7px;
  height: 7px;
  background: #8cb313;
  border-radius: 50%;
}

.reader-body {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  min-height: 410px;
}

.reader-sidebar {
  padding: 34px 30px;
  background: #eaebe3;
  border-right: 1px solid var(--line);
}

.reader-sidebar > strong {
  display: block;
  margin-bottom: 24px;
  color: #6b716c;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-cover {
  display: grid;
  width: 104px;
  height: 146px;
  place-items: center;
  color: var(--lime);
  background: var(--ink);
  border-radius: 4px 9px 9px 4px;
  box-shadow: 10px 12px 22px rgba(16, 20, 18, 0.17);
}

.book-cover span {
  font-size: 36px;
  font-weight: 300;
}

.reader-sidebar p {
  margin: 18px 0 12px;
  font-size: 12px;
  font-weight: 700;
}

.progress {
  height: 4px;
  overflow: hidden;
  background: #d3d6cc;
  border-radius: 4px;
}

.progress i {
  display: block;
  width: 24%;
  height: 100%;
  background: var(--ink);
}

.reader-sidebar small {
  color: #7d837e;
  font-size: 9px;
}

.reader-copy {
  padding: 42px;
}

.fragment-tag {
  color: #737a74;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reader-copy h4 {
  margin: 20px 0 26px;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.text-lines {
  display: grid;
  gap: 9px;
}

.text-lines i {
  display: block;
  width: 100%;
  height: 5px;
  background: #dde0d7;
  border-radius: 5px;
}

.text-lines i:nth-child(2) { width: 93%; }
.text-lines i:nth-child(3) { width: 96%; }
.text-lines i:nth-child(4) { width: 87%; }
.text-lines i:nth-child(5) { width: 54%; }

.schedule-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
  padding: 13px;
  background: var(--lime-soft);
  border-radius: 12px;
}

.clock-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
}

.schedule-pill small,
.schedule-pill strong {
  display: block;
}

.schedule-pill small {
  color: #6e7948;
  font-size: 8px;
}

.schedule-pill strong {
  font-size: 10px;
}

.telegram-card {
  position: absolute;
  right: 4%;
  bottom: 7%;
  z-index: 4;
  width: 210px;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(16, 20, 18, 0.18);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(47, 61, 8, 0.22);
  transform: rotate(3deg);
}

.tg-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tg-head > span:last-child,
.tg-head strong,
.tg-head small {
  display: block;
}

.tg-head strong {
  font-size: 11px;
}

.tg-head small {
  color: #818781;
  font-size: 9px;
}

.tg-logo {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 50%;
}

.telegram-card p {
  margin: 14px 0;
  font-size: 11px;
  line-height: 1.35;
}

.tg-action {
  color: #3972ff;
  font-size: 10px;
  font-weight: 700;
}

.project-vpn {
  color: #f0f3ef;
  background: var(--dark);
}

.project-vpn .project-index,
.project-vpn .project-kind,
.project-vpn .project-summary,
.project-vpn .project-points {
  color: #adb5af;
}

.project-vpn .status {
  color: #9eb8ff;
}

.project-vpn .status i {
  background: #6e94ff;
  box-shadow: 0 0 0 4px rgba(110, 148, 255, 0.14);
}

.project-vpn .project-points {
  border-color: rgba(255, 255, 255, 0.14);
}

.stack-dark span {
  color: #c6ccc8;
  border-color: rgba(255, 255, 255, 0.17);
}

.vpn-visual {
  min-height: 700px;
  background: #5c83f4;
}

.vpn-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.vpn-label {
  position: absolute;
  top: 34px;
  left: 38px;
  padding: 8px 12px;
  color: #dce5ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.device,
.server-node,
.app-list,
.direct-route {
  position: absolute;
  z-index: 3;
}

.device {
  display: flex;
  width: 175px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 20, 18, 0.14);
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(19, 35, 81, 0.2);
}

.device-one { top: 138px; left: 8%; }
.device-two { bottom: 138px; left: 8%; }

.device-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  background: var(--dark);
  border-radius: 9px;
}

.device strong,
.device small {
  display: block;
}

.device strong {
  font-size: 11px;
}

.device small {
  margin-top: 2px;
  color: #7d847f;
  font-size: 9px;
}

.server-node {
  top: 50%;
  left: 50%;
  display: grid;
  width: 210px;
  height: 210px;
  place-items: center;
  align-content: center;
  color: var(--white);
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 28px 60px rgba(19, 35, 81, 0.32);
  transform: translate(-50%, -50%);
}

.server-node strong {
  margin-top: 10px;
  font-size: 13px;
}

.server-node small {
  margin-top: 2px;
  color: #919b95;
  font-size: 9px;
}

.shield-icon svg {
  width: 38px;
  height: 43px;
  color: var(--lime);
}

.server-pulse {
  position: absolute;
  inset: -30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.server-pulse::before,
.server-pulse::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.server-pulse::before { inset: -34px; }
.server-pulse::after { inset: -68px; }

.route {
  position: absolute;
  left: calc(8% + 175px);
  z-index: 1;
  width: calc(42% - 175px);
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  transform-origin: left;
}

.route::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, white, transparent);
  animation: route-flow 2.4s linear infinite;
  transform: translateX(-100%);
}

.route-one {
  top: 191px;
  transform: rotate(24deg);
}

.route-two {
  bottom: 191px;
  transform: rotate(-24deg);
}

@keyframes route-flow {
  to { transform: translateX(100%); }
}

.app-list {
  top: 110px;
  right: 6%;
  display: grid;
  gap: 8px;
  width: 175px;
  padding: 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 15px;
  box-shadow: 0 14px 35px rgba(19, 35, 81, 0.2);
}

.app-list p {
  margin: 0 0 3px;
  color: #6d746f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.app-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 650;
}

.app-list i {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: white;
  font-size: 8px;
  font-style: normal;
  background: var(--dark);
  border-radius: 7px;
}

.direct-route {
  right: 6%;
  bottom: 70px;
  display: grid;
  width: 175px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
}

.direct-route i {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.direct-route strong {
  color: white;
  font-size: 9px;
}

.principles {
  border-bottom: 1px solid var(--line);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-left: 20%;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle {
  min-height: 330px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle > span {
  color: #747b76;
  font-size: 12px;
}

.principle h3 {
  margin: 138px 0 14px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.principle:nth-child(2) {
  background: var(--paper-deep);
}

.contact {
  padding: 140px 0 128px;
  color: #edf0ed;
  background: var(--dark);
}

.contact .section-number {
  color: #8b938e;
}

.contact h2 {
  margin: 36px 0 30px;
  font-size: clamp(54px, 7vw, 102px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.contact-inner > p:not(.section-number) {
  max-width: 590px;
  margin: 0 0 54px;
  color: #9da6a0;
  font-size: 19px;
}

.contact-mail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: clamp(23px, 3.5vw, 48px);
  letter-spacing: -0.035em;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-mail svg {
  width: 42px;
  height: 42px;
  transition: transform 180ms ease;
}

.contact-mail:hover svg {
  transform: translate(4px, -4px);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
  color: #bbc3bd;
  font-size: 13px;
}

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

.site-footer {
  color: #909993;
  background: var(--dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 30px;
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero-aside {
    max-width: 660px;
  }

  .about-grid,
  .skill-line,
  .principles-grid {
    margin-left: 0;
  }

  .project-heading {
    grid-template-columns: 1fr 3fr;
  }

  .project-heading > p:last-child {
    grid-column: 2;
    margin-top: 24px;
  }

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

  .project-content {
    min-height: 660px;
  }

  .project-visual {
    min-height: 660px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100vw - 36px);
    --radius: 20px;
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    height: 66px;
  }

  .hero {
    min-height: 0;
    padding-top: 70px;
    padding-bottom: 82px;
  }

  .hero h1 {
    margin-top: 22px;
    font-size: clamp(43px, 12.5vw, 60px);
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions {
    margin-top: 32px;
  }

  .button {
    width: 100%;
  }

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

  .metric {
    min-height: 138px;
    padding: 17px;
  }

  .metric-value {
    margin-bottom: 29px;
    font-size: 28px;
  }

  .metric-label {
    font-size: 11px;
  }

  .about,
  .projects,
  .principles {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .projects {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-heading,
  .project-heading {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 50px;
  }

  .section-heading h2 {
    margin: 0;
    font-size: clamp(42px, 12vw, 58px);
  }

  .project-heading > p:last-child {
    grid-column: auto;
    margin-top: 0;
  }

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

  .about-intro {
    font-size: 19px;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .skill-line {
    margin-top: 42px;
  }

  .project-card {
    min-height: 0;
  }

  .project-content {
    min-height: 0;
    padding: 30px 24px 36px;
  }

  .project-meta {
    margin-bottom: 44px;
  }

  .status {
    font-size: 9px;
  }

  .project-content h3 {
    font-size: 48px;
  }

  .project-summary {
    font-size: 18px;
  }

  .project-points {
    font-size: 13px;
  }

  .project-links {
    margin-top: 36px;
    padding-top: 0;
  }

  .project-visual,
  .vpn-visual {
    min-height: 510px;
  }

  .browser-frame {
    width: 92%;
    transform: rotate(-1deg) scale(0.92);
  }

  .reader-sidebar {
    padding: 28px 20px;
  }

  .reader-copy {
    padding: 34px 24px;
  }

  .telegram-card {
    right: 2%;
    bottom: 4%;
    transform: rotate(2deg) scale(0.86);
  }

  .device {
    width: 145px;
  }

  .device-one { top: 94px; left: 4%; }
  .device-two { bottom: 82px; left: 4%; }

  .server-node {
    width: 165px;
    height: 165px;
  }

  .app-list {
    top: 82px;
    right: 4%;
    width: 142px;
  }

  .direct-route {
    right: 4%;
    bottom: 42px;
    width: 142px;
  }

  .route-one { top: 143px; }
  .route-two { bottom: 131px; }

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

  .principle {
    min-height: 250px;
  }

  .principle h3 {
    margin-top: 80px;
  }

  .contact {
    padding: 90px 0 80px;
  }

  .contact h2 {
    font-size: clamp(48px, 13.5vw, 68px);
  }

  .contact-mail {
    gap: 20px;
    font-size: 21px;
    overflow-wrap: anywhere;
  }

  .contact-mail svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
  }
}

@media (max-width: 440px) {
  .hero-aside {
    grid-template-columns: 1fr 1fr;
  }

  .reader-body {
    grid-template-columns: 0.82fr 1.18fr;
  }

  .reader-copy h4 {
    font-size: 21px;
  }

  .book-cover {
    width: 80px;
    height: 118px;
  }

  .schedule-pill {
    margin-top: 26px;
  }

  .vpn-visual {
    min-height: 560px;
  }

  .device-one { top: 78px; }
  .device-two { bottom: 76px; }

  .server-node {
    top: 53%;
  }

  .app-list {
    top: 166px;
  }

  .direct-route {
    bottom: 30px;
  }
}

@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;
  }
}
