@font-face {
  font-family: "Syne";
  src: url("fonts/Syne-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --void: #050607;
  --panel: #0c0e11;
  --steel: #d8dce2;
  --mute: #6e7682;
  --line: #232830;
  --acid: #d6ff3a;
  --warn: #ff3b12;
  --paper: #f1f3f5;
  --gap: clamp(0.75rem, 2vw, 1.5rem);
  --rule: 1px solid var(--line);
  --ink-noise: rgba(214, 255, 58, 0.035);
}

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

html {
  scroll-behavior: smooth;
  background: var(--void);
  color: var(--steel);
}

body {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.005em;
  background:
    linear-gradient(90deg, var(--acid) 0 2px, transparent 2px),
    linear-gradient(180deg, transparent 0, transparent calc(100% - 2px), var(--line) calc(100% - 2px)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 55px,
      rgba(35, 40, 48, 0.45) 55px,
      rgba(35, 40, 48, 0.45) 56px
    ),
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 59, 18, 0.08), transparent 55%),
    var(--void);
  overflow-x: hidden;
}

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

a {
  color: var(--acid);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ——— INTERACTIVE CHROME ——— */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  padding: 0.55rem 0.8rem;
  background: var(--acid);
  color: var(--void);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.skip-link:focus {
  top: 0.75rem;
  text-decoration: none;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: rgba(35, 40, 48, 0.8);
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--warn), var(--acid));
  transition: width 0.12s linear;
}

.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 7, 0.92);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, background 0.2s;
}

.chrome.is-scrolled {
  border-bottom-color: rgba(214, 255, 58, 0.35);
  background: rgba(5, 6, 7, 0.97);
}

.chrome__brand {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-right: 1px solid var(--line);
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  color: var(--paper);
  text-decoration: none;
}

.chrome__brand:hover,
.chrome__brand:focus-visible {
  color: var(--void);
  background: var(--acid);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.nav a {
  flex: 0 0 auto;
  padding: 0.75rem 0.85rem;
  border-right: 1px solid var(--line);
  color: var(--mute);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--void);
  background: var(--acid);
  text-decoration: none;
  outline: none;
}

.nav a.is-active {
  color: var(--void);
  background: var(--paper);
}

.chrome__actions {
  display: flex;
  border-left: 1px solid var(--line);
}

.chrome__btn {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.chrome__btn:last-child {
  border-right: 0;
}

.chrome__btn:hover,
.chrome__btn:focus-visible {
  color: var(--void);
  background: var(--acid);
  outline: none;
  text-decoration: none;
}

.chrome__btn[aria-pressed="true"] {
  color: var(--void);
  background: var(--warn);
}

.chrome__btn--pdf {
  color: var(--acid);
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 55;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--acid);
  background: rgba(5, 6, 7, 0.9);
  color: var(--acid);
  font-size: 1rem;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.to-top:hover,
.to-top:focus-visible {
  background: var(--acid);
  color: var(--void);
  outline: none;
}

.section__code.is-pulse {
  filter: brightness(1.25);
  box-shadow: inset 0 0 0 2px var(--warn);
}

.hero__scan {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    rgba(214, 255, 58, 0.03) 3px 4px
  );
  mix-blend-mode: overlay;
  animation: scanDrop 7s linear infinite;
}

@keyframes scanDrop {
  0% { transform: translateY(-12%); opacity: 0.35; }
  50% { opacity: 0.7; }
  100% { transform: translateY(12%); opacity: 0.35; }
}

.hero__index {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acid);
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero__cta--ghost {
  border-color: var(--line);
  color: var(--steel);
}

.hero__cta--ghost:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--void);
}

.hero__keys {
  margin-top: 0.35rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.hero__keys kbd {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--line);
  color: var(--steel);
  background: #000;
}

.hero__visual {
  will-change: transform;
}

.visual-pane {
  transition: filter 0.25s ease;
}

.visual-pane:hover {
  filter: brightness(1.08);
}

