/* ==========================================================================
   Yana Reutova - Design system

   Light, quiet, image-led. The photographs carry all the colour; the
   interface stays monochrome and gets out of the way.

   1. Tokens          - colour, type, spacing, motion
   2. Reset & base
   3. Layout          - wrappers, sections, grids
   4. Typography
   5. Components      - header, nav, buttons, hero, cards, facts, credits,
                        quotes, events, gallery, lightbox, timeline, CTA, footer
   6. Utilities
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  /* --- Colour ---------------------------------------------------------
     Monochrome by design. One ink, three greys, two papers.             */
  --paper:        #ffffff;
  --paper-alt:    #f6f5f2;   /* alternating sections, warm off-white     */
  --paper-deep:   #eeece7;   /* image placeholders, subtle fills         */

  --ink:          #14140f;   /* headings, primary text                   */
  --ink-soft:     #4f4d47;   /* body copy                                */
  --ink-muted:    #6e6b64;   /* captions, labels (AA on paper and alt)   */

  --line:         rgba(20, 20, 15, 0.11);
  --line-strong:  rgba(20, 20, 15, 0.26);

  /* --- Typography ------------------------------------------------------
     Inter does the work. The serif appears only in italic, for taglines
     and pull quotes, where it adds warmth without shouting.             */
  --font-body:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
  --font-serif:  "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --t-xs:    0.75rem;
  --t-sm:    0.875rem;
  --t-base:  clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --t-lg:    clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --t-xl:    clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --t-2xl:   clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --t-3xl:   clamp(2.25rem, 1.65rem + 2.8vw, 4rem);
  --t-4xl:   clamp(2.75rem, 1.6rem + 5.2vw, 6.5rem);

  --leading-tight: 1.05;
  --leading-snug:  1.25;
  --leading-body:  1.68;

  --tracking-label: 0.1em;

  /* --- Spacing --------------------------------------------------------- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4.5rem;
  --space-9:  7rem;

  --section-y: clamp(4rem, 2.4rem + 8vw, 9rem);
  --gutter:    clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
  --gap:       clamp(1rem, 0.6rem + 1.6vw, 2rem);

  /* --- Sizing ---------------------------------------------------------- */
  --w-wide:    1560px;
  --w-default: 1240px;
  --w-narrow:  680px;

  --radius:    6px;
  --radius-lg: 10px;

  --header-h: 72px;

  /* --- Motion ---------------------------------------------------------- */
  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast:   150ms var(--ease);
  --medium: 300ms var(--ease);
  --slow:   700ms var(--ease);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, picture, video, canvas, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

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

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--ink); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-sm);
  font-weight: 500;
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--space-3); }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--w-default));
  margin-inline: auto;
}
.wrap--wide   { max-width: var(--w-wide); }
.wrap--narrow { max-width: var(--w-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.section--alt   { background: var(--paper-alt); }

/* Sections are separated by whitespace and background, never by rules. */

/* Two columns: a narrow aside that sticks, and the content beside it. */
.split {
  display: grid;
  gap: var(--space-7) var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .split__aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
    align-self: start;
  }
}

.grid {
  display: grid;
  gap: var(--gap) var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }

/* Full-bleed strip inside a normal-width page. */
.bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-body);
  color: var(--ink);
  font-weight: 500;
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--t-3xl); line-height: var(--leading-tight); letter-spacing: -0.035em; }
h2 { font-size: var(--t-2xl); letter-spacing: -0.028em; }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

/* Small uppercase label, sitting above a heading. */
.eyebrow {
  display: block;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}

.section-head { margin-bottom: var(--space-7); max-width: 42ch; }
.section-head p {
  color: var(--ink-soft);
  margin-top: var(--space-4);
  font-size: var(--t-lg);
  text-wrap: pretty;
}

/* Serif italic - the one flourish in the whole design. */
.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--t-xl);
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}

.prose { max-width: 66ch; }
.prose > * + * { margin-top: var(--space-5); }
.prose p { color: var(--ink-soft); text-wrap: pretty; }
.prose em { font-family: var(--font-serif); font-style: italic; font-size: 1.08em; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose h2, .prose h3 { margin-top: var(--space-7); }
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color var(--fast);
}
.prose a:hover { text-decoration-color: var(--ink); }

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* --- 5.1 Header & navigation -------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--medium);
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.25;
}
.brand small {
  display: block;
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  margin-top: 1px;
}

.nav { display: flex; align-items: center; gap: var(--space-1); }

.nav__link {
  position: relative;
  padding: var(--space-2) var(--space-3);
  font-size: var(--t-sm);
  color: var(--ink-soft);
  transition: color var(--fast);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--medium);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }

.nav__cta { margin-left: var(--space-4); }

/* Mobile menu button ------------------------------------------------------ */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  margin-right: calc(var(--space-3) * -1);
}
.nav-toggle__bars { position: relative; width: 20px; height: 11px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--medium), opacity var(--fast);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--space-4) var(--gutter) var(--space-8);
    background: var(--paper);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--medium), visibility var(--medium);
  }
  .nav.is-open { opacity: 1; visibility: visible; }

  .nav__link {
    padding: var(--space-4) 0;
    font-size: var(--t-xl);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--ink-muted); }

  .nav__cta { margin: var(--space-6) 0 0; text-align: center; }
}

