/* ── Reset ───────────────────────────────────────────────────────────────────── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Base ────────────────────────────────────────────────────────────────────── */

body {
  background: #111c27;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;     /* re-enabled on hero via body.on-hero */
  font-family: 'Exo 2', system-ui, -apple-system, sans-serif;
  color: #e8e4e0;
  cursor: crosshair;
}
body.on-hero { touch-action: auto; }

canvas {
  position: fixed;
  inset: 0;
  display: block;
  z-index: 0;
}

/* ── Vertex label layer ──────────────────────────────────────────────────────── */

#label-layer {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.vlabel {
  position: absolute;
  top: 0; left: 0;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: #c9878e;
  text-shadow: 0 0 12px rgba(176, 96, 110, 0.75);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform, opacity;
}

/* ── Nav ─────────────────────────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 52px;
  background: linear-gradient(to bottom, rgba(10,17,26,0.75) 0%, transparent 100%);
}

.logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ecddd5;
  text-decoration: none;
  user-select: none;
}
.logo em { font-style: normal; color: #c9878e; }

/* ── Hero ────────────────────────────────────────────────────────────────────── */

.hero {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 0 24px;
  transition: opacity 0.4s ease;
}
.hero.dim { opacity: 0.08; }

.hero-eyebrow {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #c9878e;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}

.hero-headline {
  font-size: clamp(32px, 4.5vw, 68px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #f2eae4;
  max-width: 800px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}
.hero-headline em { font-style: normal; color: #c9878e; }

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(236, 221, 213, 0.5);
  letter-spacing: 0.03em;
  margin-bottom: 52px;
  max-width: 480px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
}

.hero-cta {
  pointer-events: auto;
  display: inline-block;
  padding: 13px 40px;
  border: 1px solid rgba(201, 135, 142, 0.45);
  color: #c9878e;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  opacity: 0;
  animation: fadeUp 1s ease 1s forwards;
  background: transparent;
}
.hero-cta:hover {
  background: rgba(201, 135, 142, 0.1);
  border-color: #c9878e;
  color: #e8bdb8;
}

/* ── Panel backdrop ──────────────────────────────────────────────────────────── */

.panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 63;
  background: rgba(8, 14, 22, 0.52);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.panel-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  cursor: default;
}

/* ── Article panels ──────────────────────────────────────────────────────────── */

.panel {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.panel.active {
  opacity: 1;
  pointer-events: auto;
}

.panel-inner {
  position: relative;
  background: rgba(10, 18, 28, 0.97);
  border: 1px solid rgba(201, 135, 142, 0.18);
  padding: 52px 56px 48px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  touch-action: pan-y;
  transform: translateY(28px);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.4, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(201,135,142,0.25) transparent;
}
.panel.active .panel-inner { transform: translateY(0); }

.panel-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(236, 221, 213, 0.35);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
  font-family: inherit;
}
.panel-close:hover { color: #c9878e; }

.panel-eyebrow {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(201, 135, 142, 0.7);
  margin-bottom: 10px;
}

.panel-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #f2eae4;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(201, 135, 142, 0.22);
  margin-bottom: 28px;
}

.panel-body p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(236, 221, 213, 0.72);
  margin-bottom: 20px;
}
.panel-body p:last-child { margin-bottom: 0; }

.panel-body blockquote {
  border-left: 2px solid #c9878e;
  margin: 24px 0 0;
  padding: 4px 0 4px 20px;
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.75;
  color: rgba(236, 221, 213, 0.88);
}

.punch {
  color: #c9878e;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 13px;
  text-transform: uppercase;
}

.panel-social {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 135, 142, 0.12);
}
.panel-social a {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236, 221, 213, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.panel-social a:hover { color: #c9878e; }

/* ── Forms ───────────────────────────────────────────────────────────────────── */

.panel-form { margin-top: 4px; }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form-group.full { flex: none; width: 100%; margin-bottom: 16px; }
.form-group label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201, 135, 142, 0.6);
}
.form-group input,
.form-group textarea {
  background: rgba(201, 135, 142, 0.05);
  border: 1px solid rgba(201, 135, 142, 0.2);
  color: #ecddd5;
  font-family: inherit;
  font-size: 13px;
  font-weight: 300;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(201, 135, 142, 0.55); }
