/* Sierra Enterprises LLC
   Approved public-site visual system — Pass 1
   Canonical reference: docs/design/sierra-homepage-approved-reference.png
*/

:root {
    --sierra-black: #090b0c;
    --sierra-charcoal: #111416;
    --sierra-graphite: #1a1e20;
    --sierra-steel: #a8afb1;
    --sierra-silver: #d9ddde;
    --sierra-white: #f4f5f4;
    --sierra-green: #78a947;
  
    --glass-dark: rgba(19, 22, 23, 0.58);
    --glass-dark-strong: rgba(14, 17, 18, 0.76);
    --glass-edge-dark: rgba(255, 255, 255, 0.14);
    --glass-highlight-dark: rgba(255, 255, 255, 0.10);
  
    --glass-light: rgba(244, 246, 245, 0.58);
    --glass-edge-light: rgba(255, 255, 255, 0.76);
  
    --sierra-display:
      Eurostile,
      "Eurostile Extended",
      "Microgramma D Extended",
      "Arial Narrow",
      "Helvetica Neue",
      Arial,
      sans-serif;
  }
  
  /* ----- Global brand foundation ----- */
  
  body {
    background:
      radial-gradient(circle at 76% 8%, rgba(255,255,255,.045), transparent 30rem),
      linear-gradient(180deg, #111416 0%, #090b0c 100%);
    color: var(--sierra-white);
  }
  
  ::selection {
    background: var(--sierra-green);
    color: #080a08;
  }
  
  a:focus-visible,
  button:focus-visible,
  input:focus-visible {
    outline-color: #a7ca83;
  }
  
  .brand-name,
  .hero h1,
  h2 {
    font-family: var(--sierra-display);
  }
  
  .brand-name {
    color: #f1f3f2;
    letter-spacing: .015em;
    font-weight: 800;
  }
  
  .brand-dot {
    color: var(--sierra-green);
  }
  
  .brand-sub {
    color: #aeb4b5;
    letter-spacing: .24em;
  }
  
  /* ----- Floating glass header ----- */
  
  .site-header.wrap {
    width: min(1420px, calc(100% - 48px));
  }
  
  .site-header {
    position: sticky;
    top: 18px;
    z-index: 50;
  
    min-height: 76px;
    margin-top: 18px;
    padding: 10px 12px 10px 22px;
  
    border: 1px solid var(--glass-edge-dark);
    border-radius: 28px;
  
    background:
      linear-gradient(
        135deg,
        rgba(255,255,255,.075),
        rgba(255,255,255,.018) 42%,
        rgba(0,0,0,.08)
      ),
      var(--glass-dark);
  
    box-shadow:
      0 18px 48px rgba(0,0,0,.28),
      inset 0 1px 0 var(--glass-highlight-dark),
      inset 0 -1px 0 rgba(255,255,255,.025);
  
    backdrop-filter: blur(26px) saturate(135%);
    -webkit-backdrop-filter: blur(26px) saturate(135%);
  }
  
  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
      linear-gradient(
        110deg,
        rgba(255,255,255,.09),
        transparent 23%,
        transparent 75%,
        rgba(255,255,255,.025)
      );
    opacity: .7;
  }
  
  .site-header .brand,
  .site-header nav,
  .site-header .header-actions {
    position: relative;
    z-index: 1;
  }
  
  .site-header .brand {
    min-width: 210px;
  }
  
  .site-header .brand-name {
    font-size: 1.9rem;
    line-height: .9;
  }
  
  .site-header .brand-sub {
    margin-top: 8px;
    font-size: .54rem;
  }
  
  /* ----- Navigation ----- */
  
  .site-header nav {
    gap: 7px;
    margin-left: auto;
  }
  
  .site-header nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 999px;
  
    color: rgba(244,245,244,.78);
    font-size: .82rem;
    font-weight: 500;
  
    transition:
      color .18s ease,
      background .18s ease,
      border-color .18s ease,
      transform .18s ease;
  }
  
  .site-header nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.08);
    transform: translateY(-1px);
  }
  
  .site-header .login-link {
    margin-left: 8px;
    padding: 10px 17px;
  
    color: #f5f6f5;
    background:
      linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
    border: 1px solid rgba(255,255,255,.15);
  
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.13),
      0 7px 18px rgba(0,0,0,.16);
  
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  
  .site-header .login-link:hover {
    background:
      linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.07));
  }
  
  /* ----- Header controls ----- */
  
  .header-actions {
    gap: 7px;
  }
  
  .theme-toggle,
  .menu-toggle {
    min-height: 44px;
    border-radius: 999px;
  
    color: rgba(244,245,244,.88);
    background:
      linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.14);
  
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.12),
      0 7px 18px rgba(0,0,0,.12);
  
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  
  .theme-toggle {
    min-width: 70px;
    padding: 9px 14px;
  }
  
  .theme-toggle:hover,
  .menu-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
  }
  
  /* Remove old green from content until later passes rebuild it. */
  
  .hero h1 em {
    color: inherit;
  }
  
  .short-rule {
    background: var(--sierra-green);
  }
  
  .eyebrow,
  .number {
    color: #aeb4b5;
  }
  
  .hero-description,
  .section-heading > p:last-child,
  .service-list p,
  .work-heading > p,
  .project > p:last-child,
  .contact-section > div > p:last-child,
  .site-footer p,
  .site-footer > a:last-child {
    color: #a8afb1;
  }
  
  /* ----- Light translation ----- */
  
  html[data-theme="light"] body {
    background:
      radial-gradient(circle at 80% 5%, rgba(255,255,255,.95), transparent 30rem),
      linear-gradient(180deg, #e8eae9 0%, #d8dcdb 100%);
    color: #16191a;
  }
  
  html[data-theme="light"] .site-header {
    background:
      linear-gradient(
        135deg,
        rgba(255,255,255,.72),
        rgba(255,255,255,.38) 48%,
        rgba(218,222,221,.28)
      ),
      var(--glass-light);
  
    border-color: rgba(255,255,255,.78);
  
    box-shadow:
      0 18px 45px rgba(34,39,40,.13),
      inset 0 1px 0 rgba(255,255,255,.95),
      inset 0 -1px 0 rgba(255,255,255,.28);
  }
  
  html[data-theme="light"] .brand-name {
    color: #171a1b;
  }
  
  html[data-theme="light"] .brand-sub {
    color: #62696b;
  }
  
  html[data-theme="light"] .site-header nav a {
    color: #3f4648;
  }
  
  html[data-theme="light"] .site-header nav a:hover {
    color: #111415;
    background: rgba(255,255,255,.56);
    border-color: rgba(255,255,255,.72);
  }
  
  html[data-theme="light"] .site-header .login-link,
  html[data-theme="light"] .theme-toggle,
  html[data-theme="light"] .menu-toggle {
    color: #252a2b;
    background:
      linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.36));
    border-color: rgba(255,255,255,.82);
  
    box-shadow:
      inset 0 1px 0 #fff,
      0 7px 18px rgba(42,48,49,.09);
  }
  
  /* ----- Tablet ----- */
  
  @media (max-width: 1050px) and (min-width: 761px) {
    .site-header.wrap {
      width: min(940px, calc(100% - 36px));
    }
  
    .site-header {
      padding: 12px 16px;
    }
  
    .site-header .brand {
      min-width: 190px;
    }
  
    .site-header nav {
      order: initial;
      width: auto;
      margin-left: auto;
      justify-content: flex-end;
    }
  
    .site-header nav a {
      padding-inline: 10px;
    }
  
    .site-header .login-link {
      margin-left: 2px;
    }
  }
  
  /* ----- Mobile ----- */
  
  @media (max-width: 760px) {
    .site-header.wrap {
      width: calc(100% - 24px);
    }
  
    .site-header {
      top: 10px;
      min-height: 68px;
      margin-top: 10px;
      padding: 10px 10px 10px 15px;
      border-radius: 24px;
    }
  
    .site-header .brand {
      min-width: 0;
    }
  
    .site-header .brand-name {
      font-size: 1.52rem;
    }
  
    .site-header .brand-sub {
      font-size: .45rem;
      letter-spacing: .18em;
      margin-top: 6px;
    }
  
    .theme-toggle {
      min-width: 62px;
      padding-inline: 10px;
      font-size: .76rem;
    }
  
    .menu-toggle {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 11px;
      font-size: .76rem;
    }
  
    .site-header nav {
      top: calc(100% + 10px);
      left: 0;
      right: 0;
  
      padding: 10px;
  
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 22px;
  
      background:
        linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        rgba(15,18,19,.82);
  
      box-shadow:
        0 22px 50px rgba(0,0,0,.32),
        inset 0 1px 0 rgba(255,255,255,.08);
  
      backdrop-filter: blur(28px) saturate(135%);
      -webkit-backdrop-filter: blur(28px) saturate(135%);
    }
  
    .site-header nav a {
      min-height: 46px;
      padding: 11px 14px;
      color: rgba(244,245,244,.86);
      border-bottom: 0;
    }
  
    .site-header .login-link {
      margin: 5px 0 0;
    }
  
    html[data-theme="light"] .site-header nav {
      background: rgba(235,238,237,.88);
      border-color: rgba(255,255,255,.82);
    }
  
    html[data-theme="light"] .site-header nav a {
      color: #303536;
    }
  }
  
  /* ----- Glass fallbacks ----- */
  
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header {
      background: rgba(18,21,22,.96);
    }
  
    html[data-theme="light"] .site-header {
      background: rgba(235,238,237,.97);
    }
  }
  
  @media (prefers-reduced-transparency: reduce) {
    .site-header {
      background: rgba(18,21,22,.96);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
  
    html[data-theme="light"] .site-header {
      background: rgba(235,238,237,.97);
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .site-header nav a {
      transition: none;
    }
  
    .site-header nav a:hover {
      transform: none;
    }
  }
  /* =========================================================
   PASS 1 CORRECTIONS
   Neutralize legacy green theme + lock approved header layout
   ========================================================= */

html[data-theme="dark"] body {
    background:
      radial-gradient(
        circle at 78% 8%,
        rgba(255, 255, 255, 0.045),
        transparent 34rem
      ),
      radial-gradient(
        circle at 12% 30%,
        rgba(130, 138, 140, 0.055),
        transparent 28rem
      ),
      linear-gradient(
        180deg,
        #111416 0%,
        #090b0c 100%
      );
  
    color: #f2f3f2;
  }
  
  /* Remove legacy green emphasis */
  
  html[data-theme="dark"] .hero h1 em,
  html[data-theme="light"] .hero h1 em {
    color: inherit;
  }
  
  html[data-theme="dark"] .eyebrow,
  html[data-theme="dark"] .number {
    color: #aeb4b5;
  }
  
  html[data-theme="dark"] .short-rule {
    background: #78a947;
  }
  
  /* Header must stay a single floating glass bar on tablet/desktop */
  
  @media (min-width: 761px) {
  
    .site-header {
      flex-wrap: nowrap !important;
    }
  
    .site-header nav {
      order: initial !important;
      width: auto !important;
      margin-left: auto !important;
  
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: flex-end;
  
      gap: 6px;
    }
  
    .header-actions {
      margin-left: 0 !important;
      flex: 0 0 auto;
    }
  
    .menu-toggle {
      display: none !important;
    }
  }
  
  /* Intermediate tablet sizing */
  
  @media (min-width: 761px) and (max-width: 1050px) {
  
    .site-header.wrap {
      width: calc(100% - 30px);
    }
  
    .site-header {
      min-height: 72px;
      padding: 10px 12px 10px 17px;
      gap: 8px;
    }
  
    .site-header .brand {
      min-width: 155px;
    }
  
    .site-header .brand-name {
      font-size: 1.55rem;
    }
  
    .site-header .brand-sub {
      font-size: .44rem;
      letter-spacing: .18em;
      margin-top: 6px;
    }
  
    .site-header nav {
      gap: 2px;
    }
  
    .site-header nav a {
      min-height: 40px;
      padding: 8px 8px;
      font-size: .69rem;
    }
  
    .site-header .login-link {
      margin-left: 2px;
      padding-inline: 10px;
    }
  
    .theme-toggle {
      min-width: 62px;
      padding-inline: 9px;
      font-size: .7rem;
    }
  }
  
  /* Mobile retains compact logo + glass controls */
  
  @media (max-width: 760px) {
  
    html[data-theme="dark"] .site-header nav {
      background:
        linear-gradient(
          145deg,
          rgba(255,255,255,.08),
          rgba(255,255,255,.025)
        ),
        rgba(15,18,19,.88);
  
      border-color: rgba(255,255,255,.14);
    }
  
    .site-header .brand-dot {
      color: #78a947;
    }
  }
  /* =========================================================
   PASS 2 — APPROVED CINEMATIC HERO
   Authoritative consolidated implementation
   ========================================================= */

/* ---------- Full-bleed cinematic stage ---------- */

.hero.hero-cinematic {
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
  
    position: relative;
    display: block;
    isolation: isolate;
    overflow: hidden;
  
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
    border-radius: 0;
  
    background: #0b0e0f;
  
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.05);
  }
  
  
  /* ---------- Photograph ---------- */
  
  .hero.hero-cinematic > .hero-cinematic-image {
    position: absolute;
    inset: 0;
  
    width: 100%;
    height: 100%;
    max-width: none;
  
    display: block;
  
    object-fit: cover;
    object-position: center center;
  
    z-index: -3;
  
    filter:
      saturate(.88)
      contrast(1.03)
      brightness(.83);
  }
  
  
  /* ---------- Cinematic readability ---------- */
  
  .hero.hero-cinematic > .hero-cinematic-shade {
    position: absolute;
    inset: 0;
  
    z-index: -2;
  
    background:
      linear-gradient(
        90deg,
        rgba(6,8,9,.84) 0%,
        rgba(7,9,10,.68) 28%,
        rgba(8,10,11,.34) 54%,
        rgba(7,9,10,.10) 78%,
        rgba(7,9,10,.16) 100%
      ),
      linear-gradient(
        0deg,
        rgba(5,7,8,.68) 0%,
        transparent 38%,
        rgba(4,6,7,.05) 72%
      );
  }
  
  
  /* ---------- Floating header relationship ---------- */
  
  .site-header {
    margin-bottom: -112px;
  
    background: rgba(255,255,255,.035) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
  
    backdrop-filter:
      blur(14px)
      saturate(125%)
      brightness(.94) !important;
  
    -webkit-backdrop-filter:
      blur(14px)
      saturate(125%)
      brightness(.94) !important;
  
    box-shadow:
      0 12px 32px rgba(0,0,0,.10),
      inset 0 1px 0 rgba(255,255,255,.22),
      inset 0 -1px 0 rgba(255,255,255,.055) !important;
  }
  
  .site-header::before {
    background:
      linear-gradient(
        110deg,
        rgba(255,255,255,.11),
        rgba(255,255,255,.025) 28%,
        transparent 48%,
        rgba(255,255,255,.025) 100%
      ) !important;
  
    opacity: .45 !important;
  }
  
  .site-header.wrap {
    width: min(1420px, calc(100% - 48px));
  }
  
  
  /* ---------- Header glass pills ---------- */
  
  .site-header .login-link,
  .theme-toggle,
  .menu-toggle {
    background: rgba(255,255,255,.055) !important;
  
    border: 1px solid rgba(255,255,255,.23) !important;
  
    backdrop-filter:
      blur(10px)
      saturate(125%) !important;
  
    -webkit-backdrop-filter:
      blur(10px)
      saturate(125%) !important;
  
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.16),
      0 5px 15px rgba(0,0,0,.08) !important;
  }
  
  
  /* ---------- Hero content ---------- */
  
  .hero.hero-cinematic > .hero-cinematic-content {
    width: min(1340px, calc(100% - 96px));
    min-height: 720px;
  
    margin-inline: auto;
  
    position: relative;
    z-index: 2;
  
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  
    padding: 175px 0 20px;
  }
  
  .hero.hero-cinematic .hero-copy {
    width: min(620px, 52%);
    padding: 0;
  
    position: relative;
    z-index: 2;
  }
  
  .hero-eyebrow {
    margin: 0 0 24px;
  
    color: rgba(240,243,242,.68);
  
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .19em;
  }
  
  .hero.hero-cinematic h1 {
    margin: 0;
  
    color: #f4f5f4;
  
    font-family: var(--sierra-display);
    font-size: clamp(4.2rem, 6.6vw, 7.1rem);
    font-weight: 800;
  
    line-height: .88;
    letter-spacing: -.045em;
  
    text-transform: uppercase;
  
    text-shadow:
      0 3px 22px rgba(0,0,0,.28);
  }
  
  .hero.hero-cinematic .hero-description {
    width: min(500px, 100%);
  
    margin: 30px 0 0;
  
    color: rgba(238,241,240,.72);
  
    font-size: 1rem;
    line-height: 1.65;
  }
  
  
  /* ---------- CTA row ---------- */
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  
    margin-top: 30px;
  }
  
  .hero-actions .button {
    min-width: 178px;
    min-height: 52px;
  
    padding: 12px 19px;
  
    border-radius: 999px;
  
    font-size: .86rem;
  }
  
  .hero-primary {
    color: #101314;
  
    background:
      linear-gradient(
        145deg,
        rgba(247,248,247,.98),
        rgba(211,215,214,.92)
      );
  
    border-color: rgba(255,255,255,.9);
  
    box-shadow:
      inset 0 1px 0 #fff,
      0 10px 28px rgba(0,0,0,.20);
  }
  
  .hero-primary:hover {
    background: #fff;
  }
  
  .hero-secondary {
    color: #f1f3f2;
  
    background: rgba(255,255,255,.035) !important;
  
    border: 1px solid rgba(255,255,255,.25) !important;
  
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.15),
      0 8px 22px rgba(0,0,0,.10);
  
    backdrop-filter:
      blur(9px)
      saturate(125%) !important;
  
    -webkit-backdrop-filter:
      blur(9px)
      saturate(125%) !important;
  }
  
  
  /* ---------- Service rail ---------- */
  
  .hero.hero-cinematic .hero-service-rail {
    width: 100%;
  
    margin-top: 54px;
  
    position: relative;
    z-index: 2;
  
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  
    overflow: hidden;
  
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 22px;
  
    background: rgba(255,255,255,.025);
  
    box-shadow:
      0 10px 28px rgba(0,0,0,.10),
      inset 0 1px 0 rgba(255,255,255,.15);
  
    backdrop-filter:
      blur(13px)
      saturate(125%)
      brightness(.93);
  
    -webkit-backdrop-filter:
      blur(13px)
      saturate(125%)
      brightness(.93);
  }
  
  .hero.hero-cinematic .hero-service-rail > a {
    min-height: 88px;
  
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
  
    padding: 17px 20px;
  
    color: #f0f2f1;
  
    border-right: 1px solid rgba(255,255,255,.10);
  
    transition:
      background .18s ease,
      border-color .18s ease;
  }
  
  .hero.hero-cinematic .hero-service-rail > a:last-child {
    border-right: 0;
  }
  
  .hero.hero-cinematic .hero-service-rail > a:hover {
    background: rgba(255,255,255,.055);
  }
  
  .service-index {
    align-self: start;
  
    color: #82ad54;
  
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
  }
  
  .service-rail-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  
  .service-rail-copy strong {
    font-size: .88rem;
    font-weight: 600;
  }
  
  .service-rail-copy small {
    color: rgba(234,237,236,.56);
  
    font-size: .68rem;
  }
  
  .service-arrow {
    width: 34px;
    height: 34px;
  
    display: grid;
    place-items: center;
  
    color: #e6e8e7;
  
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
  
    background: rgba(255,255,255,.035);
  
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.12);
  
    backdrop-filter:
      blur(10px)
      saturate(125%);
  
    -webkit-backdrop-filter:
      blur(10px)
      saturate(125%);
  }
  
  
  /* =========================================================
     TABLET — 761px through 1050px
     ========================================================= */
  
  @media (min-width: 761px) and (max-width: 1050px) {
  
    .site-header.wrap {
      width: calc(100% - 32px);
    }
  
    .hero.hero-cinematic > .hero-cinematic-content {
      width: calc(100% - 48px);
      min-height: 720px;
  
      padding-top: 145px;
      padding-bottom: 20px;
    }
  
    .hero.hero-cinematic .hero-copy {
      width: 58%;
    }
  
    .hero.hero-cinematic > .hero-cinematic-image {
      object-position: 58% center;
    }
  
    .hero.hero-cinematic h1 {
      font-size: clamp(3.8rem, 8.2vw, 6rem);
    }
  
    .hero.hero-cinematic .hero-service-rail {
      margin-top: 18px;
    }
  
    .hero.hero-cinematic .hero-service-rail > a {
      grid-template-columns: 28px 1fr auto;
  
      padding-inline: 14px;
    }
  }
  
  
  /* =========================================================
     PHONE — 760px and below
     Content determines hero height.
     ========================================================= */
  
  @media (max-width: 760px) {
  
    .site-header {
      margin-bottom: -90px;
    }
  
    .site-header.wrap {
      width: calc(100% - 24px);
    }
  
    .hero.hero-cinematic {
      min-height: 0;
    }
  
    .hero.hero-cinematic > .hero-cinematic-image {
      object-position: 63% center;
  
      filter:
        saturate(.82)
        contrast(1.02)
        brightness(.76);
    }
  
    .hero.hero-cinematic > .hero-cinematic-shade {
      background:
        linear-gradient(
          180deg,
          rgba(6,8,9,.55) 0%,
          rgba(6,8,9,.40) 18%,
          rgba(6,8,9,.70) 48%,
          rgba(5,7,8,.92) 100%
        );
    }
  
    .hero.hero-cinematic > .hero-cinematic-content {
      width: calc(100% - 40px);
      min-height: 0;
  
      padding-top: 125px;
      padding-bottom: 24px;
    }
  
    .hero.hero-cinematic .hero-copy {
      width: 100%;
      padding-bottom: 0;
    }
  
    .hero-eyebrow {
      margin-bottom: 18px;
  
      font-size: .62rem;
    }
  
    .hero.hero-cinematic h1 {
      max-width: 330px;
  
      font-size: clamp(3rem, 13vw, 4.35rem);
      line-height: .9;
    }
  
    .hero.hero-cinematic .hero-description {
      max-width: 310px;
  
      margin-top: 23px;
  
      font-size: .9rem;
      line-height: 1.55;
    }
  
    .hero-actions {
      margin-top: 22px;
    }
  
    .hero-actions .button {
      min-width: 0;
      min-height: 48px;
  
      padding: 11px 15px;
  
      font-size: .78rem;
    }
  
    .hero.hero-cinematic .hero-service-rail {
      margin-top: 14px;
  
      grid-template-columns: 1fr;
  
      border-radius: 18px;
    }
  
    .hero.hero-cinematic .hero-service-rail > a {
      width: 100%;
      min-height: 54px;
  
      grid-template-columns: 27px 1fr 30px;
      align-items: center;
  
      padding: 8px 11px;
  
      border-right: 0;
      border-bottom: 1px solid rgba(255,255,255,.10);
    }
  
    .hero.hero-cinematic .hero-service-rail > a:last-child {
      border-bottom: 0;
    }
  
    .hero.hero-cinematic .service-index {
      align-self: center;
    }
  
    .hero.hero-cinematic .service-rail-copy strong {
      font-size: .76rem;
    }
  
    .hero.hero-cinematic .service-rail-copy small {
      display: none;
    }
  
    .hero.hero-cinematic .service-arrow {
      width: 30px;
      height: 30px;
    }
  
    html[data-theme="dark"] .site-header nav {
      background:
        linear-gradient(
          145deg,
          rgba(255,255,255,.07),
          rgba(255,255,255,.015)
        ),
        rgba(12,15,16,.34) !important;
  
      border-color: rgba(255,255,255,.20) !important;
  
      backdrop-filter:
        blur(20px)
        saturate(125%) !important;
  
      -webkit-backdrop-filter:
        blur(20px)
        saturate(125%) !important;
    }
  }
  
  
  /* ---------- Accessibility fallbacks ---------- */
  
  @supports not (
    (backdrop-filter: blur(1px)) or
    (-webkit-backdrop-filter: blur(1px))
  ) {
    .site-header {
      background: rgba(18,21,22,.94) !important;
    }
  
    .hero-secondary,
    .hero.hero-cinematic .hero-service-rail {
      background: rgba(17,20,21,.92) !important;
    }
  }
  
  @media (prefers-reduced-transparency: reduce) {
    .site-header,
    .hero-secondary,
    .hero.hero-cinematic .hero-service-rail {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
  
    .site-header {
      background: rgba(18,21,22,.94) !important;
    }
  
    .hero-secondary,
    .hero.hero-cinematic .hero-service-rail {
      background: rgba(17,20,21,.92) !important;
    }
  }
   
  /* PASS 3 — OUR EXPERTISE
   Industrial neutral glass / Sierra accent identifiers
   ========================================================= */

#services.section {
    position: relative;
  
    padding-top: 120px;
    padding-bottom: 120px;
  
    border-top: 1px solid rgba(255,255,255,.07);
  }
  
  /* Subtle concrete/graphite atmosphere */
  
  #services.section::before {
    content: "";
    position: absolute;
    inset: 0 50% 0 50%;
    width: 100vw;
    transform: translateX(-50%);
  
    z-index: -1;
  
    background:
      radial-gradient(
        circle at 78% 35%,
        rgba(255,255,255,.035),
        transparent 28rem
      ),
      linear-gradient(
        180deg,
        #0c1011 0%,
        #0a0d0e 100%
      );
  }
  
  
  /* Section heading */
  
  #services .section-heading {
    align-self: start;
  }
  
  #services .section-heading .eyebrow {
    margin: 0 0 26px;
  
    color: #9da4a6;
  
    font-size: .7rem;
    letter-spacing: .18em;
  }
  
  #services .section-heading h2 {
    max-width: 570px;
  
    margin: 0;
  
    color: #f1f3f2;
  
    font-family: var(--sierra-display);
    font-size: clamp(3rem, 4.4vw, 5rem);
    font-weight: 500;
  
    line-height: .98;
    letter-spacing: -.045em;
  }
  
  #services .section-heading > p:last-child {
    max-width: 500px;
  
    margin-top: 34px;
  
    color: #a6adae;
  
    font-size: .98rem;
    line-height: 1.7;
  }
  
  
  /* Service card stack */
  
  #services .service-list {
    display: grid;
    gap: 14px;
  
    align-self: center;
  }
  
  
  /* Neutral clear-glass cards */
  
  #services .service-list article {
    min-height: 142px;
  
    display: grid;
    grid-template-columns: 42px 1fr 48px;
    grid-template-rows: auto 1fr;
    column-gap: 14px;
  
    position: relative;
  
    padding: 25px 24px;
  
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 24px;
  
    background:
      linear-gradient(
        135deg,
        rgba(255,255,255,.045),
        rgba(255,255,255,.012)
      ),
      rgba(255,255,255,.018) !important;
  
    box-shadow:
      0 12px 34px rgba(0,0,0,.11),
      inset 0 1px 0 rgba(255,255,255,.10) !important;
  
    backdrop-filter:
      blur(15px)
      saturate(120%) !important;
  
    -webkit-backdrop-filter:
      blur(15px)
      saturate(120%) !important;
  
    overflow: hidden;
  
    transition:
      transform .2s ease,
      border-color .2s ease,
      background .2s ease;
  }
  
  
  /* very subtle architectural highlight */
  
  #services .service-list article::before {
    content: "";
  
    position: absolute;
    inset: 0;
  
    pointer-events: none;
  
    background:
      linear-gradient(
        115deg,
        rgba(255,255,255,.055),
        transparent 27%,
        transparent 76%,
        rgba(255,255,255,.018)
      );
  }
  
  
  #services .service-list article:hover {
    transform: translateY(-2px);
  
    border-color: rgba(255,255,255,.22) !important;
  
    background:
      linear-gradient(
        135deg,
        rgba(255,255,255,.065),
        rgba(255,255,255,.018)
      ),
      rgba(255,255,255,.025) !important;
  }
  
  
  /* Sierra green becomes identifier only */
  
  #services .service-list .number {
    grid-column: 1;
    grid-row: 1 / span 2;
  
    padding-top: 4px;
  
    color: #86b956 !important;
  
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
  }
  
  
  /* Service title */
  
  #services .service-list h3 {
    grid-column: 2;
    grid-row: 1;
  
    margin: 0;
  
    color: #f0f2f1;
  
    font-size: 1.35rem;
    font-weight: 600;
  
    letter-spacing: -.025em;
  }
  
  
  /* Description */
  
  #services .service-list p {
    grid-column: 2;
    grid-row: 2;
  
    max-width: 390px;
  
    margin: 10px 0 0;
  
    color: #a4abad;
  
    font-size: .88rem;
    line-height: 1.55;
  }
  
  
  /* Circular architectural arrow */
  
  #services .service-list article::after {
    content: "↗";
  
    grid-column: 3;
    grid-row: 1 / span 2;
  
    align-self: center;
    justify-self: end;
  
    width: 42px;
    height: 42px;
  
    display: grid;
    place-items: center;
  
    position: relative;
    z-index: 2;
  
    color: #dfe2e1;
  
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
  
    background: rgba(255,255,255,.025);
  
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.08);
  
    font-size: .9rem;
  }
  
  
  /* Remove legacy last-card border behavior */
  
  #services .service-list article:last-child {
    border-bottom:
      1px solid rgba(255,255,255,.14) !important;
  }
  
  
  /* Tablet */
  
  @media (max-width: 1050px) {
  
    #services.section {
      padding-top: 90px;
      padding-bottom: 90px;
  
      gap: 7%;
    }
  
    #services .section-heading h2 {
      font-size: clamp(2.7rem, 5vw, 4rem);
    }
  
    #services .service-list article {
      min-height: 132px;
  
      padding: 22px 20px;
  
      grid-template-columns: 34px 1fr 44px;
    }
  
    #services .service-list h3 {
      font-size: 1.2rem;
    }
  
  }
  
  
  /* Phone */
  
  @media (max-width: 760px) {
  
    #services.section {
      padding-top: 76px;
      padding-bottom: 76px;
  
      gap: 38px;
    }
  
    #services .section-heading .eyebrow {
      margin-bottom: 20px;
    }
  
    #services .section-heading h2 {
      max-width: 330px;
  
      font-size: clamp(2.65rem, 12vw, 3.7rem);
      line-height: 1;
    }
  
    #services .section-heading > p:last-child {
      margin-top: 25px;
  
      font-size: .9rem;
    }
  
    #services .service-list {
      gap: 10px;
    }
  
    #services .service-list article {
      min-height: 118px;
  
      padding: 19px 17px;
  
      grid-template-columns: 30px 1fr 40px;
  
      border-radius: 20px;
    }
  
    #services .service-list h3 {
      font-size: 1.08rem;
    }
  
    #services .service-list p {
      margin-top: 7px;
  
      font-size: .81rem;
    }
  
    #services .service-list article::after {
      width: 36px;
      height: 36px;
    }
  
  }
  
  
  /* Transparency accessibility fallback */
  
  @supports not (
    (backdrop-filter: blur(1px)) or
    (-webkit-backdrop-filter: blur(1px))
  ) {
  
    #services .service-list article {
      background: #15191a !important;
    }
  
  }
  
  @media (prefers-reduced-transparency: reduce) {
  
    #services .service-list article {
      background: #15191a !important;
  
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
  
  }

  /* =========================================================
   PASS 3 — HERO → EXPERTISE RHYTHM
   Tighten transition and neutralize remaining legacy spacing
   ========================================================= */

