:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-dark: #111111;
  --text: #151515;
  --muted: rgba(21, 21, 21, 0.66);
  --line: rgba(21, 21, 21, 0.08);
  --gold: #b58c54;
  --plum: #6c4f63;
  --clay: #a65e4d;
  --shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
  --shadow-soft: 0 12px 28px rgba(17, 17, 17, 0.05);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 999;
  padding: 12px 16px;
  border-radius: 999px;
  background: #111111;
  color: #fffdf7;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 14%, rgba(181, 140, 84, 0.12), transparent 18%),
    radial-gradient(circle at 86% 10%, rgba(108, 79, 99, 0.1), transparent 20%),
    radial-gradient(circle at 76% 84%, rgba(166, 94, 77, 0.08), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f8f3ea 48%, #efe5d4 100%);
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 21, 21, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 21, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.12;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.25));
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
}

section {
  scroll-margin-top: 110px;
}

.site-header,
main,
.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 10px 0 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 8px -14px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(21, 21, 21, 0.05);
  box-shadow: var(--shadow-soft);
  z-index: -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding-left: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(145deg, #171717, #0b0b0b);
  color: #fffdf7;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-text {
  display: grid;
  gap: 4px;
}

.brand-text strong,
.brand-text small,
.eyebrow,
.tag-card span,
.side-card span,
.profile-panel__top span,
.catalog-panel span,
.project-card span,
.education-card span,
.quote-card span,
.site-footer p:first-child {
  letter-spacing: 0.12em;
}

.brand-text strong {
  font-size: 0.98rem;
}

.brand-text small,
.eyebrow,
.tag-card span,
.side-card span,
.profile-panel__top span,
.catalog-panel span,
.project-card span,
.education-card span,
.quote-card span,
.site-footer p:first-child {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.74rem;
}

.eyebrow--icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.eyebrow--icon svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 10px;
}

.site-nav a {
  color: rgba(21, 21, 21, 0.72);
  transition: color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--plum);
  transform: translateY(-1px);
  background: rgba(108, 79, 99, 0.08);
}

.cta-link {
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(145deg, #7a5a70, #5f4557 60%, #463240);
  color: #fffdf7 !important;
  border: 1px solid rgba(108, 79, 99, 0.22);
  box-shadow: 0 14px 24px rgba(108, 79, 99, 0.2);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(108, 79, 99, 0.16);
  background: linear-gradient(145deg, rgba(108, 79, 99, 0.16), rgba(255, 255, 255, 0.94));
  border-radius: 16px;
  gap: 5px;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--plum);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 16px;
  align-items: start;
}

.hero-copy,
.hero-photo,
.side-card,
.panel,
.catalog-panel,
.project-card,
.education-card,
.quote-card,
.manifesto-card,
.contact-card {
  border: 1px solid rgba(21, 21, 21, 0.06);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 110% 0%, rgba(181, 140, 84, 0.11), transparent 26%),
    rgba(255, 255, 255, 0.94);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 79, 99, 0.15), rgba(108, 79, 99, 0) 68%);
  pointer-events: none;
}

.hero-copy h1,
.section-heading h2,
.project-card h3,
.education-card h3,
.quote-card p:first-child,
.manifesto-card h2,
.contact-card h2,
.side-card strong,
.profile-panel strong,
.hero-photo figcaption strong {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--plum);
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.95rem, 6vw, 5.8rem);
}

.hero-copy h1 span {
  display: block;
  margin-top: 12px;
  color: var(--plum);
  font-size: 0.42em;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lead,
.panel p,
.project-card p,
.education-card p,
.quote-card span,
.manifesto-card p,
.contact-card p,
.hero-photo figcaption p,
.side-card p,
.profile-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.01rem;
}

.detail-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.detail-list li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.lead {
  max-width: 58ch;
  margin-top: 16px;
}

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

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

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

.button--icon {
  gap: 10px;
}

.button--icon svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.button.primary {
  background: linear-gradient(145deg, #85617a, #6c4f63 55%, #4b3445);
  color: #fffdf7;
  box-shadow: 0 18px 34px rgba(108, 79, 99, 0.28);
}

.button.secondary {
  border-color: rgba(108, 79, 99, 0.28);
  background: linear-gradient(145deg, rgba(108, 79, 99, 0.14), rgba(181, 140, 84, 0.12));
  color: var(--plum);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 10px 22px rgba(108, 79, 99, 0.08);
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.tag-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
}

.tag-card:nth-child(1) {
  background: rgba(181, 140, 84, 0.09);
}

.tag-card:nth-child(2) {
  background: rgba(108, 79, 99, 0.07);
}

.tag-card:nth-child(3) {
  background: rgba(166, 94, 77, 0.08);
}

.tag-card p {
  margin-top: 8px;
  color: var(--text);
  line-height: 1.55;
}

.hero-visual {
  display: grid;
  gap: 12px;
}

.hero-photo {
  position: relative;
  margin: 0;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #ffffff 0%, #f7f6f3 100%);
  box-shadow: var(--shadow);
}

.hero-photo--featured img {
  object-position: center 20%;
}

.hero-photo img {
  height: 100%;
  object-fit: cover;
}

.hero-photo figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(21, 21, 21, 0.05);
}

.hero-photo figcaption span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.hero-photo figcaption strong {
  display: block;
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.hero-side {
  display: grid;
  gap: 12px;
}

.hero-side--stacked {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-side--stacked > :first-child {
  grid-column: 1 / -1;
}

.side-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
}

.photo-open {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.photo-open img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: 62% center;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  flex: none;
}

.photo-open strong,
.photo-open p {
  display: block;
}

.photo-open p {
  margin-top: 8px;
}

.side-card--profile {
  padding: 14px;
}

.side-card--note {
  background: rgba(181, 140, 84, 0.08);
}

.side-card strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 1.22rem;
}

