/* ============================================================
   Collective Dynamics Lab — Specimen Cabinet
   An editorial, archival visual system.
   ============================================================ */

:root {
  /* Paper & ink */
  --paper: #f4efe6;
  --paper-2: #ece5d6;
  --paper-3: #e3dac6;
  --ink: #1a1a1a;
  --ink-2: #3a3a3a;
  --ink-3: #6a6a6a;
  --ink-4: #9a9486;
  --rule: #cabfa8;

  /* Default accent (overridden per project) */
  --accent: #1f4e5f;

  /* Type */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Size scale */
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-lg: 1.125rem;
  --t-xl: clamp(1.25rem, 1.6vw, 1.6rem);
  --t-2xl: clamp(1.75rem, 3vw, 2.5rem);
  --t-3xl: clamp(2.5rem, 5vw, 4rem);
  --t-hero: clamp(3rem, 8vw, 6.5rem);

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1400px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.55;
  background:
    /* very subtle paper grain */ radial-gradient(
      ellipse at 20% 10%,
      rgba(180, 150, 100, 0.06),
      transparent 60%
    ),
    radial-gradient(ellipse at 80% 80%, rgba(150, 110, 60, 0.05), transparent 60%),
    var(--paper);
  min-height: 100vh;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(
    to bottom,
    rgba(244, 239, 230, 0.95) 0%,
    rgba(244, 239, 230, 0.85) 70%,
    rgba(244, 239, 230, 0) 100%
  );
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-word em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.brand-word small {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-size: var(--t-sm);
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
  position: relative;
  padding: 0.25rem 0;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 640px) {
  .brand-word small {
    display: none;
  }
  .site-nav {
    gap: 1rem;
  }
}

/* ------------------------------------------------------------
   MAIN APP
   ------------------------------------------------------------ */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 6rem;
  min-height: 70vh;
}

.view {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------
   GALLERY VIEW
   ------------------------------------------------------------ */

.gallery-hero {
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

@media (max-width: 880px) {
  .gallery-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.gallery-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-hero);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
  font-variation-settings: "opsz" 144;
}

.gallery-hero h1 em {
  font-style: italic;
  color: var(--ink-2);
  font-weight: 300;
}

.gallery-hero .lede {
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 38ch;
  margin: 0;
}

.gallery-hero .lede strong {
  color: var(--ink);
  font-weight: 500;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 540px) {
  .gallery-meta {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
  }
  .gallery-meta .meta-divider {
    display: none;
  }
}

.gallery-meta .meta-divider {
  flex: 1;
  height: 1px;
  background: var(--rule);
  margin: 0 1.5rem;
}

/* The 10-up grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--rule);
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.specimen {
  background: var(--paper);
  padding: 1.75rem 1.5rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 280px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  animation: cellIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.specimen:nth-child(1) { animation-delay: 0.02s; }
.specimen:nth-child(2) { animation-delay: 0.06s; }
.specimen:nth-child(3) { animation-delay: 0.1s; }
.specimen:nth-child(4) { animation-delay: 0.14s; }
.specimen:nth-child(5) { animation-delay: 0.18s; }
.specimen:nth-child(6) { animation-delay: 0.22s; }
.specimen:nth-child(7) { animation-delay: 0.26s; }
.specimen:nth-child(8) { animation-delay: 0.3s; }
.specimen:nth-child(9) { animation-delay: 0.34s; }
.specimen:nth-child(10) { animation-delay: 0.38s; }

@keyframes cellIn {
  to { opacity: 1; transform: translateY(0); }
}

.specimen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.specimen:hover::before {
  opacity: 0.06;
}

.specimen-no {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.specimen-no .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.specimen-glyph {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1;
}

.specimen-glyph svg {
  width: 100%;
  max-width: 120px;
  height: auto;
  color: var(--ink);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.specimen:hover .specimen-glyph svg {
  transform: scale(1.06);
}

.specimen-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  position: relative;
  z-index: 1;
}

.specimen-tag {
  font-size: var(--t-xs);
  color: var(--ink-3);
  line-height: 1.4;
  font-style: italic;
  font-family: var(--serif);
  position: relative;
  z-index: 1;
}

/* About strip below grid */
.about-strip {
  padding: clamp(3rem, 6vw, 5rem) 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 720px) {
  .about-strip {
    grid-template-columns: 1fr;
  }
}

.about-strip h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-2xl);
  font-style: italic;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1;
}

