/* ============================================================
   THREE LINKED CLAIMS — v2
   Clara Futura × Dr. William B. Miller Jr.
   ============================================================ */

:root {
  --deep-navy: #0C2137;
  --surface:   #0C2137;
  --surface-2: #0C2137;
  --surface-3: #0C2137;
  --amber:     #F2B54D;
  --amber-bright: #FFE9BD;
  --amber-glow: rgba(242, 181, 77, 0.55);
  --silver:    #B5BEC6;
  --cream:     #E8E5DD;
  --muted:     #B5BEC6;
  --faint:     #B5BEC6;
  --hairline:  rgba(164, 174, 183, 0.14);
  --hairline-strong: rgba(242, 181, 77, 0.28);

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html, body {
  background: transparent;
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   SECTION + BACKGROUND
   ============================================================ */
.tlc {
  position: relative;
  width: 100%;
  padding: clamp(56px, 7vw, 112px) clamp(20px, 4vw, 56px);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(242,181,77,0.08), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(242,181,77,0.06), transparent 55%),
    linear-gradient(180deg, var(--deep-navy) 0%, #0C2137 100%);
  overflow: hidden;
  isolation: isolate;
}

.tlc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tlc-hex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.tlc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: tlcFloat 14s ease-in-out infinite;
}
.tlc-orb-1 {
  width: 420px; height: 420px;
  top: -120px; left: -80px;
  background: radial-gradient(circle, rgba(242,181,77,0.35), transparent 70%);
  animation-delay: 0s;
}
.tlc-orb-2 {
  width: 360px; height: 360px;
  bottom: 10%; right: -80px;
  background: radial-gradient(circle, rgba(255,233,189,0.25), transparent 70%);
  animation-delay: -5s;
}
.tlc-orb-3 {
  width: 300px; height: 300px;
  top: 40%; left: 45%;
  background: radial-gradient(circle, rgba(242,181,77,0.18), transparent 70%);
  animation-delay: -9s;
}
@keyframes tlcFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 25px) scale(0.95); }
}

/* ============================================================
   CONTAINER + HEADER
   ============================================================ */
.tlc-container {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.tlc-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.tlc-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.tlc-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 18px;
}

.tlc-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

.tlc-sub-hint {
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ============================================================
   STAGE + SPINE
   ============================================================ */
.tlc-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 0 8px;
}

/* SVG spine with flowing particles */
.tlc-spine-svg {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 30px;
  width: 22px;
  height: calc(100% - 20px);
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

/* ============================================================
   CLAIM (row: numeral rail + card)
   ============================================================ */
.tlc-claim {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 14px 0;
  cursor: pointer;
  outline: none;
  z-index: 1;
}

.tlc-claim:focus-visible .tlc-card {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(242,181,77,0.25);
}

.tlc-claim-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 24px;
}

.tlc-numeral {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  font-size: 34px;
  line-height: 1;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-shadow: 0 0 16px rgba(242,181,77,0.4);
  transition: color 0.4s, text-shadow 0.4s, transform 0.4s;
  margin-top: 18px; /* space below the node */
}

.tlc-node {
  position: absolute;
  left: 40px;
  top: 40px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      #FFE9BD 0%,
      #FFD98A 35%,
      #F2B54D 70%,
      rgba(242,181,77,0.9) 100%);
  border: 1px solid rgba(255,233,189,0.8);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 4px rgba(12,33,55,0.95),
    0 0 14px rgba(242,181,77,0.75),
    0 0 28px rgba(242,181,77,0.35);
  transition: transform 0.4s, box-shadow 0.4s;
  z-index: 3;
  animation: tlcNodeIdlePulse 3.4s ease-in-out infinite;
}

/* Hot-spot core — a second brighter point inside each node */
.tlc-node::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0%, #FFE9BD 50%, transparent 100%);
  mix-blend-mode: screen;
  animation: tlcNodeCore 3.4s ease-in-out infinite;
}

/* Outer aura — soft halo that breathes with the node */
.tlc-node::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,181,77,0.45) 0%, rgba(242,181,77,0.15) 45%, transparent 75%);
  pointer-events: none;
  z-index: -1;
  animation: tlcNodeAura 3.4s ease-in-out infinite;
  filter: blur(4px);
}

