/* ============================================================
   Dome Space LLC — Stylesheet
   ============================================================ */

/* ============================================================
   Fonts (self-hosted, variable woff2)
   ============================================================ */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/CormorantGaramond-Variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/CormorantGaramond-Italic-Variable.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('fonts/DMSans-Variable.woff2') format('woff2');
}

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

:root {
  /* Color palette — Smoke / Paprika / Stone / Carbon / Teal */
  --smoke: #f1f0f0;
  --paprika: #eb5e28; /* primary accent */
  --paprika-band: #eb5e28;
  --stone: #504c46;
  --warm-gray: #6b6560;
  --carbon: #252422;
  --teal: #09a895; /* secondary highlight */

  /* Semantic */
  --text: #252422;
  --muted: #504c46;
  --border: rgba(37, 36, 34, 0.12);
  --border-teal: rgba(9, 168, 149, 1);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ============================================================
   Accessibility utilities
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--stone);
  color: var(--smoke);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  z-index: 200;
  border-radius: 0 0 2px 2px;
  transition: top 0.1s;
}

.skip-link:focus {
  top: 0;
}

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

:focus-visible {
  outline: 2px solid var(--stone);
  outline-offset: 3px;
}

body {
  background: var(--smoke);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--smoke);
  border-bottom: 0.5px solid rgba(37, 36, 34, 0.18);
  padding: 0 3rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  opacity: 0.85;
}

.nav-wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--carbon);
}

/* Accent the "Space" part of the wordmark to add visual interest and subtly reinforce the brand name
.wordmark-accent {
  color: var(--paprika);
}
*/

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-cta {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--stone) !important;
  border: 0.5px solid var(--paprika) !important;
  padding: 8px 20px !important;
  border-radius: 2px !important;
  transition:
    background 0.2s,
    color 0.2s !important;
}

.nav-cta:hover {
  background: var(--stone) !important;
  color: var(--smoke) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--carbon);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 0;
  position: relative;
  overflow: hidden;
  background: var(--smoke);
}

.hero-bg-dome {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 780px;
  height: 780px;
  opacity: 0.07;
  pointer-events: none;
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paprika);
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.1;
  color: var(--carbon);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.hero-headline em {
  font-style: italic;
  color: var(--teal);
  /* text-shadow: 0 0 8px rgba(37, 36, 34, 0.3), 0 0 20px rgba(37, 36, 34, 0.15); */
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 3rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn-primary {
  display: inline-block;
  background: var(--paprika);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--carbon);
  color: var(--smoke);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--teal);
}

.btn-ghost svg {
  transition: transform 0.2s;
}

.btn-ghost:hover svg {
  transform: translateX(3px);
}

/* ============================================================
   Section base
   ============================================================ */

section {
  padding: 4rem 3rem 3rem 3rem;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--paprika);
  margin: 0;
  opacity: 0.45;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  /*letter-spacing: 0.16em; */
  text-transform: uppercase;
  color: var(--paprika);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 56px;
  height: 1px;
  background: var(--paprika);
  opacity: 0.5;
}

/* ============================================================
   Services
   ============================================================ */

.services {
  overflow-x: clip;
  background: var(--smoke);
}

.services-header {
  margin-bottom: 4rem;
}

.services-headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  color: var(--carbon);
  max-width: 620px;
  margin-bottom: 5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  position: relative;
  isolation: isolate;
}

.services-grid::before {
  content: '';
  position: absolute;
  inset: -50px calc(50% - 50vw);
  background: var(--paprika-band);
  z-index: -1;
}

.service-card {
  background: var(--smoke);
  padding: 2.5rem;
  border: 1px solid var(--stone);
  margin: 0 -1px -1px 0;
  box-shadow: inset 0 0 0 0px var(--carbon);
  transition: box-shadow 0.25s ease;
}

.service-card:hover {
  box-shadow: inset 0 0 0 5px var(--carbon);
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--carbon);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.service-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--stone);
  border: 0.5px solid var(--border-teal);
  padding: 4px 10px;
  border-radius: 1px;
  font-weight: 500;
}

.service-card:hover .tag {
  color: var(--stone);
  border-color: var(--border-teal);
}

/* ============================================================
   Approach
   ============================================================ */

.approach {
  background: var(--smoke);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.approach-text h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--carbon);
  margin-bottom: 1.5rem;
}

