:root {
  color-scheme: dark;
  --azure: #0078d4;
  --azure-light: #4ba8f5;
  --heading: #ffffff;
  --text: #e4e8ec;
  --muted: #a7b0ba;
  --bg: #000000;
  --alt: #0b0e12;
  --surface: #13171d;
  --line: #262d36;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.wrap {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 .5em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

h3 {
  font-size: 1.15rem;
}

a {
  color: var(--azure-light);
}

:focus-visible {
  outline: 3px solid var(--azure-light);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 20;
  background: var(--surface);
  padding: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, .94);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--heading);
  font-size: 2.2rem;
}

/* An inset shadow on an <img> is hidden behind its pixels, so draw it on an overlay */
.logo {
  position: relative;
  display: block;
  flex-shrink: 0;
  padding: 5px;
  background: #f2eeea;
  border-radius: 10px;
  margin-right: 10px;
}

.logo img {
  display: block;
}

.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .55), inset 0 -1px 2px rgba(255, 255, 255, .7);
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  text-decoration: none;
  color: var(--text);
}

nav a:hover {
  color: var(--azure-light);
}

nav a.button,
nav a.button:hover {
  color: #fff;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 22px;
  background: var(--azure);
  color: #fff;
  border: 2px solid var(--azure);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.07);
}

.button.small {
  padding: 6px 16px;
}

.button.ghost {
  background: transparent;
  color: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Sections */
section {
  padding: 80px 0;
}

.alt {
  background: var(--alt);
}

.section-intro {
  color: var(--muted);
  max-width: 60ch;
  margin-top: 0;
}

.hero,
.contact {
  background: radial-gradient(ellipse at 85% 20%, rgba(0, 120, 212, .38), transparent 60%), var(--bg);
}

.contact {
  border-block: 1px solid var(--line);
}

/* Sunset photo, darkened behind the text and faded into the section below */
.hero {
  padding: 110px 0;
  background:
    linear-gradient(to bottom, transparent 65%, var(--bg)),
    linear-gradient(to right, rgba(0, 0, 0, .75) 25%, rgba(0, 0, 0, .42) 60%, rgba(0, 0, 0, .3)),
    url("sunset.jpg") center 70% / cover no-repeat,
    var(--bg);
}

.hero .lede,
.hero h1,
.hero .eyebrow {
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}

.hero .ghost {
  background: rgba(0, 0, 0, .55);
}

.eyebrow {
  color: var(--azure-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
}

.lede {
  font-size: 1.2rem;
  max-width: 58ch;
  opacity: .92;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--azure);
  border-radius: 10px;
  padding: 26px;
  background: var(--surface);
}

/* With an odd number of cards, let the last one fill its row */
.card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.card ul {
  padding-left: 20px;
  margin-bottom: 0;
  color: var(--muted);
}

.card-link {
  margin: 16px 0 0;
}

/* Case study */
.case-study {
  background: linear-gradient(160deg, rgba(0, 120, 212, .22), transparent 55%), var(--bg);
  border-top: 1px solid var(--line);
}

/* Summit photo behind the statistics; raise the .45 values to darken it more */
.metrics-backdrop {
  margin-top: 32px;
  padding: 28px;
  border-radius: 10px;
  background:
    linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .85)),
    url("summit.jpg") 65% center / cover no-repeat;
}

.metrics-backdrop h3 {
  text-shadow: 0 1px 6px #000;
}

.metrics-backdrop h3:first-child {
  margin-top: 0;
}

.case-study h3 {
  margin-top: 36px;
}

.outcome {
  max-width: 60ch;
  margin: 28px 0 0;
  padding: 20px 24px;
  font-size: 1.25rem;
  background: var(--surface);
  border-left: 4px solid var(--azure);
  border-radius: 10px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
}

.metrics div {
  padding: 20px;
  background: rgba(10, 13, 18, .76);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
}

.metrics dt {
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading);
}

.metrics .figure {
  display: block;
  margin-bottom: 4px;
  font-size: 2.6rem;
  color: var(--azure-light);
}

.metrics dd {
  margin: 8px 0 0;
  font-size: .92rem;
  color: var(--muted);
}

.footnote {
  margin: 20px 0 0;
  font-size: .85rem;
  color: var(--muted);
}

/* App development case study: glow from the other side, to set it apart from the next one */
.case-app {
  background: linear-gradient(200deg, rgba(0, 120, 212, .22), transparent 55%), var(--alt);
}

