/* ─────────────────────────────────────────────────────────────
   Maria Zhevnova · v3 · shared system
   Every page links this file after its own styles.

   One face     Geist: neutral, Swiss-style sans for everything
                headings 500 with tightened spacing, text 400
   Type scale   display 84 · xl 40 · title 22 · lead 17 · body 15 · small 13
                (the home page name is the one exception: it fills the width)
   Case         sentence case everywhere, no capitals-only labels
   Colour       neutral light grey paper (no warm or cool cast), ink, one grey
   Corners      3px on images and frames, nothing else
   Earlier versions: _backup/v1-site/ … _backup/v3-site/
   ───────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400..600&display=swap');

:root {
  --sans: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --head: var(--sans);   /* headings use the same face, just heavier and tighter */
  --ff: var(--sans);

  --fs-display: clamp(44px, 5.8vw, 84px);
  --fs-xl:      clamp(28px, 2.8vw, 40px);
  --fs-title:   clamp(19px, 1.55vw, 22px);
  --fs-lead:    clamp(16px, 1.2vw, 17px);
  --fs-body:    15px;
  --fs-small:   13px;

  --c-paper: #f3f3f3;
  --c-ink:   #141414;
  --c-body:  #464646;
  --c-soft:  #858585;
  --c-line:  rgba(0, 0, 0, 0.12);

  --r: 3px;   /* the only corner radius: images, frames, thumbnails */

  --w: 1320px;
  --g: 40px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* The names each page's own styles use, mapped to the palette */
  --paper: var(--c-paper);
  --paper-2: #e9e9e9;
  --rule: var(--c-line);
  --ink: var(--c-ink);
  --ink-mid: var(--c-body);
  --ink-soft: var(--c-soft);
  --stage: var(--c-ink);
  --accent: var(--c-ink);
}

/* ── Base ─────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; background: var(--c-paper); }
body {
  background: var(--c-paper);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--c-ink);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  counter-reset: sec;
}
::selection { background: var(--c-ink); color: var(--c-paper); }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
h1, h2, h3, h4, blockquote { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
strong, b { font-weight: 500; }
a { color: inherit; }
.num, .brief-stats .num { font-variant-numeric: lining-nums proportional-nums; }

/* Small text: one quiet voice for labels, captions and credits */
.small,
.nav-links a, .nav-links button, .nav-center, .nav-center a, .nav-center button,
.facts dt, .facts dd,
.brief-row h2, .brief-row h3,
figcaption, .ad figcaption, .frame-note, .ba-row .tag, .pm-cnav span,
.bb-caption, .bb-count, .cred .role, .credits dt,
.brief-stats .lab, .cs-quote-block .credit,
.site-foot, .site-contact .label, .page-head .page-no {
  font-family: var(--sans);
  font-size: var(--fs-small);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Roles ────────────────────────────────────────────────── */
.t-display, .page-head h1, .pm h2#pm-title {
  font-family: var(--head); font-weight: 500;
  font-size: var(--fs-display); line-height: 1; letter-spacing: -0.04em;
  color: var(--c-ink);
}
.t-xl { font-family: var(--head); font-weight: 500; font-size: var(--fs-xl); line-height: 1.1; letter-spacing: -0.032em; }
.t-title { font-family: var(--head); font-weight: 500; font-size: var(--fs-title); line-height: 1.2; letter-spacing: -0.018em; }
.t-lead, .page-head .lead, .brief-row p {
  font-size: var(--fs-lead); font-weight: 400;
  line-height: 1.5; letter-spacing: -0.008em; color: var(--c-ink);
}

