




.ptx_section {
  --ptx-bg: var(--warm-50);
  --ptx-tile: var(--warm-50);
  --ptx-tile-2: var(--warm-100);
  --ptx-fg: var(--warm-950);
  --ptx-grey: var(--color-muted);
  --ptx-line: rgba(20, 19, 20, 0.12);
  --ptx-focus: rgba(16, 16, 16, 0.3);
  --ptx-accent: #33452d;
  --ptx-on-accent: var(--warm-100);
  --ptx-img-bg: #a19889;
  --ptx-margin: clamp(20px, 2.8vw, 48px);
  --ptx-gutter: clamp(12px, 1.4vw, 24px);
  --ptx-display: clamp(40px, 4.2vw, 80px);
  --ptx-label: clamp(18px, 1.4vw, 28px);
  --ptx-serif: 'Instrument Serif', Georgia, serif;
  --ptx-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ptx-lead: 20vh;
  --ptx-rest: 40vh;

  position: relative;
  width: 100%;
  background: var(--ptx-bg, var(--warm-50));
  color: var(--ptx-fg, var(--warm-950));
  font-family: var(--ptx-sans, 'Inter', sans-serif);
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

.ptx_stage {
  --ptx-img-w: clamp(64px, 11vw, 200px);

  position: sticky;
  z-index: 2;
  top: 0;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
}

/* inset + auto margins centre it without a transform, so offsetTop stays true for the JS */
.ptx_frame {
  position: absolute;
  inset: 0;
  width: var(--ptx-img-w);
  height: calc(var(--ptx-img-w) * 1.25);
  margin: auto;
  border-radius: 0;
  overflow: hidden;
  background: var(--ptx-img-bg);
}

.ptx_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ptx_text {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  padding: var(--ptx-lead) 0 calc(100vh + var(--ptx-rest));
  padding-bottom: calc(100svh + var(--ptx-rest));
}

.ptx_quote {
  margin: 0;
  font-family: var(--ptx-serif, Georgia, serif);
  font-size: min(var(--ptx-display, 60px), 8.6vw);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-align: center;
}

.ptx_line {
  display: block;
  white-space: nowrap;
  color: var(--ptx-grey, var(--color-muted));
}

.ptx_line:first-child {
  color: var(--ptx-fg, var(--warm-950));
}

.ptx_half {
  display: inline-block;
  will-change: transform;
}

/* reduced motion or a disabled viewport: the image above the closed manifesto, no runway */
.ptx_section.is-static .ptx_stage {
  position: relative;
  height: auto;
  padding: 120px 0 72px;
}

.ptx_section.is-static .ptx_frame {
  position: relative;
  inset: auto;
  margin: 0 auto;
}

.ptx_section.is-static .ptx_text {
  padding: 0 0 120px;
}

@media (max-width: 767px) {
  .ptx_stage {
    --ptx-img-w: 64px;
  }

  .ptx_section.is-static .ptx_stage {
    padding: 80px 0 48px;
  }

  .ptx_section.is-static .ptx_text {
    padding-bottom: 80px;
  }
}

/* Original motion, with a modestly enlarged portrait and a shorter exit. */
.ptx_section { --ptx-bg:var(--color-ink); --ptx-fg:var(--color-paper); --ptx-grey:var(--color-muted); --ptx-photo-width:clamp(96px,16.5vw,300px); }
.ptx_section .ptx_stage { --ptx-img-w:var(--ptx-photo-width); }
.ptx_section:not(.is-static) .ptx_text { margin-top:0; padding-bottom:calc(50svh + var(--ptx-photo-width) * 1.375 + 16px); }
.ptx_section:not(.is-static) { margin-bottom:calc(-50svh + var(--ptx-photo-width) * .625 + 48px); }
.ptx_section.is-static .ptx_text { padding-bottom:64px; }
@media(max-width:767px) {
 .ptx_section { --ptx-photo-width:96px; --ptx-display:clamp(16px,5.2vw,40px); }
 .ptx_section:not(.is-static) { margin-bottom:calc(-50svh + var(--ptx-photo-width) * .625 + 32px); }
 .ptx_section.is-static .ptx_text { padding-bottom:48px; }
}

/* Keep every manifesto line at the same full foreground tone. */
.ptx_section .ptx_line { color:var(--color-paper); }
