  :root {
    /* Brand palette per HNK Logo Colors guide */
    --navy: #050943;
    --navy-80: #1a1d55;
    --navy-60: #3d4070;
    --gold: #866C31;
    --gold-light: #b89658;
    --gold-pale: #e8dcc1;

    /* Neutrals */
    --ivory: #f7f4ec;
    --paper: #ffffff;
    --ink: #141414;
    --stone: #4a4a4a;
    --slate: #7a7a7a;
    --divider: #e5e1d8;

    /* Type */
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Rhythm */
    --section-pad: clamp(4rem, 9vw, 9rem);
    --gutter: clamp(1.5rem, 5vw, 5rem);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    font-family: var(--sans);
    background: var(--ivory);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
  }

  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }

  /* Typography */
  h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

  .eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
  }

  .eyebrow-light { color: var(--gold-light); }

  .rule {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    vertical-align: middle;
    margin-right: 1rem;
  }

  /* ─────────────────────────────── NAV ─────────────────────────────── */
  .site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(247, 244, 236, 0.97);
    backdrop-filter: blur(12px);
    padding: 0 var(--gutter);
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--divider);
    transition: all 0.3s ease;
  }

  .nav-logo {
    height: 52px;
    width: auto;
  }

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

  .nav-links a {
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
  }

  .nav-links a:hover { color: var(--gold); }
  .nav-links a:hover::after { width: 100%; }

  .nav-cta {
    background: var(--navy);
    color: var(--ivory) !important;
    padding: 0.75rem 1.5rem;
    letter-spacing: 1.5px !important;
    transition: background 0.2s;
  }
  .nav-cta:hover { background: var(--gold) !important; color: var(--paper) !important; }
  .nav-cta::after { display: none !important; }

  .nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
  }

  .nav-links a[aria-current="page"] {
    color: #866C31;
  }

  /* ─────────────────────────────── HERO ─────────────────────────────── */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
    padding: 120px var(--gutter) 4rem;
    color: var(--ivory);
    background: #0a0a0a;
  }

  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.6) 60%, rgba(5,9,67,0.92) 100%),
      linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 100%);
    z-index: 2;
  }

  .hero-content {
    position: relative;
    z-index: 3;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-content .eyebrow {
    color: var(--gold-light);
    margin-bottom: 2rem;
    display: block;
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 5.75rem);
    font-weight: 400;
    line-height: 1.05;
    max-width: 900px;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
  }

  .hero h1 em {
    font-style: italic;
    color: var(--gold-light);
    font-weight: 400;
  }

  .hero p.lede {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(247,244,236,0.85);
    max-width: 620px;
    margin-bottom: 3rem;
    line-height: 1.65;
    font-weight: 300;
  }

  .hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 5rem;
  }

  .btn {
    display: inline-block;
    padding: 1rem 2.25rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-family: var(--sans);
  }

  .btn-primary {
    background: var(--gold);
    color: var(--paper);
  }
  .btn-primary:hover { background: var(--gold-light); }

  .btn-outline {
    background: transparent;
    color: var(--ivory);
    border: 1px solid rgba(247,244,236,0.4);
  }
  .btn-outline:hover { background: rgba(247,244,236,0.1); border-color: var(--gold-light); color: var(--gold-light); }

  .btn-dark {
    background: var(--navy);
    color: var(--ivory);
  }
  .btn-dark:hover { background: var(--gold); }

  .btn-block {
    display: block;
    text-align: center;
    margin-top: 2rem;
  }

  /* Hero stat strip */
  .hero-stats {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(247,244,236,0.18);
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .hero-stat-num {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--gold-light);
    font-weight: 500;
    line-height: 1;
  }

  .hero-stat-label {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(247,244,236,0.7);
  }

  .hero-stats-band {
    background: var(--navy);
    color: var(--ivory);
    padding: 4rem var(--gutter);
  }

  .hero-stats-band .hero-stats {
    border-top: none;
    padding-top: 0;
  }

  /* ─────────────────────────────── SECTIONS ─────────────────────────────── */
  section {
    padding: var(--section-pad) var(--gutter);
  }

  .section-light { background: var(--ivory); color: var(--ink); }
  .section-paper { background: var(--paper); color: var(--ink); }
  .section-dark { background: var(--navy); color: var(--ivory); }

  .section-flush-top {
    padding-top: 0;
  }

  .section-header {
    max-width: 1100px;
    margin: 0 auto 4rem;
  }

  .section-header.center {
    text-align: center;
  }

  .section-header.center .rule {
    display: block;
    margin: 0 auto 1.5rem;
  }

  .section-header h2 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 400;
    margin-top: 1.5rem;
    max-width: 780px;
  }

  .section-header.center h2 { margin-left: auto; margin-right: auto; }

  .section-header p.dek {
    font-size: 1.1rem;
    color: var(--stone);
    max-width: 640px;
    margin-top: 1.5rem;
    font-weight: 300;
  }

  .section-header.center p.dek { margin-left: auto; margin-right: auto; }

  /* ─────────────────────────────── SERVICES ─────────────────────────────── */
  .services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--divider);
    border: 1px solid var(--divider);
  }

  .service {
    background: var(--paper);
    padding: 3rem 2.5rem;
    transition: background 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .service:hover { background: var(--ivory); }

  .service-num {
    font-family: var(--serif);
    font-size: 2.5rem;
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
  }

  .service h3 {
    font-size: 1.75rem;
    font-weight: 500;
  }

  .service p.dek {
    color: var(--stone);
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .service-list {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--divider);
    padding-top: 1.25rem;
  }

  .service-list li {
    font-size: 0.9rem;
    color: var(--stone);
    padding: 0.35rem 0;
    position: relative;
    padding-left: 1.25rem;
  }

  .service-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
  }

  /* ─────────────────────────────── SERVICE DETAIL ─────────────────────────────── */
  .service-detail-inner {
    max-width: 1100px;
    margin: 0 auto;
  }

  .service-detail-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
  }

  .service-detail-group h3 {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }

  .section-dark .section-header p.dek {
    color: rgba(247, 244, 236, 0.85);
  }

  .section-dark .service-list {
    border-top-color: rgba(247, 244, 236, 0.18);
  }

  .section-dark .service-list li {
    color: rgba(247, 244, 236, 0.85);
  }

  /* Phase grid */
  .phase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .phase {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .phase-label {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--gold-light);
    line-height: 1.2;
  }

  .phase-text {
    color: rgba(247, 244, 236, 0.85);
    font-size: 0.98rem;
    line-height: 1.7;
  }

  /* ─────────────────────────────── APPROACH ─────────────────────────────── */
  .approach-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 2.5rem;
  }

  .pillar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .pillar-num {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold-light);
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .pillar h3 {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.25;
  }

  .pillar p {
    color: rgba(247,244,236,0.75);
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 300;
  }

  /* ─────────────────────────────── PORTFOLIO ─────────────────────────────── */
  .portfolio-controls {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .portfolio-count {
    font-size: 0.82rem;
    color: var(--stone);
    letter-spacing: 1px;
  }

  .pill {
    padding: 0.5rem 1.1rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--divider);
    color: var(--stone);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--sans);
  }

  .pill.active, .pill:hover {
    background: var(--navy);
    color: var(--ivory);
    border-color: var(--navy);
  }

  .portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .project {
    background: var(--paper);
    overflow: hidden;
    border: 1px solid var(--divider);
    transition: all 0.3s ease;
  }

  .project:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(5,9,67,0.2); }

  .project-image {
    aspect-ratio: 4/3;
    background:
      linear-gradient(135deg, var(--navy) 0%, var(--navy-80) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
  }

  .project-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(247,244,236,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(247,244,236,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
  }

  .project-body {
    padding: 1.75rem 1.5rem;
  }

  .project-tag {
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.6rem;
  }

  .project-title {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    line-height: 1.25;
  }

  .project p.project-desc {
    color: var(--stone);
    font-size: 0.88rem;
  }

  /* Static CTA cell after the project loop. Carries no .project class, so the
     portfolio filter in main.js never hides it. */
  .project-card--cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    text-align: center;
  }

  .project-cta-inner {
    padding: 2rem;
  }

  .project-card--cta .project-title {
    color: #fff;
  }

  .project-cta-text {
    color: var(--gold-light);
    margin: 0.75rem 0 1.5rem;
  }

  /* Default .btn-dark is navy, which is invisible on this navy panel. */
  .project-card--cta .btn-dark {
    background: var(--gold);
    color: var(--ivory);
  }

  /* Inverts rather than lightens: a lighter gold would drop the ivory label
     below 4.5:1. Without a hover rule the button is gold in both states. */
  .project-card--cta .btn-dark:hover {
    background: var(--ivory);
    color: var(--navy);
  }

  /* ─────────────────────────────── ABOUT ─────────────────────────────── */
  .about {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }

  .about-prose h2 {
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    font-weight: 400;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }

  .about-prose p {
    color: var(--stone);
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
    line-height: 1.75;
  }

  .about-prose p strong {
    color: var(--ink);
    font-weight: 600;
  }

  .about-stats {
    background: var(--navy);
    color: var(--ivory);
    padding: 3rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
    position: sticky;
    top: 120px;
  }

  .about-stat-num {
    font-family: var(--serif);
    color: var(--gold-light);
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.5rem;
  }

  .about-stat-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(247,244,236,0.65);
  }

  .about-stat-desc {
    font-size: 0.85rem;
    color: rgba(247,244,236,0.85);
    margin-top: 0.5rem;
    line-height: 1.5;
  }

  /* ─────────────────────────────── TEAM ─────────────────────────────── */
  .team-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .team-card {
    background: var(--paper);
    border: 1px solid var(--divider);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .team-photo {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--navy-80) 0%, var(--navy) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .team-photo-placeholder {
    color: var(--gold-light);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-align: center;
    padding: 2rem;
  }

  .team-photo-placeholder::before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 1rem;
  }

  .team-body {
    padding: 2rem;
  }

  .team-name {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
  }

  .team-role {
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
  }

  .team-bio {
    font-size: 0.92rem;
    color: var(--stone);
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }

  .team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--divider);
  }

  .team-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
    background: var(--ivory);
    color: var(--stone);
    letter-spacing: 0.5px;
  }

  /* ─────────────────────────────── CREDENTIALS ─────────────────────────────── */
  .credentials {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--navy);
    color: var(--ivory);
    text-align: center;
  }

  .credentials-eyebrow {
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    display: inline-block;
  }

  .credentials-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2rem;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-style: italic;
    color: rgba(247,244,236,0.85);
  }

  .credentials-list span.divider {
    color: var(--gold-light);
    font-style: normal;
  }

  /* ─────────────────────────────── CONTACT ─────────────────────────────── */
  .contact {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }

  .contact-prose h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 500;
  }

  .contact-prose p {
    color: rgba(247,244,236,0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .contact-card {
    background: var(--paper);
    color: var(--ink);
    padding: 3rem 2.5rem;
  }

  .contact-item {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--divider);
  }

  .contact-item:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

  .contact-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
  }

  .contact-value {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--navy);
  }

  .contact-value.small { font-size: 1rem; }

  /* ─────────────────────────────── FOOTER ─────────────────────────────── */
  footer {
    padding: 3rem var(--gutter) 2rem;
    background: var(--navy);
    color: rgba(247,244,236,0.6);
    border-top: 1px solid rgba(247,244,236,0.08);
    text-align: center;
    font-size: 0.85rem;
  }
  .footer-inner {
    max-width: 600px;
    margin: 0 auto;
  }
  footer .footer-logo {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--ivory);
    margin-bottom: 0.4rem;
    letter-spacing: 4px;
  }
  footer .footer-logo span { color: var(--gold-light); }
  .footer-tagline {
    margin-bottom: 1.5rem;
  }
  .footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
  }
  .footer-nav a {
    color: rgba(247,244,236,0.6);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-nav a:hover {
    color: var(--gold-light);
  }
  .footer-contact {
    margin-bottom: 1.5rem;
  }
  .footer-contact a {
    color: var(--gold-light);
    text-decoration: none;
  }
  .footer-contact a:hover {
    text-decoration: underline;
  }
  .footer-legal {
    font-size: 0.75rem;
    margin-top: 0;
  }

  /* ─────────────────────────────── PAGE HERO ─────────────────────────────── */
  .page-hero {
    padding: 7rem var(--gutter) 3.5rem;
    text-align: center;
  }
  .page-hero-inner {
    max-width: 800px;
    margin: 0 auto;
  }
  .page-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 400;
    margin: 1rem 0 1rem;
    color: var(--ivory);
  }
  .page-hero h2 {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--ivory);
  }
  .page-hero-sub {
    font-size: 1.125rem;
    color: rgba(247,244,236,0.85);
    max-width: 600px;
    margin: 0 auto;
  }

  .page-hero-sub--spaced {
    margin-bottom: 2rem;
  }

  /* ─────────────────────────────── DARK SECTION UTILITIES ─────────────────────────────── */
  .dek-muted {
    color: rgba(247, 244, 236, 0.8);
  }

  .note-muted {
    color: rgba(247, 244, 236, 0.75);
    font-size: 0.95rem;
  }

  /* ─────────────────────────────── CTA ROW (centered trailing button) ─────────────────────────────── */
  .cta-row {
    text-align: center;
    margin-top: 4rem;
  }

  /* ─────────────────────────────── MISSION BRIDGE ─────────────────────────────── */
  .mission-bridge {
    padding: 3rem 2rem;
  }

  .mission-bridge-inner {
    max-width: 750px;
    margin: 0 auto;
  }

  .mission-bridge-inner p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--stone);
  }

  /* ─────────────────────────────── SECTION CTA (reusable centered CTA band) ─────────────────────────────── */
  .section-cta {
    padding: 4rem 2rem;
    text-align: center;
  }

  .section-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 1.5rem;
  }

  /* ========================
     404 PAGE
     ======================== */
  .error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .error-inner {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
  }

  .error-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 1rem 0;
  }

  .error-message {
    font-size: 1.125rem;
    color: var(--stone);
    margin-bottom: 2rem;
  }

  /* ─────────────────────────────── RESPONSIVE ─────────────────────────────── */
  @media (max-width: 900px) {
    .services-grid, .approach-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    .about, .contact {
      grid-template-columns: 1fr;
      gap: 3rem;
    }
    .about-stats { position: static; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: 1fr; }
    .service-detail-groups { grid-template-columns: 1fr; gap: 2rem; }
    .phase-grid { grid-template-columns: 1fr; gap: 2rem; }
  }

  @media (max-width: 640px) {
    .about-stats {
      grid-template-columns: 1fr;
      padding: 2.5rem 1.5rem;
    }
    .nav-links {
      position: fixed;
      top: 88px;
      left: 0;
      right: 0;
      background: var(--ivory);
      flex-direction: column;
      gap: 0;
      padding: 1rem 0;
      transform: translateY(calc(-100% - 88px));
      transition: transform 0.3s ease;
      border-bottom: 1px solid var(--divider);
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links li { width: 100%; text-align: center; padding: 0.75rem; }
    .nav-toggle { display: block; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .hero-cta-group { flex-direction: column; }
    .hero-cta-group .btn { width: 100%; text-align: center; }
  }

  /* Reveal on scroll */
  .js-ready .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .js-ready .reveal.in { opacity: 1; transform: translateY(0); }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .js-ready .reveal {
      opacity: 1;
      transform: none;
      transition: none;
    }

    .js-ready .reveal.in {
      transition: none;
    }
  }

  /* ─────────────────────────────── HERO STILL FALLBACK ─────────────────────────────── */
  /* Reduced-motion users must not be shown an autoplaying background video
     (WCAG 2.3.3), so the poster stands in for it here.
     This media query ALSO fired at max-width 640px when first shipped, to save
     mobile bandwidth. That trigger was removed after measurement: `display: none`
     does NOT stop the download. Chromium requests the file with Range: bytes=0-
     and pulls all 1,850,735 bytes even when the element is hidden. Mobile was
     therefore paying full price for the video and being shown a still, so the
     still was pure loss. Mobile now gets the same loop as desktop.
     The <video> poster attribute remains the fallback for iOS Low Power Mode and
     any browser that refuses autoplay - that is handled by the element, not by CSS. */
  @media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
    .hero {
      background: #0a0a0a url('/assets/images/hero-poster.jpg') center / cover no-repeat;
    }
  }
