.time-management-page {
  --tm-night: var(--ink);
}

.tm-hero {
  border-bottom: 1px solid var(--line);
}

.tm-hero .container {
  padding-block: 72px 92px;
}

.tm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: 8vw;
  align-items: end;
}

.tm-hero-copy h1 {
  margin: 20px 0 28px;
  font-family: "Spectral", serif;
  font-size: clamp(64px, 9vw, 126px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.065em;
}

.tm-lead {
  margin: 0 0 20px;
  font-size: clamp(20px, 2.1vw, 29px);
  font-weight: 500;
  line-height: 1.65;
}

.tm-hero-copy > p:last-of-type {
  max-width: 650px;
  margin: 0;
}

.tm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.tm-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.tm-button:hover,
.tm-button:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.tm-button-primary {
  color: var(--paper);
  background: var(--ink);
}

.tm-button-primary:hover,
.tm-button-primary:focus-visible {
  color: var(--ink);
  background: transparent;
}

.time-calculation {
  padding: 30px;
  color: #f7f7f5;
  background: var(--tm-night);
}

.time-label,
.time-calculation > p:last-child {
  margin: 0;
  font-family: "Spectral", serif;
  font-size: 10px;
  letter-spacing: .12em;
}

.time-row,
.time-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.time-row {
  margin-top: 32px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(247, 247, 245, .35);
}

.time-row span,
.time-result span {
  font-family: "Spectral", serif;
  font-size: clamp(50px, 5vw, 74px);
  line-height: 1;
  letter-spacing: -.04em;
}

.time-row small,
.time-result small {
  font-size: 11px;
}

.time-operator {
  padding: 12px 0;
  text-align: right;
  font-family: "Spectral", serif;
  font-size: 18px;
}

.time-result {
  margin-bottom: 28px;
  padding: 18px 0 22px;
  border-top: 1px solid #f7f7f5;
  border-bottom: 1px solid #f7f7f5;
}

.tm-section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.tm-section-heading {
  display: grid;
  grid-template-columns: 150px minmax(320px, .9fr) minmax(250px, .75fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 54px;
}

.tm-section-heading h2,
.tm-media-heading h2 {
  margin: 0;
  font-family: "Spectral", serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.04em;
}

.tm-section-heading > p:last-child,
.tm-media-heading > p {
  margin: 8px 0 0;
  font-size: 13px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.feature-grid article {
  min-width: 0;
  padding: 28px 34px 34px 0;
}

.feature-grid article + article {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.feature-grid span {
  font-family: "Spectral", serif;
  font-size: 12px;
}

.feature-grid h3 {
  margin: 28px 0 12px;
  font-size: 18px;
}

.feature-grid p {
  margin: 0;
  font-size: 12px;
}

.screen-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 22px;
  align-items: end;
  margin-top: 64px;
}

.screen-card {
  margin: 0;
}

.screen-card img {
  display: block;
  width: 100%;
  max-height: 610px;
  object-fit: contain;
  object-position: bottom;
}

.screen-card-widget img {
  border: 1px solid var(--line);
}

.screen-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.screen-card figcaption span {
  font-family: "Spectral", serif;
  font-weight: 600;
}

.tm-implementation {
  color: var(--paper);
  background: var(--ink);
}

.tm-implementation-grid {
  display: grid;
  grid-template-columns: 1fr .75fr;
  gap: 9vw;
}

.tm-implementation .tm-section-heading {
  display: block;
  margin: 0;
}

.tm-implementation .tm-section-heading h2 {
  margin: 18px 0 28px;
}

.tm-implementation .tm-section-heading > p:last-child {
  max-width: 620px;
}

.tech-list {
  margin: 0;
  border-top: 1px solid var(--paper);
}

.tech-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(247, 247, 245, .35);
}

.tech-list dt {
  font-family: "Spectral", serif;
  font-size: 10px;
}

.tech-list dd {
  margin: 0;
  font-size: 12px;
}

.tm-media-heading {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(250px, .75fr) auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}

.tm-media-heading .section-label {
  margin-bottom: 8px;
}

.video-frame {
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--ink);
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: #000;
}

@media (max-width: 900px) {
  .tm-hero-grid,
  .tm-implementation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tm-hero-grid > * {
    min-width: 0;
  }

  .time-calculation {
    max-width: 520px;
  }

  .tm-section-heading {
    grid-template-columns: 100px 1fr;
  }

  .tm-section-heading > p:last-child {
    grid-column: 2;
  }

  .screen-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .screen-card-widget {
    grid-column: 1 / -1;
    max-width: 540px;
  }
}

@media (max-width: 600px) {
  .tm-hero .container {
    padding-block: 48px 64px;
  }

  .tm-hero-grid {
    gap: 50px;
  }

  .tm-hero-copy h1 {
    font-size: clamp(58px, 19vw, 78px);
  }

  .time-calculation {
    padding: 24px;
  }

  .tm-section {
    padding: 62px 0;
  }

  .tm-section-heading,
  .tm-media-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tm-section-heading > p:last-child {
    grid-column: auto;
  }

  .feature-grid,
  .screen-gallery {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .feature-grid article + article {
    padding: 25px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid article:last-child {
    border-bottom: 0;
  }

  .screen-gallery {
    gap: 44px;
  }

  .screen-card,
  .screen-card-widget {
    grid-column: auto;
    max-width: 100%;
  }

  .screen-card img {
    max-height: 560px;
  }

  .tech-list div {
    grid-template-columns: 95px 1fr;
  }

  .tm-media-heading .document-open {
    justify-self: start;
  }
}
