.hero {
  min-height: calc(100dvh - var(--nav-height));
  display: grid;
  align-items: center;
  padding: 26px 0 34px;
}

.hero-frame {
  position: relative;
  min-height: min(730px, calc(100dvh - 126px));
  overflow: hidden;
  display: grid;
  align-items: center;
  border-radius: var(--radius-large);
  background: var(--evergreen);
  box-shadow: var(--shadow-float);
  isolation: isolate;
}

.hero-media,
.hero-media picture,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center;
}

.hero-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgb(14 28 21 / 88%) 0%,
    rgb(14 28 21 / 68%) 36%,
    transparent 66%
  );
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(620px, 54%);
  padding: clamp(34px, 6vw, 78px);
  color: var(--on-evergreen);
}

.hero-copy .eyebrow {
  color: #c7d0cb;
}

.hero-copy h1 {
  max-width: 590px;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 25px;
  color: #d5ddd8;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions .button {
  border-color: #eef3ef;
  background: #eef3ef;
  color: #14211c;
}

.hero-actions .button:hover {
  background: #ffffff;
  color: #14211c;
}

.hero-actions .button.secondary {
  border-color: rgb(238 243 239 / 58%);
  background: rgb(14 24 19 / 18%);
  color: #f2f5f3;
}

.hero-actions .button.secondary:hover {
  background: rgb(238 243 239 / 12%);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--surface);
}

.fact {
  min-height: 108px;
  padding: 25px 27px;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.fact span {
  display: block;
  margin-top: 5px;
  color: var(--ink-secondary);
  font-size: 14px;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(460px, 1.35fr);
  gap: clamp(62px, 10vw, 140px);
  align-items: start;
}

.workflow-copy {
  position: sticky;
  top: 118px;
}

.workflow-copy p:last-child {
  margin-top: 23px;
  color: var(--ink-secondary);
  font-size: 19px;
}

.workflow-list {
  counter-reset: workflow;
}

.workflow-item {
  position: relative;
  min-height: 170px;
  padding: 12px 0 52px 68px;
  counter-increment: workflow;
}

.workflow-item + .workflow-item {
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.workflow-item::before {
  content: counter(workflow, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  color: var(--ink-tertiary);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 650;
}

.workflow-item + .workflow-item::before {
  top: 46px;
}

.workflow-item p {
  max-width: 600px;
  margin-top: 14px;
  color: var(--ink-secondary);
  font-size: 17px;
}

.connections {
  background: var(--evergreen);
  color: var(--on-evergreen);
}

.connections .eyebrow,
.connections .section-heading p:not(.eyebrow) {
  color: #bdc8c2;
}

.connection-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(380px, 1fr);
  gap: clamp(54px, 9vw, 126px);
  align-items: end;
}

.connection-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.connection {
  min-height: 92px;
  display: flex;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgb(240 243 241 / 17%);
  border-radius: var(--radius-surface);
  background: rgb(240 243 241 / 5%);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 620;
  transition:
    background-color 190ms var(--ease),
    transform 190ms var(--ease);
}

.connection:hover {
  background: rgb(240 243 241 / 9%);
  transform: translateY(-2px);
}

.connection:nth-child(2) {
  color: #d9c98f;
}
.connection:nth-child(3) {
  color: #d59b86;
}
.connection:nth-child(4) {
  color: #a7c0cf;
}
.connection:nth-child(5) {
  color: #acd0b7;
}
.connection:nth-child(6) {
  color: #d9c98f;
}

.connection-note {
  padding: 32px;
  border-left: 2px solid var(--sage);
  background: rgb(240 243 241 / 5%);
}

.connection-note h3 {
  max-width: 390px;
}

.connection-note p {
  margin-top: 18px;
  color: #c7d1cb;
}

.schedule-stage {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(56px, 10vw, 150px);
  align-items: center;
}

.schedule-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 24px;
  color: var(--ink-secondary);
  font-size: 19px;
}

.schedule-example {
  position: relative;
  padding: 44px;
  border-radius: var(--radius-large);
  background: var(--surface-raised);
  box-shadow: var(--shadow-float);
}

.schedule-example::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 8px;
  right: 34px;
  top: 34px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    var(--ochre) 0 22%,
    var(--terracotta) 22% 45%,
    var(--slate) 45% 70%,
    var(--sage) 70%
  );
}

.schedule-example blockquote {
  margin: 0;
  padding-top: 54px;
  font-family: var(--font-display);
  font-size: clamp(27px, 3.6vw, 43px);
  font-weight: 590;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.schedule-example p {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-secondary);
  font-size: 14px;
}

.research-panel {
  padding: clamp(38px, 6vw, 72px);
  border-radius: var(--radius-large);
  background: var(--surface-soft);
}

.research-panel .section-heading {
  margin-bottom: 62px;
}

.data-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
}

.data-step {
  min-height: 210px;
  padding: 27px;
  border-radius: var(--radius-surface);
  background: var(--surface-raised);
}

.data-step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
}

.data-step p {
  margin-top: 13px;
  color: var(--ink-secondary);
  font-size: 15px;
}

.data-arrow {
  display: grid;
  place-items: center;
  color: var(--ink-tertiary);
  font-size: 24px;
}

.research-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.control-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(56px, 9vw, 130px);
  align-items: start;
}

.control-list {
  display: grid;
  gap: 30px;
}

.control-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
}

.control-mark {
  width: 20px;
  height: 20px;
  margin-top: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--sage) 40%, var(--surface));
}

.control-item p {
  margin-top: 8px;
  color: var(--ink-secondary);
}

.closing {
  padding-block: clamp(96px, 14vw, 180px);
}

.closing-inner {
  max-width: 870px;
}

.closing-inner p {
  max-width: 640px;
  margin-top: 24px;
  color: var(--ink-secondary);
  font-size: 20px;
}

.closing-inner .button {
  margin-top: 34px;
}

@media (max-width: 860px) {
  .hero-frame {
    min-height: 700px;
    align-items: end;
  }

  .hero-frame::after {
    background: linear-gradient(
      0deg,
      rgb(14 28 21 / 92%) 0%,
      rgb(14 28 21 / 67%) 56%,
      transparent 100%
    );
  }

  .hero-media img {
    object-position: 63% center;
  }

  .hero-copy {
    width: 100%;
    padding: 34px;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .fact:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .workflow,
  .connection-layout,
  .schedule-stage,
  .control-grid {
    grid-template-columns: 1fr;
  }

  .workflow-copy {
    position: static;
  }

  .data-flow {
    grid-template-columns: 1fr;
  }

  .data-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 14px;
  }

  .hero-frame {
    min-height: 680px;
    border-radius: var(--radius-surface);
  }

  .hero-copy {
    padding: 28px 24px;
  }

  .facts,
  .connection-list {
    grid-template-columns: 1fr;
  }

  .fact + .fact,
  .fact:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .workflow-item {
    padding-left: 48px;
  }

  .schedule-example,
  .research-panel {
    padding: 28px 24px;
  }
}
