:root {
  --bg: #fbfbfd;
  --panel: rgba(255, 255, 255, 0.9);
  --ink: #18171f;
  --muted: #5f6272;
  --line: #e6e7ee;
  --accent: #6d55ff;
  --accent-soft: #f1edff;
  --warm: #ff9d6c;
  --shadow: 0 24px 48px rgba(34, 27, 77, 0.08);
  --content-width: min(1080px, calc(100vw - 2rem));
  --sans: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 88%, rgba(255, 157, 108, 0.25), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(109, 85, 255, 0.2), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 23, 31, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 23, 31, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
}

a {
  color: inherit;
}

.container {
  width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 253, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(24, 23, 31, 0.06);
}

.site-header-inner {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.site-nav a,
.section-label,
.eyebrow,
.note-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

.brand {
  text-decoration: none;
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  position: relative;
  padding-bottom: 0.2rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--ink);
}

.section {
  padding: 5.5rem 0 0;
}

.site-footer {
  padding-bottom: 2.5rem;
}

.hero {
  padding-top: 7rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.55fr);
  gap: 2rem;
  align-items: end;
}

.eyebrow,
.section-label,
.note-kicker {
  color: var(--accent);
  display: inline-block;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(3.6rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 8ch;
  margin-top: 0.8rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 13ch;
  margin-top: 0.7rem;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

p,
li {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.hero-tagline {
  font-size: 1.26rem;
  color: var(--ink);
  max-width: 38rem;
  margin: 1.4rem 0 0;
}

.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
  padding-bottom: 0.4rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-height: 3.1rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.thinking-card:hover,
.expertise-card:hover,
.snapshot-card:hover,
.portrait-card:hover,
.strengths-card:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(109, 85, 255, 0.2);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading-wide h2 {
  max-width: 15ch;
}

.snapshot-grid,
.expertise-grid,
.thinking-grid {
  display: grid;
  gap: 1rem;
}

.snapshot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.snapshot-card,
.expertise-card,
.thinking-card,
.portrait-card,
.strengths-card,
.contact-panel,
.note-article {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.snapshot-card,
.expertise-card,
.portrait-card,
.strengths-card,
.contact-panel {
  border-radius: 28px;
}

.snapshot-card {
  min-height: 13.25rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.snapshot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--warm), var(--accent));
}

.snapshot-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.snapshot-card p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.48;
}

.expertise-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.expertise-card {
  padding: 1.5rem;
  min-height: 16rem;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.expertise-card:hover {
  border-color: rgba(109, 85, 255, 0.24);
  background: rgba(245, 240, 255, 0.95);
}

.experience-list {
  max-width: 54rem;
}

.experience-entry {
  padding: 1.2rem 0 1.45rem;
  border-top: 1px solid var(--line);
}

.experience-entry:last-child {
  border-bottom: 1px solid var(--line);
}

.experience-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.experience-head h3 {
  margin-bottom: 0;
  color: var(--ink);
}

.experience-emoji {
  font-size: 1.25rem;
  line-height: 1.2;
}

.experience-entry p {
  margin: 0.6rem 0 0 2rem;
  max-width: 44rem;
}

.thinking-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thinking-card {
  border-radius: 28px;
  padding: 1.5rem;
  text-decoration: none;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.thinking-card:hover {
  border-color: rgba(109, 85, 255, 0.24);
}

.thinking-card h3 {
  max-width: 14ch;
}

.note-link {
  color: var(--accent);
  font-weight: 700;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.about-copy {
  max-width: 40rem;
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-side {
  display: grid;
  gap: 1rem;
}

.portrait-card,
.strengths-card {
  padding: 1.5rem;
}

.portrait-card {
  min-height: 32rem;
  padding: 0;
  overflow: hidden;
}

.portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.strengths-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.contact-panel {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(19, 24, 33, 0.08);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(19, 24, 33, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 85, 255, 0.24);
  box-shadow:
    0 18px 42px rgba(19, 24, 33, 0.08),
    0 6px 18px rgba(109, 85, 255, 0.08);
}

.contact-button:focus-visible {
  outline: none;
  border-color: rgba(109, 85, 255, 0.32);
  box-shadow:
    0 0 0 4px rgba(109, 85, 255, 0.1),
    0 18px 42px rgba(19, 24, 33, 0.08);
}

.telegram-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 157, 108, 0.12), rgba(109, 85, 255, 0.12));
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(19, 24, 33, 0.05);
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.telegram-handle {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  padding-left: 0.9rem;
}

.contact-panel p {
  margin: 0;
  max-width: 26rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.note-page {
  background:
    radial-gradient(circle at 14% 88%, rgba(255, 157, 108, 0.22), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(109, 85, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

.note-shell {
  width: min(760px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
  position: relative;
  z-index: 1;
}

.note-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.back-link {
  text-decoration: none;
  color: var(--muted);
}

.note-article {
  border-radius: 32px;
  padding: 2rem;
}

.note-article h1 {
  max-width: 11ch;
}

.note-lead {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: var(--ink);
}

.note-article p + p {
  margin-top: 1rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

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

@media (max-width: 960px) {
  .hero-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .snapshot-grid,
  .expertise-grid,
  .thinking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1rem;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    min-height: auto;
    padding: 1rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .snapshot-grid,
  .expertise-grid,
  .thinking-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-grid {
    gap: 0.75rem;
  }

  .snapshot-card {
    min-height: auto;
    padding: 1.05rem 1rem 1rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
  }

  .snapshot-card::before {
    height: 3px;
  }

  .snapshot-emoji {
    font-size: 1.2rem;
    margin-top: 0.05rem;
  }

  .snapshot-card p {
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .experience-entry p {
    margin-left: 0;
  }

  .footer-meta,
  .note-topline {
    display: grid;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  h2 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
