:root {
  --tp-canvas: #F8F6F0;
  --tp-paper: #FFFFFF;
  --tp-parchment: #F1EBDD;
  --tp-ink: #151515;
  --tp-secondary: #56524B;
  --tp-muted: #777168;
  --tp-line: #CFC8BA;
  --tp-line-soft: #E5E0D6;
  --tp-gold: #B08A32;
  --tp-green: #2F6B4F;
  --tp-red: #9C4540;
  --tp-font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --tp-font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --tp-font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --tp-content: min(1280px, calc(100vw - 48px));
  --tp-reading: min(760px, calc(100vw - 48px));
}

.tp-page { background: var(--tp-canvas); color: var(--tp-ink); font-family: var(--tp-font-body); min-height: 60vh; padding: 0 0 72px; }
.tp-page *, .tp-page *::before, .tp-page *::after { box-sizing: border-box; }
.tp-page a { color: inherit; text-underline-offset: 0.15em; }
.tp-page h1, .tp-page h2, .tp-page h3, .tp-page p { margin-top: 0; }
.tp-page h1, .tp-page h2, .tp-page h3 { font-family: var(--tp-font-display); font-weight: 500; letter-spacing: -0.015em; }
.tp-page h1 { font-size: clamp(2.6rem, 5vw, 5.5rem); line-height: .94; max-width: 13ch; }
.tp-page h2 { font-size: clamp(1.85rem, 3vw, 3rem); line-height: 1; }
.tp-page h3 { font-size: 1.55rem; line-height: 1.05; }
.tp-page p { color: var(--tp-secondary); line-height: 1.55; }
.tp-page .tp-kicker { color: var(--tp-gold); font-family: var(--tp-font-mono); font-size: .68rem; letter-spacing: .14em; line-height: 1.3; margin-bottom: .7rem; text-transform: uppercase; }
.tp-page .screen-reader-text { clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.tp-shell, .tp-page-intro, .tp-section, .tp-breadcrumb, .tp-hero, .tp-member-desk { margin-inline: auto; width: var(--tp-content); }
.tp-section { border-top: 1px solid var(--tp-line); padding: 32px 0; }
.tp-section--paper { background: var(--tp-paper); border: 1px solid var(--tp-line); margin-top: 28px; padding: 28px; }
.tp-breadcrumb { color: var(--tp-muted); font-family: var(--tp-font-mono); font-size: .68rem; letter-spacing: .04em; padding-top: 22px; }
.tp-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.tp-breadcrumb li:not(:last-child)::after { color: var(--tp-gold); content: '/'; margin-left: .45rem; }
.tp-page-intro { border-bottom: 1px solid var(--tp-line); padding: 58px 0 36px; }
.tp-page-intro__dek { font-size: 1.15rem; max-width: 57ch; }
.tp-page-intro__meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 24px 0 0; }
.tp-page-intro__meta div { border-left: 1px solid var(--tp-line); padding-left: 12px; }
.tp-page-intro__meta dt { color: var(--tp-muted); font-family: var(--tp-font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.tp-page-intro__meta dd { color: var(--tp-ink); font-size: .82rem; margin: .25rem 0 0; }
.tp-section-heading { display: grid; gap: .2rem; margin-bottom: 22px; max-width: 700px; }
.tp-section-heading > p:last-child { margin-bottom: 0; }

.tp-button { align-items: center; border: 1px solid var(--tp-ink); display: inline-flex; font-family: var(--tp-font-body); font-size: .72rem; font-weight: 600; gap: .6rem; justify-content: center; letter-spacing: .1em; min-height: 44px; padding: .75rem 1rem; text-decoration: none; text-transform: uppercase; }
.tp-button--primary { background: var(--tp-ink); color: var(--tp-canvas) !important; }
.tp-button--secondary { background: transparent; color: var(--tp-ink) !important; }
.tp-text-link { color: #6D5420 !important; font-family: var(--tp-font-mono); font-size: .68rem; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.tp-text-link:hover { text-decoration: underline; }

.tp-route-grid { border-left: 1px solid var(--tp-line); display: grid; grid-template-columns: repeat(3, 1fr); }
.tp-route-card { border-bottom: 1px solid var(--tp-line); border-right: 1px solid var(--tp-line); min-height: 220px; padding: 22px; }
.tp-route-card h3 { margin-bottom: .65rem; }
.tp-route-card h3 a { text-decoration: none; }
.tp-route-card .tp-text-link { display: inline-block; margin-top: .7rem; }
.tp-route-grid--five { grid-template-columns: repeat(5, 1fr); }
.tp-route-grid--five .tp-route-card { min-height: 170px; }

.tp-card { background: var(--tp-paper); border: 1px solid var(--tp-line); padding: 22px; }
.tp-card h3 { margin-bottom: .55rem; }
.tp-card__meta, .tp-metrics { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0; }
.tp-metric { border-left: 1px solid var(--tp-line); min-width: 95px; padding-left: 10px; }
.tp-metric__label { color: var(--tp-muted); display: block; font-family: var(--tp-font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.tp-metric__value { color: var(--tp-ink); display: block; font-family: var(--tp-font-display); font-size: 1.7rem; line-height: 1.05; margin-top: .2rem; }

.tp-data-state { background: var(--tp-parchment); border-left: 3px solid var(--tp-gold); color: var(--tp-secondary); font-size: .85rem; margin: 0; padding: 12px 14px; }
.tp-data-state__label { color: var(--tp-ink); font-family: var(--tp-font-mono); font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tp-data-state--current { background: transparent; border-left-color: var(--tp-green); }
.tp-data-state--stale, .tp-data-state--delayed { border-left-color: #8A691C; }
.tp-data-state--unavailable { border-left-color: var(--tp-red); }
.tp-data-state--member_only { border-left-color: #415E74; }
.tp-provenance { border-top: 1px solid var(--tp-line-soft); color: var(--tp-muted); display: flex; flex-wrap: wrap; font-family: var(--tp-font-mono); font-size: .62rem; gap: 8px; justify-content: space-between; letter-spacing: .04em; margin-top: 18px; padding-top: 10px; }
.tp-provenance a { color: #6D5420; }

.tp-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 0; padding: 34px 0 0; }
.tp-hero__copy { border-bottom: 1px solid var(--tp-line); padding: 28px 28px 28px 0; }
.tp-hero__copy .tp-page-intro__dek { font-size: 1rem; max-width: 43ch; }
.tp-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tp-hero__member-link { display: block; margin-top: 16px; }
.tp-hero__panel { border: 1px solid var(--tp-line); margin-bottom: 0; padding: 20px; }
.tp-evidence-trace { background: linear-gradient(to bottom, transparent 49%, var(--tp-line-soft) 50%, transparent 51%); border-bottom: 1px solid var(--tp-line); height: 120px; margin: 18px 0; position: relative; }
.tp-evidence-trace::before, .tp-evidence-trace::after { content: ''; left: 3%; position: absolute; right: 3%; }
.tp-evidence-trace::before { border-top: 2px solid var(--tp-ink); top: 59%; transform: skewY(-4deg); }
.tp-evidence-trace::after { border-top: 1px dashed var(--tp-gold); top: 40%; transform: skewY(3deg); }

.tp-home-loop { border-bottom: 1px solid var(--tp-line); border-top: 1px solid var(--tp-line); display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; margin: 0 auto; padding: 14px 0; width: var(--tp-content); }
.tp-home-loop__step { text-align: center; }
.tp-home-loop__step p:last-child { font-size: .78rem; margin: 0; }
.tp-home-loop__arrow { align-self: center; color: var(--tp-gold); font-size: 1.3rem; padding: 0 14px; }
.tp-ledger { border: 1px solid var(--tp-line); display: grid; grid-template-columns: .9fr 2.1fr auto; gap: 20px; margin: 26px auto; padding: 16px 20px; width: var(--tp-content); }
.tp-ledger .tp-evidence-trace { height: 68px; margin: 0; }
.tp-member-desk { border-top: 1px solid var(--tp-line); display: grid; gap: 22px; grid-template-columns: .8fr 2.2fr; padding: 36px 0; }
.tp-member-desk__intro h2 { font-size: 2.1rem; }
.tp-member-desk__surfaces { border-left: 1px solid var(--tp-line); display: grid; grid-template-columns: repeat(3, 1fr); }
.tp-member-desk__surface { border-bottom: 1px solid var(--tp-line); border-right: 1px solid var(--tp-line); min-height: 130px; padding: 14px; }

.tp-method-panel { background: var(--tp-parchment); border: 1px solid var(--tp-line); margin-top: 28px; padding: 22px; }
.tp-method-panel h2 { font-size: 1.8rem; }
.tp-local-nav { border-bottom: 1px solid var(--tp-line); display: flex; gap: 18px; margin: 0 auto; overflow-x: auto; padding: 12px 0; width: var(--tp-content); }
.tp-local-nav a { color: var(--tp-secondary); flex: none; font-family: var(--tp-font-mono); font-size: .68rem; letter-spacing: .06em; padding: 8px 0; text-decoration: none; text-transform: uppercase; }
.tp-local-nav a[aria-current='page'] { border-bottom: 2px solid var(--tp-gold); color: var(--tp-ink); }

.tp-data-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); }
.tp-chart-region { background: var(--tp-paper); border: 1px solid var(--tp-line); min-height: 280px; padding: 20px; }
.tp-chart-region__placeholder { align-items: center; border: 1px dashed var(--tp-line); color: var(--tp-muted); display: flex; font-family: var(--tp-font-mono); font-size: .7rem; justify-content: center; min-height: 170px; text-align: center; }
.tp-table-wrap { overflow-x: auto; }
.tp-table { border-collapse: collapse; width: 100%; }
.tp-table th, .tp-table td { border-bottom: 1px solid var(--tp-line-soft); font-size: .85rem; padding: 12px 10px; text-align: left; white-space: nowrap; }
.tp-table th { color: var(--tp-muted); font-family: var(--tp-font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }

.tp-search-form { display: flex; gap: 10px; margin: 24px 0; }
.tp-search-form input { background: var(--tp-paper); border: 1px solid var(--tp-ink); flex: 1; font: inherit; min-height: 48px; padding: 0 14px; }
.tp-filter-bar { align-items: center; border-bottom: 1px solid var(--tp-line); display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 0; }
.tp-filter-bar button, .tp-filter-bar a { background: transparent; border: 1px solid var(--tp-line); color: var(--tp-ink); font: inherit; font-size: .75rem; min-height: 40px; padding: 0 12px; text-decoration: none; }

.tp-private-gate { background: var(--tp-parchment); border: 1px solid var(--tp-line); margin: 28px auto; max-width: 720px; padding: 30px; text-align: center; }
.tp-private-gate h1 { margin-inline: auto; }
.tp-film-room { border: 1px solid var(--tp-line); display: grid; grid-template-columns: .8fr 2fr; margin-top: 28px; }
.tp-film-room__intro, .tp-film-room__media { padding: 20px; }
.tp-film-room__media { border-left: 1px solid var(--tp-line); }
.tp-film-room__poster { align-items: center; background: var(--tp-parchment); display: flex; min-height: 180px; padding: 20px; }

@media (max-width: 1199px) {
  :root { --tp-content: min(100% - 40px, 1100px); }
  .tp-route-grid--five { grid-template-columns: repeat(3, 1fr); }
  .tp-hero { grid-template-columns: 1fr 1fr; }
  .tp-member-desk { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  :root { --tp-content: calc(100vw - 32px); --tp-reading: calc(100vw - 32px); }
  .tp-page { padding-bottom: 48px; }
  .tp-page-intro { padding: 36px 0 26px; }
  .tp-page h1 { font-size: clamp(2.4rem, 12vw, 4.25rem); }
  .tp-section { padding: 26px 0; }
  .tp-hero, .tp-data-layout, .tp-film-room { grid-template-columns: 1fr; }
  .tp-hero__copy { border-bottom: 0; padding: 24px 0; }
  .tp-hero__panel { margin-bottom: 0; }
  .tp-route-grid, .tp-route-grid--five { grid-template-columns: 1fr; }
  .tp-route-card { min-height: auto; }
  .tp-home-loop { grid-template-columns: 1fr; padding: 0; }
  .tp-home-loop__step { border-bottom: 1px solid var(--tp-line); padding: 12px 0; text-align: left; }
  .tp-home-loop__arrow { display: none; }
  .tp-ledger { grid-template-columns: 1fr; }
  .tp-member-desk__surfaces { grid-template-columns: 1fr; }
  .tp-member-desk__surface { min-height: 0; }
  .tp-film-room__media { border-left: 0; border-top: 1px solid var(--tp-line); }
  .tp-search-form { flex-direction: column; }
  .tp-provenance { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { .tp-page * { scroll-behavior: auto !important; transition: none !important; } }
.tp-page a:focus-visible, .tp-page button:focus-visible, .tp-page input:focus-visible { outline: 2px solid var(--tp-gold); outline-offset: 2px; }