.colophon__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__visual img,
  .hero__scan,
  .reveal,
  .progress__bar {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 820px) {
  .chrome {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .chrome__brand {
    grid-column: 1;
  }

  .chrome__actions {
    grid-column: 2;
    border-left: 0;
  }

  .nav {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .hero__keys {
    display: none;
  }
}

/* ——— HERO ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: 1fr;
  border-bottom: 2px solid var(--acid);
  overflow: hidden;
}

.hero__frame {
  pointer-events: none;
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(214, 255, 58, 0.28);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  z-index: 5;
}

.hero__brand-rail {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.hero__brand-rail span:last-child {
  color: var(--acid);
}

.hero__title-block {
  position: relative;
  z-index: 2;
  padding: clamp(2.2rem, 9vw, 5.5rem) clamp(1.1rem, 4vw, 3.2rem);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.4rem;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 86% 100%, 0 100%);
  background:
    linear-gradient(115deg, transparent 58%, rgba(214, 255, 58, 0.07) 58% 62%, transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,0.15), transparent 40%),
    var(--panel);
}

.hero__kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
}

.hero__title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(4.6rem, 17vw, 12rem);
  line-height: 0.78;
  letter-spacing: -0.055em;
  text-transform: none;
  color: var(--paper);
  /* hard channel offset — not soft glow */
  text-shadow: 4px 0 0 rgba(255, 59, 18, 0.85), -3px 0 0 rgba(214, 255, 58, 0.55);
  animation: brandCut 1.05s steps(10, end) both;
}

.hero__lede {
  max-width: 28ch;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--mute);
  border-left: 3px solid var(--acid);
  padding-left: 0.9rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  width: fit-content;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--acid);
  background: transparent;
  color: var(--acid);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background 0.15s, color 0.15s;
}

.hero__cta:hover {
  background: var(--acid);
  color: var(--void);
  text-decoration: none;
}

.hero__visual {
  position: relative;
  background: #000;
  overflow: hidden;
  border-left: 1px solid var(--line);
  margin-left: -1px;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  filter: contrast(1.28) saturate(0.7) brightness(0.92);
  mix-blend-mode: screen;
  opacity: 0.95;
  transform: scale(1.08);
  animation: hardScan 5.2s steps(2, end) infinite;
}

.hero__sigil {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(48%, 260px);
  border: 1px solid var(--acid);
  border-right: 0;
  border-bottom: 0;
  background: #000;
  padding: 0;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 16%);
  z-index: 3;
  box-shadow: -12px -12px 0 0 rgba(5, 6, 7, 0.85);
}

.hero__sigil img {
  width: 100%;
  mix-blend-mode: normal;
  filter: none;
  animation: none;
  transform: none;
}

.hero__meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
}

.hero__meta div {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.hero__meta div:last-child {
  border-right: 0;
  color: var(--steel);
}

@keyframes brandCut {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  40% {
    clip-path: inset(0 40% 0 0);
    opacity: 1;
  }
  55% {
    clip-path: inset(12% 18% 8% 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes hardScan {
  0%,
  100% {
    transform: scale(1.04) translateY(0);
  }
  50% {
    transform: scale(1.06) translateY(-1.2%);
  }
}

/* ——— SECTIONS / SPLICES ——— */
.issue {
  display: flex;
  flex-direction: column;
}

.section {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(4.2rem, 6.5rem) 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, #000 0, #000 6.5rem, transparent 6.5rem),
    repeating-linear-gradient(90deg, transparent, transparent 7px, rgba(214,255,58,0.04) 7px, rgba(214,255,58,0.04) 8px),
    var(--panel);
  position: relative;
}

.section__head::after {
  content: "";
  position: absolute;
  left: 6.5rem;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--acid) 0 28%, transparent 28%);
}

.section__code {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 0.5rem;
  border-right: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--void);
  background: var(--acid);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 70% 100%, 0 100%);
}

.section__title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 5vw, 3.35rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  padding: 1.15rem 1.25rem 1rem;
  color: var(--paper);
  align-self: end;
  text-transform: lowercase;
}

