@font-face {
  font-family: "Source Serif 4";
  src: url("../../assets/fonts/source-serif-4-400.woff2?v=02194deb") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: Inter;
  src: url("../../assets/fonts/inter-400.woff2?v=8909904a") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: Inter;
  src: url("../../assets/fonts/inter-700.woff2?v=6f56409f") format("woff2");
  font-display: swap;
  font-weight: 700;
}

:root {
  --paper: #ede5d5;
  --paper-light: #f6f0e4;
  --ink: #171915;
  --orange: #d76036;
  --orange-dark: #963617;
  --blue: #315d9a;
  --acid: #d6ff3f;
  --green: #46533a;
  --line: rgba(23, 25, 21, .28);
  --max: 92rem;
  --gutter: max(1.25rem, calc((100vw - var(--max)) / 2));
}

/* v1.146 PROJECT WIDE CANVAS
   Visual fields grow; local max-width rules still protect readable prose. */
@media (min-width:1600px) {
  :root { --max:112rem; }
}

@media (min-width:2200px) {
  :root { --max:clamp(132rem,84vw,168rem); }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

figure {
  margin: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: .8rem 1rem;
  background:var(--panel-dark,var(--ink));
  color: white;
}

.skip-link:focus {
  top: 1rem;
}

.project-header {
  position: relative;
  z-index: 10;
  min-height: 5rem;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.project-header a {
  text-decoration: none;
}

.project-header > span:nth-of-type(2) {
  margin-inline-start: 1.25rem;
}

.kicker {
  margin: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 5rem);
  padding: clamp(4rem, 8vw, 8rem) var(--gutter) clamp(5rem, 9vw, 9rem);
  display: grid;
  grid-template-columns: minmax(20rem, 1fr) minmax(23rem, .74fr);
  grid-template-rows: 1fr auto;
  gap: 3rem clamp(2rem, 8vw, 9rem);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 11% 21%, rgba(215, 96, 54, .15), transparent 25rem),
    linear-gradient(117deg, transparent 68%, rgba(49, 93, 154, .08) 68%);
  content: "";
}

.hero-copy {
  align-self: center;
  min-width: 0;
}

.hero h1 {
  margin: clamp(1.5rem, 4vw, 4rem) 0;
  font-size: clamp(5rem, 11.2vw, 12.5rem);
  letter-spacing: -.065em;
  line-height: .74;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  margin-left: clamp(1rem, 5vw, 6rem);
}

.hero-lead {
  max-width: 33rem;
  margin: 0 0 2rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.2;
}

