:root {
  --red: #ed002b;
  --red-dark: #c90024;
  --ink: #121214;
  --muted: #5f6067;
  --line: #dedfe2;
  --paper: #f8f8f7;
  --white: #ffffff;
  --soft-red: #fff0f3;
  --font: "Encode Sans Semi Expanded", Arial, sans-serif;
  --content: 1520px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.site-header,
main,
.dashboard,
.workflow,
.dashboard__main,
.content-section,
.section-copy,
.material-grid,
.schedule { min-width: 0; }

button, a { font: inherit; }

a { color: inherit; }

img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid #1686ff; outline-offset: 3px; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(220px, 390px) 1fr;
  align-items: center;
  min-height: 126px;
  padding: 12px clamp(24px, 3vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 248, 247, .96);
  backdrop-filter: blur(14px);
}

.brand { display: block; width: min(100%, 365px); }

.brand img,
.site-footer img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-self: stretch;
  justify-content: center;
  gap: clamp(26px, 5vw, 84px);
}

.site-nav a {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 8px;
  text-decoration: none;
  font-size: clamp(17px, 1.4vw, 25px);
  font-weight: 500;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 5px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.site-nav a.is-active { font-weight: 700; }

.menu-toggle { display: none; }

.dashboard {
  display: grid;
  grid-template-columns: minmax(330px, 28%) 1fr;
  width: 100%;
  max-width: var(--content);
  min-height: calc(100vh - 126px);
  margin: 0 auto;
  background: var(--white);
}

.workflow {
  padding: clamp(42px, 4vw, 70px) clamp(22px, 2.7vw, 42px);
  border-right: 1px solid var(--line);
  background: linear-gradient(145deg, #f6f6f5 0%, #fff 65%);
}

.eyebrow,
.phase-panel__label {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.workflow h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 2vw, 36px);
  line-height: 1.1;
}

.workflow__intro > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.stage-list {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.stage-list::before {
  position: absolute;
  top: 27px;
  bottom: 27px;
  left: 23px;
  width: 2px;
  background: #e9a2af;
  content: "";
}

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  width: 100%;
  min-height: 76px;
  padding: 10px 14px 10px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.stage:hover { transform: translateX(4px); }

.stage.is-selected {
  padding-left: 8px;
  border-color: var(--red);
  background: var(--soft-red);
}

.stage__marker {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid #85868b;
  border-radius: 6px;
  background: var(--white);
  color: #696a70;
  font-size: 12px;
  font-weight: 800;
}

.stage.is-selected .stage__marker {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
}

.stage strong,
.stage small { display: block; }

.stage strong { margin: 2px 0 5px; font-size: 18px; line-height: 1.2; }

.stage small { color: var(--muted); font-size: 13px; line-height: 1.35; }

.dashboard__main { padding: clamp(42px, 4vw, 68px) clamp(28px, 4vw, 62px) 70px; }

.dashboard__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 4.1vw, 66px);
  line-height: .98;
  letter-spacing: -.045em;
}

.lead {
  max-width: 800px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 25px);
  line-height: 1.42;
}

.drive-action { display: grid; gap: 9px; min-width: 280px; }

.drive-action > span { color: var(--muted); font-size: 13px; text-align: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 22px;
  border: 2px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }

.button svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button--primary { color: var(--white); background: var(--red); font-size: 18px; }
.button--primary:hover { background: var(--red-dark); }

.phase-panel { padding: 28px 0 26px; }

