/* ==========================================================================
   Monolith — BRK 1930 case study (paper page)
   The page is set as the brand's own paperwork: a registry sheet in the
   exact warm white of the product photography (#EBEAE6), so the objects
   sit on the page borderless, like specimens on the photographer's
   sweep. Ink text, crimson stamp accents, typewritten placards. The
   hero takes a rubber stamp on load and lets the visitor test it —
   js/pages/brk.js drives the stamping.
   ========================================================================== */

html { background: #EBEAE6; }
body { background: #EBEAE6; color: #1B1917; }
::selection { background: #1B1917; color: #EBEAE6; }

/* ============ nav / footer overrides (light theme) ============ */
header.mono-nav { background: rgba(235,234,230,0.92); border-bottom: 1px solid rgba(27,25,23,0.08); }
.mono-word { color: #6E6961; }
.mono-word:hover { color: #1B1917; }
header.mono-nav nav a, footer.mono-foot nav a { color: #6E6961; }
header.mono-nav nav a:hover, footer.mono-foot nav a:hover { color: #1B1917; }
header.mono-nav nav a.is-current { color: #1B1917; }
footer.mono-foot { border-top: 1px solid #DAD7D0; }
footer.mono-foot nav a { color: #78736B; }
.mono-foot-brand span { color: #6E6961; }
.mono-foot-copy { color: #78736B; }

/* ============ shared case-study structure ============ */
.cs-hero { max-width: 1440px; margin: 0 auto; padding: 120px 80px 96px; box-sizing: border-box; }
.cs-hero-head { display: flex; flex-direction: column; gap: 40px; }
.cs-kicker { font-family: 'VCR OSD Mono', monospace; font-size: 13px; letter-spacing: 0.12em; color: #78736B; text-transform: uppercase; }
.cs-kicker a { color: #78736B; text-decoration: none; transition: color 0.2s ease; }
.cs-kicker a:hover { color: #A32638; }
.cs-title { margin: 0; font-weight: 400; font-size: clamp(56px, 9vw, 140px); line-height: 0.98; letter-spacing: -0.04em; color: #1B1917; }
.cs-dek { margin: 0; max-width: 560px; font-size: 21px; line-height: 1.4; color: #57534C; }

.cs-meta {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  margin-top: 88px; padding-top: 28px; border-top: 1px solid rgba(27,25,23,0.18);
}
.cs-meta-label {
  display: block; font-family: 'VCR OSD Mono', monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #78736B; margin-bottom: 10px;
}
.cs-meta-value { font-size: 16px; color: #1B1917; }

.cs-figure { max-width: 1440px; margin: 0 auto; padding: 24px 80px 0; box-sizing: border-box; }
.cs-figure img { display: block; width: 100%; height: auto; }
.cs-figcaption {
  display: flex; gap: 18px; padding: 14px 4px 0;
  font-family: 'VCR OSD Mono', monospace; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #78736B;
}
.fig-num { color: #A32638; flex: 0 0 auto; }

.cs-section { max-width: 1440px; margin: 0 auto; padding: 130px 80px 0; box-sizing: border-box; }
.cs-section-grid { display: grid; grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.cs-section-num { font-family: 'VCR OSD Mono', monospace; font-size: 15px; color: #A32638; letter-spacing: 0.12em; }
.cs-section-title { margin: 14px 0 0; font-weight: 400; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -0.03em; color: #1B1917; }
.cs-lead { margin: 0 0 22px; max-width: 640px; font-size: 23px; line-height: 1.35; color: #1B1917; }
.cs-body { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.6; color: #57534C; }
.cs-body + .cs-body { margin-top: 18px; }
.cs-body em { font-style: normal; color: #1B1917; }

/* ============ hero — the registry sheet ============ */
.brk-hero { position: relative; cursor: pointer; }
/* faint ledger ruling on the sheet, hero only */
.brk-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(27,25,23,0.045) 0, rgba(27,25,23,0.045) 1px, transparent 1px, transparent 44px);
  background-position: 0 18px;
}
.brk-hero-cols { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.brk-hero-hint {
  margin: 0; font-family: 'VCR OSD Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: #8A857C;
}
.brk-blink { color: #A32638; animation: blink 1.2s steps(1) infinite; }

/* the stamp — real markup, visible without JS; JS only performs it */
.brk-stamp-zone { position: relative; min-height: 300px; }
.brk-stamp-wrap {
  position: absolute; width: var(--w, 340px); color: #A32638;
  transform: rotate(var(--r, -7deg)) scale(1);
  opacity: var(--o, 0.88); pointer-events: none;
}
.brk-stamp-wrap svg { display: block; width: 100%; height: auto; }
.brk-stamp-seed { right: 6%; top: 50%; margin-top: -80px; }
/* the slam: quick drop from above the paper, one bounce-less settle */
.brk-stamp-wrap.slam { animation: brkSlam 0.22s cubic-bezier(0.2, 0, 0.1, 1) both; }
@keyframes brkSlam {
  0% { opacity: 0; transform: rotate(var(--r, -7deg)) scale(1.65); }
  62% { opacity: var(--o, 0.88); transform: rotate(var(--r, -7deg)) scale(0.985); }
  100% { opacity: var(--o, 0.88); transform: rotate(var(--r, -7deg)) scale(1); }
}
/* the sheet flinches when struck */
.brk-hero.struck { animation: brkFlinch 0.18s ease-out; }
@keyframes brkFlinch { 40% { transform: translateY(1.5px); } 100% { transform: none; } }
.brk-stamp-wrap.fade { transition: opacity 0.8s ease; opacity: 0 !important; }

/* ============ two-up figures (shared photo sweep, one row) ============ */
.brk-duo { max-width: 1440px; margin: 0 auto; padding: 24px 80px 0; box-sizing: border-box; }
.brk-duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.brk-duo-grid figure { margin: 0; }
.brk-duo-grid img { display: block; width: 100%; height: auto; }

/* ============ bleed-right figure ============
   The Три листа дувана photo bleeds its third box off the frame's own
   right edge — the photographer's crop, not ours. Mid-page, next to a
   matching background, that slice reads as a mistake; so the figure
   runs to the viewport's right edge and the crop lands where crops
   belong. Left edge stays on the 1440 grid. */
.brk-bleed-right {
  max-width: none; margin: 0;
  padding-right: 0;
  padding-left: max(80px, calc((100vw - 1440px) / 2 + 80px));
}

/* ============ the archive spread — portrait + placard ============ */
.brk-archive { max-width: 1440px; margin: 0 auto; padding: 96px 80px 0; box-sizing: border-box; }
.brk-archive-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.brk-archive-grid img { display: block; width: 100%; height: auto; }
.brk-placard {
  background: #F1EFEA; border: 1px solid rgba(27,25,23,0.16);
  padding: 34px 36px 30px; max-width: 460px; position: relative;
  box-shadow: 0 1px 0 rgba(27,25,23,0.06);
}
.brk-placard-field {
  display: block; font-family: 'VCR OSD Mono', monospace; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #78736B;
}
.brk-placard-name {
  display: block; margin-top: 10px; font-family: 'VCR OSD Mono', monospace;
  font-size: 19px; letter-spacing: 0.1em; color: #1B1917; text-transform: uppercase;
}
.brk-placard-rule { height: 0; border-top: 1px dashed rgba(27,25,23,0.3); margin: 20px 0; }
.brk-placard-note { margin: 0; font-size: 15.5px; line-height: 1.6; color: #57534C; }
.brk-placard-note + .brk-placard-note { margin-top: 12px; }
.brk-placard-stamp {
  position: absolute; right: 22px; bottom: -26px; width: 148px; color: #A32638;
  transform: rotate(6deg); opacity: 0.8; pointer-events: none;
}
.brk-placard-stamp svg { display: block; width: 100%; height: auto; }

/* ============ mark specimen plate ============ */
.brk-specimen { max-width: 1440px; margin: 0 auto; padding: 96px 80px 0; box-sizing: border-box; }
.brk-specimen-plate {
  position: relative; background: #F1EFEA; border: 1px solid rgba(27,25,23,0.16);
  padding: clamp(48px, 8vw, 120px) clamp(28px, 6vw, 100px);
}
.brk-specimen-plate img { display: block; width: 100%; max-width: 880px; margin: 0 auto; height: auto; }
.brk-specimen-label {
  position: absolute; font-family: 'VCR OSD Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: #78736B;
}
.brk-specimen-label.tl { top: 16px; left: 18px; }
.brk-specimen-label.tr { top: 16px; right: 18px; text-align: right; }
.brk-specimen-label.bl { bottom: 14px; left: 18px; }
.brk-specimen-label.br { bottom: 14px; right: 18px; color: #A32638; }
.brk-specimen-crop {
  position: absolute; width: 18px; height: 18px; border: 0 solid rgba(27,25,23,0.5);
}
.brk-specimen-crop.c1 { top: -1px; left: -1px; border-top-width: 1.5px; border-left-width: 1.5px; }
.brk-specimen-crop.c2 { top: -1px; right: -1px; border-top-width: 1.5px; border-right-width: 1.5px; }
.brk-specimen-crop.c3 { bottom: -1px; right: -1px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.brk-specimen-crop.c4 { bottom: -1px; left: -1px; border-bottom-width: 1.5px; border-left-width: 1.5px; }

/* ============ the vitrine — war reserve ============ */
.brk-vitrine { max-width: 1440px; margin: 0 auto; padding: 96px 80px 0; box-sizing: border-box; }
.brk-vitrine-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr); gap: 56px; align-items: end; }
.brk-vitrine-frame { position: relative; }
.brk-vitrine-frame img { display: block; width: 100%; height: auto; }
.brk-vitrine-side { padding-bottom: 24px; }
.brk-vitrine-coords {
  display: block; font-family: 'VCR OSD Mono', monospace; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #A32638; margin-bottom: 20px;
}
.brk-vitrine-quote { margin: 0 0 16px; font-size: 22px; line-height: 1.35; color: #1B1917; max-width: 380px; }
.brk-vitrine-note { margin: 0; font-size: 15.5px; line-height: 1.6; color: #57534C; max-width: 380px; }

/* ============ the inventory ledger (results) ============ */
.brk-ledger {
  position: relative; margin-top: 44px; max-width: 560px;
  background: #F1EFEA; border: 1px solid rgba(27,25,23,0.16);
  padding: 26px 30px 24px;
  font-family: 'VCR OSD Mono', monospace;
}
.brk-ledger-title {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #1B1917;
}
.brk-ledger-sub { margin-top: 6px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #78736B; }
.brk-ledger-rule { border-top: 1px dashed rgba(27,25,23,0.3); margin: 16px 0; }
.brk-ledger-row {
  display: flex; justify-content: space-between; gap: 18px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #57534C; padding: 5px 0;
}
.brk-ledger-row .name { color: #1B1917; }
.brk-ledger-foot { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #78736B; }
.brk-ledger-stamp {
  position: absolute; right: -20px; bottom: -30px; width: 190px; color: #A32638;
  transform: rotate(-9deg); opacity: 0.85; pointer-events: none;
}
.brk-ledger-stamp svg { display: block; width: 100%; height: auto; }
.brk-ledger-stamp.brk-armed { visibility: hidden; }
.brk-ledger-stamp.slam { visibility: visible; animation: brkSlam 0.22s cubic-bezier(0.2, 0, 0.1, 1) both; }

/* ============ CTA ============ */
.cs-cta { max-width: 1440px; margin: 0 auto; padding: 170px 80px 150px; box-sizing: border-box; }
.cs-cta-eyebrow {
  display: block; font-family: 'VCR OSD Mono', monospace; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: #78736B; margin-bottom: 26px;
}
.cs-cta-link {
  display: inline-block; font-family: 'VCR OSD Mono', monospace;
  font-size: clamp(28px, 5vw, 72px); color: #1B1917; text-decoration: none;
  text-transform: uppercase; line-height: 1.1; word-break: break-all;
  transition: color 0.2s ease;
}
.cs-cta-link:hover { color: #A32638; }
.cs-cta-foot {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 76px; padding-top: 24px; border-top: 1px solid rgba(27,25,23,0.18);
}
.cs-cta-foot a {
  font-family: 'VCR OSD Mono', monospace; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #78736B; text-decoration: none; transition: color 0.2s ease;
}
.cs-cta-foot a:hover { color: #A32638; }

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .brk-stamp-wrap.slam, .brk-ledger-stamp.slam { animation: none; }
  .brk-hero.struck { animation: none; }
}

/* ============ tablet ============ */
@media (max-width: 1000px) {
  .brk-hero-cols { grid-template-columns: 1fr; gap: 24px; }
  .brk-stamp-zone { min-height: 230px; }
  .brk-stamp-seed { right: 10%; top: 46%; }
  .brk-archive-grid { grid-template-columns: 1fr; gap: 40px; }
  .brk-placard { max-width: 560px; }
  .brk-vitrine-grid { grid-template-columns: 1fr; gap: 36px; align-items: start; }
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============ mobile ============ */
@media (max-width: 760px) {
  .cs-hero, .cs-figure, .cs-section, .brk-duo, .brk-archive,
  .brk-specimen, .brk-vitrine, .cs-cta { padding-left: 22px !important; padding-right: 22px !important; }
  .cs-section-grid { grid-template-columns: 1fr; gap: 28px; }
  .brk-duo-grid { grid-template-columns: 1fr; gap: 40px; }
  .brk-stamp-wrap { --w: 240px; }
  .brk-stamp-seed { right: 4%; }
  .brk-placard { padding: 26px 22px 24px; }
  .brk-placard-stamp { width: 120px; right: 14px; }
  .brk-ledger { padding: 22px 18px 20px; }
  .brk-ledger-stamp { width: 150px; right: -8px; }
  .cs-lead { font-size: 20px; }
  /* the bleed figure keeps its right edge on the viewport on mobile too
     (must come after the blanket 22px re-pad above) */
  .brk-bleed-right { padding-right: 0 !important; }
}
