:root {
  --color-bg: #fcf9f8;
  --color-bg-muted: #f0eded;
  --color-surface: #ffffff;
  --color-surface-2: #f6f3f2;
  --color-text: #1c1b1b;
  --color-text-soft: #444651;
  --color-border: #c5c6d3;
  --color-primary: #00164b;
  --color-primary-strong: #002878;
  --color-accent: #fe8a28;
  --color-accent-strong: #ff6600;
  --color-cyan: #00a4cd;
  --color-white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(0, 40, 120, 0.05);
  --shell: 1280px;
  --radius: 0;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 5rem;
  --space-8: 7rem;
  --font-display: 'Metrophobic', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(calc(100% - 2.5rem), var(--shell));
  margin: 0 auto;
}

.site-main {
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(197, 198, 211, 0.6);
  background: rgba(252, 249, 248, 0.92);
  backdrop-filter: blur(20px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 5.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
}

.brand__image {
  display: block;
  width: auto;
  height: 5.8rem;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 22, 75, 0.16));
}

.site-nav .menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .menu li a {
  display: inline-flex;
  align-items: center;
  min-height: 5.5rem;
  padding: 0 1rem;
  color: var(--color-text);
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav .menu li a:hover,
.site-nav .menu li.current-menu-item a,
.site-nav .menu li.current_page_item a {
  color: var(--color-primary);
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.35);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0.22rem auto;
  background: var(--color-primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.4rem;
  border: 2px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.button--primary:hover {
  background: var(--color-accent-strong);
}

.button--accent {
  background: var(--color-accent-strong);
  color: var(--color-white);
}

.button--accent:hover {
  background: var(--color-primary);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.button--ghost:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.button--light {
  background: var(--color-white);
  color: var(--color-primary);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.eyebrow--light {
  color: #ffd4b8;
}

.hero-section {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: var(--color-primary);
}

.hero-section__media,
.hero-section__overlay {
  position: absolute;
  inset: 0;
}

.hero-section__media {
  background:
    linear-gradient(115deg, rgba(0, 22, 75, 0.26), rgba(0, 22, 75, 0.16)),
    radial-gradient(circle at 70% 35%, rgba(254, 138, 40, 0.14), transparent 0 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 20%, transparent 20% 40%, rgba(255, 255, 255, 0.08) 40% 42%, transparent 42%),
    url("../images/derived/hero-home.jpg");
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  background-size: auto, auto, auto, cover;
}

.hero-section__media::before,
.hero-section__media::after {
  content: '';
  position: absolute;
  inset: auto 10% 0 auto;
  width: min(44vw, 36rem);
  height: min(58vh, 34rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: skewX(-16deg);
}

.hero-section__media::after {
  inset: auto 18% 6% auto;
  width: min(28vw, 21rem);
  height: min(38vh, 20rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
}

.hero-section__overlay {
  background: linear-gradient(90deg, rgba(0, 22, 75, 0.92) 0%, rgba(0, 22, 75, 0.78) 34%, rgba(0, 22, 75, 0.34) 100%);
}

.hero-section__content,
.interior-hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(7rem, 12vw, 10rem) 0;
}

.hero-section__content {
  max-width: 42rem;
  color: var(--color-white);
}

.hero-section h1,
.interior-hero h1,
.section-heading h2,
.contact-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero-section h1 {
  font-size: clamp(3.25rem, 7vw, 5.75rem);
  line-height: 0.98;
}

.hero-section p,
.section-heading p,
.contact-band p,
.service-detail p,
.service-card p,
.project-card p,
.process-step p,
.content-shell {
  color: var(--color-text-soft);
}

.hero-section p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  max-width: 34rem;
  margin: 1.4rem 0 0;
}

.hero-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.section {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.section--light {
  background: var(--color-bg);
}

.section--muted {
  background: var(--color-bg-muted);
}

.section--accent {
  background: linear-gradient(135deg, #0b1b58 0%, #00164b 65%, #001031 100%);
  color: var(--color-white);
}

.section-heading {
  max-width: 52rem;
  margin-bottom: 2.5rem;
}

.section-heading--centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading--row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  max-width: none;
}

.section-heading--compact {
  max-width: 42rem;
  margin-bottom: 0.5rem;
}

.section-heading--compact h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 4vw, 3.45rem);
  line-height: 1.04;
  color: var(--color-primary);
}

.section-heading p {
  margin: 1rem 0 0;
  max-width: 34rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card,
.service-detail,
.contact-panel,
.post-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.service-card {
  min-height: 17rem;
  padding: 1.75rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.service-detail:hover,
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(0, 22, 75, 0.16);
}

.service-card__number,
.service-detail__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 164, 205, 0.35);
  color: var(--color-cyan);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.service-card h3,
.service-detail h3,
.project-card h3,
.process-step h3,
.post-card h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.45rem;
  line-height: 1.15;
}

.service-card p {
  margin: 0.9rem 0 0;
}

.section-actions {
  margin-top: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.project-card {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  display: flex;
  align-items: end;
  color: var(--color-white);
  border: 1px solid rgba(0, 22, 75, 0.1);
}

.project-card--featured {
  min-height: 34rem;
}

.project-grid > .project-card--compact + .project-card--compact {
  margin-top: 1.5rem;
}

.project-card__backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.project-card__backdrop--1 {
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.2), transparent 35%), linear-gradient(180deg, rgba(9, 27, 78, 0.08), rgba(9, 27, 78, 0.56)), url("../images/derived/project-villa-horizonte.jpg");
}

.project-card__backdrop--2 {
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 30%), linear-gradient(180deg, rgba(9, 27, 78, 0.1), rgba(9, 27, 78, 0.72)), url("../images/derived/project-torre-zenit.jpg");
}

