 /* ============================================================
   SECTIONS — Hero, About, Skills, Experience, Projects,
               Education, Contact, Footer
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
#hero,
.hero {
  min-height: 100vh;
  position: relative;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero inner: 2-column grid for content + visual */
.hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start; /* не растягивать badge, pills, кнопки до полной ширины */
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero__role {
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--text-secondary);
  font-weight: 300;
}

.hero__tagline {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__meta-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* hero__meta-pill (HTML) = hero__meta-item (CSS) */
.hero__meta-pill,
.hero__meta-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter 300ms ease;
}

.hero__photo-card:hover .hero__photo {
  filter: saturate(1.05);
}

.hero__aurora-canvas,
.aurora-canvas,
#aurora-canvas {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Hero inner above aurora canvas */
.hero__inner {
  position: relative;
  z-index: 1;
}

/* hero__photo-card = photo wrapper in HTML */
.hero__photo-card,
.hero__photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero__photo-card figure,
.hero__photo-wrapper figure {
  width: 100%;
  height: 100%;
}

/* Световой блик поверх фото при tilt — использует --mx/--my из tilt.js */
.hero__photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 70%
  );
  background-size: 250% 250%;
  background-position: var(--mx, 50%) var(--my, 50%);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 300ms ease;
}

.hero__photo-card:hover::before {
  opacity: 1;
}

/* Шум поверх фото — локальный noise overlay в стиле общего дизайна */
.hero__photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* Hero photo caption */
.hero__photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(12, 12, 20, 0.9) 0%, transparent 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero__photo-stack {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* tilt-depth-1: elevated element in tilt card */
.tilt-depth-1 {
  transform: translateZ(20px);
}

/* scroll-indicator (HTML class) = hero__scroll-indicator (CSS) */
.scroll-indicator,
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 20px;
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════ */
.about__text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 48px;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about__card {
  --card-accent: #6366f1;
  --card-accent-soft: rgba(99, 102, 241, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 220px;
  padding: 32px 28px 28px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(22, 24, 38, 0.96) 0%, rgba(13, 15, 24, 0.92) 100%),
    radial-gradient(circle at top right, var(--card-accent-soft), transparent 60%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -24px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  isolation: isolate;
}

.about__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--card-accent) 50%, transparent 100%);
  opacity: 0.85;
}

.about__card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -36px;
  bottom: -54px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-accent-soft) 0%, transparent 72%);
  pointer-events: none;
  z-index: -1;
}

.about__card--architecture {
  --card-accent: #6366f1;
  --card-accent-soft: rgba(99, 102, 241, 0.18);
}

.about__card--production {
  --card-accent: #f59e0b;
  --card-accent-soft: rgba(245, 158, 11, 0.16);
}

.about__card--growth {
  --card-accent: #10b981;
  --card-accent-soft: rgba(16, 185, 129, 0.16);
}

.about__card-meta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--card-accent);
}

.about__card-meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 0 0 12px var(--card-accent-soft);
}

.about__card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--accent);
}

.about__card-title,
.about__card h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.about__card-text,
.about__card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   SKILLS — Bento Grid
   ══════════════════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skills__grid {
  grid-auto-flow: dense;
}

.bento-cell {
  --reveal-visible-transform: translate3d(0, 0, 0);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  transition: all var(--duration-base) var(--ease-out);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.skill-card {
  --skill-accent: rgba(99, 102, 241, 0.14);
  min-height: 132px;
  background:
    linear-gradient(180deg, rgba(18, 20, 32, 0.96) 0%, rgba(12, 14, 24, 0.88) 100%),
    radial-gradient(circle at top right, var(--skill-accent), transparent 58%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -24px 32px rgba(0, 0, 0, 0.12);
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.72) 50%, transparent 100%);
  opacity: 0.75;
}

.skill-card--framework {
  --skill-accent: rgba(99, 102, 241, 0.16);
}

.skill-card--data {
  --skill-accent: rgba(16, 185, 129, 0.14);
}

.skill-card--ops {
  --skill-accent: rgba(245, 158, 11, 0.14);
}

.bento-cell--featured {
  grid-column: span 2;
  padding: 32px;
}

.bento-cell:hover {
  border-color: var(--border-hover);
  --reveal-visible-transform: translateY(-4px) scale(1.02);
  transform: var(--reveal-visible-transform);
  box-shadow: var(--glow);
}

/* Radial highlight on hover via CSS vars --mx --my (set by JS tilt) */
.bento-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 120px at var(--mx, 50%) var(--my, 50%),
    rgba(99, 102, 241, 0.07) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
  pointer-events: none;
}

