:root {
  --ink: #15212d;
  --ink-soft: #435263;
  --paper: #ffffff;
  --snow: #f4f7f9;
  --line: #ced8df;
  --badger: #c5050c;
  --badger-dark: #970006;
  --lake: #146c94;
  --sun: #f4b942;
  --display: Georgia, "Times New Roman", serif;
  --body: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --content-width: 1160px;
  --radius: 6px;
  --shadow: 0 24px 60px rgba(28, 48, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--badger);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.nav-contact) {
  border-bottom: 2px solid transparent;
}

.site-nav a:not(.nav-contact):hover {
  border-color: var(--badger);
}

.nav-contact {
  padding: 9px 15px;
  border: 1px solid var(--ink);
}

.nav-contact:hover {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 670px;
  margin: 0 auto;
  padding: 88px 0;
}

.eyebrow,
.section-kicker,
.route-label,
.project-meta,
.fact-strip span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  color: var(--badger);
}

.hero h1 {
  max-width: 810px;
  margin: 18px 0 28px;
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--badger);
  font-weight: 400;
}

.hero-intro {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button-primary {
  border-color: var(--badger);
  background: var(--badger);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--badger-dark);
}

.button-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.route-card {
  position: relative;
  padding: 30px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.route-card::after {
  position: absolute;
  right: -38px;
  bottom: -48px;
  width: 150px;
  height: 150px;
  border: 28px solid rgba(244, 185, 66, 0.85);
  border-radius: 50%;
  content: "";
}

.route-label {
  margin: 0 0 26px;
  color: #adc2d1;
}

.route-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-stop {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  padding-bottom: 33px;
}

.route-stop:not(:last-child)::after {
  position: absolute;
  top: 17px;
  bottom: -2px;
  left: 6px;
  width: 2px;
  background: #536777;
  content: "";
}

.route-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #8fa3b2;
  box-shadow: 0 0 0 2px #8fa3b2;
}

.route-stop-active .route-dot {
  background: var(--sun);
  box-shadow: 0 0 0 2px var(--sun), 0 0 0 7px rgba(244, 185, 66, 0.18);
}

.route-stop strong,
.route-stop small {
  display: block;
}

.route-stop strong {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
}

.route-stop small {
  color: #adc2d1;
  font-size: 14px;
}

.availability {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 0 0;
  padding-top: 22px;
  border-top: 1px solid #536777;
  color: #d9e3e9;
  font-size: 13px;
}

.availability span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6dd58c;
  box-shadow: 0 0 0 4px rgba(109, 213, 140, 0.15);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--lake);
  color: var(--paper);
}

.fact-strip p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 24px max(24px, calc((100vw - var(--content-width)) / 2));
  font-size: 15px;
  white-space: nowrap;
}

.fact-strip p + p {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.fact-strip span {
  color: #b9e2f4;
  font-size: 10px;
}

.section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(50px, 10vw, 150px);
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 120px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading h2,
.contact-section h2 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section-kicker {
  margin: 0;
}

.about-copy {
  max-width: 680px;
  color: var(--ink-soft);
}

.about-copy p {
  margin-top: 0;
}

.about-copy .lead {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.projects-section {
  display: block;
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 52px;
}

.text-link {
  padding-bottom: 2px;
  border-bottom: 2px solid var(--badger);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
}

.project-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--lake);
  box-shadow: 0 16px 35px rgba(28, 48, 63, 0.1);
}

.project-card-featured {
  background: var(--snow);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 10px;
}

.project-card h3 {
  margin: auto 0 16px;
  font-family: var(--display);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.project-card p {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 15px;
}

.project-card > a {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 750;
  text-decoration-color: var(--badger);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.skills-section {
  background: var(--paper);
}

.skills-content > p {
  max-width: 600px;
  margin: 38px 0 0;
  color: var(--ink-soft);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  padding: 10px 15px;
  border: 1px solid var(--line);
  background: var(--snow);
  font-family: var(--mono);
  font-size: 13px;
}

.contact-section {
  padding: 110px max(20px, calc((100vw - var(--content-width)) / 2));
  background: var(--badger);
  color: var(--paper);
}

.contact-section .section-kicker {
  color: #ffd0d2;
}

.contact-section h2 {
  max-width: 900px;
}

.contact-link {
  display: inline-block;
  margin-top: 42px;
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 32px 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 700 14px var(--body);
  }

  .menu-toggle-icon,
  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform 160ms ease;
  }

  .menu-toggle-icon {
    position: relative;
  }

  .menu-toggle-icon::before {
    position: absolute;
    top: -6px;
  }

  .menu-toggle-icon::after {
    position: absolute;
    top: 6px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .site-header {
    position: relative;
  }

  .site-nav {
    position: absolute;
    z-index: 20;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 14px 20px 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 4px;
  }

  .nav-contact {
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 72px 0;
  }

  .route-card {
    max-width: 560px;
  }

  .fact-strip {
    grid-template-columns: 1fr;
    padding: 10px 20px;
  }

  .fact-strip p {
    padding: 13px 0;
  }

  .fact-strip p + p {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-left: 0;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 88px 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 320px;
  }
}

@media (max-width: 580px) {
  body {
    font-size: 16px;
  }

  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .wordmark > span:last-child {
    display: none;
  }

  .hero {
    padding: 54px 0 64px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .route-card,
  .project-card {
    padding: 24px;
  }

  .section-heading-row,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
