/* ============================================================
   COLD ARCHIVE — Haris Nikolovski
   Palette : cold concrete ground, deep ink, one ultramarine
   Type    : Syne (display) / Archivo (body) / DM Mono (index)
             Bodoni Moda italic (quotes only)
   ============================================================ */

:root {
  --ground:     #d7d7d2;
  --ground-2:   #e6e6e2;
  --ground-3:   #c2c2bb;
  --ink:        #121318;
  --ink-2:      #4b4e56;
  --ink-3:      #5b5d63;
  --flare:      #d42b1e;
  --bone:       #eceae4;

  --hair:       rgba(18, 19, 24, 0.17);
  --hair-soft:  rgba(18, 19, 24, 0.09);

  --footer-bg:  #121318;
  --nav-bg:     rgba(215, 215, 210, 0.85);

  --f-display: "Syne", "Helvetica Neue", sans-serif;
  --f-body:    "Archivo", "Helvetica Neue", sans-serif;
  --f-mono:    "DM Mono", ui-monospace, monospace;
  --f-quote:   "Bodoni Moda", "Times New Roman", serif;

  --gut:  clamp(18px, 3.6vw, 56px);
  --navh: 62px;
}

[data-theme="dark"] {
  --ground:     #101114;
  --ground-2:   #191b1f;
  --ground-3:   #26282d;
  --ink:        #eceae4;
  --ink-2:      #b7b4ac;
  --ink-3:      #8a8882;
  --flare:      #e8483a;

  --hair:       rgba(236, 234, 228, 0.17);
  --hair-soft:  rgba(236, 234, 228, 0.09);

  --footer-bg:  #0a0b0d;
  --nav-bg:     rgba(16, 17, 20, 0.82);
}

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

html {
  scroll-padding-top: calc(var(--navh) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

::selection { background: var(--flare); color: var(--bone); }

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

.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;
}

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: var(--bone);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em;
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}
.skip:focus { transform: translateY(0); }

/* ── type primitives ─────────────────────────────────────────── */

.mono {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.688rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}

.eyebrow {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.688rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}

.clip { display: block; overflow: hidden; }

/* masked word reveal — the clipping unit */
.mk {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
.mk > .mk-i {
  display: inline-block;
  will-change: transform;
}

/* ── fixed navigation ────────────────────────────────────────── */

.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 90;
  background: transparent; pointer-events: none;
}
.progress__bar {
  display: block; height: 100%; width: 100%;
  background: var(--flare);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: var(--navh);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(14px, 3vw, 40px);
  padding: 0 var(--gut);
  color: var(--bone);
  border-bottom: 1px solid transparent;
  transition: color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease;
}
.nav.is-solid {
  color: var(--ink);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hair);
}

.nav__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__idx {
  font-family: var(--f-mono);
  font-size: 0.688rem;
  letter-spacing: 0.16em;
  color: currentColor;
  opacity: 0.65;
  white-space: nowrap;
}
.nav__slash { opacity: 0.5; padding: 0 2px; }

.nav__links { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.nav__links a {
  font-family: var(--f-mono);
  font-size: 0.688rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ── 01 · cover ──────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #0d0d0f;
}

.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  will-change: transform;
}

.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.72) 0%, rgba(8, 8, 10, 0.34) 42%, rgba(8, 8, 10, 0) 68%),
    linear-gradient(0deg, rgba(8, 8, 10, 0.55) 0%, rgba(8, 8, 10, 0) 46%);
}

.hero__body {
  position: absolute; z-index: 2;
  left: var(--gut); right: var(--gut);
  bottom: clamp(30px, 6vh, 68px);
  color: var(--bone);
}

.hero__eyebrow { color: rgba(236, 234, 228, 0.72); }

.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 9.6vw, 11.5rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: clamp(14px, 2vh, 26px) 0 clamp(20px, 3.4vh, 40px);
}

.hero__meta {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(20px, 5vw, 70px);
  border-top: 1px solid rgba(236, 234, 228, 0.22);
  padding-top: clamp(16px, 2.4vh, 26px);
}

.hero__lede {
  font-size: clamp(0.88rem, 1.06vw, 1rem);
  line-height: 1.55;
  max-width: 40ch;
  color: rgba(236, 234, 228, 0.82);
}

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 22px;
  border: 1px solid rgba(236, 234, 228, 0.42);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.688rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.btn:hover, .btn:focus-visible {
  background: var(--bone);
  border-color: var(--bone);
  color: #121318;
}
.btn__arrow { transition: transform 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67); }
.btn:hover .btn__arrow { transform: translateY(4px); }

