/* =========================================================
   FORTY INFRASTRUCTURE GROUP — one-page site
   Brand: red #F20F0F · ink #0B0D0E · Inter
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --red: #F20F0F;
  --red-deep: #C60C0C;
  --ink: #0B0D0E;
  --ink-soft: #16191b;
  --paper: #F4F2EF;
  --paper-2: #EAE7E1;
  --line: rgba(11, 13, 14, .12);
  --line-light: rgba(255, 255, 255, .14);
  --muted: #6b6b6b;
  --white: #ffffff;

  --maxw: 1400px;
  --pad: clamp(20px, 5vw, 90px);
  --ease: cubic-bezier(.6, .01, .05, .99);

  --f-display: clamp(2rem, 5vw, 85px);
  --f-h2: clamp(1.9rem, 3.2vw, 3rem);
}

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

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }

/* Hide reveal targets only when JS is ready (no-JS = fully visible) */
html.ready [data-reveal],
html.ready [data-reveal-words] .word,
html.ready [data-line] { opacity: 0; }

/* Failsafe: if animations never run, never leave content invisible */
html.force-visible [data-reveal],
html.force-visible [data-reveal-words] .word,
html.force-visible [data-line] { opacity: 1 !important; transform: none !important; }

/* Failsafe: force everything visible if animations never fire */
html.force-visible [data-reveal],
html.force-visible [data-reveal-words] .word,
html.force-visible [data-line] { opacity: 1 !important; transform: none !important; }

/* =============== TYPOGRAPHY HELPERS =============== */
.h-display {
  font-size: var(--f-h2);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.03em;
}
.word, .line { display: inline-block; }
[data-reveal-words] .word { will-change: transform, opacity; }
/* Reveal masks: keep overflow-hidden from clipping descenders (g, y, &) */
.word-wrap { padding-bottom: .14em; margin-bottom: -.14em; }

/* =============== PRELOADER =============== */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: grid; place-items: center;
}
.preloader__inner { text-align: center; }
.preloader__mark {
  width: 74px; margin: 0 auto 26px;
  animation: pulse 1.1s var(--ease) infinite alternate;
}
@keyframes pulse { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.05); opacity: 1; } }
.preloader__meta {
  display: flex; align-items: baseline; gap: 18px; justify-content: center;
  color: #fff; font-weight: 800; letter-spacing: .22em;
}
.preloader__word { font-size: 14px; }
.preloader__count { font-size: 14px; color: var(--red); font-variant-numeric: tabular-nums; }
.preloader.is-done { transform: translateY(-100%); transition: transform .9s var(--ease); }

/* =============== CUSTOM CURSOR =============== */
.cursor { position: fixed; top: 0; left: 0; z-index: 9000; pointer-events: none; mix-blend-mode: difference; display: none; }
.cursor__dot {
  position: fixed; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
}
.cursor__ring {
  position: fixed; width: 38px; height: 38px; border: 1px solid #fff; border-radius: 50%;
  transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s;
}
.cursor.is-hover .cursor__ring { width: 62px; height: 62px; background: rgba(255,255,255,.1); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } body.has-cursor { cursor: none; } }