#services.section {
    padding-top: 82px !important;
    padding-bottom: 110px !important;
  }
  
  /* Desktop */
  @media (min-width: 1051px) {
    #services.section {
      min-height: 0 !important;
      padding-top: 76px !important;
    }
  }
  
  /* Tablet */
  @media (min-width: 761px) and (max-width: 1050px) {
    #services.section {
      padding-top: 68px !important;
      padding-bottom: 90px !important;
    }
  }
  
  /* Phone */
  @media (max-width: 760px) {
    #services.section {
      padding-top: 58px !important;
      padding-bottom: 76px !important;
    }
  }

  /* =========================================================
   PASS 3 — transition + overflow correction
   ========================================================= */

html,
body {
  overflow-x: clip;
}

/* Remove the 100vw technique that can create horizontal overflow */
#services.section::before {
  inset: 0 !important;
  width: auto !important;
  transform: none !important;
}

/* Bring Expertise closer to the hero */
#services.section {
  padding-top: 54px !important;
}

/* Desktop */
@media (min-width: 1051px) {
  #services.section {
    padding-top: 48px !important;
  }
}

/* Tablet */
@media (min-width: 761px) and (max-width: 1050px) {
  #services.section {
    padding-top: 46px !important;
  }
}

/* Phone */
@media (max-width: 760px) {
  #services.section {
    padding-top: 42px !important;
  }
}