.about-strip .body {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.about-strip .body p + p {
  margin-top: 1rem;
}

/* ------------------------------------------------------------
   PROJECT DETAIL VIEW
   ------------------------------------------------------------ */

.detail {
  padding-top: 1.5rem;
}

.crumbs {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.crumbs a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s;
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs .arrow {
  opacity: 0.5;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 880px) {
  .detail-hero {
    grid-template-columns: 1fr;
  }
}

.detail-text .eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.detail-text .eyebrow .rule {
  width: 32px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.detail-text h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-3xl);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  font-variation-settings: "opsz" 144;
}

.detail-text .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-xl);
  line-height: 1.3;
  color: var(--ink-2);
  margin: 0 0 1.5rem;
  font-weight: 300;
}

.detail-text .subtitle {
  font-size: var(--t-base);
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 50ch;
  margin: 0;
}

.detail-hero-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--paper-2);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.detail-hero-glyph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
  opacity: 0.08;
}

.detail-hero-glyph svg {
  width: 60%;
  max-width: 320px;
  height: auto;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

/* corner ticks on glyph frame */
.detail-hero-glyph::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  pointer-events: none;
}

/* ---- body sections ---- */

.detail-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 880px) {
  .detail-body {
    grid-template-columns: 1fr;
  }
}

.section-label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.5rem;
  border-top: 2px solid var(--ink);
  display: inline-block;
  align-self: flex-start;
}

.section-content {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--ink);
  max-width: 62ch;
}

.section-content p + p {
  margin-top: 1.25rem;
}

.section-content .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-xl);
  line-height: 1.3;
  color: var(--ink-2);
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
}

/* two-column list block (references + audiences) */
.detail-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 720px) {
  .detail-lists {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.detail-lists h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: var(--t-xl);
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: var(--t-base);
  line-height: 1.4;
}

.list-clean li:last-child {
  border-bottom: 1px solid var(--rule);
}

.list-clean .marker {
  font-family: var(--mono);
  font-size: var(--t-xs);
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: 0.1em;
  min-width: 1.5rem;
}

.list-clean a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.list-clean a:hover {
  border-bottom-color: var(--accent);
}

/* Next/prev navigation */
.detail-nav {
  padding: clamp(3rem, 6vw, 5rem) 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.detail-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 1.5rem 1.75rem;
  background: var(--paper-2);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.detail-nav a:hover {
  background: var(--paper-3);
}

.detail-nav .dir {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.detail-nav .name {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-lg);
  line-height: 1.2;
}

.detail-nav .nav-prev {
  text-align: left;
}

.detail-nav .nav-next {
  text-align: right;
}

@media (max-width: 640px) {
  .detail-nav {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

.site-footer {
  margin-top: 4rem;
}

.footer-rule {
  height: 1px;
  background: var(--rule);
  max-width: var(--max);
  margin: 0 auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--gutter) 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 0.75rem;
}

.footer-body {
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 42ch;
}

.footer-body em {
  font-family: var(--serif);
  font-style: italic;
}

.footer-body a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s;
}
.footer-body a:hover {
  border-bottom-color: var(--ink);
}

.footer-col--meta {
  text-align: right;
}

.footer-meta {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}

@media (max-width: 720px) {
  .footer-col--meta {
    text-align: left;
  }
}

/* utilities */
.scroll-lock {
  scroll-behavior: smooth;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ============================================================
   STATIC PAGES (about / book / approach / media / supporters)
   Same archival language, broader layouts.
   ============================================================ */

.page { padding-top: 1.5rem; }

.page-eyebrow {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.page-eyebrow .rule { width: 32px; height: 1px; background: var(--accent); display: inline-block; }

.page-hero {
  padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}
@media (max-width: 880px) { .page-hero { grid-template-columns: 1fr; gap: 2rem; } }

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-hero);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
  font-variation-settings: "opsz" 144;
}
.page-hero h1 em { font-style: italic; color: var(--ink-2); font-weight: 300; }
.page-hero .standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-xl);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 40ch;
  margin: 0;
  font-weight: 300;
}

.page-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 880px) { .page-section { grid-template-columns: 1fr; } }

.page-prose {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--ink);
  max-width: 64ch;
}
.page-prose p + p { margin-top: 1.25rem; }
.page-prose strong { color: var(--ink); font-weight: 600; }
.page-prose em { font-family: var(--serif); font-style: italic; }
.page-prose .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-xl);
  line-height: 1.3;
  color: var(--ink-2);
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  max-width: 50ch;
}

/* THESIS / CALLOUT CARD */

.thesis-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 2rem;
  margin-top: 2rem;
  position: relative;
}
.thesis-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
}
.thesis-card .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-xl);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 1rem;
  font-weight: 400;
}
.thesis-card .source {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.thesis-card .tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.thesis-card .tag {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink-2);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--rule);
}

