/* ============================================================
   MILLENNIUM INDUSTRIAL — Public Site Styles
   Eagle Digital | styles.css
   ============================================================ */

:root {
  --dark: #090c12;
  --dark-mid: #0e1117;
  --dark-light: #151a22;
  --border: #1e2530;
  --orange: #f97316;
  --orange-dim: rgba(249, 115, 22, 0.12);
  --steel: #8fa3b8;
  --text: #dde6f0;
  --muted: #566070;
  --white: #ffffff;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--orange);
  z-index: 2000;
  transition: width 0.05s linear;
  pointer-events: none;
}
/* ── Typography ── */
h1,
h2,
h3,
h4 {
  font-family: "Bebas Neue", sans-serif;
  line-height: 1;
  letter-spacing: 0.03em;
}
.mono {
  font-family: "IBM Plex Mono", monospace;
}
.label {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.9rem 2.5rem;
  transition:
    background 0.3s,
    border-color 0.3s;
  background: transparent;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(9, 12, 18, 0.97);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo img {
  height: 38px;
  width: auto;
  filter: brightness(1.25);
  display: block;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--steel);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--white);
}
.nav-links a.nav-active {
  color: var(--orange) !important;
}
.nav-links a.nav-active::after {
  width: 100%;
}
.nav-cta {
  background: var(--orange) !important;
  color: var(--dark) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 2px !important;
  font-weight: 700 !important;
  transition:
    background 0.2s,
    transform 0.2s !important;
}
.nav-cta:hover {
  background: var(--white) !important;
  transform: translateY(-1px);
}
.nav-portal {
  color: var(--muted) !important;
  font-size: 0.7rem !important;
  border: 1px solid var(--border) !important;
  padding: 0.4rem 0.9rem !important;
  border-radius: 2px !important;
  transition: all 0.2s !important;
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
}
.nav-portal:hover {
  color: var(--steel) !important;
  border-color: var(--steel) !important;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://millenniumindustrial.com/wp-content/uploads/2020/06/GC-SawcuttingBACK-683x1024.jpg");
  background-size: cover;
  background-position: center top;
  opacity: 0.14;
  filter: grayscale(100%) contrast(1.2);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    var(--dark) 42%,
    rgba(9, 12, 18, 0.75) 68%,
    transparent 100%
  );
}
.hero-rule {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--orange);
}
.hero-slash {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  background: linear-gradient(108deg, transparent 0%, rgba(249, 115, 22, 0.04) 100%);
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
  padding-top: 3.5rem;
}
.hero h1 {
  font-size: clamp(4.5rem, 10.5vw, 9.5rem);
  color: var(--white);
  line-height: 0.93;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  color: var(--orange);
  font-style: normal;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--steel);
  max-width: 500px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.75;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4.5rem;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--orange);
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ── Client Marquee ── */
.clients-bar {
  background: var(--dark-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0 0;
}
.clients-header {
  text-align: center;
  padding: 0.1rem 2rem 0.85rem;
}
.clients-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Scrolling track wrapper — clips overflow and adds edge fades */
.clients-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.6rem 0;
}
.clients-marquee::before,
.clients-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.clients-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--dark-light) 0%, transparent 100%);
}
.clients-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--dark-light) 0%, transparent 100%);
}

/* The moving track — holds two identical sets of items */
.clients-track {
  display: flex;
  align-items: center;
  width: max-content; /* shrink-wraps all items into one row   */
  animation: clients-scroll 32s linear infinite;
  will-change: transform;
}

@keyframes clients-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  } /* -50% = exactly one full set  */
}

/* Pause on hover (JS also does this for robustness) */
.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation-play-state: paused;
  }
}

.client-item {
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  flex-shrink: 0;
}
.client-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--steel);
  white-space: nowrap;
  transition: color 0.25s;
}
.clients-marquee:hover .client-name {
  color: var(--text);
}
.client-sep {
  color: var(--orange);
  font-size: 0.5rem;
  flex-shrink: 0;
  opacity: 0.5;
}

/* ── Section Shell ── */
section {
  padding: 5.5rem 2.5rem;
}
.inner {
  max-width: 1320px;
  margin: 0 auto;
}
.sec-head {
  margin-bottom: 3.5rem;
}
.sec-head h2 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  color: var(--white);
}
.sec-head p {
  color: var(--steel);
  max-width: 560px;
  margin-top: 0.9rem;
  font-weight: 300;
}

