/* Voitenko Design — Portfolio. Plain CSS, no build step. */
:root {
  --bg: #101010;
  --card: rgba(42, 42, 44, .72);
  --line: rgba(255, 255, 255, .08);
  --title: #f4f4f5;
  --text: rgba(255, 255, 255, .62);
  --link: #fff;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --prose: 700px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--link); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--title); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font); font-weight: 500; color: var(--title); line-height: 1.2; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
strong { color: var(--title); font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--title); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header / footer */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(16, 16, 16, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: auto; height: auto; max-height: 22px; max-width: 140px; object-fit: contain; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--text); font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--link); text-decoration: none; }
.site-footer { border-top: 1px solid var(--line); margin-top: 120px; padding: 32px 0 48px; color: var(--text); font-size: .9rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer p { margin: 0; }

/* Shared bits */
.eyebrow { font-size: .9rem; font-weight: 500; color: var(--text); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.kicker { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 500; letter-spacing: -.02em; color: var(--title); margin-bottom: 24px; line-height: 1.2; }
.badge { display: inline-block; font-size: .85rem; font-weight: 500; color: var(--title); background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 4px 12px; margin: 20px 0 0; }
.badge--sm { font-size: .75rem; padding: 3px 10px; margin: 0; letter-spacing: .02em; }

/* Home: hero */
.hero { padding-top: 112px; padding-bottom: 24px; }
.hero__title { font-size: clamp(2.25rem, 4.6vw, 3.6rem); line-height: 1.12; letter-spacing: -.03em; max-width: 20ch; }
.hero__sub { margin: 0 0 20px; font-size: 1.125rem; color: var(--text); }
.hero__intro { margin-top: 48px; max-width: 46ch; }
.hero__hi { color: var(--text); font-size: 1rem; margin: 0 0 14px; }
.tags { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .85rem; font-weight: 500; color: var(--text); background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 4px 12px; }
.hero__lead { margin: 24px 0 0; max-width: 46ch; font-size: 1.15rem; color: var(--text); }
.hero__intro .hero__lead { margin-top: 0; font-size: 1.0625rem; }

.section { padding-top: 112px; }
.section--work { padding-top: 80px; }

/* Home: case cards — image on top, title, one line, "View case" */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { display: flex; }
.card__link {
  display: flex; flex-direction: column; width: 100%;
  color: inherit; text-decoration: none;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
}
.card__link:hover { color: inherit; text-decoration: none; }
.card__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #1a1a1b; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s ease; }
.card__link:hover .card__media img { filter: brightness(.82); }
.card__media .badge { position: absolute; top: 16px; left: 16px; background: rgba(16, 16, 16, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card__title { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 8px; }
.card__desc { color: var(--text); font-size: 1rem; line-height: 1.55; margin: 0 0 18px; }
.card__cta { margin-top: auto; color: var(--link); font-size: .95rem; font-weight: 500; }
.card__link:hover .card__cta { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

/* Home: "Other work" — a quiet text row */
.more { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 1rem; }
.more__label { color: var(--text); }

/* Home: clubs, stats, about */
.clubs { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.clubs img { width: 416px; max-width: 100%; }
.clubs__text { margin-top: 32px; color: var(--text); max-width: 60ch; }

.stats { margin: 40px 0; }
.stats__kicker { font-size: .95rem; color: var(--text); margin-bottom: 20px; max-width: 60ch; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 24px; }
.stat__value { font-size: clamp(1.8rem, 3.2vw, 2.3rem); font-weight: 500; color: var(--title); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.stat__label { color: var(--text); margin: 0; font-size: .95rem; }
.section .stats { margin-top: 0; }

.about { font-size: 1.125rem; }
.about__row { display: grid; gap: 16px; margin-top: 16px; }
.about__row:first-child { margin-top: 0; }
.about__intro { grid-template-columns: 1fr; }
.about__facts, .about__contacts { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .about__intro { grid-template-columns: 1fr 1fr; align-items: stretch; max-height: 630px; }
  .about__facts, .about__contacts { grid-template-columns: 1fr 1fr; }
}
.about__text, .about__card {
  background: #1a1a1c; border-radius: 24px; padding: 32px;
}
.about__text { display: flex; flex-direction: column; justify-content: center; }
.about__text p:last-child { margin-bottom: 0; }
@media (min-width: 760px) {
  .about__intro > .about__text,
  .about__intro > .about__portrait { max-height: 630px; min-height: 0; }
}
.about__portrait { border-radius: 24px; overflow: hidden; background: #1a1a1c; min-height: 280px; }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about__value { font-size: clamp(1.8rem, 3.2vw, 2.3rem); font-weight: 500; color: var(--title); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 8px; }
.about__label { color: var(--text); margin: 0; font-size: 1rem; }
.about__card--link { display: flex; align-items: center; gap: 14px; color: var(--title); text-decoration: none; font-weight: 500; transition: background-color .15s ease; }
.about__card--link:hover { color: var(--title); text-decoration: none; background: #242426; }
.about__card--link:hover span { text-decoration: underline; text-underline-offset: .2em; }
.about__card--link img { width: 28px; height: 28px; flex: none; }
.site-footer .contact a { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.site-footer .contact a img { width: 16px; height: 16px; display: block; }

/* Case pages — left-aligned in a 1120px content column (structure follows the reference case study):
   title, then numbered section rows; body text 640px; images run the full content width. */
:root { --case: 1120px; --body: 640px; }
.case-hero, .prose, .pager { max-width: calc(var(--case) + 48px); }
.case-hero { padding-top: 72px; padding-bottom: 0; }
.case-hero h1 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; color: var(--title); max-width: 24ch; }
.case-hero .badge { margin-top: 20px; }

.prose { counter-reset: section; font-size: 1.125rem; line-height: 1.65; }
.prose > p, .prose > ul, .prose > h3 { max-width: var(--body); }
.prose > p, .prose > ul { color: var(--text); }
.prose > p:first-child { font-size: 1.25rem; line-height: 1.6; max-width: 760px; margin-top: 40px; }
.prose > hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.02em; margin: 120px 0 24px; }
/* Section row: muted number + heading on one line (number via CSS counter, heading text untouched) */
.prose > h2 { display: flex; align-items: baseline; gap: 20px; }
.prose > h2::before {
  counter-increment: section; content: counter(section, decimal-leading-zero);
  flex: none; font-size: 1em; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums;
}
.prose h3 { font-size: 1.2rem; margin: 48px 0 12px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--text); }
.prose a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); }
.prose a:hover { text-decoration-color: currentColor; }
.prose .stats { max-width: none; }

/* Media: same left edge as the title, full content width */
.media, .gallery { margin: 40px 0; width: 100%; }
.fig { margin: 0; }
.fig img { width: 100%; border-radius: var(--radius); background: #1a1a1b; border: 0; box-shadow: none; }
.fig figcaption { margin-top: 10px; font-size: .8125rem; line-height: 1.5; color: var(--text); }
/* Tall non-phone captures (long web pages) stay left-aligned at half width so they are not metres tall */
.media--tall .fig { max-width: calc((100% - 16px) / 2); }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(var(--cols, 3), 1fr); }
/* Phone screens as cards: 3 equal cards per row, left-aligned grid (a leftover card keeps card width
   and stays on the left). A single phone capture (.media--phone) uses the same grid as one card. */
.gallery--phones, .media--phone { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.gallery--phones .fig, .media--phone .fig {
  max-width: none; display: flex; flex-direction: column; align-items: center;
  background: #1a1a1c; border-radius: 24px; padding: 28px 20px; border: 0; box-shadow: none;
}
.gallery--phones .fig img, .media--phone .fig img { width: 100%; max-width: 280px; height: auto; object-fit: contain; background: transparent; }
.gallery--phones .fig figcaption, .media--phone .fig figcaption { width: 100%; max-width: 280px; margin-top: 14px; font-size: 13px; }
@media (max-width: 699px) {
  .prose h2 { margin-top: 88px; }
  .gallery { grid-template-columns: 1fr; gap: 24px; }
  .gallery--phones, .media--phone { grid-template-columns: 1fr; gap: 16px; }
  .media--tall .fig { max-width: 100%; }
}

/* Prev / next: quiet text rows, left-aligned */
.pager { display: flex; flex-direction: column; gap: 10px; margin-top: 120px; }
.pager .more { margin: 0; }
.pager > span:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
