/* concept-timeline.css
   "Timeline As Page" homepage concept — full-bleed horizontal case-study reel.
   Standalone visual system (lime-on-near-black), independent of the main
   site's Webflow-derived styles. Loaded by index.html, and by about.html for
   its tokens. The short intro above the reel lives in work-first.css. */

:root {
  --bg: #0a0c09;
  --bg-soft: #12150f;
  --panel-scrim: rgba(6, 8, 5, 0.55);
  --lime: #d7ff3f;
  --lime-dim: rgba(215, 255, 63, 0.35);
  --lime-faint: rgba(215, 255, 63, 0.12);
  --ink: #f3f5ec;
  --ink-dim: rgba(243, 245, 236, 0.62);
  --ink-faint: rgba(243, 245, 236, 0.3);
  --line: rgba(243, 245, 236, 0.14);
  --sans: 'Libre Franklin', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overscroll-behavior: none;
}

/* The page scrolls vertically through the Threads intro, then ends on the
   reel, which fills exactly one viewport. */
body.tp-body {
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; }

.tp-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- shell ---------- */

.tp-shell {
  position: relative;
  z-index: 10;
  /* Overlaps the intro's last screen so it slides over the pinned Now block. */
  margin-top: -100vh;
  margin-top: -100dvh;
  background: var(--bg);
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- top bar ---------- */

.tp-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 40px);
  pointer-events: none;
}

.tp-top > * { pointer-events: auto; }

.tp-wordmark {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(10, 12, 9, 0.5);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.tp-wordmark:hover { border-color: var(--lime-dim); color: var(--lime); }

.tp-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-counter {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  background: rgba(10, 12, 9, 0.5);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  min-width: 64px;
  text-align: center;
  white-space: nowrap;
}

.tp-counter .tp-counter-active { color: var(--lime); }

.tp-about-trigger {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--bg);
  background: var(--lime);
  border: 1px solid var(--lime);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.tp-about-trigger:hover { transform: translateY(-1px); background: #e6ff70; }

.tp-contact-link {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: rgba(10, 12, 9, 0.5);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.tp-contact-link:hover { transform: translateY(-1px); border-color: var(--lime-dim); color: var(--lime); }

/* Phones: the scrub bar already shows position, so the counter makes way
   for Contact. */
@media (max-width: 560px) {
  .tp-counter { display: none; }
  .tp-top-right { gap: 6px; }
  .tp-wordmark,
  .tp-about-trigger,
  .tp-contact-link { font-size: 12px; padding: 8px 11px; }
}

/* ---------- reel ---------- */

.tp-reel {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  height: 100%;
}

.tp-track {
  display: flex;
  height: 100%;
  width: 100%;
  will-change: transform;
  transition: transform 0.65s var(--ease);
}

.tp-panel {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}

.tp-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 8s linear;
}

.tp-panel.is-active .tp-panel-img {
  transform: scale(1.09);
}

/* Portrait screens: the work is all landscape, so cover would crop away
   most of its width. Show the whole piece above the title instead, over a
   blurred, darkened copy of it (--tp-backdrop, set by concept-timeline.js). */
@media (max-aspect-ratio: 1/1) {
  .tp-panel::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: var(--tp-backdrop) center / cover no-repeat;
    filter: blur(28px) brightness(0.45) saturate(1.2);
  }

  .tp-panel-img,
  .tp-panel.is-active .tp-panel-img {
    object-fit: contain;
    object-position: 50% 40%;
    transform: none;
  }
}

/* Images show at full strength; the shade sits only under the title. */
.tp-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,8,5,0) 50%, rgba(6,8,5,0.35) 72%, rgba(6,8,5,0.78) 100%);
  pointer-events: none;
}

.tp-panel-info {
  position: absolute;
  left: clamp(16px, 4vw, 40px);
  bottom: clamp(96px, 14vh, 150px);
  right: clamp(16px, 4vw, 40px);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.tp-panel-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--lime);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}

.tp-panel-kicker {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  display: block;
  margin-bottom: 12px;
}

.tp-panel-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.03em;
}

.tp-panel-hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.tp-panel-hint::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

@media (max-width: 720px) {
  .tp-panel-info { flex-direction: column; align-items: flex-start; bottom: 128px; }
  .tp-panel-hint { display: none; }
}

/* ---------- samplers ----------
   Each project can carry a collage of pieces from its world. Two layers
   per piece:
   - .tp-piece rides the swipe. --off is how many panels it sits from centre
     (set by the JS, fractional mid-swipe) and it travels --depth times as
     far as the panel, so near pieces fly out ahead and trail in behind.
     --rw is the reel width in px. Transitions match .tp-track.
   - .tp-act plays the scroll sequence: the JS writes its transform and
     opacity each frame (drop, slap, fan), plus --vt for the vine's leaves
     and --fan for the swatch fan.
   Without JS, or with reduced motion, every piece simply sits at rest. */

