/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
    :root {
      --bg:        #07101c;
      --bg1:       #0b1726;
      --bg2:       #0f1e30;
      --border:    #152234;
      --border2:   #1d3044;

      --steel:     #8fb4c8;
      --steel-dim: rgba(143,180,200,0.12);
      --steel-line:rgba(143,180,200,0.25);
      --steel-glow:rgba(143,180,200,0.06);

      --txt:       #dde8f2;
      --txt2:      #5b8097;
      --txt3:      #2d4d60;

      --white:     #ffffff;

      --f-display: 'Barlow Condensed', sans-serif;
      --f-body:    'Barlow', sans-serif;
      --f-mono:    'Space Mono', monospace;
    }

    /* ─── RESET ──────────────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      background: var(--bg);
      color: var(--txt);
      font-family: var(--f-body);
      font-weight: 300;
      overflow-x: hidden;
      /* subtle engineering grid */
      background-image:
        linear-gradient(rgba(143,180,200,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143,180,200,0.025) 1px, transparent 1px);
      background-size: 72px 72px;
    }
    img  { display: block; max-width: 100%; }
    a    { color: inherit; text-decoration: none; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; }

    /* ─── UTILITY ────────────────────────────────────────────────── */
    .label {
      font-family: var(--f-mono);
      font-size: 10px;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--steel);
      opacity: 0.75;
    }
    .section-inner { max-width: 1240px; margin: 0 auto; padding: 0 48px; }

    /* ─── BUTTONS ────────────────────────────────────────────────── */
    .btn {
      display: inline-flex; align-items: center; gap: 10px;
      font-family: var(--f-display);
      font-weight: 700;
      font-size: 14px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 13px 28px;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
    }
    .btn-solid {
      background: var(--steel);
      color: var(--bg);
      border: 1px solid var(--steel);
    }
    .btn-solid:hover { background: #a8cad9; border-color: #a8cad9; }
    .btn-ghost {
      background: transparent;
      color: var(--txt);
      border: 1px solid var(--steel-line);
    }
    .btn-ghost:hover { border-color: var(--steel); color: var(--steel); }

    /* ─── SCROLL ANIMATIONS ──────────────────────────────────────── */
    .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.85s ease, transform 0.85s ease;
    }
    .reveal.in { opacity: 1; transform: none; }
    .reveal-left {
      opacity: 0;
      transform: translateX(-32px);
      transition: opacity 0.85s ease, transform 0.85s ease;
    }
    .reveal-left.in { opacity: 1; transform: none; }
    .d1 { transition-delay: 0.08s; }
    .d2 { transition-delay: 0.16s; }
    .d3 { transition-delay: 0.24s; }
    .d4 { transition-delay: 0.32s; }
    .d5 { transition-delay: 0.40s; }

    /* ─── NAVIGATION ─────────────────────────────────────────────── */
    #nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 24px 48px;
      transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease;
      border-bottom: 1px solid transparent;
    }
    #nav.scrolled {
      padding: 16px 48px;
      background: rgba(7,16,28,0.88);
      backdrop-filter: blur(20px) saturate(1.4);
      -webkit-backdrop-filter: blur(20px) saturate(1.4);
      border-bottom-color: var(--border);
    }
    .nav-logo img { height: 30px; }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 44px;
    }
    .nav-links a {
      font-family: var(--f-mono);
      font-size: 10px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--txt2);
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--txt); }
    .nav-right {
      display: flex;
      align-items: center;
      gap: 28px;
    }
    .nav-phone {
      font-family: var(--f-mono);
      font-size: 11px;
      color: var(--txt2);
      letter-spacing: 0.06em;
    }

    /* ─── HERO ───────────────────────────────────────────────────── */
    .hero {
      position: relative;
      height: 100vh;
      min-height: 720px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }
    .hero-bg-wrap {
      position: absolute;
      inset: 0;
      overflow: hidden;
    }
    .hero-bg {
      position: absolute;
      inset: -10%;
      background: url('https://staging.barrett-ic.com/wp-content/uploads/2025/12/build-cooling-towers.webp') center 35% / cover no-repeat;
      will-change: transform;
    }
    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        170deg,
        rgba(7,16,28,0.30) 0%,
        rgba(7,16,28,0.15) 35%,
        rgba(7,16,28,0.65) 68%,
        rgba(7,16,28,0.97) 100%
      );
    }
    /* left vignette for text legibility */
    .hero-overlay::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(7,16,28,0.55) 0%, transparent 55%);
    }
    .hero-content {
      position: relative;
      z-index: 2;
      padding: 0 48px 80px;
    }
    .hero-eyebrow {
      font-family: var(--f-mono);
      font-size: 10px;
      letter-spacing: 0.28em;
      text-transform: uppercase;
      color: var(--steel);
      margin-bottom: 20px;
      opacity: 0;
      animation: slideUp 0.9s ease 0.4s forwards;
    }
    .hero-title {
      font-family: var(--f-display);
      font-weight: 800;
      font-size: clamp(80px, 10.5vw, 152px);
      line-height: 0.90;
      text-transform: uppercase;
      letter-spacing: -0.01em;
      color: var(--white);
      margin-bottom: 36px;
      opacity: 0;
      animation: slideUp 1s ease 0.6s forwards;
    }
    .hero-title em {
      font-style: normal;
      color: var(--steel);
    }
    .hero-sub {
      font-family: var(--f-mono);
      font-size: 11px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--txt2);
      margin-bottom: 44px;
      opacity: 0;
      animation: slideUp 0.9s ease 0.85s forwards;
    }
    .hero-actions {
      display: flex;
      gap: 14px;
      opacity: 0;
      animation: slideUp 0.9s ease 1.05s forwards;
    }

    /* side scroll hint */
    .scroll-cue {
      position: absolute;
      right: 48px;
      bottom: 80px;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      opacity: 0;
      animation: fadeIn 1s ease 1.6s forwards;
    }
    .scroll-cue-text {
      font-family: var(--f-mono);
      font-size: 8px;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--txt3);
      writing-mode: vertical-rl;
    }
    .scroll-cue-line {
      width: 1px;
      height: 48px;
      background: linear-gradient(to bottom, var(--steel), transparent);
      animation: pulse 2.2s ease 2s infinite;
    }

    @keyframes slideUp {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: none; }
    }
    @keyframes fadeIn  { to { opacity: 1; } }
    @keyframes pulse   {
      0%   { opacity: 0.2; transform: scaleY(0.6); transform-origin: top; }
      50%  { opacity: 1;   transform: scaleY(1);   }
      100% { opacity: 0.2; transform: scaleY(0.6); transform-origin: bottom; }
    }

    /* ─── CREDENTIAL MARQUEE ─────────────────────────────────────── */
    .marquee-bar {
      background: var(--bg1);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      overflow: hidden;
      padding: 2px 0;
    }
    .marquee-track {
      display: flex;
      width: max-content;
      animation: marquee 36s linear infinite;
    }
    .marquee-track:hover { animation-play-state: paused; }
    .marquee-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 48px;
      border-right: 1px solid var(--border);
      white-space: nowrap;
    }
    .m-dot {
      width: 3px; height: 3px;
      border-radius: 50%;
      background: var(--steel);
      flex-shrink: 0;
    }
    .m-text {
      font-family: var(--f-mono);
      font-size: 9px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--txt2);
    }
    @keyframes marquee {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }

    /* ─── STATS ──────────────────────────────────────────────────── */
    .stats-section {
      padding: 112px 0;
    }
    .stats-header {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-bottom: 64px;
    }
    .stats-rule { flex: 1; height: 1px; background: var(--border); }
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      border: 1px solid var(--border);
    }
    .stat-item {
      padding: 52px 40px;
      border-right: 1px solid var(--border);
      position: relative;
      overflow: hidden;
    }
    .stat-item:last-child { border-right: none; }
    /* animated top line */
    .stat-item::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 1px;
      background: var(--steel);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.8s ease;
    }
    .stat-item.line-in::before { transform: scaleX(1); }
    .stat-num {
      font-family: var(--f-display);
      font-weight: 800;
      font-size: 76px;
      line-height: 1;
      color: var(--white);
      margin-bottom: 10px;
    }
    .stat-num .suf { color: var(--steel); }
    .stat-label {
      font-family: var(--f-mono);
      font-size: 9px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--txt2);
      line-height: 1.8;
      margin-bottom: 16px;
    }
    .stat-desc {
      font-size: 13px;
      color: var(--txt3);
      line-height: 1.75;
    }

    /* ─── SECTION SHARED ─────────────────────────────────────────── */
    .section-eyebrow {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 20px;
    }
    .eyebrow-rule { width: 28px; height: 1px; background: var(--steel-line); }
    .section-heading {
      font-family: var(--f-display);
      font-weight: 800;
      font-size: clamp(44px, 4.5vw, 64px);
      line-height: 0.95;
      text-transform: uppercase;
      color: var(--white);
    }
    .section-body {
      font-size: 15px;
      color: var(--txt2);
      line-height: 1.75;
      max-width: 420px;
    }

    /* ─── INDUSTRIES ─────────────────────────────────────────────── */
    .industries-section {
      padding: 112px 0;
      background: var(--bg1);
      border-top: 1px solid var(--border);
    }
    .industries-header {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 64px;
      align-items: end;
      margin-bottom: 56px;
    }
    .industries-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border);
    }
    .ind-card {
      background: var(--bg1);
      padding: 28px 28px;
      display: flex;
      align-items: center;
      gap: 16px;
      transition: background 0.25s;
      cursor: default;
      position: relative;
      overflow: hidden;
    }
    .ind-card::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 1px;
      background: var(--steel);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.35s ease;
    }
    .ind-card:hover { background: var(--bg2); }
    .ind-card:hover::after { transform: scaleX(1); }
    .ind-num {
      font-family: var(--f-mono);
      font-size: 9px;
      color: var(--txt3);
      min-width: 24px;
    }
    .ind-name {
      font-family: var(--f-display);
      font-weight: 700;
      font-size: 16px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--txt);
    }

    /* ─── SERVICES ───────────────────────────────────────────────── */
    .services-section {
      padding: 112px 0;
      border-top: 1px solid var(--border);
    }
    .services-header { margin-bottom: 56px; }
    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border);
    }
    .svc-card {
      background: rgba(7, 16, 28, 0.35);
      backdrop-filter: blur(10px) saturate(1.2);
      -webkit-backdrop-filter: blur(10px) saturate(1.2);
      border: 1px solid rgba(143, 180, 200, 0.08);
      padding: 44px 36px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      transition: background 0.3s, backdrop-filter 0.3s, -webkit-backdrop-filter 0.3s, border-color 0.3s;
      cursor: default;
      position: relative;
      overflow: hidden;
      min-height: 280px;
    }
    .svc-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 1px;
      background: var(--steel);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.5s ease;
    }
    .svc-card:hover {
      background: rgba(11, 23, 38, 0.55);
      backdrop-filter: blur(18px) saturate(1.5);
      -webkit-backdrop-filter: blur(18px) saturate(1.5);
      border-color: rgba(143, 180, 200, 0.18);
    }
    .svc-card:hover::before { transform: scaleX(1); }
    .svc-num {
      font-family: var(--f-mono);
      font-size: 9px;
      color: var(--txt3);
      letter-spacing: 0.12em;
    }
    .svc-title {
      font-family: var(--f-display);
      font-weight: 700;
      font-size: 21px;
      text-transform: uppercase;
      color: var(--white);
      line-height: 1.1;
    }
    .svc-desc {
      font-size: 13.5px;
      color: var(--txt2);
      line-height: 1.75;
      flex: 1;
    }
    .svc-link {
      font-family: var(--f-mono);
      font-size: 10px;
      letter-spacing: 0.18em;
      color: var(--steel);
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 4px;
      opacity: 0;
      transform: translateX(-8px);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .svc-card:hover .svc-link { opacity: 1; transform: none; }
    .svc-link-arrow { display: inline-block; transition: transform 0.3s; }
    .svc-card:hover .svc-link-arrow { transform: translateX(4px); }

    /* ─── SPLIT FEATURE ──────────────────────────────────────────── */
    .feature-section {
      border-top: 1px solid var(--border);
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
    .feature-img {
      position: relative;
      overflow: hidden;
      min-height: 520px;
    }
    .feature-img img {
      width: 100%; height: 100%;
      object-fit: cover;
      transition: transform 7s ease;
    }
    .feature-img:hover img { transform: scale(1.04); }
    .feature-img-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, transparent 60%, var(--bg1) 100%);
    }
    .feature-text {
      background: var(--bg1);
      padding: 80px 64px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 28px;
      border-left: 1px solid var(--border);
    }
    .feature-quote {
      font-family: var(--f-display);
      font-weight: 700;
      font-size: clamp(18px, 1.8vw, 24px);
      color: var(--white);
      line-height: 1.4;
      max-width: 420px;
    }
    .feature-detail {
      font-size: 14px;
      color: var(--txt2);
      line-height: 1.8;
      max-width: 400px;
    }
    .feature-badges {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 8px;
    }
    .badge-row {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .badge-dot { width: 2px; height: 16px; background: var(--steel); flex-shrink: 0; }
    .badge-text {
      font-family: var(--f-mono);
      font-size: 10px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--txt2);
    }

    /* ─── TESTIMONIAL ────────────────────────────────────────────── */
    .testimonial-section {
      padding: 140px 0;
      border-top: 1px solid var(--border);
      background: var(--bg);
    }
    .testimonial-inner {
      max-width: 900px;
      margin: 0 auto;
      text-align: center;
      padding: 0 48px;
    }
    .quote-glyph {
      font-family: var(--f-display);
      font-size: 200px;
      line-height: 0.65;
      color: var(--steel);
      opacity: 0.12;
      display: block;
      margin-bottom: -20px;
    }
    .testimonial-text {
      font-family: var(--f-display);
      font-weight: 700;
      font-size: clamp(30px, 3.5vw, 46px);
      line-height: 1.15;
      color: var(--white);
      text-transform: uppercase;
      margin-bottom: 48px;
    }
    .testimonial-rule {
      width: 40px;
      height: 1px;
      background: var(--steel-line);
      margin: 0 auto 28px;
    }
    .attr-name {
      font-family: var(--f-mono);
      font-size: 10px;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--steel);
      margin-bottom: 6px;
    }
    .attr-company {
      font-size: 13px;
      color: var(--txt2);
      margin-bottom: 20px;
    }
    .attr-logo img {
      height: 24px;
      margin: 0 auto;
      opacity: 0.4;
      filter: brightness(10) saturate(0);
    }

    /* ─── CTA ────────────────────────────────────────────────────── */
    .cta-section {
      position: relative;
      border-top: 1px solid var(--border);
      overflow: hidden;
    }
    .cta-bg {
      position: absolute;
      inset: 0;
      background: url('https://staging.barrett-ic.com/wp-content/uploads/2026/01/IMG_5194-rotated.jpg') center / cover no-repeat;
    }
    .cta-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(110deg, rgba(7,16,28,0.96) 42%, rgba(7,16,28,0.55) 100%);
    }
    .cta-inner {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: center;
      padding: 120px 48px;
    }
    .cta-left {}
    .cta-title {
      font-family: var(--f-display);
      font-weight: 800;
      font-size: clamp(48px, 5.5vw, 76px);
      text-transform: uppercase;
      line-height: 0.93;
      color: var(--white);
      margin-bottom: 28px;
    }
    .cta-body {
      font-size: 15px;
      color: var(--txt2);
      line-height: 1.75;
      margin-bottom: 44px;
      max-width: 420px;
    }
    .cta-actions { display: flex; gap: 14px; }
    .cta-right {
      border-left: 1px solid var(--border);
      padding-left: 64px;
      display: flex;
      flex-direction: column;
      gap: 40px;
    }
    .contact-block { display: flex; flex-direction: column; gap: 6px; }
    .contact-label {
      font-family: var(--f-mono);
      font-size: 9px;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--txt3);
    }
    .contact-val {
      font-family: var(--f-display);
      font-weight: 700;
      font-size: 24px;
      color: var(--txt);
      letter-spacing: 0.01em;
      transition: color 0.2s;
    }
    .contact-val:hover { color: var(--steel); }
    .contact-val-sm {
      font-family: var(--f-display);
      font-weight: 600;
      font-size: 17px;
      color: var(--txt2);
    }

    /* ─── FOOTER ─────────────────────────────────────────────────── */
    footer {
      background: var(--bg);
      border-top: 1px solid var(--border);
    }
    .footer-inner {
      max-width: 1240px;
      margin: 0 auto;
      padding: 64px 48px 32px;
    }
    .footer-top {
      display: grid;
      grid-template-columns: 2.2fr 1fr 1fr 1fr;
      gap: 56px;
      padding-bottom: 48px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 28px;
    }
    .footer-logo { height: 26px; margin-bottom: 22px; }
    .footer-tagline {
      font-size: 13px;
      color: var(--txt2);
      line-height: 1.8;
      max-width: 240px;
    }
    .footer-col-label {
      font-family: var(--f-mono);
      font-size: 9px;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--steel);
      opacity: 0.7;
      margin-bottom: 20px;
    }
    .footer-links { display: flex; flex-direction: column; gap: 10px; }
    .footer-links a {
      font-size: 13px;
      color: var(--txt2);
      transition: color 0.2s;
    }
    .footer-links a:hover { color: var(--txt); }
    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .footer-copy {
      font-family: var(--f-mono);
      font-size: 9px;
      letter-spacing: 0.08em;
      color: var(--txt3);
    }
    .footer-copy a { color: var(--steel); opacity: 0.8; }
    .footer-copy a:hover { opacity: 1; }

/* Homepage-only styles — interior pages use Elementor widget/container settings. */

