/* ===========================================================================
   USONIA HOUSE · PROJECT TIMELINE
   A reversed (dark) sheet built on the studio dashboard's tokens, so the two
   read as one family. Everything here is scoped to .tl-sheet and its children,
   so no other page on the site is affected.
   =========================================================================== */

.tl-sheet {
  --tl-phi: 1.6180339887;
  --tl-bg: #201d18;
  --tl-bg-raise: #27231d;
  --tl-bg-sink: #1a1714;
  --tl-ink: #ded6ca;
  --tl-ink-2: #bdb2a1;
  --tl-ink-3: #948977;
  --tl-accent: #c1663a;
  --tl-accent-txt: #d98a5f;
  --tl-rule: rgba(222,214,202,.30);
  --tl-rule-soft: rgba(222,214,202,.13);
  --tl-band-bg: #12100d;
  --tl-band-ink: #ede6da;
  --tl-muted: #8a7a66;

  background: var(--tl-bg);
  color: var(--tl-ink);
  position: relative;
  overflow: hidden;
  padding: 42px 26px 26px;
  margin: 0;
  max-width: none;
  border: 0;
}

/* film grain, straight off the dashboard */
.tl-sheet::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tl-inner { max-width: 1340px; margin: 0 auto; position: relative; z-index: 2; }

/* ---------- Fibonacci square + golden spiral line art ---------- */
.tl-arcs { position: absolute; pointer-events: none; z-index: 1; }
.tl-arcs path, .tl-arcs rect { fill: none; stroke: var(--tl-accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tl-arcs.a1 { top: -26px;   right: -34px;  width: 330px; height: 204px; opacity: .13; }
.tl-arcs.a2 { bottom: -40px; left: -48px;  width: 390px; height: 241px; opacity: .10; transform: scaleX(-1); }
.tl-arcs.a3 { top: 44%;      left: 42%;    width: 260px; height: 161px; opacity: .05; }

/* ---------- band, matching the dashboard panel title ---------- */
.tl-band {
  background: var(--tl-band-bg); color: var(--tl-band-ink);
  text-transform: uppercase; font-family: var(--tech, 'Didact Gothic', sans-serif);
  letter-spacing: .26em; font-size: 11.5px; font-weight: 700;
  padding: 9px 15px 7px; margin: 0 0 16px;
  border: 2px solid var(--tl-band-bg);
  box-shadow: 0 0 0 3px var(--tl-bg), 0 0 0 4px var(--tl-accent);
  display: flex; align-items: center; gap: 13px;
}
.tl-band .rule { flex: 1; height: 1px; background: rgba(255,255,255,.16); }
.tl-band .right { font-weight: 400; opacity: .7; letter-spacing: .16em; }

.tl-head { text-align: center; margin: 0 0 30px; }
.tl-head h1 {
  font-weight: 300; letter-spacing: .15em; text-transform: uppercase;
  font-size: clamp(28px, 5vw, 46px); margin: 0 0 8px; color: var(--tl-ink);
}
.tl-head .sub {
  font-family: var(--tech, 'Didact Gothic', sans-serif);
  text-transform: uppercase; letter-spacing: .24em; font-size: 11px;
  color: var(--tl-ink-3); margin: 0;
}
.tl-lede {
  max-width: 660px; margin: 0 auto 30px; text-align: center;
  font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--tl-ink-2);
}

/* ---------- the chart panel ---------- */
.tl-panel {
  background: var(--tl-bg-raise); border: 2px solid var(--tl-ink);
  outline: 1px solid var(--tl-rule-soft); outline-offset: 4px;
  padding: 16px 16px 14px; position: relative; margin-bottom: 30px;
}
.tl-scroll { position: relative; width: 100%; overflow-x: auto; overflow-y: hidden; }
.tl-scroll svg { display: block; }

/* milestone marks */
.tl-run { fill: none; stroke-linecap: round; }
.tl-dot { cursor: pointer; }
.tl-dot:focus { outline: none; }
.tl-dot:focus-visible circle, .tl-dot:focus-visible rect { stroke: var(--tl-band-ink); stroke-width: 2.4; }
.tl-label {
  font-family: var(--tech, 'Didact Gothic', sans-serif);
  font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase;
  fill: var(--tl-ink-2); pointer-events: none;
}
.tl-axis-label {
  font-family: var(--tech, 'Didact Gothic', sans-serif);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  fill: var(--tl-ink-3); pointer-events: none;
}
.tl-year {
  font-family: var(--tech, 'Didact Gothic', sans-serif);
  font-size: 13px; letter-spacing: .24em; font-weight: 700;
  fill: var(--tl-ink-2); pointer-events: none;
}

/* ---------- hover card ---------- */
.tl-tip {
  position: absolute; top: 0; left: 0; pointer-events: none; z-index: 40;
  background: var(--tl-bg-sink); border: 2px solid var(--tl-ink);
  outline: 1px solid var(--tl-rule-soft); outline-offset: 3px;
  padding: 0; width: 268px; opacity: 0;
  will-change: transform, opacity;
  transition: opacity .18s ease;
  box-shadow: 0 14px 34px rgba(0,0,0,.5);
}
.tl-tip.on { opacity: 1; }
/* only glide once it is already visible, so it never slides in from nowhere */
.tl-tip.on.glide { transition: opacity .18s ease, transform .26s cubic-bezier(.22,.7,.25,1); }

/* marks settle rather than snap */
.tl-dot circle { transition: r .18s cubic-bezier(.22,.7,.25,1), opacity .18s ease; }
.tl-dot:hover circle, .tl-dot:focus-visible circle { opacity: 1; }
.tl-tip img { width: 100%; height: 150px; object-fit: cover; display: block; border-bottom: 1px solid var(--tl-rule); }
.tl-tip .body { padding: 11px 13px 12px; }
.tl-tip .ms {
  font-family: var(--tech, 'Didact Gothic', sans-serif);
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--tl-accent-txt); margin-bottom: 5px; display: flex;
  justify-content: space-between; gap: 10px;
}
.tl-tip b { display: block; font-family: var(--display, 'Montserrat', sans-serif);
  font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--tl-band-ink); margin-bottom: 3px; }