.tp-samplers {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.tp-sampler {
  position: absolute;
  inset: 0;
}

.tp-piece {
  --off: 0;
  --depth: 1;
  --spin: 0;
  --tilt: 0deg;
  position: absolute;
  transform:
    translate3d(calc(var(--off) * var(--depth) * var(--rw, 100vw)), 0, 0)
    rotate(calc(var(--tilt) + var(--off) * var(--spin) * 1deg));
  transition: transform 0.65s var(--ease);
  will-change: transform;
}

.tp-reel.is-dragging .tp-track,
.tp-reel.is-dragging .tp-piece { transition: none; }

.tp-act {
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
}

.tp-act img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Brand vine hanging from the top edge. Leaves open top to bottom as --vt
   runs 0 to 1: each leaf's --k (0 at the top, 1 at the bottom) sets when. */
.tp-vine {
  left: 1.5%;
  top: -2%;
  height: 62%;
  aspect-ratio: 550 / 736;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.3));
}

.tp-vine svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tp-leaf {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform: scale(clamp(0, (var(--vt, 1) - var(--k) * 0.5) * 2, 1));
}

/* Die-cut stickers: a white edge that follows the artwork, lifted off the
   image by a shadow. */
.tp-ns-wordmark {
  --tilt: 5deg;
  right: 7%;
  top: 13%;
  width: clamp(190px, 23vw, 350px);
  aspect-ratio: 1395 / 519;
}

.tp-ns-wordmark img {
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff)
    drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(0 12px 16px rgba(0, 0, 0, 0.35));
}

.tp-sticker {
  --tilt: -9deg;
  left: 13%;
  top: 36%;
  width: clamp(112px, 12.5vw, 196px);
  aspect-ratio: 1;
}

.tp-sticker .tp-act {
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 14px 28px rgba(0, 0, 0, 0.38);
}

.tp-sticker img { border-radius: 50%; }

/* Swatch chips at the foot of the frame, fanned from a shared pivot like a
   colour guide. --fan runs 0 (stacked) to 1 (fanned). */
.tp-chips {
  left: 64%;
  bottom: 15%;
  width: clamp(84px, 7.6vw, 118px);
  aspect-ratio: 0.7;
}

.tp-chip {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 9px 9px;
  border-radius: 3px;
  background:
    linear-gradient(var(--chip), var(--chip)) top / 100% 70% no-repeat,
    #fbfaf6;
  color: #1a1c17;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
  transform-origin: 50% 118%;
  transform: rotate(calc(var(--a) * var(--fan, 1)));
}

.tp-chip-name {
  font-weight: 800;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.tp-chip-hex {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(26, 28, 23, 0.6);
}

@media (max-width: 720px) {
  .tp-vine { left: -4%; height: 44%; }
  .tp-ns-wordmark { right: 5%; top: 13%; width: 46%; }
  .tp-ns-wordmark img {
    filter:
      drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff)
      drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff)
      drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
  }
  .tp-sticker { left: 10%; top: 38%; width: 92px; }
  .tp-chips { left: auto; right: 12%; bottom: 30%; width: 66px; }
  .tp-chip { padding: 0 6px 6px; }
  .tp-chip:nth-child(1) { display: none; }
  .tp-chip-name { font-size: 8px; }
  .tp-chip-hex { font-size: 7px; }
}

/* ---------- scrub bar ---------- */

.tp-scrub {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: linear-gradient(0deg, rgba(6,8,5,0.92) 0%, rgba(6,8,5,0.75) 70%, transparent 100%);
  padding: 14px clamp(16px, 4vw, 40px) 18px;
}

.tp-scrub-track {
  display: flex;
  gap: 8px;
}

.tp-scrub-item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  min-width: 0;
}

.tp-scrub-item:hover { border-color: var(--ink-faint); }

.tp-scrub-item.is-active {
  border-color: var(--lime);
  background: var(--lime-faint);
}

.tp-scrub-thumb {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.tp-scrub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5) brightness(0.75);
  transition: filter 0.25s var(--ease);
}

.tp-scrub-item.is-active .tp-scrub-thumb img {
  filter: none;
}

.tp-scrub-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tp-scrub-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime-dim);
}

.tp-scrub-item.is-active .tp-scrub-num { color: var(--lime); }

.tp-scrub-name {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-scrub-item.is-active .tp-scrub-name { color: var(--ink); }

.tp-scrub-progress {
  margin-top: 12px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.tp-scrub-progress-fill {
  height: 100%;
  width: 20%;
  background: var(--lime);
  transition: width 0.65s var(--ease), transform 0.65s var(--ease);
}

@media (max-width: 720px) {
  .tp-scrub-name { display: none; }
  .tp-scrub-item { justify-content: center; padding: 6px; }
  .tp-scrub-thumb { width: 34px; height: 34px; }
}

/* ---------- overlay (case study) ---------- */

.tp-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}

.tp-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.tp-overlay-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(10,12,9,0.95) 60%, transparent 100%);
}

.tp-overlay-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
}