@keyframes tlcNodeIdlePulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(12,33,55,0.95),
      0 0 14px rgba(242,181,77,0.7),
      0 0 28px rgba(242,181,77,0.3);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(12,33,55,0.95),
      0 0 22px rgba(255,233,189,1),
      0 0 48px rgba(242,181,77,0.55);
  }
}
@keyframes tlcNodeCore {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.15); }
}
@keyframes tlcNodeAura {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%      { opacity: 0.95; transform: scale(1.2); }
}

.tlc-claim:hover .tlc-node {
  transform: translate(-50%, -50%) scale(1.2);
  animation-duration: 1.6s;
}

.tlc-claim.is-active .tlc-node {
  transform: translate(-50%, -50%) scale(1.35);
  animation: tlcNodeActivePulse 1.8s ease-in-out infinite;
}
.tlc-claim.is-active .tlc-node::before {
  animation-duration: 1.8s;
}
.tlc-claim.is-active .tlc-node::after {
  animation-duration: 1.8s;
  inset: -22px;
}
@keyframes tlcNodeActivePulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(12,33,55,1),
      0 0 22px rgba(255,233,189,1),
      0 0 44px rgba(242,181,77,0.55),
      0 0 72px rgba(242,181,77,0.3);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(12,33,55,1),
      0 0 32px rgba(255,233,189,1),
      0 0 68px rgba(242,181,77,0.75),
      0 0 110px rgba(242,181,77,0.4);
  }
}

.tlc-claim.is-active .tlc-numeral,
.tlc-claim:hover .tlc-numeral {
  color: var(--amber-bright);
  text-shadow: 0 0 28px rgba(255,233,189,0.55);
}

/* ============================================================
   CARD
   ============================================================ */
.tlc-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(18,44,69,0.92), rgba(12,33,55,0.92));
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 28px 32px;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s ease,
    background 0.4s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tlc-claim:hover .tlc-card {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
}

.tlc-claim.is-active .tlc-card {
  border-color: var(--amber);
  background:
    linear-gradient(180deg, rgba(30,65,98,0.96), rgba(18,44,69,0.96));
  box-shadow:
    0 0 0 1px rgba(242,181,77,0.35),
    0 20px 50px -20px rgba(242,181,77,0.45),
    inset 0 1px 0 rgba(255,233,189,0.08);
}

.tlc-card-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tlc-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
}

.tlc-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: -0.005em;
}

.tlc-card-lede {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 4px;
  max-width: 62ch;
}

/* Body — collapsed by default */
.tlc-card-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.65s cubic-bezier(0.65, 0.05, 0.35, 1),
    opacity 0.45s ease 0.05s,
    margin-top 0.5s ease;
}

.tlc-claim.is-active .tlc-card-body {
  max-height: 600px;
  opacity: 1;
  margin-top: 20px;
}

.tlc-card-body p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--cream);
  max-width: 62ch;
}
.tlc-card-body p em {
  color: var(--amber-bright);
  font-style: italic;
}

.tlc-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
}
.tlc-badges li {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--amber-bright);
  padding: 6px 12px;
  border: 1px solid rgba(242,181,77,0.35);
  border-radius: 999px;
  background: rgba(242,181,77,0.08);
  white-space: nowrap;
}

