@font-face{
  font-family:"GrandLocal";
  src:url("./fonts/Grand-Regular.otf") format("opentype");
  font-weight:400;
  font-style:normal;
  font-display:block;
}
@font-face{
  font-family:"TiminoLocal";
  src:url("./fonts/Timino-Regular.otf") format("opentype");
  font-weight:400;
  font-style:normal;
  font-display:block;
}
@font-face{
  font-family:"DMSansLocal";
  src:url("./fonts/DMSans.ttf") format("truetype");
  font-weight:100 1000;
  font-style:normal;
  font-display:block;
}
:root {
  --bg: #0b0b0c;
  --paper: #f3f2ee;
  --cyan: #14d8ed;
  --magenta: #ff0060;
  --yellow: #d8d72c;
  --red: #ee1c00;
  --purple: #773776;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family:"DMSansLocal",Arial,sans-serif;
  overflow-x: hidden;
}

#progress {
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 5px;
  background: var(--cyan);
  z-index: 1000;
}

.cover {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  background: #1d1b20;
  overflow: hidden;
}
.cover img {
  width: min(100%, 980px);
  height: 100svh;
  object-fit: contain;
  transition: transform .25s ease;
}
.cover:hover img { transform: scale(1.012); }
.cover-introduction {
  position: absolute;
  left: clamp(1.5rem, 6vw, 6rem);
  right: clamp(1.5rem, 6vw, 6rem);
  bottom: clamp(7rem, 18vh, 11rem);
  text-align: center;
}
.cover-introduction h1 {
  max-width: none !important;
  margin: 0 0 1.3rem !important;
  color: #5a1e1e !important;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: .86 !important;
}
.cover-introduction blockquote {
  max-width: 72ch;
  margin: 0 auto .75rem;
  padding: 0;
  border: 0;
  color: #1d1d1d !important;
  font-family: "DMSansLocal", Arial, sans-serif !important;
  font-size: clamp(.9rem, 1.4vw, 1.15rem);
  font-style: normal;
  font-weight: 300 !important;
  line-height: 1.45;
  text-transform: none !important;
}
.cover-introduction cite {
  display: block;
  color: #5a1e1e;
  font-family: "DMSansLocal", Arial, sans-serif;
  font-size: .72rem;
  font-style: normal;
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cover-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  mix-blend-mode: difference;
}
.cover-overlay span { font-size: 1.5rem; }

@media (max-width: 700px) {
  .cover-introduction {
    bottom: 6.5rem;
  }
}

