/* =============================================================
   Денис Ноздратенко — личный сайт
   Brand palette (per brandbook): black / cream / red #E93223.
   Orange #F38624 is reserved as a personal "character" accent.
   ============================================================= */

:root {
  --bg:        #060606;
  --panel:     #0A0A0C;
  --ink:       #F2F0EB;
  --red:       #E93223;
  --red-hover: #FF4133;
  --orange:    #F38624;

  --hairline:  rgba(242, 240, 235, .10);
  --line:      rgba(242, 240, 235, .14);
  --muted-86:  rgba(242, 240, 235, .86);
  --muted-82:  rgba(242, 240, 235, .82);
  --muted-74:  rgba(242, 240, 235, .74);
  --muted-62:  rgba(242, 240, 235, .62);
  --muted-60:  rgba(242, 240, 235, .60);
  --muted-56:  rgba(242, 240, 235, .56);
  --muted-50:  rgba(242, 240, 235, .50);
  --muted-45:  rgba(242, 240, 235, .45);
  --muted-42:  rgba(242, 240, 235, .42);

  --maxw: 1200px;
  --pad-x: clamp(20px, 5vw, 48px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; }

img { max-width: 100%; }

.shell { position: relative; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  width: 100%;
}

/* Shared eyebrow / section kicker */
.eyebrow {
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .22em;
  color: var(--red);
  text-transform: uppercase;
}

.accent-orange { color: var(--orange); }
.accent-red    { color: var(--red); }

/* =========================== HEADER =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 6, 6, .66);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand__name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav__link {
  font: 500 13px/1 'Montserrat', system-ui, sans-serif;
  letter-spacing: .03em;
  color: var(--muted-60);
  text-decoration: none;
  transition: color .25s;
}
.nav__link:hover { color: var(--ink); }

/* Pill buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: background .25s, border-color .25s, color .25s;
}
.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover { background: var(--red-hover); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(242, 240, 235, .22);
}
.btn--ghost:hover { border-color: rgba(242, 240, 235, .5); }

.btn--sm  { font-size: 13px; padding: 9px 16px; color: #fff; letter-spacing: .01em; }
.btn--lg  { font-size: 15px; padding: 15px 26px; }
.btn__arrow { font-size: 17px; }

/* =========================== HERO =========================== */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vh, 84px) var(--pad-x) clamp(28px, 4vh, 44px);
}
.hero__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero__copy { flex: 1 1 460px; min-width: 300px; }
.hero .eyebrow { display: block; margin-bottom: 26px; }
.hero__title {
  margin: 0;
  font-weight: 800;
  /* «Ноздратенко» — одно длинное неразрывное слово (~7.35px ширины на 1px кегля).
     Размер подобран эмпирически так, чтобы оно держалось в одну строку и не
     наезжало на портрет от 320px до десктопа (колонка ≈ font × 7.35 ≤ её ширины). */
  font-size: clamp(38px, 5.8vw, 84px);
  line-height: .92;
  letter-spacing: -.028em;
}
.hero__lead {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(21px, 2.7vw, 33px);
  line-height: 1.32;
  margin: 30px 0 0;
  max-width: 18ch;
}
.hero__desc {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--muted-60);
  max-width: 44ch;
  margin: 22px 0 0;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero__media {
  flex: 0 1 400px;
  min-width: 260px;
  display: flex;
  justify-content: center;
  position: relative;
}
.hero__media-inner { position: relative; width: 100%; max-width: 420px; }
.hero__portrait {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) contrast(1.04);
}

/* =========================== MARQUEE =========================== */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
}
.marquee__track {
  display: inline-flex;
  animation: nz-marquee 36s linear infinite;
  will-change: transform;
}
.marquee__group {
  font: 500 13px/1 'Montserrat', system-ui, sans-serif;
  letter-spacing: .16em;
  color: var(--muted-42);
  text-transform: uppercase;
}

/* =========================== MANIFESTO =========================== */
.manifesto {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(6,6,6,.94) 0%, rgba(6,6,6,.66) 42%, rgba(6,6,6,.28) 100%),
    url('../assets/face-wide.png');
  background-size: cover;
  background-position: 30% 38%;
  padding: clamp(70px, 12vh, 150px) 0;
}
.manifesto__copy { max-width: 21ch; }
.manifesto .eyebrow { display: block; margin-bottom: 26px; }
.manifesto__head {
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
}
.manifesto__sub {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.5;
  color: var(--muted-82);
  margin: 26px 0 0;
  max-width: 40ch;
}