.bento-cell:hover::after {
  opacity: 1;
}

.bento-cell__icon {
  font-size: 36px;
  color: var(--accent);
  transition: transform var(--duration-base) var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-cell__icon svg {
  width: 36px;
  height: 36px;
  fill: var(--accent);
}

.bento-cell:hover .bento-cell__icon {
  transform: scale(1.15);
}

.bento-cell--featured .bento-cell__icon {
  font-size: 48px;
}

.bento-cell--featured .bento-cell__icon svg {
  width: 48px;
  height: 48px;
}

.bento-cell__label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.bento-cell--featured .bento-cell__label {
  font-size: 15px;
}

/* skill-card__* aliases (HTML uses these, CSS uses bento-cell__*) */
.skill-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.skill-card__meta {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.bento-cell--featured.skill-card {
  min-height: 152px;
}

.bento-cell--featured .skill-card__inner {
  align-items: flex-start;
  text-align: left;
}

.skill-card__icon,
.bento-cell__icon {
  font-size: 36px;
  color: var(--accent);
  transition: transform var(--duration-base) var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-card__icon svg,
.bento-cell__icon svg {
  width: 36px;
  height: 36px;
  fill: var(--accent);
}

.skill-card__label,
.bento-cell__label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.bento-cell--featured .skill-card__icon {
  font-size: 48px;
}

.bento-cell--featured .skill-card__icon svg {
  width: 48px;
  height: 48px;
}

.bento-cell--featured .skill-card__label {
  font-size: 15px;
}

.bento-cell:hover .skill-card__icon {
  transform: scale(1.15);
}

/* tilt-inner: wrapper inside data-tilt elements */
.tilt-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════════════════
   EXPERIENCE — Timeline
   ══════════════════════════════════════════════════════════ */
.timeline {
  --timeline-axis-offset: 28px;
  --timeline-axis-size: 18px;
  --timeline-content-gap: 28px;
  position: relative;
  max-width: 920px;
  margin-top: 32px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.experience__intro {
  max-width: 720px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: calc((var(--timeline-axis-offset) + var(--timeline-axis-size)) / 2 - 1px);
  top: var(--timeline-line-top, 0px);
  width: 2px;
  height: var(--timeline-line-height, 100%);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  pointer-events: none;
}

.timeline__svg {
  position: absolute;
  left: calc((var(--timeline-axis-offset) + var(--timeline-axis-size)) / 2 - 1px);
  top: var(--timeline-line-top, 0px);
  width: 2px;
  height: var(--timeline-line-height, 100%);
  pointer-events: none;
}

.timeline__path {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.35));
}

.timeline-item {
  position: relative;
  /* margin-bottom убран — используется gap в .timeline (flex) */
  padding-left: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -52px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
}

.timeline-item.is-current::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.timeline-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.timeline-item__title {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.timeline-item__period {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.timeline-item__company {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-item__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.timeline-item__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

/* ── Timeline BEM aliases (HTML uses __double-underscore) ─── */
.timeline__item,
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--timeline-axis-offset) + var(--timeline-axis-size)) minmax(0, 1fr);
  column-gap: var(--timeline-content-gap);
  align-items: start;
  padding-left: 0;
  --reveal-visible-transform: translate3d(0, 0, 0);
}

/* timeline__dot — real element in HTML (vs ::before pseudo in CSS) */
.timeline__dot {
  position: relative;
  grid-column: 1;
  justify-self: center;
  width: var(--timeline-axis-size);
  height: var(--timeline-axis-size);
  margin-top: 10px;
  border-radius: 50%;
  border: 2px solid rgba(129, 140, 248, 0.82);
  background: linear-gradient(180deg, rgba(14, 16, 28, 0.98) 0%, rgba(9, 10, 18, 0.92) 100%);
  box-shadow:
    0 0 0 6px rgba(99, 102, 241, 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 2;
}

.timeline__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  width: calc(var(--timeline-content-gap) - 8px);
  height: 1px;
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.8) 0%, rgba(129, 140, 248, 0.15) 100%);
  transform: translateY(-50%);
  pointer-events: none;
}

.timeline__dot.is-active {
  background: radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.92) 0%, rgba(99, 102, 241, 0.95) 58%, rgba(79, 70, 229, 0.88) 100%);
  border-color: rgba(199, 210, 254, 0.95);
  box-shadow:
    0 0 0 7px rgba(99, 102, 241, 0.1),
    0 0 22px rgba(99, 102, 241, 0.38),
    0 0 44px rgba(99, 102, 241, 0.18);
}

