:root {
  --ink: #1A1612;
  --paper: #F7F7F5;
  --concrete: #E8E6E1;
  --ochre: #A36F10;
  --ochre-bright: #E0B13A;
  --oxide: var(--ochre);
  --blueprint: #6A6256;
  --white: #ffffff;
  --line: rgba(26, 22, 18, 0.12);
  --charcoal: #2A2118;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Unbounded", sans-serif;
  --font-ui: "Golos Text", sans-serif;
  --radius: 2px;
  --max: 1440px;
  --pad: clamp(1rem, 2.4vw, 2.25rem);
  --mast: 3.5rem;
  --space: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--ochre) var(--concrete); }
::selection { background: color-mix(in srgb, var(--ochre-bright) 42%, white); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--oxide); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.12; font-weight: 700; }
h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.85rem); }
h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h3 { font-size: 1.02rem; }
p { margin: 0 0 0.85rem; }
.container { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.muted { color: var(--blueprint); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.btn {
  display: inline-flex; align-items: center;
  min-height: 2.6rem; padding: 0 1.05rem;
  background: var(--ochre-bright); color: var(--ink); font-weight: 600;
}
.btn:hover { background: var(--ochre); color: #fff; }
.btn--oxide { background: var(--ochre-bright); color: var(--ink); }
.btn--oxide:hover { background: var(--ochre); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--charcoal); color: #fff; }

.masthead {
  position: sticky; top: 0; z-index: 80;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.masthead__bar {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
  min-height: var(--mast);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--ink); flex: none;
}
.logo:hover { color: var(--ink); }
.logo__mark { width: 1.55rem; height: 1.55rem; display: block; flex: none; }
.logo__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.topics-bar { min-width: 0; overflow: hidden; }
.topics-bar__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0.15rem 1.15rem; overflow-x: auto; scrollbar-width: none;
}
.topics-bar__inner::-webkit-scrollbar { display: none; }
.topics-bar a {
  flex: none;
  color: var(--blueprint);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 0.55rem 0;
}
.topics-bar a:hover,
.topics-bar a[aria-current="page"] { color: var(--ink); }
.nav { display: flex; gap: 1rem; align-items: center; }
.nav a {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86rem;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -0.35rem;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.desk {
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 1.25rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(17rem, 0.72fr);
  align-items: stretch;
}
.desk__photo {
  display: block;
  min-height: 38rem;
  overflow: hidden;
  background: var(--concrete) center/cover no-repeat;
  transition: transform 0.7s var(--ease);
}
.desk__photo:hover { transform: scale(1.012); }
.desk__sheet {
  position: relative;
  z-index: 2;
  margin: 2.75rem 0 2.75rem -4.75rem;
  background: var(--white);
  padding: 2rem 1.7rem 1.55rem;
  box-shadow: 0 22px 56px rgba(18, 18, 18, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.desk__rubric {
  margin: 0;
  color: var(--oxide);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.desk h1 { font-size: clamp(1.45rem, 2.3vw, 2.05rem); }
.desk h1 a { color: inherit; }
.desk__excerpt { margin: 0; color: var(--blueprint); font-size: 1.02rem; }

.rail { margin-top: 0.35rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.rail h2 {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blueprint);
}
.rail__list { margin: 0; padding: 0; list-style: none; counter-reset: rail; }
.rail__list li { counter-increment: rail; border-top: 1px solid var(--line); }
.rail__list a {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.45rem;
  padding: 0.48rem 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
.rail__list a::before {
  content: counter(rail, decimal-leading-zero);
  color: var(--blueprint);
  font-size: 0.72rem;
  font-weight: 600;
  padding-top: 0.18rem;
}
.rail__list a:hover { color: var(--oxide); }

.band { padding: 3.25rem 0 0.4rem; }
.band__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin: 0 0 1.1rem;
}
.band__head h2 { font-family: var(--font-display); }
.band__head a { font-size: 0.82rem; font-weight: 600; }

.film-wrap { overflow: hidden; }
.film {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 0.4rem;
  scrollbar-width: thin;
}
.film__item {
  flex: 0 0 min(38vw, 28rem);
  scroll-snap-align: start;
  color: inherit;
  min-width: 16rem;
}
.film__item:nth-child(2) { flex-basis: min(26vw, 20rem); }
.film__item:nth-child(3) { flex-basis: min(32vw, 24rem); }
.film__item:nth-child(4) { flex-basis: min(22vw, 18rem); }
.film__frame {
  display: block;
  overflow: hidden;
  background: var(--concrete);
}
.film__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.film__item:nth-child(odd) img { aspect-ratio: 5 / 4; }
.film__item:hover img { transform: scale(1.03); }
.film__meta {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blueprint);
}

.note,
.credit {
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 0.35rem auto 0;
  font-size: 0.75rem;
  color: var(--blueprint);
}

.topic-dir {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.4rem 1.15rem;
  padding-bottom: 0.4rem;
}
.topic-dir__col { min-width: 0; display: flex; flex-direction: column; gap: 0.42rem; }
.topic-dir__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.92rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--ink);
}
.topic-dir a { color: var(--blueprint); font-size: 0.86rem; line-height: 1.3; }
.topic-dir a:hover { color: var(--ink); }

.feed-mix {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1.7rem 1.2rem;
}
.feed-card { min-width: 0; display: flex; flex-direction: column; gap: 0.42rem; }
.feed-card--lead {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-content: center;
  padding-right: 1.2rem;
  border-right: 1px solid var(--line);
}
.feed-card--lead .feed-card__media { display: none; }
.feed-card--lead .feed-card__title { font-size: clamp(1.45rem, 2.4vw, 2.1rem); }
.feed-card--lead .feed-card__excerpt {
  margin: 0.15rem 0 0;
  color: var(--blueprint);
  font-size: 1.02rem;
}
.feed-card--mid { grid-column: span 1; }
.feed-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--concrete) center/cover no-repeat;
  transition: transform 0.7s var(--ease);
}
.feed-card:hover .feed-card__media { transform: scale(1.02); }
.feed-card__meta { margin: 0; font-size: 0.74rem; color: var(--oxide); font-weight: 600; }
.feed-card__title { font-family: var(--font-display); font-size: 1.05rem; }
.feed-card__title a { color: inherit; }

.split {
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 3.4rem auto 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
  padding: 2.4rem 0 0.2rem;
  border-top: 1px solid var(--line);
}
.split__visual,
.split__media {
  min-height: 26rem;
  background: var(--concrete) center/cover no-repeat;
}
.split__copy h2 { font-family: var(--font-display); margin-bottom: 0.7rem; }
.split__copy p { color: var(--blueprint); max-width: 36rem; }
.layers { list-style: none; margin: 1.1rem 0 1.35rem; padding: 0; }
.layers li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.55rem;
  padding: 0.42rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.layers b { color: var(--oxide); font-variant-numeric: tabular-nums; }

.page { padding: 2.1rem 0 3.4rem; }
.page__intro { max-width: 42rem; margin-bottom: 1.7rem; }
.page__intro .lede { color: var(--blueprint); font-size: 1.12rem; }

.article-page { padding: 0 0 3.6rem; }
.article-page--project .article-layout { grid-template-columns: minmax(0, 1fr); }
.article-page--project .project-hero-media {
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 1.15rem auto 0;
}
.article-cover {
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 1.15rem auto 0;
}
.article-cover:empty { display: none; }
.article-cover figure { margin: 0; }
.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--concrete);
}
.article-cover figcaption {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--blueprint);
}
.article-layout {
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15.5rem;
  gap: 2.4rem 2.8rem;
  align-items: start;
}
.article-hero { grid-column: 1; }
.article-hero .cover__rubric,
.article-hero .article-kicker {
  margin: 0 0 0.55rem;
  color: var(--oxide);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1rem;
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--blueprint);
}
.article-hero .lede {
  margin: 1rem 0 0;
  max-width: 42rem;
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--ink);
}
.toc {
  grid-column: 2;
  grid-row: 1 / span 3;
  position: sticky;
  top: calc(var(--mast) + 1rem);
  padding: 0;
  border: 0;
  font-size: 0.86rem;
}
.toc:empty { display: none; }
.toc h2,
.toc p:first-child,
.toc strong:first-child {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blueprint);
  font-weight: 700;
}
.toc ol, .toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { border-top: 1px solid var(--line); }
.toc a {
  display: block;
  padding: 0.42rem 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}
