
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --navy:        #0e2447;
      --navy-deep:   #07152b;
      --navy-mid:    #162f5a;
      --navy-light:  #1e3f7a;
      --signal:      #2563eb;
      --signal-light:#3b82f6;
      --ice:         #f0f4fb;
      --white:       #ffffff;
      --gray-100:    #f3f4f6;
      --gray-200:    #e5e7eb;
      --gray-300:    #d1d5db;
      --gray-400:    #9ca3af;
      --gray-500:    #6b7280;
      --gray-700:    #374151;
      --gray-900:    #111827;
      --green:       #059669;
      --amber:       #d97706;
      --font-body:   'Inter', -apple-system, sans-serif;
      --font-mono:   'JetBrains Mono', monospace;
    }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      color: var(--gray-900);
      background: var(--white);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }
    a { text-decoration: none; color: inherit; }
    img { display: block; max-width: 100%; }

    /* ===================== NAV ===================== */
    .nav {
      position: fixed; top: 0; left: 0; right: 0;
      z-index: 1000;
      height: 72px;
      padding: 0 2rem;
      display: flex; align-items: center; justify-content: space-between;
      background: var(--navy);
      box-shadow: 0 1px 0 rgba(255,255,255,0.07);
    }
    .nav-inner {
      width: 100%;
      max-width: 1280px;
      height: 100%;
      margin: 0 auto;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 1.5rem;
    }
    .nav-logo img { height: 38px; width: auto; }
    .nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 1.75rem; list-style: none; }
    .nav-links a {
      font-size: .875rem; font-weight: 500;
      color: rgba(255,255,255,.7);
      letter-spacing: 0; transition: color .2s;
    }
    .nav-links a:hover, .nav-links a.active { color: #fff; }
    .nav-links a.active { border-bottom: 2px solid var(--signal); padding-bottom: 2px; }
    .nav-cta {
      padding: .625rem 1.25rem;
      background: var(--signal); color: #fff;
      font-size: .875rem; font-weight: 600;
      transition: background .2s;
    }
    .nav-cta:hover { background: var(--signal-light); }
    .nav-hamburger {
      display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
    }
    .nav-hamburger span { display: block; width: 24px; height: 2px; background: white; transition: all .3s; }

    /* ===================== MOBILE MENU ===================== */
    .mobile-menu {
      display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
      background: var(--navy); z-index: 999;
      flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
    }
    .nav-hamburger.open span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
    .nav-hamburger.open span:nth-child(2) {
      opacity: 0;
    }
    .nav-hamburger.open span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu a { font-size: 1.5rem; font-weight: 700; color: #fff; }
    .mobile-menu-close {
      position: absolute; top: 1.5rem; right: 2rem;
      background: none; border: none; color: white; font-size: 2rem; cursor: pointer;
    }

    /* ===================== PAGE HERO ===================== */
    .page-hero {
      background:
        linear-gradient(90deg, rgba(14,36,71,.96) 0%, rgba(14,36,71,.86) 42%, rgba(14,36,71,.56) 100%),
        url('/assets/img/projects/projects-hero-generated.png') right center / cover no-repeat,
        var(--navy);
      padding: 7rem 2rem 5rem;
      position: relative; overflow: hidden;
    }
    .page-hero::before {
      content: '';
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
      background-size: 80px 80px;
    }
    .page-hero::after {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(180deg, rgba(7,21,43,.16), rgba(7,21,43,.34));
      pointer-events: none;
    }
    .page-hero-inner {
      max-width: 1280px; margin: 0 auto; position: relative; z-index: 1;
    }
    .page-hero-eyebrow {
      display: inline-flex; align-items: center; gap: .75rem;
      margin-bottom: 1.25rem;
    }
    .eyebrow-line { width: 32px; height: 2px; background: var(--signal); flex-shrink: 0; }
    .eyebrow-text {
      font-size: .72rem; font-weight: 700;
      letter-spacing: .12em; text-transform: uppercase; color: var(--signal-light);
    }
    .page-hero h1 {
      font-size: clamp(2rem, 4vw, 3.5rem);
      font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
      color: #fff; margin-bottom: 1.25rem; max-width: 18ch;
    }
    .page-hero-lead {
      font-size: 1.0625rem; line-height: 1.7;
      color: rgba(255,255,255,.55); max-width: 58ch; margin-bottom: 3rem;
    }
    .hero-stats-row {
      display: flex; gap: 3rem; flex-wrap: wrap;
      padding-top: 2.5rem;
      border-top: 1px solid rgba(255,255,255,.1);
    }
    .hero-stat-item { display: flex; flex-direction: column; gap: .3rem; }
    .hero-stat-num {
      font-family: var(--font-mono);
      font-size: clamp(1.5rem, 2.5vw, 2rem);
      font-weight: 600; color: #fff; line-height: 1;
    }
    .hero-stat-label {
      font-size: .72rem; font-weight: 600;
      letter-spacing: .08em; text-transform: uppercase;
      color: rgba(255,255,255,.35);
    }

    /* ===================== FILTER BAR ===================== */
    .filter-bar {
      background: var(--white);
      border-bottom: 1px solid var(--gray-200);
      padding: 0 2rem;
      position: sticky; top: 72px; z-index: 50;
    }
    .filter-bar-inner {
      max-width: 1280px; margin: 0 auto;
      display: flex; align-items: center; gap: 0;
      overflow-x: auto;
    }
    .filter-btn {
      padding: 1rem 1.25rem;
      font-size: .8125rem; font-weight: 600;
      letter-spacing: .04em; text-transform: uppercase;
      color: var(--gray-400); background: none; border: none;
      border-bottom: 2px solid transparent;
      cursor: pointer; white-space: nowrap;
      transition: color .2s, border-color .2s;
    }
    .filter-btn:hover { color: var(--gray-700); }
    .filter-btn.active { color: var(--navy); border-bottom-color: var(--signal); }

    /* ===================== MAIN CONTENT ===================== */
    .main { max-width: 1280px; margin: 0 auto; padding: 5rem 2rem; }

    /* ===================== SECTION HEADERS ===================== */
    .section-head {
      display: flex; align-items: flex-end; justify-content: space-between;
      gap: 1.5rem; margin-bottom: 2.5rem;
    }
    .section-eyebrow {
      display: inline-flex; align-items: center; gap: .75rem; margin-bottom: .75rem;
    }
    .section-title {
      font-size: clamp(1.5rem, 2.5vw, 2rem);
      font-weight: 800; line-height: 1.2;
      letter-spacing: -.025em; color: var(--gray-900);
    }
    .section-count {
      font-family: var(--font-mono); font-size: .8rem;
      font-weight: 500; color: var(--gray-400);
      white-space: nowrap; flex-shrink: 0;
      padding-bottom: .25rem;
    }

    /* ===================== PROJECT CARDS — FEATURED ===================== */
    /* Featured: big card spanning full width, image left, content right */
    .project-featured {
      display: grid; grid-template-columns: 1fr 1fr;
      background: var(--white);
      border: 1px solid var(--gray-200);
      margin-bottom: 1px;
      transition: box-shadow .25s;
    }
    .project-featured:hover { box-shadow: 0 12px 48px rgba(14,36,71,.1); z-index: 1; position: relative; }
    .project-featured-img {
      aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--gray-100);
    }
    .project-featured-img img {
      width: 100%; height: 100%; object-fit: cover;
      transition: transform .6s ease;
    }
    .project-featured:hover .project-featured-img img { transform: scale(1.04); }
    .project-featured-img-grid {
      display: grid; grid-template-rows: 1fr 1fr; height: 100%; gap: 1px; background: var(--gray-200);
    }
    .project-featured-img-grid img {
      width: 100%; height: 100%; object-fit: cover;
      transition: transform .6s ease;
    }
    .project-featured:hover .project-featured-img-grid img { transform: scale(1.04); }
    .project-featured-body {
      padding: 3rem;
      display: flex; flex-direction: column; justify-content: center;
    }
    .project-status {
      display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem;
    }
    .status-dot {
      width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
    }
    .status-dot--complete { background: var(--green); }
    .status-dot--progress { background: var(--amber); animation: pulse 2s ease-in-out infinite; }
    @keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.35; } }
    .status-text { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
    .status-text--complete { color: var(--green); }
    .status-text--progress { color: var(--amber); }
    .project-tag {
      display: inline-block;
      font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
      color: var(--signal); margin-bottom: .5rem;
    }
    .project-title {
      font-size: 1.375rem; font-weight: 800;
      line-height: 1.2; letter-spacing: -.02em;
      color: var(--gray-900); margin-bottom: .375rem;
    }
    .project-client {
      font-size: .8125rem; font-weight: 500;
      color: var(--gray-400); margin-bottom: 1.25rem; letter-spacing: .02em;
    }
    .project-desc {
      font-size: .9375rem; line-height: 1.7;
      color: var(--gray-500); margin-bottom: 2rem;
    }
    .project-meta-row {
      display: flex; gap: 1.75rem;
      padding-top: 1.5rem; border-top: 1px solid var(--gray-100);
    }
    .meta-item { display: flex; flex-direction: column; gap: .25rem; }
    .meta-num {
      font-family: var(--font-mono); font-size: 1.375rem;
      font-weight: 600; color: var(--navy); line-height: 1;
    }
    .meta-label {
      font-size: .72rem; font-weight: 600;
      text-transform: uppercase; letter-spacing: .07em; color: var(--gray-400);
    }
    .location-tag {
      display: inline-flex; align-items: center; gap: .4rem;
      font-size: .72rem; font-weight: 700;
      letter-spacing: .07em; text-transform: uppercase;
      color: var(--gray-400); margin-bottom: 1.25rem;
    }
    .location-tag svg { width: 12px; height: 12px; flex-shrink: 0; }

    /* ===================== PROJECT CARDS — GRID ===================== */
    .projects-grid {
      display: grid; grid-template-columns: repeat(2, 1fr);
      gap: 1px; background: var(--gray-200);
    }
    .project-card {
      background: var(--white); display: flex; flex-direction: column;
      transition: box-shadow .25s;
    }
    .project-card:hover { box-shadow: 0 8px 32px rgba(14,36,71,.09); z-index:1; position:relative; }
    .project-card-img {
      aspect-ratio: 3/2; overflow: hidden; background: var(--gray-100);
    }
    .project-card-img img {
      width: 100%; height: 100%; object-fit: cover;
      transition: transform .6s ease;
    }
    .project-card:hover .project-card-img img { transform: scale(1.04); }
    .project-card-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
    .project-card .project-meta-row { margin-top: auto; }
    .project-card-wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
    .project-card-wide .project-card-img { flex: 0 0 45%; aspect-ratio: auto; min-height: 320px; }
    .project-card-wide .project-card-img img { height: 100%; }
    .project-card-wide .project-card-body { padding: 2.5rem 3rem; }

    /* ===================== DIVIDER SECTION ===================== */
    .section-divider {
      height: 1px; background: var(--gray-200);
      margin: 5rem 0;
    }

    /* ===================== MANAGEMENT TRACK (Türkiye) ===================== */
    .track-section { margin-top: 5rem; }
    .track-header {
      padding: 3rem;
      background: var(--navy);
      margin-bottom: 1px;
    }
    .track-header h2 {
      font-size: clamp(1.5rem, 2.5vw, 2rem);
      font-weight: 800; line-height: 1.2;
      letter-spacing: -.025em; color: #fff; margin-bottom: .75rem;
    }
    .track-header p {
      font-size: 1rem; line-height: 1.7;
      color: rgba(255,255,255,.5); max-width: 60ch;
    }
    .track-grid {
      display: grid; grid-template-columns: repeat(2, 1fr);
      gap: 1px; background: var(--gray-200);
    }
    .track-card {
      background: var(--white); display: flex; flex-direction: column;
      transition: box-shadow .25s;
    }
    .track-card-wide { grid-column: 1 / -1; }
    .track-card:hover { box-shadow: 0 8px 32px rgba(14,36,71,.09); z-index:1; position:relative; }
    .track-card-img {
      aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100);
    }
    .track-card-img img {
      width:100%; height:100%; object-fit:cover;
      transition: transform .6s ease;
    }
    .track-card:hover .track-card-img img { transform: scale(1.04); }
    .track-card-body { padding: 1.75rem; }
    .track-card-title {
      font-size: 1rem; font-weight: 700; color: var(--gray-900);
      margin-bottom: .375rem; line-height: 1.3;
    }
    .track-card-client {
      font-size: .75rem; font-weight: 500;
      color: var(--signal); letter-spacing: .04em;
      text-transform: uppercase; margin-bottom: .75rem;
    }
    .track-card-desc {
      font-size: .875rem; line-height: 1.65; color: var(--gray-500);
    }
    .track-stat-row {
      display: flex; gap: 1.5rem; margin-top: 1.25rem;
      padding-top: 1.25rem; border-top: 1px solid var(--gray-100);
    }
    .track-stat { display: flex; flex-direction: column; gap: .2rem; }
    .track-stat-num {
      font-family: var(--font-mono); font-size: 1.125rem;
      font-weight: 600; color: var(--navy); line-height: 1;
    }
    .track-stat-label {
      font-size: .68rem; font-weight: 600;
      text-transform: uppercase; letter-spacing: .07em; color: var(--gray-400);
    }

    /* ===================== NDA STRIP ===================== */
    .nda-strip {
      background: var(--ice);
      border-top: 1px solid var(--gray-200);
      border-bottom: 1px solid var(--gray-200);
      padding: 3rem 2rem; margin-top: 5rem;
    }
    .nda-strip-inner {
      max-width: 1280px; margin: 0 auto;
      display: flex; align-items: center; justify-content: space-between;
      gap: 3rem; flex-wrap: wrap;
    }
    .nda-text h3 {
      font-size: 1.125rem; font-weight: 700;
      color: var(--gray-900); margin-bottom: .5rem;
    }
    .nda-text p {
      font-size: .9375rem; line-height: 1.65; color: var(--gray-500); max-width: 52ch;
    }
    .nda-actions { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }
    .btn-primary {
      display: inline-flex; align-items: center; gap: .5rem;
      padding: .875rem 1.75rem;
      background: var(--signal); color: #fff;
      font-size: .9rem; font-weight: 600;
      border: none; cursor: pointer; transition: background .2s;
    }
    .btn-primary:hover { background: var(--signal-light); }
    .btn-outline-navy {
      display: inline-flex; align-items: center; gap: .5rem;
      padding: .875rem 1.75rem;
      border: 1.5px solid var(--navy); color: var(--navy);
      font-size: .9rem; font-weight: 600;
      transition: background .2s, color .2s;
    }
    .btn-outline-navy:hover { background: var(--navy); color: #fff; }

    /* ===================== FOOTER ===================== */
    .footer {
      background: var(--navy-deep);
      border-top: 1px solid rgba(255,255,255,.06);
      padding: 2rem;
    }
    .footer-inner {
      max-width: 1280px; margin: 0 auto;
      display: flex; align-items: center; justify-content: space-between;
      gap: 1.5rem; flex-wrap: wrap;
    }
    .footer-logo img { height: 28px; opacity: .6; }
    .footer-copy { font-size: .78rem; color: rgba(255,255,255,.3); }
    .footer-links { display: flex; gap: 1.5rem; }
    .footer-links a {
      font-size: .78rem; color: rgba(255,255,255,.3); transition: color .2s;
    }
    .footer-links a:hover { color: rgba(255,255,255,.6); }

    /* ===================== REVEAL ANIMATIONS ===================== */
    .reveal {
      opacity: 0; transform: translateY(20px);
      transition: opacity .55s ease, transform .55s ease;
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }
    .reveal-delay-1 { transition-delay: .1s; }
    .reveal-delay-2 { transition-delay: .2s; }
    .reveal-delay-3 { transition-delay: .3s; }

    /* ===================== RESPONSIVE ===================== */
    @media (max-width: 1024px) {
      .project-featured { grid-template-columns: 1fr; }
      .project-featured-img { aspect-ratio: 16/9; }
    }
    @media (max-width: 768px) {
      .nav-links, .nav-cta { display: none; }
      .nav-inner { grid-template-columns: auto auto; justify-content: space-between; }
      .nav-hamburger { display: flex; }
      .projects-grid, .track-grid { grid-template-columns: 1fr; }
      .section-head { flex-direction: column; align-items: flex-start; }
      .nda-strip-inner { flex-direction: column; }
      .hero-stats-row { gap: 1.5rem; }
      .project-featured { display: flex; flex-direction: column; }
      .project-featured-img { order: 1; width: 100%; aspect-ratio: 16 / 10; }
      .project-featured-img-grid { min-height: 220px; }
      .project-featured-body { order: 2; padding: 1.5rem; }
      .project-featured .project-meta-row { margin-top: 1.5rem; }
      .main { padding: 3.5rem 1.5rem; }
      .page-hero { padding: 6.5rem 1.5rem 3.5rem; }
    }
    @media (max-width: 480px) {
      .project-meta-row { gap: 1.5rem; }
      .hero-stats-row { flex-wrap: wrap; gap: 1.5rem; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; }
      .reveal { opacity:1; transform:none; }
    }
  

/* CodeIgniter integration */
.nav-logo img, .footer-logo img { content: none; }
.nav-logo img { height: 38px; width: auto; }
.footer-logo img { height: 30px; width: auto; }
body { letter-spacing: 0; }

.project-filter-hidden { display: none !important; }
.filter-empty { margin: 2rem 0 0; padding: 2rem; border: 1px solid var(--gray-200); color: var(--gray-500); background: var(--white); font-weight: 600; }

html:not(.js-ready) .reveal { opacity: 1; transform: none; }

.project-featured.reveal, .project-card.reveal { opacity: 1; transform: none; }


@media (max-width: 768px) { .page-hero { background-position: center; } }

@media (max-width: 560px) {
  .project-featured-img-grid { min-height: 180px; }
  .project-featured-img { aspect-ratio: 4 / 3; }
}

/* Mobile project card polish */
@media (max-width: 768px) {
  .main { width: 100%; max-width: 100%; overflow: hidden; }
  .project-featured,
  .project-card,
  .project-card-wide,
  .track-card,
  .track-card-wide {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-column: auto;
  }
  .project-featured-img,
  .project-card-img,
  .project-card-wide .project-card-img,
  .track-card-img {
    order: 1;
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .project-featured-img-grid {
    min-height: 0;
    height: 100%;
  }
  .project-featured-img img,
  .project-featured-img-grid img,
  .project-card-img img,
  .project-card-wide .project-card-img img,
  .track-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .project-featured-body,
  .project-card-body,
  .project-card-wide .project-card-body,
  .track-card-body {
    order: 2;
    width: 100%;
    min-width: 0;
    padding: 1.5rem;
  }
  .project-title, .track-card-title {
    overflow-wrap: anywhere;
  }
  .project-desc, .track-card-desc {
    overflow-wrap: anywhere;
  }
  .project-meta-row, .track-stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
  .meta-item, .track-stat {
    min-width: 0;
  }
  .meta-num, .track-stat-num {
    font-size: 1.18rem;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 430px) {
  .main { padding-left: 1rem; padding-right: 1rem; }
  .project-featured-body,
  .project-card-body,
  .project-card-wide .project-card-body,
  .track-card-body { padding: 1.25rem; }
  .project-meta-row, .track-stat-row { grid-template-columns: 1fr 1fr; gap: .9rem; }
}
@media (max-width: 360px) {
  .project-meta-row, .track-stat-row { grid-template-columns: 1fr; }
}

/* Mobile overflow guard */
@media (max-width: 768px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .page-hero, .filter-bar, .main, .nda-strip, .footer { max-width: 100vw; overflow-x: hidden; }
  img, svg { max-width: 100%; }
}

/* Mobile text fit guard */
@media (max-width: 768px) {
  .page-hero-inner,
  .filter-bar-inner,
  .main,
  .section-head,
  .project-featured,
  .project-card,
  .track-card,
  .nda-strip-inner,
  .footer-inner {
    min-width: 0;
  }
  .page-hero h1,
  .section-title,
  .project-title,
  .track-card-title,
  .nda-text h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }
  .page-hero-lead,
  .project-client,
  .project-desc,
  .track-card-client,
  .track-card-desc,
  .location-tag,
  .status-text,
  .project-tag,
  .meta-label,
  .meta-num,
  .track-stat-num,
  .track-stat-label,
  .nda-text p,
  .footer-copy,
  .footer-links a {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }
  .location-tag, .project-status {
    align-items: flex-start;
    white-space: normal;
  }
  .location-tag svg, .status-dot {
    flex: 0 0 auto;
  }
  .filter-bar-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: hidden;
  }
  .filter-btn {
    width: 100%;
    min-width: 0;
    padding: .9rem .45rem;
    font-size: .72rem;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }
  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .hero-stat-item { min-width: 0; }
  .hero-stat-num, .hero-stat-label { overflow-wrap: anywhere; }
  .nda-actions { width: 100%; }
  .nda-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    flex-wrap: wrap;
  }
}
@media (max-width: 380px) {
  .hero-stats-row, .project-meta-row, .track-stat-row { grid-template-columns: 1fr; }
  .filter-btn { font-size: .68rem; padding-left: .3rem; padding-right: .3rem; }
}

