@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-300-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/inter-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f7f4ee;
  --paper-2: #efeae0;
  --ink: #16150f;
  --ink-soft: #4b463c;
  --muted: #7d766a;
  --line: rgba(22, 21, 15, 0.14);
  --accent: #9d4a33;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

.hero__figure picture,
.about__figure picture,
.shot picture { display: block; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1, h2, h3, p, dl, dd, figure { margin: 0; }

.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-right: auto;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.01em;
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  align-self: center;
}
.brand__name { white-space: nowrap; }

.nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.nav a {
  position: relative;
  padding-block: 4px;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.35s var(--ease);
}
.nav a:hover::after { right: 0; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.lang__btn { color: var(--muted); padding: 4px; transition: color 0.25s var(--ease); }
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { color: var(--ink); font-weight: 500; }
.lang__sep { opacity: 0.5; }

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

.hero {
  padding-top: clamp(110px, 16vh, 180px);
  padding-bottom: clamp(60px, 10vh, 120px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 34px);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(58px, 9.4vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.hero__name span { display: inline-block; }

.hero__lead {
  max-width: 34ch;
  margin-top: clamp(22px, 3vw, 34px);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero__meta {
  display: flex;
  gap: clamp(20px, 4vw, 44px);
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero__meta dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta dd {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 22px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 42px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.hero__figure { position: relative; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
}
.hero__figure figcaption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(64px, 10vw, 128px);
  border-top: 1px solid var(--line);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 22px;
  margin-bottom: clamp(36px, 6vw, 64px);
}
.section__num {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  flex: 0 0 auto;
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 22ch;
  flex: 1 1 auto;
}
.section__note {
  flex: 1 1 100%;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.section--gallery { background: var(--paper-2); }

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about__figure { position: sticky; top: 110px; }
.about__figure img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.about__body p {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 56ch;
}
.about__body p + p { margin-top: 1.2em; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 24px;
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
}

/* ---------- rows (skills) ---------- */

.rows { list-style: none; margin: 0; padding: 0; }

.row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.2fr) auto;
  gap: 24px;
  align-items: baseline;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  transition: color 0.3s var(--ease);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row:hover { color: var(--accent); }

.row__index {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.row__title {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.25;
}
.row__note { font-size: 15px; color: var(--muted); }
.row__year {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline__item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding-block: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }

.timeline__year {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}
.timeline__body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.timeline__body p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.shot {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper);
  cursor: zoom-in;
}
.shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.3s var(--ease);
}
.shot:hover img { transform: scale(1.035); }
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 21, 15, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.shot:hover::after { opacity: 1; }

/* ---------- video ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.video-card { margin: 0; }

/* Fixed frame: keeps 16:9 even if the browser ignores aspect-ratio on <video>,
   and never lets the element grow past its column. */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: #0e0d0b;
}

.video-card video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  background: #0e0d0b;
  object-fit: contain;
}

.video-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 14px;
}
.video-card__title { font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); line-height: 1.2; }
.video-card__meta { font-size: 13px; color: var(--muted); }

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

/* Mobile-only poster + play button (desktop keeps the native inline player). */
.video-card__play { display: none; }

.video-card__playicon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(247, 244, 238, 0.94);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease);
}
.video-card__playicon::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 19px;
  border-left: 19px solid #16150f;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.video-card__play:active .video-card__playicon { transform: scale(0.94); }

.video-card__dur {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(14, 13, 11, 0.72);
  color: #f7f4ee;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---------- video modal ---------- */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 40px);
  background: #0b0a09;
}
.video-modal[hidden] { display: none; }

.video-modal__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 1100px;
  margin: 0;
}

.video-modal__video {
  width: 100%;
  max-height: 78vh;
  height: auto;
  background: #000;
  border-radius: 2px;
}

.video-modal__title {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(247, 244, 238, 0.82);
  text-align: center;
}

.video-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(247, 244, 238, 0.28);
  color: var(--paper);
  font-size: 20px;
  line-height: 1;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.video-modal__close:hover {
  background: rgba(247, 244, 238, 0.12);
  border-color: var(--paper);
}

/* ---------- documents (privacy policy) ---------- */

.doc {
  padding-block: clamp(96px, 12vw, 140px) clamp(60px, 8vw, 100px);
}
.doc .shell { max-width: 760px; }

.doc__back { font-size: 14px; color: var(--ink-soft); transition: color 0.25s var(--ease); }
.doc__back:hover { color: var(--accent); }

.doc__meta {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.doc h1 {
  margin: 10px 0 30px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.doc h2 {
  margin: 2.2em 0 0.7em;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.doc p {
  margin: 0 0 1em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.doc p a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__link { transition: color 0.25s var(--ease); }
.site-footer__link:hover { color: var(--ink); }

/* ---------- contact ---------- */

.section--contact { padding-block: clamp(72px, 11vw, 150px); }

.contact__lead {
  max-width: 44ch;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(30px, 5vw, 52px);
}
.contact__link {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact__link:hover { color: var(--accent); border-color: var(--accent); }

.contact__note {
  margin-top: clamp(26px, 4vw, 40px);
  font-size: 14px;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 34px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center;
  justify-content: space-between;
}
.site-footer__top { transition: color 0.25s var(--ease); }
.site-footer__top:hover { color: var(--ink); }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: rgba(16, 15, 12, 0.95);
  padding: clamp(16px, 4vw, 48px);
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(247, 244, 238, 0.28);
  color: var(--paper);
  font-size: 20px;
  line-height: 1;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(247, 244, 238, 0.12);
  border-color: var(--paper);
}
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- reveal ---------- */

/* Only hide content once JS is known to run, so the page stays readable
   without scripts (and for crawlers that do not execute them). */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__figure { max-width: 520px; }
  .about { grid-template-columns: 1fr; }
  .about__figure { position: static; max-width: 460px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 12px; gap: 4px 20px; }
  .video-grid { grid-template-columns: 1fr; }

  /* Mobile: vertical poster card + our own full-screen player. */
  .js .video-frame { aspect-ratio: 4 / 5; }
  .js .video-card__video { display: none; }
  .js .video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0e0d0b;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .nav {
    order: 3;
    width: 100%;
    gap: 22px;
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 13px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .row { grid-template-columns: 40px 1fr auto; row-gap: 4px; }
  .row__note { grid-column: 2; }
  .row__year { grid-column: 3; grid-row: 1; }
  .timeline__item { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { gap: clamp(9px, 3.4vw, 15px); font-size: clamp(11px, 3vw, 12px); letter-spacing: 0; }
  .section__head { flex-direction: column; gap: 10px; }
  .section__title { max-width: 100%; }
  .hero__meta { flex-wrap: wrap; gap: 18px 32px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: 1fr; }
  .contact__link { font-size: clamp(26px, 8vw, 40px); }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}

@media (max-width: 340px) {
  /* Very narrow phones: keep the six nav items on one line. */
  .nav { gap: 8px; font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