/* =========================================================
   PASS 3 — EXPERTISE FINAL GLASS TREATMENT
   ========================================================= */

   #services .service-list article {
    background:
      linear-gradient(
        120deg,
        rgba(255,255,255,.055),
        rgba(255,255,255,.012) 45%,
        rgba(255,255,255,.025)
      ),
      rgba(255,255,255,.012) !important;
  
    border-color: rgba(255,255,255,.16) !important;
  
    backdrop-filter:
      blur(13px)
      saturate(110%) !important;
  
    -webkit-backdrop-filter:
      blur(13px)
      saturate(110%) !important;
  
    box-shadow:
      0 10px 28px rgba(0,0,0,.09),
      inset 0 1px 0 rgba(255,255,255,.12) !important;
  }
  
  #services .service-list article:hover {
    background:
      linear-gradient(
        120deg,
        rgba(255,255,255,.075),
        rgba(255,255,255,.018) 48%,
        rgba(255,255,255,.03)
      ),
      rgba(255,255,255,.018) !important;
  
    border-color: rgba(255,255,255,.23) !important;
  }
  
  /* Keep green extremely disciplined */
  #services .service-list .number {
    color: #82ad54 !important;
  }
  
  /* Neutralize remaining inherited greenish text */
  #services .service-list h3 {
    color: #f1f2f1 !important;
  }
  
  #services .service-list p {
    color: #a8adae !important;
  }
  
  /* Cleaner circular controls */
  #services .service-list article::after {
    background: rgba(255,255,255,.025) !important;
    border-color: rgba(255,255,255,.17) !important;
    color: #e4e6e5;
  }

  /* =========================================================
   HERO VERTICAL RHYTHM — FINAL TUNING
   ========================================================= */