.text-link {
  display: inline-flex;
  gap: 1.1rem;
  padding: .7rem 0;
  border-bottom: 1px solid;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-main {
  position: relative;
  align-self: center;
  transform: rotate(1.3deg);
}

.hero-main::before {
  position: absolute;
  z-index: -1;
  inset: 2rem -1.2rem -1.2rem 2rem;
  background: var(--orange);
  content: "";
}

.hero-main img {
  width: 100%;
  height: min(68svh, 51rem);
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-main figcaption,
.hero-fragment figcaption {
  padding-top: .7rem;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-fragment {
  position: absolute;
  z-index: 2;
  width: clamp(8rem, 14vw, 14rem);
  padding: .55rem;
  background:var(--panel-light,var(--paper-light));
  box-shadow: 0 1.2rem 3rem rgba(23, 25, 21, .18);
}

.hero-fragment img {
  width: 100%;
  height: clamp(12rem, 24vw, 22rem);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-fragment-blue {
  right: clamp(1rem, 6vw, 7rem);
  bottom: 4rem;
  transform: rotate(-4deg);
}

.hero-fragment-orange {
  right: clamp(14rem, 25vw, 28rem);
  top: 5rem;
  transform: rotate(5deg);
}

.hero-mark {
  position: absolute;
  right: 1.1rem;
  top: 44%;
  margin: 0;
  color: var(--orange);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.45;
  text-align: right;
  writing-mode: vertical-rl;
}

.fact-ribbon {
  overflow: hidden;
  border-block: 1px solid rgba(213, 255, 50, .35);
  background:var(--panel-dark,var(--ink));
  color: var(--acid);
  white-space: nowrap;
}

.fact-ribbon-track {
  --ribbon-duration: 24s;
  width: max-content;
  display: flex;
  align-items: center;
  animation: ribbon-slide var(--ribbon-duration) linear infinite;
  will-change: transform;
}

.fact-ribbon span,
.fact-ribbon i {
  display: inline-block;
  padding: 1rem 1.5rem;
  font-size: .68rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .2em;
}

.fact-ribbon i {
  padding-inline: .2rem;
  color: var(--orange);
}

@media (hover: hover) {
  .fact-ribbon:hover .fact-ribbon-track,
  .fact-ribbon:focus-within .fact-ribbon-track {
    animation-play-state: paused;
  }
}

@keyframes ribbon-slide {
  to {
    transform: translateX(-50%);
  }
}

.atelier {
  padding: clamp(6rem, 11vw, 12rem) var(--gutter);
  background:var(--panel-dark,var(--ink));
  color: var(--paper-light);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr .8fr;
  gap: 2rem clamp(3rem, 10vw, 12rem);
  align-items: end;
  max-width: var(--max);
  margin: 0 auto clamp(4rem, 8vw, 8rem);
}

.section-heading .kicker {
  grid-column: 1 / -1;
  color: var(--acid);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(3.8rem, 8.5vw, 9rem);
  letter-spacing: -.06em;
  line-height: .83;
}

.section-heading > p:last-child {
  max-width: 27rem;
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.25;
}

.reveal-workbench {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(24rem, 1.2fr) minmax(18rem, .72fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  align-items: center;
}

.layer-stage {
  position: relative;
  overflow: hidden;
  min-height: min(74svh, 52rem);
  border: 1px solid rgba(246, 240, 228, .36);
  background: #2b2d29;
  touch-action: pan-y;
  user-select: none;
}

.layer-stage:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: .55rem;
}

.layer-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity .45s ease, transform .65s ease;
}

.layer-frame.is-current {
  z-index: 1;
  opacity: 1;
  transform: none;
}

.layer-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layer-frame figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .55rem .7rem;
  background:var(--panel-dark,var(--ink));
  color: white;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.layer-swipe-hint {
  position: absolute;
  z-index: 4;
  right: 1rem;
  top: 1rem;
  display: none;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: .55rem .7rem;
  border: 1px solid rgba(246, 240, 228, .42);
  background: rgba(23, 25, 21, .82);
  color: var(--paper-light);
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity .2s ease, transform .2s ease;
}

.layer-stage.is-touched .layer-swipe-hint {
  opacity: 0;
  transform: translateX(.35rem);
}

.layer-console {
  min-width: 0;
}

.layer-notes {
  position: relative;
  min-height: 23rem;
}

.layer-notes article {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity .4s ease, transform .4s ease;
}

.layer-notes article.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.layer-notes .kicker {
  color: var(--orange);
}

.layer-notes h3 {
  max-width: 30rem;
  margin: 1.4rem 0;
  font-size: clamp(2.6rem, 4.4vw, 5rem);
  letter-spacing: -.05em;
  line-height: .92;
}

.layer-notes article > p:last-child {
  max-width: 27rem;
  margin: 0;
  color: rgba(246, 240, 228, .75);
  font-size: .92rem;
  line-height: 1.6;
}

.layer-actions {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(246, 240, 228, .24);
}

.layer-autoplay-note {
  margin: 0 0 .8rem;
  color: rgba(246, 240, 228, .72);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.layer-desktop-nav {
  display: grid;
  grid-template-columns: auto minmax(5rem, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.layer-arrow {
  min-height: 2.75rem;
  padding: .5rem 0;
  border: 0;
  background: transparent;
  color: var(--paper-light);
  cursor: pointer;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.layer-arrow:hover,
.layer-arrow:focus-visible {
  color: var(--acid);
  outline: none;
}

.layer-progress {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(246, 240, 228, .38);
}

.layer-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--layer-progress, 0%);
  background: var(--acid);
  content: "";
  transition: width .3s ease;
}

.layer-arrow:focus-visible,
.cat-actions button:focus-visible,
.button-link:focus-visible,
.dialog-bar button:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.pigment-field {
  position: relative;
  min-height: 0;
  padding: clamp(6rem, 12vw, 13rem) var(--gutter) clamp(5rem, 10vw, 8rem);
  display: grid;
  grid-template-columns: minmax(34rem, 1.15fr) repeat(2, minmax(15rem, .85fr));
  grid-template-rows: auto auto;
  gap: clamp(3rem, 5vw, 5.5rem) clamp(2rem, 3vw, 3.5rem);
  align-items: start;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(23, 25, 21, .08) 50%, transparent 50.1%),
    var(--paper);
}

.pigment-field-title {
  grid-column: 1;
  grid-row: 1;
  max-width: 40rem;
}

.pigment-field-title .kicker {
  color: var(--orange-dark);
}

.pigment-field h2 {
  margin: 1.5rem 0 0;
  font-size: clamp(4.4rem, 6.5vw, 6.6rem);
  letter-spacing: -.065em;
  line-height: .82;
}

.pigment-piece {
  position: relative;
  width: 100%;
  padding: .75rem;
  background:var(--panel-light,var(--paper-light));
  box-shadow: 0 1.4rem 4rem rgba(23, 25, 21, .16);
}

.pigment-piece img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(.85);
  transition: filter .65s ease, transform .65s cubic-bezier(.2, .75, .2, 1);
}

.pigment-piece:hover img,
.pigment-piece:focus-within img {
  filter: saturate(1.18);
  transform: scale(.985);
}

.pigment-piece figcaption {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 1rem;
  padding: .9rem .2rem .2rem;
  font-size: .7rem;
  line-height: 1.45;
}

.pigment-piece figcaption b {
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pigment-piece figcaption span {
  color: rgba(23, 25, 21, .7);
}

.pigment-piece-orange {
  grid-column: 2;
  grid-row: 1;
  transform: rotate(-1.25deg);
}

.pigment-piece-green {
  grid-column: 3;
  grid-row: 1;
  transform: rotate(1.25deg);
}

.pigment-piece-shimmer {
  grid-column: 2;
  grid-row: 2;
  transform: rotate(1deg);
}

.pigment-piece-table {
  grid-column: 3;
  grid-row: 2;
  transform: rotate(-1deg);
}

.field-note {
  grid-column: 1;
  grid-row: 2;
  position: static;
  align-self: start;
  max-width: 30rem;
  margin: 0;
  padding-top: 1rem;
  border-top: 4px solid var(--orange);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  line-height: 1.12;
}

.researchers {
  position: relative;
  padding: clamp(6rem, 11vw, 12rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(23rem, 1.15fr) minmax(20rem, .85fr);
  gap: clamp(3rem, 8vw, 9rem);
  background: #283d36;
  color: var(--paper-light);
}

.researchers-photo {
  position: relative;
}

.researchers-photo img {
  display: block;
  width: 100%;
  max-height: 60rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
}

.layer-frame-archive img {
  object-position: 50% 58%;
}

.researchers-photo figcaption {
  margin-top: .75rem;
  color: rgba(246, 240, 228, .65);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.researchers-copy {
  align-self: center;
}

.researchers-copy .kicker {
  color: var(--acid);
}

.researchers h2 {
  margin: 1.5rem 0 2.5rem;
  font-size: clamp(3.8rem, 7vw, 7.7rem);
  letter-spacing: -.06em;
  line-height: .84;
}

.researchers-copy > p {
  max-width: 34rem;
  color: rgba(246, 240, 228, .76);
  font-size: .92rem;
  line-height: 1.65;
}

.researchers-copy .researchers-lead {
  color: var(--paper-light);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.3;
}

.researcher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  padding: .8rem 1rem;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: var(--ink);
  cursor: pointer;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
}

.button-secondary {
  background: transparent;
  color: var(--paper-light);
}

.micro-copy {
  font-size: .65rem !important;
  letter-spacing: .08em;
}

.research-thesis {
  grid-column: 1 / -1;
  max-width: 70rem;
  margin: clamp(4rem, 9vw, 9rem) 0 0 auto;
  padding: 1.5rem 0 0 clamp(2rem, 12vw, 14rem);
  border-top: 1px solid rgba(246, 240, 228, .4);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 5.3rem);
  letter-spacing: -.035em;
  line-height: 1;
}

.research-thesis span {
  display: block;
  margin-bottom: 1rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.cat-lab {
  padding: clamp(6rem, 11vw, 12rem) var(--gutter);
  background: #c76039;
  color: #131510;
}

.cat-copy {
  max-width: var(--max);
  margin: 0 auto clamp(4rem, 8vw, 8rem);
  display: grid;
  grid-template-columns: 1.25fr .65fr;
  gap: 2rem clamp(3rem, 10vw, 12rem);
  align-items: end;
}

.cat-copy .kicker {
  grid-column: 1 / -1;
}

.cat-copy h2 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 10rem);
  letter-spacing: -.065em;
  line-height: .82;
}

.cat-copy > p:not(.kicker):not(.reconstruction-label) {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.28;
}

.reconstruction-label {
  grid-column: 2;
  margin: -1rem 0 0;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.cat-workshop {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(22rem, .9fr) minmax(19rem, .65fr);
  gap: clamp(3rem, 9vw, 11rem);
  align-items: start;
}

.cat-paper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background:
    repeating-linear-gradient(0deg, rgba(23, 25, 21, .025) 0 1px, transparent 1px 5px),
    #f5edda;
  box-shadow: 0 2rem 5rem rgba(73, 30, 13, .25);
  transform: rotate(-1.5deg);
}

.cat-sequence {
  aspect-ratio: 1122 / 1402;
  padding: clamp(.85rem, 1.8vw, 1.35rem);
  touch-action: pan-y;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, .34), transparent 42%),
    repeating-linear-gradient(0deg, rgba(23, 25, 21, .02) 0 1px, transparent 1px 5px),
    #f5edda;
}

.cat-sequence:focus-visible {
  outline: 2px solid #131510;
  outline-offset: .55rem;
}

.cat-sequence-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(21, 18, 13, .08);
}