/* =========================== PROJECTS =========================== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 11vh, 140px) var(--pad-x);
}
.projects__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(40px, 6vh, 72px);
}
.projects__head .eyebrow { display: block; margin-bottom: 18px; }
.section__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.025em;
}
.projects__intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-56);
  max-width: 34ch;
  margin: 0;
}
.projects__list { border-top: 1px solid var(--line); }

.project {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: clamp(26px, 4vh, 40px) 14px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background .35s, border-color .35s, padding-left .35s;
}
.project:hover {
  background: #0C0C0E;
  border-left-color: var(--red);
  padding-left: 24px;
}
.project__name {
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -.01em;
  line-height: 1.05;
}
.project__tag {
  font: 600 12px/1 'Montserrat', sans-serif;
  color: var(--red);
  margin-top: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.project__desc {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.4;
  color: var(--muted-86);
}
.project__arrow {
  font-size: 24px;
  color: var(--muted-50);
  justify-self: end;
}

/* =========================== BOOK =========================== */
.band {
  background: var(--panel);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.book__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 11vh, 140px) var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}
.book__cover-col {
  flex: 0 1 320px;
  min-width: 240px;
  display: flex;
  justify-content: center;
}
.book__cover {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(242,240,235,.08);
}
.book__body { flex: 1 1 380px; min-width: 280px; }
.book__body .eyebrow { display: block; margin-bottom: 20px; }
.book__title {
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0;
}
.book__desc {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--muted-74);
  margin: 24px 0 0;
  max-width: 50ch;
}
.book__status {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-50);
  margin: 18px 0 0;
}
.book__audio {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--orange);
  font-weight: 600;
  margin: 14px 0 0;
  padding: 10px 15px;
  border: 1px solid rgba(243, 134, 36, .4);
  border-radius: 10px;
  background: rgba(243, 134, 36, .08);
}
.book__audio svg { flex: none; }
.book__cta { margin-top: 30px; }

/* =========================== ABOUT =========================== */
.about__head {
  max-width: 24ch;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.about__head .eyebrow { display: block; margin-bottom: 22px; }
.about__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -.025em;
}
.about__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  align-items: end;
}
.about__figure { margin: 0; }
.about__frame { overflow: hidden; border-radius: 4px; }
.about__photo {
  width: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
}
.about__photo--family { height: 380px; object-position: center 30%; }
.about__photo--sup    { height: 440px; object-position: center 28%; }
.about__photo--moto   { height: 300px; object-position: center 60%; }
.about__quote {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.45;
  color: var(--muted-82);
  max-width: 38ch;
  margin: clamp(40px, 6vh, 64px) 0 0;
}

/* =========================== CONTACT =========================== */
.contact { background: var(--panel); border-top: 1px solid var(--hairline); }
.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(76px, 12vh, 150px) var(--pad-x);
}
.contact__head { display: flex; align-items: flex-start; gap: 18px; }
.contact__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(38px, 6.4vw, 92px);
  line-height: .96;
  letter-spacing: -.03em;
}
.contact__lead {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--muted-62);
  max-width: 42ch;
  margin: 26px 0 0;
}
.contact__list {
  margin-top: clamp(44px, 7vh, 80px);
  border-top: 1px solid var(--line);
}
.contact__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3.4vh, 34px) 12px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background .35s, border-color .35s, padding-left .35s;
}
.contact__row:hover {
  background: #101014;
  border-left-color: var(--red);
  padding-left: 22px;
}
.contact__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact__kicker {
  font: 500 11px/1 'Montserrat', system-ui, sans-serif;
  letter-spacing: .16em;
  color: var(--muted-45);
  text-transform: uppercase;
}
.contact__value {
  font-weight: 700;
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: -.02em;
}
.contact__value--email { font-size: clamp(20px, 3vw, 38px); }
.contact__arrow { font-size: 24px; color: var(--muted-50); }

/* =========================== FOOTER =========================== */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.site-footer__left { display: flex; align-items: center; gap: 10px; }
.site-footer span {
  font: 500 12px/1 'Montserrat', system-ui, sans-serif;
  letter-spacing: .04em;
  color: var(--muted-50);
}
.site-footer__tag { color: var(--muted-42) !important; }

/* =========================== ANIMATIONS =========================== */
@keyframes nz-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Scroll reveal — hidden by default, shown when .is-visible is added by JS.
   If JS never runs, a fallback below keeps everything visible. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s cubic-bezier(.16, .84, .3, 1),
    transform .9s cubic-bezier(.16, .84, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Staggered delays for grouped items */
.reveal--d1 { transition-delay: .08s; }
.reveal--d2 { transition-delay: .12s; }
.reveal--d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* No-JS / fallback safety: if the reveal observer is unavailable,
   the .no-js class on <html> forces content visible. */
.no-js .reveal { opacity: 1; transform: none; }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 720px) {
  .project {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .project__arrow { display: none; }
  .contact__arrow { font-size: 20px; }
}