/* MacBook / desktop */
@media (min-width: 1051px) {

    .hero.hero-cinematic .hero-service-rail {
      margin-top: 68px !important;
    }
  
    .hero.hero-cinematic > .hero-cinematic-content {
      justify-content: flex-start;
      min-height: 720px !important;
      padding-bottom: 20px !important;
    }
  
    #services.section {
      padding-top: 34px !important;
    }
  }
  
  
  /* iPad / tablet */
  @media (min-width: 761px) and (max-width: 1050px) {
  
    .hero.hero-cinematic .hero-service-rail {
      margin-top: 18px !important;
    }
  
    .hero.hero-cinematic > .hero-cinematic-content {
      justify-content: flex-start;
    }
  
    #services.section {
      padding-top: 36px !important;
    }
  }
  
  
  /* iPhone */
  @media (max-width: 760px) {
  
    .hero.hero-cinematic .hero-service-rail {
      margin-top: 14px !important;
    }
  
    .hero.hero-cinematic > .hero-cinematic-content {
      justify-content: flex-start;
    }
  
    #services.section {
      padding-top: 34px !important;
    }
  }

  /* Phone hero should end shortly after its service tray */
@media (max-width: 760px) {
    .hero.hero-cinematic {
      min-height: 0 !important;
    }
  
    .hero.hero-cinematic > .hero-cinematic-content {
      min-height: 0 !important;
      padding-bottom: 24px !important;
    }
  }

  /* Neutralize legacy mobile hero spacing */
@media (max-width: 760px) {
    .hero.hero-cinematic .hero-copy {
      padding-bottom: 0 !important;
    }
  }