@font-face {
  font-family: Caveat;
  src: url("/graphic-lab/assets/Caveat.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #f8f7f3;
  --paper: #f3f1ea;
  --night: #050506;
  --red: #ff0037;
  --muted: #aaa9a7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: Montserrat, Arial, sans-serif; }
a { color: inherit; }
button { font: inherit; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 88px;
  padding: 24px clamp(22px, 4vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.site-header a { text-decoration: none; }
.back-link { justify-self: start; letter-spacing: .02em; transition: color .2s; }
.back-link:hover, .back-link:focus-visible { color: var(--red); }
.brand { font-size: 23px; font-weight: 300; letter-spacing: -.065em; white-space: nowrap; }
.brand span { color: var(--red); font-family: Vollkorn, Georgia, serif; font-size: 1.5em; font-weight: 700; line-height: 0; }
.header-tag { justify-self: end; color: #aaa; text-transform: uppercase; letter-spacing: .18em; font-size: 10px; white-space: nowrap; }

.surface { position: relative; isolation: isolate; overflow: hidden; }
.surface--dark { background: var(--night); color: var(--ink); padding: 0 0 clamp(120px, 12vw, 220px); }
.surface--light { background: var(--paper); color: #161719; padding: clamp(92px, 11vw, 160px) 0 80px; }
.surface-content { position: relative; z-index: 1; width: min(100% - 9vw, 1440px); margin: auto; }
.speckles { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: .42; mix-blend-mode: screen; }
.surface--light > .speckles { filter: invert(1); mix-blend-mode: multiply; opacity: .28; }

.intro { min-height: min(94vh, 850px); padding: clamp(160px, 20vh, 230px) 0 100px; display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow, .section-number { color: var(--red); text-transform: uppercase; letter-spacing: .2em; font-weight: 600; font-size: 12px; }
.intro h1 { margin: 26px 0 32px; font-family: Vollkorn, Georgia, serif; font-weight: 400; font-size: clamp(74px, 11vw, 178px); line-height: .83; letter-spacing: -.055em; }
.intro h1 em { font-weight: 400; color: var(--red); }
.intro-copy { max-width: 560px; margin: 0; font-size: clamp(17px, 1.55vw, 22px); line-height: 1.65; color: #d0d0d0; }
.scroll-cue { margin-top: auto; padding-top: 80px; color: #b4b4b4; font-size: 12px; letter-spacing: .07em; }
.scroll-cue span { color: var(--red); margin-left: 9px; font-size: 20px; }

.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: end; padding: 0 0 34px; border-bottom: 1px solid #ffffff45; margin-bottom: 26px; }
.section-heading h2 { max-width: 800px; margin: 0; font-family: Vollkorn, Georgia, serif; font-weight: 400; font-size: clamp(38px, 5vw, 72px); line-height: 1.08; }
.section-heading--light { grid-template-columns: 1fr 2fr; border-color: #22222255; }
.section-heading--light p { grid-column: 2; max-width: 550px; margin: 0; font-size: 14px; line-height: 1.6; color: #4d5052; }

.experiment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.experiment { min-width: 0; min-height: 505px; display: flex; flex-direction: column; padding: clamp(22px, 2.8vw, 40px); border: 1px solid #ffffff42; border-radius: 26px; background: #0c0d0dcc; backdrop-filter: blur(4px); }
.experiment--wide { grid-column: 1 / -1; min-height: 430px; }
.surface--light .experiment { border-color: #282a2c5a; background: #faf9f2d9; }
.experiment-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 11px; text-transform: uppercase; letter-spacing: .17em; color: #c7c6c2; }
.surface--light .experiment-top { color: #515557; }
.replay { appearance: none; border: 0; background: none; padding: 7px 0 7px 9px; color: inherit; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.replay:hover, .replay:focus-visible { color: var(--red); }
.replay:focus-visible, a:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
.stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 300px; overflow: hidden; }
.stage-line { position: relative; z-index: 1; max-width: 95%; margin: 0; font-family: Vollkorn, Georgia, serif; font-size: clamp(35px, 3vw, 53px); line-height: 1.12; text-align: center; letter-spacing: -.025em; }
.stage-line em { font-weight: 400; }
.hand-note { position: absolute; z-index: 2; display: block; overflow: hidden; white-space: nowrap; color: var(--red); font-family: Caveat, "Bradley Hand", cursive; font-size: clamp(30px, 3.5vw, 49px); line-height: 1.15; font-weight: 500; transform: rotate(-8deg); clip-path: inset(0 100% 0 0); }
.ink { position: absolute; z-index: 2; pointer-events: none; overflow: visible; color: var(--red); stroke: currentColor; stroke-width: 4.3; stroke-linecap: round; stroke-linejoin: round; }
.ink path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.experiment.is-active .ink path { animation: draw 1.65s cubic-bezier(.34,.03,.25,1) forwards; }
.experiment.is-active .ink path + path { animation-delay: .5s; }
.experiment.is-active .hand-note { animation: write 1.35s steps(35, end) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
.experiment-caption { margin: 0; padding-top: 15px; border-top: 1px solid #ffffff31; color: #bdbdbd; font-size: 13px; line-height: 1.55; }
.surface--light .experiment-caption { border-color: #22222233; color: #505354; }

.ink--circle { width: min(72%, 370px); top: 50%; left: 50%; transform: translate(-50%, -53%) rotate(-3deg); }
.note--circle { right: 9%; bottom: 7%; }
.ink--arrow { width: min(57%, 270px); top: 8%; right: 5%; transform: rotate(10deg); }
.note--arrow { left: 5%; top: 7%; transform: rotate(-5deg); }
.stage-line--arrow { margin-top: 70px; }
.stage--spark .stage-line { font-size: clamp(48px, 6vw, 94px); }
.ink--spark { width: clamp(105px, 15vw, 210px); top: 3%; right: 12%; stroke-width: 3.5; }
.note--spark { bottom: 2%; left: 17%; transform: rotate(5deg); }

.theme-bridge {
  position: relative;
  height: clamp(760px, 115vh, 1320px);
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
}
/* Journey pages crop only the empty lead-in before each horizon. Keep the SVG
   at its original size so the arc itself is unchanged. */
body:is(.journey, .e-journey, .c-journey) .theme-bridge {
  --bridge-full-height: clamp(690px, 100vh, 1120px);
  --bridge-leading-crop: clamp(260px, 36vh, 420px);
  height: calc(var(--bridge-full-height) - var(--bridge-leading-crop));
}
body:is(.journey, .e-journey, .c-journey) .theme-bridge .bridge-horizon {
  top: calc(-1 * var(--bridge-leading-crop));
  height: var(--bridge-full-height);
  /* Fade the SVG itself in from the cropped edge; the bridge background stays
     identical to the previous section, with no overlay edge to expose. */
  -webkit-mask-image: linear-gradient(to bottom,
    transparent var(--bridge-leading-crop),
    #000 calc(var(--bridge-leading-crop) + 250px));
  mask-image: linear-gradient(to bottom,
    transparent var(--bridge-leading-crop),
    #000 calc(var(--bridge-leading-crop) + 250px));
}
@media (max-width: 700px) {
  body.c-journey .theme-bridge { --bridge-full-height: 760px; --bridge-leading-crop: 240px; }
}
@media (max-width: 600px) {
  body:is(.journey, .e-journey, .c-journey) .theme-bridge {
    --bridge-full-height: 760px;
    --bridge-leading-crop: 240px;
  }
}
.theme-bridge .speckles { z-index: 3; transform: translate3d(0, var(--speckle-y, 0px), 0) scale(1.08); }
.speckles--bridge-dark { opacity: .36; mask-image: linear-gradient(to bottom, #000 0%, #000 20%, transparent 82%); }
.speckles--bridge-light { filter: invert(1); mix-blend-mode: multiply; opacity: .28; mask-image: linear-gradient(to bottom, transparent 22%, #000 56%, transparent 100%); }
.bridge-horizon {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
/* Let the blurred horizon resolve fully into the next section's base colour. */
body:is(.journey, .e-journey, .c-journey) .theme-bridge::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: auto 0 0;
  height: clamp(150px, 22vh, 240px);
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
body:is(.journey, .e-journey, .c-journey) .theme-bridge--reverse::after {
  background: linear-gradient(to bottom, transparent, var(--night));
}
.horizon-fill { fill: var(--paper); filter: url(#horizon-feather); }
.horizon-haze { fill: none; stroke: rgba(83, 161, 209, .7); stroke-width: 115; filter: url(#horizon-haze); }
.theme-bridge--reverse { background: var(--paper); }
.theme-bridge--reverse .horizon-fill { fill: var(--night); filter: url(#horizon-feather-reverse); }
.theme-bridge--reverse .horizon-haze { filter: url(#horizon-haze-reverse); }
.theme-bridge--reverse .speckles--bridge-light { mask-image: linear-gradient(to bottom, #000 0%, #000 20%, transparent 66%); }
.theme-bridge--reverse .speckles--bridge-dark { mask-image: linear-gradient(to bottom, transparent 22%, #000 56%, transparent 100%); }
.bridge-grain {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: url("/graphic-lab/assets/gradient-grain.svg") repeat;
  background-size: 190px 190px;
  opacity: .19;
  mix-blend-mode: soft-light;
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 83%, transparent);
  pointer-events: none;
}

/* The chapter introductions immediately after journey arcs share one centred,
   borderless rhythm. Their first line sits in the already-light/dark arc fill. */
body:is(.journey, .e-journey, .c-journey) .arc-intro-section {
  display: flow-root;
  overflow: visible;
  padding-top: 0;
}
/* First chapter, immediately after each hero: one shared centred reading order. */
body:is(.journey, .e-journey, .c-journey) #challenge :is(.chapter-heading, .e-chapter-heading, .c-chapter) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 30px);
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: 0;
  border: 0;
  text-align: center;
}
body:is(.journey, .e-journey, .c-journey) #challenge :is(.chapter-heading, .e-chapter-heading, .c-chapter) h2 {
  max-width: 100%;
  margin: 0;
  text-align: center;
}
body:is(.journey, .e-journey, .c-journey) #challenge :is(.challenge-lead, .e-statement, .c-large-copy) {
  width: min(100%, 1050px);
  max-width: 1050px;
  margin: clamp(34px, 4vw, 62px) auto clamp(80px, 8vw, 120px);
  text-align: center;
}
body.journey #challenge .challenge-note { right: 0; }
@media (max-width: 700px) {
  body:is(.journey, .e-journey, .c-journey) #challenge :is(.challenge-lead, .e-statement, .c-large-copy) {
    margin-bottom: 90px;
  }
}
body:is(.journey, .e-journey, .c-journey) .arc-intro-section > :is(.journey-wrap, .e-wrap, .c-wrap) {
  position: relative;
  z-index: 5;
}
body:is(.journey, .e-journey, .c-journey) .arc-intro-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: min(100%, 1120px);
  margin: calc(-1 * clamp(115px, 17vh, 195px)) auto 0;
  padding: 0;
  border: 0;
  text-align: center;
}
body:is(.journey, .e-journey, .c-journey) .arc-intro-heading h2 {
  margin: 0;
  max-width: 100%;
  text-align: center;
}
body:is(.journey, .e-journey, .c-journey) .arc-intro-lede {
  width: min(100%, 800px);
  margin: 28px auto 90px;
  text-align: center;
}
body.e-journey .arc-intro-lede.e-direction-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}
body.e-journey .arc-intro-lede.e-direction-intro p { margin: 0 auto; }
body:is(.journey, .e-journey, .c-journey) :is(.arc-intro-heading, .arc-intro-lede, .arc-intro-title) {
  opacity: var(--arc-intro-opacity, 1);
  transform: translate3d(0, var(--arc-intro-shift, 0px), 0);
  will-change: opacity, transform;
}
body.c-journey .c-identity.arc-intro-section .c-work-label.arc-intro-heading {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 22px;
}
body.c-journey .c-identity.arc-intro-section .c-identity-copy { display: contents; }
body.c-journey .c-identity.arc-intro-section .c-identity-copy h2 {
  grid-column: 1 / -1;
  width: min(100%, 1120px);
  margin: 0 auto;
  text-align: center;
}
body.c-journey .c-identity.arc-intro-section .c-identity-copy p:first-of-type {
  grid-column: 1 / -1;
  max-width: 800px;
  margin: 0 auto 85px;
  text-align: center;
  font: 400 clamp(23px, 2.5vw, 38px)/1.35 Vollkorn, Georgia, serif;
}
body.c-journey .c-identity.arc-intro-section .c-identity-copy p:not(:first-of-type),
body.c-journey .c-identity.arc-intro-section .c-identity-copy .c-hand { grid-column: 1; }
body.c-journey .c-identity.arc-intro-section .c-gallery { grid-column: 2; grid-row: 3 / span 3; }
@media (max-width: 700px) {
  body:is(.journey, .e-journey, .c-journey) .arc-intro-heading { margin-top: -105px; }
  body:is(.journey, .e-journey, .c-journey) .arc-intro-lede { margin-bottom: 70px; }
  body.c-journey .c-identity.arc-intro-section .c-identity-layout { grid-template-columns: 1fr; }
  body.c-journey .c-identity.arc-intro-section .c-identity-copy p:not(:first-of-type),
  body.c-journey .c-identity.arc-intro-section .c-identity-copy .c-hand,
  body.c-journey .c-identity.arc-intro-section .c-gallery { grid-column: 1; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  body:is(.journey, .e-journey, .c-journey) :is(.arc-intro-heading, .arc-intro-lede, .arc-intro-title) {
    opacity: 1;
    transform: none;
  }
}

.surface--light .stage-line { color: #171a1a; }
.ink--underline { width: min(61%, 345px); top: 62%; left: 51%; transform: translateX(-50%) rotate(-2deg); stroke-width: 4.8; }
.note--underline { right: 8%; bottom: 6%; transform: rotate(6deg); }
.ink--bracket { height: 65%; left: 10%; top: 16%; stroke-width: 4.2; }
.stage--bracket .stage-line { padding-left: 54px; }
.note--bracket { right: 6%; bottom: 5%; }
.stage--loop .stage-line { align-self: start; margin-top: 36px; font-size: clamp(40px, 5vw, 76px); }
.stage-small { display: block; font-size: .68em; }
.ink--loop { width: min(85%, 800px); left: 7%; bottom: 6%; stroke-width: 3.8; }
.note--loop { right: 5%; top: 8%; font-size: clamp(28px, 3vw, 46px); transform: rotate(6deg); }
.lab-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 95px; padding-top: 25px; border-top: 1px solid #2225; font-size: 12px; line-height: 1.5; color: #4b4e4e; }
.lab-footer a { text-decoration: none; color: #1a1c1d; }
.lab-footer a:hover { color: var(--red); }
.surface--outro { padding: 0 0 90px; background: #000; }
.surface--outro::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 160px; background: linear-gradient(to bottom, #000, transparent); pointer-events: none; }
.surface--outro > .speckles { mask-image: linear-gradient(to bottom, transparent, #000 28%); }
.surface--outro .surface-content { z-index: 2; padding-top: 100px; }
.surface--outro .lab-footer { margin-top: 95px; border-color: #ffffff45; color: #bdbdbd; }
.surface--outro .lab-footer a { color: var(--ink); }
.surface--outro .lab-footer a:hover { color: var(--red); }

/* Case-study illustration tests: kept separate from the published case studies. */
.section-heading--toolkit em { color: var(--red); font-weight: 400; }
.case-grid .experiment { background: #090a0bdc; }
.case-grid .stage { min-height: 340px; }
.case-grid .experiment--wide .stage { min-height: 390px; }
.case-image-wrap { position: absolute; left: 12%; top: 50%; width: min(37%, 390px); aspect-ratio: 1; transform: translateY(-50%); }
.case-image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.ink--image-frame { inset: -4%; width: 108%; height: 108%; stroke-width: 3; }
.ink--image-pointer { width: min(33%, 360px); left: 50%; top: 37%; stroke-width: 3.2; }
.note--image { left: 68%; top: 26%; transform: rotate(-7deg); }

.process-steps { position: absolute; z-index: 1; top: 10%; left: 5%; width: 90%; display: flex; justify-content: space-between; gap: 10px; font-size: clamp(14px, 1.4vw, 19px); }
.process-steps span { display: grid; gap: 8px; }
.process-steps b { color: var(--red); font-size: 11px; letter-spacing: .15em; }
.ink--process { width: 94%; height: 68%; left: 3%; top: 20%; stroke-width: 3.2; }
.note--process { right: 4%; bottom: 5%; font-size: clamp(27px, 2.7vw, 39px); transform: rotate(-5deg); }

.comparison-panels { position: relative; z-index: 1; display: flex; width: 92%; gap: 8%; align-items: center; }
.mini-panel { width: 46%; min-height: 205px; padding: 23px; border: 1px solid #ffffff4d; border-radius: 14px; background: #181b1d; }
.mini-panel span { display: block; margin-bottom: 22px; color: #d4d4d4; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.mini-panel i { display: block; width: 94%; height: 7px; margin: 13px 0; border-radius: 10px; background: #6b6e70; }
.mini-panel i:nth-of-type(2) { width: 73%; }
.mini-panel i:nth-of-type(3) { width: 86%; }
.mini-panel i:nth-of-type(4) { width: 62%; }
.mini-panel--after { border-color: #ff003777; background: #26141a; }
.mini-panel--after strong { display: block; margin-bottom: 25px; font-family: Vollkorn, Georgia, serif; font-size: clamp(20px, 2vw, 28px); font-weight: 400; }
.mini-panel--after i { background: #ad6979; }
.ink--comparison { width: 42%; left: 29%; top: 42%; stroke-width: 3.8; }
.note--comparison { bottom: 1%; left: 26%; font-size: clamp(26px, 2.7vw, 38px); transform: rotate(-4deg); }

.stage--reflection .stage-line { max-width: 82%; padding-left: 25px; text-align: left; font-size: clamp(28px, 2.7vw, 43px); }
.ink--reflection { width: 90%; height: 94%; left: 5%; top: 3%; stroke-width: 3.4; }
.note--reflection { right: 8%; bottom: 4%; font-size: clamp(28px, 3vw, 40px); }

.outcome-stat { position: relative; z-index: 1; display: grid; justify-items: center; gap: 0; text-align: center; transform: translateY(-9px); }
.outcome-stat strong { font-family: Vollkorn, Georgia, serif; font-size: clamp(85px, 10vw, 146px); line-height: 1; font-weight: 400; letter-spacing: -.06em; }
.outcome-stat span { font-size: 13px; line-height: 1.5; text-transform: uppercase; letter-spacing: .16em; }
.ink--outcome { width: min(83%, 410px); height: 82%; top: 5%; left: 50%; transform: translateX(-50%); stroke-width: 3.5; }
.note--outcome { right: 1%; bottom: 1%; font-size: clamp(27px, 2.8vw, 39px); }

/* A second batch of looser, more eccentric case-study marks. */
.section-heading--odd { margin-top: clamp(100px, 12vw, 180px); }
.section-heading--odd em, .section-heading--segues em { color: var(--red); font-weight: 400; }
.odd-grid .stage { min-height: 365px; }
.odd-grid .experiment--wide .stage { min-height: 390px; }
.ink--mess { width: min(87%, 900px); height: 78%; left: 4%; top: 8%; stroke-width: 3.2; }
.mess-word { position: absolute; z-index: 3; color: var(--red); font: 500 clamp(31px, 4vw, 57px)/1 Caveat, cursive; opacity: 0; transition: opacity .35s, transform .6s; }
.mess-word--one { top: 9%; left: 17%; transform: rotate(-16deg) translateY(15px); }
.mess-word--two { bottom: 7%; left: 39%; transform: rotate(8deg) translateY(15px); }
.mess-word--three { top: 18%; right: 8%; transform: rotate(-6deg) translateY(15px); }
.is-active .mess-word { opacity: 1; transform: rotate(-5deg) translateY(0); }
.is-active .mess-word--one { transition-delay: .35s; }
.is-active .mess-word--two { transition-delay: .85s; }
.is-active .mess-word--three { transition-delay: 1.5s; }
.mess-exit { position: absolute; right: 5%; bottom: 15%; margin: 0; font-family: Vollkorn, Georgia, serif; font-size: clamp(22px, 3vw, 42px); }
.mess-exit span { color: var(--red); }
.ink--wormhole { width: min(94%, 520px); height: 92%; left: 3%; top: 2%; stroke-width: 3.2; }
.wormhole-label { position: absolute; z-index: 3; padding: 3px 8px; background: #090a0bdc; color: #e7e7e7; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.wormhole-label--one { top: 12%; right: 13%; }
.wormhole-label--two { bottom: 18%; left: 9%; }
.wormhole-label--three { top: 46%; left: 44%; color: var(--red); }
.note--wormhole { right: 0; bottom: 2%; font-size: clamp(26px, 3vw, 41px); }
.ink--machine { width: min(95%, 530px); height: 90%; left: 3%; top: 5%; stroke-width: 3; }
.machine-input, .machine-output { position: absolute; z-index: 3; top: 43%; font: 400 clamp(20px, 2.4vw, 34px)/1 Vollkorn, Georgia, serif; }
.machine-input { left: 0; }
.machine-output { right: 0; color: var(--red); }
.note--machine { bottom: 0; left: 30%; font-size: clamp(29px, 3vw, 40px); }

/* Full-screen, scroll-driven segues: these stay in the lab until chosen for a case study. */
.surface--segues { padding: 60px 0 110px; overflow: clip; }
.surface--segues .section-heading { margin-bottom: 0; }
.segue { position: relative; height: max(205vh, 1450px); --p: 0; }
.segue-sticky { position: sticky; top: 0; width: min(100% - 9vw, 1440px); height: 100svh; min-height: 610px; margin: 0 auto; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(28px, 4vw, 60px) 0; }
.segue + .segue { border-top: 1px solid #ffffff1b; }
.segue-meta { display: flex; justify-content: space-between; gap: 20px; color: #b5b5b5; font-size: 12px; text-transform: uppercase; letter-spacing: .19em; }
.segue-meta span:first-child { color: var(--red); }
.segue-canvas { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.segue-canvas > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.segue-canvas h3 { position: absolute; z-index: 3; bottom: 6%; margin: 0; font: 400 clamp(55px, 9vw, 135px)/.95 Vollkorn, Georgia, serif; letter-spacing: -.04em; text-align: center; opacity: clamp(0, calc((var(--p) - .46) * 3), 1); transform: translateY(calc((1 - var(--p)) * 38px)); }
.segue-note { position: absolute; z-index: 4; right: 6%; top: 13%; color: var(--red); font: 500 clamp(34px, 4vw, 57px)/1 Caveat, cursive; transform: rotate(-9deg); opacity: clamp(0, calc((var(--p) - .35) * 3), 1); }
.segue-caption { margin: 0; max-width: 690px; padding-top: 16px; border-top: 1px solid #ffffff40; color: #bdbdbd; font-size: 14px; line-height: 1.5; }
.segue-draw, .converge-ring { stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.segue-ghost { stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: calc(1 - var(--p) * 1.55); transform-origin: 45% 50%; transform: scale(calc(1 - var(--p) * .42)) rotate(calc(var(--p) * 30deg)); }
.segue-ghost--second { stroke: #ff6c85; stroke-width: 2; transform: scale(calc(1 - var(--p) * .65)) rotate(calc(var(--p) * -40deg)); }
.segue-side { position: absolute; z-index: 3; top: 13%; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.segue-side--from { left: 6%; color: #a3a3a3; opacity: calc(1 - var(--p) * 1.5); }
.segue-side--to { right: 6%; color: var(--red); opacity: clamp(0, calc((var(--p) - .48) * 3), 1); }
.segue--untangle .segue-note { top: 22%; right: 16%; }

.segue-canvas--turn { perspective: 1300px; }
.turn-sheet { position: absolute; width: min(54vw, 510px); aspect-ratio: 1.38; min-height: 270px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(25px, 4vw, 50px); border: 2px solid #e5e5e5; border-radius: 12px 32px 12px 12px; box-shadow: 20px 25px 0 #0008; transform-style: preserve-3d; }
.turn-sheet span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.turn-sheet strong { font: 400 clamp(41px, 5vw, 74px)/.93 Vollkorn, Georgia, serif; letter-spacing: -.04em; }
.turn-sheet i { align-self: end; font-style: normal; font-size: 13px; }
.turn-sheet--back { z-index: 1; background: var(--red); color: white; transform: rotate(-5deg) scale(calc(.9 + var(--p) * .1)); }
.turn-sheet--front { z-index: 2; background: var(--paper); color: #141414; transform-origin: 12% 90%; transform: translateX(calc(var(--p) * -66vw)) rotate(calc(var(--p) * -65deg)) rotateY(calc(var(--p) * -38deg)); opacity: clamp(0, calc(1.3 - var(--p) * 1.8), 1); }
.turn-swoop { position: absolute; z-index: 4; top: 8%; right: 4%; width: min(34%, 470px) !important; height: 45% !important; }
.segue--turn .segue-note { top: 21%; right: 13%; }
.segue--turn h3 { display: none; }

.converge-label { position: absolute; z-index: 2; left: 3%; color: #d8d8d8; font-size: 12px; letter-spacing: .17em; text-transform: uppercase; opacity: calc(1 - var(--p) * .75); }
.converge-label--one { top: 20%; }
.converge-label--two { top: 49%; }
.converge-label--three { top: 76%; }
.converge-ring { stroke: #ffbdc8; stroke-width: 3; }
.segue--converge .segue-note { top: 28%; right: 12%; }
.surface--segues .lab-footer { border-color: #ffffff45; color: #bdbdbd; }
.surface--segues .lab-footer a { color: var(--ink); }
.surface--segues .lab-footer a:hover { color: var(--red); }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-tag { display: none; }
  .surface-content { width: min(100% - 40px, 650px); }
  .intro { min-height: 740px; }
  .section-heading, .section-heading--light { grid-template-columns: 1fr; gap: 14px; }
  .section-heading--light p { grid-column: 1; }
  .experiment-grid { grid-template-columns: 1fr; }
  .experiment--wide { grid-column: auto; }
  .segue-sticky { width: min(100% - 40px, 650px); }
  .turn-sheet { width: min(78vw, 510px); }
}

@media (max-width: 480px) {
  .site-header { min-height: 74px; padding: 20px; font-size: 11px; }
  .brand { font-size: 19px; }
  .intro { min-height: 650px; padding-top: 154px; padding-bottom: 70px; }
  .intro h1 { font-size: clamp(65px, 17vw, 95px); }
  .experiment { min-height: 420px; padding: 20px; border-radius: 22px; }
  .experiment--wide { min-height: 390px; }
  .stage { min-height: 275px; }
  .stage-line { font-size: clamp(33px, 9vw, 43px); }
  .stage--spark .stage-line { font-size: 43px; }
  .note--circle { right: 0; bottom: 4%; }
  .ink--arrow { width: 55%; right: 0; top: 18%; }
  .note--arrow { left: 0; }
  .ink--spark { right: 0; top: 9%; }
  .note--spark { left: 3%; bottom: 3%; }
  .ink--bracket { left: 1%; }
  .stage--bracket .stage-line { padding-left: 35px; }
  .note--loop { top: 17%; right: 0; }
  .ink--loop { bottom: 8%; }
  .lab-footer { flex-direction: column; }
  .theme-bridge { height: 105vh; min-height: 720px; }
  .case-grid .experiment--wide .stage { min-height: 290px; }
  .case-image-wrap { left: 1%; width: 58%; }
  .ink--image-pointer { width: 40%; left: 58%; top: 40%; }
  .note--image { left: 46%; top: 13%; font-size: 25px; }
  .process-steps { left: 1%; width: 98%; font-size: 13px; }
  .ink--process { width: 100%; left: 0; }
  .note--process { right: 0; bottom: 8%; font-size: 27px; }
  .comparison-panels { width: 100%; gap: 5%; }
  .mini-panel { width: 47.5%; min-height: 170px; padding: 14px; }
  .mini-panel--after strong { font-size: 20px; }
  .note--comparison { left: 4%; bottom: 2%; font-size: 27px; }
  .stage--reflection .stage-line { max-width: 90%; padding-left: 25px; font-size: 30px; }
  .ink--reflection path + path { display: none; }
  .note--reflection { right: 0; bottom: 3%; }
  .outcome-stat strong { font-size: 85px; }
  .ink--outcome { width: 95%; }
  .note--outcome { right: 0; bottom: 0; }
  .section-heading--odd { margin-top: 95px; }
  .odd-grid .stage, .odd-grid .experiment--wide .stage { min-height: 285px; }
  .ink--mess { width: 110%; left: -10%; }
  .mess-word--one { left: 6%; }
  .mess-word--two { left: 30%; bottom: 27%; }
  .mess-word--three { right: 1%; }
  .mess-exit { right: 1%; bottom: 4%; font-size: 24px; }
  .wormhole-label { font-size: 10px; }
  .note--wormhole { font-size: 28px; }
  .machine-input, .machine-output { font-size: 20px; }
  .note--machine { left: 20%; font-size: 31px; }
  .segue { height: max(180vh, 1150px); }
  .segue-sticky { min-height: 580px; padding: 28px 0; }
  .segue-meta { font-size: 10px; letter-spacing: .11em; }
  .segue-canvas h3 { bottom: 20%; font-size: 55px; }
  .segue-note { top: 18%; right: 2%; font-size: 31px; }
  .segue--untangle .segue-note, .segue--converge .segue-note { top: 27%; right: 3%; }
  .segue-caption { font-size: 13px; }
  .segue--untangle .segue-canvas > svg { width: 200%; left: -50%; }
  .turn-sheet { width: 83vw; min-height: 270px; padding: 25px; }
  .turn-sheet strong { font-size: 43px; }
  .turn-swoop { top: 9%; right: -4%; width: 55% !important; }
  .segue--turn .segue-note { top: 18%; right: 1%; }
  .converge-label { left: 1%; font-size: 9px; }
  .converge-label--one { top: 40%; }
  .converge-label--two { top: 47%; }
  .converge-label--three { top: 54%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .speckles { display: none; }
  .ink path { stroke-dashoffset: 0; }
  .hand-note { clip-path: none; }
  .experiment.is-active .ink path, .experiment.is-active .hand-note { animation: none; }
  .mess-word { opacity: 1; }
  .segue { height: auto; }
  .segue-sticky { position: relative; height: 75svh; }
  .segue-draw, .converge-ring { stroke-dashoffset: 0; }
  .segue-ghost { opacity: .2; }
  .segue-canvas h3, .segue-note, .segue-side--to { opacity: 1; transform: none; }
  .turn-sheet--front { opacity: 0; }
}
