:root {
  --ink: #17211d;
  --muted: #5d6c65;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --line: #d9ded6;
  --green: #246b52;
  --green-dark: #164636;
  --amber: #d9902f;
  --coral: #d65f4c;
  --steel: #446276;
  --shadow: 0 24px 60px rgba(23, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(36, 107, 82, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(36, 107, 82, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(247, 248, 244, 0.86);
  border-bottom: 1px solid rgba(217, 222, 214, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a,
.nav-action,
.project-body a {
  text-decoration: none;
}

.nav-links a:hover,
.project-body a:hover {
  color: var(--green);
}

.nav-action {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 700;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(36px, 6vw, 92px);
  min-height: min(760px, calc(100vh - 75px));
  padding: clamp(44px, 7vw, 82px) clamp(20px, 5vw, 72px) 48px;
}

.eyebrow,
.section-kicker,
.project-type {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4rem, 12vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  line-height: 1.2;
}

.lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.4rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--green-dark);
  box-shadow: 0 14px 28px rgba(22, 70, 54, 0.2);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.hero-panel {
  min-height: 460px;
  border: 1px solid rgba(217, 222, 214, 0.95);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 28%, rgba(217, 144, 47, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(36, 107, 82, 0.94), rgba(68, 98, 118, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-topbar {
  display: flex;
  gap: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.panel-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.schematic {
  position: relative;
  height: 402px;
  padding: 28px;
  color: #fff;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 34px 34px;
}

.metric {
  width: min(220px, 48%);
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.metric strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  font-weight: 700;
}

.signal-line {
  position: absolute;
  right: 15%;
  bottom: 17%;
  width: 54%;
  height: 46%;
  border-right: 3px solid rgba(255, 255, 255, 0.72);
  border-bottom: 3px solid rgba(255, 255, 255, 0.72);
  transform: skew(-18deg);
}

.node {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 8px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: var(--amber);
}

.node-a {
  right: 16%;
  bottom: 14%;
}

.node-b {
  right: 55%;
  bottom: 36%;
  background: var(--coral);
}

.node-c {
  right: 31%;
  bottom: 58%;
  background: #ffffff;
}

.node-d {
  right: 68%;
  bottom: 15%;
  background: var(--steel);
}

.section {
  padding: clamp(58px, 8vw, 96px) clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(217, 222, 214, 0.8);
}

.intro-section,
.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section p,
.contact-section p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.section-heading {
  display: grid;
  gap: 24px;
  margin-bottom: 30px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.08);
}

.project-card.featured-card {
  grid-column: auto;
}

.project-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #fff;
  text-decoration: none;
  overflow: hidden;
}

.featured-render img,
.iteration-grid img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.project-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: cover;
  transform: scale(1.28);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-image-link:hover img {
  opacity: 0.82;
}

.project-image-link .cover-lightholder {
  transform: scale(1.2);
}

.project-image-link .cover-fridge {
  transform: scale(1.85);
}

.project-image-link .cover-scraper {
  transform: scale(1.52);
}

.project-image-link .cover-shopvac {
  transform: scale(1.34);
}

.project-image-link .cover-impeller {
  transform: scale(1.58);
}

.project-image-link .cover-funnel-mounts {
  transform: scale(1.24);
}

.project-image-link .cover-bed-mount {
  transform: scale(1.12);
}

.project-image-link .cover-cabinet-magnet {
  transform: scale(1.18);
}

.project-image-link .cover-limelight {
  transform: scale(1.18);
}

.project-image-link .cover-puzzle-cube {
  transform: scale(1.35);
}

.project-image-link .cover-bridge {
  transform: scale(1.08);
}

.project-image-link .cover-cam-project {
  transform: scale(1.16);
}

.project-image-link .cover-turbine {
  transform: scale(1.32);
}

.project-image-link .cover-ground-intake {
  transform: scale(1.18);
}

.project-image-link .cover-turret-platform {
  transform: scale(1.2);
}

.project-image-link .cover-linear-intake {
  transform: scale(1.15);
}

.project-image-link .cover-frc-drivebase {
  transform: scale(1.18);
}

.project-image-link .cover-roller-floor {
  transform: scale(1.2);
}

.project-image-link .cover-differential-wrist {
  transform: scale(1.55);
}

.project-image-link .cover-manual-transmission {
  transform: scale(1.2);
}

.project-image-link .cover-carburetor {
  transform: scale(1.22);
}

.project-placeholder,
.placeholder-visual {
  display: grid;
  width: 100%;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(36, 107, 82, 0.12), rgba(68, 98, 118, 0.16)),
    #eef3ee;
  color: var(--green-dark);
  font-weight: 800;
}

.project-placeholder {
  height: 100%;
}

.project-placeholder span,
.placeholder-visual span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 12px 16px;
}

.placeholder-visual {
  aspect-ratio: 16 / 10;
}

.project-visual {
  min-height: 210px;
  background-color: #dfe8e1;
  background-position: center;
  background-size: cover;
}

.project-visual.robotics {
  background-image:
    radial-gradient(circle at 76% 28%, rgba(214, 95, 76, 0.88) 0 8%, transparent 9%),
    linear-gradient(135deg, transparent 45%, rgba(23, 33, 29, 0.18) 46% 50%, transparent 51%),
    linear-gradient(45deg, rgba(36, 107, 82, 0.86), rgba(247, 248, 244, 0.94));
}

.project-visual.energy {
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.62) 0 18px, transparent 18px 34px),
    linear-gradient(145deg, rgba(217, 144, 47, 0.92), rgba(68, 98, 118, 0.88));
}

.project-visual.software {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 2px, transparent 2px),
    linear-gradient(135deg, rgba(22, 70, 54, 0.92), rgba(214, 95, 76, 0.82));
  background-size: 100% 100%, 28px 28px, 100% 100%;
}

.project-body {
  padding: 22px;
  background: #eef3ee;
  border-top: 1px solid var(--line);
}

.project-body h3 {
  margin-bottom: 18px;
}

.project-body p:not(.project-type) {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.project-body a {
  color: var(--green-dark);
  font-weight: 800;
}

.project-body .details-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(36, 107, 82, 0.08);
}

.case-study {
  background: rgba(255, 255, 255, 0.48);
}

.detail-hero {
  min-height: calc(100vh - 75px);
}

.detail-title {
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.96;
}

.case-study-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.case-copy {
  position: sticky;
  top: 98px;
}

.project-brief {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.project-brief div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.project-brief dt {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-brief dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.featured-render {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 34px rgba(23, 33, 29, 0.1);
}

.featured-render img {
  aspect-ratio: 16 / 10;
  background: #eef0ec;
}

.inline-model-viewer {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(36, 107, 82, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(36, 107, 82, 0.05) 1px, transparent 1px),
    #f1f4ef;
  background-size: 36px 36px;
}

.inline-model-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.inline-model-viewer canvas:active {
  cursor: grabbing;
}

.viewer-empty[hidden],
.viewer-parts-panel[hidden] {
  display: none;
}

.inline-viewer-reset {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
}

.inline-viewer-reset:disabled {
  cursor: wait;
  opacity: 0.5;
}

.viewer-parts-panel {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: min(190px, calc(100% - 132px));
  max-height: calc(100% - 28px);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(44, 77, 65, 0.2);
  border-radius: 8px;
  background: rgba(250, 251, 247, 0.94);
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.1);
}

.viewer-parts-title {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.viewer-parts-list {
  display: grid;
  gap: 5px;
}

.viewer-part-toggle {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.viewer-part-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--green);
}

.viewer-section-controls {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(44, 77, 65, 0.16);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.viewer-section-controls input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--green);
}

.viewer-section-controls input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.featured-render figcaption {
  padding: 14px 18px 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.featured-render .viewer-project-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 12px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(36, 107, 82, 0.08);
  color: var(--green-dark);
  font-size: 0.82rem;
  text-decoration: none;
}

.iteration-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: clamp(34px, 6vw, 62px) 0 18px;
}