.section__tag {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-left: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  writing-mode: horizontal-tb;
}

.section__body {
  display: grid;
  gap: 0;
}

/* Modular splice layouts — non-polite grids */
.splice-a {
  display: contents;
}

.layout-offset {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.layout-offset .visual-pane {
  margin-top: 2rem;
  margin-right: -1px;
  border-right: 1px solid var(--line);
  border-bottom: 3px solid var(--acid);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 72% 100%, 0 100%);
  background: #000;
  min-height: 340px;
}

.layout-offset .text-pane {
  padding: clamp(1.4rem, 3.2vw, 2.75rem);
  margin-left: -12%;
  margin-top: 1.25rem;
  background: linear-gradient(180deg, var(--panel), var(--void) 40%);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-left-color: var(--warn);
  position: relative;
  z-index: 1;
}

.layout-cut {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.layout-cut .text-pane {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
}

.layout-cut .visual-pane {
  background: #000;
  min-height: 360px;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%, 0 14%);
  margin-left: -14%;
  border-bottom: 2px solid var(--warn);
}

.layout-stack-break {
  display: grid;
  grid-template-rows: auto auto;
}

.layout-stack-break .visual-pane {
  height: min(48vh, 480px);
  background: #000;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 58% 100%, 0 100%);
  border-bottom: 1px solid var(--line);
}

.layout-stack-break .text-pane {
  padding: clamp(1.4rem, 3.2vw, 2.9rem);
  margin-top: -5.5rem;
  margin-left: 10%;
  width: min(90%, 760px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-top-width: 4px;
  border-top-color: var(--acid);
  border-left-width: 3px;
  border-left-color: var(--warn);
  position: relative;
  z-index: 2;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.layout-dual-cut {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.layout-dual-cut .visual-pane {
  min-height: 320px;
  background: #000;
  border-right: 1px solid var(--line);
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 92%);
}

.layout-dual-cut .text-pane {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.layout-flag {
  display: grid;
  grid-template-columns: minmax(140px, 28%) 1fr;
}

.layout-flag .visual-pane {
  background: #000;
  border-right: 1px solid var(--line);
  min-height: 100%;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

.layout-flag .text-pane {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  margin-left: -2rem;
  background: linear-gradient(90deg, var(--panel) 0, var(--void) 40%);
  border-left: 1px solid var(--line);
}

.layout-prose-interrupt {
  display: grid;
  grid-template-columns: 1fr;
}

.layout-prose-interrupt .text-pane {
  padding: clamp(1.25rem, 3vw, 2.75rem) clamp(1rem, 4vw, 3rem);
  max-width: 78ch;
}

.layout-prose-interrupt .interrupt {
  display: grid;
  grid-template-columns: 1fr;
  margin: 1.5rem 0 1.5rem 8%;
  border: 1px solid var(--line);
  background: #000;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6% 100%);
}

.layout-prose-interrupt .interrupt img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: contrast(1.2) grayscale(0.2);
}

.layout-prose-interrupt .interrupt {
  grid-template-columns: 1fr;
}

.visual-pane img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.22) saturate(0.88);
}

.bleed {
  position: relative;
  height: min(28vh, 260px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #000;
}

.bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.25) grayscale(0.15) brightness(0.85);
  transform: scale(1.06);
}

.bleed__cut {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5,6,7,0.55) 0 32%, transparent 32% 68%, rgba(5,6,7,0.35) 68%),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(214,255,58,0.08) 11px 12px);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 70% 100%, 0 100%);
  pointer-events: none;
}

.bleed--warn .bleed__cut {
  background:
    linear-gradient(75deg, rgba(255,59,18,0.22) 0 24%, transparent 24%),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(255,59,18,0.1) 11px 12px);
}

.bleed--tengri {
  height: min(32vh, 300px);
  border-bottom: 2px solid var(--acid);
}

.bleed--ember {
  height: min(26vh, 240px);
  border-bottom: 2px solid var(--warn);
}