.timeline__content {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

 .timeline__card {
   position: relative;
   display: grid;
   grid-template-columns: minmax(0, 1fr);
   grid-auto-rows: min-content;
   gap: 18px;
   background:
     linear-gradient(160deg, rgba(21, 24, 38, 0.9) 0%, rgba(14, 17, 29, 0.78) 52%, rgba(10, 12, 22, 0.64) 100%),
     radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 54%),
     radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 48%);
   border: 1px solid rgba(148, 163, 184, 0.12);
   border-radius: var(--radius-lg);
   padding: 28px 30px 26px;
   min-width: 0;
   overflow: hidden;
   isolation: isolate;
   backdrop-filter: blur(18px);
   -webkit-backdrop-filter: blur(18px);
   box-shadow:
     inset 0 1px 0 rgba(255, 255, 255, 0.05),
     inset 0 -16px 26px rgba(4, 6, 14, 0.12),
     0 18px 42px rgba(5, 8, 18, 0.18);
   transition:
     border-color var(--duration-base) var(--ease-out),
     box-shadow var(--duration-base) var(--ease-out),
     transform var(--duration-base) var(--ease-out),
     background var(--duration-base) var(--ease-out);
 }
 
 .timeline__card::before {
   content: "";
   position: absolute;
   top: 0;
   left: 28px;
   right: 28px;
   height: 1px;
   background: linear-gradient(90deg, transparent 0%, rgba(129, 140, 248, 0.82) 50%, transparent 100%);
   opacity: 0.72;
 }
 
 .timeline__card::after {
   content: "";
   position: absolute;
   inset: 0;
   border-radius: inherit;
   background:
     linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.045) 38%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.035) 62%, transparent 82%),
     radial-gradient(circle 180px at 100% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 72%);
   background-size: 220% 220%, auto;
   background-position: var(--mx, 50%) var(--my, 50%), top right;
   pointer-events: none;
   z-index: 0;
   opacity: 0.7;
 }
 
 .timeline__card:hover {
   border-color: rgba(129, 140, 248, 0.24);
   transform: translateY(-4px);
   background:
     linear-gradient(160deg, rgba(24, 27, 42, 0.94) 0%, rgba(15, 18, 31, 0.82) 52%, rgba(10, 12, 22, 0.68) 100%),
     radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.2) 0%, transparent 56%),
     radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
   box-shadow:
     inset 0 1px 0 rgba(255, 255, 255, 0.06),
     0 24px 52px rgba(7, 10, 22, 0.24);
 }


.timeline__card-header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-items: start;
  padding: 16px 18px 14px;
  margin: -6px -8px 0;
  border: 1px solid rgba(129, 140, 248, 0.12);
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.018) 100%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.1) 0%, transparent 62%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(7, 10, 22, 0.08);
}

.timeline__role,
.timeline-item__title {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0;
}

.timeline__company,
.timeline-item__company {
  font-size: 14px;
  color: #c7d2fe;
  font-weight: 500;
}

.timeline__period,
.timeline-item__period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  white-space: nowrap;
}

.timeline__badge,
.timeline-item__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--accent-emerald);
}

.timeline__badge--active {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.24);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.08);
}

.timeline__description,
.timeline-item__desc {
  grid-row: 2;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
  position: relative;
  z-index: 1;
  max-width: 72ch;
}

/* Experience Spoiler */
.experience__spoiler {
  grid-row: 3;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 0;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.62) 0%, rgba(11, 12, 20, 0.46) 100%);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.experience__spoiler[open] {
  border-color: rgba(99, 102, 241, 0.2);
  background: linear-gradient(180deg, rgba(10, 12, 22, 0.76) 0%, rgba(10, 12, 21, 0.58) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.experience__spoiler summary {
  position: relative;
  padding: 14px 18px 14px 44px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.35;
  color: #c7d2fe;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background var(--duration-fast);
  list-style: none;
  user-select: none;
}

.experience__spoiler summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.experience__spoiler summary::marker {
  display: none;
}

.experience__spoiler summary::-webkit-details-marker {
  display: none;
}

.experience__spoiler summary::before {
  content: '▸';
  position: absolute;
  left: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.14);
  transform: translateY(-50%);
  transition: transform var(--duration-fast);
  color: var(--accent);
  font-size: 11px;
}

.experience__spoiler[open] summary::before {
  transform: translateY(-50%) rotate(90deg);
}

.experience__spoiler-label {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
}

.experience__spoiler__content {
  padding: 0 16px 16px;
}

.experience__spoiler ul {
  list-style: none;
  padding: 0 18px 18px;
  margin: 0;
  display: grid;
  gap: 0;
}

.experience__spoiler li {
  padding: 12px 0 12px 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  position: relative;
}

.experience__spoiler li:last-child {
  border-bottom: none;
}

.experience__spoiler li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 21px;
  width: 10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.92) 0%, rgba(129, 140, 248, 0.18) 100%);
}

