:root {
  color-scheme: light;
  --bg: #e8e4da;
  --bg-deep: #dcd4c6;
  --surface: rgba(251, 249, 243, 0.94);
  --surface-strong: #fffdf7;
  --surface-soft: #f1ece1;
  --surface-alt: #e6dece;
  --ink-surface: #13161b;
  --ink-surface-soft: #1f242c;
  --text: #17191e;
  --muted: #5e645f;
  --line: rgba(19, 22, 27, 0.12);
  --line-strong: rgba(19, 22, 27, 0.22);
  --shadow: 0 24px 48px rgba(29, 24, 18, 0.11);
  --shadow-soft: 0 14px 26px rgba(29, 24, 18, 0.08);
  --accent: #b2ca3f;
  --accent-strong: #74861f;
  --accent-2: #ef6c38;
  --accent-soft: rgba(178, 202, 63, 0.14);
  --eyebrow: #56615b;
  --scrim: rgba(27, 29, 33, 0.28);
  --radius-xl: 8px;
  --radius-lg: 6px;
  --radius-md: 4px;
  --radius-sm: 0px;
  --page-width: min(1240px, calc(100% - 44px));
  --menu-top: 110px;
  font-family: "Instrument Sans", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d1013;
    --bg-deep: #131920;
    --surface: rgba(24, 28, 34, 0.92);
    --surface-strong: #181d24;
    --surface-soft: #10151c;
    --surface-alt: #212731;
    --ink-surface: #070a0d;
    --ink-surface-soft: #131821;
    --text: #eff2ee;
    --muted: #a5aea7;
    --line: rgba(237, 242, 236, 0.1);
    --line-strong: rgba(237, 242, 236, 0.18);
    --shadow: 0 28px 58px rgba(0, 0, 0, 0.36);
    --shadow-soft: 0 16px 30px rgba(0, 0, 0, 0.22);
    --accent: #c2de54;
    --accent-strong: #d7eb8e;
    --accent-2: #ff8757;
    --accent-soft: rgba(194, 222, 84, 0.14);
    --eyebrow: #b2bdb6;
    --scrim: rgba(6, 8, 10, 0.4);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Instrument Sans", system-ui, sans-serif;
  overflow-x: clip;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(178, 202, 63, 0.08), transparent 28%),
    linear-gradient(315deg, rgba(239, 108, 56, 0.07), transparent 26%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    linear-gradient(rgba(70, 76, 81, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 76, 81, 0.07) 1px, transparent 1px);
  background-size: 118px 118px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 94%);
}

body::after {
  background:
    linear-gradient(90deg, transparent 10%, rgba(178, 202, 63, 0.04) 10%, rgba(178, 202, 63, 0.04) 10.3%, transparent 10.3%),
    linear-gradient(90deg, transparent 66%, rgba(239, 108, 56, 0.04) 66%, rgba(239, 108, 56, 0.04) 66.3%, transparent 66.3%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  width: var(--page-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0 0;
}

.nav-bar {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  padding: 14px 16px;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  box-shadow: var(--shadow);
}

.nav-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  opacity: 0.82;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.nav-desktop {
  justify-self: center;
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-soft) 86%, transparent);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  overflow: visible;
}

.nav-desktop > * {
  position: relative;
}

.nav-desktop > :not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  right: 0;
  width: 1px;
  background: var(--line);
}

.nav-link,
.nav-group-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-link::before,
.nav-group-trigger::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-group-trigger:hover,
.nav-group.is-active .nav-group-trigger,
.nav-group[data-open="true"] .nav-group-trigger {
  color: var(--text);
  background: rgba(255, 255, 255, 0.28);
}

.nav-link:hover::before,
.nav-link.is-active::before,
.nav-group-trigger:hover::before,
.nav-group.is-active .nav-group-trigger::before,
.nav-group[data-open="true"] .nav-group-trigger::before {
  transform: scaleX(1);
}

.nav-group {
  position: relative;
}

.nav-group-trigger svg {
  width: 15px;
  height: 15px;
  transition: transform 160ms ease;
}

.nav-group[data-open="true"] .nav-group-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(420px, 42vw);
  padding: 10px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.nav-group[data-open="true"] .nav-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-submenu-link {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.nav-submenu-link:hover {
  transform: translateX(4px);
  border-left-color: var(--accent);
  background: var(--surface);
}

.nav-submenu-link strong {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.95rem;
}

.nav-submenu-link span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent-2), color-mix(in srgb, var(--accent) 85%, white 15%));
  color: #fff;
  box-shadow: 0 14px 28px rgba(116, 134, 31, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.32);
  border-color: var(--line);
  color: var(--text);
}