.tl-tip .plan {
  font-family: var(--tech, 'Didact Gothic', sans-serif);
  font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--tl-ink-3); margin-bottom: 8px;
}
.tl-tip .note { font-size: 12px; font-weight: 300; line-height: 1.55; color: var(--tl-ink-2); }

/* ---------- legend ---------- */
.tl-legend {
  display: flex; gap: 26px; flex-wrap: wrap; align-items: center;
  font-family: var(--tech, 'Didact Gothic', sans-serif);
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--tl-ink-3); margin-top: 12px;
  border-top: 1px solid var(--tl-rule-soft); padding-top: 12px;
}
.tl-legend span { display: inline-flex; align-items: center; gap: 9px; }
.tl-legend i { display: inline-block; width: 13px; height: 13px; border-radius: 50%; }
.tl-legend i.designed { border: 2px solid var(--tl-accent); }
.tl-legend i.started  { background: var(--tl-muted); }
.tl-legend i.done     { background: var(--tl-accent); box-shadow: 0 0 0 2px var(--tl-bg-raise), 0 0 0 3px var(--tl-accent); }
.tl-legend i.planned  { border: 2px dashed var(--tl-muted); }
.tl-legend i.run      { width: 22px; height: 3px; border-radius: 0; background: var(--tl-accent); opacity: .55; }

/* ---------- counters ---------- */
.tl-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 26px; }
.tl-count {
  background: var(--tl-bg-raise); border: 1px solid var(--tl-rule);
  padding: 14px 15px 13px; position: relative; overflow: hidden;
}
.tl-count .n { font-size: 34px; font-weight: 300; color: var(--tl-accent-txt); line-height: 1; }
.tl-count .k {
  font-family: var(--tech, 'Didact Gothic', sans-serif);
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--tl-ink-3); margin-top: 8px; border-top: 1px solid var(--tl-accent);
  padding-top: 7px; display: inline-block;
}

/* ---------- notes + footer ---------- */
.tl-foot {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--tech, 'Didact Gothic', sans-serif);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--tl-ink-3); border-top: 1px solid var(--tl-rule-soft);
  padding-top: 14px; margin-top: 6px;
}
.tl-empty {
  text-align: center; color: var(--tl-ink-3); font-size: 13px; font-weight: 300;
  padding: 40px 20px;
}

@media (max-width: 860px) {
  .tl-counts { grid-template-columns: repeat(2, 1fr); }
  .tl-sheet { padding: 30px 16px 20px; }
  .tl-arcs.a3 { display: none; }
}
@media (max-width: 520px) {
  .tl-tip { width: 200px; }
  .tl-tip img { height: 106px; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-tip, .tl-tip.on.glide, .tl-dot circle { transition: none; }
  html { scroll-behavior: auto; }
}