/* PILLARS GRID (book + approach) */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2rem;
}
@media (max-width: 720px) { .pillar-grid { grid-template-columns: 1fr; } }

.pillar {
  background: var(--paper);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pillar .num {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  color: var(--accent);
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.pillar p {
  font-size: var(--t-sm);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.pillar p strong { color: var(--ink); }

/* BOOK PAGE — cover */

.book-cover-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
.book-cover {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #1a2540 0%, #243355 50%, #1a2540 100%);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15), 0 20px 40px -10px rgba(26,37,64,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.25rem;
  color: #f0e8d4;
}
.book-cover::before {
  content: ""; position: absolute; left: 4px; top: 0; bottom: 0;
  width: 1px; background: rgba(0,0,0,0.3);
}
.book-cover .bk-top {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}
.book-cover .bk-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 144;
}
.book-cover .bk-sub {
  font-family: var(--sans);
  font-size: 0.7rem;
  line-height: 1.4;
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.book-cover .bk-author {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn .arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* QUOTE WALL */

.quote-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  margin-top: 2.5rem;
  border: 1px solid var(--rule);
}
@media (max-width: 720px) { .quote-wall { grid-template-columns: 1fr; } }

.quote-card {
  background: var(--paper);
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 220px;
}
.quote-card .q-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 0.6;
  height: 1rem;
  opacity: 0.7;
}
.quote-card blockquote {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  flex: 1;
}
.quote-card .src {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* APPROACH — RAD principle cards */

.rad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2rem;
}
@media (max-width: 720px) { .rad-grid { grid-template-columns: 1fr; } }

.rad-card {
  background: var(--paper);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rad-card .rad-no {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.22em;
  color: var(--accent);
}
.rad-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.rad-card p {
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

/* MEDIA */

.media-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.media-list li {
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s ease;
}
.media-list li:hover { background: var(--paper-2); }
.media-list a {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 0.5rem;
  text-decoration: none;
  color: var(--ink);
}
@media (max-width: 720px) {
  .media-list a { grid-template-columns: 1fr; gap: 0.4rem; }
}
.media-list .outlet {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.media-list .title {
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.media-list .title em { font-style: italic; font-weight: 400; color: var(--ink-2); }
.media-list .desc {
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--ink-3);
  margin-top: 0.4rem;
  max-width: 60ch;
}
.media-list .cta {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.2s;
}
.media-list a:hover .cta { color: var(--accent); }
.media-list .cta::after { content: " →"; }

/* SUPPORTERS */

.founder-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2rem;
}
@media (max-width: 720px) { .founder-block { grid-template-columns: 1fr; } }

.founder {
  background: var(--paper);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.founder .role {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.founder h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  margin: 0;
}
.founder p {
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 50ch;
}

.supporters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 1.5rem;
}
@media (max-width: 880px) { .supporters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .supporters-grid { grid-template-columns: 1fr; } }

.supporter {
  background: var(--paper);
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 110px;
}
.supporter .role {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
}
.supporter .name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: auto;
}
.supporter--anon .name {
  font-style: italic;
  color: var(--ink-3);
  font-weight: 400;
}

.supporter-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-base);
  color: var(--ink-3);
  margin-top: 1.25rem;
  max-width: 60ch;
  line-height: 1.55;
}

/* CTA STRIP */

.cta-strip {
  padding: clamp(3rem, 6vw, 5rem) 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 720px) { .cta-strip { grid-template-columns: 1fr; } }

.cta-strip h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-2xl);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.1;
  max-width: 20ch;
}
.cta-strip .cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================================
   HOME PAGE ADDITIONS
   Project cycle · Review carousel · Videos · Experiment iframe
   ============================================================ */

