@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Onest:wght@400;500;600;700;800&display=swap');
/* Палитра, базовые настройки и типографика. */
:root {
  --bg: #09080f;
  --fg: #f4f0ff;
  --muted: #a19baf;
  --purple: #b991fa;
  --line: #ffffff14;
  --scroll: 0;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Manrope, Arial, sans-serif;
  font-size: 25.35px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #d8baff;
  outline-offset: 6px;
}
button {
  border: 0;
}
::selection {
  background: #9561c9;
  color: white;
}
em {
  font-style: normal;
  color: var(--purple);
}
/* Доступность и навигация. */
.skip {
  position: fixed;
  top: -80px;
  z-index: 100;
  background: #ac7ce4;
  color: #09080f;
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: calc(var(--scroll) * 100%);
  height: 2px;
  background: #b38af4;
  z-index: 50;
}
.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.5%;
  border-bottom: 1px solid #ffffff12;
}
.brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand-gem {
  font-size: 35px;
  font-weight: 400;
  color: #c6a8ff;
}
.brand-dot {
  color: #b991fa;
  margin-left: -8px;
}
.header nav {
  display: flex;
  gap: 35px;
  font-size: 21.97px;
  color: #d4cfde;
}
.header nav a {
  transition: color 0.2s;
}
.header nav a:hover {
  color: var(--purple);
}
.header-contact {
  font-size: 20.28px;
  border: 1px solid #ffffff36;
  padding: 12px 18px;
  border-radius: 5px;
  background: #ffffff04;
}
.header-contact span {
  margin-left: 20px;
  color: var(--purple);
}
/* Первый экран и эффект приближения. */
.hero {
  height: max(820px, 100svh);
  max-height: 1200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.forest {
  position: absolute;
  inset: -3%;
  background:
    radial-gradient(ellipse at 55% 65%, #763c9e55, transparent 45%),
    url('assets/cave-entrance-painted.webp') center 56% / cover;
  transform: translateY(calc(var(--hero-progress, 0) * 120px))
    scale(calc(1 + var(--hero-progress, 0) * 0.25));
  will-change: transform;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #09081070, transparent 65%),
    linear-gradient(0deg, #09080f 0%, #09080f05 30%, #09080f20 65%, #09080f50);
}
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  pointer-events: none;
}
.hero-content {
  z-index: 2;
  position: relative;
  margin: 80px auto 0;
  width: 89%;
  text-align: center;
  transform: translateY(calc(var(--hero-progress, 0) * -70px));
  opacity: calc(1 - var(--hero-progress, 0) * 0.9);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15.21px;
  letter-spacing: 2.2px;
  padding: 9px 14px;
  border: 1px solid #e0c4ff25;
  background: #120c2090;
  backdrop-filter: blur(8px);
  border-radius: 30px;
  color: #e1d5f5;
}
.status-light {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #c6abf8;
  border-radius: 50%;
  box-shadow: 0 0 10px #b58aff;
  flex-shrink: 0;
}
.hero-intro {
  font-size: 18px;
  color: #e1d6ef;
  margin: 37px 0 19px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Onest, Manrope, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -2.5px;
}
h1 {
  font-size: clamp(45px, 5.2vw, 80px);
  line-height: 1.12;
  margin-bottom: 25px;
}
h1 em {
  color: #ccb0f5;
}
.hero-description {
  color: #c3b9cf;
  font-size: 20px;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 33px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 17px 22px;
  border-radius: 4px;
  font-size: 20.28px;
  font-weight: 600;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-3px);
}
.button-primary {
  background: #b991f4;
  color: #160e23;
  box-shadow: 0 0 36px #ad72f323;
}
.button-primary:hover {
  background: #c9a9ff;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-size: 20.28px;
}
.text-link span {
  color: #bd98ee;
}
.hero-footer {
  position: absolute;
  bottom: 35px;
  left: 5.5%;
  right: 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.52px;
  letter-spacing: 1.5px;
  color: #9b91a9;
  gap: 20px;
}
.hero-footer i {
  font-style: normal;
  color: #665578;
  padding: 0 10px;
}
.scroll-hint {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 16.9px;
  letter-spacing: 0.3px;
}
.mouse {
  width: 14px;
  height: 22px;
  border: 1px solid #9c8caf;
  border-radius: 9px;
  position: relative;
}
.mouse:after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 2px;
  height: 4px;
  background: #c5a6f0;
  animation: scrollMouse 2s infinite;
}
@keyframes scrollMouse {
  70% {
    transform: translateY(7px);
    opacity: 0;
  }
}
/* Общая структура глав и знакомство. */
.journey {
  position: relative;
  background:
    radial-gradient(ellipse at 2% 18%, #20112b50, transparent 30%),
    radial-gradient(ellipse at 95% 55%, #2a153533, transparent 30%);
}
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 65px;
  position: relative;
  z-index: 2;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #8a7c9a;
  font-size: 13.52px;
  letter-spacing: 1.7px;
  margin-bottom: 66px;
}
.section-label span:last-child {
  color: #60556d;
}
.tiny-gem {
  color: #b990e2;
  font-size: 17px;
}
.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  align-items: center;
}
.portrait-wrap {
  position: relative;
  max-width: 6800px;
}
.portrait-frame {
  border: 1px solid #a37ac23a;
  position: relative;
  padding: 10px;
  background: linear-gradient(145deg, #34233e50, #0c0911);
  transform: rotate(-3deg);
}
.portrait-art {
  aspect-ratio: 4/4.7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: radial-gradient(ellipse at 50% 35%, #785091, #24192f 48%, #110e18 75%);
}
.portrait-art:before,
.portrait-art:after {
  content: '';
  position: absolute;
  inset: 15% 22%;
  border: 1px solid #c8a5f12e;
  transform: rotate(35deg);
}
.portrait-art:after {
  transform: rotate(-25deg);
  inset: 21% 14%;
}
.portrait-art > span {
  font-size: 95px;
  letter-spacing: -8px;
  color: #d5b3ff85;
  z-index: 1;
  font-weight: 500;
}
.portrait-orbit {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid #caa6ff25;
  box-shadow: 0 0 60px #b873f518;
}
.portrait-note {
  position: absolute;
  bottom: 23px;
  width: 100%;
  left: 0;
  text-align: center;
  font-size: 13.52px;
  letter-spacing: 2px;
  color: #a18bb7;
}
.portrait-caption {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  margin-top: 25px;
  color: #c8bbd8;
}
.portrait-caption span:last-child {
  color: #796c88;
}
.floating-gem {
  position: absolute;
  right: -30px;
  bottom: 44px;
  font-size: 100px;
  color: #ad7ed3;
  text-shadow: 0 0 35px #b67bee50;
  transform: rotate(15deg);
}
h2 {
  font-size: clamp(30px, 3vw, 45px);
  line-height: 1.25;
  margin-bottom: 25px;
  letter-spacing: -1.6px;
}
.about-copy > p {
  font-size: 21.97px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 550px;
}
.qualities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.qualities > div > span {
  color: var(--purple);
  font-size: 24px;
}
.qualities h3 {
  font-size: 20.28px;
  font-weight: 600;
  margin: 13px 0 8px;
}
.qualities p {
  font-size: 18.59px;
  line-height: 1.85;
  color: #8e819e;
}
.about-copy .approach-note {
  font-size: 16.9px;
  border-left: 1px solid #9670b5;
  padding-left: 15px;
  margin-top: 20px;
  color: #9d8baa;
}
.depth-nav {
  position: fixed;
  right: 22px;
  top: 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  z-index: 10;
}
.depth-nav a {
  width: 5px;
  height: 5px;
  border: 1px solid #9e80b555;
  transform: rotate(45deg);
}
.depth-nav a.active {
  background: #cba5fd;
  border-color: #cba5fd;
  box-shadow: 0 0 12px #c295fa;
}
.depth-nav > span {
  writing-mode: vertical-rl;
  font-size: 11.83px;
  letter-spacing: 2px;
  color: #6f5b83;
  margin-top: 10px;
}
.descent {
  text-align: center;
  height: 160px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: #6e587f;
  gap: 10px;
}
.descent span:first-child {
  height: 45px;
  width: 1px;
  background: linear-gradient(transparent, #72518d);
}
.descent p {
  font-size: 11.83px;
  letter-spacing: 2px;
  margin: 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > p {
  font-size: 18.59px;
  line-height: 1.9;
  color: #92849f;
  margin-bottom: 3px;
}
.kicker {
  font-size: 13.52px;
  letter-spacing: 2px;
  color: #8f7da2;
  margin-bottom: 17px;
}
/* Сетка навыков и дальнейшее развитие. */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.skill-panel {
  position: relative;
  padding: 30px 25px 0;
  border: 1px solid #b18dca20;
  border-radius: 5px;
  background: linear-gradient(135deg, #21162d66, #100d17 75%);
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.skill-panel:hover {
  border-color: #b08cce65;
  transform: translateY(-5px);
}
.skill-icon {
  font-size: 28px;
  color: #c3a0e8;
  height: 58px;
  font-family: monospace;
  letter-spacing: -3px;
}
.panel-number {
  position: absolute;
  top: 35px;
  right: 25px;
  color: #5d466e;
  font-size: 15.21px;
}
.skill-panel h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.skill-panel p {
  min-height: 43px;
  font-size: 18.59px;
  line-height: 1.9;
  color: #9889a6;
}
.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.tags span {
  font-size: 15.21px;
  background: #b790e710;
  border: 1px solid #bd98e522;
  padding: 6px 9px;
  border-radius: 3px;
  color: #c5b0db;
}
.panel-bottom {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  font-size: 11.83px;
  letter-spacing: 1.7px;
  color: #776484;
}
.panel-bottom span {
  font-size: 21.97px;
  color: #af8dc9;
}
/* Переход в зал и карточки проектов. */
.chamber-entry {
  height: 230px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #59297822, transparent 60%);
}
.chamber-entry > span {
  font-size: 34px;
  color: #c296ee;
  text-shadow: 0 0 25px #b66de4;
}
.chamber-entry > p {
  font-size: 11.83px;
  letter-spacing: 2.5px;
  color: #8d6ca1;
}
.crystal-shard {
  position: absolute;
  width: 36px;
  height: 115px;
  clip-path: polygon(50% 0, 100% 23%, 84% 81%, 40% 100%, 0 77%, 8% 22%);
  background: linear-gradient(110deg, #532b6c, #bb81ed66 45%, #45215d 46%, #9f65c6 70%, #1c1029);
  opacity: 0.65;
}
.shard-a {
  left: 14%;
  top: 70px;
  transform: rotate(-20deg);
}
.shard-b {
  right: 17%;
  top: 40px;
  transform: rotate(25deg) scale(0.7);
}
.shard-c {
  left: 25%;
  top: 125px;
  transform: rotate(15deg) scale(0.4);
}
.projects {
  padding-top: 45px;
}
.project-notice {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 16.9px;
  color: #8f7d9e;
  margin-bottom: 35px;
  line-height: 1.8;
}
.project-notice > span {
  color: #c3a0e8;
  font-size: 17px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  padding: 0;
  text-align: left;
  background: transparent;
  min-width: 0;
}
.crystal-case {
  position: relative;
  padding: 18px;
  aspect-ratio: 1;
  border: 1px solid #ab7eda44;
  clip-path: polygon(8% 0, 90% 0, 100% 10%, 100% 88%, 91% 100%, 10% 100%, 0 90%, 0 11%);
  background: linear-gradient(130deg, #8053a839, #24183150 25%, #75509a18 65%, #b58ad83b);
  transition:
    transform 0.4s,
    background 0.4s;
  isolation: isolate;
}
.crystal-case:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(135deg, #e9caff15, transparent 35%, transparent 60%, #b17cdb15);
  border: 1px solid #d6acff35;
  clip-path: inherit;
}
.project-card:hover .crystal-case {
  transform: translateY(-9px);
  background: linear-gradient(130deg, #a56dd567, #40245450 25%, #75509a28 65%, #b58ad87b);
}
.facet {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.facet-left {
  clip-path: polygon(0 11%, 8% 0, 18% 18%, 18% 82%, 10% 100%, 0 90%);
  background: #b08ec21a;
}
.facet-right {
  clip-path: polygon(82% 18%, 90% 0, 100% 10%, 100% 88%, 91% 100%, 82% 82%);
  background: #c09fea12;
}
.project-art {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 15px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2c2ff17;
}
.mini-nav {
  display: flex;
  justify-content: space-between;
  font-size: 16.9px;
  letter-spacing: 1px;
  font-weight: 800;
  align-items: center;
}
.mini-nav i {
  font-size: 6.76px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 1px;
}
.project-art strong {
  position: relative;
  font-size: clamp(19px, 2.3vw, 33px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1px;
  z-index: 1;
  margin-top: 35px;
}
.mini-label {
  margin-top: auto;
  position: relative;
  font-size: 6.76px;
  letter-spacing: 1.5px;
  z-index: 1;
}
.art-cave {
  background: radial-gradient(ellipse at 80% 70%, #73308a90, transparent 65%), #12121c;
}
.mini-crystal {
  position: absolute;
  width: 75px;
  height: 145px;
  background: linear-gradient(105deg, #a75fde, #4c2e7d 40%, #cf9bee 41%, #6e3f98 60%, #221133);
  clip-path: polygon(50% 0, 100% 30%, 80% 83%, 39% 100%, 0 65%, 5% 24%);
  right: 15%;
  bottom: 15%;
  transform: rotate(20deg);
  filter: drop-shadow(0 0 20px #ae6bf0);
}
.art-store {
  background: #bfc0af;
  color: #252c26;
}
.art-store em {
  color: #415947;
}
.store-orb {
  position: absolute;
  right: 10%;
  top: 28%;
  height: 120px;
  width: 100px;
  border-radius: 50% 50% 35% 35%;
  background: radial-gradient(ellipse at 30% 20%, #e9ead7, #797c64 70%);
  box-shadow: 12px 16px 20px #474b5860;
  transform: rotate(15deg);
}
.art-task {
  background: #171d28;
}
.art-task strong {
  font-size: clamp(19px, 2vw, 29px);
  margin-top: 25px;
}
.art-task em {
  color: #9aaae0;
}
.mini-task {
  position: relative;
  margin: 15px 0;
  font-size: 10.14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1;
}
.mini-task span {
  padding: 7px;
  background: #ffffff07;
  border: 1px solid #ffffff09;
  border-radius: 3px;
  color: #afb7d1;
}
.project-arrow {
  position: absolute;
  z-index: 4;
  bottom: 25px;
  right: 25px;
  background: #15101ed9;
  border: 1px solid #c39be344;
  border-radius: 50%;
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  color: #c5a4ed;
  font-size: 21.97px;
}
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.14px;
  letter-spacing: 1px;
  margin-top: 23px;
  color: #7d658d;
  gap: 8px;
}
.project-meta span:last-child {
  border: 1px solid #9f7fb12b;
  padding: 4px 5px;
  border-radius: 2px;
  color: #b396c8;
}
.project-card h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 13px 0 10px;
}
.project-card > p {
  font-size: 18.59px;
  line-height: 1.9;
  color: #93819f;
}
.project-tags {
  font-size: 13.52px;
  color: #b19ac0;
  margin-top: 17px;
}
.project-tags i {
  font-style: normal;
  padding: 0 8px;
  color: #584461;
}
/* Контакты и подвал. */
.contact {
  text-align: center;
  padding-top: 160px;
  padding-bottom: 130px;
  overflow: hidden;
}
.contact-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 65%, #62338725, transparent 60%);
  z-index: -1;
}
.contact h2 {
  font-size: clamp(33px, 4vw, 58px);
  margin-bottom: 25px;
}
.contact > p:not(.kicker) {
  font-size: 20.28px;
  line-height: 1.9;
  color: #a291ae;
}
.contact-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 15px 20px;
  border: 1px solid #bb90e435;
  border-radius: 4px;
  font-size: 18.59px;
  background: #a576cf0c;
}
.contact-placeholder:hover {
  border-color: var(--purple);
}
.dialog-project-link {
  margin: 0 18px 18px 0;
}
.dialog-project-link[hidden] {
  display: none;
}
.contact .contact-sub {
  font-size: 15.21px !important;
  color: #6e577e !important;
  margin-top: 15px;
}
.contact > .text-link {
  margin-top: 35px;
  color: #a38eaf;
  font-size: 16.9px;
}
.footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 5.5%;
  color: #73627f;
  font-size: 13.52px;
}
.footer .brand {
  font-size: 27.04px;
  color: #cab7d6;
}
.footer .brand-gem {
  font-size: 25px;
}
.footer > span:last-child {
  font-size: 10.14px;
  letter-spacing: 1.2px;
}
.footer button {
  background: transparent;
  font-size: 15.21px;
  color: #9880a9;
}
.footer button span {
  margin-left: 7px;
  color: #b58bde;
}
/* Появление элементов и общие модальные окна. */
.reveal {
  opacity: 1;
  transform: none;
}
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s,
    transform 0.8s;
}
.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}
.skill-panel.reveal:nth-child(2),
.project-card.reveal:nth-child(2) {
  transition-delay: 0.1s;
}
.skill-panel.reveal:nth-child(3),
.project-card.reveal:nth-child(3) {
  transition-delay: 0.2s;
}
dialog {
  background: #17101f;
  color: #e9ddf5;
  border: 1px solid #9f74c566;
  border-radius: 8px;
  max-width: 530px;
  width: calc(100% - 40px);
  padding: 40px;
  box-shadow: 0 0 100px #8b4bb22b;
}
dialog::backdrop {
  background: #050308d9;
  backdrop-filter: blur(7px);
}
dialog h2 {
  font-size: 30px;
  margin-top: 20px;
}
dialog p {
  font-size: 21.97px;
  color: #b19cc0;
  line-height: 1.9;
}
dialog .dialog-note {
  font-size: 16.9px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 25px;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 10px;
  color: #b597ce;
  background: transparent;
  font-size: 26px;
}
.dialog-done {
  margin-top: 10px;
}
/* Пользовательское отключение движения. */
.motion-off * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.motion-off .forest,
.motion-off .hero-content {
  transform: none !important;
  opacity: 1 !important;
}
.motion-off .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Адаптация к широким экранам. */
@media (min-width: 1600px) {
  .hero-content {
    margin-top: 40px;
  }
  .hero {
    min-height: 900px;
  }
  .header {
    padding: 0 8%;
  }
}

/* Адаптация к планшетам. */
@media (max-width: 1000px) {
  .section {
    padding-left: 45px;
    padding-right: 45px;
  }
  .about-layout {
    gap: 50px;
  }
  .project-grid {
    gap: 17px;
  }
  .project-art {
    padding: 10px;
  }
  .project-art strong {
    margin-top: 23px;
  }
  .mini-crystal {
    width: 60px;
    height: 110px;
  }
  .mini-task {
    margin: 10px 0;
  }
  .mini-task span {
    padding: 5px;
  }
  .mini-nav i {
    font-size: 5.07px;
  }
  .hero-footer > span:first-child {
    display: none;
  }
  .header {
    height: 85px;
  }
  .hero {
    min-height: 760px;
  }
  .about-copy h2 {
    font-size: 30px;
  }
  .qualities {
    gap: 15px;
  }
  .skill-panel {
    padding: 25px 20px 0;
  }
  .skill-panel h3 {
    font-size: 17px;
  }
  .store-orb {
    height: 90px;
    width: 75px;
  }
  .section-label {
    margin-bottom: 45px;
  }
}

/* Адаптация к телефонам. */
@media (max-width: 700px) {
  html {
    scroll-padding-top: 25px;
  }
  .header {
    height: 75px;
    padding: 0 6%;
  }
  .header nav {
    gap: 17px;
    font-size: 16.9px;
  }
  .header-contact {
    font-size: 0;
    padding: 9px 12px;
  }
  .header-contact span {
    font-size: 27.04px;
    margin: 0;
  }
  .brand {
    font-size: 20px;
  }
  .brand-gem {
    font-size: 28px;
  }
  .hero {
    height: 100svh;
    min-height: 700px;
    max-height: 950px;
  }
  .forest {
    background-position: 52% center;
  }
  .hero-content {
    width: 90%;
    margin-top: 20px;
  }
  .eyebrow {
    font-size: 10.14px;
    letter-spacing: 1.2px;
    padding: 8px 10px;
  }
  .hero-intro {
    font-size: 23.66px;
    margin-top: 30px;
  }
  h1 {
    font-size: clamp(37px, 8.7vw, 59px);
    letter-spacing: -1.9px;
    line-height: 1.16;
  }
  .hero-description {
    font-size: 20.28px;
    line-height: 1.9;
  }
  .hero-actions {
    flex-direction: column;
    gap: 23px;
    margin-top: 27px;
  }
  .button {
    padding: 15px 20px;
    font-size: 18.59px;
  }
  .text-link {
    font-size: 18.59px;
  }
  .hero-footer {
    bottom: 25px;
    justify-content: center;
  }
  .hero-footer .chapter-mark {
    display: none;
  }
  .scroll-hint {
    font-size: 13.52px;
  }
  .section {
    padding: 65px 25px;
  }
  .section-label {
    font-size: 10.14px;
    letter-spacing: 1.1px;
    gap: 10px;
    margin-bottom: 35px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .portrait-wrap {
    width: 220px;
    margin: 0 auto;
  }
  .portrait-art {
    aspect-ratio: 1/1.05;
  }
  .portrait-art > span {
    font-size: 65px;
  }
  .portrait-note {
    font-size: 10.14px;
  }
  .portrait-caption {
    font-size: 11.83px;
    margin-top: 20px;
  }
  .floating-gem {
    font-size: 70px;
    bottom: 20px;
    right: -24px;
  }
  .about-copy h2 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .about-copy > p {
    font-size: 20.28px;
  }
  .qualities h3 {
    font-size: 18.59px;
  }
  .qualities p {
    font-size: 16.9px;
  }
  .section-heading {
    display: block;
    margin-bottom: 28px;
  }
  .section-heading > p {
    margin-top: 18px;
    font-size: 16.9px;
  }
  .section-heading h2 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .skill-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .skill-panel {
    padding: 25px 23px 0;
  }
  .skill-icon {
    height: 48px;
  }
  .skill-panel h3 {
    font-size: 19px;
    margin-bottom: 12px;
  }
  .skill-panel p {
    min-height: 0;
    margin-bottom: 20px;
  }
  .panel-bottom {
    margin-top: 23px;
  }
  .descent {
    height: 100px;
  }
  .chamber-entry {
    height: 160px;
  }
  .shard-a {
    top: 25px;
    left: 7%;
    transform: rotate(-20deg) scale(0.7);
  }
  .shard-b {
    right: 6%;
    top: 0;
  }
  .shard-c {
    left: 22%;
    top: 60px;
  }
  .chamber-entry > p {
    font-size: 10.14px;
    letter-spacing: 1.5px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 390px;
    margin: 0 auto;
  }
  .crystal-case {
    padding: 22px;
  }
  .project-art {
    padding: 20px;
  }
  .mini-nav {
    font-size: 21.97px;
  }
  .mini-nav i {
    font-size: 8.45px;
  }
  .project-art strong,
  .art-task strong {
    font-size: 37px;
    margin-top: 35px;
  }
  .mini-label {
    font-size: 8.45px;
  }
  .mini-crystal {
    width: 90px;
    height: 170px;
  }
  .store-orb {
    width: 120px;
    height: 150px;
  }
  .mini-task {
    font-size: 13.52px;
    gap: 7px;
    margin: 20px 0;
  }
  .mini-task span {
    padding: 9px;
  }
  .project-meta {
    font-size: 11.83px;
  }
  .project-card h3 {
    font-size: 22px;
  }
  .project-card > p {
    font-size: 20.28px;
  }
  .project-tags {
    font-size: 15.21px;
  }
  .contact {
    padding-top: 90px;
    padding-bottom: 85px;
  }
  .contact h2 {
    font-size: 34px;
    letter-spacing: -1.3px;
  }
  .contact > .kicker {
    font-size: 10.14px;
    letter-spacing: 1.5px;
  }
  .contact > p:not(.kicker) {
    font-size: 18.59px;
  }
  .footer {
    flex-wrap: wrap;
    padding: 22px 25px;
    gap: 20px;
  }
  .footer > span:last-child {
    width: 100%;
    text-align: center;
    font-size: 10.14px;
  }
  .footer .brand {
    display: none;
  }
  .footer {
    font-size: 13.52px;
  }
  .depth-nav {
    right: 9px;
    gap: 11px;
  }
  .depth-nav a {
    width: 4px;
    height: 4px;
  }
  .depth-nav > span {
    display: none;
  }
  .project-notice {
    font-size: 15.21px;
  }
  dialog {
    padding: 30px 25px;
  }
  dialog h2 {
    font-size: 27px;
  }
}
.hero-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hero-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(140deg, #8560a6, #241931);
  border: 1px solid #cfabf05e;
  font-size: 18.59px;
  letter-spacing: -0.7px;
  box-shadow: 0 0 25px #9351b920;
}
.skill-panel {
  backdrop-filter: blur(8px);
  background: linear-gradient(135deg, #21162dcc, #100d17cc 75%);
}
.about-copy {
  background: radial-gradient(ellipse, #09080f60, transparent 75%);
}
.project-art {
  aspect-ratio: 1;
  min-height: 0;
}
.project-card {
  display: block;
}
.project-card .crystal-case {
  animation: crystalFloat 6s ease-in-out infinite;
}
.project-card:nth-child(2) .crystal-case {
  animation-delay: -2s;
}
.project-card:nth-child(3) .crystal-case {
  animation-delay: -4s;
}
.project-card:hover .crystal-case {
  animation-play-state: paused;
}
@keyframes crystalFloat {
  50% {
    translate: 0 -7px;
  }
}

/* Системная настройка уменьшения движения. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .forest,
  .hero-content {
    transform: none !important;
    opacity: 1 !important;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Первый экран: небольшая пещера справа, текст на фоне леса слева. */
@media (max-width: 700px) {
  .hero .forest {
    mask-image: linear-gradient(to bottom, transparent 28%, #000 51%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 28%, #000 51%);
  }
}
.forest {
  background:
    linear-gradient(90deg, #09080f24, transparent 70%),
    url('assets/forest-clearing-painted.webp') center/cover no-repeat;
  transform-origin: 76% 49%;
  transform: translateY(calc(var(--hero-progress, 0) * 80px))
    scale(calc(1 + var(--hero-progress, 0) * 0.16));
}
.hero-shade {
  background:
    linear-gradient(90deg, #09080fd1 0%, #09080f8a 32%, #09080f15 65%),
    linear-gradient(0deg, #09080f 0%, #09080f00 24%, #09080f00 78%, #09080f66);
}
.hero-content {
  text-align: left;
  margin-top: 70px;
}
.hero-intro {
  justify-content: flex-start;
}
.hero-actions {
  justify-content: flex-start;
}
.hero h1 {
  font-size: clamp(42px, 4.7vw, 68px);
  line-height: 1.14;
}
.hero-description {
  max-width: 440px;
}
.hero .eyebrow {
  background: #120c2070;
}
.hero-footer {
  color: #b5a8c3;
}
@media (max-width: 1000px) and (min-width: 701px) {
  .hero-content {
    width: 88%;
  }
  .hero h1 {
    font-size: clamp(40px, 5vw, 54px);
  }
  .hero-intro {
    font-size: 25.35px;
  }
  .hero-actions {
    gap: 20px;
  }
  .hero .text-link {
    font-size: 16.9px;
  }
  .hero-description {
    font-size: 21.97px;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, #09080fd9, #09080f70 48%, #09080f15 80%),
      linear-gradient(0deg, #09080f, transparent 30%, transparent 80%, #09080f66);
  }
}
@media (max-width: 700px) {
  .hero {
    align-items: flex-start;
    min-height: 850px;
    max-height: 1050px;
  }
  .hero-content {
    width: 87%;
    margin-top: 135px;
  }
  .hero-intro {
    font-size: 20.28px;
    gap: 8px;
    margin: 26px 0 20px;
  }
  .hero-avatar {
    width: 28px;
    height: 28px;
    font-size: 15.21px;
  }
  .hero h1 {
    font-size: clamp(36px, 8.5vw, 52px);
    letter-spacing: -1.6px;
  }
  .hero-description {
    font-size: 18.59px;
    line-height: 1.85;
    max-width: 310px;
  }
  .hero-actions {
    align-items: flex-start;
    gap: 20px;
    margin-top: 24px;
  }
  .forest {
    inset: 0;
    background-color: #13101d;
    background-size: auto 72%;
    background-position: 76% bottom;
  }
  .hero-shade {
    background: linear-gradient(
      180deg,
      #09080ff0 0%,
      #09080fd9 20%,
      #09080f8a 39%,
      #09080f12 62%,
      #09080f12 80%,
      #09080f 100%
    );
  }
  .hero-footer {
    bottom: 22px;
  }
  .hero .eyebrow {
    font-size: 10.14px;
    letter-spacing: 1px;
  }
  .hero .text-link {
    font-size: 16.9px;
  }
}

/* Круглая аватарка первого экрана. */
img.hero-avatar {
  object-fit: cover;
  object-position: center 30%;
}

/* Портрет: сохраняем пропорции рамки и обрезаем края фотографии. */
.portrait-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  object-position: center 40%;
}

@media (max-width: 600px) {
  .portrait-photo {
    aspect-ratio: 1 / 1.05;
  }
}