/* Toggle button */
.tlc-toggle {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(242,181,77,0.08);
  border: 1px solid rgba(242,181,77,0.3);
  border-radius: 999px;
  color: var(--amber);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.tlc-toggle:hover {
  background: rgba(242,181,77,0.16);
  color: var(--amber-bright);
  border-color: rgba(242,181,77,0.55);
}
.tlc-toggle-icon {
  transition: transform 0.4s cubic-bezier(0.65, 0.05, 0.35, 1);
}
.tlc-claim.is-active .tlc-toggle-icon {
  transform: rotate(180deg);
}
.tlc-claim.is-active .tlc-toggle-label::before {
  content: "Collapse";
}
.tlc-claim.is-active .tlc-toggle-label {
  font-size: 0;
}
.tlc-claim.is-active .tlc-toggle-label::before {
  font-size: 11px;
}

/* ============================================================
   ARROWS BETWEEN CLAIMS
   ============================================================ */
.tlc-arrow {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: center;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tlc-arrow.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tlc-arrow svg {
  grid-column: 2 / 3;
  width: min(260px, 60%);
  height: 54px;
  margin-left: -8px;
}

.tlc-arrow-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: tlcDrawArrow 1.4s cubic-bezier(0.65, 0.05, 0.35, 1) forwards;
}
.tlc-arrow.is-visible .tlc-arrow-path {
  animation-play-state: running;
}
@keyframes tlcDrawArrow {
  to { stroke-dashoffset: 0; }
}

.tlc-arrow-label {
  position: absolute;
  left: calc(80px + 24px + min(260px, 60%) + 12px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.005em;
  color: var(--silver);
  white-space: nowrap;
  max-width: 40%;
}

/* ============================================================
   SYNTHESIS STRIP
   ============================================================ */
.tlc-synthesis {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 52px);
  background:
    linear-gradient(135deg, rgba(30,65,98,0.65) 0%, rgba(18,44,69,0.65) 100%);
  border: 1px solid var(--hairline-strong);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -20px rgba(242,181,77,0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.tlc-synthesis.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tlc-synthesis-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.tlc-synthesis-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--amber);
  text-transform: uppercase;
}

.tlc-synthesis-body {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  color: var(--cream);
  max-width: 72ch;
  font-weight: 400;
}
.tlc-synthesis-body em {
  color: var(--amber-bright);
  font-style: italic;
}

.tlc-synthesis-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  margin-top: 4px;
  background: var(--amber);
  color: var(--deep-navy);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px -10px rgba(242,181,77,0.6);
}
.tlc-synthesis-cta:hover {
  background: var(--amber-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(255,233,189,0.75);
}
.tlc-synthesis-cta svg {
  transition: transform 0.3s ease;
}
.tlc-synthesis-cta:hover svg {
  transform: translateX(3px);
}

/* Disabled state — preprint coming soon */
.tlc-synthesis-cta.is-disabled {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(242,181,77,0.4);
  box-shadow: none;
  cursor: default;
  padding: 12px 22px;
  gap: 14px;
}
.tlc-synthesis-cta.is-disabled:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}
.tlc-synthesis-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(242,181,77,0.18);
  color: var(--amber-bright);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(242,181,77,0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .tlc-claim {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }
  .tlc-spine { left: 28px; }
  .tlc-node  { left: 28px; top: 36px; }
  .tlc-claim-rail { padding-top: 26px; }
  .tlc-numeral { font-size: 30px; }

  .tlc-card { padding: 22px 22px 22px 24px; }
  .tlc-card-title { font-size: 22px; }
  .tlc-card-lede { font-size: 14.5px; }

  .tlc-toggle {
    position: static;
    margin-top: 14px;
  }

  .tlc-arrow {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }
  .tlc-arrow svg {
    width: 100px;
    height: 40px;
  }
  .tlc-arrow-label {
    position: static;
    transform: none;
    white-space: normal;
    max-width: none;
    font-size: 13px;
    line-height: 1.4;
    grid-column: 2 / 3;
    margin-top: -6px;
  }
  .tlc-arrow {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }
  .tlc-arrow svg { grid-row: 1; }
  .tlc-arrow-label { grid-row: 2; }
}

@media (max-width: 480px) {
  .tlc { padding: 48px 16px; }
  .tlc-heading { font-size: 32px; }
  .tlc-sub { font-size: 14.5px; }
  .tlc-card { padding: 18px 18px; }
  .tlc-card-title { font-size: 20px; }
  .tlc-tag { font-size: 10px; letter-spacing: 0.16em; }
  .tlc-badges li { font-size: 11px; padding: 5px 10px; }
  .tlc-synthesis-body { font-size: 17px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .tlc-orb,
  .tlc-spine-dot,
  .tlc-arrow-path {
    animation: none !important;
  }
  .tlc-card-body,
  .tlc-spine-dot,
  .tlc-toggle-icon,
  .tlc-card,
  .tlc-node,
  .tlc-numeral {
    transition: none !important;
  }
}
