/* Thruway Builders - front-end styles. Original design CSS + block adaptations (bottom). */
:root{
  /* DARK theme — default. Modern near-black surfaces, hairline borders, Thruway blue. */
  --ink: #0B0D12;                    /* page background (opaque backstop) */
  --ink-2: rgba(15,19,27,0.80);      /* alternating section — translucent so the blueprint shows */
  --ink-3: rgba(22,27,38,0.86);      /* card / input surface */
  --ink-4: #1F2532;                  /* subtle fill (icon chips) */
  --line: rgba(255,255,255,0.10);
  --line-soft: rgba(255,255,255,0.06);
  --text: #EEF0F4;                   /* primary text */
  --muted: #9AA3B2;                  /* secondary text */
  --accent: #4C74FF;                 /* blue — primary / interactive / commercial */
  --accent-soft: rgba(76,116,255,0.15);
  --gold: #CE9A55;                   /* warm bronze — residential / craftsmanship / credentials */
  --gold-soft: rgba(206,154,85,0.15);
  --white: #FFFFFF;

  --surface-nav: rgba(11,13,18,0.80); /* sticky nav / mobile dropdown */

  --display: 'Poppins', 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 30px 60px -28px rgba(0,0,0,0.65);
  --shadow-sm: 0 16px 34px -18px rgba(0,0,0,0.5);
}