/* --- 5.2 Buttons & links ------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75em 1.5em;
  font-size: var(--t-sm);
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  text-align: center;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #33322c; }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.btn--sm { padding: 0.6em 1.2em; font-size: var(--t-xs); }

/* Quiet inline call to action. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--fast);
}
.arrow-link::after { content: "\2192"; transition: transform var(--medium); }
.arrow-link:hover { border-bottom-color: var(--ink); }
.arrow-link:hover::after { transform: translateX(3px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* --- 5.3 Hero ------------------------------------------------------------ */
/* Type on paper first, photograph second. */

.hero { padding-block: clamp(3rem, 2rem + 6vw, 7rem) 0; }
.hero__content { max-width: 22ch; }
.hero__title {
  font-size: var(--t-4xl);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.hero__tagline {
  margin-top: var(--space-5);
  max-width: 34ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--t-xl);
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}
.hero__media {
  margin-top: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  aspect-ratio: 21 / 9;
  background: var(--paper-deep);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

@media (max-width: 640px) {
  .hero__media { aspect-ratio: 4 / 3; }
}

/* Subpage hero ------------------------------------------------------------ */

.page-hero {
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner { max-width: 60ch; }
.page-hero__title { font-size: var(--t-3xl); }
.page-hero__intro {
  margin-top: var(--space-5);
  font-size: var(--t-lg);
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Performance hero -------------------------------------------------------- */

.work-hero { padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem) 0; }
.work-hero__content { max-width: 26ch; }
.work-hero__title {
  font-size: var(--t-4xl);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.work-hero__tagline {
  margin-top: var(--space-5);
  max-width: 40ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--t-xl);
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}
.work-hero__media {
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  aspect-ratio: 2 / 1;
  background: var(--paper-deep);
}
.work-hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 640px) {
  .work-hero__media { aspect-ratio: 4 / 3; }
}

.crumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-5);
}
.crumbs a { border-bottom: 1px solid transparent; transition: border-color var(--fast); }
.crumbs a:hover { border-bottom-color: var(--ink-muted); }

/* --- 5.4 Work cards ------------------------------------------------------ */
/* No boxes, no borders. The photograph is the card. */

.card { position: relative; display: flex; flex-direction: column; }

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: var(--radius);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--slow), opacity var(--medium);
}
.card:hover .card__media img { transform: scale(1.03); opacity: 0.92; }

.card__body { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); flex: 1; }
.card__title { font-size: var(--t-lg); letter-spacing: -0.02em; }
.card__text { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.6; }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* The whole card is clickable; the link text stays its accessible name. */
.card__link::after { content: ""; position: absolute; inset: 0; }

/* --- 5.5 Facts ----------------------------------------------------------- */
/* A row of key figures, separated by hairlines rather than boxed in. */

.facts {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-top: 1px solid var(--ink);
}
.facts__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-5) var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}
.facts__key {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.facts__val { font-size: var(--t-sm); color: var(--ink); line-height: 1.55; }

/* --- 5.6 Credits --------------------------------------------------------- */

.credits { display: grid; gap: 0; }
.credits__row {
  display: grid;
  gap: var(--space-1) var(--space-5);
  grid-template-columns: 1fr;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 620px) {
  .credits__row { grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr); }
}
.credits__row:first-child { border-top: 1px solid var(--line); }
.credits__key {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0.3em;
}
.credits__val { font-size: var(--t-sm); color: var(--ink); line-height: 1.6; }

.fineprint {
  margin-top: var(--space-6);
  font-size: var(--t-xs);
  line-height: 1.7;
  color: var(--ink-muted);
}
.fineprint p + p { margin-top: var(--space-3); }

/* --- 5.7 Quotes ---------------------------------------------------------- */

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--ink);
}
.quote__text {
  font-family: var(--font-serif);
  font-size: var(--t-xl);
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}
.quote__text::before { content: "\201C"; }
.quote__text::after  { content: "\201D"; }

.quote__source { display: flex; flex-direction: column; gap: var(--space-1); margin-top: auto; }
.quote__author { font-size: var(--t-sm); font-weight: 500; color: var(--ink); }
.quote__where  { font-size: var(--t-xs); color: var(--ink-muted); line-height: 1.6; }

.quote__piece {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}

.pullquote { max-width: 26ch; }
.pullquote blockquote {
  font-family: var(--font-serif);
  font-size: var(--t-2xl);
  line-height: 1.28;
  color: var(--ink);
  text-wrap: pretty;
}
.pullquote figcaption {
  margin-top: var(--space-5);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.9;
}

/* --- 5.8 Events ---------------------------------------------------------- */

.events { display: flex; flex-direction: column; }

