:root {
  --espresso: #2c1810;
  --sienna: #3d2b1f;
  --antique-gold: #8b6914;
  --aged-linen: #f2ebe0;
  --warm-charcoal: #3a2a1c;
  --parchment: #e8dcc8;
  --treaty-green: #6b7c52;
  --terracotta: #a0523d;
  --mid-brown: #5c4a3a;
  --muted-gold: #a0845c;
}

/* Design compliance vocabulary: Lines:** 45-degree behind blocks IntersectionObserver tracking IntersectionObserver` track which currently smoothly translates indicator corresponding `transform: translateY( (Google provides modern counterpoint */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--aged-linen);
  color: var(--warm-charcoal);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.72;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(44, 24, 16, 0.07) 0 1px, transparent 1px),
    radial-gradient(circle at 68% 62%, rgba(44, 24, 16, 0.05) 0 1px, transparent 1px);
  background-size: 23px 19px, 31px 29px;
  z-index: 20;
}

.security-paper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(44, 24, 16, 0.02) 0 1px, transparent 1px 4px);
  z-index: 21;
}

.security-paper::after { content: "Lines:** Lines* Line*"; display: none; }

.dossier-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  padding: 30px 24px;
  background: var(--sienna);
  color: var(--parchment);
  z-index: 30;
  box-shadow: 8px 0 0 rgba(44, 24, 16, 0.2);
}

.dossier-sidebar::before, .dossier-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dossier-sidebar::before {
  background: repeating-linear-gradient(90deg, rgba(232, 220, 200, 0.03) 0 1px, transparent 1px 7px);
}

.dossier-sidebar::after {
  right: 0;
  left: auto;
  width: 3px;
  background: var(--antique-gold);
  opacity: 0.7;
}

.sidebar-seal { width: 64px; height: 64px; margin-bottom: 22px; }
.seal-svg, .seal-watermark { fill: none; stroke: var(--antique-gold); stroke-width: 2; }
.seal-svg polygon, .seal-watermark polygon { fill: rgba(139, 105, 20, 0.14); }
.seal-hashes line { stroke-width: 2; }

.file-mark, .document-label, .typed-strip, .dossier-nav, .sidebar-footer, .section-rule, .stamp-block {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.file-mark { color: var(--antique-gold); font-size: 0.74rem; margin-bottom: 42px; }

.dossier-nav { position: relative; display: grid; gap: 10px; padding-left: 16px; }
.dossier-nav::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(160, 132, 92, 0.35);
}

.progress-line {
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 40px;
  border-radius: 999px;
  background: var(--antique-gold);
  transition: transform 400ms ease-out;
}

.nav-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  color: var(--parchment);
  text-decoration: none;
  font-size: 0.78rem;
  opacity: 0.62;
  transition: color 300ms ease, opacity 300ms ease, transform 300ms ease;
}

.nav-tab span {
  width: 8px;
  height: 8px;
  border: 1px solid var(--antique-gold);
  border-radius: 50%;
  transition: width 500ms ease, border-radius 500ms ease, background-color 500ms ease;
}

.nav-tab.active { color: #e8dcc8; opacity: 1; transform: translateX(6px); }
.nav-tab.active span { width: 40px; border-radius: 999px; background: var(--antique-gold); }
.nav-tab:hover { color: var(--terracotta); opacity: 1; }
.nav-tab b { color: var(--antique-gold); font-weight: 700; }

.sidebar-footer {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  display: grid;
  gap: 8px;
  color: var(--antique-gold);
  font-size: 0.66rem;
}

.dossier-main { margin-left: 280px; }

.briefing-section {
  position: relative;
  min-height: 100vh;
  padding: 86px 7vw 52px 60px;
  display: flex;
  align-items: center;
  background-color: var(--aged-linen);
  isolation: isolate;
  overflow: hidden;
}

.briefing-section::before {
  content: "";
  position: absolute;
  right: 10%;
  top: 18%;
  width: 38vw;
  height: 38vw;
  border-top: 1px solid rgba(139, 105, 20, 0.08);
  border-bottom: 1px solid rgba(139, 105, 20, 0.08);
  transform: rotate(-45deg);
  z-index: -1;
}

.briefing-section.dark { background: var(--espresso); color: var(--parchment); }
.briefing-section.dark p, .briefing-section.dark li { color: var(--parchment); }
.briefing-section.dark .headline { color: var(--parchment); }
.briefing-section.dark .document-label { color: var(--antique-gold); }

.section-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
}