/* =============== HEADER =============== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s;
}
.header.is-scrolled {
  background: rgba(11, 13, 14, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line-light);
}
.header__logo img { height: 46px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 34px; }
.header__nav a { color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .01em; position: relative; }
.header__nav > a[data-nav]::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--red);
  transition: width .35s var(--ease);
}
.header__nav > a[data-nav]:hover::after { width: 100%; }
.header__cta {
  border: 1px solid rgba(255,255,255,.4); border-radius: 100px; padding: 9px 20px;
  transition: background .3s, color .3s, border-color .3s;
}
.header__cta:hover { background: var(--red); border-color: var(--red); }
.header__burger { display: none; background: none; border: 0; flex-direction: column; gap: 6px; cursor: pointer; padding: 8px; }
.header__burger span { width: 26px; height: 2px; background: #fff; transition: transform .35s var(--ease), opacity .3s; }
.header__burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu */
.mobilemenu {
  position: fixed; inset: 0; z-index: 700; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad); transform: translateY(-100%); transition: transform .6s var(--ease);
  visibility: hidden;
}
.mobilemenu.is-open { transform: translateY(0); visibility: visible; }
.mobilemenu__nav { display: flex; flex-direction: column; gap: 4px; }
.mobilemenu__nav a {
  color: #fff; font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 800; letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 16px; padding: 6px 0;
}
.mobilemenu__nav a span { font-size: 13px; font-weight: 600; color: var(--red); letter-spacing: .1em; }
.mobilemenu__foot { margin-top: 48px; display: flex; flex-direction: column; gap: 8px; color: #aaa; font-size: 15px; }

/* =============== HERO =============== */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) clamp(20px, 4vh, 44px); overflow: hidden; color: #fff;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 120%; object-fit: cover; object-position: center 40%; will-change: transform; transform: scaleX(-1); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,13,14,.82) 0%, rgba(11,13,14,.45) 42%, rgba(11,13,14,0) 78%),
    linear-gradient(180deg, rgba(11,13,14,.55) 0%, rgba(11,13,14,.2) 32%, rgba(11,13,14,.4) 66%, rgba(11,13,14,.94) 100%);
}
.hero__content { max-width: none; margin-top: auto; padding-top: 120px; transform: translateY(-50px); }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 26px; color: #eee;
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(242,15,15,.25); }
.hero__title {
  font-size: var(--f-display); font-weight: 800; line-height: 1.06; letter-spacing: -.03em;
  padding-right: clamp(0px, 3vw, 48px);
}
.hero__sub { max-width: 46rem; font-size: clamp(1rem, 1.4vw, 1.22rem); color: #dcdcdc; margin-top: 26px; }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 100px; font-weight: 600; font-size: 15px;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s; will-change: transform;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #fff; color: var(--ink); }
.btn--ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hero__foot {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 64px); margin-top: clamp(60px, 9vh, 104px);
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); flex-wrap: wrap;
}
.hero__stat { font-size: 15px; font-weight: 600; }
.hero__stat span { color: var(--red); font-size: 11px; letter-spacing: .12em; display: block; margin-bottom: 3px; }
.hero__scroll { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #ccc; }
.hero__scrollline { width: 46px; height: 1px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.hero__scrollline::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: translateX(-100%); animation: scrollline 2.1s var(--ease) infinite; }
@keyframes scrollline { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* =============== MARQUEE =============== */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding: 11px 0; border-block: 1px solid rgba(0,0,0,.08); }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; will-change: transform; }
.marquee__group {
  flex-shrink: 0; white-space: nowrap;
  font-size: clamp(.8rem, 1.5vw, 1.2rem); font-weight: 500; letter-spacing: .01em; padding-right: .3em;
  text-transform: uppercase;
}
.marquee__track i { font-style: normal; opacity: .55; margin: 0 .35em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =============== SECTION SCAFFOLD =============== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vh, 170px) var(--pad); }
.section__head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(34px, 6vh, 70px); }
.section__num { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: .05em; }
.section__label { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.section__head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section__head--light .section__label { color: rgba(255,255,255,.6); }
.section__head--light.section__head::after { background: var(--line-light); }

/* =============== ABOUT =============== */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.about__media { grid-column: 1; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.about__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.about__body { grid-column: 2; align-self: center; }
.about__h { margin-bottom: 60px; }
.about__mission {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 700; line-height: 1.25; letter-spacing: -.015em;
  padding-left: 22px; border-left: 3px solid var(--red); margin-bottom: 60px;
}
.about__body p { font-size: clamp(1rem, 1.25vw, 1.18rem); color: #333; }
.about__body p + p { margin-top: 18px; }
.pullquote {
  margin-top: clamp(60px, 10vh, 130px); font-size: clamp(1.5rem, 3.6vw, 3.2rem); font-weight: 700;
  line-height: 1.12; letter-spacing: -.02em; max-width: 16ch; padding-left: clamp(0px, 3vw, 40px);
  border-left: 3px solid var(--red);
}
.pullquote { max-width: 22ch; }

/* =============== STATS =============== */
.stats { background: var(--ink); color: #fff; }
.stats__row {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 9vh, 110px) var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat { border-left: 1px solid var(--line-light); padding-left: 22px; }
.stat__num {
  font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums; color: #fff;
}
.stat__num .plus { color: var(--red); }
.stat__label { margin-top: 12px; font-size: 14px; color: #9a9a9a; letter-spacing: .02em; }
.stat__label em { color: var(--red); font-style: normal; font-weight: 600; }

/* =============== SERVICES =============== */
.services__title { max-width: 16ch; margin-bottom: clamp(40px, 7vh, 80px); }
.services__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.svc-list { list-style: none; }
.svc {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start;
  padding: clamp(24px, 3.4vh, 40px) 0; border-top: 1px solid var(--line); cursor: pointer;
  transition: padding-left .4s var(--ease);
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__no { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 8px; transition: color .3s; }
.svc__body h3 { font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 700; letter-spacing: -.02em; transition: color .3s; }
.svc__body p { margin-top: 10px; color: #555; max-width: 48ch; font-size: 1rem; }
.svc__arrow { font-size: 24px; color: var(--muted); padding-top: 4px; transition: transform .4s var(--ease), color .3s; }
.svc.is-active { padding-left: 18px; }
.svc.is-active .svc__no { color: var(--red); }
.svc.is-active .svc__body h3 { color: var(--red); }
.svc.is-active .svc__arrow { transform: translate(6px, -6px); color: var(--red); }

.svc-preview {
  position: sticky; top: 110px; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden;
  background: var(--paper-2);
}
.svc-preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform 6s ease; transform: scale(1.04); }
.svc-preview.is-swapping img { opacity: 0; }

/* =============== APPROACH =============== */
.approach__top { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.approach__intro > p { margin-top: 24px; font-size: clamp(1rem, 1.25vw, 1.16rem); color: #333; max-width: 46ch; }
.approach__media { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--paper-2); }
.approach__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }

.competencies {
  list-style: none; margin: clamp(40px, 6vh, 70px) 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.comp {
  display: flex; align-items: center; gap: 12px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--white);
  font-weight: 600; font-size: 1.05rem; transition: border-color .3s, transform .3s var(--ease);
}
.comp::before { content: ""; width: 9px; height: 9px; background: var(--red); border-radius: 2px; transform: rotate(45deg); flex: none; }
.comp:hover { border-color: var(--red); transform: translateY(-3px); }

.approach__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.minicard {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 26px;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.minicard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.35); }
.minicard h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.minicard h4::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--red); border-radius: 2px; margin-right: 10px; transform: rotate(45deg); }
.minicard p { color: #555; font-size: .97rem; }

/* =============== PROJECTS =============== */
.projects__title { max-width: 14ch; margin-bottom: clamp(40px, 7vh, 80px); }
.projects__feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard {
  background: var(--ink); color: #fff; border-radius: 10px; padding: clamp(28px, 3vw, 44px);
  min-height: 260px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .4s var(--ease), background .4s; position: relative; overflow: hidden;
}
.pcard::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(242,15,15,.35), transparent 70%); }
.pcard:hover { transform: translateY(-6px); background: var(--red-deep); }
.pcard__val { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pcard h3 { font-size: 1.3rem; font-weight: 700; margin-top: auto; }
.pcard p { color: #b5b5b5; font-size: .9rem; margin-top: 6px; letter-spacing: .02em; }
.pcard:hover p { color: rgba(255,255,255,.85); }

.projects__civil { margin-top: clamp(50px, 8vh, 90px); }
.projects__civilhead { margin-bottom: clamp(20px, 3vh, 36px); }
.projects__civilhead h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; }
.projects__civilhead p { color: #666; margin-top: 10px; }
.worklist { list-style: none; }
.worklist li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.worklist li:last-child { border-bottom: 1px solid var(--line); }
.worklist li span { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; }
.worklist li span b { color: var(--red); font-weight: 600; font-size: .7em; }
.worklist li em { color: var(--muted); font-style: normal; font-size: .95rem; }

/* =============== COMPLIANCE =============== */
.compliance {
  max-width: none; padding: 0; background: var(--ink); color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
}
.compliance__media { overflow: hidden; min-height: 420px; }
.compliance__media img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; transform: scale(1.08); }
.compliance__panel { padding: clamp(60px, 9vh, 130px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.compliance__panel > p { color: #b9b9b9; max-width: 50ch; margin-top: 22px; font-size: 1.05rem; }
.compliance .h-display { color: #fff; font-size: clamp(2rem, 4.6vw, 64px); }
.badges { display: grid; gap: 14px; margin-top: 44px; }
.badge {
  border: 1px solid var(--line-light); border-radius: 8px; padding: 22px 24px;
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 18px;
  transition: border-color .3s, background .3s;
}
.badge:hover { border-color: var(--red); background: rgba(242,15,15,.06); }
.badge__name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.badge__grade { color: var(--red); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.badge__full { color: #9a9a9a; font-size: .86rem; text-align: right; }

/* =============== CLIENTS =============== */
.clients__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.clients__lead p { margin-top: 24px; color: #333; font-size: clamp(1rem, 1.25vw, 1.16rem); max-width: 46ch; }
.clients__list { list-style: none; }
.clients__list li {
  display: flex; align-items: center; gap: 22px; padding: clamp(20px, 3vh, 34px) 0;
  border-top: 1px solid var(--line); font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 700; letter-spacing: -.02em;
  transition: color .3s, padding-left .4s var(--ease);
}
.clients__list li:last-child { border-bottom: 1px solid var(--line); }
.clients__list li span { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: .05em; }
.clients__list li:hover { color: var(--red); padding-left: 12px; }

/* =============== CONTACT =============== */
.contact { background: var(--ink); color: #fff; max-width: none; }
.contact > * { max-width: var(--maxw); margin-inline: auto; }
.contact__title {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  margin-bottom: clamp(50px, 8vh, 90px); text-align: left;
}
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 4vw, 60px); }
.contact__col { display: flex; flex-direction: column; gap: 10px; padding-top: 26px; border-top: 1px solid var(--line-light); }
.contact__k { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 8px; }
.contact__v { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; width: max-content; max-width: 100%; position: relative; }
.contact__v::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 1px; background: var(--red); transition: width .35s var(--ease); }
.contact__v:hover::after { width: 100%; }
.contact__addr { font-style: normal; font-size: 1rem; font-weight: 500; line-height: 1.6; color: #ddd; }
.contact__dir { color: var(--red); font-weight: 600; margin-top: 4px; width: max-content; }

/* =============== FOOTER =============== */
.footer { background: #050607; color: #fff; padding: clamp(50px, 7vh, 80px) var(--pad) 36px; }
.footer__top { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-light); }
.footer__logo { height: 40px; width: auto; }
.footer__tag { max-width: 42ch; color: #9a9a9a; font-size: .98rem; }
.footer__bottom { max-width: var(--maxw); margin: 0 auto; padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #777; font-size: .85rem; }
.footer__bottom a:hover { color: var(--red); }
.footer__by { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.footer__by:hover { color: var(--red); }

/* =============== RESPONSIVE =============== */
@media (max-width: 1024px) {
  .about__grid, .approach__top, .clients__grid { grid-template-columns: 1fr; }
  .about__media, .about__body { grid-column: 1; }
  .about__media { max-width: 460px; }
  .approach__media { max-width: 560px; }
  .services__layout { grid-template-columns: 1fr; }
  .svc-preview { display: none; }
  .compliance { grid-template-columns: 1fr; }
  .compliance__media { min-height: 220px; max-height: 40vh; order: -1; }
  .stats__row { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .competencies { grid-template-columns: repeat(2, 1fr); }
  .minicard { flex: 1; }
}

@media (max-width: 780px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }
  .projects__feature { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .approach__cards { grid-template-columns: 1fr; }
  .competencies { grid-template-columns: 1fr; }
  .badge { grid-template-columns: 1fr; gap: 6px; text-align: left; }
  .badge__full { text-align: left; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
  .worklist li em { width: 100%; }
  /* Hero buttons stay side by side on mobile */
  .hero__actions { flex-wrap: nowrap; gap: 10px; }
  .hero__actions .btn { flex: 0 1 auto; padding: 11px 20px; font-size: 13px; }
  .compliance__media { min-height: 180px; max-height: 30vh; }
  /* Less heading padding on smaller devices so it stays wide on 2 lines */
  .hero__title { padding-right: 0; }
}

@media (max-width: 480px) {
  .stats__row { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line-light); padding-left: 0; padding-top: 18px; }
}

/* =============== REDUCED MOTION =============== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.ready [data-reveal], html.ready [data-reveal-words] .word, html.ready [data-line] { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
  .hero__img { height: 100%; }
  .cursor { display: none !important; }
  body.has-cursor { cursor: auto !important; }
}