.approach-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.approach-text p strong {
  color: var(--stone);
  font-weight: 500;
}

.pillars {
  display: flex;
  flex-direction: column;
}

.pillar {
  padding: 1.75rem 0;
  border-bottom: 0.5px solid rgba(37, 36, 34, 0.22);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.pillar:first-child {
  padding-top: 0;
}

.pillar:last-child {
  border-bottom: 0;
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border: 0.5px solid var(--border-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-icon svg {
  color: var(--stone);
}

.pillar-content h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--carbon);
  margin-bottom: 0.35rem;
}

.pillar-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 500;
}

/* ============================================================
   Engagement
   ============================================================ */

.engagement {
  overflow-x: clip;
  background: var(--smoke);
}

.engagement-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-bottom: 5rem;
  align-items: end;
}

.engagement-intro h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.25;
  color: var(--carbon);
}

.engagement-intro p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 500;
}

.engagement-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  position: relative;
  isolation: isolate;
}

.engagement-cards::before {
  content: '';
  position: absolute;
  inset: -50px calc(50% - 50vw);
  background: var(--paprika-band);
  z-index: -1;
}

.engagement-card {
  background: var(--smoke);
  padding: 2.5rem 2rem;
  border: 1px solid var(--stone);
  margin: 0 -1px -1px 0;
  box-shadow: inset 0 0 0 0px var(--carbon);
  transition: box-shadow 0.25s ease;
}

.engagement-card:hover {
  box-shadow: inset 0 0 0 5px var(--carbon);
}

.engagement-card.featured {
  position: relative;
}

.engagement-type {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 600;
}

.engagement-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--carbon);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.engagement-amount {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--carbon);
  margin: 1.25rem 0;
  line-height: 1;
}

.engagement-amount span {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 500;
}

.engagement-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-weight: 500;
  border-top: 0.5px solid var(--border);
  padding-top: 1.25rem;
}

.engagement-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.engagement-items li {
  font-size: 13px;
  color: var(--stone);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  line-height: 1.5;
}

.engagement-items li::before {
  content: '—';
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 1px;
}

.engagement-note {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.6;
  margin-top: 1.25rem;
}

.engagement-cta {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.engagement-cta p {
  font-size: 1.1rem;
  color: var(--muted);
}

/* ============================================================
   Selected Work
   ============================================================ */

.selected-work {
  overflow-x: clip;
  background: var(--smoke);
}

.work-header {
  margin-bottom: 5rem;
  max-width: 720px;
}

.work-headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  color: var(--carbon);
  margin-bottom: 1.25rem;
}

.work-intro {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 500;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  isolation: isolate;
}

.work-list::before {
  content: '';
  position: absolute;
  inset: -3rem calc(50% - 50vw) -3rem;
  background: var(--paprika-band);
  z-index: -1;
}

.work-item {
  background: var(--smoke);
  padding: 2.5rem;
  border: 1px solid var(--stone);
  box-shadow: inset 0 0 0 0px var(--carbon);
  transition: box-shadow 0.25s ease;
}

.work-item:hover {
  box-shadow: inset 0 0 0 5px var(--carbon);
}

.work-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--carbon);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.work-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.work-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 1.75rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--border);
}

.work-meta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.work-meta-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paprika);
  font-weight: 600;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-integrations {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.work-integrations li {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.5;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}

.work-int-name {
  color: var(--carbon);
  font-weight: 600;
}

.work-int-desc {
  color: var(--muted);
}

.work-status {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--teal);
  border: 0.5px solid var(--border-teal);
  padding: 2px 8px;
  border-radius: 1px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.work-status.retired {
  color: var(--warm-gray);
  border-color: var(--border);
}

.work-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 500;
  padding-top: 1.25rem;
  border-top: 0.5px solid var(--border);
}

.work-note strong {
  color: var(--stone);
  font-weight: 600;
}

/* ============================================================
   About
   ============================================================ */