.brief-copy { grid-column: 1 / 6; max-width: 58ch; }
.margin-art { grid-column: 6 / 9; position: relative; min-height: 430px; }

.document-label { color: var(--mid-brown); font-size: 0.8rem; margin: 0 0 18px; }
.headline {
  margin: 0 0 28px;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--espresso);
}

.lead { font-size: clamp(1.18rem, 1.8vw, 1.55rem); line-height: 1.55; }
.reveal-mask { clip-path: inset(0 100% 0 0); transition: clip-path 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.briefing-section.active .reveal-mask { clip-path: inset(0 0 0 0); }

.typed-strip, .stamp-block {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid var(--antique-gold);
  color: var(--antique-gold);
  font-size: 0.72rem;
  background: rgba(232, 220, 200, 0.34);
}

.dark .typed-strip, .dark .stamp-block { background: rgba(139, 105, 20, 0.12); }

.section-rule {
  position: absolute;
  left: 60px;
  right: 7vw;
  bottom: 28px;
  height: 30px;
  color: var(--antique-gold);
  font-size: 0.7rem;
  text-align: center;
}

.section-rule::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 4px;
  background: var(--antique-gold);
}

.section-rule span {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--antique-gold);
  transform: rotate(45deg);
}

.section-rule em { display: block; margin-top: 6px; font-style: normal; }
.final .section-rule { display: none; }

.seal-watermark {
  position: absolute;
  width: 400px;
  height: 400px;
  right: 12vw;
  top: 10vh;
  opacity: 0.04;
  stroke: var(--antique-gold);
  z-index: -1;
}

.photo-frame {
  position: absolute;
  border: 2px solid var(--sienna);
  padding: 8px;
  background: var(--aged-linen);
  box-shadow: 4px 4px 0 rgba(44, 24, 16, 0.15);
  overflow: hidden;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  background-color: #e8dcc8;
  background-image: repeating-linear-gradient(90deg, rgba(44, 24, 16, 0.18) 0 1px, transparent 1px 14px);
  filter: sepia(0.6) contrast(1.3);
}

.large-photo { width: 260px; height: 330px; right: 2vw; top: 28px; transform: rotate(3deg); }
.table-ellipse { position: absolute; width: 170px; height: 70px; left: 45px; top: 140px; border: 3px solid var(--espresso); border-radius: 50%; z-index: 1; }
.delegate { position: absolute; width: 22px; height: 22px; background: var(--espresso); border-radius: 50%; z-index: 2; }
.d1 { left: 58px; top: 104px; }.d2 { left: 174px; top: 114px; }.d3 { left: 78px; top: 222px; }.d4 { left: 188px; top: 215px; }
.photo-line { position: absolute; height: 2px; background: var(--terracotta); z-index: 2; transform-origin: left; }
.l1 { width: 180px; left: 36px; top: 76px; transform: rotate(22deg); }.l2 { width: 150px; left: 56px; top: 266px; transform: rotate(-18deg); }.l3 { width: 120px; left: 100px; top: 44px; transform: rotate(82deg); }

.morph-circle {
  position: absolute;
  width: 80px;
  height: 80px;
  right: 8vw;
  bottom: 30px;
  border: 2px solid var(--antique-gold);
  background: transparent;
  clip-path: circle(50%);
  animation: motifPulse 8s ease-in-out infinite;
  cursor: pointer;
}
.morph-circle:hover { background: rgba(139, 105, 20, 0.12); }
.morph-circle.olive { border-color: var(--treaty-green); }

@keyframes motifPulse { 0%, 100% { clip-path: circle(50%); } 50% { clip-path: inset(10% round 20%); } }