/* ── Services Section ── */
.services {
  background: var(--dark-mid);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  gap: 0;
}
.svc-card {
  background: var(--dark-mid);
  padding: 2.25rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.svc-card:hover {
  background: var(--dark-light);
}
.svc-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--orange);
  transition: width 0.4s ease;
}
.svc-card:hover::after {
  width: 100%;
}
.svc-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.5rem;
  color: var(--orange);
  opacity: 0.13;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.svc-card h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.65rem;
}
.svc-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.75;
}
.svc-tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ── Stats ── */
.stats {
  background: var(--dark);
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: 3.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child {
  border-right: none;
}
.stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 4.5rem;
  color: var(--orange);
  line-height: 1;
  display: block;
}

.stat-lbl {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}
/* ── Stat counter animation ── */
.stat-num {
  transition: none;
}
.stat-num.counting {
  color: var(--orange);
}

/* ── Markets ── */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}
.mkt-card {
  position: relative;
  height: 340px;
  overflow: hidden;
  cursor: default;
}
.mkt-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%) brightness(0.45);
  transition:
    filter 0.5s,
    transform 0.6s;
}
.mkt-card:hover img {
  filter: grayscale(10%) brightness(0.6);
  transform: scale(1.05);
}
.mkt-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(9, 12, 18, 0.97) 0%,
    rgba(9, 12, 18, 0.2) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}