.about {
  background: var(--smoke);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.about-aside {
  position: sticky;
  top: 5rem;
}

.about-dome {
  width: 100%;
  max-width: 200px;
  opacity: 0.5;
  margin-bottom: 2rem;
}
/* Replaces block below it */
.about-since {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.about-provenance {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about-prov-item {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 500;
  display: flex;
  gap: 10px;
}

.about-prov-item::before {
  content: '\2014';
  color: var(--teal);
  flex-shrink: 0;
}
/*
.about-stat {
  margin-bottom: 1.5rem;
}

.about-stat-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--teal);
  line-height: 1;
}

.about-stat-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}
*/
.about-body h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--carbon);
  margin-bottom: 2rem;
  line-height: 1.25;
}

.about-body p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.about-body p strong {
  color: var(--stone);
  font-weight: 500;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2rem;
}

/* ============================================================
   Contact
   ============================================================ */

.contact {
  background: var(--carbon);
}

.contact .section-label {
  color: var(--paprika);
}

.contact .section-label::after {
  background: var(--paprika);
  opacity: 0.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--smoke);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.contact-left p {
  font-size: 15px;
  color: var(--teal);
  line-height: 1.85;
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--teal);
  font-size: 14px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.contact-detail a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-detail a:hover {
  color: var(--smoke);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(235, 94, 40, 0.2);
  color: var(--smoke);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f1f0f0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group select option {
  background: var(--carbon);
  color: var(--smoke);
}

.form-group select option[value=''] {
  color: rgba(241, 240, 240, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(241, 240, 240, 0.4);
}

.form-status {
  font-size: 13px;
  color: var(--teal);
  margin-top: 0.5rem;
  min-height: 1.5em;
}

.form-status.error {
  color: #d49a8a;
}

.form-status.success {
  color: #b8c4b0;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--carbon);
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-logo svg {
  opacity: 0.55;
  width: 24px;
  height: 24px;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 15px;
  color: rgba(241, 240, 240, 0.65);
  font-weight: 500;
}

.footer-copy {
  font-size: 12px;
  color: rgba(241, 240, 240, 0.55);
  font-weight: 500;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .nav {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(241, 240, 240, 0.97);
    border-bottom: 0.5px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 7rem 1.5rem 4rem;
  }

  .hero-bg-dome {
    width: 320px;
    height: 320px;
    right: -80px;
    opacity: 0.07;
  }

  section {
    padding: 5rem 1.5rem;
  }

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

  .approach-grid,
  .engagement-intro,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-aside {
    position: static;
  }

  .engagement-cards {
    grid-template-columns: 1fr;
  }

  .work-meta {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .work-item {
    padding: 2rem 1.75rem;
  }

  .work-list::before {
    inset: -5rem calc(50% - 50vw) -5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 500px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   Dark mode
   ============================================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --smoke: #1c1b19;
    --paprika-tint: rgba(235, 94, 40, 0.08);
    --stone: #9a9490;
    --warm-gray: #b0aba6;
    --carbon: #e8e6e3;
    --text: #e8e6e3;
    --muted: #9a9490;
    --border: rgba(241, 240, 240, 0.12);
  }

  /* Nav — swap hardcoded smoke backdrop for dark equivalent */
  .nav {
    background: var(--smoke);
    border-bottom-color: rgba(241, 240, 240, 0.12);
  }

  /* Mobile nav dropdown */
  .nav-links {
    background: rgba(28, 27, 25, 0.97);
    border-bottom-color: rgba(241, 240, 240, 0.12);
  }

  /* Pillar dividers — swap hardcoded carbon-based border for white-based */
  .pillar {
    border-bottom-color: rgba(241, 240, 240, 0.12);
  }

  /* Skip link uses --smoke as text color; keep it light */
  .skip-link {
    color: #f1f0f0;
  }

  /* btn-primary text uses --smoke; keep light on paprika bg */
  .btn-primary {
    color: #f1f0f0;
  }
  /* btn-primary hover uses --carbon (now light); flip to dark */
  .btn-primary:hover {
    background: #0f0e0d;
  }

  /* nav-cta hover text uses --smoke; keep light */
  .nav-cta:hover {
    color: #f1f0f0 !important;
  }

  /* Hero bg dome has a dark stroke — invert so it reads on dark bg */
  .hero-bg-dome {
    filter: invert(1);
    opacity: 0.08;
  }

  /* Contact section — keep dark; repair elements using --smoke/--carbon as
     foreground colors that assumed a dark context */
  .contact {
    background: #131210;
  }
  .contact-left h2 {
    color: #f1f0f0;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    color: #f1f0f0;
  }
  .form-group select option {
    background: #131210;
    color: #f1f0f0;
  }

  /* Footer — keep dark */
  .footer {
    background: #131210;
  }
}