*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family: var(--body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

#scrollProgress{
  position: fixed; top:0; left:0; height: 3px; width: 100%;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
  z-index: 300; pointer-events:none;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
a{ color:inherit; }
img{ max-width:100%; display:block; }
.wrap{ max-width: 1600px; margin: 0 auto; padding: 0 48px; }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow{
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  display:flex; align-items:center; gap: 10px;
}
.eyebrow::before{ content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display:inline-block; }
.eyebrow.gold::before{ background: var(--gold); }




/* ---------- header ---------- */
header{ position: sticky; top:0; z-index: 100; background: rgba(10,12,17,0.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav{
  display:flex; align-items:center; justify-content:space-between;
  max-width: 1600px; margin: 0 auto;
  padding: 18px 48px;
  position: relative;
}
.nav-logo{ flex: none; visibility:hidden; pointer-events:none; }
.nav-logo img{ height: 48px; width:auto; max-width:none; display:block; }
.nav-links{ display:flex; align-items:center; gap: 30px; list-style:none; }
.nav-links-logo{ display:flex; align-items:center; }
.nav-links-logo img{ height: 46px; width:auto; max-width:none; display:block; }
.nav-links a{ font-weight:600; font-size: 14.5px; color: var(--text); text-decoration:none; }
.nav-links a:hover{ color: var(--accent); }
.nav-cta{
  background: var(--accent); color: var(--white);
  font-weight:600; font-size: 14px; text-decoration:none;
  padding: 11px 22px; border-radius: 100px; white-space:nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-cta:hover{ background: #6E86FF; }
.nav-cta:active{ transform: scale(0.96); }
.nav-right{ display:flex; align-items:center; gap: 16px; }
.staff-login-link{ font-size: 12.5px; color: var(--muted); text-decoration:none; white-space:nowrap; }
.staff-login-link:hover{ color: var(--text); }
.nav-toggle{
  display:none; background:none; border:1px solid var(--line); border-radius:8px;
  width:40px; height:38px; padding:0; cursor:pointer;
  align-items:center; justify-content:center; flex-direction:column; gap:4px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-toggle:hover{ background: rgba(255,255,255,0.06); }
.nav-toggle:active{ transform: scale(0.92); }
.nav-toggle span{ display:block; width:18px; height:2px; background:var(--text); border-radius:2px; transition:transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }
.nav-links .m-only{ display:none; }
@media (max-width: 840px){
  .nav-toggle{ display:inline-flex; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0;
    background:var(--ink); backdrop-filter:blur(16px);
    border-bottom:1px solid var(--line);
    max-height:0; overflow:hidden; padding:0;
    transition:max-height .3s ease;
  }
  .nav-links.open{ max-height:75vh; }
  .nav-links li{ width:100%; border-top:1px solid var(--line-soft); }
  .nav-links li:first-child{ border-top:none; }
  .nav-links .m-only{ display:block; }
  .nav-links a{ display:block; padding:15px 24px; font-size:15px; }
  .nav-links a:hover{ background:var(--ink-3); color:var(--text); }
  .nav-right .nav-cta{ padding:9px 15px; font-size:12.5px; }
  .nav-right .staff-login-link{ display:none; }
}

/* ---------- hero ---------- */
.hero{ padding: 0; }
.hero-shell{
  position:relative; width:100%;
  overflow:hidden;
  min-height: 94vh;
  display:flex; align-items:flex-end;
}

@keyframes kenburns{ from{ transform: scale(1.02); } to{ transform: scale(1.12); } }
.hero-shell::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(10,12,17,0.25) 0%, rgba(10,12,17,0.55) 45%, rgba(10,12,17,0.97) 100%);
}
.hero-content{
  position:relative; z-index:2; color: var(--white);
  padding: 60px 48px 72px; width: 100%; max-width: 1600px; margin: 0 auto;
  box-sizing: border-box;
}
/* ---------- service ticker (carousel, relocated out of the hero photo) ---------- */
.service-ticker{ background: var(--ink); border-bottom: 1px solid var(--line); padding: 16px 0; }
.service-ticker-inner{ position:relative; height: 20px; max-width: 1600px; margin: 0 auto; padding: 0 48px; }
.service-ticker-item{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:10px;
  font-family: var(--display); font-weight:600; font-size:13px; letter-spacing:0.08em; text-transform:uppercase;
  color: var(--text); opacity:0; transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease; pointer-events:none;
}
.service-ticker-item.active{ opacity:1; transform:translateY(0); pointer-events:auto; }
.service-ticker-item::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--gold); flex:none; }
.service-ticker-dots{ display:flex; justify-content:center; margin-top:10px; }
.service-ticker-dot{
  position:relative; width:24px; height:24px; margin:0; padding:0; background:none; border:none;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.service-ticker-dot::before{
  content:""; width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,0.22);
  transition:background 0.2s ease, transform 0.2s ease;
}
.service-ticker-dot.active::before{ background:var(--accent); transform:scale(1.35); }
.service-ticker-dot:active::before{ transform:scale(0.85); }
@media (max-width:600px){ .service-ticker-item{ font-size:11px; letter-spacing:0.06em; gap:8px; } }
.hero-content h1{
  font-family: var(--display); font-weight:700;
  font-size: clamp(42px, 7.2vw, 92px);
  line-height: 0.94; letter-spacing: -0.035em;
  max-width: 900px; margin: 18px 0 20px;
}
.hero-content h1 span{ font-weight:500; color: #8891A5; }
.hero-content p{ font-size: 17px; color: #C7CBD6; max-width: 500px; margin-bottom: 30px; }
.hero-actions{ display:flex; gap: 12px; flex-wrap:wrap; align-items:center; }

/* ---------- brand divider (between Our Work and Gallery) ---------- */
.brand-divider{ padding: 56px 0; text-align:center; background: var(--ink-2); border-bottom: 1px solid var(--line); }
.brand-divider img{ height: 120px; width:auto; margin: 0 auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,0.45)); }
@media (max-width: 640px){ .brand-divider{ padding: 40px 0; } .brand-divider img{ height: 72px; } }
.btn{
  font-family: var(--body); font-weight:600; font-size: 14.5px;
  text-decoration:none; padding: 16px 28px; border-radius: 100px;
  display:inline-flex; align-items:center; gap:8px; cursor:pointer; border: 1px solid transparent;
}
.btn-primary{ background: var(--accent); color: var(--white); transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn-primary:hover{ background: #6E86FF; transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(62,99,255,0.55); }
.btn-primary:active{ transform: translateY(0) scale(0.97); box-shadow: 0 6px 16px -8px rgba(62,99,255,0.55); }
.btn-ghost{ border-color: rgba(255,255,255,0.3); color: var(--white); background: rgba(255,255,255,0.06); backdrop-filter: blur(6px); transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.btn-ghost:hover{ border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-ghost:active{ transform: translateY(0) scale(0.97); background: rgba(255,255,255,0.16); }
.btn .arrow{ transition: transform 0.2s ease; }
.btn:hover .arrow{ transform: translateX(3px); }

/* ---------- trust strip ---------- */
.trust{ background: var(--ink-2); border-bottom: 1px solid var(--line); overflow:hidden; padding: 20px 0; }
.trust-inner{
  display:flex; align-items:center;
  -webkit-mask-image: linear-gradient(to right, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, #000 94%, transparent 100%);
}
.trust-label-fixed{
  font-family: var(--display); font-weight:600; font-size:12.5px; letter-spacing:0.06em;
  text-transform:uppercase; color: var(--white); white-space:nowrap;
  padding: 0 24px 0 48px; border-right: 1px solid var(--line); flex-shrink:0;
}
/* seamless infinite marquee: two identical groups, each carrying a trailing
   gap, translated by exactly one group width (-50% of the track) */
.marquee-track{
  display:flex; width:max-content; white-space:nowrap; margin-left:24px;
  animation: marquee 32s linear infinite;
}
.marquee-group{ display:flex; gap:14px; padding-right:14px; flex-shrink:0; }
.trust:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.trust-chip{ font-size: 13.5px; color: var(--muted); background: var(--ink-3); border: 1px solid var(--line); padding: 7px 14px; border-radius: 100px; flex-shrink:0; }

/* ---------- section shells ---------- */
section{ padding: 108px 0; }
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head h2{
  font-family: var(--display); font-weight:700; letter-spacing: -0.015em;
  font-size: clamp(30px, 3.6vw, 46px); margin-top: 14px; line-height: 1.08; color: var(--white);
}
.section-head p{ margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 520px; }

/* ---------- services: sliding panel cards ---------- */
.services-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card{
  position:relative; overflow:hidden;
  background: linear-gradient(155deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 26px; min-height: 220px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display:flex; flex-direction:column; justify-content:space-between;
}
.service-card.featured{
  grid-column: span 2; padding: 40px 34px; min-height: 260px;
  background: linear-gradient(155deg, var(--ink-4), var(--ink-3));
}
.service-card.featured h3{ font-size: 24px; }
.service-card.featured p{ font-size: 15px; max-width: 420px; }
.featured-tag{
  font-family: var(--display); font-weight:600; font-size: 11.5px; letter-spacing:0.06em;
  text-transform:uppercase; color: var(--accent); margin-bottom: 4px; display:block;
}
.service-card::before{
  content:""; position:absolute; inset:0; opacity:0;
  background: radial-gradient(120px 120px at 85% 15%, var(--accent-soft), transparent 70%);
  transition: opacity 0.35s ease;
}
.service-card:hover{ transform: translateY(-6px); border-color: rgba(62,99,255,0.4); }
.service-card:hover::before{ opacity:1; }
.service-top{ display:flex; align-items:flex-start; justify-content:space-between; }
.service-icon{
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--ink-4); display:flex; align-items:center; justify-content:center;
  position:relative; z-index:1;
}
.service-icon svg{ width: 21px; height: 21px; stroke: #9DB0FF; }
.service-arrow{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transform: translateX(-6px); transition: all 0.3s ease; position:relative; z-index:1;
}
.service-card:hover .service-arrow{ opacity:1; transform: translateX(0); background: var(--accent); border-color: var(--accent); }
.service-arrow svg{ width:15px; height:15px; stroke: var(--white); }
.service-card h3{ font-family: var(--display); font-weight:600; font-size: 20px; margin: 20px 0 6px; color: var(--white); position:relative; z-index:1; }
.service-card p{ font-size: 14.5px; color: var(--muted); position:relative; z-index:1; }
@media (max-width: 860px){
  .services-grid{ grid-template-columns: 1fr 1fr; }
  .service-card.featured{ grid-column: span 2; }
}
@media (max-width: 560px){
  .services-grid{ grid-template-columns: 1fr; }
  .service-card.featured{ grid-column: span 1; padding: 32px 26px; min-height: 220px; }
  .service-card.featured h3{ font-size: 20px; }
}

/* ---------- commitments-style interactive tabs ---------- */
.commit{ background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.commit-wrap{ display:grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items:center; }
.commit-list{ display:flex; flex-direction:column; }
.commit-item{
  padding: 22px 0; border-top: 1px solid var(--line); cursor:pointer;
  display:flex; gap: 20px; align-items:flex-start;
}
.commit-item:last-child{ border-bottom: 1px solid var(--line); }
.commit-num{ font-family: var(--display); font-weight:600; font-size: 14px; color: var(--muted); padding-top:3px; }
.commit-body h4{
  font-family: var(--display); font-weight:600; font-size: 20px; color: var(--muted);
  transition: color 0.25s ease; margin-bottom: 6px;
}
.commit-body p{
  font-size: 14.5px; color: var(--muted); max-height:0; overflow:hidden; opacity:0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}
.commit-item.active .commit-body h4{ color: var(--white); }
.commit-item.active .commit-num{ color: var(--accent); }
.commit-item.active .commit-body p{ max-height: 80px; opacity:1; margin-top: 4px; }
.commit-visual{ position:relative; border-radius: var(--r-lg); overflow:hidden; aspect-ratio: 4/3.2; box-shadow: var(--shadow); }
.commit-img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition: opacity 0.6s ease, object-position 0.6s ease;
}
.commit-img.active{ opacity:1; }
.commit-tint{ position:absolute; inset:0; mix-blend-mode: multiply; transition: background 0.6s ease; }
.commit-tint2{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,12,17,0) 40%, rgba(10,12,17,0.75) 100%); }
@media (max-width: 860px){ .commit-wrap{ grid-template-columns: 1fr; } .commit-visual{ order:-1; } }

/* ---------- about ---------- */
.about-wrap{ display:grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items:center; }
.about-photo{ position:relative; }
.about-photo img{ width:100%; border-radius: var(--r-lg); box-shadow: var(--shadow); filter: saturate(0.92); }
.about-photo .badge{
  position:absolute; bottom: -20px; left: -20px;
  background: var(--ink-3); border: 1px solid var(--line); color: var(--text);
  padding: 18px 22px; border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.about-photo .badge b{ font-family: var(--display); font-size: 30px; display:block; line-height:1; color: var(--gold); }
.about-photo .badge span{ font-size: 11px; letter-spacing: 0.06em; text-transform:uppercase; color: var(--muted); }
.about-photo .inset{
  position:absolute; top: -20px; right: -20px;
  width: 42%; aspect-ratio: 4/3;
  border-radius: var(--r-md); overflow:hidden;
  border: 3px solid var(--ink); box-shadow: var(--shadow-sm);
}
.about-photo .inset img{ width:100%; height:100%; object-fit:cover; border:none; }
.about-photo .inset span{
  position:absolute; bottom:0; left:0; right:0;
  background: rgba(10,12,17,0.72); color:#fff;
  font-size: 10.5px; font-weight:600; letter-spacing:0.05em; text-transform:uppercase;
  padding: 5px 8px;
}
.about-copy p{ color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.about-copy h2{ color: var(--white); }
.about-list{ list-style:none; margin-top: 24px; display:grid; gap: 12px; }
.about-list li{ display:flex; gap: 12px; font-size: 14.5px; color: var(--text); align-items:flex-start; }
.about-list li svg{ width:18px; height:18px; stroke: var(--accent); flex-shrink:0; margin-top:2px; }
@media (max-width: 860px){ .about-wrap{ grid-template-columns: 1fr; } .about-photo{ margin-bottom: 48px; } }

/* ---------- founder ---------- */
.founder-wrap{ display:grid; grid-template-columns: 320px 1fr; gap: 56px; align-items:start; }
.founder-photo{ position:relative; }
.founder-photo img{ width:100%; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.founder-photo .badge{
  position:absolute; bottom: -20px; left: -20px;
  background: var(--ink-3); border: 1px solid var(--line); color: var(--text);
  padding: 16px 20px; border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.founder-photo .badge b{ font-family: var(--display); font-size: 20px; display:block; line-height:1.25; color: var(--gold); white-space:nowrap; }
.founder-photo .badge span{ font-size: 10.5px; letter-spacing: 0.06em; text-transform:uppercase; color: var(--muted); }
.founder-copy p{ color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.founder-name{ font-family:var(--display); font-weight:700; font-size:clamp(24px,2.6vw,30px); color:var(--white); margin-top:22px; letter-spacing:-0.01em; }
.founder-role{ font-size:13.5px; color:var(--gold); letter-spacing:0.02em; margin-bottom:20px; }
.awards-list{ list-style:none; margin-top:26px; display:grid; grid-template-columns:1fr 1fr; gap:10px 24px; }
.awards-list li{ display:flex; gap:10px; align-items:baseline; font-size:13.5px; color:var(--text); border-top:1px solid var(--line-soft); padding-top:10px; }
.awards-list li b{ font-family:var(--display); font-weight:600; color:var(--gold); flex:none; font-variant-numeric:tabular-nums; }
@media (max-width:860px){ .founder-wrap{ grid-template-columns:1fr; } .founder-photo{ max-width:260px; margin: 0 auto 52px; } }
@media (max-width:560px){ .awards-list{ grid-template-columns:1fr; } }

/* ---------- gallery ---------- */
.gallery-case{ margin-top:56px; }
.gallery-case:first-child{ margin-top:0; }
.gallery-case-head{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 24px; margin-bottom:20px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.gallery-case-head h3{ font-family:var(--display); font-weight:600; font-size:19px; color:var(--white); }
.gallery-case-head span{ font-size:12.5px; color:var(--muted); letter-spacing:0.02em; }
.gallery-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.gallery-item{ position:relative; border-radius:var(--r-md); overflow:hidden; cursor:pointer; border:1px solid var(--line); background:var(--ink-3); aspect-ratio:4/3; transition: transform 0.15s ease; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.gallery-item:hover img{ transform:scale(1.06); }
.gallery-item:active{ transform: scale(0.98); }
.gallery-item .gi-tag{ position:absolute; top:8px; left:8px; font-family:var(--display); font-weight:600; font-size:9.5px; letter-spacing:0.08em; text-transform:uppercase; padding:4px 9px; border-radius:100px; background:rgba(10,12,17,0.72); color:#fff; }
.gallery-item .gi-tag.after{ background: var(--accent); }
@media (max-width:900px){ .gallery-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:620px){ .gallery-grid{ grid-template-columns:repeat(2,1fr); } }

/* lightbox */
.lightbox{ position:fixed; inset:0; z-index:400; display:none; align-items:center; justify-content:center; background:rgba(6,7,10,0.92); padding:40px; }
.lightbox.open{ display:flex; }
.lightbox figure{ margin:0; max-width:min(1100px,92vw); max-height:88vh; display:flex; flex-direction:column; gap:10px; }
.lightbox img{ max-width:100%; max-height:76vh; width:auto; margin:0 auto; border-radius:var(--r-md); box-shadow:var(--shadow); }
.lightbox figcaption{ color:var(--muted); font-size:13px; text-align:center; }
.lightbox-close, .lightbox-nav{ position:absolute; background:rgba(255,255,255,0.08); border:1px solid var(--line); color:#fff; border-radius:100px; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; }
.lightbox-close{ top:20px; right:20px; width:40px; height:40px; }
.lightbox-nav{ top:50%; transform:translateY(-50%); width:46px; height:46px; }
.lightbox-nav.prev{ left:16px; }
.lightbox-nav.next{ right:16px; }
.lightbox-close:hover, .lightbox-nav:hover{ background:rgba(255,255,255,0.16); }
.lightbox-close, .lightbox-nav{ transition: background 0.2s ease, transform 0.15s ease; }
.lightbox-close:active{ transform: scale(0.92); }
.lightbox-nav:active{ transform: translateY(-50%) scale(0.92); }
@media (max-width:640px){ .lightbox{ padding:16px; } .lightbox-nav{ width:38px; height:38px; } }

/* ---------- project highlights — editorial index ---------- */
.work-grid{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.work-card{
  position:relative; background: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px 24px 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.work-card:hover{ border-color: rgba(255,255,255,0.18); transform: translateY(-3px); }
.work-tag{
  display:inline-block; font-size: 11px; font-weight:600; letter-spacing:0.06em;
  text-transform:uppercase; padding: 4px 11px; border-radius: 100px; margin-bottom: 14px;
}
.work-tag.private{ background: var(--accent-soft); color: #9DB0FF; }
.work-tag.hpd{ background: var(--gold-soft); color: var(--gold); }
.work-card h3{ font-family: var(--display); font-weight:600; font-size: 19px; margin-bottom: 6px; color: var(--white); }
.work-card p{ font-size: 13.5px; color: var(--muted); line-height:1.55; }

/* featured project — spans the row, oversized index numeral */
.work-card--featured{
  grid-column: 1 / -1;
  display:grid; grid-template-columns: minmax(0,0.8fr) minmax(0,2fr);
  gap: 36px; align-items:center; padding: 40px 34px;
}
.work-card--featured .wc-index{
  font-family:var(--display); font-weight:700;
  font-size:clamp(60px,9vw,116px); line-height:0.85; letter-spacing:-0.04em;
  color:var(--line); font-variant-numeric:tabular-nums;
}
.work-card--featured h3{ font-size: clamp(23px,3vw,31px); letter-spacing:-0.015em; }
.work-card--featured p{ font-size: 15px; line-height:1.6; margin-top:4px; max-width: 48ch; }
@media (max-width: 860px){
  .work-grid{ grid-template-columns: 1fr 1fr; }
  .work-card--featured{ grid-template-columns: 1fr; gap: 10px; padding: 28px 24px; }
  .work-card--featured .wc-index{ font-size: 58px; }
}
@media (max-width: 560px){ .work-grid{ grid-template-columns: 1fr; } }

/* ---------- certifications ---------- */
.cert-wrap{ display:grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cert-card{
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px;
}
.cert-card .cicon{
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--gold-soft); display:flex; align-items:center; justify-content:center;
  margin-bottom: 18px;
}
.cert-card .cicon svg{ width: 22px; height: 22px; stroke: var(--gold); }
.cert-card h3{ font-family: var(--display); font-weight:600; font-size: 19px; margin-bottom: 8px; color: var(--white); }
.cert-card p{ font-size: 14.5px; color: var(--muted); margin-bottom: 4px; }
.cert-card .meta{ font-family: var(--display); font-size: 12.5px; color: var(--gold); letter-spacing:0.04em; margin-top: 14px; font-weight: 600; text-transform:uppercase; }
@media (max-width: 720px){ .cert-wrap{ grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-wrap{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.contact-info h2{
  font-family: var(--display); font-weight:700; letter-spacing: -0.015em; color: var(--white);
  font-size: clamp(28px, 3.2vw, 40px); margin: 14px 0 18px;
}
.contact-info p{ color: var(--muted); font-size: 15.5px; margin-bottom: 26px; max-width: 400px; }
.contact-line{ display:flex; justify-content:space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.contact-line:last-child{ border-bottom: 1px solid var(--line); }
.contact-line span:first-child{ font-weight:600; font-size: 12px; text-transform:uppercase; letter-spacing:0.06em; color: var(--muted); white-space:nowrap; }
.contact-line span:last-child{ text-align:right; color: var(--text); }

.form-panel{ background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; }
.form-panel .eyebrow{ margin-bottom: 20px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field label{ display:block; font-weight:600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea{
  width:100%; border: 1px solid var(--line); background: var(--ink-3); border-radius: var(--r-sm);
  padding: 12px 14px; font-family: var(--body); font-size: 14px; color: var(--text);
}
.field select option{ background: var(--ink-3); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus{ outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea{ resize: vertical; min-height: 90px; }
.form-panel .btn-primary{ width:100%; justify-content:center; border:none; margin-top: 8px; }
.file-drop{
  display:flex; align-items:center; justify-content:center; gap:8px;
  border: 1px dashed var(--line); border-radius: var(--r-sm);
  padding: 20px; font-size: 13.5px; color: var(--muted); cursor:pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.file-drop:hover{ border-color: var(--accent); color: var(--text); }
.file-list{ list-style:none; margin-top: 10px; display:grid; gap: 6px; }
.file-list li{
  display:flex; align-items:center; justify-content:space-between;
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 12px; font-size: 13px;
}
.file-list li span.fname{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-right:10px; }
.file-list li button{
  background:none; border:none; color: var(--muted); cursor:pointer; font-size:15px; line-height:1; padding:0 2px;
}
.file-list li button:hover{ color: #FF8A8A; }
@media (max-width: 860px){ .contact-wrap{ grid-template-columns: 1fr; } .form-row{ grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer{ padding: 64px 48px 30px; border-top: 1px solid var(--line); background: var(--ink-2); }
.footer-wrap{ max-width: 1600px; margin: 0 auto; display:grid; grid-template-columns: 1.6fr 1fr; gap: 32px 56px; }
.footer-wrap img{ height: 40px; width: auto; margin-bottom: 14px; }
.footer-col p{ font-size: 13.5px; color: var(--muted); line-height:1.7; }
.footer-col h5{ font-family: var(--display); font-size: 13px; text-transform:uppercase; letter-spacing:0.06em; color: var(--white); margin-bottom: 14px; }
.footer-col ul{ list-style:none; display:grid; gap: 10px; }
.footer-col a{ font-size: 13.5px; color: var(--muted); text-decoration:none; }
.footer-col a:hover{ color: var(--accent); }
.footer-bottom{ max-width:1600px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
@media (max-width: 780px){ .footer-wrap{ grid-template-columns: 1fr 1fr; } }

/* ---------- mobile polish ---------- */
@media (max-width: 640px){
  .wrap{ padding: 0 20px; }
  .nav{ padding: 14px 20px; }
  .nav-logo img{ height: 40px; }
  section{ padding: 60px 0; }
  .section-head{ margin-bottom: 32px; }
  .section-head h2{ font-size: clamp(26px, 7vw, 34px); }

  .hero-shell{ min-height: 78vh; }
  .hero-content{ padding: 40px 20px 48px; }
  .hero-content h1{ font-size: clamp(34px, 10vw, 48px); margin: 14px 0 16px; }
  .hero-content p{ font-size: 15.5px; }
  .hero-actions{ flex-direction:column; align-items:stretch; gap:10px; }
  .hero-actions .btn{ justify-content:center; }
  .btn{ padding: 14px 22px; font-size: 14px; }

  .trust-label-fixed{ padding: 0 16px 0 20px; font-size: 11.5px; }

  .commit-wrap{ gap: 28px; }
  .commit-item.active .commit-body p{ max-height: 240px; }

  .about-wrap{ gap: 40px; }
  .about-photo{ margin-bottom: 32px; }
  .about-photo .badge{ left: 0; bottom: -16px; padding: 14px 18px; }
  .about-photo .badge b{ font-size: 24px; }
  .about-photo .inset{ width: 38%; top: -14px; right: 0; }
  .about-copy p{ font-size: 15px; }

  .contact-wrap{ gap: 36px; }
  .contact-line{ flex-direction: column; gap: 4px; padding: 14px 0; }
  .contact-line span:last-child{ text-align: left; }
  .form-panel{ padding: 24px 20px; }

  footer{ padding: 48px 20px 28px; }
  .footer-wrap{ grid-template-columns: 1fr 1fr; gap: 28px 24px; }
}
@media (max-width: 400px){
  .footer-wrap{ grid-template-columns: 1fr; }
}

/* ============================================================
   THEME-AWARE overrides + Cobuild-style layout
   (all colors go through tokens so light/dark both work)
   ============================================================ */

/* headings use the primary text token in both themes */
.section-head h2,
.service-card h3,
.about-copy h2,
.work-card h3,
.cert-card h3,
.contact-info h2,
.commit-item.active .commit-body h4,
.footer-col h5{ color: var(--text); }

/* thinner, Poppins headings — Cobuild feel */
.section-head h2,
.contact-info h2,
.about-copy h2{ font-weight: 500; letter-spacing: -0.01em; }
.hero-content h1{ font-weight: 300; }
.hero-content h1 span{ font-weight: 300; }
.service-card h3,
.work-card h3,
.cert-card h3,
.commit-body h4{ font-weight: 600; }

/* centered section headers with a short intro line */
.section-head{ text-align: center; margin-left: auto; margin-right: auto; }
.section-head .eyebrow{ justify-content: center; }
.section-head p{ margin-left: auto; margin-right: auto; }

/* sticky nav — translucent surface token (white-ish in light, near-black in dark) */
header{ background: var(--surface-nav); border-bottom: 1px solid var(--line); }
/* logo keeps its native Thruway blue — no filter */

/* trust strip + chips */
.trust-label-fixed{ color: var(--text); }
.trust-chip{ background: var(--ink-3); }

/* cards: surface token, hairline border, soft shadow */
.service-card,
.service-card.featured{ background: var(--ink-3); box-shadow: var(--shadow-sm); }
.cert-card{ background: var(--ink-3); box-shadow: var(--shadow-sm); }
.service-icon svg{ stroke: var(--muted); }

/* ---------- balanced two-accent system: residential = warm, commercial = blue ---------- */
#residential .eyebrow::before{ background: var(--gold); }
#residential .service-icon{ background: var(--gold-soft); }
#residential .service-icon svg{ stroke: var(--gold); }
#residential .service-card:hover{ border-color: rgba(206,154,85,0.4); }
#residential .service-card:hover::before{ background: radial-gradient(120px 120px at 85% 15%, var(--gold-soft), transparent 70%); }
.build-panel[href="#residential"] .bp-rule{ background: var(--gold); }
#commercial .eyebrow::before{ background: var(--accent); }

/* estimate section sits on the alt surface so the form panel lifts */
#estimate{ background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.form-panel{ background: var(--ink-3); box-shadow: var(--shadow-sm); }

/* ---------- full-width CTA strip ---------- */
.cta-strip{ background: linear-gradient(120deg, #16233E 0%, #111722 62%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.cta-strip-inner{ display:flex; align-items:center; justify-content:space-between; gap: 28px; flex-wrap:wrap; }
.cta-strip p{
  font-family: var(--display); font-weight: 500; color: #fff;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.3; max-width: 720px;
}
.cta-strip .btn-ghost{ flex-shrink:0; }
@media (max-width: 640px){
  .cta-strip{ padding: 38px 0; }
  .cta-strip-inner{ gap: 18px; }
  .cta-strip .btn-ghost{ width: 100%; justify-content: center; }
}

/* ---------- fixed blueprint wallpaper (permanent backdrop) ----------
   Layered on <html> as a real fixed background: a dark wash over the
   blueprint image. No blend-mode / negative-z pseudo (that broke
   compositing and blanked scrolled content in Chromium). */
html{
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(12,13,16,0.88), rgba(12,13,16,0.88)),
    url("../img/blueprint-dark.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body{ background: transparent; }
   /* retire the old film-grain overlay */

/* ---------- work portfolio filter tabs ---------- */
.work-filter{ display:flex; align-items:center; justify-content:center; gap:14px; margin-bottom:40px; flex-wrap:wrap; }
.work-filter span{ color: var(--line); user-select:none; }
.work-filter-btn{
  background:none; border:none; cursor:pointer; padding:4px 2px;
  font-family: var(--display); font-weight:500; font-size:14px; letter-spacing:0.02em;
  color: var(--muted); transition: color .2s ease;
}
.work-filter-btn{ transition: color 0.15s ease; }
.work-filter-btn:hover{ color: var(--text); }
.work-filter-btn:active{ transform: scale(0.95); }
.work-filter-btn.active{ color: var(--accent); }
.work-card.hide{ display:none; }

/* ---------- estimate: form + side column, fills the row ---------- */
.estimate-grid{
  display:grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px;
  align-items:start; max-width: 1180px; margin: 0 auto;
}
.estimate-grid .form-panel{ max-width:none; width:100%; }
.estimate-aside h3{ font-family:var(--display); font-weight:500; font-size:22px; color:var(--text); margin-bottom:18px; }
.estimate-aside ul{ list-style:none; display:grid; gap:14px; margin-bottom:24px; }
.estimate-aside li{ display:flex; gap:12px; font-size:14.5px; color:var(--muted); line-height:1.5; }
.estimate-aside li svg{ width:18px; height:18px; stroke:var(--accent); flex-shrink:0; margin-top:3px; }
.estimate-aside .call{ font-family:var(--display); font-weight:500; font-size:15px; color:var(--text); }
.estimate-aside .call a{ color:var(--accent); text-decoration:none; }
.estimate-aside .call a:hover{ text-decoration:underline; }
@media (max-width: 860px){
  .estimate-grid{ grid-template-columns:1fr; gap:32px; max-width:640px; }
}

/* ---------- contact: centered icon columns ---------- */
.contact-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  max-width: 1040px; margin: 0 auto; text-align:center;
}
.contact-item{ display:flex; flex-direction:column; align-items:center; }
.contact-ic{
  width:52px; height:52px; border-radius:50%; background: var(--ink-4); border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.contact-ic svg{ width:22px; height:22px; stroke: var(--muted); }
.contact-lbl{
  font-family:var(--display); font-weight:600; font-size:12px; letter-spacing:0.08em;
  text-transform:uppercase; color: var(--muted); margin-bottom:8px;
}
.contact-item p{ font-size:14.5px; color: var(--text); line-height:1.65; }
.contact-item p a{ color: var(--text); text-decoration:none; }
.contact-item p a:hover{ color: var(--accent); }
.contact-sub{ color: var(--muted); font-size:13px; }
@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr 1fr; gap: 34px 20px; } }
@media (max-width: 460px){ .contact-grid{ grid-template-columns: 1fr; } }

/* ---------- construction management / capabilities ---------- */
.cap-pillars{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px 12px; margin:-8px auto 44px; max-width:760px; }
.cap-pillars span{ font-family:var(--display); font-weight:500; font-size:12px; letter-spacing:0.05em; text-transform:uppercase; color:var(--muted); border:1px solid var(--line); border-radius:100px; padding:7px 15px; }
.cap-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.cap-card{ background:var(--ink-3); border:1px solid var(--line); border-radius:var(--r-lg); padding:28px 24px; box-shadow:var(--shadow-sm); }
.cap-card h3{ font-family:var(--display); font-weight:600; font-size:17px; color:var(--text); margin-bottom:16px; }
.cap-card ul{ list-style:none; display:grid; gap:10px; }
.cap-card li{ position:relative; padding-left:18px; font-size:13.5px; color:var(--muted); line-height:1.5; }
.cap-card li::before{ content:""; position:absolute; left:0; top:7px; width:6px; height:6px; border-radius:50%; background:var(--accent); }
.cap-note{ text-align:center; color:var(--muted); font-size:14px; line-height:1.7; margin:36px auto 0; max-width:680px; }
@media (max-width: 980px){ .cap-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .cap-grid{ grid-template-columns:1fr; } }

/* ---------- residential + commercial positioning ---------- */
.market-intro{ padding: 92px 0; border-bottom: 1px solid var(--line); }
.market-intro .wrap{ max-width: 900px; text-align:center; }
.market-intro .eyebrow{ justify-content:center; }
.market-intro h2{ font-family:var(--display); font-weight:500; letter-spacing:-0.015em; font-size:clamp(30px,4vw,50px); line-height:1.08; color:var(--text); margin:14px 0 20px; }
.market-intro p{ color:var(--muted); font-size:17px; line-height:1.75; max-width:680px; margin:0 auto; }

/* ---------- WHAT WE BUILD — large photographic pathways ---------- */
.build-panels{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.build-panel{
  position:relative; display:flex; flex-direction:column; justify-content:flex-end;
  min-height:520px; padding:40px; border-radius:var(--r-lg); overflow:hidden;
  text-decoration:none; color:#fff; isolation:isolate;
  border:1px solid var(--line);
}
.build-panel-bg{
  position:absolute; inset:0; z-index:-2;
  background-size:cover; background-position:center;
  transform:scale(1.02); transition:transform .7s cubic-bezier(.2,.7,.2,1);
}
.build-panel::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg, rgba(8,10,14,0.30) 0%, rgba(8,10,14,0.62) 55%, rgba(8,10,14,0.90) 100%);
  transition:background .4s ease;
}
.build-panel:hover .build-panel-bg,
.build-panel:focus-visible .build-panel-bg{ transform:scale(1.08); }
.build-panel:hover::after,
.build-panel:focus-visible::after{ background:linear-gradient(180deg, rgba(8,10,14,0.20) 0%, rgba(8,10,14,0.55) 50%, rgba(9,13,26,0.92) 100%); }
.build-panel .bp-num{ font-family:var(--display); font-weight:600; font-size:13px; letter-spacing:0.14em; color:rgba(255,255,255,0.6); }
.build-panel .bp-rule{ width:40px; height:2px; background:var(--accent); margin:14px 0 18px; transition:width .4s cubic-bezier(.2,.7,.2,1); }
.build-panel:hover .bp-rule,
.build-panel:focus-visible .bp-rule{ width:96px; }
.build-panel h3{ font-family:var(--display); font-weight:500; font-size:clamp(28px,3.4vw,40px); line-height:1.05; letter-spacing:-0.01em; transition:transform .4s ease; }
.build-panel:hover h3,
.build-panel:focus-visible h3{ transform:translateY(-2px); }
.build-panel p{ font-size:15px; color:rgba(255,255,255,0.82); max-width:360px; margin:12px 0 22px; }
.build-panel .bp-link{ display:inline-flex; align-items:center; gap:9px; font-family:var(--display); font-weight:600; font-size:12.5px; letter-spacing:0.08em; text-transform:uppercase; }
.build-panel .bp-link svg{ width:15px; height:15px; transition:transform .3s ease; }
.build-panel:hover .bp-link svg,
.build-panel:focus-visible .bp-link svg{ transform:translateX(5px); }
@media (max-width: 820px){ .build-panels{ grid-template-columns:1fr; } .build-panel{ min-height:420px; padding:32px; } }

/* ---------- market split (image + capability list) ---------- */
.market-split{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:52px; align-items:center; margin-bottom:56px; }
.market-split.flip{ grid-template-columns:1.1fr 0.9fr; }
.market-split.flip .ms-media{ order:2; }
.ms-media{ border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow); border:1px solid var(--line); aspect-ratio:4/3.2; }
.ms-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.ms-body h3{ font-family:var(--display); font-weight:500; font-size:clamp(24px,2.6vw,32px); color:var(--text); letter-spacing:-0.01em; margin-bottom:14px; }
.ms-body p{ color:var(--muted); font-size:15.5px; line-height:1.7; margin-bottom:22px; max-width:460px; }
.ms-chips{ display:flex; flex-wrap:wrap; gap:9px; }
.ms-chips span{ font-family:var(--display); font-weight:500; font-size:12px; letter-spacing:0.03em; color:var(--text); background:var(--ink-3); border:1px solid var(--line); border-radius:100px; padding:8px 14px; }
@media (max-width: 860px){ .market-split, .market-split.flip{ grid-template-columns:1fr; gap:32px; } .market-split.flip .ms-media{ order:0; } }

/* work tags for the new market categories */
.work-tag.residential{ background: var(--gold-soft); color: var(--gold); }
.work-tag.commercial{ background: var(--accent-soft); color: var(--accent); }
.work-tag.institutional{ background: var(--accent-soft); color: var(--accent); }

@media (max-width: 640px){ .market-intro{ padding:64px 0; } }

/* ===== REPOSITIONING — architectural detail system ===== */
.sec-no{ font-family:var(--display); font-weight:600; color:var(--accent); letter-spacing:0.08em; margin-right:4px; font-variant-numeric:tabular-nums; }

@media (max-width:600px){ .nav-links-logo{ display:none; } .nav-logo{ visibility:visible; pointer-events:auto; } }
.hero-est{ display:flex; align-items:center; gap:14px; margin-top:4px; font-family:var(--display); font-size:12.5px; letter-spacing:0.08em; text-transform:uppercase; color:rgba(255,255,255,0.72); }
.hero-est b{ color:#fff; font-weight:600; }
.hero-est .hr-sep{ width:1px; height:13px; background:rgba(255,255,255,0.35); flex:none; }
@media (max-width:560px){ .hero-est{ flex-wrap:wrap; gap:6px 12px; } .hero-est .hr-sep{ display:none; } }

.est-block{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; margin-top:34px; }
.est-block > div{ background:var(--ink); padding:22px 20px; }
.est-block b{ display:block; font-family:var(--display); font-weight:600; font-size:clamp(20px,3vw,28px); letter-spacing:-0.01em; color:var(--text); line-height:1; }
.est-block span{ display:block; margin-top:8px; font-size:11px; letter-spacing:0.06em; text-transform:uppercase; color:var(--muted); line-height:1.45; }
@media (max-width:760px){ .est-block{ grid-template-columns:1fr 1fr; } }

.wwb-markets{ display:flex; flex-wrap:wrap; gap:9px; justify-content:center; margin-top:24px; }
.wwb-markets a, .wwb-markets span{ font-family:var(--display); font-weight:500; font-size:12px; letter-spacing:0.04em; text-transform:uppercase; color:var(--muted); border:1px solid var(--line); border-radius:100px; padding:8px 15px; text-decoration:none; transition:color .2s, border-color .2s; }
.wwb-markets a:hover{ color:var(--text); border-color:var(--muted); }

#government{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--ink-2); }
.gov-verified{ border:1px solid var(--line); border-left:3px solid var(--gold); border-radius:0 var(--r-md) var(--r-md) 0; background:var(--ink-3); padding:22px 24px; margin:22px 0 32px; max-width:760px; }
.gov-verified h3{ font-family:var(--display); font-weight:600; font-size:14px; margin:0 0 10px; color:var(--text); letter-spacing:0.03em; text-transform:uppercase; }
.gov-verified p{ color:var(--muted); font-size:14px; line-height:1.7; margin:0 0 6px; }
.gov-verified p:last-child{ margin-bottom:0; }
.gov-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.gov-card{ border:1px solid var(--line); border-radius:var(--r-md); background:var(--ink-3); padding:20px; }
.gov-card .gv-label{ display:block; font-family:var(--display); font-weight:600; font-size:12px; letter-spacing:0.06em; text-transform:uppercase; color:var(--text); }
.gov-card .gv-status{ display:inline-block; margin-top:12px; font-family:var(--display); font-weight:600; font-size:10px; letter-spacing:0.1em; text-transform:uppercase; color:var(--gold); border:1px solid var(--gold-soft); background:var(--gold-soft); border-radius:3px; padding:4px 8px; }
.gov-card p{ margin:10px 0 0; font-size:12.5px; color:var(--muted); line-height:1.6; }
@media (max-width:820px){ .gov-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .gov-grid{ grid-template-columns:1fr; } }

.work-card .wc-no{ display:block; margin-bottom:12px; font-family:var(--display); font-weight:600; font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color:var(--muted); font-variant-numeric:tabular-nums; }
.work-card--featured .wc-no{ margin-bottom:14px; }
.work-card .wc-meta{ display:flex; flex-wrap:wrap; gap:5px 14px; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); font-size:11px; letter-spacing:0.04em; text-transform:uppercase; color:var(--muted); }
.work-card .wc-meta b{ color:var(--text); font-weight:600; }

.res-gallery{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:0; }
.res-gallery figure{ margin:0; border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden; aspect-ratio:3/2; }
.res-gallery img{ width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width:560px){ .res-gallery{ grid-template-columns:1fr; } }

html{ color-scheme: dark; }

/* ================================================================
   WordPress block adaptations
   The rules above are the original design, unchanged. Everything
   below maps them onto native block markup (p/h/group/cover/button).
   ================================================================ */
:root{ --tb-check:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M5%2013l4%204L19%207%22%2F%3E%3C%2Fsvg%3E"); --tb-arrow:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M5%2012h14M13%206l6%206-6%206%22%2F%3E%3C%2Fsvg%3E"); }
html{ scroll-padding-top: 84px; }
.wp-site-blocks{ padding:0; }
.wp-site-blocks > *{ margin-block-start:0; }
.wp-block-image{ margin:0; }

/* scroll reveal only when JS is running (content is never hidden without it) */
.js .reveal{ opacity:0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in{ opacity:1; transform: translateY(0); }
#scrollProgress{ position: fixed; top:0; left:0; height:3px; width:100%; background: var(--accent); transform-origin:0 50%; transform:scaleX(0); z-index:300; pointer-events:none; }

/* section surfaces that were inline styles */
.section-alt{ background: var(--ink-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-alt-top{ background: var(--ink-2); border-top:1px solid var(--line); }
.section-rule-top{ border-top:1px solid var(--line); }

/* header */
header.wp-block-template-part{ position: sticky; top:0; z-index:100; }
.admin-bar header.wp-block-template-part{ top:32px; }
@media (max-width:782px){ .admin-bar header.wp-block-template-part{ top:46px; } }
.nav > .wp-block-group, .nav-links > p{ margin:0; }
.nav-links figure.nav-links-logo{ display:flex; align-items:center; }
.staff-login-link a{ text-decoration:none; }
@media (max-width:600px){ .nav-links figure.nav-links-logo{ display:none; } }
.nav-right .wp-block-buttons{ margin:0; }
@media (max-width:840px){
  .nav-links > *{ width:100%; border-top:1px solid var(--line-soft); }
  .nav-links > *:first-child{ border-top:none; }
  .nav-right .tb-nav-cta .wp-block-button__link{ padding:9px 15px; font-size:12.5px; }
  .nav-right .staff-login-link{ display:none; }
}

/* buttons (core Button block) */
.tb-btn-primary .wp-block-button__link,
.tb-btn-ghost .wp-block-button__link,
.tb-nav-cta .wp-block-button__link{
  font-family: var(--body); font-weight:600; font-size:14.5px; line-height:1.6;
  text-decoration:none; padding:16px 28px; border-radius:100px;
  display:inline-flex; align-items:center; gap:8px; cursor:pointer; border:1px solid transparent;
}
.tb-btn-primary .wp-block-button__link{ background:var(--accent); color:var(--white); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.tb-btn-primary .wp-block-button__link:hover{ background:#6E86FF; transform:translateY(-2px); box-shadow:0 12px 28px -8px rgba(62,99,255,.55); }
.tb-btn-primary .wp-block-button__link:active{ transform:translateY(0) scale(.97); box-shadow:0 6px 16px -8px rgba(62,99,255,.55); }
.tb-btn-ghost .wp-block-button__link{ border-color:rgba(255,255,255,.3); color:var(--white); background:rgba(255,255,255,.06); backdrop-filter:blur(6px); transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.tb-btn-ghost .wp-block-button__link:hover{ border-color:rgba(255,255,255,.6); background:rgba(255,255,255,.12); transform:translateY(-2px); }
.tb-btn-ghost .wp-block-button__link:active{ transform:translateY(0) scale(.97); background:rgba(255,255,255,.16); }
.tb-nav-cta .wp-block-button__link{ background:var(--accent); color:var(--white); font-size:14px; padding:11px 22px; border:0; white-space:nowrap; transition: background .2s ease, transform .15s ease; }
.nav-logo a, .nav-links-logo a{ display:block; }
.tb-nav-cta .wp-block-button__link:hover{ background:#6E86FF; }
.tb-nav-cta .wp-block-button__link:active{ transform:scale(.96); }
.has-arrow .wp-block-button__link::after{ content:""; width:14px; height:14px; background:currentColor; -webkit-mask:var(--tb-arrow) center/contain no-repeat; mask:var(--tb-arrow) center/contain no-repeat; transition:transform .2s ease; }
.has-arrow .wp-block-button__link:hover::after{ transform:translateX(3px); }
@media (max-width:640px){
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .hero-actions .wp-block-button, .cta-strip .wp-block-buttons, .cta-strip .wp-block-button{ width:100%; }
  .hero-actions .wp-block-button__link, .cta-strip .wp-block-button__link{ justify-content:center; width:100%; }
  .tb-btn-primary .wp-block-button__link, .tb-btn-ghost .wp-block-button__link{ padding:14px 22px; font-size:14px; }
}
.cta-strip .wp-block-buttons{ flex-shrink:0; }

/* hero (Cover block) */
.hero-shell.wp-block-cover{ min-height:94vh; padding:0; align-items:flex-end; justify-content:flex-start; color:var(--white); overflow:hidden; }
.hero-shell .wp-block-cover__background, .build-panel .wp-block-cover__background{ display:none; }
.hero-shell .wp-block-cover__image-background{ transform:scale(1.02); animation:kenburns 26s ease-in-out infinite alternate; filter:saturate(.9) contrast(1.05); }
.hero-shell .wp-block-cover__inner-container{ position:relative; z-index:2; width:100%; max-width:none; padding:0; }
@media (max-width:640px){ .hero-shell.wp-block-cover{ min-height:78vh !important; } .hero-est > p{ font-size:15.5px; } }
.hero-content > *{ margin-left:0; margin-right:0; }
.hero-content h1 mark{ background:none; }
.hero-est{ display:flex; align-items:center; gap:14px; margin:4px 0 30px; max-width:500px; font-family:var(--display); letter-spacing:.08em; text-transform:uppercase; }
.hero-est > p{ margin:0; max-width:none; font-size:17px; color:#C7CBD6; }
.hero-est strong{ color:#fff; font-weight:600; }
.hero-est > p + p{ display:flex; align-items:center; gap:14px; }
.hero-est > p + p::before{ content:""; width:1px; height:13px; background:rgba(255,255,255,.35); flex:none; }
@media (max-width:560px){ .hero-est{ flex-wrap:wrap; gap:6px 12px; } .hero-est > p + p::before{ display:none; } }
.hero-content .hero-actions{ margin:0; }
.service-ticker-item{ margin:0; }
.service-ticker-dots{ display:flex; justify-content:center; margin-top:10px; }

/* eyebrow numerals */
.eyebrow strong{ font-family:var(--display); font-weight:600; color:var(--accent); letter-spacing:.08em; margin-right:4px; font-variant-numeric:tabular-nums; }

/* founder */
.founder-photo .badge .badge-num{ font-family:var(--display); font-weight:700; font-size:20px; display:block; line-height:1.25; color:var(--gold); white-space:nowrap; margin:0; }
.founder-photo .badge .badge-label{ font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:0; line-height:25.6px; }
.founder-copy p.founder-name{ font-family:var(--display); font-weight:700; font-size:clamp(24px,2.6vw,30px); color:var(--white); margin:22px 0 0; letter-spacing:-.01em; }
.founder-copy .awards-list li strong, .awards-list li strong{ font-family:var(--display); font-weight:600; color:var(--gold); flex:none; font-variant-numeric:tabular-nums; }
.founder-copy .awards-list{ margin-top:26px; }

/* who we are */
.est-block > .wp-block-group{ background:var(--ink); padding:22px 20px; }
.est-block .est-num{ display:block; margin:0; font-family:var(--display); font-weight:600; font-size:clamp(20px,3vw,28px); letter-spacing:-.01em; color:var(--text); line-height:1; max-width:none; }
.est-block .est-label{ display:block; margin:8px 0 0; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); line-height:1.45; max-width:none; }

/* trust marquee: static until JS duplicates the group */
.marquee-track{ animation:none; }
.marquee-track.is-running{ animation: marquee 32s linear infinite; }
.trust-chip{ margin:0; }
.trust-label-fixed{ margin:0; }

/* what we build (Cover blocks as panels) */
.wwb-markets p{ margin:0; }
.wwb-markets a{ display:block; }
.build-panel.wp-block-cover{ min-height:520px; padding:40px; border-radius:var(--r-lg); overflow:hidden; align-items:stretch; justify-content:flex-end; color:#fff; border:1px solid var(--line); isolation:isolate; }
.build-panel .wp-block-cover__image-background{ z-index:-2; transform:scale(1.02); transition:transform .7s cubic-bezier(.2,.7,.2,1); }
.build-panel:hover .wp-block-cover__image-background, .build-panel:focus-within .wp-block-cover__image-background{ transform:scale(1.08); }
.build-panel .wp-block-cover__inner-container{ width:100%; max-width:none; padding:0; }
.build-panel p.bp-num{ font-size:13px; margin:0; max-width:none; color:rgba(255,255,255,.6); }
.build-panel .bp-rule{ margin:14px 0 18px; }
.build-panel h3{ margin:0; color:#fff; }
.build-panel p.bp-link{ margin:0; max-width:none; color:#fff; }
.build-panel .bp-link a{ color:inherit; text-decoration:none; }
.build-panel .bp-link a::before{ content:""; position:absolute; inset:0; z-index:1; }
.build-panel .bp-link::after{ content:""; width:15px; height:15px; background:currentColor; -webkit-mask:var(--tb-arrow) center/contain no-repeat; mask:var(--tb-arrow) center/contain no-repeat; transition:transform .3s ease; }
.build-panel:hover .bp-link::after{ transform:translateX(5px); }
.build-panel:focus-within{ outline:2px solid var(--accent); outline-offset:3px; }
@media (max-width:820px){ .build-panel.wp-block-cover{ min-height:420px !important; padding:32px; } }

/* capabilities / residential */
.ms-media .wp-block-image{ height:100%; }
.ms-chips p{ margin:0; max-width:none; font-family:var(--display); font-weight:500; font-size:12px; letter-spacing:.03em; color:var(--text); background:var(--ink-3); border:1px solid var(--line); border-radius:100px; padding:8px 14px; line-height:1.6; }
.cap-pillars p{ margin:0; font-family:var(--display); font-weight:500; font-size:12px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); border:1px solid var(--line); border-radius:100px; padding:7px 15px; }
.cap-card ul, .about-list, .estimate-aside ul{ padding:0; }
.res-gallery .wp-block-image{ margin:0; }
.ms-body .res-gallery{ margin-top:22px; }
.service-card h3{ margin:20px 0 6px; }

/* why thruway tabs */
.commit-img img{ width:100%; height:100%; object-fit:cover; object-position:center 35%; }
.commit-img.is-team img{ object-position:center 30%; }
.commit-visual .wp-block-image{ margin:0; }
.commit-num{ margin:0; }
.commit-body h4{ margin-bottom:6px; }
.commit-body p{ margin:0; }
.commit-item.active .commit-body p{ margin-top:4px; }

/* about */
.about-photo .inset figure{ height:100%; }
.about-photo .inset .inset-label{ position:absolute; bottom:0; left:0; right:0; background:rgba(10,12,17,.72); color:#fff; font-size:10.5px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; padding:5px 8px; margin:0; }
.about-photo .badge .badge-num{ font-family:var(--display); font-weight:700; font-size:30px; display:block; line-height:1; color:var(--gold); margin:0; }
.about-photo .badge .badge-label{ font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:0; line-height:25.6px; }
.about-copy h2.about-title{ font-family:var(--display); font-weight:700; letter-spacing:-.015em; font-size:clamp(26px,3vw,34px); margin:14px 0 18px; }
.about-list li::before, .estimate-aside li::before{ content:""; flex:none; width:18px; height:18px; margin-top:2px; background:var(--accent); -webkit-mask:var(--tb-check) center/contain no-repeat; mask:var(--tb-check) center/contain no-repeat; }
.estimate-aside li::before{ margin-top:3px; }
.about-list li, .estimate-aside li{ margin:0; }
@media (max-width:640px){ .about-photo .badge .badge-num{ font-size:24px; } }

/* our work */
.work-filter{ margin-bottom:40px; }
.work-card p.wc-no{ margin:0 0 12px; line-height:1.6; }
.work-card p.work-tag{ font-size:11px; line-height:1.6; margin:0 0 14px; }
.work-card p.wc-index{ margin:0; max-width:none; }
.work-card .wc-meta p{ font-size:inherit; color:inherit; line-height:1.6; margin:0; max-width:none; }
.work-card .wc-meta strong{ color:var(--text); font-weight:600; }
.work-card--featured p.wc-no{ margin:0 0 14px; max-width:none; }
.work-card--featured p.work-tag{ margin:0 0 14px; max-width:none; }
.work-card--featured .wc-meta p{ margin:0; max-width:none; }
.work-card h3{ margin:0 0 6px; }
.work-card--featured h3{ margin:0 0 6px; }

/* brand divider + gallery */
.brand-divider .wp-block-image{ margin:0; }
.gallery-case-head .gallery-case-meta{ font-size:12.5px; color:var(--muted); letter-spacing:.02em; margin:0; }
.gallery-case-head h3{ margin:0; }
.gallery-item .wp-block-image{ height:100%; }
.gallery-item .gi-tag{ margin:0; line-height:1.6; z-index:1; }
.gallery-item:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.lightbox{ position:fixed; inset:0; z-index:400; display:none; align-items:center; justify-content:center; background:rgba(6,7,10,.92); padding:40px; }
.lightbox.open{ display:flex; }
.lightbox figure{ margin:0; }

/* government / certifications / contact */
.gov-verified h3{ margin:0 0 10px; }
.gov-card p.gv-label{ margin:0; font-size:12px; color:var(--text); line-height:1.6; }
.gov-card p.gv-status{ display:inline-block; margin:12px 0 0; line-height:1.6; }
.cert-card h3{ margin:0 0 8px; }
.contact-item p.contact-lbl{ margin:0 0 8px; font-size:12px; color:var(--muted); line-height:1.6; }
.contact-item p.contact-sub{ color:var(--muted); font-size:13px; margin:0; }
.contact-item p{ margin:0; }
.contact-item p.contact-lbl{ margin:0 0 8px; }

/* footer */
.footer-col h5{ margin:0 0 14px; }
.footer-col ul{ padding:0; }
.footer-bottom{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 24px; }
.footer-bottom p{ margin:0; }
.footer-legal a{ color:var(--muted); text-decoration:none; }
.footer-legal a:hover{ color:var(--accent); }

/* cookie notice */
.cookie-notice{ position:fixed; left:50%; bottom:20px; z-index:350; width:min(720px, calc(100% - 32px)); transform:translate(-50%, 16px); opacity:0; display:flex; align-items:center; gap:18px; padding:16px 20px; background:rgba(16,20,28,.97); backdrop-filter:blur(14px); border:1px solid var(--line); border-radius:var(--r-md); box-shadow:var(--shadow); transition:opacity .25s ease, transform .25s ease; }
.cookie-notice.is-visible{ opacity:1; transform:translate(-50%, 0); }
.cookie-notice.is-leaving{ opacity:0; transform:translate(-50%, 16px); }
.cookie-notice p{ margin:0; flex:1; font-size:13px; line-height:1.55; color:var(--muted); }
.cookie-notice a{ color:var(--text); text-decoration:underline; text-underline-offset:2px; }
.cookie-notice a:hover{ color:var(--accent); }
.cookie-notice button{ flex:none; border:0; border-radius:100px; padding:10px 20px; font-family:var(--body); font-weight:600; font-size:13px; color:var(--white); background:var(--accent); cursor:pointer; transition:background .2s ease, transform .15s ease; }
.cookie-notice button:hover{ background:#6E86FF; }
.cookie-notice button:active{ transform:scale(.96); }
@media (max-width:560px){ .cookie-notice{ flex-direction:column; align-items:stretch; gap:12px; bottom:12px; } .cookie-notice button{ width:100%; } }
@media (prefers-reduced-motion: reduce){ .cookie-notice, .cookie-notice.is-visible, .cookie-notice.is-leaving{ transition:none; transform:translate(-50%, 0); } }

/* consent note under the quote form */
.form-consent{ margin-top:16px; font-size:12.5px; line-height:1.6; color:var(--muted); }
.form-consent a{ color:var(--text); text-decoration:underline; text-underline-offset:2px; }
.form-consent a:hover{ color:var(--accent); }

/* quote form (Contact Form 7 inside the form panel) */
.form-panel .wp-block-shortcode{ margin:0; }
.wpcf7-form-control-wrap{ display:block; }
.wpcf7 form p{ margin:0; }
.wpcf7 form br{ display:none; }
.wpcf7 .wpcf7-submit{ width:100%; justify-content:center; border:none; margin-top:8px; font-family:var(--body); font-weight:600; font-size:14.5px; padding:16px 28px; border-radius:100px; background:var(--accent); color:var(--white); cursor:pointer; transition: background .2s ease, transform .2s ease; }
.wpcf7 .wpcf7-submit:hover{ background:#6E86FF; transform:translateY(-2px); }
.wpcf7 .wpcf7-not-valid-tip{ color:#FF8A8A; font-size:12.5px; margin-top:6px; }
.wpcf7 form .wpcf7-response-output{ margin:18px 0 0; padding:12px 14px; border-radius:var(--r-sm); border:1px solid var(--line); color:var(--text); font-size:13.5px; }
.wpcf7 input[type=file]{ padding:10px 14px; }
.wpcf7 .field textarea{ height:90px; min-height:90px; }
.tb-form-fallback{ color:var(--muted); font-size:15px; line-height:1.7; }
.tb-form-fallback strong{ color:var(--text); }
.tb-form-fallback a{ color:var(--accent); text-decoration:none; }

/* default templates: pages, posts, archives, 404 */
.page-main{ padding:72px 0 108px; min-height:60vh; }
.page-main .wrap{ max-width:900px; }
.page-main h1{ font-family:var(--display); font-weight:500; font-size:clamp(32px,4vw,52px); letter-spacing:-.01em; line-height:1.1; color:var(--text); margin-bottom:28px; }
.page-main .entry-content > * + *{ margin-top:1.2em; }
.page-main .entry-content h2, .page-main .entry-content h3{ font-family:var(--display); font-weight:500; color:var(--text); margin-top:1.8em; }
.page-main .entry-content p, .page-main .entry-content li{ color:var(--muted); font-size:16px; line-height:1.75; }
.page-main .entry-content a, .post-card a:hover{ color:var(--accent); }
.page-main .entry-content ul, .page-main .entry-content ol{ padding-left:1.4em; }
.page-main .entry-content ul{ list-style:disc; }
.post-meta{ gap:14px; color:var(--muted); font-size:13.5px; margin-bottom:24px; }
.post-hero{ margin-bottom:32px; }
.post-hero img{ border-radius:var(--r-lg); width:100%; height:auto; }
.post-nav{ margin-top:56px; padding-top:24px; border-top:1px solid var(--line); }
.post-list{ list-style:none; padding:0; display:grid; gap:18px; }
.post-card{ background:var(--ink-3); border:1px solid var(--line); border-radius:var(--r-lg); padding:28px; box-shadow:var(--shadow-sm); }
.post-card .wp-block-post-title{ font-family:var(--display); font-weight:600; font-size:22px; margin-bottom:6px; }
.post-card .wp-block-post-title a{ text-decoration:none; }
.post-card .wp-block-post-date{ color:var(--muted); font-size:12.5px; margin-bottom:10px; }
.post-card .wp-block-post-excerpt{ color:var(--muted); font-size:14.5px; }
.wp-block-query-pagination{ margin-top:36px; gap:16px; color:var(--muted); }
.wp-block-search .wp-block-search__input{ background:var(--ink-3); border:1px solid var(--line); color:var(--text); border-radius:var(--r-sm); padding:12px 14px; }
.wp-block-search .wp-block-search__button{ background:var(--accent); color:#fff; border:none; border-radius:100px; padding:12px 22px; cursor:pointer; }