.button-primary-light {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(231, 237, 213, 0.9));
  color: var(--ink-surface);
}

.button-secondary-light {
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  min-width: 236px;
}

.nav-toggle,
.nav-panel {
  display: none;
}

.page-main {
  padding: 38px 0 76px;
}

.page-main .page-shell {
  display: grid;
  gap: 30px;
}

.panel {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 78px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.panel-ink {
  background: linear-gradient(180deg, var(--ink-surface), var(--ink-surface-soft));
  border-color: rgba(255, 255, 255, 0.1);
  color: #f6f7f2;
}

.panel-ink::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.panel-alt {
  background: linear-gradient(180deg, var(--surface-soft), var(--surface-strong));
}

.hero-layout,
.page-hero,
.duo-layout,
.contact-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.page-hero,
.duo-layout,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-copy h1,
.page-hero-copy h1,
.panel h2,
.panel h3 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.06em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  line-height: 0.9;
  max-width: 7ch;
}

.page-hero-copy h1,
.contact-side h1 {
  font-size: clamp(2.55rem, 4.4vw, 4rem);
  line-height: 0.92;
  max-width: 9ch;
}

.duo-layout h2,
.service-band-copy h2,
.cta-band h2,
.contact-form-card h2 {
  font-size: clamp(1.95rem, 3vw, 2.8rem);
  line-height: 0.98;
  max-width: 14ch;
}

.section-header h2 {
  margin: 0;
  max-width: 13ch;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-lead,
.page-hero-copy p:last-of-type,
.panel p,
.contact-form-card > p:last-of-type {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.panel-ink p {
  color: rgba(246, 247, 242, 0.76);
}

.eyebrow {
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--eyebrow);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.eyebrow-light {
  color: rgba(246, 247, 242, 0.76);
}

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

.hero-list,
.feature-list,
.bullet-list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.hero-list li,
.feature-list li,
.bullet-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.72;
}

.hero-list li::before,
.feature-list li::before,
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.hero-board {
  display: grid;
  gap: 18px;
  align-content: start;
  transform: translateY(36px);
}

.board-head {
  display: grid;
  gap: 8px;
}

.board-head strong {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.25rem;
  line-height: 1.3;
}

.board-visual,
.page-hero-media,
.service-band-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.board-visual::after,
.page-hero-media::after,
.service-band-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(19, 22, 27, 0.12));
}

.board-visual img,
.page-hero-media img,
.service-band-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.board-metrics {
  display: grid;
  gap: 10px;
}

