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

    :root {
      --sage:       #a8c5c0;
      --sage-dark:  #8aaeaa;
      --sage-light: #c2d8d5;
      --ink:        #141414;
      --white:      #ffffff;
      --off:        #f6f8f7;
      --muted:      #6b7f7d;
      --border:     rgba(20,20,20,0.10);
    }

    html { scroll-behavior: smooth; }
    html, body { height: 100%; }

    body {
      background: var(--off);
      color: var(--ink);
      font-family: 'DM Sans', sans-serif;
      font-weight: 300;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ══════════════════════════════
      DESKTOP HEADER
    ══════════════════════════════ */
    .site-header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 10;
      height: 64px;
      display: flex;
      /* align-items: stretch; */
      justify-content: space-between;
      background: var(--white);
      border-bottom: 1px solid var(--border);
      transform: translateY(-100%);
      transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
      align-items: center;            /* Vertically centers text inside 64px bar */
      padding: 0 2rem;
    }

    .site-header.is-visible {
      transform: translateY(0);
    }

    .header-logo {
      display: flex;
      align-items: stretch;
      text-decoration: none;
      flex-shrink: 0;
    }

    .logo-name-wrap {
      background: var(--sage);
      display: flex;
      align-items: center;
      padding: 0 1.75rem;
    }

    .logo-sub-wrap {
      display: flex;
      align-items: center;
      padding: 0 1.5rem;
      border-right: 1px solid var(--border);
    }

    /* Nav links — right side, fully fluid */
    .header-nav {
      margin-left: auto;
      display: flex;
      align-items: stretch;
      min-width: 0;
    }

    .nav-item {
      display: flex;
      align-items: center;
      /* padding scales from 0.6rem at narrow to 1.8rem at wide */
      padding: 0 clamp(0.6rem, 1.6vw, 1.8rem);
      font-family: 'IBM Plex Mono', monospace;
      /* font scales from 0.5rem to 0.65rem */
      font-size: clamp(0.5rem, 0.7vw, 0.65rem);
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
      text-decoration: none;
      border-left: 1px solid var(--border);
      transition: color 0.2s, background 0.2s;
      white-space: nowrap;
      min-width: 0;
    }
    .nav-item:hover { color: var(--ink); background: var(--off); }

    .nav-item--cta {
      background: var(--sage);
      color: var(--ink);
      font-weight: 400;
    }
    .nav-item--cta:hover { background: var(--sage-dark); color: var(--ink); }

    /* ══════════════════════════════
      HERO — full sage background
    ══════════════════════════════ */
    .hero {
      min-height: 100vh;
      min-height: 100dvh;
      background: var(--sage);
      display: flex;
      flex-direction: column;
        justify-content: center;
        align-items: center;
      padding: max(6vh, 5rem) 5vw 6vh;
      position: relative;
      overflow: hidden;
      box-sizing: border-box;
      z-index: 20;
    }

    /* subtle texture */
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
      pointer-events: none;
      opacity: 0.6;
    }

    .hero-content {
      position: relative;
      left: 0;
      z-index: 1;
      width: 100%;
      margin: 0 auto;
      text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2vh 0;
    }

    .hero-wordmark {
      font-size: clamp(3.5rem, 13vw, 13rem);
      font-weight: 500;
      letter-spacing: -0.02em;
      text-transform: uppercase;
      color: var(--ink);
      line-height: 0.95;
      animation: fadeUp 0.9s 0.1s ease both;
    }

    .hero-panel {
      display: inline-block;
      background: var(--white);
      margin-top: 2rem;
      padding: 1.1rem 1.6rem;
      animation: fadeUp 0.9s 0.25s ease both;
    }

    .hero-panel p {
      font-size: clamp(1rem, 1.6vw, 1.2rem);
      font-weight: 300;
      color: var(--ink);
      line-height: 1.5;
      letter-spacing: 0.01em;
    }

    /* Responsive hero logo/icon */
    .logo-icon {
      display: block;
      /* Make image 90% of the viewport width */
      width: 50vw;
      max-width: 50vw;
      height: 50vh;
      max-height: calc(100vh - 220px);
      object-fit: contain;
      margin: 0 auto;
    }

    .sub-logo-icon {
      display: block;
      /* Make image 90% of the viewport width */
      width: 10vw;
      max-width: 10vw;
      height: auto;
      max-height: calc(100vh - 220px);
      object-fit: contain;
      margin: 0 auto;
    }

    /* ══════════════════════════════
      SECTIONS
    ══════════════════════════════ */
    section {
      max-width: 1100px;
      margin: 0 auto;
      padding: 7vh 5vw;
    }

    .section-label {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.6rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 3rem;
    }
    .section-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* ── Services ── */
    #services { background: var(--white); max-width: 100%; padding: 7vh 5vw; }
    #services > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

    a {
      text-decoration: none;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
    }

    .service-card {
      background: var(--white);
      padding: 2.5rem 2rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      transition: background 0.25s;
      text-decoration: none;
    }
    .service-card:hover { background: var(--off); }

    .service-num {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.58rem;
      letter-spacing: 0.15em;
      color: var(--sage-dark);
    }

    .service-title {
      font-size: 1.05rem;
      font-weight: 400;
      color: var(--ink);
      line-height: 1.3;
    }

    .service-desc {
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.75;
      font-weight: 300;
    }

    /* ── Contact ── */
    #contact { max-width: 100%; padding: 7vh 5vw; background: var(--off); }
    #contact > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

    .contact-row {
      display: grid;
      grid-template-columns: 1fr 1fr auto;
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
    }

    .contact-cell {
      background: var(--white);
      /* padding scales with viewport */
      padding: clamp(1.25rem, 3vh, 2rem) clamp(1rem, 3vw, 2.25rem);
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      position: relative;
      transition: background 0.2s;
    }
    .contact-cell::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 2px;
      background: var(--sage);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.3s ease;
    }
    .contact-cell:hover { background: var(--off); }
    .contact-cell:hover::after { transform: scaleX(1); }

    .cell-label {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.55rem;
      letter-spacing: 0.2em;
      color: var(--muted);
      text-transform: uppercase;
    }

    .cell-value {
      font-size: clamp(0.9rem, 2.2vw, 1.25rem);
      font-weight: 400;
      color: var(--ink);
      text-decoration: none;
      transition: color 0.2s;
    }
    .cell-value:hover { color: var(--sage-dark); }

    .contact-cta {
      background: var(--sage);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: clamp(1.25rem, 3vh, 2rem) clamp(1rem, 3vw, 2.5rem);
      text-decoration: none;
      gap: 0.75rem;
      transition: background 0.2s;
      flex-shrink: 0;
    }
    .contact-cta:hover { background: var(--sage-dark); }
    .contact-cta span {
      font-family: 'IBM Plex Mono', monospace;
      font-size: clamp(0.5rem, 0.8vw, 0.65rem);
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--ink);
    }
    .contact-cta svg { color: var(--ink); flex-shrink: 0; transition: transform 0.25s; }
    .contact-cta:hover svg { transform: translateX(4px); }

    /* copyright strip in header */
    .header-copy {
      font-family: 'IBM Plex Mono', monospace;
      font-size: clamp(0.45rem, 0.6vw, 0.58rem);
      letter-spacing: 0.12em;
      color: var(--muted);
      text-transform: uppercase;
      white-space: nowrap;
      padding: 0 clamp(0.6rem, 1.2vw, 1.2rem);
      border-left: 1px solid var(--border);
      display: flex;
      align-items: center;
      height: 100%;
    }

    /* ══════════════════════════════
      MOBILE BOTTOM NAV
    ══════════════════════════════ */
    .mobile-nav {
      display: flex;
      position: fixed;
      bottom: 0; left: 0; right: 0;
      z-index: 60;
      height: 64px;
      width: 100%;
      background: var(--white);
      border-top: 1px solid var(--border);
      box-shadow: 0 -4px 24px rgba(0,0,0,0.07);
    }

    .mobile-nav-inner {
      display: flex;
      height: 100%;
      width: 100%;
    }

    .mob-nav-item {
      flex: 1 1 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      text-decoration: none;
      color: var(--muted);
      transition: color 0.15s, background 0.15s;
    }
    .mob-nav-item:active { background: var(--off); }
    .mob-nav-item--cta {
      background: var(--sage);
      color: var(--ink);
    }
    .mob-nav-item--cta:active { background: var(--sage-dark); }

    .mob-nav-label {
      font-family: 'IBM Plex Mono', monospace;
      font-size: 0.5rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--sage-dark);
    }

    .nav-item--white {
      color: var(--white);
    }

    .mob-nav-item svg {
      width: 20px;
      height: 20px;
      stroke: var(--sage-dark);
    }

    .mob-nav-item:last-child svg {
      stroke: var(--white);
    }



    .mob-nav-container {
      position: relative;
      display: flex;
      flex-direction: row;
      justify-content: space-around;
      align-items: center;
      width: 100%;
      height: 100%; /* Guarantees items align vertically inside the 64px bar */
    }

    /* Crucial: keeps absolute children centered directly over this item block square */
    .mob-nav-item {
      position: relative;
      cursor: pointer;
    }

    /* The absolute drop-up wrapper frame dimensions configuration layout profiles */
    .mob-dropup-menu {
      display: none !important;      /* Enforces hidden by default completely */
      position: absolute;
      bottom: 100%;                  /* Mounts directly above the navigation bar line layout */
      left: 50%;
      transform: translateX(-50%);   /* Spans perfectly balanced centered across horizontal line axis */
      background-color: #ffffff;
      min-width: 190px;              /* Explicit size profile bounding box framework dimensions */
      box-shadow: 0px -4px 20px rgba(0, 0, 0, 0.12); /* Soft shadow pointing upward */
      border-radius: 8px;
      margin-bottom: 15px;           /* Gap height clearance elevation padding split over navbar icons */
      z-index: 999;                  /* Overrides layout overlay depth fields entirely */
      overflow: hidden;
      border: 1px solid #e2e8f0;     /* Matches a clean fine border canvas outline layout edge profile */
    }

    /* Toggled engine deployment logic status triggers */
    .mob-dropup-menu.active {
      display: flex !important;
      flex-direction: column;
    }

    /* Navigation lists internal links styles specs */
    .mob-dropup-menu a {
      color: #333333;
      padding: 14px 16px;
      text-decoration: none;
      text-align: center;
      font-size: 14px;
      border-bottom: 1px solid #f0f0f0;
      white-space: nowrap;           /* Stops labels from fragment wrapping rows unexpectedly */
    }

    .mob-dropup-menu a:last-child {
      border-bottom: none;
    }

    .mob-dropup-menu a:hover {
      background-color: #f8f9fa;
    }
    /* ══════════════════════════════
      ANIMATIONS
    ══════════════════════════════ */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeDown {
      from { opacity: 0; transform: translateY(-10px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ══════════════════════════════
      RESPONSIVE
    ══════════════════════════════ */
    /* Mid-range: hide subtitle text to give nav more room */
    @media (max-width: 900px) {
      .logo-sub-wrap { display: none; }
      /* .header-copy { display: none; } */
    }

    @media (max-width: 768px) {
      /* Hide desktop header nav, show mobile nav */
      .header-nav { display: none; }
      .mobile-nav { display: flex; }

      /* Push content above bottom nav */
      body { padding-bottom: 64px; }

      /* Logo shrink */
      .logo-name-wrap { padding: 0 1.1rem; }
      .logo-name { font-size: 0.85rem; }

      /* Hero — extra bottom padding so white panel clears the mobile nav */
      .hero { padding-bottom: calc(64px + 4vh); }
      .hero-wordmark { letter-spacing: -0.01em; }

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

      /* Contact — stack vertically */
      .contact-row { grid-template-columns: 1fr; }
      .contact-cta {
        justify-content: flex-start;
      }
    }

    @media (max-width: 480px) {
      .logo-sub-wrap { display: none; }
    }