.tp-overlay-eyebrow .tp-lime { color: var(--lime); }

.tp-overlay-close {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.tp-overlay-close:hover { border-color: var(--lime-dim); color: var(--lime); }

.tp-overlay-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 40px) 120px;
}

.tp-cs-head {
  padding: 24px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.tp-cs-kicker {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lime);
  margin-bottom: 14px;
}

.tp-cs-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.tp-cs-dek {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--ink-dim);
  max-width: 46em;
  margin: 0 0 28px;
  font-weight: 400;
}

.tp-cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.tp-cs-meta div { min-width: 100px; }

.tp-cs-meta-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin: 0 0 4px;
}

.tp-cs-meta-value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  margin: 0;
}

.tp-cs-section { margin-bottom: 56px; }

.tp-cs-section-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lime-dim);
  margin-bottom: 16px;
}

.tp-cs-copy {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 42em;
  margin: 0 0 14px;
}

.tp-cs-pull {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  color: var(--ink);
  border-left: 2px solid var(--lime);
  padding-left: 20px;
  margin: 24px 0;
  max-width: 36em;
}

.tp-cs-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid var(--lime-dim);
  padding-bottom: 3px;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}

.tp-cs-cta:hover { border-color: var(--lime); gap: 12px; }

.tp-cs-img {
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-soft);
}

.tp-cs-img img { width: 100%; height: 100%; object-fit: cover; }

.tp-cs-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* -- layout: swatches (Natural Sensations) -- */

.tp-swatch-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.tp-swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tp-swatch {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-family: var(--mono);
  font-size: 12px;
}

@media (max-width: 860px) {
  .tp-swatch-layout { grid-template-columns: 1fr; }
}

/* -- layout: sprint (9th Island) -- */

.tp-sprint-rail {
  position: relative;
  display: flex;
  gap: 0;
  margin: 8px 0 40px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tp-sprint-step {
  flex: 1 1 0;
  min-width: 160px;
  position: relative;
  padding: 20px 18px 0;
  border-top: 2px solid var(--line);
}

.tp-sprint-step.is-lime { border-top-color: var(--lime); }

.tp-sprint-day {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--lime);
  margin-bottom: 8px;
  display: block;
}

.tp-sprint-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.tp-sprint-copy {
  font-size: 0.9rem;
  color: var(--ink-dim);
  line-height: 1.5;
  margin: 0;
}

.tp-sprint-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* -- layout: before/after (Boeing) -- */

.tp-ba {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #050604;
  cursor: ew-resize;
  user-select: none;
  margin-bottom: 20px;
}

.tp-ba-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tp-ba-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050604;
}

.tp-ba-before {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12%;
  box-sizing: border-box;
}

.tp-ba-before-card {
  width: 100%;
  aspect-ratio: 960 / 224;
  background: #f4f6ef;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6%;
  box-sizing: border-box;
  border-radius: 3px;
}

.tp-ba-before img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.tp-ba-after { clip-path: inset(0 0 0 50%); }

.tp-ba-tag {
  position: absolute;
  top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6,8,5,0.7);
  border: 1px solid var(--line);
}

.tp-ba-tag.before { left: 14px; }
.tp-ba-tag.after { right: 14px; color: var(--lime); border-color: var(--lime-dim); }

.tp-ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--lime);
  transform: translateX(-1px);
  pointer-events: none;
}

.tp-ba-handle::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.tp-ba-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin: 0 0 24px;
}

/* -- layout: two-part (Golden Years) -- */

.tp-twopart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.tp-twopart-part {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tp-twopart-part.is-solution { border-color: var(--lime-dim); background: var(--lime-faint); }

.tp-twopart-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.tp-twopart-part.is-solution .tp-twopart-label { color: var(--lime); }

@media (max-width: 860px) {
  .tp-twopart { grid-template-columns: 1fr; }
}

/* -- layout: poster + map (Golden Gate Park) -- */

.tp-postermap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.tp-map-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: radial-gradient(circle at 30% 20%, rgba(215,255,63,0.08), transparent 60%), var(--bg-soft);
  min-height: 320px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tp-map-svg { width: 100%; height: 220px; }

.tp-map-dot {
  fill: var(--lime);
  animation: tp-pulse 2.2s ease-in-out infinite;
}

@keyframes tp-pulse {
  0%, 100% { opacity: 0.45; r: 3; }
  50% { opacity: 1; r: 5; }
}

.tp-map-caption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
}

@media (max-width: 860px) {
  .tp-postermap { grid-template-columns: 1fr; }
}

/* ---------- scrim (behind the case-study overlay) ---------- */

.tp-scrim {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 3, 0.6);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}

.tp-scrim.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease);
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .tp-track, .tp-piece, .tp-panel-img, .tp-overlay, .tp-scrim, .tp-scrub-progress-fill {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- small screens: reel becomes vertically scrollable ---------- */

@media (max-width: 560px) {
  .tp-panel-title { font-size: clamp(1.9rem, 9vw, 3rem); }
}