.board-metrics article {
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.board-metrics span,
.service-marker span,
.rail-index {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.board-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.02rem;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.proof-tile {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.proof-tile span {
  margin-bottom: 10px;
}

.proof-tile strong {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.58;
}

.section-header {
  display: grid;
  gap: 8px;
}

.rail-stack {
  display: grid;
  gap: 14px;
}

.rail-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.rail-index {
  width: 60px;
  height: 60px;
  margin: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(239, 108, 56, 0.12), rgba(178, 202, 63, 0.12));
}

.rail-copy {
  display: grid;
  gap: 10px;
}

.rail-copy h3 {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1;
}

.rail-copy p:last-child {
  margin: 0;
}

.rail-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  background: var(--surface-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.service-band {
  display: grid;
  grid-template-columns: 164px minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: 18px;
  align-items: start;
}

.service-marker {
  position: sticky;
  top: 118px;
  padding: 18px 16px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.service-marker p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
  font-size: 0.92rem;
}

.service-band-copy,
.service-band-media {
  align-self: stretch;
}

.callout-box {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--radius-sm);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  background: var(--surface-soft);
}

.callout-box strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.callout-box p {
  margin: 0;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.contact-layout .contact-form-card {
  align-self: stretch;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--eyebrow);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  padding: 16px 18px;
  background: var(--surface-soft);
  color: var(--text);
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.form-note {
  margin: 0;
  min-height: 1.5em;
  color: var(--muted);
}

.form-note[data-state="success"] {
  color: #198754;
}

.form-note[data-state="error"] {
  color: #c43b3b;
}

.site-footer {
  padding: 4px 0 34px;
}

.footer-shell {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.footer-shell p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}

.footer-shell a {
  color: var(--text);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dev-banner {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 12px 0 0;
}

.dev-banner-inner {
  width: var(--page-width);
  margin: 0 auto;
  min-height: 56px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.dev-banner-brand img {
  height: 26px;
  width: auto;
}

.dev-banner-text {
  font-size: 0.88rem;
  color: var(--text);
}

.dev-banner-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

body.has-dev-banner .site-header {
  top: 72px;
}

.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  background: var(--scrim);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 180ms ease;
}

body.menu-open .menu-scrim {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 961px) {
  .menu-scrim {
    display: none;
  }
}

@media (max-width: 1180px) {
  .nav-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .nav-desktop {
    justify-self: end;
  }

  .nav-cta {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .hero-layout,
  .page-hero,
  .duo-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-board {
    transform: none;
  }

  .service-band {
    grid-template-columns: 1fr;
  }

  .service-marker {
    position: static;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  :root {
    --page-width: min(100% - 24px, 760px);
    --menu-top: 104px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    padding-top: 12px;
  }

  .nav-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 80px;
    padding: 12px 14px;
  }

  .brand {
    grid-column: 1 / span 2;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand-copy strong {
    font-size: 1.14rem;
  }

  .brand-copy span {
    font-size: 0.78rem;
  }

  .nav-desktop,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 3;
    justify-self: end;
    width: 50px;
    height: 50px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
  }

  .nav-toggle svg {
    width: 24px;
    height: 24px;
  }

  .nav-panel {
    display: block;
    position: fixed;
    top: var(--menu-top);
    right: 12px;
    bottom: 12px;
    width: min(360px, calc(100% - 20px));
    z-index: 60;
    opacity: 0;
    transform: translateX(18px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.menu-open .nav-panel {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-mobile-surface {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 16px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    overflow: auto;
  }

  .nav-mobile-surface::before {
    content: "Execution map";
    display: block;
    margin-bottom: 6px;
    color: var(--eyebrow);
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .nav-mobile-link,
  .nav-mobile-trigger,
  .nav-mobile-sublink,
  .nav-mobile-cta {
    width: 100%;
  }

  .nav-mobile-link,
  .nav-mobile-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-left: 4px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .nav-mobile-link {
    border-left-color: var(--accent-2);
  }

  .nav-mobile-group[data-open="true"] .nav-mobile-trigger {
    border-left-color: var(--accent);
    background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
  }

  .nav-mobile-group {
    display: grid;
    gap: 10px;
  }

  .nav-mobile-trigger svg {
    width: 18px;
    height: 18px;
    transition: transform 160ms ease;
  }

  .nav-mobile-group[data-open="true"] .nav-mobile-trigger svg {
    transform: rotate(180deg);
  }

  .nav-mobile-submenu {
    display: none;
    gap: 8px;
    padding: 4px 0 0 12px;
    border-left: 2px solid color-mix(in srgb, var(--accent) 65%, var(--line-strong));
  }

  .nav-mobile-group[data-open="true"] .nav-mobile-submenu {
    display: grid;
  }

  .nav-mobile-sublink {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.18);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
  }

  .nav-mobile-cta {
    margin-top: auto;
    min-height: 54px;
  }

  .page-main {
    padding-top: 24px;
  }

  .page-main .page-shell {
    gap: 26px;
  }

  .panel {
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(2.55rem, 11vw, 4rem);
  }

  .page-hero-copy h1,
  .contact-side h1 {
    font-size: clamp(2.1rem, 9.6vw, 3.2rem);
  }

  .duo-layout h2,
  .service-band-copy h2,
  .cta-band h2,
  .contact-form-card h2,
  .section-header h2 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    max-width: none;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .proof-band {
    grid-template-columns: 1fr;
  }

  .rail-card {
    grid-template-columns: 1fr;
  }

  .rail-link {
    justify-self: start;
  }

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

  .footer-shell {
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --page-width: min(100% - 18px, 100%);
    --menu-top: 100px;
  }

  .nav-bar {
    padding: 10px 12px;
  }

  .brand-copy span {
    display: none;
  }

  .panel {
    padding: 20px;
  }

  .page-main .page-shell {
    gap: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 12vw, 3.3rem);
  }

  .page-hero-copy h1,
  .contact-side h1 {
    font-size: clamp(1.95rem, 10vw, 3rem);
  }

  .hero-board,
  .page-hero-media,
  .service-band-media {
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .button {
    width: 100%;
  }

  .dev-banner-inner {
    width: min(100% - 18px, 100%);
  }

  .dev-banner-text {
    font-size: 0.8rem;
  }
}