.poem {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.58;
  color: var(--steel);
  white-space: pre-wrap;
  font-weight: 400;
}

.poem--verse {
  white-space: pre-wrap;
  max-width: 42rem;
}

.poem--prose {
  white-space: normal;
  max-width: 62ch;
}

.poem--prose p {
  margin-bottom: 1.1rem;
}

.poem--prose p:last-child {
  margin-bottom: 0;
}

.part-label {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--acid);
  background: #000;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.seam {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  position: relative;
}

.seam::after {
  content: "";
  position: absolute;
  left: 18%;
  top: -1px;
  width: 64px;
  height: 3px;
  background: var(--acid);
}

.seam--warn::after {
  background: var(--warn);
  left: 62%;
}

.chorus {
  margin-top: 1.25rem;
  padding: 0.75rem 0 0.75rem 0.9rem;
  border-left: 3px solid var(--warn);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
  color: var(--paper);
}

.folio {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  background: #000;
}

.colophon {
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
  border-bottom: 2px solid var(--acid);
  background:
    linear-gradient(135deg, rgba(214,255,58,0.05) 0 35%, transparent 35%),
    #000;
}

.colophon__mark {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.colophon__mark img {
  width: min(100%, 240px);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  filter: invert(1) contrast(1.1);
  background: #fff;
}

.colophon__mark h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--paper);
}


/* ——— ESSAY / SIBERNETIK ONAMA ——— */
.essay {
  display: grid;
  grid-template-columns: minmax(140px, 28%) 1fr;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.essay__side {
  position: sticky;
  top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 2px solid var(--acid);
  background: #000;
  min-height: 100%;
  align-self: stretch;
}

.essay__side-img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  filter: contrast(1.1);
}

.essay__side-img--glyph {
  filter: none;
  min-height: 220px;
  object-fit: contain;
  background: #000;
  padding: 1.25rem 0.75rem;
}

.essay__text {
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 3.5vw, 2.5rem) clamp(2rem, 4vw, 3rem);
  max-width: none;
  column-width: 34ch;
  column-gap: 2rem;
  column-rule: 1px solid var(--line);
}

.essay__header {
  column-span: all;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.5rem;
  align-items: end;
  margin-bottom: 1.35rem;
  padding: 0.35rem 0 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--acid);
  background: linear-gradient(90deg, rgba(214,255,58,0.07), transparent 55%);
}

.essay-sub {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.9vw, 2.1rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--paper);
  margin: 0;
}

.essay-by {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
  align-self: center;
}

.essay__text > p {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.55;
  color: var(--steel);
  margin: 0 0 0.95rem;
  orphans: 3;
  widows: 3;
}

.essay__text > blockquote {
  margin: 0 0 1rem;
  padding: 0.75rem 0 0.75rem 0.85rem;
  border-left: 3px solid var(--warn);
  background: linear-gradient(90deg, rgba(255, 77, 26, 0.07), transparent 75%);
  break-inside: avoid;
}

.essay__text > blockquote p {
  color: var(--paper);
  margin: 0;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.55;
}

.essay__inline-cut {
  margin: 0.85rem 0 1rem;
  border: 1px solid var(--line);
  background: #000;
  break-inside: avoid;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.essay__inline-cut img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  filter: contrast(1.12);
}

.essay__inline-cut--offset {
  margin-left: 12%;
  width: 88%;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}

.section--gokkure {
  background:
    linear-gradient(180deg, rgba(255, 59, 18, 0.04), transparent 140px),
    linear-gradient(0deg, rgba(214, 255, 58, 0.03), transparent 100px),
    var(--void);
}

.essay--gokkure .essay__side--dual {
  border-right-color: var(--warn);
  background:
    radial-gradient(ellipse 80% 40% at 50% 28%, rgba(214, 255, 58, 0.12), transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 78%, rgba(255, 59, 18, 0.14), transparent 60%),
    #000;
}

.essay__side-img--dual,
.essay__side-img.essay__side-img--dual {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: min(72vh, 640px);
  height: auto;
  object-fit: contain;
  padding: 1.5rem 0.85rem;
  filter: none;
  animation: gokkure-pulse 7s ease-in-out infinite;
}