.form-group textarea { height: 100px; }
.form-actions { display: flex; gap: 12px; margin-top: 4px; }

.btn-primary {
  padding: 11px 32px;
  border: 1px solid rgba(201, 135, 142, 0.5);
  background: rgba(201, 135, 142, 0.08);
  color: #c9878e;
  font-family: inherit;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary:hover { background: rgba(201, 135, 142, 0.16); border-color: #c9878e; color: #e8bdb8; }
.btn-primary:disabled { opacity: 0.35; cursor: default; pointer-events: none; }

.btn-secondary {
  padding: 11px 24px;
  border: 1px solid rgba(236, 221, 213, 0.1);
  background: transparent;
  color: rgba(236, 221, 213, 0.3);
  font-family: inherit;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: rgba(236, 221, 213, 0.25); color: rgba(236, 221, 213, 0.6); }

/* ── Click hint ──────────────────────────────────────────────────────────────── */

.click-hint {
  position: fixed;
  bottom: 32px;
  right: 52px;
  z-index: 10;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(236, 221, 213, 0.2);
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 1s ease 2.2s forwards;
  transition: opacity 0.6s ease;
}

/* ── Ripple ──────────────────────────────────────────────────────────────────── */

.ripple {
  position: fixed;
  border-radius: 50%;
  border: 1px solid rgba(201, 135, 142, 0.7);
  pointer-events: none;
  z-index: 30;
  transform: translate(-50%, -50%) scale(0);
  animation: rippleOut 0.9s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

/* ── Intro suppression ───────────────────────────────────────────────────────── */

body.intro .hero > *,
body.intro .scroll-hint,
body.intro .click-hint {
  animation: none !important;
  opacity: 0 !important;
  transition: none !important;
}

/* ── Keyframes ───────────────────────────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1;   }
}
@keyframes rippleOut {
  to { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}

/* ── App-page layout ─────────────────────────────────────────────────────────── */

.pt-nav { background: none; }

.pt-nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.pt-nav-link {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 221, 213, 0.45);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
.pt-nav-link:hover,
.pt-nav-link.active { color: #c9878e; }

.pt-main {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 100px 52px 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.pt-page-header { padding-bottom: 48px; }

.pt-eyebrow {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c9878e;
  margin-bottom: 12px;
}

.pt-title {
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #f2eae4;
  margin-bottom: 12px;
}

.pt-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: rgba(236, 221, 213, 0.45);
  line-height: 1.7;
  max-width: 600px;
}

.pt-panel {
  background: rgba(8, 14, 22, 0.72);
  border: 1px solid rgba(201, 135, 142, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 36px 40px;
  margin-bottom: 24px;
}

.pt-panel .pt-section-heading {
  border-bottom: none;
  margin-bottom: 8px;
}

.pt-panel-body {
  font-size: 14px;
  font-weight: 300;
  color: rgba(236, 221, 213, 0.5);
  line-height: 1.75;
}

/* ── Dev scaffolding ─────────────────────────────────────────────────────── */

.pt-placeholder {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed rgba(201, 135, 142, 0.2);
  background: rgba(8, 14, 22, 0.25);
  margin-bottom: 24px;
  padding: 32px;
}

.pt-placeholder--tall { min-height: 280px; }

.pt-placeholder-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201, 135, 142, 0.35);
}

.pt-placeholder-desc {
  font-size: 11px;
  font-weight: 300;
  color: rgba(236, 221, 213, 0.2);
  text-align: center;
  max-width: 280px;
  line-height: 1.6;
}

.pt-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(236, 221, 213, 0.4);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 135, 142, 0.1);
}

/* hex ornament */
.pt-section-heading::before,
.pt-list li::before {
  content: '';
  display: block;
  background: url('pt-hex.svg') center / contain no-repeat;
  flex-shrink: 0;
}
.pt-section-heading::before { width: 20px; height: 20px; }

.pt-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 20px;
}
.pt-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 300;
  color: rgba(236, 221, 213, 0.55);
  line-height: 1.65;
}
.pt-list li::before {
  width: 9px;
  height: 9px;
  margin-top: 8px;
}