.metrics.metrics-three {
  grid-template-columns: repeat(3, 1fr);
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.features li {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--azure);
  border-radius: 10px;
}

.features h4 {
  margin: 0 0 6px;
  color: var(--heading);
}

.features p {
  margin: 0;
  font-size: .92rem;
  color: var(--muted);
}

/* AI help */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.chip {
  font: inherit;
  padding: 8px 18px;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.chip[aria-pressed="true"] {
  background: var(--azure);
  border-color: var(--azure);
  color: #fff;
}

.answer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  min-height: 150px;
}

.answer p {
  margin: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: center;
}

.stats {
  margin: 0;
  display: grid;
  gap: 16px;
}

.stats div {
  background: var(--surface);
  border-left: 4px solid var(--azure);
  border-radius: 10px;
  padding: 18px 22px;
}

.stats dt {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading);
}

.stats dd {
  margin: 0;
  color: var(--muted);
}

/* Colorado panorama */
.panorama {
  position: relative;
  margin: 0;
  height: clamp(200px, 23vw, 440px);
}

.panorama img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fade the top and bottom edges into the dark sections around the photo */
.panorama::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg), transparent 30%, transparent 65%, rgba(0, 0, 0, .75) 90%, var(--alt));
}

.panorama figcaption {
  position: absolute;
  inset: auto 0 14px;
  z-index: 1;
}

.panorama figcaption .wrap {
  display: block;
  text-align: right;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px #000;
}

/* Industries */
.industries {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.industries li {
  display: flex;
  align-items: center;
  padding: 22px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--azure);
  color: #fff;
  font-weight: 700;
}

/* Timeline */
.timeline {
  background: var(--alt);
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.timeline-head .section-intro {
  margin: 0;
}

.timeline-buttons {
  display: flex;
  gap: 8px;
}

.timeline-buttons button {
  width: 44px;
  height: 44px;
  font: inherit;
  cursor: pointer;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.timeline-buttons button:disabled {
  opacity: .35;
  cursor: default;
}

.track {
  display: flex;
  list-style: none;
  margin: 24px 0 0;
  padding: 0 55px 12px;
  overflow-x: auto;
  scrollbar-color: var(--azure) var(--surface);
}

/* Columns are narrow; labels can be wider because neighbors alternate above and below */
.track li {
  position: relative;
  flex: 0 0 130px;
  height: 340px;
}

/* the horizontal line */
.track li::before {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  right: 0;
  height: 2px;
  background: var(--azure);
}

/* the stem from avatar to label: thinner and fainter than the timeline itself */
.track li::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 42px;
  background: var(--azure);
  opacity: .45;
}

.avatar {
  position: absolute;
  z-index: 1;
  top: calc(50% - 32px);
  left: calc(50% - 32px);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  font-size: 1.7rem;
  background: var(--surface);
  border: 3px solid var(--azure);
  border-radius: 50%;
  transition: transform .2s;
}

/* ready for real pictures: put an <img> inside .avatar */
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track li:hover .avatar {
  transform: scale(1.15) rotate(-6deg);
}

.label {
  position: absolute;
  left: 50%;
  width: 220px;
  transform: translateX(-50%);
  text-align: center;
}

.label h3 {
  margin: 0;
  font-size: 1rem;
}

.label p {
  margin: 2px 0 0;
  font-size: .85rem;
  color: var(--muted);
}

.track li:nth-of-type(odd)::after {
  bottom: calc(50% + 32px);
}

.track li:nth-of-type(odd) .label {
  bottom: calc(50% + 82px);
}

.track li:nth-of-type(even)::after {
  top: calc(50% + 32px);
}

.track li:nth-of-type(even) .label {
  top: calc(50% + 82px);
}

footer {
  padding: 24px 0;
  font-size: .9rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  section {
    padding: 56px 0;
  }

  .hero {
    padding: 72px 0;
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, .65), rgba(0, 0, 0, .55) 70%, var(--bg)),
      url("sunset-small.jpg") 55% center / cover no-repeat,
      var(--bg);
  }

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

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

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

  .metrics.metrics-three {
    grid-template-columns: 1fr;
  }

  .metrics-backdrop {
    padding: 16px;
  }

  .brand {
    font-size: 1rem;
  }

  nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .features,
  .metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .avatar {
    transition: none;
  }
}