/* ── Navigation: same spot on every page ──────────────────── */
nav#nav, .pm-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 0; display: block;
  background: rgba(243, 243, 243, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  mix-blend-mode: normal; color: var(--c-ink); pointer-events: auto;
}
nav#nav.is-scrolled, .pm-bar.is-scrolled { border-bottom-color: var(--c-line); }
nav#nav .nav-inner, .pm-bar .nav-inner {
  max-width: var(--w); margin: 0 auto; padding: 22px var(--g);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline;
}
/* The MZ monogram is the logo, so it keeps its own weight and size */
.nav-mark {
  grid-column: 1; justify-self: start;
  font-family: var(--sans); font-size: 18px; font-weight: 600;
  letter-spacing: -0.04em; line-height: 1; color: var(--c-ink); text-decoration: none;
}
.nav-center { grid-column: 2; justify-self: center; color: var(--c-soft); }
.nav-links { grid-column: 3; justify-self: end; display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-links button, .nav-center a, .nav-center button {
  color: var(--c-soft); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links button:hover, .nav-center a:hover, .nav-center button:hover { color: var(--c-ink); }
.nav-mark:hover { opacity: 0.6; }

/* ── Page head (case studies, galleries) ──────────────────── */
.page-head {
  max-width: var(--w); margin: 0 auto;
  padding: clamp(128px, 19vh, 180px) var(--g) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: 40px;
}
.page-head .page-no { grid-column: 1 / -1; color: var(--c-soft); margin: 0 0 14px; }
.page-head h1, .page-head h2 { grid-column: 1 / -1; margin: 0 0 44px -0.03em; }
.pm .page-head { padding: 0; max-width: none; }   /* the viewer already has its own padding */
.page-head .lead { grid-column: 2; grid-row: 3; max-width: 32em; margin: 0; }
.facts { grid-column: 1; grid-row: 3; display: flex; flex-direction: column; gap: 10px; margin: 2px 0 0; padding: 0; }
.facts div { display: flex; flex-direction: column; gap: 1px; }
.facts dt { color: var(--c-soft); margin: 0; }
.facts dd { color: var(--c-ink); margin: 0; }
/* Role, Scope and the Challenge / Idea labels all share one size */
.facts dt, .facts dd { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -0.008em; }

/* ── Challenge · Idea · Result ────────────────────────────── */
.brief { max-width: var(--w); margin: 0 auto; padding: 72px var(--g) 0; }
.brief-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  column-gap: 40px; padding: 17px 0 19px;
  border-top: 1px solid var(--c-line);
}
.brief-row:last-child { border-bottom: 1px solid var(--c-line); }
.brief-row h2, .brief-row h3 {
  color: var(--c-soft); margin: 0; padding-top: 0;
  font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -0.008em;   /* same size as the text beside it */
}
.brief-row p { max-width: 40em; margin: 0; }
.brief-stats { display: flex; flex-wrap: wrap; gap: 18px 56px; margin-top: 22px; }
.brief-stats .num { font-family: var(--head); font-size: var(--fs-xl); font-weight: 500; line-height: 1; letter-spacing: -0.032em; margin: 0 0 10px; }
.brief-stats .lab { color: var(--c-soft); max-width: 24em; margin: 0; }
.brief-stats .lab .k { color: var(--c-ink); }

/* ── Sections: a number and a title ───────────────────────── */
.cs-section-head, .shoot-head { counter-increment: sec; margin-bottom: 20px !important; }
.cs-section-head h2, .shoot-head h2, .section-title {
  font-family: var(--head); font-weight: 500; font-size: var(--fs-title);
  line-height: 1.2; letter-spacing: -0.018em; color: var(--c-ink); margin: 0;
  text-transform: none;
}
.cs-section-head h2::before, .shoot-head h2::before {
  content: counter(sec, decimal-leading-zero);
  font-family: var(--sans); font-size: var(--fs-small); letter-spacing: 0;
  color: var(--c-soft); display: inline-block; min-width: 3.4em; vertical-align: 0.15em;
}
.shoot-intro { font-size: var(--fs-body); line-height: 1.6; color: var(--c-body); max-width: 38em; }

/* Small print under images */
figcaption, .ad figcaption, .frame-note, .ba-row .tag, .pm-cnav span, .bb-caption, .bb-count { color: var(--c-soft); }
.ba-row figure.after .tag { color: var(--c-ink); }
.frame-note { display: flex; gap: 24px; justify-content: space-between; margin-top: 14px; }
.frame-note a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Credits */
.cred .role, .credits dt { color: var(--c-soft); }
.cred .names { font-size: var(--fs-body); line-height: 1.5; color: var(--c-ink); }
.shoot-credits { font-size: var(--fs-small); line-height: 1.45; }

/* Quote */
.cs-quote-block .q { font-family: var(--head); font-size: var(--fs-title); font-weight: 400; line-height: 1.35; letter-spacing: -0.015em; color: var(--c-ink); }
.cs-quote-block .credit { color: var(--c-soft); }

/* ── Images: barely rounded, quiet ─────────────────────────── */
img, video { border-radius: 0; }   /* containers carry the radius */

/* ── Layout ───────────────────────────────────────────────── */
/* Anchored sections stop below the fixed menu instead of under it */
#work, #about, #contact, #top { scroll-margin-top: 64px; }
#top { scroll-margin-top: 0; }
.wrap { max-width: var(--w); margin-left: auto; margin-right: auto; padding-left: var(--g); padding-right: var(--g); }
.page-head + .reel-section { margin-top: 0; padding-top: 112px; }

/* ── Ending: light, type only, the menu repeated at the bottom ── */
.site-contact { background: var(--c-paper); color: var(--c-ink); padding: 150px 0 120px; margin-top: 0; }
.sub .site-contact { margin-top: 0; }
.site-contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: 40px; align-items: baseline; }
.site-contact .label { color: var(--c-soft); margin: 0; grid-column: 1; grid-row: 1; }
.site-contact .lead, .site-contact a.email { grid-column: 2; justify-self: start; }
.site-contact .lead {
  font-family: var(--sans); font-size: var(--fs-lead); font-weight: 400; line-height: 1.42;
  color: var(--c-body); margin: 0 0 12px; max-width: none; letter-spacing: 0;
}
.site-contact a.email {
  display: inline-block; text-decoration: none; color: var(--c-ink);
  font-family: var(--head); font-weight: 500;
  font-size: min(var(--fs-xl), calc((100vw - 2 * var(--g)) / 12.6)); line-height: 1.1; letter-spacing: -0.032em;
  border-bottom: 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding: 0 0 6px; transition: background-size 0.5s var(--ease); overflow-wrap: anywhere;
}
.site-contact a.email:hover { background-size: 100% 1px; }
footer.site-foot { max-width: none; margin: 0; padding: 0; display: block; background: var(--c-paper); color: var(--c-soft); border-top: 1px solid var(--c-line); }
.site-foot .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline;
  padding-top: 22px; padding-bottom: 26px;
}
.site-foot .to-top { justify-self: center; }
.site-foot .foot-links { justify-self: end; display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-foot a { color: var(--c-soft); text-decoration: none; transition: color 0.2s; }
.site-foot a:hover { color: var(--c-ink); }

/* ── Project viewer ───────────────────────────────────────── */
.pm-brief { padding: 72px 0 0; margin: 0 0 88px; max-width: none; }
.pm-imgs { counter-reset: pmsec; }
.pm-sec:not(.pm-cont) { counter-increment: pmsec; }
.pm-label {
  font-family: var(--head); font-size: var(--fs-title); font-weight: 500; line-height: 1.2;
  letter-spacing: -0.018em; color: var(--c-ink); margin-bottom: 20px;
}
.pm-label::before {
  content: counter(pmsec, decimal-leading-zero);
  font-family: var(--sans); font-size: var(--fs-small); letter-spacing: 0;
  color: var(--c-soft); display: inline-block; min-width: 3.4em; vertical-align: 0.15em;
}

/* ── Motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ── Smaller screens ──────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --g: 22px; }
  .page-head { grid-template-columns: 1fr; }
  .page-head h1, .page-head h2 { margin-bottom: 36px; }
  .page-head .lead { grid-column: 1; grid-row: 3; }
  .facts { grid-column: 1; grid-row: 4; flex-direction: row; flex-wrap: wrap; gap: 14px 36px; margin-top: 28px; }
  .brief { padding-top: 64px; }
  .brief-row { grid-template-columns: 1fr; row-gap: 6px; padding: 18px 0 22px; }
  .brief-row h2, .brief-row h3 { padding-top: 0; }
  .site-contact { padding: 130px 0 100px; }
  .site-contact .wrap { grid-template-columns: 1fr; }
  .site-contact .label { margin-bottom: 20px; }
  .site-contact .lead, .site-contact a.email { grid-column: 1; }
  .page-head + .reel-section { padding-top: 80px; }
}
@media (max-width: 640px) {
  :root { --g: 18px; }
  .nav-links { gap: 16px; }
  /* Phones: "← All work" and "Work" go to the same place, so keep just one */
  .nav-inner { display: flex !important; align-items: baseline; gap: 16px; }
  .nav-mark { margin-right: auto; }
  .nav-inner:has(.nav-center) .nav-links li:first-child { display: none; }
  .site-foot .wrap { grid-template-columns: 1fr auto; row-gap: 10px; }
  .site-foot .to-top { display: none; }
  .pm-brief { margin-bottom: 72px; padding-top: 64px; }
  .page-head + .reel-section { padding-top: 60px; }
  .cs-section-head h2::before, .shoot-head h2::before, .pm-label::before { min-width: 2.8em; }
}