.hero__cue {
  position: absolute; z-index: 2; right: var(--gut);
  bottom: clamp(30px, 6vh, 68px);
  display: none;
  align-items: center; gap: 9px;
  font-family: var(--f-mono);
  font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(236, 234, 228, 0.6);
}
.hero__cue-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--flare);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ── section heads ───────────────────────────────────────────── */

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hair);
}
.sec-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.sec-meta { color: var(--ink-3); }

/* ── 02 · index ──────────────────────────────────────────────── */

.work {
  position: relative; z-index: 2;
  background: var(--ground);
  padding: clamp(70px, 11vh, 140px) var(--gut) clamp(80px, 13vh, 170px);
}

/* the reel — signature element */
.spine {
  position: relative;
  display: flex; align-items: stretch; justify-content: center;
  margin-top: clamp(26px, 3.4vw, 44px);
  padding-top: 15px;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--ground-2);
}
.spine::before {
  content: "";
  position: absolute; top: 4px; left: 0; right: 0; height: 8px;
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 17px);
  opacity: 0.42;
}
.spine__edge {
  margin: 0;
  display: flex; align-items: center;
  padding: 0 13px;
  color: var(--ink-3);
  white-space: nowrap;
}
.spine__edge--l { border-right: 1px solid var(--hair-soft); }
.spine__edge--r { border-left: 1px solid var(--hair-soft); }

.spine__frame {
  flex: 0 1 auto; min-width: 0;
  width: clamp(104px, 13.5vw, 170px);
  padding: 0; border: 0; border-left: 1px solid var(--hair-soft);
  background: none; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
  display: block;
}
.spine__frame:first-of-type { border-left: 0; }
.spine__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.94);
  opacity: 0.45;
  transition: opacity 0.5s ease, filter 0.5s ease;
}
.spine__frame:hover .spine__thumb { opacity: 0.8; }
.spine__frame[aria-pressed="true"] .spine__thumb {
  opacity: 1;
  filter: grayscale(0) contrast(1.03);
}
.spine__no {
  display: block;
  padding: 7px 10px;
  border-top: 1px solid var(--hair-soft);
  color: var(--ink-3);
  transition: color 0.4s ease;
}
.spine__frame[aria-pressed="true"] .spine__no { color: var(--flare); }

.work__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(26px, 4.4vw, 76px);
  align-items: start;
  margin-top: clamp(30px, 4.4vw, 58px);
}

.work__row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  grid-template-areas: "no name go" "no meta go" "no note go";
  column-gap: 16px; row-gap: 5px;
  width: 100%;
  padding: clamp(16px, 2.1vh, 24px) 0;
  border: 0; border-top: 1px solid var(--hair);
  background: none; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
  transition: color 0.4s ease;
}
.work__item:last-child .work__row { border-bottom: 1px solid var(--hair); }

.work__no {
  grid-area: no;
  color: var(--ink-3);
  padding-top: 0.42em;
  transition: color 0.4s ease;
}
.work__name {
  grid-area: name;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  transition: color 0.4s ease;
}
.work__meta {
  grid-area: meta;
  color: var(--ink-2);
  letter-spacing: 0.15em;
}
.work__note {
  grid-area: note;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
}
.work__row[data-active="true"] .work__name { color: var(--flare); }
.work__row[data-active="true"] .work__no { color: var(--flare); }
.work__row:hover .work__name { color: var(--flare); }

.work__go {
  grid-area: go;
  align-self: center;
  color: var(--ink-3);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.35s ease;
}
.work__row:hover .work__go,
.work__row:focus-visible .work__go {
  opacity: 1;
  transform: translateX(0);
  color: var(--flare);
}

.work__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ground-3);
}
.work__fig {
  position: absolute; inset: 0; margin: 0;
  visibility: hidden;
  clip-path: inset(0% 0% 100% 0%);
  will-change: transform, clip-path;
}
.work__fig.is-active { visibility: visible; clip-path: inset(0% 0% 0% 0%); }
.work__fig-inner { position: absolute; inset: -7% 0; }
.work__fig-inner img { width: 100%; height: 100%; object-fit: cover; }

.work__stage-cap {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  margin: 0;
  padding: 9px 14px;
  background: var(--ground);
  color: var(--ink-2);
  border-top: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
}

/* ── 03 / 05 · text interludes ───────────────────────────────── */

.interlude, .notes {
  position: relative; z-index: 2;
  background: var(--ground);
  padding: clamp(100px, 22vh, 260px) var(--gut);
}
.interlude__label { color: var(--ink-3); }

