/*
Theme Name:  HPM-ALME Energy Solutions
Theme URI:   https://www.hpmglobalservices.net
Description: Integrated Engineering, Fabrication & Industrial Solutions. Corporate theme for HPM-ALME Energy Solutions — a binational (USA-Venezuela) energy & industrial execution platform. Built on an IBM Carbon Design System aesthetic: white surfaces, charcoal type, a single IBM Blue accent, flat square geometry and IBM Plex Sans.
Author:      HPM-ALME Energy Solutions
Author URI:  https://www.hpmglobalservices.net
Version:     2.0.0
Text Domain: hpm-alme
Tags:        energy, oil-and-gas, industrial, engineering, corporate, business
*/

/* ===================================================
   HPM-ALME — Carbon (IBM) Design Language
   White canvas · Charcoal ink · IBM Blue #0f62fe · Flat 0px corners
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

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

/* ── DESIGN TOKENS (Carbon) ── */
:root {
  /* Brand / accent — IBM Blue is the ONLY chromatic accent */
  --primary:        #0f62fe;
  --blue-60:        #0043ce;
  --blue-80:        #002d9c;
  --blue-hover:     #0050e6;
  --on-primary:     #ffffff;

  /* Ink */
  --ink:            #161616;
  --ink-muted:      #525252;
  --ink-subtle:     #8c8c8c;

  /* Surfaces */
  --canvas:         #ffffff;
  --surface-1:      #f4f4f4;
  --surface-2:      #e0e0e0;
  --hairline:       #e0e0e0;
  --hairline-strong:#161616;
  --inverse-canvas: #161616;
  --inverse-surface-1: #262626;
  --inverse-ink:    #ffffff;
  --inverse-ink-muted: #c6c6c6;

  /* Semantic */
  --success:        #24a148;
  --warning:        #f1c21b;
  --danger:         #da1e28;

  /* Legacy aliases mapped to Carbon (keep templates working) */
  --accent:         var(--primary);
  --accent-600:     var(--blue-60);
  --primary-600:    var(--inverse-surface-1);
  --primary-800:    #001141;
  --steel:          var(--ink-muted);
  --slate:          var(--ink-muted);
  --line:           var(--hairline);
  --bg:             var(--canvas);
  --bg-muted:       var(--surface-1);

  /* Flat geometry — corners stay square */
  --radius-sm: 0px;
  --radius:    0px;
  --radius-lg: 0px;
  --radius-full: 0px;

  /* No drop shadows on marketing — depth via hairlines + surface change */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;

  --trans-fast: .11s ease;
  --trans: .15s ease;

  --font-head: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Sans', sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --section-py: clamp(3.5rem, 8vw, 6rem); /* ~96px */
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: clip; }  /* clip (not hidden) keeps sticky header working */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  letter-spacing: 0.16px;            /* Carbon precision detail */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Light-weight display is the brand voice (Plex Sans 300) */
h1,h2,h3,h4,h5 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; letter-spacing: 0; }
h1 { font-size: clamp(2.25rem, 5.2vw, 4.25rem); font-weight: 300; line-height: 1.17; letter-spacing: -0.4px; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.625rem); font-weight: 300; line-height: 1.2; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.5rem); font-weight: 400; line-height: 1.33; }
p  { color: var(--ink-muted); }
a  { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section   { padding: var(--section-py) 0; }
.section--muted { background: var(--surface-1); }

/* Inverse bands: charcoal by default; CTA banner is IBM Blue */
.section--navy  { background: var(--inverse-canvas); color: var(--inverse-ink); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: var(--inverse-ink-muted); }
.cta-band.section--navy { background: var(--primary); }
.cta-band.section--navy p { color: rgba(255,255,255,.9); }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-accent { color: var(--primary); }
.lead { font-size: 1.25rem; color: var(--ink-muted); line-height: 1.5; letter-spacing: 0; font-weight: 400; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 400;
  font-size: .875rem; letter-spacing: .16px; text-transform: none;  /* Carbon: sentence case */
  color: var(--primary); margin-bottom: .85rem;
}
.section--navy .eyebrow { color: #78a9ff; }
.max-prose { max-width: 720px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── BUTTONS — flat, square, 12px/16px ── */
.btn {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-head); font-weight: 400; font-size: .875rem; letter-spacing: .16px;
  padding: 13px 16px; border-radius: 0; border: 1px solid transparent;
  cursor: pointer; transition: var(--trans); min-height: 48px; line-height: 1.29;
}
.btn i { font-size: .9em; }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-primary:active { background: var(--blue-80); border-color: var(--blue-80); }
/* tertiary: white w/ blue border (legacy .btn-outline) */
.btn-outline { background: var(--canvas); color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
/* charcoal secondary */
.btn-secondary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-secondary:hover { background: #393939; border-color: #393939; }
/* on dark/blue bands: white solid */
.btn-on-dark { background: #fff; color: var(--ink); border-color: #fff; }
.btn-on-dark:hover { background: var(--surface-2); border-color: var(--surface-2); }
/* white outline — secondary on blue/charcoal bands */
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-ghost { color: var(--primary); padding: .35rem 0; min-height: auto; border: none; background: none; font-weight: 400; }
.btn-ghost:hover { color: var(--blue-60); gap: 1rem; }
.section--navy .btn-ghost, .tile .btn-ghost { color: #78a9ff; }
.btn-block { width: 100%; justify-content: center; }

/* ── HEADER / NAV ── */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--canvas);
  border-bottom: 1px solid var(--hairline); transition: var(--trans);
}
.site-header.scrolled { border-bottom-color: var(--surface-2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; transition: var(--trans); }
.site-header.scrolled .nav-inner { height: 56px; }
.nav-logo { display: flex; align-items: center; gap: .65rem; }
.nav-logo-img { height: 34px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-line1 { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); letter-spacing: .01em; }
.logo-line2 { font-size: .7rem; font-weight: 400; color: var(--ink-muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 1.4rem; }
/* text links only — never the .btn CTA (keeps button colors intact) */
.nav-links > a:not(.btn), .nav-dd-summary {
  font-family: var(--font-head); font-weight: 400; font-size: .875rem; letter-spacing: .16px; color: var(--ink);
  cursor: pointer; transition: var(--trans-fast); display: inline-flex; align-items: center; gap: .35rem; height: 48px; line-height: 48px;
  border-bottom: 2px solid transparent;
}
.nav-links > a:not(.btn):hover, .nav-dd-summary:hover { color: var(--primary); border-bottom-color: var(--primary); }
.nav-phone { color: var(--ink-muted) !important; }
/* Header CTA button — force white text on blue, even inside .nav-links */
.nav-links .btn-primary { color: #fff; }
.nav-links .btn-primary:hover { color: #fff; background: var(--blue-hover); border-color: var(--blue-hover); }
.nav-cta-desktop { height: auto; }

/* Mega menu — square, hairline, no radius */
.nav-dropdown { position: relative; }
.nav-dropdown summary { list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dd-summary i { transition: transform var(--trans-fast); }
.nav-dropdown[open] .nav-dd-summary { color: var(--primary); border-bottom-color: var(--primary); }
.nav-dropdown[open] .nav-dd-summary i { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--canvas); border: 1px solid var(--hairline);
  padding: 8px; width: 580px; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.nav-dropdown[open] .nav-dropdown-menu { animation: ddIn .12s ease; }
@keyframes ddIn { from { opacity: 0; } to { opacity: 1; } }
.nav-dropdown-menu a { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem .9rem; transition: var(--trans-fast); border: 1px solid transparent; }
.nav-dropdown-menu a:hover { background: var(--surface-1); }
.nav-dropdown-menu i { color: var(--primary); margin-top: 3px; width: 18px; text-align: center; }
.nav-dropdown-menu strong { display: block; font-family: var(--font-head); font-size: .875rem; color: var(--ink); font-weight: 600; }
.nav-dropdown-menu span { font-size: .75rem; color: var(--ink-muted); letter-spacing: .16px; }
.nav-dd-promo { grid-column: 1 / -1; background: var(--primary); color: #fff; padding: .85rem 1rem; display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.nav-dd-promo span { color: #fff !important; }

.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); transition: var(--trans); }

.mobile-cta-bar { display: none; }

/* ── HERO — light canvas, charcoal weight-300, optional soft-blue wash ── */
.hero {
  position: relative; background: var(--canvas); color: var(--ink); overflow: hidden;
  padding: clamp(3.5rem, 9vw, 6rem) 0; border-bottom: 1px solid var(--hairline);
}
.hero--img::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 90% at 85% 10%, rgba(15,98,254,.10) 0%, rgba(15,98,254,0) 55%);
}
.hero__bg { display: none; }            /* Carbon hero stays clean canvas */
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--ink); max-width: 20ch; }
.hero--home h1 { font-weight: 300; }
.hero p { color: var(--ink-muted); max-width: 60ch; margin-top: 1.25rem; font-size: 1.25rem; line-height: 1.5; letter-spacing: 0; }
.hero__actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero--compact { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__media img { border: 1px solid var(--hairline); }

/* ── BREADCRUMBS ── */
.breadcrumbs { font-size: .875rem; letter-spacing: .16px; color: var(--ink-muted); margin-bottom: 1.25rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { color: var(--blue-60); text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--ink-muted); }
.section--navy .breadcrumbs { color: var(--inverse-ink-muted); }
.section--navy .breadcrumbs a { color: #78a9ff; }

/* ── TRUST STRIP ── */
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.25rem; }
.trust-item { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .875rem; letter-spacing: .16px; }
.trust-item i { color: var(--primary); }
.section--navy .trust-item { color: #fff; }
.section--navy .trust-item i { color: #78a9ff; }

/* ── GRIDS ── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* ── CARDS — flat, 1px hairline, no shadow ── */
.card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 0; padding: 1.75rem; transition: var(--trans); }
.cap-card { display: flex; flex-direction: column; gap: .85rem; height: 100%; position: relative; }
.cap-card:hover { background: var(--surface-1); border-color: var(--ink); }
.cap-card::after { content: ''; position: absolute; left: 0; top: 0; height: 0; width: 3px; background: var(--primary); transition: var(--trans); }
.cap-card:hover::after { height: 100%; }
.cap-card__icon { width: 48px; height: 48px; border-radius: 0; background: transparent; display: flex; align-items: center; justify-content: flex-start; color: var(--primary); font-size: 1.6rem; }
.cap-card h3 { font-size: 1.25rem; font-weight: 400; }
.cap-card p { font-size: .875rem; letter-spacing: .16px; flex: 1; line-height: 1.45; }
.cap-card .btn-ghost { margin-top: auto; font-family: var(--font-head); font-weight: 400; font-size: .875rem; }

.value-item { text-align: left; padding: 1.5rem 0 0; background: var(--canvas); border-top: 2px solid var(--ink); }
.value-item i { font-size: 1.75rem; color: var(--primary); margin-bottom: .85rem; }
.value-item h3 { font-size: 1.25rem; font-weight: 400; margin-bottom: .4rem; }
.value-item p { font-size: .875rem; letter-spacing: .16px; }

/* ── STAT BAND ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: left; }
.stats > div { border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.25rem; }
.section--muted .stats > div { border-top-color: var(--surface-2); }
.stat__num { font-family: var(--font-head); font-weight: 300; font-size: clamp(2.75rem, 6vw, 3.75rem); color: var(--primary); line-height: 1.1; letter-spacing: -0.5px; }
.section--navy .stat__num { color: #78a9ff; }
.stat__label { margin-top: .5rem; font-size: .875rem; letter-spacing: .16px; color: var(--inverse-ink-muted); font-weight: 400; }
.section--muted .stat__label { color: var(--ink-muted); }

/* ── ENTITY SPLIT ── */
.entity-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 0; padding: 2rem; border-top: 3px solid var(--primary); }
.entity-card__flag { font-size: .75rem; font-weight: 600; letter-spacing: .32px; text-transform: uppercase; color: var(--ink-muted); }
.entity-card h3 { margin: .5rem 0 .25rem; font-weight: 400; }
.entity-card__role { color: var(--primary); font-weight: 600; font-size: .875rem; letter-spacing: .16px; margin-bottom: 1rem; }

/* ── BULLET LISTS ── */
.scope-list li { display: flex; gap: .7rem; padding: .55rem 0; align-items: flex-start; color: var(--ink); border-bottom: 1px solid var(--hairline); font-size: .9375rem; letter-spacing: .16px; }
.scope-list li:last-child { border-bottom: none; }
.scope-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary); margin-top: 3px; font-size: .85em; }
.scope-list.on-dark li { color: rgba(255,255,255,.9); border-bottom-color: rgba(255,255,255,.16); }
.feature-block { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 0; padding: 1.75rem; }
.section--muted .feature-block { background: var(--canvas); }
.feature-block h3 { margin-bottom: 1rem; font-size: 1.25rem; font-weight: 400; }

/* ── CALLOUT ── */
.callout { background: var(--inverse-surface-1); color: #fff; border-radius: 0; padding: clamp(1.75rem, 4vw, 2.75rem); }
.callout h3 { color: #fff; font-weight: 300; }
.callout p { color: var(--inverse-ink-muted); margin-top: .6rem; }

/* ── CTA BAND (IBM Blue banner) ── */
.cta-band { text-align: left; }
.cta-band h2 { color: #fff; max-width: 22ch; font-weight: 300; }
.cta-band .hero__actions { margin-top: 1.75rem; }

/* ── SECTION HEADER ── */
.section-head { margin-bottom: 2.5rem; }
.section-head.center { text-align: center; }
.section-head.center .max-prose { margin: 0 auto; }
.section-head h2 { margin-bottom: .6rem; }

/* ── INDUSTRY TILES — flat bordered, charcoal ── */
.tile { position: relative; border: 1px solid var(--hairline); border-radius: 0; min-height: 220px; display: flex; align-items: flex-end; color: var(--ink); background: var(--canvas); overflow: hidden; transition: var(--trans); }
.tile::after { content:''; position:absolute; left:0; top:0; width:3px; height:0; background: var(--primary); transition: var(--trans); z-index:2; }
.tile:hover { background: var(--surface-1); border-color: var(--ink); }
.tile:hover::after { height: 100%; }
.tile img { display: none; }
.tile__body { position: relative; z-index: 3; padding: 1.75rem; }
.tile__body h3 { color: var(--ink); font-size: 1.375rem; font-weight: 400; }
.tile__body p { color: var(--ink-muted); font-size: .875rem; letter-spacing: .16px; margin: .35rem 0 .6rem; }
.tile__body .btn-ghost { color: var(--primary); }

/* ── FORMS — Carbon inputs: surface-1, square, bottom rule ── */
.form-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 0; padding: clamp(1.5rem, 3vw, 2.25rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 400; font-size: .75rem; letter-spacing: .32px; color: var(--ink-muted); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 16px; border: none; border-bottom: 1px solid var(--ink-subtle);
  border-radius: 0; font-family: var(--font-body); font-size: 1rem; letter-spacing: .16px; color: var(--ink);
  background: var(--surface-1); min-height: 48px; transition: var(--trans-fast);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: -2px; border-bottom: 2px solid var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--hairline); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip label { display: inline-block; padding: .65rem 1rem; border-right: 1px solid var(--hairline); font-size: .8125rem; letter-spacing: .16px; font-weight: 400; color: var(--ink-muted); cursor: pointer; margin: 0; transition: var(--trans-fast); background: var(--canvas); }
.chip label:hover { background: var(--surface-1); }
.chip input:checked + label { background: var(--primary); color: #fff; }
.chip input:focus + label { outline: 2px solid var(--primary); outline-offset: -2px; }
.contact-rail { display: flex; flex-direction: column; gap: 1.25rem; }
.rail-item { display: flex; gap: .85rem; align-items: flex-start; border-bottom: 1px solid var(--hairline); padding-bottom: 1rem; }
.rail-item:last-child { border-bottom: none; }
.rail-item i { color: var(--primary); font-size: 1.1rem; margin-top: 3px; width: 22px; text-align: center; }
.rail-item strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .9375rem; font-weight: 600; }
.rail-item span, .rail-item a { font-size: .875rem; letter-spacing: .16px; color: var(--ink-muted); }
.rail-item a:hover { color: var(--primary); }
.reassure { background: var(--surface-1); border-radius: 0; border-left: 3px solid var(--primary); padding: 1rem 1.15rem; font-size: .875rem; letter-spacing: .16px; color: var(--ink-muted); display: flex; gap: .6rem; align-items: center; }
.reassure i { color: var(--primary); }

/* ── BLOG / RESOURCES ── */
.post-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 0; overflow: hidden; display: flex; flex-direction: column; transition: var(--trans); }
.post-card:hover { background: var(--surface-1); border-color: var(--ink); }
.post-card__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--surface-1); border-bottom: 1px solid var(--hairline); }
.post-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-tag { font-size: .75rem; font-weight: 400; letter-spacing: .32px; text-transform: none; color: var(--primary); }
.post-card h3 { font-size: 1.25rem; font-weight: 400; }
.post-meta { font-size: .8125rem; letter-spacing: .16px; color: var(--ink-subtle); }
.prose { max-width: 720px; }
.prose p { margin-bottom: 1.2rem; color: var(--ink); line-height: 1.6; font-size: 1rem; letter-spacing: .16px; }
.prose h2 { margin: 2.25rem 0 .9rem; font-weight: 300; }
.prose h3 { margin: 1.6rem 0 .6rem; font-weight: 400; }
.prose ul { margin: 0 0 1.2rem 1.2rem; list-style: disc; }
.prose li { margin-bottom: .45rem; color: var(--ink); }
.prose a { color: var(--primary); text-decoration: underline; }

/* ── FOOTER BLUE CTA BOX (global) ── */
.footer-cta { background: var(--primary); color: #fff; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.footer-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-cta .eyebrow { color: rgba(255,255,255,.8); }
.footer-cta h2 { color: #fff; font-weight: 300; margin-bottom: .35rem; max-width: 22ch; }
.footer-cta p { color: rgba(255,255,255,.9); letter-spacing: 0; max-width: 46ch; }
.footer-cta__actions { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }

/* ── FOOTER — charcoal (inverse canvas) ── */
.site-footer { background: var(--inverse-canvas); color: var(--inverse-ink-muted); }
.footer-trust { border-bottom: 1px solid var(--inverse-surface-1); padding: 1.75rem 0; }
.footer-trust .trust-item { color: #fff; }
.footer-trust .trust-item i { color: #78a9ff; }
.footer-main { padding: 4rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-col h4 { color: #fff; font-size: .875rem; font-weight: 600; letter-spacing: .16px; text-transform: none; margin-bottom: 1rem; }
.footer-col a { display: block; padding: .35rem 0; color: var(--inverse-ink-muted); font-size: .875rem; letter-spacing: .16px; transition: var(--trans-fast); }
.footer-col a:hover { color: #fff; }
.footer-brand p { color: var(--inverse-ink-muted); font-size: .875rem; letter-spacing: .16px; margin-top: .85rem; max-width: 34ch; line-height: 1.5; }
.footer-logo { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: #fff; letter-spacing: .01em; }
.footer-logo span { color: #78a9ff; }
.footer-bottom { border-top: 1px solid var(--inverse-surface-1); padding: 1.5rem 0; font-size: .8125rem; letter-spacing: .16px; color: var(--ink-subtle); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-endorse { color: var(--ink-subtle); }

/* ── ANIMATIONS (restrained) ── */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===================================================
   HOME — Eastern-Energy-style cinematic flow
   (dark image hero, scroll reveals, Up Next editorial)
   Typography stays IBM Plex Sans.
=================================================== */

/* Cinematic dark hero (home only) */
.hero--home {
  min-height: 90vh; display: flex; align-items: center; color: #fff;
  background-color: #0b1016;
  background-size: cover; background-position: center center; background-repeat: no-repeat;
  border-bottom: none; padding: 7rem 0 5rem;
}
.hero--home::before { display: none; }
.hero--home .container { width: 100%; }
.hero--home h1, .hero--home p { color: #fff; }
.hero--home h1 { max-width: 24ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero--home p { color: rgba(255,255,255,.88); }
.hero--home .eyebrow { color: #78a9ff; }
.hero--home .btn-secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); color: #fff; backdrop-filter: blur(4px); }
.hero--home .btn-secondary:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Hero with a custom background image (inner pages — editable) */
.hero--has-img {
  color: #fff; background-color: #0b1016; background-size: cover; background-position: center center;
  border-bottom: none; padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}
.hero--has-img::before { display: none; }
.hero--has-img h1, .hero--has-img p { color: #fff; }
.hero--has-img .eyebrow { color: #78a9ff; }
.hero--has-img .breadcrumbs { color: rgba(255,255,255,.75); }
.hero--has-img .breadcrumbs a { color: #fff; }
.hero--has-img .breadcrumbs span[aria-current] { color: #78a9ff; }

/* Section that received an editable background image → white text */
[data-section-img] { color: #fff; }
[data-section-img] h1, [data-section-img] h2, [data-section-img] h3 { color: #fff; }
[data-section-img] p, [data-section-img] .scope-list li { color: rgba(255,255,255,.9); }
[data-section-img] .eyebrow { color: #78a9ff; }
[data-section-img] .feature-block { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }

/* Sequential entrance on load — applies to every page hero */
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero .eyebrow.hero-reveal       { animation: heroUp .7s .05s both cubic-bezier(.2,.6,.2,1); }
.hero h1.hero-reveal             { animation: heroUp .8s .16s both cubic-bezier(.2,.6,.2,1); }
.hero p.hero-reveal              { animation: heroUp .8s .28s both cubic-bezier(.2,.6,.2,1); }
.hero .hero__actions.hero-reveal { animation: heroUp .7s .40s both cubic-bezier(.2,.6,.2,1); }

/* Scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .4rem; color: rgba(255,255,255,.7); animation: heroUp .7s .8s both; }
.scroll-cue span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue i { animation: cueBob 1.8s ease-in-out infinite; }
@keyframes cueBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Staggered reveals for card groups */
.stagger .reveal:nth-child(1) { transition-delay: 0s; }
.stagger .reveal:nth-child(2) { transition-delay: .07s; }
.stagger .reveal:nth-child(3) { transition-delay: .14s; }
.stagger .reveal:nth-child(4) { transition-delay: .21s; }
.stagger .reveal:nth-child(5) { transition-delay: .28s; }
.stagger .reveal:nth-child(6) { transition-delay: .35s; }
.stagger .reveal:nth-child(7) { transition-delay: .42s; }
.stagger .reveal:nth-child(8) { transition-delay: .49s; }

/* Industry tiles with photographic background (home) */
.tile--img { min-height: 300px; color: #fff; background-size: cover; background-position: center; background-color: #11202e; }
.tile--img::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,16,22,.15) 0%, rgba(11,16,22,.82) 100%); transition: background .4s ease; }
.tile--img::after { display: none; }
.tile--img:hover { background-color: #11202e; }
.tile--img:hover::before { background: linear-gradient(180deg, rgba(15,98,254,.18) 0%, rgba(11,16,22,.88) 100%); }
.tile--img .tile__body { z-index: 2; }
.tile--img .tile__body h3 { color: #fff; }
.tile--img .tile__body p { color: rgba(255,255,255,.82); }
.tile--img .tile__body .btn-ghost { color: #fff; }
.tile--img .tile__body .btn-ghost:hover { color: #78a9ff; }

/* Up Next — editorial navigation block */
.upnext-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.upnext-card { position: relative; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: #fff; background-color: #11202e; background-size: cover; background-position: center; border: 1px solid var(--hairline); }
.upnext-card__media { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.upnext-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,16,22,.1) 0%, rgba(11,16,22,.86) 78%); }
.upnext-card:hover .upnext-card__media { transform: scale(1.06); }
.upnext-card__body { position: relative; z-index: 2; padding: 1.75rem; }
.upnext-card__num { font-family: var(--font-head); font-weight: 300; font-size: 3rem; line-height: 1; color: rgba(255,255,255,.55); letter-spacing: -1px; }
.upnext-card h3 { color: #fff; font-weight: 400; font-size: 1.5rem; margin: .6rem 0 .35rem; }
.upnext-card p { color: rgba(255,255,255,.82); font-size: .875rem; letter-spacing: .16px; }
.upnext-card .arrow { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .875rem; color: #fff; transition: gap .2s ease; }
.upnext-card:hover .arrow { gap: 1rem; color: #78a9ff; }
.upnext-card__bar { position: absolute; left: 0; top: 0; height: 0; width: 3px; background: var(--primary); z-index: 3; transition: height .4s ease; }
.upnext-card:hover .upnext-card__bar { height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .hero-reveal, .scroll-cue { animation: none !important; opacity: 1 !important; transform: none !important; }
  .scroll-cue i { animation: none; }
  .upnext-card__media { transition: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .upnext-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--canvas); flex-direction: column; align-items: flex-start; padding: 5rem 1.25rem 2rem; gap: 0; transform: translateX(100%); transition: transform .25s ease; border-left: 1px solid var(--hairline); overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links > a, .nav-dd-summary { font-size: 1.05rem; height: auto; line-height: 1.4; padding: .85rem 0; width: 100%; border-bottom: 1px solid var(--hairline); }
  .nav-dropdown-menu { position: static; transform: none; width: 100%; grid-template-columns: 1fr; border: none; padding: .25rem 0 .25rem 1rem; }
  .nav-dd-promo { display: none; }
  .nav-phone, .nav-cta-desktop { display: none; }
  .hamburger { display: flex; z-index: 110; }
  .mobile-cta-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--canvas); border-top: 1px solid var(--hairline); padding: .55rem; gap: .55rem; }
  .mobile-cta-bar .btn { flex: 1; justify-content: center; }
  body { padding-bottom: 72px; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split, .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
}