.toc a:hover { color: var(--oxide); }
.article-body {
  grid-column: 1;
  max-width: 68ch;
  font-size: 1.05rem;
  line-height: 1.7;
}
.article-body h2 { margin: 2rem 0 0.7rem; }
.article-body h3 { margin: 1.4rem 0 0.5rem; }
.article-body figure { margin: 1.5rem 0; }
.article-body figure img { width: 100%; background: var(--concrete); }
.article-body figcaption { margin-top: 0.4rem; font-size: 0.78rem; color: var(--blueprint); }
.article-body ul, .article-body ol { padding-left: 1.15rem; }
.cta-box {
  grid-column: 1;
  max-width: 68ch;
  margin-top: 2.2rem;
  padding: 1.35rem 1.3rem;
  background: var(--concrete);
  border: 1px solid var(--ochre);
}
.cta-box h2 {
  color: var(--ink);
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}
.cta-box p { margin: 0 0 0.9rem; color: var(--blueprint); }
.cta-box .btn { margin-top: 0.15rem; }

.site-footer {
  margin-top: 3.6rem;
  background: var(--charcoal);
  color: rgba(247, 247, 245, 0.88);
  padding: 2rem 0;
}
.site-footer .logo,
.site-footer .logo:hover { color: #fff; }
.site-footer .muted { color: rgba(247, 247, 245, 0.58); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--ochre-bright); }
.site-footer__inner {
  display: flex; justify-content: space-between; gap: 1.4rem; align-items: center;
}

