/* =========================================================
   Евгений Хмельницкий — Deep Black Print
   Fashion-book / Steidl: didone display + light sans body
   ========================================================= */

:root {
  --bg:        #0e0e0e;
  --bg-2:      #141414;
  --paper:    #d9cdb8;   /* warm cream — used only in occasional accents */
  --fg:        #ededed;
  --muted:     #7d7d7d;
  --faint:     #4f4f4f;
  --hairline:  rgba(255, 255, 255, .08);
  --hairline-2: rgba(255, 255, 255, .18);
  --accent:    #d9cdb8;

  --display: 'Playfair Display', 'Didot', 'Times New Roman', serif;
  --body:    'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --maxw: 1440px;
  --pad:  clamp(20px, 5vw, 88px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- typography ---------- */
.micro {
  font-family: var(--body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
}
.h2 i {
  font-style: italic;
}

/* ---------- brand mark ---------- */
.brand {
  position: fixed;
  top: 28px;
  left: clamp(20px, 5vw, 80px);
  z-index: 100;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg);
  mix-blend-mode: difference;
}

/* ---------- top navigation ---------- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--pad);
  background: linear-gradient(180deg, rgba(14,14,14,.7) 0%, rgba(14,14,14,0) 100%);
  transition: background .35s ease, border-color .35s ease, padding .25s ease;
  border-bottom: 1px solid transparent;
}
.topnav.scrolled {
  background: rgba(14,14,14,.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--hairline);
  padding-top: 12px;
  padding-bottom: 12px;
}
.topnav-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.topnav a {
  position: relative;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 6px 0;
  transition: color .25s ease;
}
.topnav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right .3s var(--ease);
}
.topnav a:hover,
.topnav a.is-current {
  color: var(--accent);
}
.topnav a:hover::after,
.topnav a.is-current::after {
  right: 0;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(140px, 14vw, 200px) var(--pad) clamp(60px, 8vw, 100px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(.4) contrast(1.08) brightness(.55);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,14,.45) 0%, rgba(14,14,14,.85) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero-inner .micro {
  margin-bottom: clamp(22px, 3vw, 36px);
  color: var(--accent);
}
h1.masthead {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 11.2vw, 184px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
  margin-bottom: clamp(28px, 4vw, 48px);
}
h1.masthead .ln { display: block; }
h1.masthead .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.strap {
  max-width: 580px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  font-weight: 300;
  color: var(--fg);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--hairline-2);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.cta:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ---------- block ---------- */
.block {
  padding-block: clamp(80px, 10vw, 160px);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

/* ---------- ABOUT ---------- */
.about-row {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-portrait {
  position: relative;
  margin: 0;
}
.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.06);
}
.about-portrait figcaption {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline-2);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.about-portrait figcaption::before {
  content: "Fig.";
  color: var(--accent);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--display);
  font-size: 14px;
  margin-right: auto;
}
.about-right {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4.5vw, 64px);
}
.about-text .micro { display: block; margin-bottom: 18px; }
.about-text .h2 { margin-bottom: clamp(26px, 3vw, 40px); }
.lead {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--fg);
  max-width: 520px;
  font-variation-settings: "opsz" 28;
}
.figures {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.figures li {
  padding: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fig-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 96;
  color: var(--fg);
}
.fig-lbl {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- WORKS ---------- */
.works-head {
  margin-bottom: clamp(40px, 5vw, 64px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.works-head .micro { display: block; margin-bottom: 14px; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
}
.work {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
}
.work img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.18) contrast(1.05);
  transition: transform .8s var(--ease), filter .5s ease;
}
.work:hover img {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.05);
}
.work::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.4) 100%);
  pointer-events: none;
}
.work-num {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--fg);
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  z-index: 2;
}