.quote {
  margin: clamp(46px, 9vh, 110px) 0;
}
.quote p {
  max-width: 16ch;
  font-family: var(--f-quote);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 5.2vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.quote__cite {
  margin-top: clamp(22px, 3vh, 36px);
  color: var(--ink-3);
}
.quote--small { max-width: 26ch; margin: 0; }
.quote--small p { font-size: clamp(1.3rem, 2.9vw, 2.35rem); }

.datasheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--hair-soft);
  border: 1px solid var(--hair-soft);
}
.datasheet__row {
  background: var(--ground);
  padding: 16px 18px;
}
.datasheet dt {
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.datasheet dd { color: var(--ink); font-size: 0.8125rem; letter-spacing: 0.06em; }

.notes__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: clamp(28px, 4vh, 52px) 0 clamp(44px, 8vh, 96px);
  max-width: 16ch;
}
.notes__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: start;
}
.rolls { width: 100%; border-collapse: collapse; }
.rolls th, .rolls td {
  text-align: left;
  padding: 15px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--ink-2);
}
.rolls th { color: var(--ink); font-weight: 500; padding-right: 16px; }
.rolls td:last-child { text-align: right; color: var(--ink); }

/* ── 04 · featured story ─────────────────────────────────────── */

.story {
  position: relative; z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: #0d0d0f;
}
.story__media { position: absolute; inset: 0; }
.story__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.story__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 8, 10, 0.82) 0%, rgba(8, 8, 10, 0.22) 44%, rgba(8, 8, 10, 0.1) 100%);
}
.story__cap {
  position: relative; z-index: 2;
  width: 100%;
  padding: clamp(36px, 7vh, 90px) var(--gut) clamp(34px, 6vh, 78px);
  color: var(--bone);
}
.story__cap .eyebrow { color: rgba(236, 234, 228, 0.6); }
.story__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8.4vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: clamp(12px, 2vh, 22px) 0 clamp(16px, 2.6vh, 30px);
}
.story__text {
  font-size: clamp(0.92rem, 1.12vw, 1.06rem);
  line-height: 1.6;
  max-width: 46ch;
  color: rgba(236, 234, 228, 0.78);
  border-left: 2px solid var(--flare);
  padding-left: 18px;
}

/* ── 06 · contact pair ───────────────────────────────────────── */

.pair {
  position: relative; z-index: 2;
  background: var(--ground);
  padding: clamp(70px, 11vh, 140px) var(--gut) clamp(80px, 13vh, 170px);
}
.pair__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 44px);
  align-items: start;
  margin-top: clamp(34px, 5vw, 64px);
}
.pair__fig { margin: 0; }
.pair__fig--b { margin-top: clamp(28px, 7vw, 110px); }
.pair__inner { overflow: hidden; background: var(--ground-3); }
.pair__inner img { width: 100%; height: auto; }
.pair__fig figcaption {
  padding-top: 12px;
  color: var(--ink-3);
}

/* ── 07 · about ──────────────────────────────────────────────── */

.about {
  position: relative; z-index: 2;
  background: var(--ground);
  padding: clamp(90px, 16vh, 200px) var(--gut) clamp(90px, 15vh, 180px);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(34px, 6vw, 100px);
  align-items: start;
  margin-top: clamp(34px, 5vw, 70px);
}
.about__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-transform: uppercase;
  margin-bottom: clamp(26px, 4vh, 44px);
  max-width: 15ch;
}
.about__col--text p {
  font-size: clamp(0.95rem, 1.06vw, 1.08rem);
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 52ch;
}
.about__col--text p + p { margin-top: 1.1em; }
.about__cv { margin-top: clamp(30px, 4.5vh, 54px); border-top: 1px solid var(--hair); }
.about__cv li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.about__cv span { color: var(--ink); flex: 0 0 auto; }

.about__portrait { margin: 0 0 clamp(30px, 4vh, 48px); }
.about__portrait-inner { overflow: hidden; background: var(--ground-3); }
.about__portrait-inner img { width: 100%; height: auto; }
.about__portrait figcaption { padding-top: 12px; color: var(--ink-3); }
.about__label { color: var(--ink-3); margin-bottom: 14px; }
.about__press { color: var(--ink-2); }
.about__press li { padding: 7px 0; border-bottom: 1px solid var(--hair-soft); }

/* ── 08 · footer ─────────────────────────────────────────────── */