.essay-signal {
  border-left: 3px solid var(--acid);
  padding-left: 0.85rem;
  color: var(--paper) !important;
  background: linear-gradient(90deg, rgba(214, 255, 58, 0.06), transparent 70%);
}

@keyframes gokkure-pulse {
  0%,
  100% {
    filter: contrast(1.05) saturate(1.05);
  }
  50% {
    filter: contrast(1.18) saturate(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .essay__side-img--dual {
    animation: none;
  }
}

@media (max-width: 820px) {
  .essay {
    grid-template-columns: 1fr;
  }

  .essay__side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .essay__side--dual {
    grid-template-columns: 1fr;
  }

  .essay__side-img {
    min-height: 120px;
    height: 140px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .essay__side-img--dual,
  .essay__side-img.essay__side-img--dual {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: min(62vh, 520px);
    height: auto !important;
    border-right: 0;
  }

  .essay__side-img:last-child {
    border-right: 0;
  }

  .essay__text {
    column-width: auto;
    column-count: 1;
    column-rule: none;
  }

  .essay__header {
    grid-template-columns: 1fr;
  }
}


/* ——— TENGRI ——— */
.section--tengri {
  background:
    linear-gradient(180deg, rgba(214,255,58,0.03), transparent 120px),
    var(--void);
}

.tengri {
  display: flex;
  flex-direction: column;
}

.tengri-block {
  border-bottom: 1px solid var(--line);
  position: relative;
}

.tengri-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(214,255,58,0.12) 0 4px, transparent 4px),
    #000;
}

.tengri-block__title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: -0.04em;
  color: var(--paper);
  border-left: 0;
  padding-left: 0;
  position: relative;
}

.tengri-block__title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.45rem;
  background: var(--acid);
}

.tengri-block__grid {
  display: grid;
  grid-template-columns: minmax(180px, 34%) 1fr;
  align-items: stretch;
}

.tengri-block__grid--flip {
  grid-template-columns: 1fr minmax(160px, 30%);
}

.tengri-fig {
  margin: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(214,255,58,0.08), transparent 55%),
    #000;
  border-right: 1px solid var(--line);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 82% 100%, 0 100%);
  position: relative;
}

.tengri-fig::before {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(214, 255, 58, 0.25);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 1;
}

.tengri-block__grid--flip .tengri-fig {
  border-right: 0;
  border-left: 1px solid var(--line);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%, 0 12%);
}

.tengri-fig img {
  width: 100%;
  height: auto;
  min-height: 260px;
  object-fit: contain;
  object-position: center;
  padding: 1.4rem 1.1rem;
  filter: contrast(1.3) saturate(1.05);
  mix-blend-mode: screen;
}

.tengri-fig--diagram img {
  object-fit: contain;
  min-height: 300px;
  mix-blend-mode: lighten;
}

.tengri-fig figcaption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acid);
  padding: 0.5rem 1rem 1rem;
  border-top: 1px solid var(--line);
}

.tengri-prose {
  padding: clamp(1.25rem, 2.8vw, 2rem) clamp(1.1rem, 3.2vw, 2.25rem);
  background:
    linear-gradient(180deg, rgba(12,14,17,0.9), transparent 80px),
    var(--void);
}

.tengri-prose p {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1rem, 1.28vw, 1.1rem);
  line-height: 1.58;
  color: var(--steel);
  margin: 0 0 1rem;
}