/* Mobile clipping fix */
@media (max-width: 560px) {
  .project-meta-row,
  .track-stat-row,
  .hero-stats-row {
    grid-template-columns: 1fr !important;
    gap: 1.15rem !important;
  }
  .project-meta-row {
    width: 100%;
  }
  .meta-item,
  .track-stat,
  .hero-stat-item {
    width: 100%;
    min-width: 0;
  }
  .track-header {
    padding: 2rem 1.25rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .track-header h2 {
    font-size: 1.65rem;
    line-height: 1.18;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .track-header p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .section-eyebrow,
  .page-hero-eyebrow {
    max-width: 100%;
    min-width: 0;
  }
  .eyebrow-text {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
}
@media (max-width: 430px) {
  .project-title { font-size: 1.18rem; }
  .track-header h2 { font-size: 1.45rem; }
  .section-title { font-size: 1.45rem; }
  .meta-num { font-size: 1.08rem; }
}

/* Final mobile no-horizontal-scroll rules */
@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  body * {
    box-sizing: border-box;
  }
  .nav,
  .mobile-menu,
  .page-hero,
  .filter-bar,
  .main,
  .project-featured,
  .projects-grid,
  .project-card,
  .project-card-wide,
  .track-section,
  .track-header,
  .track-grid,
  .track-card,
  .track-card-wide,
  .nda-strip,
  .footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }
  .nav, .filter-bar, .page-hero, .main, .nda-strip, .footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .main {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  .project-featured,
  .project-card,
  .project-card-wide,
  .track-card,
  .track-card-wide {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    grid-column: auto !important;
  }
  .project-featured-img,
  .project-card-img,
  .project-card-wide .project-card-img,
  .track-card-img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .project-featured-img img,
  .project-featured-img-grid img,
  .project-card-img img,
  .track-card-img img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .project-featured-body,
  .project-card-body,
  .project-card-wide .project-card-body,
  .track-card-body,
  .track-header {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .project-meta-row,
  .track-stat-row,
  .hero-stats-row {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .meta-item,
  .track-stat,
  .hero-stat-item {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 1rem !important;
  }
  .section-head {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .section-count {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  .section-eyebrow,
  .page-hero-eyebrow {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .eyebrow-line {
    width: 44px !important;
    max-width: 44px !important;
  }
  .eyebrow-text,
  .status-text,
  .location-tag,
  .project-tag,
  .project-client,
  .project-desc,
  .track-card-client,
  .track-card-desc,
  .meta-num,
  .meta-label,
  .track-stat-num,
  .track-stat-label,
  .footer-copy,
  .footer-links a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .location-tag {
    display: grid !important;
    grid-template-columns: 14px minmax(0, 1fr) !important;
  }
  .project-status {
    max-width: 100% !important;
    align-items: flex-start !important;
  }
  .project-title,
  .section-title,
  .track-header h2,
  .track-card-title,
  .page-hero h1 {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .track-header h2 {
    font-size: 1.35rem !important;
    line-height: 1.2 !important;
  }
  .filter-bar-inner {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow: hidden !important;
  }
  .filter-btn {
    min-width: 0 !important;
    width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  .project-featured-body > *,
  .project-card-body > *,
  .track-card-body > *,
  .track-header > * {
    max-width: 100% !important;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: var(--signal);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(14, 36, 71, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s, background-color 0.2s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background-color: var(--signal-light);
  transform: translateY(-2px);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
  }
}