.iteration-heading p:last-child {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.iteration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.iteration-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iteration-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.07);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 18, 16, 0.86);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox img {
  max-width: min(100%, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  background: #eef0ec;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: #fff;
  background: rgba(23, 33, 29, 0.78);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.step-viewer-section {
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.step-viewer-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: 36px;
}

.step-viewer-heading p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.step-viewer-layout {
  display: grid;
  grid-template-columns: minmax(232px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
}

.viewer-controls,
.viewer-stage {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 28px rgba(23, 33, 29, 0.08);
}

.viewer-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.viewer-stats {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.viewer-stats div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #eef3ee;
}

.viewer-stats dt {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.viewer-stats dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.viewer-reset {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.viewer-project-link {
  width: 100%;
}

.viewer-reset:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.viewer-help,
.viewer-credit {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.viewer-stage {
  position: relative;
  min-height: min(68vw, 680px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(36, 107, 82, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(36, 107, 82, 0.05) 1px, transparent 1px),
    #f1f4ef;
  background-size: 36px 36px;
}

.viewer-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.viewer-stage canvas:active {
  cursor: grabbing;
}

.viewer-empty {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  pointer-events: none;
  text-align: center;
}

.viewer-empty p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.viewer-cube {
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border: 8px solid var(--green);
  border-radius: 8px;
  box-shadow: 14px 14px 0 rgba(217, 144, 47, 0.6);
  transform: rotate(30deg) skew(-10deg, -10deg);
}

.viewer-status {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  max-width: calc(100% - 28px);
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(217, 222, 214, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.viewer-stage.is-loading .viewer-status {
  color: var(--green-dark);
}

.viewer-credit {
  margin-top: 16px;
}

.viewer-credit a {
  color: var(--green-dark);
  font-weight: 800;
}

.iteration-grid img {
  aspect-ratio: 16 / 10;
  background: #eef0ec;
}

.iteration-grid span {
  display: block;
  padding: 12px 14px;
  font-weight: 800;
}

.reference-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(320px, 1fr);
  gap: 18px;
}

.reference-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.07);
}

.reference-grid img,
.reference-grid video,
.reference-grid iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #eef0ec;
}

.reference-grid video,
.reference-grid iframe {
  background: #111;
}

.reference-grid iframe {
  border: 0;
}

.video-link {
  position: relative;
  display: block;
  color: #fff;
  text-decoration: none;
  background: #111;
}

.video-link img {
  opacity: 0.72;
}

.video-link span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: rgba(17, 24, 21, 0.88);
  padding: 12px 18px;
  font-weight: 800;
  white-space: nowrap;
}

.reference-grid figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

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

.skill-list span {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.timeline time {
  color: var(--green);
  font-weight: 800;
}

.timeline p {
  margin: 0;
}

.contact-section {
  margin: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 72px);
  padding: clamp(32px, 5vw, 58px);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-dark), var(--steel));
}

.contact-section .section-kicker,
.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-section .button.primary {
  color: var(--green-dark);
  background: #fff;
  box-shadow: none;
}

.contact-section .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

footer {
  padding: 24px clamp(20px, 5vw, 72px) 44px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .intro-section,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: 420px;
  }

  .schematic {
    height: 362px;
  }

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

  .project-card.featured-card {
    grid-column: auto;
  }

  .case-study-layout {
    grid-template-columns: 1fr;
  }

  .case-copy {
    position: static;
  }

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

  .iteration-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .section-heading {
    display: block;
  }

  .step-viewer-heading,
  .step-viewer-layout {
    grid-template-columns: 1fr;
  }

  .viewer-stage {
    min-height: min(82vw, 560px);
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 12px 16px;
  }

  .nav-action {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: clamp(3.2rem, 19vw, 4.8rem);
  }

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

  .button {
    width: 100%;
  }

  .hero-panel {
    min-height: 360px;
  }

  .schematic {
    height: 302px;
    padding: 18px;
  }

  .metric {
    width: 58%;
    padding: 14px;
  }

  .node {
    width: 42px;
    height: 42px;
    border-width: 6px;
  }

  .skill-list,
  .timeline article {
    grid-template-columns: 1fr;
  }

  .iteration-heading {
    display: block;
  }

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

  .iteration-grid.two-up {
    grid-template-columns: 1fr;
  }

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

  .contact-section {
    margin-left: 16px;
    margin-right: 16px;
  }

  .step-viewer-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .viewer-stage {
    min-height: 360px;
  }

  .viewer-parts-panel {
    top: 60px;
    width: min(180px, calc(100% - 28px));
    max-height: calc(100% - 74px);
  }
}