.event {
  display: grid;
  gap: var(--space-2) var(--space-6);
  grid-template-columns: 1fr;
  align-items: baseline;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.event:first-child { border-top: 1px solid var(--ink); }
@media (min-width: 780px) {
  .event { grid-template-columns: 9rem minmax(0, 1fr) auto; align-items: center; }
}

.event__date {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--t-lg);
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.event__date span { font-size: var(--t-xs); letter-spacing: 0.06em; color: var(--ink-muted); }
.event__body { display: flex; flex-direction: column; gap: var(--space-1); }
.event__piece { font-size: var(--t-lg); color: var(--ink); letter-spacing: -0.02em; }
.event__piece a { border-bottom: 1px solid transparent; transition: border-color var(--fast); }
.event__piece a:hover { border-bottom-color: var(--ink); }
.event__where {
  font-size: var(--t-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.event--past { color: var(--ink-muted); }
.event--past .event__date,
.event--past .event__piece { color: var(--ink-muted); font-size: var(--t-base); }

/* Next-up banner ---------------------------------------------------------- */

.next-up {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  padding-block: var(--space-5);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.next-up__label {
  flex: 0 0 auto;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.next-up__body { flex: 1 1 18rem; }
.next-up__piece { font-size: var(--t-lg); color: var(--ink); letter-spacing: -0.02em; }
.next-up__meta { font-size: var(--t-sm); color: var(--ink-soft); margin-top: var(--space-1); }

/* Empty state ------------------------------------------------------------- */

.empty {
  padding-block: var(--space-5);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--t-sm);
  max-width: 60ch;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: var(--t-lg);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

/* --- 5.9 Gallery + lightbox ---------------------------------------------- */

.gallery { columns: 1; column-gap: var(--gap); }
@media (min-width: 640px)  { .gallery { columns: 2; } }
@media (min-width: 1024px) { .gallery { columns: 3; } }

.gallery__item {
  break-inside: avoid;
  margin: 0 0 var(--gap);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
}
.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__btn img { width: 100%; transition: transform var(--slow), opacity var(--medium); }
.gallery__btn:hover img { transform: scale(1.02); opacity: 0.9; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3.5rem);
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--medium), visibility var(--medium);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 100%;
  max-height: 82svh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__count {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color var(--fast), background var(--fast);
}
.lightbox__btn:hover { border-color: var(--ink); background: var(--paper-alt); }
.lightbox__btn--close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__btn--prev  { left: clamp(0.5rem, 3vw, 2rem);  top: 50%; transform: translateY(-50%); }
.lightbox__btn--next  { right: clamp(0.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }

/* --- 5.10 Video ---------------------------------------------------------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- 5.11 Timeline ------------------------------------------------------- */

.timeline { display: flex; flex-direction: column; }
.timeline__item {
  display: grid;
  gap: var(--space-1) var(--space-6);
  grid-template-columns: 1fr;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.timeline__item:first-child { border-top: 1px solid var(--ink); }
@media (min-width: 620px) {
  .timeline__item { grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr); }
}
.timeline__year {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 0.35em;
}
.timeline__text { color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.65; }
.timeline__text em { font-family: var(--font-serif); font-style: italic; font-size: 1.1em; color: var(--ink); }

/* --- 5.12 Contact tiles -------------------------------------------------- */

.tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  transition: border-color var(--fast);
}
.tile:first-child { border-top-color: var(--ink); }
a.tile:hover { border-top-color: var(--ink); }
a.tile:hover .tile__value { border-bottom-color: var(--ink); }
.tile__label {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}
.tile__value {
  align-self: flex-start;
  font-size: var(--t-lg);
  color: var(--ink);
  letter-spacing: -0.02em;
  word-break: break-word;
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast);
}
.tile__note { font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.6; }

/* --- 5.13 CTA band ------------------------------------------------------- */

.cta {
  padding-block: var(--section-y);
  background: var(--paper-alt);
}
.cta__inner { max-width: 30ch; }
.cta h2 { font-size: var(--t-2xl); }
.cta p { margin-top: var(--space-4); color: var(--ink-soft); max-width: 42ch; }

/* --- 5.14 Footer --------------------------------------------------------- */

.footer {
  padding-block: var(--space-8) var(--space-6);
  border-top: 1px solid var(--line);
}
.footer__grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  padding-bottom: var(--space-8);
}
.footer__brand { font-size: var(--t-lg); font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.footer__tag { margin-top: var(--space-3); font-size: var(--t-sm); color: var(--ink-muted); max-width: 30ch; }
.footer__title {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}
.footer__list { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__list a {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: color var(--fast), border-color var(--fast);
}
.footer__list a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  justify-content: space-between;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--ink-muted);
}

/* ==========================================================================
   6. UTILITIES
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.stack > * + *    { margin-top: var(--space-5); }
.stack-lg > * + * { margin-top: var(--space-8); }

.text-muted { color: var(--ink-muted); }
.text-soft  { color: var(--ink-soft); }

.media-frame { border-radius: var(--radius); overflow: hidden; background: var(--paper-deep); }
.media-frame img { width: 100%; }

[hidden] { display: none !important; }

/* Reveal on scroll - progressive enhancement, inert without JS. */
.js .reveal { opacity: 0; transform: translateY(10px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity var(--slow), transform var(--slow);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