/* Hero actions (Dive In + See projects) */
.page-hero .hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Section inset — subtle framed area for the cycle inside Premise */
.section-inset {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.section-inset-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.section-inset-label {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-inset-link {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.section-inset-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- PROJECT CYCLE ---------- */
.project-cycle { position: relative; }
.pcycle-stage {
  position: relative;
  min-height: 260px;
  display: grid;
}
.pcycle-card {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  align-items: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}
.pcycle-card.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.pcycle-card:hover .pcycle-name { color: var(--accent); }
.pcycle-no {
  grid-column: 1;
  grid-row: 1 / 3;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  color: var(--ink-3);
  align-self: start;
  margin-top: 0.35rem;
}
.pcycle-glyph {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 88px;
  height: 88px;
  color: var(--accent);
  align-self: center;
  justify-self: center;
  transform: translateX(56px); /* nudge past the number */
}
.pcycle-glyph svg { width: 100%; height: 100%; }
.pcycle-name {
  grid-column: 2;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  transition: color 300ms ease;
}
.pcycle-tag {
  grid-column: 2;
  font-family: var(--sans);
  font-size: var(--t-base);
  color: var(--ink-2);
  line-height: 1.55;
}
.pcycle-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pcycle-counter .pcycle-sep { color: var(--ink-4); margin: 0 0.35rem; }
.pcycle-counter .pcycle-i { color: var(--accent); font-weight: 500; }
.pcycle-all { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.pcycle-all:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 640px) {
  .pcycle-glyph { transform: none; width: 56px; height: 56px; }
  .pcycle-card { grid-template-columns: 56px 1fr; column-gap: 1rem; padding: 1.25rem 0.5rem; }
  .pcycle-no { grid-column: 1 / 3; grid-row: 1; margin-top: 0; }
  .pcycle-glyph { grid-column: 1; grid-row: 2 / 4; }
  .pcycle-name { grid-column: 2; grid-row: 2; font-size: 1.5rem; }
  .pcycle-tag { grid-column: 2; grid-row: 3; }
}

/* ---------- THESIS SPLIT (book cover + reviews) ---------- */
.thesis-split {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 2.5rem;
  align-items: start;
}
.thesis-book { display: flex; flex-direction: column; align-items: center; }
.thesis-book .book-cover-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.thesis-reviews { display: flex; flex-direction: column; gap: 1.25rem; }
.thesis-lede {
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.thesis-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

@media (max-width: 780px) {
  .thesis-split { grid-template-columns: 1fr; gap: 2rem; }
  .thesis-book { align-items: flex-start; }
}

/* ---------- REVIEW CAROUSEL ---------- */
.review-carousel {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.75rem 1.75rem 1.25rem;
}
/* Track measures to whichever slide is currently active.
   Inactive slides are removed from layout to avoid ghosting during fades. */
.review-track {
  position: relative;
}
.review-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms ease, visibility 0s linear 500ms;
  pointer-events: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.review-slide.is-active {
  position: relative; /* the one slide that dictates track height */
  opacity: 1;
  visibility: visible;
  transition: opacity 500ms ease, visibility 0s linear 0s;
  pointer-events: auto;
}
.review-mark {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--accent);
  align-self: start;
  margin-top: 0.75rem;
}
.review-body {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
}
/* Emphasised keyphrases — three tiers to keep a rhythm */
.rev-key {
  transition: color 300ms ease, background 300ms ease;
}
.rev-key--0 {
  font-weight: 600;
  color: var(--accent);
}
.rev-key--1 {
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px dotted var(--accent);
  padding-bottom: 1px;
}
.rev-key--2 {
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--accent) 22%, transparent) 60%);
}
/* Fallback for browsers without color-mix */
@supports not (background: color-mix(in srgb, red, blue)) {
  .rev-key--2 { background: rgba(31, 78, 95, 0.14); }
}

.review-controls {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.review-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--ink-4);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.review-dot:hover { border-color: var(--accent); }
.review-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .review-carousel { padding: 1.25rem; }
  .review-slide { grid-template-columns: 1fr; }
  .review-mark { font-size: 2.5rem; }
}

/* ---------- EXPLAINER VIDEOS ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.video-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.video-card:hover:not(.is-placeholder) {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px -18px rgba(0,0,0,0.35);
}
.video-thumb {
  aspect-ratio: 16 / 9;
  background: var(--paper-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
}
.video-card.is-placeholder .video-thumb { color: var(--ink-4); }
.video-body { padding: 0.9rem 1rem 1rem; }
.video-status {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.video-title {
  font-family: var(--serif);
  font-size: var(--t-lg);
  line-height: 1.3;
  color: var(--ink);
  margin-top: 0.25rem;
}
.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

/* ---------- EXPERIMENT FRAME ---------- */
.experiment-frame-wrap {
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 20px 40px -30px rgba(0,0,0,0.3);
}
.experiment-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.experiment-frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper-3);
  border: 1px solid var(--rule);
}
.experiment-frame-title {
  margin-left: 0.5rem;
}
.experiment-frame-open {
  margin-left: auto;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.experiment-frame-open:hover { color: var(--accent); border-color: var(--accent); }
.experiment-frame {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: var(--paper);
}
@media (max-width: 640px) {
  .experiment-frame { height: 560px; }
}

/* Reduced-motion consideration */
@media (prefers-reduced-motion: reduce) {
  .pcycle-card, .review-slide {
    transition: none;
  }
}