.project-card__backdrop--3 {
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 25%), linear-gradient(180deg, rgba(9, 27, 78, 0.18), rgba(9, 27, 78, 0.74)), url("../images/derived/project-nave-modular.jpg");
}

.project-card__backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 22, 75, 0.86) 100%);
}

.project-card__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2rem;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.project-card__meta span {
  display: inline-flex;
  padding: 0.35rem 0.65rem;
  background: rgba(220, 225, 255, 0.9);
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card p {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 24rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.process-step {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--color-border);
  position: relative;
}

.process-step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 22, 75, 0.18), rgba(0, 164, 205, 0.08));
}

.process-step__number {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.35rem;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-primary);
}

.contact-band {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  background: linear-gradient(135deg, #0b1b58 0%, #00164b 70%, #001031 100%);
  color: var(--color-white);
}

.contact-band__grid,
.split-callout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.contact-band h2,
.split-callout h2,
.interior-hero h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.02;
}

.contact-band p,
.split-callout p,
.interior-hero p,
.site-footer__copy {
  color: rgba(255, 255, 255, 0.82);
}

.contact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list strong {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd4b8;
}

.contact-panel {
  padding: 2rem;
}

.contact-form,
.contact-form label {
  display: grid;
  gap: 0.65rem;
}

.contact-form {
  gap: 1.2rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 2px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent-strong);
}

.interior-hero {
  position: relative;
  overflow: hidden;
}

.interior-hero--simple {
  background: var(--color-primary);
  color: var(--color-white);
}