/* ══════════════════════════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════════════════════════ */
.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.project-card {
  --project-glow: rgba(99, 102, 241, 0.16);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      110deg,
      transparent 24%,
      rgba(255, 255, 255, 0.04) 38%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(255, 255, 255, 0.04) 62%,
      transparent 76%
    ),
    radial-gradient(circle at top right, var(--project-glow), transparent 58%);
  background-size: 220% 220%, auto;
  background-position: var(--light-x, 50%) var(--light-y, 50%), top right;
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--glow-strong);
}

.project-card .tilt-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  grid-template-areas:
    "metric title"
    "metric description"
    "metric stack"
    "metric actions";
  align-items: start;
  gap: 0 32px;
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.project-card__title {
  grid-area: title;
  align-self: end;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}

.project-card__metric {
  grid-area: metric;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-amber);
  text-align: left;
  flex-shrink: 0;
  min-height: 100%;
  margin-bottom: 0;
  padding-right: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card__metric small {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
  font-weight: 400;
}

/* project-card__description = project-card__desc (HTML vs CSS naming) */
.project-card__description,
.project-card__desc {
  grid-area: description;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* project-card__metric-number, metric-label (HTML uses spans, CSS used small) */
.project-card__metric-number {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-amber);
  display: block;
  line-height: 1.1;
}

.project-card__metric-label {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
  font-weight: 400;
  margin-top: 2px;
}

/* project-card__achievements-title (HTML) = .project-card__achievements h4 (CSS) */
.project-card__achievements-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.project-card__stack {
  grid-area: stack;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.project-card__actions {
  grid-area: actions;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card__achievements-trigger {
  width: auto;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.06);
  color: #c7d2fe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-card__achievements-trigger:hover {
  border-color: rgba(129, 140, 248, 0.34);
  background: rgba(99, 102, 241, 0.1);
  color: var(--text);
}

.project-card__achievements-trigger:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.8);
  outline-offset: 3px;
}

.project-card__tech,
.tech-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.project-card__achievements {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.project-card__achievements h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.project-card__achievements ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card__achievements li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.project-card__achievements li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.project-modal[hidden] {
  display: none;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 32px));
  max-height: min(85vh, 800px);
  overflow: auto;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 20, 33, 0.98) 0%, rgba(11, 13, 23, 0.96) 100%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 56%);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.project-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.project-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.project-modal__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-modal__eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c7d2fe;
}

.project-modal__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  color: var(--text);
}

.project-modal__description {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 60ch;
}

.project-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.project-modal__list li {
  position: relative;
  padding: 16px 0 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.project-modal__list li::before {
  content: '▹';
  position: absolute;
  top: 16px;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   EDUCATION
   ══════════════════════════════════════════════════════════ */
.education__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  position: relative;
}

.education__card {
  --education-accent: rgba(99, 102, 241, 0.78);
  --education-accent-soft: rgba(99, 102, 241, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  padding: 30px 32px 28px;
  background:
    linear-gradient(180deg, rgba(17, 19, 31, 0.96) 0%, rgba(11, 13, 22, 0.92) 100%),
    radial-gradient(circle at top right, var(--education-accent-soft), transparent 58%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -18px 28px rgba(0, 0, 0, 0.12);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.education__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--education-accent) 50%, transparent 100%);
  opacity: 0.8;
}

.education__card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -52px;
  top: -58px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--education-accent-soft) 0%, transparent 72%);
  pointer-events: none;
  z-index: -1;
}

.education__card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 40px rgba(10, 12, 24, 0.28);
}

.education__card--practice {
  --education-accent: rgba(16, 185, 129, 0.78);
  --education-accent-soft: rgba(16, 185, 129, 0.16);
}

.education__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--education-accent);
}

.education__meta::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--education-accent);
  box-shadow: 0 0 12px var(--education-accent-soft);
}

.education__institution,
.education__card h3 {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.education__period {
  position: relative;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-left: 14px;
}

.education__period::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--education-accent);
  transform: translateY(-50%);
}

.education__description,
.education__card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   BOOKSHELF — книжная карусель в секции education
   ══════════════════════════════════════════════════════════ */
.bookshelf {
  margin-top: 56px;
  position: relative;
}

.bookshelf__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 32px;
}

.bookshelf__header-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}