.footer {
  position: relative; z-index: 2;
  background: var(--footer-bg);
  color: #e6e6e2;
  padding: clamp(64px, 11vh, 130px) var(--gut) 26px;
}
.footer__lead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
  padding-bottom: clamp(34px, 5vh, 60px);
  border-bottom: 1px solid rgba(236, 234, 228, 0.16);
}
.footer__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 7.2vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.footer__mail {
  font-family: var(--f-mono);
  font-size: clamp(0.8rem, 1.15vw, 1rem);
  letter-spacing: 0.04em;
  color: var(--bone);
  border-bottom: 1px solid var(--flare);
  padding-bottom: 5px;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.footer__mail:hover, .footer__mail:focus-visible { color: var(--flare); }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(34px, 5vh, 60px) 0;
}
.footer__label { color: rgba(236, 234, 228, 0.42); margin-bottom: 16px; }
.footer__text { font-size: 0.875rem; line-height: 1.75; color: rgba(236, 234, 228, 0.72); }
.footer__social li { padding: 5px 0; }
.footer__social a {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 234, 228, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.footer__social a:hover, .footer__social a:focus-visible {
  color: var(--flare);
  border-bottom-color: var(--flare);
}

.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.signup input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid rgba(236, 234, 228, 0.28);
  color: var(--bone);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  transition: border-color 0.3s ease;
}
.signup input::placeholder { color: rgba(236, 234, 228, 0.34); }
.signup input:focus { outline: none; border-color: var(--flare); }
.signup button {
  padding: 12px 22px;
  border: 1px solid var(--flare);
  background: var(--flare);
  color: var(--bone);
  font-family: var(--f-mono);
  font-size: 0.688rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.signup button:hover, .signup button:focus-visible {
  background: transparent;
  color: var(--flare);
}
.signup__msg {
  flex: 1 1 100%;
  min-height: 1.2em;
  margin: 4px 0 0;
  color: rgba(236, 234, 228, 0.55);
  font-size: 0.625rem;
}

.footer__base {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(236, 234, 228, 0.14);
  color: rgba(236, 234, 228, 0.42);
}
.footer__base a { transition: color 0.3s ease; }
.footer__base a:hover { color: var(--flare); }

/* ── responsive ──────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .work__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(30px, 6vw, 52px); }
  .work__stage { aspect-ratio: 3 / 4; max-height: 78vh; }
  .notes__grid { grid-template-columns: minmax(0, 1fr); }
  .quote--small { margin-top: 8px; }
}

@media (max-width: 860px) {
  :root { --navh: 56px; }
  .nav__idx { display: none; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--news { grid-column: 1 / -1; }
  .hero__cue { display: flex; }
  .hero__body { bottom: clamp(66px, 10vh, 100px); }
}

@media (max-width: 640px) {
  .nav__links { gap: 13px; }
  .nav__links a { font-size: 0.625rem; letter-spacing: 0.1em; }
  .nav__name { font-size: 0.8rem; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__title { font-size: clamp(2.4rem, 9.6vw, 5rem); }
  .footer .cform { max-width: none; width: 100%; }
  .spine__edge { display: none; }
  .spine__frame { flex: 1 1 0; width: auto; }
  .pair__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pair__fig--b { margin-top: 0; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .work__stage { max-height: none; }
  .hero__media img { object-position: 58% 40%; }
}

@media (max-width: 420px) {
  .nav__links a:nth-child(3) { display: none; }
}

/* ── reduced motion ──────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__media img, .story__media img { transform: none !important; }
}

/* ============================================================
   GALLERY PAGES + CONTACT FORM
   ============================================================ */

/* ── gallery header ──────────────────────────────────────────── */

.gal-hero {
  padding: calc(var(--navh) + clamp(44px, 9vh, 96px)) var(--gut) clamp(22px, 4vh, 40px);
}

.gal-hero__crumbs {
  margin-bottom: clamp(16px, 3vh, 28px);
  color: var(--ink-3);
}
.gal-hero__crumbs a:hover { color: var(--flare); }

.gal-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.6vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.gal-hero__note {
  max-width: 52ch;
  margin-top: clamp(14px, 2.4vh, 24px);
  color: var(--ink-2);
}

/* ── subcategory filter chips ────────────────────────────────── */

.gal-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 0 var(--gut) clamp(20px, 3.4vh, 32px);
  border-bottom: 1px solid var(--hair);
}

.chip {
  font-family: var(--f-mono);
  font-size: 0.688rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}
.chip__count { opacity: 0.5; margin-left: 6px; }

/* ── gallery grid ────────────────────────────────────────────── */

