/*!
Theme Name: Master_Engineering
Theme URI: https://scglobalhq.com
Author: SC Global
Author URI: https://scglobalhq.com
Description: Theme of SC Global
Version: 1.0.0
*/
  :root {
    --black:       #06070F;
    --navy-deep:   #0B0D1E;
    --navy:        #0E1128;
    --navy-mid:    #141830;
    --navy-light:  #1C2246;
    --orange:      #F5720A;
    --orange-dim:  #C45808;
    --orange-glow: rgba(245,114,10,0.15);
    --blue:        #1A37CC;
    --blue-bright: #2244E8;
    --blue-glow:   rgba(26,55,204,0.2);
    --ice:         #F0F2FF;
    --muted:       #48506E;
    --muted-light: #7A85A8;
    --border:      rgba(255,255,255,0.06);
    --border-md:   rgba(255,255,255,0.10);
    --font-display: 'Syne', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'Space Mono', monospace;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  html { overflow-x: hidden; }
  body {
    background: var(--black);
    color: var(--ice);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 64px);
    height: 70px;
    background: rgba(6, 7, 15, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
  }

  .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
  }
  .nav-logo:hover{
    text-decoration: none;
  }
  .nav-logo img {
    height: 44px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(245,114,10,0.2));
  }
  .nav-logo-text {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ice);
    line-height: 1.35;
  }
  .nav-logo-text span {
    display: block;
    font-weight: 400;
    font-size: 9.5px;
    letter-spacing: 0.12em;
    color: var(--muted-light);
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
  }
  .nav-links a {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-light);
    text-decoration: none;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--ice); }

  .nav-cta {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--orange);
    border: none;
    padding: 9px 22px;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
  }
  .nav-cta:hover { background: var(--orange-dim); transform: translateY(-1px); text-decoration:none; color:#fff; }

  /* ── HAMBURGER & MOBILE MENU ── */
  .nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    border-radius: 4px;
    z-index: 201;
    position: relative;
    flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ice);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile menu overlay */
  .mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6,7,15,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 198;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .mobile-menu-backdrop.open { opacity: 1; pointer-events: auto; }

  /* Mobile menu drawer */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 199;
    background: rgba(11,13,30,0.98);
    border-bottom: 1px solid var(--border-md);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0;
    max-height: calc(100svh - 70px);
    overflow-y: auto;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
  }
  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
  }
  .mobile-menu-inner {
    display: flex;
    flex-direction: column;
    padding: 8px 0 24px;
  }
  .mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
  }
  .mobile-menu-links li a {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-light);
    text-decoration: none;
    padding: 16px clamp(20px, 5vw, 64px);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, background 0.2s;
  }
  .mobile-menu-links li a:hover,
  .mobile-menu-links li a:active { color: var(--ice); background: rgba(255,255,255,0.03); }
  .mobile-menu-cta-wrap {
    padding: 20px clamp(20px, 5vw, 64px) 0;
  }
  .mobile-menu-cta {
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--orange);
    border-radius: 3px;
    padding: 14px 22px;
    text-decoration: none;
    transition: background 0.2s;
  }
  .mobile-menu-cta:hover { background: var(--orange-dim); }

  /* ── HERO ── */
  #hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px clamp(24px, 6vw, 80px) 80px;
    overflow: hidden;
  }

  #hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
  }

  .hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted-light);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }
  .hero-eyebrow::before, .hero-eyebrow::after {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: var(--muted);
  }

  .hero-headline {
    font-family: var(--font-display);
    font-size: clamp(52px, 10vw, 116px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-wrap: balance;
    margin-bottom: 32px;
    color: var(--ice);
  }
  .hero-headline .hl-orange { color: var(--orange); }
  .hero-headline .hl-blue   { color: var(--blue-bright); }

  .hero-sub {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--muted-light);
    max-width: 540px;
    margin: 0 auto 48px;
    font-weight: 300;
    line-height: 1.75;
  }

  .hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 3px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    background: var(--orange-dim);
    box-shadow: 0 12px 36px rgba(245,114,10,0.35);
    text-decoration: none;
  }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--ice);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 3px;
    border: 1px solid var(--border-md);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
  }
  .btn-secondary:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.04);
    text-decoration: none;
  }

  .hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    animation: bob 2.5s ease-in-out infinite;
  }
  .hero-scroll-line {
    width: 1px; height: 30px;
    background: linear-gradient(to bottom, var(--muted), transparent);
  }
  @keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
  }

  /* ── BRANDS ── */
  #brands {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 88vh;
    overflow: hidden;
  }

  .brand-panel {
    position: relative;
    padding: clamp(60px, 8vw, 100px) clamp(36px, 5vw, 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 480px;
    overflow: hidden;
  }
  .brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .brand-solar {
    background: var(--navy);
    clip-path: polygon(0 0, 93% 0, 100% 100%, 0 100%);
  }
  .brand-solar::before {
    background: radial-gradient(ellipse at 35% 45%, var(--orange-glow), transparent 60%);
  }

  .brand-charge {
    background: var(--navy-mid);
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -7%;
    padding-left: calc(clamp(36px, 5vw, 72px) + 7%);
  }
  .brand-charge::before {
    background: radial-gradient(ellipse at 65% 45%, rgba(109,194,36,0.12), transparent 60%);
  }

  .brand-divider {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.10) 30%, rgba(255,255,255,0.07) 70%, transparent);
    transform: skewX(-3.5deg);
    z-index: 3;
    pointer-events: none;
  }

  .brand-icon {
    width: 50px; height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
  }
  .brand-solar .brand-icon {
    background: rgba(245,114,10,0.12);
    border: 1px solid rgba(245,114,10,0.28);
  }
  .brand-charge .brand-icon {
    background: rgba(109,194,36,0.10);
    border: 1px solid rgba(109,194,36,0.25);
  }

  .brand-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
  }
  .brand-solar .brand-tag { color: var(--orange); }
  .brand-charge .brand-tag { color: #6DC224; }

  .brand-name {
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 0.96;
    margin-bottom: 20px;
    text-wrap: balance;
    position: relative;
    z-index: 1;
  }
  .brand-solar .brand-name { color: var(--ice); }
  .brand-charge .brand-name { color: var(--ice); }

  .brand-desc {
    font-size: 14.5px;
    color: var(--muted-light);
    max-width: 340px;
    line-height: 1.78;
    font-weight: 300;
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
  }

  .brand-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    position: relative;
    z-index: 1;
  }
  .brand-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted-light);
  }
  .brand-features li::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .brand-solar .brand-features li::before { background: var(--orange); }
  .brand-charge .brand-features li::before { background: #6DC224; }

  .brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 32px;
    position: relative;
    z-index: 1;
    transition: gap 0.2s;
  }
  .brand-solar .brand-link { color: var(--orange); }
  .brand-charge .brand-link { color: #6DC224; }
  .brand-link:hover { gap: 14px; text-decoration:none; }

  /* ── STATS ── */
  #stats {
    background: var(--navy);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 52px clamp(24px, 5vw, 80px);
  }
  .stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .stat-item {
    padding: 16px 28px;
    border-right: 1px solid var(--border);
    text-align: center;
  }
  .stat-item:first-child { padding-left: 0; }
  .stat-item:last-child  { border-right: none; }
  .stat-number {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
  }
  .stat-number.orange { color: var(--orange); }
  .stat-number.blue   { color: #6B8FFF; }
  .stat-number.white  { color: var(--ice); }
  .stat-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* ── ABOUT ── */
  #about {
    padding: clamp(80px, 10vw, 120px) clamp(24px, 5vw, 80px);
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 7vw, 96px);
    align-items: center;
  }
  .section-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-light);
    margin-bottom: 16px;
  }
  .about-heading {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-wrap: balance;
    margin-bottom: 22px;
  }
  .about-body {
    font-size: 15px;
    color: var(--muted-light);
    line-height: 1.82;
    font-weight: 300;
    margin-bottom: 14px;
  }
  .about-visual {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--navy);
    border: 1px solid var(--border-md);
  }
  #about-canvas { width: 100%; height: 100%; display: block; }
  .about-visual-label {
    position: absolute;
    bottom: 14px; left: 14px; right: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(6,7,15,0.82);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    padding: 10px 14px;
    border: 1px solid var(--border-md);
  }
  .about-visual-label span {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-light);
  }
  .about-pulse {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22C55E;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(34,197,94,0.4);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
  }

  /* ── SERVICES ── */
  #services {
    padding: clamp(80px, 10vw, 120px) clamp(24px, 5vw, 80px);
    background: var(--navy);
    border-top: 1px solid var(--border);
  }
  .services-header {
    max-width: 1100px;
    margin: 0 auto 52px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
  }
  .services-heading {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
    max-width: 380px;
  }
  .services-sub {
    font-size: 14px;
    color: var(--muted-light);
    max-width: 300px;
    line-height: 1.72;
    font-weight: 300;
  }
  .services-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }
  .service-card {
    background: var(--navy-light);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
    border-radius: 2px;
  }
  .service-card:hover { background: var(--navy-mid); }
  .service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
  }
  .service-card.s-orange::after { background: var(--orange); }
  .service-card.s-blue::after   { background: #6DC224; }
  .service-card.s-both::after   { background: linear-gradient(to right, var(--orange), #6DC224); }
  .service-card:hover::after    { transform: scaleX(1); }
  .service-icon { width: 38px; height: 38px; margin-bottom: 18px; opacity: 0.9; }
  .service-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 9px;
  }
  .service-desc {
    font-size: 13px;
    color: var(--muted-light);
    line-height: 1.72;
    font-weight: 300;
  }

  /* ── CONTACT ── */
  #contact {
    padding: clamp(80px, 12vw, 140px) clamp(24px, 5vw, 80px);
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  #contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 22% 50%, rgba(245,114,10,0.07) 0%, transparent 58%),
      radial-gradient(ellipse at 78% 50%, rgba(26,55,204,0.10) 0%, transparent 58%);
    pointer-events: none;
  }
  .contact-inner {
    position: relative;
    z-index: 1;
    max-width: 660px;
    margin: 0 auto;
  }
  .contact-heading {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 70px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.96;
    text-wrap: balance;
    margin-bottom: 22px;
  }
  .contact-sub {
    font-size: 15.5px;
    color: var(--muted-light);
    margin-bottom: 46px;
    line-height: 1.75;
    font-weight: 300;
  }
  .contact-form {
    display: flex;
    max-width: 420px;
    margin: 0 auto;
    border: 1px solid var(--border-md);
    border-radius: 5px;
    overflow: hidden;
  }
  .contact-input {
    flex: 1;
    background: rgba(14,17,40,0.9);
    border: none;
    padding: 13px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ice);
    outline: none;
  }
  .contact-input::placeholder { color: var(--muted); }
  .contact-submit {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 13px 22px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
  }
  .contact-submit:hover { background: var(--orange-dim); }
  .contact-alts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 36px;
    flex-wrap: wrap;
  }
  .contact-alt {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--muted-light);
    text-decoration: none;
    transition: color 0.2s;
  }
  .contact-alt:hover { color: var(--ice); text-decoration:none; }

  /* ── FOOTER ── */
  footer {
    padding: 36px clamp(20px, 5vw, 80px) 28px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }
  .footer-logo { height: 44px; width: auto; opacity: 0.85; display: block; }
  .footer-sub-brands {
    display: flex;
    gap: 24px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    align-items: center;
  }
  .footer-sub-brands-divider {
    width: 1px; height: 12px;
    background: var(--border-md);
    display: block;
  }
  .footer-orange { color: var(--orange); }
  .footer-green  { color: #6DC224; }
  .footer-copy {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.1em;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
  }
  .footer-scglobal-text {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--muted);
  }

  .footer-scglobal-link {
    color: var(--muted-light);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-scglobal-link:hover { color: var(--orange);text-decoration:none; }


  /* ── Brand logos ── */
  .brand-logo-wrap {
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
  }
  .brand-logo-wrap img {
    height: 90px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  }
  /* ── REVEAL ── */
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
  }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.10s; }
  .reveal-delay-2 { transition-delay: 0.20s; }
  .reveal-delay-3 { transition-delay: 0.32s; }

  /* ── RESPONSIVE ── */
  @media (max-width: 820px) {
    #brands {
      grid-template-columns: 1fr;
      min-height: auto;
    }
    .brand-solar  { clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%); }
    .brand-charge {
      clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
      margin-left: 0; margin-top: -7%;
      padding-left: clamp(36px, 5vw, 72px);
    }
    .brand-divider { display: none; }
    .stats-grid    { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2)   { border-right: none; }
    .stat-item:nth-child(3)   { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
    .stat-item:nth-child(4)   { border-top: 1px solid var(--border); }
    #about         { grid-template-columns: 1fr; }
    .about-visual  { order: -1; }
    .services-grid { grid-template-columns: 1fr; }
    .nav-links     { display: none; }
    .nav-cta       { display: none; }
    .nav-hamburger { display: flex; }
    .mobile-menu-backdrop { display: block; }
    .mobile-menu   { display: block; }
    .services-header { flex-direction: column; align-items: flex-start; }
  }

  @media (max-width: 480px) {
    /* Nav */
    nav { padding: 0 16px; }
    .nav-logo-text { display: none; }
    .nav-logo img  { height: 36px; }

    /* Stats — go single column, tighter padding, smaller numbers */
    .stats-grid {
      grid-template-columns: 1fr 1fr;
    }
    .stat-item {
      padding: 16px 12px;
    }
    .stat-item:first-child { padding-left: 12px; }
    .stat-number {
      font-size: clamp(26px, 7vw, 36px);
    }

    /* Hero headline */
    .hero-headline {
      font-size: clamp(42px, 11vw, 52px);
    }

    /* Hero eyebrow — shorten lines so total width fits 360px */
    .hero-eyebrow {
      gap: 10px;
      font-size: 9.5px;
      letter-spacing: 0.14em;
    }
    .hero-eyebrow::before,
    .hero-eyebrow::after {
      width: 16px;
    }

    /* Brand name scale */
    .brand-name {
      font-size: clamp(30px, 8vw, 38px);
    }

    /* Contact alts — stack vertically */
    .contact-alts {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
      padding: 0 8px;
    }
    .contact-alt {
      align-items: flex-start;
      text-align: left;
    }

    /* Contact form — stack button below input */
    .contact-form {
      flex-direction: column;
      max-width: 100%;
    }
    .contact-submit {
      border-radius: 0;
      padding: 13px;
      text-align: center;
    }

    /* Brand section inner content */
    .brand-inner {
      padding: 40px clamp(20px, 5vw, 40px);
    }

    /* Services grid already 1-col, just tighten */
    .service-card { padding: 24px 20px; }

    /* Sections — ensure no overflow */
    #hero, #brands, #about, #services, #contact {
      max-width: 100%;
      overflow-x: hidden;
    }
  }

  @media (max-width: 360px) {
    .stat-number { font-size: 22px; }
    .stat-item   { padding: 14px 8px; }
    .hero-headline { font-size: 38px; }
  }

  /*404 page*/
     *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html, body {
      height: 100%;
      background: #06070F;
      color: #F0F2FF;
      font-family: 'DM Sans', sans-serif;
    }
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background:
        radial-gradient(ellipse at 20% 40%, rgba(245,114,10,0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 60%, rgba(26,55,204,0.09) 0%, transparent 55%);
      pointer-events: none;
    }
    body::after {
      content: '';
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
      background-size: 60px 60px;
      pointer-events: none;
    }
    main {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 40px clamp(24px, 5vw, 64px);
    }
    .logo {
      height: 56px;
      width: auto;
      margin-bottom: 40px;
      filter: drop-shadow(0 0 10px rgba(245,114,10,0.2));
    }
    .err-code {
      font-family: 'Space Mono', monospace;
      font-size: clamp(96px, 18vw, 180px);
      font-weight: 700;
      line-height: 1;
      letter-spacing: -0.04em;
      background: linear-gradient(135deg, #F5720A 0%, rgba(245,114,10,0.3) 50%, #1A37CC 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 20px;
      user-select: none;
    }
    .err-label {
      font-family: 'Space Mono', monospace;
      font-size: 10.5px;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: #48506E;
      margin-bottom: 16px;
    }
    .err-heading {
      font-family: 'Syne', sans-serif;
      font-size: clamp(22px, 4vw, 32px);
      font-weight: 800;
      color: #F0F2FF;
      margin-bottom: 12px;
    }
    .err-sub {
      font-size: 15px;
      color: #7A85A8;
      max-width: 360px;
      line-height: 1.75;
      font-weight: 300;
      margin-bottom: 36px;
    }
    .err-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .btn-primary {
      font-family: 'Space Mono', monospace;
      font-size: 10.5px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #fff;
      background: #F5720A;
      border: none;
      padding: 12px 28px;
      border-radius: 4px;
      text-decoration: none;
      transition: background 0.2s, transform 0.15s;
    }
    .btn-primary:hover { background: #C45808; transform: translateY(-1px); }
    .btn-ghost {
      font-family: 'Space Mono', monospace;
      font-size: 10.5px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #7A85A8;
      background: transparent;
      border: 1px solid rgba(255,255,255,0.10);
      padding: 12px 28px;
      border-radius: 4px;
      text-decoration: none;
      transition: color 0.2s, border-color 0.2s, transform 0.15s;
    }
    .btn-ghost:hover { color: #F0F2FF; border-color: rgba(255,255,255,0.25); transform: translateY(-1px); }