.bookshelf__title {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.bookshelf__subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Stage: карусель + кнопки навигации */
.bookshelf__stage {
  position: relative;
}

.bookshelf__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.bookshelf__track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Book Card */
.book-card {
  --book-color: #6366f1;
  --book-color-soft: rgba(99, 102, 241, 0.18);
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 52px 180px minmax(0, 1fr);
  min-height: 260px;
  background:
    linear-gradient(145deg, rgba(17, 19, 32, 0.97) 0%, rgba(11, 13, 22, 0.94) 100%),
    radial-gradient(circle at top right, var(--book-color-soft), transparent 55%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 20px 48px rgba(0, 0, 0, 0.22);
  transition:
    border-color 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out);
}

.book-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 52px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--book-color) 0%, transparent 60%);
  opacity: 0.7;
  z-index: 1;
}

/* Корешок книги — левая узкая полоска */
.book-card__spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: linear-gradient(180deg, var(--book-color) 0%, rgba(0,0,0,0.35) 100%);
  position: relative;
  flex-shrink: 0;
}

.book-card__spine::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 100%);
}

.book-card__spine-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.book-card__spine-bar {
  flex: 1;
  width: 1px;
  background: rgba(255,255,255,0.15);
  margin: 8px 0;
  align-self: center;
}

.book-card__spine-icon {
  font-size: 16px;
  opacity: 0.8;
}

/* Обложка — декоративный блок с иконкой */
.book-card__cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%),
    radial-gradient(circle at 60% 40%, var(--book-color-soft), transparent 65%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 16px;
  overflow: hidden;
}

.book-card__cover-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--book-color-soft) 0%, transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.book-card__cover-icon {
  position: relative;
  z-index: 1;
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 0 18px var(--book-color));
}

.book-card__cover-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--book-color);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--book-color-soft);
  border-radius: 999px;
  background: rgba(0,0,0,0.3);
}

/* Тело карточки */
.book-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 32px;
  min-width: 0;
}

.book-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--book-color);
}

.book-card__meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--book-color);
  box-shadow: 0 0 10px var(--book-color-soft);
  flex-shrink: 0;
}

.book-card__title {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.book-card__author {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--book-color);
  opacity: 0.85;
  letter-spacing: 0.05em;
}

.book-card__note {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin: 0;
  max-width: 58ch;
}

.book-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.book-card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  transition: border-color 200ms, color 200ms;
}

.book-card:hover .book-card__tag {
  border-color: var(--book-color-soft);
  color: var(--book-color);
}

/* Навигационные кнопки */
.bookshelf__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 20, 0.82);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition:
    border-color 200ms var(--ease-out),
    background 200ms var(--ease-out),
    color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    transform 200ms var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bookshelf__nav:hover {
  border-color: rgba(99, 102, 241, 0.36);
  background: rgba(99, 102, 241, 0.12);
  color: var(--text);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.18);
  transform: translateY(-50%) scale(1.08);
}

.bookshelf__nav:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.8);
  outline-offset: 3px;
}

.bookshelf__nav--prev {
  left: -22px;
}

.bookshelf__nav--next {
  right: -22px;
}

/* Dots */
.bookshelf__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.bookshelf__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.36);
  background: transparent;
  cursor: pointer;
  transition:
    background 250ms var(--ease-out),
    border-color 250ms var(--ease-out),
    width 250ms var(--ease-out),
    box-shadow 250ms var(--ease-out),
    transform 250ms var(--ease-out);
  padding: 0;
  flex-shrink: 0;
}

.bookshelf__dot:hover {
  background: rgba(99, 102, 241, 0.32);
  border-color: rgba(99, 102, 241, 0.6);
  transform: scale(1.25);
}

.bookshelf__dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.bookshelf__dot:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.8);
  outline-offset: 3px;
}

/* ══════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════ */
.contact__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.contact-card {
  --contact-accent: rgba(99, 102, 241, 0.72);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 156px;
  padding: 22px 24px;
  background:
    linear-gradient(180deg, rgba(16, 18, 30, 0.96) 0%, rgba(12, 14, 24, 0.92) 100%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 62%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      115deg,
      transparent 26%,
      rgba(255, 255, 255, 0.03) 42%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0.03) 58%,
      transparent 74%
    ),
    radial-gradient(circle 120px at var(--glow-x, 50%) var(--glow-y, 50%), rgba(99, 102, 241, 0.12) 0%, transparent 72%);
  background-size: 220% 220%, auto;
  background-position: var(--glow-x, 50%) var(--glow-y, 50%), center;
  pointer-events: none;
  opacity: 0.72;
}

.contact-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--contact-accent) 50%, transparent 100%);
  opacity: 0.78;
}

.contact-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.contact-card__icon {
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-card__meta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.contact-card__meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--contact-accent);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.22);
}

.contact-card__label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-card__value {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
