/*
 * Timo's page. Timo's own colours (teal mascot, cream, green, lilac, peach, night navy) sit inside
 * EMIAC's type and spacing. Every selector starts with .tm- so nothing here reaches another page.
 */
.tm-page {
  --tm-teal: #319aa5;
  --tm-cream: #f3ecdc;
  --tm-green: #dcecb4;
  --tm-lilac: #d9cdf6;
  --tm-peach: #f4cdb8;
  --tm-night: #1f1d3a;
}

.tm-pill-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tm-scenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin: 8px auto 0;
  padding: 28px;
  border-radius: 28px;
  background: var(--tm-cream);
}

.tm-scene {
  margin: 0;
}

.tm-scene-timer {
  grid-row: span 2;
  align-self: center;
}

.tm-scene video {
  width: 100%;
  border-radius: 14px;
}

.tm-scene figcaption {
  margin-top: 8px;
  color: #7a6f58;
  font: 12px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tm-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tm-three article {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--sheet);
}

.tm-three h3 {
  margin: 16px 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.tm-three p {
  margin: 0;
  color: var(--muted);
}

.tm-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-2);
  font: 11.5px var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tm-green {
  background: var(--tm-green);
}

.tm-lilac {
  background: var(--tm-lilac);
}

.tm-peach {
  background: var(--tm-peach);
}

.tm-contract-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 48px;
  border-radius: 28px;
  background: var(--tm-green);
}

.tm-contract-card h2 {
  margin: 10px 0 14px;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.05;
}

.tm-ledger {
  padding: 22px 24px;
  border-radius: 18px;
  background: #fff;
}

.tm-ledger-head {
  margin: 0 0 10px;
  color: var(--muted);
  font: 12px var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tm-ledger ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-ledger li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.tm-ledger li::before {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.tm-ledger .is-yes::before {
  background: #e7f6ec;
  color: #16723c;
  content: '✓';
}

.tm-ledger .is-maybe::before {
  background: #fff4d6;
  color: #8a6100;
  content: '~';
}

.tm-ledger .is-no {
  color: var(--muted);
}

.tm-ledger .is-no::before {
  background: #fdecea;
  color: #b3261e;
  content: '✕';
}

.tm-dash {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.tm-shot {
  margin: 0;
  padding: 14px 14px 12px;
  border-radius: var(--radius);
  background: var(--sheet);
}

.tm-shot-main {
  grid-column: 1 / -1;
}

.tm-shot video {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.tm-shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font: 12px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tm-zero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  padding: 52px;
  border-radius: 28px;
  background: var(--tm-night);
  color: #fff;
}

.tm-zero .eyebrow {
  color: #a9a6d6;
}

.tm-zero h2 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.05;
}

.tm-zero p {
  margin: 0;
  color: #c9c7e6;
}

.tm-zero-facts {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.tm-zero-facts li {
  padding-left: 22px;
  color: #fff;
  background: radial-gradient(circle at 5px 11px, #7fd1a0 4px, transparent 5px);
}

.tm-zero-art video {
  width: 100%;
  border-radius: 16px;
}

.tm-log {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.tm-log li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 12px 0 0;
  border-top: 2px solid var(--line);
}

.tm-log li::before {
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--tm-teal);
  content: '';
}

.tm-log li.is-now::before {
  background: var(--tm-teal);
}

.tm-log time {
  color: var(--faint);
  font: 12px var(--mono);
}

.tm-log b {
  font-weight: 500;
}

.tm-log span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.tm-log-more {
  margin-top: 32px;
  text-align: center;
}

.tm-house {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 40px;
  border-radius: 28px;
  background: var(--tm-cream);
}

.tm-house img {
  flex: none;
}

.tm-house h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.6vw, 34px);
}

.tm-house p {
  margin: 0;
  color: var(--body);
}

@media (max-width: 960px) {
  .tm-three,
  .tm-contract-card,
  .tm-zero {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-log {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 28px;
  }
}

@media (max-width: 720px) {
  .tm-scenes {
    grid-template-columns: minmax(0, 1fr);
    margin-right: var(--gutter);
    margin-left: var(--gutter);
    padding: 16px;
  }

  .tm-scene-timer {
    grid-row: auto;
  }

  .tm-dash {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-contract-card,
  .tm-zero {
    padding: 28px 22px;
  }

  .tm-log {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-house {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
  }
}