.tengri-lead {
  border-left: 3px solid var(--warn);
  padding: 0.35rem 0 0.35rem 0.9rem;
  color: var(--paper) !important;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tengri-prose blockquote {
  margin: 0 0 1.1rem;
  padding: 0.85rem 0 0.85rem 0.95rem;
  border-left: 3px solid var(--acid);
  background: linear-gradient(90deg, rgba(214, 255, 58, 0.08), transparent 72%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.tengri-prose blockquote p {
  color: var(--paper);
  margin-bottom: 0.4rem;
}

.tengri-prose cite {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.tengri-poem-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  background: #000;
}

.tengri-poem {
  margin: 0;
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--paper);
  white-space: pre-wrap;
  text-align: center;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(214,255,58,0.05), transparent 30%),
    #050607;
}

.tengri-fig--poem {
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
  border-right: 0;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(255,59,18,0.12), #000 65%);
}

.tengri-fig--poem img {
  min-height: 280px;
  object-fit: contain;
}

@media (max-width: 820px) {
  .tengri-block__grid,
  .tengri-block__grid--flip,
  .tengri-poem-wrap {
    grid-template-columns: 1fr;
  }

  .tengri-fig,
  .tengri-block__grid--flip .tengri-fig,
  .tengri-fig--poem {
    border: 0;
    border-bottom: 1px solid var(--line);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 84% 100%, 0 100%);
  }

  .tengri-poem {
    border-right: 0;
    text-align: left;
  }

  .bleed {
    height: 160px;
  }
}


/* Tengri discoverability + field panes */
.nav a.nav__tengri {
  color: var(--acid);
  font-weight: 500;
}

.nav a.nav__sub {
  color: var(--mute);
  opacity: 0.85;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.nav a.nav__sub:hover,
.nav a.nav__sub:focus-visible,
.nav a.nav__sub.is-active {
  opacity: 1;
}

.tengri-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #000;
}

.tengri-index a {
  flex: 1 1 auto;
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
}

.tengri-index a:last-child {
  border-right: 0;
}

.tengri-index a:hover,
.tengri-index a:focus-visible {
  color: var(--void);
  background: var(--acid);
  outline: none;
}

#tengri,
#hucre-ve-baglam,
#ruh-toz-monad,
#bilinc-curume,
#sunuu,
.section[id] {
  scroll-margin-top: 4.5rem;
}

.visual-pane--field {
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(214,255,58,0.12) 0 18%, transparent 18% 62%, rgba(255,59,18,0.16) 62%),
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(214,255,58,0.07) 10px 11px),
    #050607;
  border-left: 3px solid var(--acid);
}

.visual-pane--field-warn {
  border-left-color: var(--warn);
  background:
    linear-gradient(115deg, rgba(255,59,18,0.18) 0 22%, transparent 22%),
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(255,59,18,0.08) 12px 13px),
    #050607;
}

.section--tengri {
  outline: 1px solid rgba(214, 255, 58, 0.15);
  outline-offset: -1px;
}

@media print {
  .tengri-index,
  .nav__sub {
    display: none !important;
  }
}

/* Reveal motion — hard splice, not soft fade */
.reveal {
  opacity: 0;
  transform: translateX(-12px);
  clip-path: inset(0 100% 0 0);
  transition:
    opacity 0.45s steps(6, end),
    transform 0.45s steps(6, end),
    clip-path 0.55s steps(8, end);
}

.reveal.is-in {
  opacity: 1;
  transform: translateX(0);
  clip-path: inset(0 0 0 0);
}

/* Tall Tengri shell must never stay clipped blank if IO misses */
#tengri.reveal:not(.is-in),
.section--tengri.reveal:not(.is-in) {
  opacity: 1;
  transform: none;
  clip-path: none;
}

/* Mobile */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    min-height: auto;
  }

  .hero__frame {
    inset: 0.65rem;
  }

  .hero__title-block {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    clip-path: polygon(0 0, 100% 0, 100% 94%, 88% 100%, 0 100%);
    min-height: 58vh;
  }

  .hero__visual {
    min-height: 42vh;
    border-left: 0;
    margin-left: 0;
  }

  .hero__sigil {
    width: 34%;
    min-width: 110px;
  }

  .hero__meta {
    grid-template-columns: 1fr;
  }

  .hero__meta div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section__head {
    grid-template-columns: 3.5rem 1fr;
  }

  .section__tag {
    display: none;
  }

  .layout-offset,
  .layout-cut,
  .layout-dual-cut,
  .layout-flag {
    grid-template-columns: 1fr;
  }

  .layout-offset .visual-pane,
  .layout-cut .visual-pane,
  .layout-flag .visual-pane,
  .layout-dual-cut .visual-pane {
    margin: 0;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 86% 100%, 0 100%);
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .layout-offset .text-pane,
  .layout-cut .text-pane,
  .layout-flag .text-pane,
  .layout-dual-cut .text-pane {
    margin: 0;
    border-left: 0;
  }

  .layout-stack-break .text-pane {
    margin-left: 4%;
    width: 92%;
    margin-top: -2.5rem;
  }

  .layout-prose-interrupt .interrupt {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .colophon {
    align-items: flex-start;
  }
}

