:root {
  color-scheme: light;
  --paper: #f2f0e9;
  --paper-bright: #faf9f5;
  --ink: #151712;
  --muted: #676b61;
  --line: rgba(21, 23, 18, 0.14);
  --amber: #d97922;
  --forest: #27372e;
  --night: #111713;
  --blue: #294a55;
  --plum: #4d302e;
  --radius: 26px;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 92% 7%, rgba(217, 121, 34, 0.08), transparent 27rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: url("/images/backgrounds/rocky-mountain-usgs-topo.png") center top / cover no-repeat;
  filter: saturate(0.68) sepia(0.08);
  opacity: 0.18;
}
body > * {
  position: relative;
  z-index: 1;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
.shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 240, 233, 0.88);
  backdrop-filter: blur(18px);
}
.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--forest);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-links a { transition: color 160ms ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }

.hero {
  display: grid;
  min-height: 570px;
  align-items: center;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.62fr);
  gap: clamp(36px, 5vw, 74px);
  padding-block: clamp(64px, 8vw, 106px);
}
.hero-lockup {
  display: grid;
  min-width: 0;
  grid-template-columns: clamp(240px, 27vw, 352px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}
.hero-logo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 22px 30px rgba(28, 30, 24, 0.14));
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before { width: 34px; height: 2px; content: ""; background: currentColor; }
h1 {
  max-width: 5.5ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.7rem, 6.5vw, 6.45rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.93;
  text-wrap: balance;
}
h1 span { white-space: nowrap; }
.hero-aside {
  display: grid;
  align-content: end;
  gap: 38px;
  padding-bottom: 8px;
}
.hero-aside p {
  margin: 0;
  color: #484d45;
  font-size: clamp(1.06rem, 1.65vw, 1.3rem);
  line-height: 1.55;
}
.project-count {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.project-count strong {
  font-family: var(--display);
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.8;
}
.project-count span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.projects { padding-bottom: 108px; }
.projects-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
}
.projects-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}
.projects-head p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  text-align: right;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.project {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 220ms ease, box-shadow 220ms ease;
  isolation: isolate;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(31, 32, 27, 0.14);
}
.project:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.project.featured {
  display: grid;
  min-height: 610px;
  grid-column: 1 / -1;
  grid-template-columns: 0.88fr 1.12fr;
  background: var(--night);
  color: #f6f4ec;
}
.project.half { grid-column: span 6; }
.project-copy {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 46px;
  padding: clamp(28px, 4.2vw, 56px);
}
.project-type {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.7;
  text-transform: uppercase;
}
.project-type::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--accent, var(--amber));
}
.project h3 {
  max-width: 650px;
  margin: 20px 0 16px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.3vw, 5.2rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.95;
}
.project.half h3 { font-size: clamp(2.3rem, 4.1vw, 3.8rem); }
.project-description {
  max-width: 570px;
  margin: 0;
  color: inherit;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.58;
  opacity: 0.75;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}
.project-link::after {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "↗";
  font-size: 1rem;
  transition: background 160ms ease, color 160ms ease;
}
.project:hover .project-link::after { background: currentColor; color: var(--link-contrast, var(--night)); }

.cqftx-visual {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 24%, rgba(217, 121, 34, 0.32), transparent 22rem),
    linear-gradient(145deg, #28332d, #111713 74%);
}
.cqftx-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 0.8px, transparent 0.8px);
  background-size: 20px 20px;
  mask-image: linear-gradient(90deg, transparent, black 28%);
}
.device {
  position: absolute;
  overflow: hidden;
  border: 8px solid #111713;
  border-radius: 26px;
  background: #070b0e;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.48);
}
.device img { height: 100%; object-fit: cover; object-position: top center; }
.device.tablet {
  top: 94px;
  right: 3%;
  width: min(620px, 82%);
  aspect-ratio: 20 / 9;
  border-radius: 22px;
  transform: rotate(2.5deg);
}
.device.phone {
  top: 42px;
  left: 5%;
  z-index: 2;
  width: min(252px, 35%);
  height: 520px;
  transform: rotate(-3.5deg);
}
.release-pill {
  position: absolute;
  right: 34px;
  bottom: 26px;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(17, 23, 19, 0.82);
  color: #f6f4ec;
  font-size: 0.74rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hamdo { min-height: 590px; color: #fffaf2; }
.hamdo::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: url("/images/hamdo/step-2973-pro.webp") center 45% / cover;
  transition: transform 500ms ease;
}
.hamdo::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(10, 14, 11, 0.05), rgba(10, 14, 11, 0.9));
}
.hamdo:hover::before { transform: scale(1.025); }
.hamdo .project-copy { justify-content: flex-end; min-height: 590px; }
.hamdo .project-type {
  position: absolute;
  top: clamp(28px, 4.2vw, 48px);
  left: clamp(28px, 4.2vw, 48px);
}