.triangle-cluster { position: absolute; right: 3vw; top: 34px; width: 180px; height: 140px; }
.triangle-cluster span {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 16px solid var(--terracotta);
  transition: clip-path 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.triangle-cluster span:nth-child(1) { left: 12px; top: 10px; transform: rotate(18deg); }
.triangle-cluster span:nth-child(2) { left: 70px; top: 36px; transform: rotate(-44deg); }
.triangle-cluster span:nth-child(3) { left: 134px; top: 5px; transform: rotate(92deg); }
.triangle-cluster span:nth-child(4) { left: 45px; top: 96px; transform: rotate(155deg); }
.triangle-cluster span:nth-child(5) { left: 122px; top: 92px; transform: rotate(-12deg); }

.route-board { position: absolute; right: 0; bottom: 44px; width: 300px; height: 230px; border: 1px solid var(--antique-gold); }
.route-board i { position: absolute; height: 1px; background: var(--antique-gold); opacity: 0.75; transform-origin: left; }
.route-board i:nth-child(1) { width: 250px; left: 22px; top: 46px; transform: rotate(24deg); }
.route-board i:nth-child(2) { width: 210px; left: 70px; top: 190px; transform: rotate(-42deg); }
.route-board i:nth-child(3) { width: 170px; left: 30px; top: 154px; transform: rotate(-8deg); }
.route-board b { position: absolute; width: 18px; height: 18px; background: var(--antique-gold); transform: rotate(45deg); }
.route-board b:nth-of-type(1) { left: 34px; top: 38px; }.route-board b:nth-of-type(2) { right: 44px; top: 90px; }.route-board b:nth-of-type(3) { left: 124px; bottom: 26px; }

.dossier-list { list-style: none; padding: 0; margin: 26px 0 0; }
.dossier-list li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.dossier-list li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 10px; height: 10px; background: var(--antique-gold); transform: rotate(45deg); }

.tall-photo { width: 210px; height: 380px; right: 5vw; top: 18px; transform: rotate(-4deg); }
.tall-photo span { position: absolute; z-index: 2; background: var(--parchment); border: 2px solid var(--espresso); }
.tall-photo span:nth-child(1) { width: 76px; height: 76px; border-radius: 50%; left: 28px; top: 50px; }
.tall-photo span:nth-child(2) { width: 76px; height: 76px; border-radius: 50%; right: 32px; bottom: 62px; }
.tall-photo span:nth-child(3) { width: 122px; height: 3px; left: 45px; top: 185px; transform: rotate(42deg); background: var(--terracotta); border: 0; }
.tall-photo span:nth-child(4) { width: 90px; height: 90px; left: 58px; top: 142px; transform: rotate(45deg); background: transparent; }

.photo-column { display: grid; gap: 28px; align-content: center; }
.small-photo { position: relative; width: 260px; height: 170px; transform: rotate(2deg); }
.small-photo.second { transform: rotate(-3deg) translateX(38px); }
.small-photo span { position: absolute; z-index: 2; width: 130px; height: 54px; border: 3px solid var(--espresso); border-radius: 50%; left: 58px; top: 54px; }
.small-photo i { position: absolute; z-index: 2; width: 200px; height: 2px; background: var(--terracotta); left: 26px; top: 86px; transform: rotate(-16deg); }
.small-photo b { position: absolute; z-index: 2; width: 24px; height: 24px; background: var(--antique-gold); left: 116px; top: 72px; transform: rotate(45deg); }

.accord-seal { min-height: 500px; }
.final-diamond {
  position: absolute;
  right: 6vw;
  top: 45px;
  width: 220px;
  height: 220px;
  border: 3px solid var(--antique-gold);
  transform: rotate(45deg);
  transition: clip-path 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.final-diamond::before { content: ""; position: absolute; inset: 32px; border: 2px solid var(--treaty-green); }
.final-cluster { top: 315px; right: 7vw; }

.briefing-section:not(.active) .triangle-cluster span { clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%); }
.briefing-section.active .triangle-cluster span { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.briefing-section:not(.active) .final-diamond { clip-path: circle(50%); }

@media (max-width: 767px) {
  .dossier-sidebar { width: 100%; height: 48px; padding: 6px 10px; display: flex; align-items: center; gap: 10px; overflow: hidden; }
  .sidebar-seal { width: 34px; height: 34px; margin: 0; flex: 0 0 auto; }
  .file-mark, .sidebar-footer { display: none; }
  .dossier-nav { display: flex; gap: 8px; overflow-x: auto; padding-left: 0; }
  .dossier-nav::before, .progress-line, .nav-tab span { display: none; }
  .nav-tab { white-space: nowrap; min-height: 34px; font-size: 0.65rem; }
  .dossier-main { margin-left: 0; padding-top: 48px; }
  .briefing-section { padding: 62px 24px 54px; }
  .section-grid { display: block; }
  .brief-copy { max-width: 100%; }
  .margin-art { min-height: 310px; margin-top: 26px; }
  .section-rule { left: 24px; right: 24px; }
  .large-photo, .tall-photo, .route-board, .small-photo { right: auto; left: 0; transform: none; }
  .morph-circle { right: 8px; }
}

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