.phase-panel h2 {
  margin: 0;
  color: var(--red);
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.phase-panel > p:last-child {
  max-width: 900px;
  margin: 9px 0 0;
  color: #45464c;
  font-size: clamp(17px, 1.35vw, 23px);
  line-height: 1.45;
}

.section-heading { margin-bottom: 17px; }

.resource-list { display: grid; gap: 10px; }

.resource {
  display: grid;
  grid-template-columns: 52px 1fr 34px;
  gap: 20px;
  align-items: center;
  min-height: 86px;
  padding: 14px 20px;
  border: 1px solid #ededed;
  border-radius: 8px;
  background: #f6f6f5;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.resource:hover { border-color: var(--red); background: var(--white); transform: translateX(5px); }

.resource__number { color: var(--red); font-weight: 800; }

.resource__body { padding-left: 20px; border-left: 1px solid #ccc; }
.resource__body strong,
.resource__body small { display: block; }
.resource__body strong { margin-bottom: 3px; font-size: clamp(17px, 1.5vw, 22px); }
.resource__body small { color: var(--muted); font-size: 14px; line-height: 1.35; }
.resource__arrow { color: var(--red); font-size: 31px; }

.content-section {
  display: grid;
  grid-template-columns: minmax(140px, .45fr) 1.2fr;
  gap: 34px 70px;
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(80px, 9vw, 140px) clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.section-kicker { color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.section-copy h2 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(36px, 4.8vw, 72px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.section-copy > p {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
}

.material-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 35px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.material-card { min-height: 250px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.material-card__index { color: var(--red); font-weight: 800; }
.material-card h3 { margin: 50px 0 10px; font-size: 24px; line-height: 1.15; }
.material-card p { margin: 0; color: var(--muted); line-height: 1.55; }

.content-section--dark { color: var(--white); background: var(--ink); border-color: #3b3b3e; }
.content-section--dark .section-copy p { color: #b9bac0; }

.schedule { grid-column: 2; margin-top: 34px; border-top: 1px solid #48484d; }
.schedule__row { display: grid; grid-template-columns: 80px 1.5fr 1fr 90px; gap: 20px; align-items: center; min-height: 76px; border-bottom: 1px solid #48484d; }
.schedule__row > span:first-child { color: #ff5a75; font-weight: 800; }
.schedule__row > span:last-child { text-align: right; }
.schedule__head { min-height: 48px; color: #92939a; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.schedule__head > span:first-child { color: #92939a; }

.rules-list { grid-column: 2; margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rules-list li { display: grid; grid-template-columns: 80px 1fr; align-items: center; min-height: 86px; border-bottom: 1px solid var(--line); }
.rules-list span { color: var(--red); font-weight: 800; }
.rules-list strong { font-size: clamp(17px, 1.5vw, 22px); }

.handoff {
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(80px, 9vw, 130px) clamp(24px, 9vw, 145px);
  color: var(--white);
  background: var(--red);
  text-align: center;
}

.handoff .eyebrow { color: var(--white); }
.handoff h2 { max-width: 1050px; margin: 14px auto 0; font-size: clamp(36px, 5vw, 70px); line-height: 1.04; letter-spacing: -.045em; }
.handoff > p:not(.eyebrow) { max-width: 720px; margin: 22px auto 34px; font-size: 19px; line-height: 1.5; }
.button--light { color: var(--ink); background: var(--white); }
.button--light:hover { background: #f2f2f2; }

.site-footer {
  display: grid;
  grid-template-columns: 250px 1fr auto;
  gap: 38px;
  align-items: center;
  max-width: var(--content);
  margin: 0 auto;
  padding: 45px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--line);
}

.site-footer p { color: var(--muted); }
.site-footer a { font-weight: 700; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: minmax(210px, 300px) 1fr; min-height: 100px; }
  .site-nav { gap: 22px; }
  .dashboard { grid-template-columns: 310px 1fr; }
  .dashboard__heading { grid-template-columns: 1fr; }
  .drive-action { width: min(100%, 360px); }
  .site-footer { grid-template-columns: 210px 1fr; }
  .site-footer a { grid-column: 2; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 78px; }
  .site-header { min-height: 78px; padding: 10px 18px; grid-template-columns: 1fr auto; }
  .brand { width: 190px; }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 0 8px 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle__label { font-size: 13px; font-weight: 800; text-transform: uppercase; }
  .menu-toggle__icon,
  .menu-toggle__icon::before,
  .menu-toggle__icon::after { display: block; width: 24px; height: 2px; background: var(--ink); content: ""; }
  .menu-toggle__icon { position: relative; }
  .menu-toggle__icon::before { position: absolute; top: -7px; }
  .menu-toggle__icon::after { position: absolute; top: 7px; }
  .site-nav {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    padding: 12px 18px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { justify-content: start; min-height: 50px; }
  .site-nav a::after { height: 2px; }
  .dashboard { display: block; min-height: auto; }
  .workflow { border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow__intro > p:last-child { max-width: 33ch; }
  .stage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-list::before { display: none; }
  .stage { grid-template-columns: 38px 1fr; align-items: start; padding-right: 8px; }
  .stage > span:last-child { min-width: 0; }
  .stage__marker { width: 38px; height: 38px; }
  .dashboard__main { padding: 46px 22px 64px; }
  .dashboard__heading { gap: 28px; }
  .content-section { grid-template-columns: 1fr; padding-right: 22px; padding-left: 22px; }
  .material-grid,
  .schedule,
  .rules-list { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer img { width: 220px; }
  .site-footer a { grid-column: 1; }
}

@media (max-width: 520px) {
  .stage-list { grid-template-columns: 1fr; }
  .resource { grid-template-columns: 35px 1fr 22px; gap: 10px; padding: 13px; }
  .resource__body { padding-left: 12px; }
  .material-grid { grid-template-columns: 1fr; }
  .material-card { min-height: 210px; }
  .schedule__row { grid-template-columns: 42px 1fr auto; gap: 9px; }
  .schedule__row > span:nth-child(3) { display: none; }
  .schedule__head > span:nth-child(3) { display: none; }
  .rules-list li { grid-template-columns: 50px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