.rubric-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem 1.4rem; }
.rubric-strip a {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.85rem 0 0;
  border-top: 2px solid var(--ink);
  text-decoration: none; color: var(--ink);
}
.rubric-strip a:hover { color: var(--ink); }
.rubric-strip strong { font-family: var(--font-display); font-size: 1rem; }
.rubric-strip span { font-size: 0.86rem; color: var(--blueprint); }

.grid-3 { display: grid; gap: 0.85rem; grid-template-columns: repeat(3, 1fr); }
.card, .feed-card { min-width: 0; }
.card__media {
  aspect-ratio: 16 / 10;
  background: center/cover no-repeat var(--concrete);
}
.card__body { padding: 0.65rem 0 0.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.card__meta { font-size: 0.75rem; color: var(--blueprint); margin: 0; }
.card .title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--oxide);
}

@media (max-width: 1100px) {
  .topic-dir { grid-template-columns: repeat(3, 1fr); }
  .desk__sheet { margin-left: -2.4rem; }
}

@media (max-width: 980px) {
  .masthead__bar { grid-template-columns: auto 1fr; }
  .masthead .nav { display: none; }
  .desk, .split, .article-layout { grid-template-columns: 1fr; }
  .desk__photo { min-height: 22rem; }
  .desk__sheet { margin: 0; padding: 1.4rem 0 0; box-shadow: none; background: transparent; }
  .toc { grid-column: 1; grid-row: auto; position: static; margin: 0.4rem 0 0.2rem; }
  .article-hero, .article-body, .cta-box { grid-column: 1; }
  .feed-mix { grid-template-columns: 1fr 1fr; }
  .feed-card--lead {
    grid-column: 1 / -1;
    grid-row: auto;
    border-right: 0;
    padding-right: 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
  }
  .rubric-strip, .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .masthead__bar { grid-template-columns: 1fr; min-height: auto; padding: 0.65rem 0 0.55rem; }
  .desk__photo { min-height: 18rem; }
  .topic-dir, .feed-mix, .rubric-strip, .grid-3 { grid-template-columns: 1fr; }
  .film__item, .film__item:nth-child(n) { flex-basis: 78vw; }
  .topics-bar__inner { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav a::after,
  .desk__photo,
  .film__item img,
  .feed-card__media { transition: none; }
}

.project-hero-media {
  margin: 0 0 1.6rem;
  overflow: hidden;
  background: var(--concrete);
}
.project-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.project-hero-media figcaption,
.project-gallery figcaption {
  font-size: 0.85rem;
  color: var(--blueprint);
  padding: 0.5rem 0.1rem 0;
}
.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0 0 1.8rem;
}
.project-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--concrete);
}
.project-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (max-width: 640px) {
  .project-gallery { grid-template-columns: 1fr; }
}

.proc-now {
  background: var(--charcoal);
  color: #fff;
  padding: 1.15rem 1.25rem;
  margin: 1.2rem 0 1.5rem;
}
.proc-now p { margin: 0.35rem 0 0; opacity: 0.75; }
.proc-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.4rem;
}
.proc-steps span {
  border: 1px solid var(--line);
  padding: 0.22rem 0.5rem;
  font-size: 0.78rem;
  color: var(--blueprint);
}
.proc-steps span.is-done { color: var(--oxide); border-color: var(--oxide); }
.proc-steps span.is-on { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.proc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.proc-table th {
  text-align: left;
  font-weight: 600;
  color: var(--blueprint);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0.4rem;
}
.proc-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.4rem;
  vertical-align: top;
}
.proc-table a { font-weight: 600; }
.st-queued { color: var(--blueprint); }
.st-published { color: var(--oxide); font-weight: 600; }
.st-quarantine { color: #8a3a2a; font-weight: 600; }
.st-active { font-weight: 600; }