/* Print / PDF */
@page {
  size: A4;
  margin: 10mm;
}

@media print {
  .nav,
  .chrome,
  .progress,
  .skip-link,
  .to-top,
  .hero__keys,
  .hero__scan,
  .hero__cta-row .hero__cta--ghost {
    display: none !important;
  }

  body {
    background: #000 !important;
    color: #e8eaed !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .hero {
    min-height: auto;
    page-break-after: always;
    break-after: page;
  }

  .hero__title-block {
    min-height: 50vh;
  }

  .hero__title {
    animation: none;
    text-shadow: none;
    font-size: 52pt;
  }

  .hero__visual img {
    animation: none;
  }

  .section {
    page-break-inside: auto;
    break-inside: auto;
  }

  #masmavi,
  #ulus-i,
  #sibernetik-onama,
  #yerkure-ve-gokkure,
  #tengri,
  #aslanlar,
  #colophon {
    page-break-before: always;
    break-before: page;
  }

  .essay__side-img--dual {
    animation: none;
    min-height: 220px;
  }

  /* Tengri continuous filled pages */
  .tengri-block {
    page-break-inside: auto;
  }

  #bilinc-curume,
  #sunuu {
    page-break-before: always;
    break-before: page;
  }

  .tengri-block__grid,
  .tengri-block__grid--flip {
    grid-template-columns: 30% 1fr;
  }

  .tengri-block__grid--flip {
    grid-template-columns: 1fr 26%;
  }

  .tengri-prose p,
  .tengri-poem {
    font-size: 9.9pt;
    line-height: 1.45;
  }

  .tengri-prose {
    padding: 8mm 9mm;
  }

  .tengri-fig img {
    min-height: 200px;
    max-height: 340px;
    object-fit: contain;
  }

  .tengri-poem-wrap {
    grid-template-columns: 1.15fr 0.85fr;
  }

  /* Essay continuous */
  .essay {
    grid-template-columns: 22% 1fr;
    page-break-inside: auto;
  }

  .essay__side {
    position: static;
  }

  .essay__side-img {
    min-height: 140px;
    max-height: 240px;
  }

  .essay__text {
    column-width: 33ch;
    column-gap: 1.35rem;
    padding: 8mm 8mm 10mm;
  }

  .essay__text > p,
  .essay__text > blockquote p {
    font-size: 10pt;
    line-height: 1.48;
    margin-bottom: 0.7rem;
  }

  .essay__inline-cut img {
    height: 120px;
  }

  .visual-pane img {
    min-height: 200px;
    max-height: 320px;
  }

  .layout-stack-break .visual-pane {
    height: 230px;
  }

  .bleed {
    height: 72px;
    page-break-inside: avoid;
  }

  .bleed--tengri,
  .bleed--ember {
    height: 84px;
  }

  .hero__title-block {
    min-height: 46vh;
  }

  .hero__frame {
    display: none;
  }

  .tengri-fig img {
    mix-blend-mode: normal;
    filter: contrast(1.2);
  }

  .tengri-poem {
    font-size: 10pt;
    line-height: 1.4;
  }

  .poem,
  .poem--prose p {
    font-size: 10.5pt;
    line-height: 1.48;
  }

  .section__title {
    font-size: 20pt;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .poem--prose {
    max-width: none;
  }

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