.interior-hero--contact {
  background: linear-gradient(135deg, rgba(0, 22, 75, 0.88) 0%, rgba(15, 42, 115, 0.72) 55%, rgba(0, 22, 56, 0.92) 100%), url("../images/derived/service-drone.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--color-white);
}

.interior-hero--about {
  background: linear-gradient(135deg, rgba(0, 22, 75, 0.88) 0%, rgba(15, 42, 115, 0.72) 55%, rgba(0, 22, 56, 0.92) 100%), url("../images/derived/about-history.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--color-white);
}

.interior-hero--services {
  background: linear-gradient(135deg, rgba(0, 22, 75, 0.9) 0%, rgba(15, 42, 115, 0.76) 55%, rgba(0, 22, 56, 0.92) 100%), url("../images/derived/hero-services-topography.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--color-white);
}

.interior-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
}

.interior-hero p {
  max-width: 42rem;
  margin: 1.2rem 0 0;
}

.content-shell {
  max-width: 72rem;
}

.content-shell h2,
.content-shell h3,
.content-shell h4 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.content-shell h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.content-shell h3 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.content-shell p,
.content-shell li {
  color: var(--color-text-soft);
}

.content-shell .button {
  margin-top: 0.5rem;
}

.content-shell .service-grid,
.content-shell .project-grid,
.content-shell .process-grid,
.content-shell .service-showcase,
.content-shell .service-stack,
.content-shell .value-grid,
.content-shell .contact-band__grid,
.content-shell .split-callout,
.content-shell .about-grid {
  max-width: none;
}

.content-shell .service-grid,
.content-shell .project-grid,
.content-shell .process-grid,
.content-shell .service-showcase,
.content-shell .service-stack,
.content-shell .value-grid,
.content-shell .contact-list,
.content-shell .contact-form,
.content-shell .contact-panel {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.content-shell .contact-panel {
  width: 100%;
}

.content-shell .contact-form {
  margin-bottom: 0;
}

.content-shell > .service-grid,
.content-shell > .project-grid,
.content-shell > .process-grid,
.content-shell > .service-showcase,
.content-shell > .service-stack,
.content-shell > .value-grid,
.content-shell > .contact-list,
.content-shell > .contact-panel {
  width: 100%;
}

.content-shell img {
  display: block;
  width: 100%;
  height: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

.about-panel,
.about-media,
.value-card,
.contact-page-intro {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.about-panel,
.contact-page-intro {
  padding: 2rem;
}

.about-panel--wide {
  grid-column: 1 / -1;
}

.about-panel h2,
.contact-page-intro h2 {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.about-panel h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.35rem;
}

.about-panel__eyebrow {
  margin-top: 1.75rem;
}

.about-panel p,
.about-panel ul,
.contact-page-intro p {
  color: var(--color-text-soft);
}

.about-panel ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.about-media {
  min-height: 24rem;
  display: flex;
  align-items: end;
  padding: 2rem;
  color: var(--color-white);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.about-media__content {
  max-width: 24rem;
}

.about-media__content span {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-media__content h3 {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.about-media--values {
  margin-bottom: 1.5rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.value-card {
  padding: 1.5rem;
  min-height: 11rem;
}

.value-card span {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.value-card h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.contact-band__grid--page {
  align-items: stretch;
}

.contact-list--dark strong {
  color: var(--color-accent-strong);
}

.contact-list--dark span,
.contact-page-intro p {
  color: var(--color-text-soft);
}

.content-shell > *:first-child {
  margin-top: 0;
}

.service-layout {
  display: grid;
  gap: 2rem;
}

.service-showcase {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  grid-auto-rows: minmax(16rem, auto);
  gap: 1rem;
}

.service-showcase__item {
  min-height: 18rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border: 1px solid rgba(0, 22, 75, 0.12);
  color: var(--color-white);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.service-showcase__item--tall {
  grid-row: span 2;
}

.service-showcase__item--wide {
  grid-column: span 2;
}

.service-showcase__item span {
  display: inline-flex;
  align-self: start;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-showcase__item h3 {
  margin: 0;
  max-width: 20rem;
  color: var(--color-white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.08;
}

.service-showcase__item p {
  margin: 0.85rem 0 0;
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.82);
}

.service-stack {
  display: grid;
  gap: 1rem;
}

.service-detail {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem;
}

.service-detail ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--color-text-soft);
}

.split-callout p {
  margin-top: 0;
}

.site-footer {
  padding: 2rem 0;
  background: #f8f4f3;
  border-top: 1px solid rgba(197, 198, 211, 0.6);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer__brand {
  margin: 0;
  color: var(--color-accent-strong);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.site-footer__copy,
.site-footer__meta p {
  margin: 0.35rem 0 0;
  color: var(--color-text-soft);
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.post-card {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.post-card h2 {
  margin-bottom: 0.75rem;
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (max-width: 1080px) {
  .content-shell {
    max-width: 100%;
  }

  .service-grid,
  .process-grid,
  .contact-band__grid,
  .split-callout,
  .project-grid,
  .about-grid,
  .section-heading--row {
    grid-template-columns: 1fr;
  }

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

  .project-grid > .project-card--compact + .project-card--compact {
    margin-top: 0;
  }

  .service-showcase {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .service-showcase__item--tall,
  .service-showcase__item--wide {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-header__cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0 1.25rem 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav .menu {
    display: grid;
    gap: 0;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
  }

  .site-nav .menu li a {
    min-height: auto;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--color-bg-muted);
  }

  .hero-section {
    min-height: 34rem;
  }

  .hero-section__media::before,
  .hero-section__media::after {
    right: -10%;
  }

  .contact-form__row,
  .service-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 1.5rem), var(--shell));
  }

  .site-header__inner {
    min-height: 4.8rem;
  }

  .brand__image {
    height: 4.4rem;
  }

  .hero-section h1,
  .interior-hero h1,
  .section-heading h2,
  .contact-band h2,
  .split-callout h2 {
    letter-spacing: -0.03em;
  }

  .service-card,
  .contact-panel,
  .service-detail,
  .process-step,
  .about-panel,
  .contact-page-intro,
  .value-card,
  .project-card__content {
    padding: 1.3rem;
  }

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

  .content-shell h2 {
    font-size: 1.9rem;
  }

  .content-shell h3 {
    font-size: 1.4rem;
  }
}