.mkt-num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  color: var(--orange);
  letter-spacing: 0.3em;
}
.mkt-overlay h3 {
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.mkt-overlay p {
  font-size: 0.82rem;
  color: var(--steel);
}

/* ── Portfolio ── */
.portfolio {
  background: var(--dark-mid);
}
.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}
.port-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.port-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) brightness(0.65);
  transition:
    filter 0.4s,
    transform 0.45s;
}
.port-item:hover img {
  filter: grayscale(0%) brightness(0.8);
  transform: scale(1.05);
}
.port-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(9, 12, 18, 0.98) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.port-item:hover .port-info {
  transform: translateY(0);
}
.port-info .tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}
.port-info h4 {
  font-size: 1.35rem;
  color: var(--white);
  margin-top: 0.25rem;
}
/* ── Portfolio Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9, 12, 18, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  transform: translateY(16px);
  transition: transform 0.35s ease;
}
.lightbox.open .lightbox-inner {
  transform: translateY(0);
}
.lightbox-inner img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}
.lightbox-inner video {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}
.lightbox-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.lightbox-caption .tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}
.lightbox-caption h4 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-top: 0.2rem;
}
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  color: var(--steel);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  transition:
    border-color 0.2s,
    color 0.2s;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.05em;
}
.lightbox-close:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.port-item {
  cursor: pointer;
}
/* ── Compliance ── */
.compliance {
  background: var(--dark);
}
.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.comp-text h2 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}
.comp-text > p {
  color: var(--steel);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.badge-row {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}
.comp-badge {
  background: var(--dark-light);
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  border-radius: 2px;
  text-align: center;
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.comp-badge img {
  width: 100%;
  max-width: 160px;
  height: 60px;
  object-fit: contain;
  filter: brightness(1.2);
  display: block;
  margin: 0 auto;
}
.comp-badge .badge-lbl {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.75rem;
}
.comp-badge .badge-id {
  display: block;
  color: var(--orange);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.comp-points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.comp-pt {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.comp-pt .diamond {
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 0.85rem;
}
.comp-pt h4 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.comp-pt p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── About ── */
.about {
  background: var(--dark-mid);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  filter: grayscale(25%) brightness(0.72);
  display: block;
}
.about-frame {
  position: absolute;
  bottom: -1.25rem;
  right: -1.25rem;
  width: 65%;
  height: 65%;
  border: 2px solid var(--orange);
  pointer-events: none;
}
.about-text h2 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}
.about-text > p {
  color: var(--steel);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}
.cred {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  background: var(--dark);
  border-left: 3px solid var(--orange);
  margin-bottom: 0.65rem;
}
.cred-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.cred-body {
  font-size: 0.83rem;
  color: var(--text);
}
.cred-body small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 0.15rem;
}

/* ── Reviews ── */
.reviews {
  background: var(--dark);
  text-align: center;
}
.rev-wrap {
  max-width: 1100px;
  margin: 0 auto;
}
.stars-display {
  font-size: 1.8rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  display: block;
  margin-bottom: 1.25rem;
}
.rev-wrap h2 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  color: var(--white);
  margin-bottom: 0.9rem;
}
.rev-wrap > p {
  color: var(--steel);
  margin-bottom: 3rem;
  font-weight: 300;
}
.rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 3rem;
}
.rev-card {
  background: var(--dark-light);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-radius: 2px;
}
.rev-stars {
  color: var(--orange);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.rev-text {
  font-size: 0.86rem;
  color: var(--steel);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1rem;
}
.rev-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
.rev-src {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ── Quote Form ── */
.quote {
  background: var(--dark-light);
  border-top: 3px solid var(--orange);
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}
.quote-info h2 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}
.quote-info > p {
  color: var(--steel);
  line-height: 1.8;
  margin-bottom: 2.25rem;
}
.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.c-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.c-icon {
  color: var(--orange);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.c-line a,
.c-line span {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.c-line a:hover {
  color: var(--orange);
}
.form-g {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.fg {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.fg.full {
  grid-column: 1/-1;
}
.fg label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.fg input,
.fg select,
.fg textarea {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.fg select option {
  background: var(--dark-mid);
}
.fg textarea {
  resize: vertical;
  min-height: 110px;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--orange);
}
.btn-submit {
  display: inline-block;
  padding: 0.9rem 2.25rem;
  background: var(--orange);
  color: var(--dark);
  border: none;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  margin-top: 0.5rem;
}
.btn-submit:hover {
  background: var(--white);
  transform: translateY(-2px);
}

/* ── Footer ── */
footer {
  background: #05070c;
  border-top: 1px solid var(--border);
  padding: 4rem 2.5rem 2.25rem;
}
.ft-inner {
  max-width: 1320px;
  margin: 0 auto;
}
.ft-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.ft-brand img {
  height: 36px;
  filter: brightness(1.2);
  display: block;
  margin-bottom: 1.25rem;
}
.ft-brand p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 280px;
}
.ft-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
/* ── Eagle Digital credit ── */
.footer-credit {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.4rem;
}
.footer-credit-link {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-credit-link:hover {
  color: var(--white);
}
.s-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: "IBM Plex Mono", monospace;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.s-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--dark);
}
.ft-col h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.25rem;
}
.ft-col ul {
  list-style: none;
}
.ft-col ul li {
  margin-bottom: 0.55rem;
}
.ft-col ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.ft-col ul li a:hover {
  color: var(--text);
}
.ft-col address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.85;
}
.ft-col address a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.ft-col address a:hover {
  color: var(--orange);
}
.ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.ft-bottom p {
  font-size: 0.74rem;
  color: var(--muted);
}
.ft-badges {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.ft-badges a img {
  height: 26px;
  filter: grayscale(100%) brightness(0.6);
  transition: filter 0.25s;
}
.ft-badges a:hover img {
  filter: grayscale(0%) brightness(1);
}

/* ── Animations ── */
.fu {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.fu.in {
  opacity: 1;
  transform: translateY(0);
}
/* ── Back to Top Button ── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--orange);
  color: var(--dark);
  border: none;
  border-radius: 2px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.2s;
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
#back-to-top:hover {
  background: var(--white);
}
/* ── Responsive ── */

/* ── Large tablet (900px–1100px) ── */
@media (max-width: 1100px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .comp-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-img-wrap {
    display: none;
  }
  .ft-top {
    grid-template-columns: 1fr 1fr;
  }
  .quote-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
  }
  .rev-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .markets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mkt-card {
    height: 260px;
  }
}

/* ── Tablet (768px–900px) ── */
@media (max-width: 900px) {
  section {
    padding: 4.5rem 2rem;
  }
  nav {
    padding: 0.9rem 1.75rem;
  }

  /* Nav collapses to hamburger at tablet */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 12, 18, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 999;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links.open a {
    font-size: 1.5rem;
  }
  .hamburger {
    display: flex;
  }
  .nav-portal {
    display: none;
  } /* hide portal link in hamburger — it appears in the menu */

  .hero h1 {
    font-size: clamp(3.8rem, 11vw, 6rem);
  }
  .hero-content {
    padding-top: 3rem;
  }
  .hero-btns {
    gap: 0.75rem;
  }

  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .markets-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mkt-card {
    height: 240px;
  }
  .port-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rev-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .quote-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .form-g {
    grid-template-columns: 1fr 1fr;
  }
  .comp-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .badge-row {
    flex-wrap: wrap;
  }
  .comp-badge {
    min-width: calc(50% - 0.75rem);
  }
  .ft-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .ft-bottom {
    flex-direction: column;
    text-align: center;
  }
  .clients-marquee::before,
  .clients-marquee::after {
    width: 60px;
  }
}

/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }
  nav {
    padding: 0.9rem 1.25rem;
  }

  .hero {
    min-height: 90vh;
  }
  .hero h1 {
    font-size: clamp(3.2rem, 12vw, 5rem);
  }
  .hero-content {
    padding-top: 2.5rem;
  }
  .hero-sub {
    font-size: 0.95rem;
    max-width: 100%;
  }
  .hero-btns {
    gap: 0.65rem;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    padding: 0.75rem 1.5rem;
    font-size: 0.78rem;
  }
  .hero-slash {
    display: none;
  }

  .clients-marquee::before,
  .clients-marquee::after {
    width: 40px;
  }
  .client-name {
    font-size: 1.05rem;
  }
  .client-item {
    padding: 0 1.75rem;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }
  .svc-card {
    padding: 1.75rem;
  }
  .markets-grid {
    grid-template-columns: 1fr;
  }
  .mkt-card {
    height: 220px;
  }
  .port-grid {
    grid-template-columns: 1fr 1fr;
  }
  .port-item {
    aspect-ratio: 1/1;
  }
  /* Always show port-info on mobile — no hover */
  .port-info {
    transform: translateY(0);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-cell {
    padding: 2rem 1rem;
  }
  .stat-num {
    font-size: 3.2rem;
  }

  .comp-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .badge-row {
    gap: 1rem;
  }
  .comp-badge {
    min-width: calc(50% - 0.5rem);
    padding: 1.1rem 0.9rem;
  }
  .comp-badge img {
    height: 46px;
  }
  .comp-points {
    gap: 1rem;
  }

  .rev-grid {
    grid-template-columns: 1fr;
  }
  .rev-card {
    padding: 1.25rem;
  }

  .quote-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-g {
    grid-template-columns: 1fr;
  }

  .ft-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ft-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .ft-badges {
    justify-content: center;
  }
  footer {
    padding: 3rem 1.5rem 2rem;
  }

  .sec-head h2 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
  .section-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
}

/* ── Small mobile (max 480px) ── */
@media (max-width: 480px) {
  section {
    padding: 3.5rem 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }
  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-outline {
    width: 100%;
    text-align: center;
  }

  .clients-label {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
  }
  .client-name {
    font-size: 0.95rem;
  }
  .client-item {
    padding: 0 1.25rem;
  }
  .clients-marquee::before,
  .clients-marquee::after {
    width: 30px;
  }

  .port-grid {
    grid-template-columns: 1fr;
  }
  .port-item {
    aspect-ratio: 4/3;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-cell {
    padding: 1.75rem 0.75rem;
  }
  .stat-num {
    font-size: 2.8rem;
  }

  .comp-badge {
    min-width: 100%;
  }

  .svc-num {
    font-size: 2.5rem;
  }
  .svc-card h3 {
    font-size: 1.3rem;
  }

  .badge-row {
    flex-direction: column;
  }
  .comp-badge img {
    height: 40px;
  }

  .ft-top {
    grid-template-columns: 1fr;
  }
  .ft-col h4 {
    margin-bottom: 0.75rem;
  }
  .ft-col ul li {
    margin-bottom: 0.4rem;
  }
}
.client-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(0.45); /* desaturates to match the steel tone */
  transition: filter 0.25s;
}
.clients-marquee:hover .client-logo {
  filter: brightness(0) invert(0.75); /* brightens slightly on hover */
}