.section {
  padding: 4px 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.section-heading h2,
.contact-card h2,
.manifesto-card h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
}

#about,
#channels,
#projects,
#education,
#testimonials,
.section--manifesto,
#contact {
  width: 100%;
}

.split-grid,
.catalog-grid,
.project-grid,
.education-grid,
.testimony-grid {
  display: grid;
  gap: 14px;
}

.split-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
}

.panel p {
  margin-bottom: 14px;
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel-soft {
  background: rgba(181, 140, 84, 0.06);
}

.profile-panel {
  display: grid;
  gap: 16px;
  background: rgba(108, 79, 99, 0.05);
}

.profile-panel__top strong {
  display: block;
  margin-top: 8px;
  font-size: 1.46rem;
}

.catalog-grid {
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
}

.catalog-panel {
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.catalog-panel--dark {
  background: linear-gradient(180deg, rgba(181, 140, 84, 0.1), rgba(255, 255, 255, 0.96));
}

.catalog-panel--music {
  background: linear-gradient(180deg, rgba(108, 79, 99, 0.07), rgba(255, 255, 255, 0.96));
}

.catalog-panel--coffee {
  background: linear-gradient(180deg, rgba(166, 94, 77, 0.08), rgba(255, 255, 255, 0.96));
}

.catalog-panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.catalog-panel__header svg,
.icon-link svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.catalog-panel__header strong {
  display: block;
  margin-top: 4px;
  font-size: 1.42rem;
  line-height: 1;
  font-weight: 800;
  color: var(--plum);
}

.catalog-panel__header span {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  opacity: 0.74;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(21, 21, 21, 0.06);
  transition: transform 180ms ease, background 180ms ease;
}

.catalog-panel--coffee .icon-link {
  background: rgba(255, 255, 255, 0.98);
}

.icon-link:hover {
  transform: translateY(-3px);
  background: #ffffff;
}

.icon-link--wide {
  grid-column: 1 / -1;
}

.icon-link span {
  font-weight: 700;
  line-height: 1.1;
}

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

.project-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.87);
}

.project-card.accent {
  background: linear-gradient(180deg, rgba(181, 140, 84, 0.08), rgba(255, 255, 255, 0.95));
}

.project-card h3 {
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: 1.42rem;
}

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

.education-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(108, 79, 99, 0.05), rgba(255, 255, 255, 0.94));
}

.education-card h3 {
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: 1.28rem;
}

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

.quote-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(166, 94, 77, 0.06), rgba(255, 255, 255, 0.94));
}

.quote-card p:first-child {
  margin-bottom: 18px;
  font-size: 1.24rem;
  line-height: 1.42;
}

.manifesto-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(181, 140, 84, 0.09), rgba(108, 79, 99, 0.05), rgba(255, 255, 255, 0.96));
}

.manifesto-card p {
  max-width: 72ch;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(181, 140, 84, 0.08), rgba(255, 255, 255, 0.96));
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 34px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.photo-dialog {
  width: min(92vw, 720px);
  padding: 18px;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 36px 90px rgba(17, 17, 17, 0.22);
}

.photo-dialog::backdrop {
  background: rgba(17, 17, 17, 0.62);
  backdrop-filter: blur(8px);
}

.photo-dialog img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 22px;
}

.photo-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(181, 140, 84, 0.62);
  outline-offset: 3px;
}

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

  .hero-visual {
    order: -1;
  }

  .hero-photo {
    min-height: 520px;
  }

  .split-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .education-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .hero-visual {
    order: -1;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(108, 79, 99, 0.14);
    border-radius: 26px;
    background:
      radial-gradient(circle at 8% 0%, rgba(181, 140, 84, 0.12), transparent 24%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 241, 248, 0.96));
    box-shadow: 0 24px 60px rgba(108, 79, 99, 0.16);
    height: calc(100dvh - 94px);
    overflow: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    align-content: start;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: opacity 220ms ease, transform 220ms ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.26);
    backdrop-filter: blur(4px);
    z-index: 15;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    z-index: 30;
  }

  .brand {
    padding-left: 0;
  }

  .site-nav a {
    padding: 14px 14px;
    border-radius: 16px;
    background: rgba(108, 79, 99, 0.05);
  }

  .cta-link {
    text-align: center;
    margin-top: 4px;
  }

  .site-nav .cta-link {
    background: linear-gradient(145deg, #85617a, #6c4f63 55%, #4b3445);
    color: #fffdf7 !important;
    box-shadow: 0 14px 26px rgba(108, 79, 99, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu-toggle {
    position: relative;
    z-index: 31;
  }

  .site-nav {
    z-index: 30;
  }

  body.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
  }

  body.nav-open .menu-toggle span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .menu-toggle span {
    transition: transform 180ms ease, opacity 180ms ease;
    transform-origin: center;
  }

  .hero-copy {
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .hero-copy,
  .hero-photo,
  .side-card,
  .panel,
  .catalog-panel,
  .project-card,
  .education-card,
  .quote-card,
  .contact-card {
    border-radius: 26px;
  }

  .hero {
    gap: 14px;
  }

  .hero-photo {
    min-height: 380px;
  }

  .hero-photo figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
  }

  .hero-photo figcaption strong {
    font-size: 1.02rem;
  }

  .tag-grid,
  .project-grid,
  .education-grid,
  .testimony-grid,
  .icon-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-side--stacked > :first-child {
    grid-column: auto;
  }

  .side-card--profile {
    padding: 12px;
  }

  .photo-open {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .photo-open img {
    width: 100%;
    height: 180px;
  }

  .hero-photo {
    min-height: 380px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

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

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
