/* time-trials.css
   Page-specific additions for the proposed time-trials page.
   Loaded after concept.css and concept-pages.css. Tokens, type, buttons, nav,
   cards, phone frames, focus, and reduced motion stay in the shared files. */

/* ---------------------------------------------------------------- hero */

.hero.hero-tt{
  min-height:clamp(540px,66vh,700px);
  background-image:url("../assets/images/time-trial-hero-bleed.jpg");
  background-position:center 42%;
}

.hero.hero-tt::before{
  background:
    linear-gradient(100deg,rgba(3,19,31,0.94) 0%,rgba(3,19,31,0.86) 42%,rgba(3,19,31,0.52) 70%,rgba(3,19,31,0.14) 100%),
    linear-gradient(0deg,rgba(3,19,31,0.5) 0%,rgba(3,19,31,0) 46%);
}

.hero-tt .hero-copy{max-width:660px;}

.hero-tt .lede{max-width:600px;}

@media (max-width:900px){
  .hero.hero-tt{
    min-height:clamp(560px,78vh,720px);
    background-image:url("../assets/images/time-trial-hero-bleed.jpg");
    background-position:62% 38%;
  }

  .hero.hero-tt::before{
    background:linear-gradient(180deg,rgba(3,19,31,0.92) 0%,rgba(3,19,31,0.82) 48%,rgba(3,19,31,0.62) 100%);
  }
}

/* ---------------------------------------------------------------- rhythm timeline */

.tt-timeline{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  position:relative;
  margin:0;
  padding:0;
  list-style:none;
}

.tt-timeline::before{
  content:"";
  position:absolute;
  left:19px;
  right:calc(25% - 19px);
  top:19px;
  height:1px;
  background:linear-gradient(90deg,var(--blue),rgba(6,87,146,0.14));
}

.tt-step{
  position:relative;
  padding-right:26px;
}

.tt-marker{
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1px solid var(--line-strong);
  border-radius:50%;
  background:var(--white);
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  font-weight:600;
  letter-spacing:0.04em;
  color:var(--navy);
}

.tt-when{
  display:block;
  margin-top:16px;
  font-family:'IBM Plex Mono',monospace;
  font-size:10px;
  font-weight:600;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--muted-2);
}

.tt-step h3{
  margin-top:6px;
  font-size:1.25rem;
  line-height:1.15;
}

.tt-step p{
  max-width:32ch;
  margin-top:6px;
  font-size:0.95rem;
  line-height:1.6;
}

/* ---------------------------------------------------------------- practice protocol */

.tt-protocol{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 clamp(32px,4vw,56px);
  margin:clamp(32px,4vw,48px) 0 0;
  padding:0;
  list-style:none;
}

.tt-protocol li{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:14px;
  padding:20px 0 18px;
  border-top:1px solid var(--line);
}

.tt-num{
  padding-top:5px;
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:0.08em;
  color:var(--navy);
}

.tt-protocol h3{
  margin:0 0 4px;
  font-size:1.25rem;
  line-height:1.15;
}

.tt-protocol p{
  margin:0;
  font-size:0.95rem;
  line-height:1.6;
}

/* ---------------------------------------------------------------- screenshot rows */

.tt-shot-row{
  display:grid;
  grid-template-columns:minmax(0,264px) minmax(0,1fr);
  gap:clamp(32px,5vw,64px);
  align-items:start;
  margin-top:clamp(36px,5vw,52px);
}

.tt-shot-row--flip{grid-template-columns:minmax(0,1fr) minmax(0,264px);}

.tt-shot-row + .tt-shot-row{margin-top:clamp(44px,6vw,68px);}

.tt-shot{
  display:flex;
  flex-direction:column;
  gap:16px;
  min-width:0;
  margin:0;
}

.phone.tt-phone{width:100%;}

.tt-caption{
  font-size:0.95rem;
  line-height:1.6;
  color:var(--muted);
}

.tt-caption .micro{
  display:block;
  margin-bottom:8px;
  color:var(--muted-2);
}

.tt-cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(16px,2.2vw,24px);
}

.tt-cards .card{padding:clamp(18px,2.2vw,24px);}

.tt-cards .card h3{font-size:1.2rem;}

.tt-cards .card p{font-size:0.95rem;}

/* ---------------------------------------------------------------- note */

.tt-note{
  margin-top:clamp(32px,4vw,44px);
  padding:clamp(18px,2.4vw,22px) clamp(20px,2.6vw,26px);
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--white);
}

.tt-note p{
  max-width:80ch;
  margin:0;
  font-size:0.95rem;
  line-height:1.6;
}

/* ---------------------------------------------------------------- closing band */

.cta-band .eyebrow{color:var(--white);}

.cta-band .eyebrow::before{background:var(--cyan);}

/* ---------------------------------------------------------------- responsive */

@media (max-width:900px){
  .tt-timeline{grid-template-columns:1fr;}

  .tt-timeline::before{
    left:18px;
    right:auto;
    top:19px;
    bottom:32px;
    width:1px;
    height:auto;
    background:linear-gradient(180deg,var(--blue),rgba(6,87,146,0.12));
  }

  .tt-step{
    padding:0 0 28px 60px;
  }

  .tt-step:last-child{padding-bottom:0;}

  .tt-marker{
    position:absolute;
    left:0;
    top:0;
  }

  .tt-when{margin-top:0;}

  .tt-step p{max-width:none;}

  .tt-protocol{grid-template-columns:1fr;gap:0;}

  .tt-shot-row,
  .tt-shot-row--flip{
    grid-template-columns:1fr;
    gap:24px;
  }

  .tt-shot{
    width:min(264px,80%);
    margin-inline:auto;
  }

  .tt-caption{text-align:center;}

  .tt-cards{grid-template-columns:1fr;}
}

@media (max-width:560px){
  .tt-cards .card{padding:18px;}
}