.gal-grid {
  column-width: 320px;
  column-gap: 18px;
  padding: clamp(22px, 4vh, 40px) var(--gut) clamp(48px, 9vh, 96px);
}

.gal-item {
  break-inside: avoid;
  margin-bottom: 18px;
  cursor: zoom-in;
}
.gal-item.is-hidden { display: none; }

.gal-item__media {
  overflow: hidden;
  background: var(--ground-3);
}
.gal-item__media img {
  width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.17, 0.67, 0.3, 1);
}
.gal-item:hover .gal-item__media img { transform: scale(1.035); }

.gal-item__cap {
  display: flex; justify-content: space-between; gap: 12px;
  padding-top: 9px;
  color: var(--ink-3);
}

.gal-empty {
  padding: clamp(40px, 9vh, 90px) var(--gut) clamp(70px, 14vh, 130px);
  color: var(--ink-3);
  font-family: var(--f-quote);
  font-style: italic;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
}

/* ── lightbox ────────────────────────────────────────────────── */

.lb {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10, 10, 13, 0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }

.lb__img {
  max-width: min(92vw, 1500px);
  max-height: 80vh;
  width: auto; height: auto;
  object-fit: contain;
}

.lb__cap {
  position: absolute; left: var(--gut); bottom: 22px;
  color: rgba(236, 234, 228, 0.75);
}

.lb__count {
  position: absolute; right: var(--gut); bottom: 22px;
  color: rgba(236, 234, 228, 0.45);
}

.lb__btn {
  position: absolute;
  width: 46px; height: 46px;
  border: 1px solid rgba(236, 234, 228, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--bone);
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.lb__btn:hover { background: var(--bone); color: var(--ink); }
.lb__close { top: 18px; right: var(--gut); }
.lb__prev { left: var(--gut); top: 50%; transform: translateY(-50%); }
.lb__next { right: var(--gut); top: 50%; transform: translateY(-50%); }

/* ── gallery page footer ─────────────────────────────────────── */

.gal-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 26px var(--gut) 34px;
  border-top: 1px solid var(--hair);
  color: var(--ink-3);
}
.gal-foot a:hover { color: var(--flare); }

/* ── contact form ────────────────────────────────────────────── */

.cform {
  display: grid; gap: 12px;
  max-width: 480px;
  margin-top: clamp(20px, 3.6vh, 34px);
}

.cform input,
.cform textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 2px;
  padding: 13px 16px;
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}
.cform input::placeholder,
.cform textarea::placeholder { color: var(--ink-3); }
.cform input:focus,
.cform textarea:focus { outline: none; border-color: var(--ink); }
.cform textarea { min-height: 120px; resize: vertical; }

.btn--ink {
  border-color: rgba(18, 19, 24, 0.42);
  color: var(--ink);
  justify-self: start;
  cursor: pointer;
  background: transparent;
}
.btn--ink:hover, .btn--ink:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

.cform__msg { min-height: 1.5em; color: var(--ink-2); }

/* ── footer contact form (footer is always dark) ─────────────── */

.footer .cform input,
.footer .cform textarea {
  border-color: rgba(236, 234, 228, 0.3);
  color: var(--bone);
}
.footer .cform input::placeholder,
.footer .cform textarea::placeholder { color: rgba(236, 234, 228, 0.45); }
.footer .cform input:focus,
.footer .cform textarea:focus { border-color: var(--bone); }
.footer .cform__msg { color: rgba(236, 234, 228, 0.72); }
.footer .btn--ink {
  border-color: rgba(236, 234, 228, 0.42);
  color: var(--bone);
}
.footer .btn--ink:hover, .footer .btn--ink:focus-visible {
  background: var(--bone);
  border-color: var(--bone);
  color: #121318;
}

/* ── theme toggle ────────────────────────────────────────────── */

.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--f-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 13px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.theme-toggle:hover { opacity: 1; }
.theme-toggle__dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: currentColor;
  transition: transform 0.3s ease;
}
[data-theme="dark"] .theme-toggle__dot { transform: scale(0.6); opacity: 0.6; }

/* ── smooth theme transition ─────────────────────────────────── */

body, .nav, .datasheet__row, .gal-item__media {
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

/* ── EXIF specs under photos ─────────────────────────────────── */

.gal-item__exif {
  padding-top: 3px;
  font-size: 0.625rem;
  color: var(--ink-3);
  opacity: 0.8;
}

.lb__exif {
  position: absolute; left: var(--gut); bottom: 46px;
  color: rgba(236, 234, 228, 0.5);
}