/* ---------- CLIENTS / PROJECTS ---------- */
.clients-head {
  margin-bottom: clamp(40px, 5vw, 64px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.clients-head .micro { display: block; margin-bottom: 14px; }
.brands {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: clamp(28px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.brands li {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.015em;
  padding: 0 clamp(20px, 2.5vw, 36px);
  border-right: 1px solid var(--hairline-2);
  color: var(--fg);
  font-variation-settings: "opsz" 96;
  line-height: 1.1;
}
.brands li:first-child { padding-left: 0; }
.brands li:last-child { border-right: 0; }

.projects {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline-2);
}
.projects li {
  padding: clamp(28px, 3.4vw, 48px) 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: baseline;
}
.proj-num {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--accent);
}
.projects h3 {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  font-variation-settings: "opsz" 48;
}
.projects p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 60ch;
}

/* ---------- TEACH ---------- */
.teach-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.teach-row .micro { display: block; margin-bottom: 16px; }
.teach-list {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline-2);
}
.teach-list li {
  padding: clamp(28px, 3vw, 48px) 0;
  border-bottom: 1px solid var(--hairline);
}
.teach-list h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  font-variation-settings: "opsz" 36;
}
.teach-list p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 60ch;
}

/* ---------- CONTACT ---------- */
.contact { background: var(--bg); }
.contact .micro { color: var(--accent); margin-bottom: 18px; display: block; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-side .h2 { margin-bottom: 24px; }
.contact-note {
  font-family: var(--body);
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--muted);
  max-width: 28ch;
}
.contact-list {
  list-style: none;
  border-top: 1px solid var(--hairline-2);
}
.contact-list li {
  border-bottom: 1px solid var(--hairline);
}
.contact-list a {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: baseline;
  gap: clamp(14px, 2.4vw, 28px);
  padding: clamp(22px, 2.8vw, 36px) 4px;
  transition: padding-left .3s var(--ease), background .3s ease;
}
.contact-list a:hover {
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(217,205,184,.04), transparent 60%);
}
.cl-key {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 8ch;
}
.cl-dot {
  align-self: center;
  height: 1px;
  background-image: radial-gradient(circle, var(--faint) 1px, transparent 1px);
  background-size: 6px 1px;
  background-repeat: repeat-x;
}
.cl-val {
  text-align: right;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 36px);
  letter-spacing: -.005em;
  color: var(--fg);
  font-variation-settings: "opsz" 60;
  line-height: 1.05;
  white-space: nowrap;
  transition: color .25s ease;
}
.contact-list a:hover .cl-val { color: var(--accent); }

/* ---------- FOOT ---------- */
.foot {
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- LIGHTBOX ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: rgba(14, 14, 14, .96);
  align-items: center;
  justify-content: center;
}
.lb.is-open { display: flex; }
.lb-stage {
  max-width: 88vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage img {
  max-width: 88vw;
  max-height: 80vh;
  filter: contrast(1.04);
}
.lb-close,
.lb-nav {
  position: absolute;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--fg);
  cursor: pointer;
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  font-family: var(--body);
  font-size: 26px;
  font-weight: 300;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.lb-close { top: 24px; right: 24px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 24px; }
.lb-nav.next { right: 24px; }
.lb-close:hover,
.lb-nav:hover,
.lb-close:focus-visible,
.lb-nav:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.lb-close:focus-visible,
.lb-nav:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
.lb-meta {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255,255,255,.7);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lb-meta #lb-title { color: var(--fg); }
.lb-meta #lb-idx { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .about-row, .teach-row, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .contact-list a {
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: left;
  }
  .cl-dot { display: none; }
  .cl-val {
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .topnav { padding: 12px 14px; }
  .topnav-row { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .topnav a { font-size: 10px; letter-spacing: .18em; }
  .brands li { font-size: clamp(24px, 6vw, 36px); padding: 0 14px; }
}
@media (max-width: 640px) {
  .works-grid { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; }
  .brand { top: 16px; font-size: 10px; }
  .brands { gap: 6px 0; }
  .brands li { border-right: 0; width: 100%; padding: 6px 0; }
}