.cat-swipe-hint {
  position: absolute;
  right: .85rem;
  top: .85rem;
  display: none;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: .45rem .6rem;
  border: 1px solid rgba(19, 21, 16, .4);
  background: rgba(245, 237, 218, .84);
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity .2s ease, transform .2s ease;
}

.cat-sequence.is-touched .cat-swipe-hint {
  opacity: 0;
  transform: translateX(.35rem);
}

.cat-console h3 {
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 5vw, 5.6rem);
  letter-spacing: -.055em;
  line-height: .9;
}

.cat-note {
  max-width: 26rem;
  min-height: 4.5rem;
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
}

.cat-actions {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(23, 25, 21, .35);
}

.cat-autoplay-note {
  margin: 0 0 .8rem;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cat-desktop-nav {
  display: grid;
  grid-template-columns: auto minmax(5rem, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.cat-arrow {
  min-height: 2.75rem;
  padding: .5rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cat-arrow:hover,
.cat-arrow:focus-visible {
  color: #f5edda;
  outline: none;
}

.cat-progress {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(19, 21, 16, .35);
}

.cat-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--cat-progress, 0%);
  background: #131510;
  content: "";
  transition: width .3s ease;
}

.sources {
  padding: clamp(6rem, 10vw, 10rem) var(--gutter);
  background:var(--panel-light,var(--paper-light));
}

.sources .kicker {
  color: var(--orange-dark);
}

.sources h2 {
  margin: 1.5rem 0 clamp(3rem, 7vw, 7rem);
  font-size: clamp(4rem, 9vw, 9rem);
  letter-spacing: -.06em;
  line-height: .82;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.source-grid a {
  min-height: 9rem;
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: .5fr 1.5fr auto;
  gap: 1rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background-color .25s ease, padding .25s ease;
}

.source-grid a:nth-child(odd) {
  padding-right: 1.5rem;
}

.source-grid a:nth-child(even) {
  padding-left: 1.5rem;
}

.source-grid a:hover,
.source-grid a:focus-visible {
  padding-inline: 1.2rem;
  background: var(--acid);
  outline: 0;
}

.source-grid span {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.source-grid b {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.45rem, 2.5vw, 2.6rem);
  font-weight: 400;
}

.source-grid i {
  font-style: normal;
}

.project-footer {
  min-height: 6rem;
  padding: 1.5rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--line);
  background:var(--panel-light,var(--paper-light));
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-footer p {
  margin: 0;
}

.project-footer p:last-child {
  text-align: right;
}

.ambio-dialog {
  width: min(92vw, 84rem);
  height: min(88svh, 54rem);
  padding: 0;
  border: 1px solid var(--ink);
  background:var(--panel-light,var(--paper-light));
  color: var(--ink);
}

.ambio-dialog::backdrop {
  background: rgba(11, 13, 10, .83);
  backdrop-filter: blur(.35rem);
}

.dialog-bar {
  min-height: 4rem;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.dialog-bar p {
  margin: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dialog-bar button {
  padding: .5rem 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ambio-frame-mount {
  height: calc(100% - 7.5rem);
}

.ambio-frame-mount iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.ambio-frame-mount > p {
  padding: 2rem;
}

.dialog-fallback {
  margin: 0;
  padding: .9rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .7rem;
}

@media (max-width: 1200px) {
  .pigment-field {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  }

  .pigment-field-title {
    grid-column: 1 / -1;
    grid-row: auto;
    max-width: 44rem;
  }

  .pigment-piece,
  .pigment-piece-orange,
  .pigment-piece-green,
  .pigment-piece-shimmer,
  .pigment-piece-table,
  .field-note {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
    transform: none;
  }

  .field-note {
    grid-column: 1 / -1;
    max-width: 35rem;
  }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr minmax(20rem, .8fr);
  }

  .hero-fragment-orange {
    right: 42%;
  }

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

@media (max-width: 820px) {
  /* Phone and narrow-tablet: each sequence is advanced by autoplay or a swipe.
     Keep the controls in the viewport instead of leaving a duplicate row below it. */
  .layer-actions,
  .cat-actions {
    display: none;
  }

  .layer-swipe-hint,
  .cat-swipe-hint {
    display: inline-flex;
  }

  /* A touch WebView can preserve :hover after a tap. Keep this short, visible
     motion independent of that state; reduced-motion users are handled below. */
  .fact-ribbon-track {
    --ribbon-duration: 16s;
    animation-play-state: running;
  }

  .project-header {
    grid-template-columns: 1fr auto;
  }

  .project-header > span:nth-of-type(2) {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: clamp(5rem, 19vw, 9.5rem);
  }

  .hero h1 span:last-child {
    margin-left: .5rem;
  }

  .hero-main {
    width: min(88%, 34rem);
    margin-left: auto;
  }

  .hero-main img {
    height: min(68svh, 44rem);
  }

  .hero-fragment {
    width: clamp(7rem, 24vw, 11rem);
  }

  .hero-fragment-blue {
    right: auto;
    left: 1.2rem;
    bottom: 3rem;
  }

  .hero-fragment-orange {
    right: 1rem;
    top: 42%;
  }

  .hero-mark {
    display: none;
  }

  .hero-fragment {
    display: none;
  }

  .section-heading,
  .reveal-workbench,
  .cat-copy,
  .cat-workshop,
  .researchers {
    grid-template-columns: 1fr;
  }

  .section-heading > p:last-child {
    max-width: 34rem;
  }

  .layer-stage {
    min-height: 70svh;
  }

  .layer-console {
    max-width: 38rem;
  }

  .pigment-field {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1rem;
  }

  .pigment-field-title {
    grid-column: 1 / -1;
    grid-row: auto;
    max-width: 38rem;
  }

  .pigment-piece,
  .pigment-piece-orange,
  .pigment-piece-green,
  .pigment-piece-shimmer,
  .pigment-piece-table,
  .field-note {
    position: relative;
    inset: auto;
    width: auto;
    margin: 0;
    transform: none;
  }

  .pigment-piece {
    grid-column: auto;
    grid-row: auto;
  }

  .field-note {
    grid-column: 1 / -1;
    grid-row: auto;
    margin: 1rem 0 0;
  }

  .researchers-photo {
    max-width: 42rem;
  }

  .researchers-copy {
    max-width: 42rem;
  }

  .research-thesis {
    grid-column: 1;
    padding-left: 0;
  }

  .cat-copy .kicker,
  .reconstruction-label {
    grid-column: auto;
  }

  .cat-paper {
    width: min(100%, 37rem);
  }

  .cat-console {
    max-width: 38rem;
  }

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

  .source-grid a:nth-child(n) {
    padding-inline: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 1rem;
  }

  .project-header {
    min-height: 4.25rem;
    grid-template-columns: 1fr;
    font-size: .58rem;
  }

  .project-header > span {
    display: none;
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 5rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.8rem, 17.2vw, 6rem);
    line-height: .8;
  }

  .hero-lead {
    max-width: 18rem;
    font-size: 1.35rem;
    overflow-wrap: break-word;
  }

  .hero-main {
    width: 84%;
    margin-right: 1rem;
  }

  .hero-main::before {
    inset: 1rem -.6rem -.6rem 1rem;
  }

  .hero-main img {
    height: 61svh;
  }

  .hero-fragment-orange {
    top: 46%;
  }

  .fact-ribbon span,
  .fact-ribbon i {
    padding-block: .85rem;
  }

  .atelier,
  .cat-lab,
  .researchers,
  .sources,
  .pigment-field {
    padding-block: 5rem;
  }

  .section-heading h2,
  .pigment-field h2,
  .cat-copy h2,
  .sources h2 {
    font-size: clamp(3.4rem, 17vw, 5.7rem);
  }

  .layer-stage {
    min-height: 68svh;
  }

  .layer-notes {
    min-height: 21rem;
  }

  .layer-notes h3 {
    font-size: 3rem;
  }

  .pigment-field {
    grid-template-columns: 1fr;
  }

  .pigment-field-title,
  .field-note {
    grid-column: 1;
    grid-row: auto;
  }

  .pigment-piece,
  .pigment-piece-orange,
  .pigment-piece-green,
  .pigment-piece-shimmer,
  .pigment-piece-table,
  .field-note {
    grid-column: 1;
    grid-row: auto;
    margin: 0;
    transform: none;
  }

  .pigment-piece figcaption {
    grid-template-columns: 1fr;
  }

  .researchers h2 {
    font-size: clamp(3.4rem, 16vw, 5.5rem);
  }

  .researcher-actions {
    display: grid;
  }

  .button-link {
    justify-content: center;
    width: 100%;
  }

  .research-thesis {
    font-size: 2.5rem;
  }

  .cat-workshop {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .cat-paper {
    width: 100%;
    transform: none;
  }

  .cat-console h3 {
    font-size: 3.2rem;
  }

  .source-grid a {
    grid-template-columns: 1fr auto;
    min-height: 8rem;
  }

  .source-grid a span {
    grid-column: 1 / -1;
  }

  .project-footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .project-footer p:last-child {
    text-align: left;
  }

  .ambio-dialog {
    width: 100vw;
    height: 100svh;
    max-width: none;
    max-height: none;
    margin: 0;
  }
}

@media (hover: none) {
  .pigment-piece img {
    filter: saturate(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .fact-ribbon-track {
    transform: none;
  }
}

/* The workshop's material ribbon is an explicit part of this mobile study,
   so it remains visible when this chapter is opened in a WebView that reports
   reduced motion by default. The remaining page still honours that setting. */
@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .fact-ribbon-track {
    animation: ribbon-slide 16s linear infinite !important;
  }
}

@media(min-width:2200px){html{font-size:clamp(17px,.78vw,21px)}}

/* ─────────────────────────────────────────────────────────────
   Dunkle Darstellung.
   Möglich, weil Flächen und Schrift getrennte Merkmale haben:
   --panel-* tragen die Flächen, --ink nur noch die Schrift.
   Die Erdtöne bleiben warm, nicht neutral grau.
   ───────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --paper: #191510;
  --ink: #ece4d5;
  --panel-dark: #171915;
  --panel-light: #231d16;
  --line: rgba(236, 228, 213, .22);
  --orange-dark: #e08a5f;
}

/* Auf der Signalfarbe bleibt die Schrift dunkel. */
[data-theme="dark"] .button-link:not(.button-secondary) {
  color: #191510;
}

/* Fest notierte dunkle Töne, die auf dunklem Grund verschwinden. */
[data-theme="dark"] .pigment-piece span {
  color: rgba(236, 228, 213, .72);
}

[data-theme="dark"] .ambio-dialog button {
  color: var(--ink);
}

/* ─────────────────────────────────────────────────────────────
   Schrift auf der Signalfarbe bleibt in beiden Darstellungen dunkel.
   --ink ist im dunklen Thema hell; ohne diese Regel verschwindet
   jede Beschriftung auf dem Acid-Grund. Vollständig erzeugt aus
   allen Stellen, die diesen Grund setzen.
   ───────────────────────────────────────────────────────────── */
[data-theme="dark"] .layer-progress i { color: #101010; }
[data-theme="dark"] .button-link { color: #101010; }
[data-theme="dark"] .source-grid a:hover, .source-grid a:focus-visible { color: #101010; }

/* Atelier und Faktenband sind im hellen Entwurf dunkle Flaechen. Im
   dunklen Thema lagen sie mit 1.03 auf dem Grund auf.
   Grund #191510 -> Flaeche #2f2a24 (1.28). */
[data-theme="dark"] { --panel-dark: #2f2a24; }

/* Auf der angehobenen Atelierflaeche traegt das dunkle Orange nicht mehr:
   gemessen 4.73 auf dem alten Grund, 3.80 auf dem neuen. Die Karten
   nehmen den hellen Ton, den die Seite im dunklen Thema ohnehin fuehrt. */
[data-theme="dark"] .atelier article .kicker { color: var(--orange-dark); }


/* v4.8.100 · concise final authorial position */
.pigment-reflection{
  padding:clamp(5rem,8vw,8rem) var(--gutter) clamp(6rem,10vw,10rem);
  border-top:1px solid var(--line);
  background:var(--paper);
}
.pigment-reflection .kicker{color:var(--orange-dark)}
.pigment-reflection h2{
  max-width:13ch;
  margin:1.15rem 0 1.7rem;
  font-size:clamp(3rem,6vw,6.5rem);
  line-height:.94;
  letter-spacing:-.05em;
}
.pigment-reflection>p:last-child{
  max-width:48rem;
  margin:0;
  font-size:clamp(1rem,1.5vw,1.25rem);
  line-height:1.55;
}