.index {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  overflow-x: auto;
  gap: 1px;
  background: #000;
  border-top: 1px solid #555;
  border-bottom: 1px solid #555;
}
.index a {
  flex: 1 0 190px;
  padding: 16px;
  color: white;
  text-decoration: none;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.index a:hover { background: white; color: black; }
.index span { opacity: .5; margin-right: .6em; }

.chapter {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(90px, 18vw) 1fr;
  border-bottom: 1px solid #333;
}
.chapter-number {
  font-family:"GrandLocal",Arial,sans-serif;
  font-size: clamp(5rem, 16vw, 15rem);
  line-height: .8;
  padding: 5vw 2vw;
  opacity: .22;
  writing-mode: vertical-rl;
}
.chapter-copy {
  max-width: 980px;
  padding: 10vh 6vw 14vh 2vw;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
}
h1 {
  font-family:"GrandLocal",Arial,sans-serif;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: .94;
  margin: .4em 0;
  max-width: 12ch;
}
.chapter-copy > p:not(.kicker) {
  max-width: 62ch;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.cyan .kicker, .cyan h1 { color: var(--cyan); }
.yellow .kicker, .yellow h1 { color: var(--yellow); }
.magenta .kicker, .magenta h1 { color: var(--magenta); }
.red .kicker, .red h1 { color: var(--red); }
.purple .kicker, .purple h1 { color: #b57ab4; }

button, summary {
  font: inherit;
  cursor: pointer;
}
.reveal {
  margin-top: 2rem;
  background: transparent;
  color: white;
  border: 1px solid currentColor;
  padding: 1rem 1.25rem;
  text-transform: uppercase;
}
blockquote {
  margin: 2rem 0;
  padding: 2rem;
  background: #151515;
  border-left: 6px solid var(--cyan);
  font-family:"GrandLocal",Arial,sans-serif;
  font-size: 1.8rem;
}

.split-demo {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #555;
}
.split-demo > div { min-height: 260px; padding: 2rem; }
.split-demo > div + div { border-left: 1px solid #555; }

.scroll-video {
  height: 320vh;
  margin-top: 6rem;
}
.scroll-video-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.scroll-video video {
  display: block;
  width: min(100%, 820px);
  height: min(78vh, 820px);
  object-fit: contain;
  object-position: center;
}
.scroll-video.is-complete .scroll-video-sticky {
  opacity: 0;
  visibility: hidden;
}
.scroll-video.is-collapsed {
  height: 0;
  margin-top: 0;
  overflow: hidden;
}
.scroll-video-free {
  height: auto;
}
.scroll-video-free .scroll-video-sticky {
  position: relative;
  top: auto;
  height: auto;
  min-height: min(78vh, 820px);
}
.scroll-video-immersive {
  --immersive-progress: 0;
  --credit-opacity: 1;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.scroll-video-immersive .scroll-video-sticky {
  min-height: 92vh;
  padding: clamp(2rem, 5vw, 5rem);
  box-sizing: border-box;
  background: rgba(0, 0, 0, var(--immersive-progress));
  transition: background-color .12s linear;
}
.scroll-video-immersive video {
  width: min(calc(72vw + (20vw * var(--immersive-progress))), 1440px);
  height: min(calc(72vh + (16vh * var(--immersive-progress))), 940px);
  transition: width .12s linear, height .12s linear;
}
.manifesto-video-credit {
  position: absolute;
  right: clamp(1rem, 2.5vw, 3rem);
  top: clamp(1rem, 2.5vw, 3rem);
  z-index: 3;
  width: clamp(180px, 16vw, 260px);
  margin: 0;
  padding: .8rem;
  background: rgba(243, 242, 238, .94);
  color: #5a1e1e;
  font-family: "DMSansLocal", Arial, sans-serif;
  font-size: clamp(.65rem, .8vw, .82rem);
  font-weight: 400;
  line-height: 1.35;
  text-align: right;
  transform: none;
  opacity: var(--credit-opacity);
  transition: opacity .12s linear;
  pointer-events: none;
}
.manifesto-video-credit em {
  font-style: normal;
}

.word-field {
  min-height: 420px;
  position: relative;
  margin-top: 3rem;
  border: 1px solid #444;
  overflow: hidden;
}
.word-field span {
  position: absolute;
  font-family:"GrandLocal",Arial,sans-serif;
  font-size: clamp(2rem, 6vw, 6rem);
  cursor: grab;
  user-select: none;
}
.word-field span:nth-child(1){ left: 7%; top: 12%; }
.word-field span:nth-child(2){ left: 48%; top: 8%; }
.word-field span:nth-child(3){ left: 24%; top: 42%; }
.word-field span:nth-child(4){ left: 62%; top: 46%; }
.word-field span:nth-child(5){ left: 10%; top: 72%; }
.word-field span:nth-child(6){ left: 72%; top: 76%; }

pre {
  overflow-x: auto;
  margin-top: 3rem;
  padding: 2rem;
  background: #000;
  border: 1px solid #444;
  font-size: clamp(.85rem, 1.8vw, 1.2rem);
}
details {
  margin-top: 3rem;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
  padding: 1.5rem 0;
}
summary { font-size: 1.2rem; font-weight: 800; }

footer {
  min-height: 45vh;
  padding: 5vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  color: #111;
}
footer a { color: inherit; font-size: 2rem; }

@media (max-width: 700px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter-number {
    writing-mode: horizontal-tb;
    padding: 3rem 1.5rem 0;
    font-size: 5rem;
  }
  .chapter-copy { padding: 3rem 1.5rem 6rem; }
  .split-demo { grid-template-columns: 1fr; }
  .split-demo > div + div { border-left: 0; border-top: 1px solid #555; }
  .scroll-video {
    height: 260vh;
    margin-top: 4rem;
  }
  .scroll-video video {
    width: 100%;
    height: min(70vh, 620px);
  }
  .scroll-video-free {
    height: auto;
  }
  .scroll-video-free .scroll-video-sticky {
    min-height: min(70vh, 620px);
  }
}


.concept {
  background:
    radial-gradient(circle at 75% 20%, rgba(20, 216, 237, .14), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(255, 0, 96, .12), transparent 30%),
    #0b0b0c;
}
.concept .kicker,
.concept h1 {
  color: var(--paper);
}
.concept-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #555;
}
.concept-grid > div {
  min-height: 220px;
  padding: 2rem;
  border-right: 1px solid #555;
  border-bottom: 1px solid #555;
}
.concept-grid > div:nth-child(2n) {
  border-right: 0;
}
.concept-grid > div:nth-last-child(-n+2) {
  border-bottom: 0;
}
.concept-grid strong {
  display: block;
  margin-bottom: 1.5rem;
  font-size: .85rem;
  letter-spacing: .16em;
}
.concept-grid p {
  margin: 0;
  max-width: 32ch;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .concept-grid {
    grid-template-columns: 1fr;
  }
  .concept-grid > div,
  .concept-grid > div:nth-child(2n),
  .concept-grid > div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid #555;
  }
  .concept-grid > div:last-child {
    border-bottom: 0;
  }
}

/* V3 working typography */
:root{
 --bg:#fff;
 --paper:#fff;
 --cyan:#5a1e1e;
 --magenta:#5a1e1e;
 --yellow:#5a1e1e;
 --red:#5a1e1e;
 --purple:#5a1e1e;
}
html,body,.cover,.chapter,.concept,footer{background:#fff!important;color:#1d1d1d!important;}
.cover img{display:none!important;}
body,p,a,button,summary,details,pre,footer,.index a{
 font-family:"DMSansLocal",Arial,sans-serif!important;
}
h1,.word-field span{
 font-family:"GrandLocal",Arial,sans-serif!important;
 text-transform:uppercase!important;
 font-weight:400!important;
 color:#5a1e1e!important;
}
h2,h3,.kicker,.chapter-number,blockquote,.cover-overlay{
 font-family:"TiminoLocal",Georgia,serif!important;
 text-transform:uppercase!important;
 font-weight:400!important;
 color:#5a1e1e!important;
}
.cyan h1,.yellow h1,.magenta h1,.red h1,.purple h1,
.cyan .kicker,.yellow .kicker,.magenta .kicker,.red .kicker,.purple .kicker,
.concept h1,.concept .kicker{color:#5a1e1e!important;}
.index{background:#fff!important;border-color:#ddd!important;}
.index a{color:#1d1d1d!important;}
.index a:hover{background:#5a1e1e!important;color:#fff!important;}
#progress{background:#5a1e1e!important;height:2px!important;}
.chapter,.split-demo,.word-field,.concept-grid,.concept-grid>div,details,pre{
 border-color:#d9d5cf!important;
}
blockquote,pre{background:transparent!important;}


/* ===== Compact title organisation ===== */
.chapter-copy {
  max-width: 760px;
}

h1 {
  max-width: 9ch;
  margin: 0 0 1rem 0 !important;
  line-height: 0.82 !important;
  letter-spacing: -0.045em !important;
  text-wrap: balance;
}

.kicker {
  margin-bottom: 0.55rem !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
}

.chapter-number {
  margin-bottom: 0.45rem !important;
  letter-spacing: 0.06em !important;
  line-height: 1 !important;
}

.chapter-copy > p:not(.kicker) {
  max-width: 58ch;
  margin-top: 0.8rem;
}

.concept h1 {
  max-width: 8ch;
}

.word-field span {
  letter-spacing: -0.035em !important;
  line-height: 0.9 !important;
}

@media (max-width: 760px) {
  h1,
  .concept h1 {
    max-width: 7ch;
    line-height: 0.86 !important;
  }
}


/* ===== Interactive node editor: first section ===== */
.node-editor {
  position: relative;
  width: 100%;
  height: min(62vh, 560px);
  min-height: 430px;
  margin-top: 2.5rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to right, rgba(90,30,30,.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(90,30,30,.075) 1px, transparent 1px);
  background-size: 28px 28px;
  touch-action: none;
}

.node-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.node-wire {
  fill: none;
  stroke: #5a1e1e;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.adar-node {
  position: absolute;
  width: clamp(155px, 22vw, 220px);
  min-height: 116px;
  padding: 0 1rem 1rem;
  border: 1px solid #5a1e1e;
  background: rgba(255,255,255,.96);
  color: var(--text);
  cursor: grab;
  user-select: none;
  z-index: 2;
}

.adar-node:active {
  cursor: grabbing;
}

.adar-node header {
  margin: 0 -1rem .8rem;
  padding: .55rem 1rem .45rem;
  border-bottom: 1px solid #5a1e1e;
  font-family: "TiminoLocal", Georgia, serif;
  color: #5a1e1e;
  letter-spacing: .08em;
  line-height: 1;
}

.adar-node p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.35;
}

.adar-node p + p {
  margin-top: .35rem;
}

.software-board {
  height: min(66vh, 590px);
  margin-top: 3rem;
}

.software-board .adar-node {
  width: clamp(170px, 24vw, 235px);
}

.walkthrough-video {
  margin-top: clamp(4rem, 9vw, 7rem);
}

.walkthrough-video h2 {
  margin: 0 0 1.25rem;
  color: #5a1e1e;
  font-family: "TiminoLocal", Georgia, serif !important;
  font-size: clamp(1.65rem, 3.2vw, 3rem);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1;
  text-transform: none !important;
}

.walkthrough-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #d9d5cf;
  background: #000;
}

.walkthrough-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.port {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  padding: 0;
  border: 1px solid #5a1e1e;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  cursor: crosshair;
}

.port:hover,
.port.is-selected {
  background: #5a1e1e;
}

.input-port { left: -7px; }
.output-port { right: -7px; }

.node-hint {
  position: absolute;
  left: 12px;
  bottom: 8px;
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: .62rem;
  letter-spacing: .08em;
  color: #767676;
  pointer-events: none;
}

@media (max-width: 700px) {
  .node-editor {
    height: 600px;
  }

  .adar-node {
    width: 150px;
  }
}


/* ===== Shared two-line editorial titles ===== */
.chapter .section-title {
  width: 100%;
  max-width: none !important;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: .84 !important;
  letter-spacing: -.045em !important;
}

.section-title > span {
  display: block;
  white-space: nowrap;
}

.section-title > .chapter-visible-line {
  letter-spacing: .065em;
}

.concept-title {
  position: relative;
  width: 100%;
  transition: opacity .5s ease, transform .7s cubic-bezier(.22,1,.36,1);
}

.title-node-layer {
  position: relative;
  width: 100%;
  height: 150px;
  margin-bottom: .5rem;
  overflow: visible;
  pointer-events: none;
  z-index: 4;
}

.title-word-node {
  position: absolute;
  left: 0;
  top: 0;
  padding: .45rem .65rem .38rem;
  border: 1px solid #5a1e1e;
  background: rgba(255,255,255,.97);
  color: #5a1e1e;
  font-family: "TiminoLocal", Georgia, serif;
  font-size: clamp(.72rem, 1vw, .9rem);
  line-height: 1;
  letter-spacing: .08em;
  opacity: 0;
  transform: translate(0, -30px) scale(.96);
  transition:
    opacity .45s ease,
    transform 1.1s cubic-bezier(.22,1,.36,1);
}

#concept.is-deconstructed .concept-title {
  opacity: .12;
  transform: translateY(-12px);
}

#concept.is-deconstructed .title-word-node {
  opacity: 1;
}

#concept.is-deconstructed .title-word-node:nth-child(1) {
  transform: translate(0, 18px);
}
#concept.is-deconstructed .title-word-node:nth-child(2) {
  transform: translate(clamp(190px, 37vw, 360px), -8px);
}
#concept.is-deconstructed .title-word-node:nth-child(3) {
  transform: translate(clamp(70px, 17vw, 170px), 92px);
}
#concept.is-deconstructed .title-word-node:nth-child(4) {
  transform: translate(clamp(300px, 58vw, 560px), 72px);
}

.node-wires {
  pointer-events: auto;
}

.node-wire {
  pointer-events: stroke;
  cursor: pointer;
  transition: stroke-width .18s ease, opacity .18s ease;
}

.node-wire:hover,
.node-wire:focus {
  stroke-width: 4;
  opacity: .65;
  outline: none;
}

.process-workflow {
  margin: 4rem 0 0;
}

.process-workflow figcaption {
  margin-bottom: 1rem;
  color: #5a1e1e;
  font-family: "TiminoLocal", Georgia, serif;
  font-size: .78rem;
  letter-spacing: .12em;
}

.process-workflow-frame {
  width: 100%;
  overflow: hidden;
  border: 1px solid #d9d5cf;
  background: #fff;
}

.process-workflow img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 760px) {
  .chapter .section-title,
  .concept-title {
    width: 100%;
    font-size: clamp(2.6rem, 12vw, 5rem) !important;
  }

  .section-title > span {
    white-space: normal;
  }

  .manifesto-video-credit {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: min(52vw, 15rem);
    margin: 0;
    transform: none;
  }

  #concept.is-deconstructed .title-word-node:nth-child(1) {
    transform: translate(0, 20px);
  }
  #concept.is-deconstructed .title-word-node:nth-child(2) {
    transform: translate(clamp(125px, 43vw, 250px), 8px);
  }
  #concept.is-deconstructed .title-word-node:nth-child(3) {
    transform: translate(8vw, 82px);
  }
  #concept.is-deconstructed .title-word-node:nth-child(4) {
    transform: translate(clamp(145px, 49vw, 285px), 106px);
  }
}