.performer {
  --accent: #f7ad5c;
  --link-contrast: #27372e;
  display: grid;
  min-height: 590px;
  grid-template-rows: 1fr auto;
  background: #dfe3d5;
  color: #1b241e;
}
.performer-visual {
  display: grid;
  min-height: 270px;
  align-content: center;
  gap: 12px;
  padding: 34px 42px 0;
}
.field-step {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(27, 36, 30, 0.16);
  padding: 13px 0;
}
.field-step b { color: var(--amber); font-size: 0.72rem; letter-spacing: 0.1em; }
.field-step strong { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.45rem); }
.field-step span { color: #687068; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; }
.performer .project-copy { gap: 34px; padding-top: 26px; }

.digipeater {
  --accent: #9ad4de;
  --link-contrast: var(--blue);
  display: grid;
  min-height: 520px;
  grid-template-rows: 240px 1fr;
  background: var(--blue);
  color: #f5f4ec;
}
.route-visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 20px;
  padding: 44px;
}
.route-visual::before {
  position: absolute;
  top: 50%;
  right: 14%;
  left: 14%;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.35);
}
.route-node {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 78px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: rgba(17, 32, 38, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}
.digipeater .project-copy, .repeater .project-copy { gap: 34px; padding-top: 24px; }

.repeater {
  --accent: #e9a08c;
  --link-contrast: var(--plum);
  display: grid;
  min-height: 520px;
  grid-template-rows: 240px 1fr;
  background: var(--plum);
  color: #fff7f1;
}
.frequency-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 44px;
}
.frequency {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 22px;
  background: rgba(20, 13, 12, 0.17);
}
.frequency span {
  display: block;
  margin-bottom: 8px;
  color: #e9a08c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.frequency strong { font-family: var(--display); font-size: clamp(1.3rem, 2.3vw, 2rem); letter-spacing: -0.035em; }
.frequency-arrow { font-size: 1.5rem; opacity: 0.6; }

.footer { border-top: 1px solid var(--line); padding: 34px 0 48px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.84rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer a:hover, .footer a:focus-visible { color: var(--ink); }

@media (max-width: 900px) {
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 46px; }
  .hero-lockup { grid-template-columns: clamp(220px, 36vw, 300px) minmax(0, 1fr); }
  .hero-aside { max-width: 640px; }
  .projects-head { display: grid; }
  .projects-head p { text-align: left; }
  .project.featured { grid-template-columns: 1fr; }
  .cqftx-visual { min-height: 540px; }
  .project.half { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1240px); }
  .nav { min-height: 62px; }
  .nav-links a:first-child { display: none; }
  .hero { padding-block: 60px 64px; }
  .hero-lockup {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .hero-logo { width: min(78vw, 290px); }
  h1 { font-size: clamp(3.25rem, 17vw, 5rem); }
  .projects { padding-bottom: 64px; }
  .project, .project.featured, .hamdo, .performer, .digipeater, .repeater { min-height: 0; }
  .project-copy { padding: 28px; }
  .project h3, .project.half h3 { font-size: clamp(2.4rem, 13vw, 3.8rem); }
  .cqftx-visual { min-height: 430px; }
  .device.phone { top: 26px; left: 2%; width: 43%; height: 388px; }
  .device.tablet { top: 116px; right: -5%; width: 88%; }
  .hamdo .project-copy { min-height: 540px; }
  .performer-visual, .route-visual, .frequency-visual { padding-inline: 26px; }
  .field-step { grid-template-columns: 34px 1fr; }
  .field-step span { display: none; }
  .route-visual { gap: 8px; }
  .route-node { min-height: 68px; font-size: 0.58rem; }
  .frequency-visual { grid-template-columns: 1fr; gap: 10px; }
  .frequency-arrow { display: none; }
  .footer-inner { display: grid; }
}

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