.pt-divider {
  border: none;
  border-top: 1px solid rgba(201, 135, 142, 0.1);
  margin: 48px 0;
}

.pt-footer {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 52px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(201, 135, 142, 0.1);
}

.pt-footer-wordmark {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(236, 221, 213, 0.25);
  text-decoration: none;
}
.pt-footer-wordmark em { font-style: normal; color: rgba(201, 135, 142, 0.4); }

.pt-footer-right {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(236, 221, 213, 0.18);
}

/* ── Smooth scroll ───────────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }

/* ── Hero page overlay components ───────────────────────────────────────────── */

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 221, 213, 0.55);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
.nav-links a:hover,
.nav-links a.active { color: #c9878e; }

.nav-social {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-social a {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 221, 213, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-social a:hover { color: #c9878e; }

.scroll-hint {
  position: fixed;
  bottom: 0;
  left: 52px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.scroll-hint span {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(236, 221, 213, 0.25);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 14px;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(201, 135, 142, 0.9), transparent);
  animation: pulse 2.4s ease-in-out 1.8s infinite;
}

#page-overlay {
  position: fixed;
  inset: 0;
  z-index: 11;
  pointer-events: none;
}
.page-section {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.page-section.active {
  opacity: 1;
  background: radial-gradient(ellipse 70% 52% at 50% 50%,
    rgba(8, 14, 22, 0.88) 0%,
    rgba(8, 14, 22, 0.60) 45%,
    rgba(8, 14, 22, 0.20) 72%,
    transparent 100%);
}

.page-eyebrow {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #c9878e;
  margin-bottom: 16px;
}
.page-title {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #f2eae4;
  margin-bottom: 20px;
}
.page-body {
  font-size: 15px;
  font-weight: 300;
  color: rgba(236, 221, 213, 0.5);
  max-width: 440px;
  line-height: 1.75;
}

.formula {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  column-gap: 10px;
  row-gap: 10px;
  margin: 28px auto 24px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(236, 221, 213, 0.45);
  text-align: right;
}
.formula .lhs { text-align: right; color: rgba(236, 221, 213, 0.35); }
.formula .eq  { text-align: center; color: rgba(201, 135, 142, 0.5); }
.formula .rhs { text-align: left; }
.formula .hi  { color: #c9878e; font-weight: 400; }

.theorem-formula {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236, 221, 213, 0.5);
  margin-bottom: 24px;
  line-height: 2;
}
.theorem-formula .punch { font-size: 13px; }

.hero.page-hidden,
.scroll-hint.page-hidden,
.click-hint.page-hidden { opacity: 0 !important; }
.hero.page-hidden .hero-cta { pointer-events: none; }

body > nav { transition: opacity 1s ease; }
body.screensaver > nav { opacity: 0; pointer-events: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 61;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(236, 221, 213, 0.65);
  transition: background 0.2s;
}
.nav-toggle:hover span { background: #c9878e; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 62;
  background: rgba(8, 14, 22, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 221, 213, 0.65);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
.mobile-menu a:hover { color: #c9878e; }
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(236, 221, 213, 0.35);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
  transition: color 0.2s;
}
.mobile-menu-close:hover { color: #c9878e; }

/* ── Content layout grids ────────────────────────────────────────────────────── */

.pt-grid         { display: grid; grid-template-columns: 2fr 1fr;        gap: 24px; margin-bottom: 24px; }
.pt-grid-sidebar { display: grid; grid-template-columns: 1fr 2fr;        gap: 24px; margin-bottom: 24px; }
.pt-grid-half    { display: grid; grid-template-columns: 1fr 1fr;        gap: 24px; margin-bottom: 24px; }
.pt-grid-thirds  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }

/* ── Timeline strip ──────────────────────────────────────────────────────────── */

.pt-timeline {
  display: flex;
  gap: 3px;
  margin-bottom: 48px;
  height: 36px;
}
.pt-timeline-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
  overflow: hidden;
  position: relative;
  cursor: default;
  white-space: nowrap;
  padding: 0 14px;
}
.pt-timeline-segment::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
}

/* ── Phase block ─────────────────────────────────────────────────────────────── */

.pt-phase { margin-bottom: 56px; }

.pt-phase-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 135, 142, 0.08);
}
.pt-phase-title {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -0.01em;
  font-style: italic;
}
.pt-phase-desc {
  font-size: 12px;
  font-weight: 300;
  color: rgba(236, 221, 213, 0.25);
  letter-spacing: 0.02em;
}

/* ── Week card grid ──────────────────────────────────────────────────────────── */

.pt-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.pt-week-card {
  background: rgba(8, 14, 22, 0.65);
  border: 1px solid rgba(201, 135, 142, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.2s;
}
.pt-week-card:hover { border-color: rgba(201, 135, 142, 0.25); }
.pt-week-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(201, 135, 142, 0.08);
}
.pt-week-pip { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.pt-week-num {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(236, 221, 213, 0.2);
  white-space: nowrap;
}
.pt-week-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #f2eae4;
  flex: 1;
  line-height: 1.3;
}
.pt-week-card-body { padding: 16px 20px; }
.pt-week-topics { list-style: none; margin-bottom: 16px; }
.pt-week-topics li {
  font-size: 12px;
  font-weight: 300;
  color: rgba(236, 221, 213, 0.38);
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
  line-height: 1.55;
}
.pt-week-topics li::before {
  content: '—';
  position: absolute; left: 0; top: 5px;
  font-size: 9px;
  color: rgba(201, 135, 142, 0.25);
}

/* ── Resource links ──────────────────────────────────────────────────────────── */

.pt-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 135, 142, 0.07);
}
.pt-res {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid rgba(201, 135, 142, 0.18);
  background: rgba(201, 135, 142, 0.04);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(236, 221, 213, 0.35);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  cursor: pointer;
}
.pt-res:hover { border-color: rgba(201, 135, 142, 0.5); color: #c9878e; background: rgba(201, 135, 142, 0.08); }

/* ── Continuity notice ───────────────────────────────────────────────────────── */

.pt-continues-from {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  margin-bottom: 36px;
  background: rgba(201, 135, 142, 0.05);
  border: 1px solid rgba(201, 135, 142, 0.14);
  border-left: 3px solid rgba(201, 135, 142, 0.5);
}
.pt-continues-from-label {
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(201, 135, 142, 0.6); white-space: nowrap;
}
.pt-continues-from-text { font-size: 12px; font-weight: 300; color: rgba(236, 221, 213, 0.35); }
.pt-continues-from-link {
  font-size: 12px; font-weight: 300;
  color: rgba(201, 135, 142, 0.6); text-decoration: none;
  margin-left: 4px; transition: color 0.2s;
}
.pt-continues-from-link:hover { color: #c9878e; }

/* ── Utility ─────────────────────────────────────────────────────────────────── */

[hidden] { display: none !important; }

/* ── Mobile (shared rules) ───────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .pt-main   { padding: 88px 24px 48px; }
  .pt-footer { padding: 20px 24px 32px; }
  .pt-nav-right { gap: 20px; }
  .pt-grid, .pt-grid-sidebar, .pt-grid-half, .pt-grid-thirds { grid-template-columns: 1fr; }
  .pt-timeline-segment { font-size: 8px; padding: 0 8px; }
}

@media (max-width: 640px) {
  nav { padding: 20px 24px; }
  .click-hint { right: 20px; bottom: 24px; }
  .panel { padding: 12px; }
  .panel-inner { padding: 40px 24px 32px; }
  .form-row { flex-direction: column; }
  .nav-links, .nav-social { display: none; }
  .nav-toggle { display: flex; }
  .scroll-hint { left: 20px; }
  .page-body { font-size: 14px; }
}

@media (max-width: 480px) {
  .pt-nav-right { display: none; }
  .pt-week-grid { grid-template-columns: 1fr; }
  .pt-timeline-segment span { display: none; }
  .pt-timeline-segment::after { content: attr(data-short); font-size: 8px; letter-spacing: 0.1em; }
}
