/* =========================================================
   NOFRICA — Novel Africa Enterprise
   Main stylesheet
   Palette: #eb5e28 · #252422 · #403d39 · #ccc5b9 · #fffcf2
   ========================================================= */

:root {
  --orange: #eb5e28;
  --orange-deep: #c94a1a;
  --ink: #252422;
  --graphite: #403d39;
  --sand: #ccc5b9;
  --sand-soft: #e6e1d6;
  --cream: #fffcf2;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  --header-h: 84px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --shadow: 0 24px 60px -24px rgba(37, 36, 34, .35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: .005em;
}
h1 { font-size: clamp(3rem, 8vw, 7rem); text-transform: uppercase; font-weight: 800; }
h2 { font-size: clamp(2.4rem, 5vw, 4.25rem); text-transform: uppercase; font-weight: 800; }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
p { margin: 0 0 1.1em; }
em.accent, .accent { color: var(--orange); font-style: italic; }
::selection { background: var(--orange); color: var(--cream); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 9999;
  background: var(--ink); color: var(--cream); padding: 10px 16px;
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--dark { background: var(--ink); color: var(--sand); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--graphite { background: var(--graphite); color: var(--sand); }
.section--graphite h2, .section--graphite h3 { color: var(--cream); }
.section--sand { background: var(--sand-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--graphite); }
.section--dark .lead, .section--graphite .lead { color: var(--sand); }
.muted { color: #6d675f; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--orange); --fg: var(--cream);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 30px; border: 0; border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease-out), transform .3s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translateX(-101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: translateX(0); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--cream); box-shadow: inset 0 0 0 2px rgba(255,252,242,.6); }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover { color: var(--ink); }
.btn--dark { --bg: var(--ink); }
.btn--dark::before { background: var(--orange); }
.btn--outline { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--outline:hover { color: var(--cream); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  border-bottom: 2px solid var(--orange); padding-bottom: 4px;
}
.link-arrow svg { width: 18px; transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(6px); }
.section--dark .link-arrow, .section--graphite .link-arrow { color: var(--cream); }

/* =========================================================
   LOADER — the logo is laid course by course like brickwork
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: var(--cream);
  transition: transform 1s var(--ease-in-out);
}
.loader.is-done { transform: translateY(-100%); }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.loader__logo {
  position: relative; width: min(220px, 52vw); aspect-ratio: 1116 / 1200;
}
.loader__course {
  position: absolute; left: 0; width: 100%;
  background-image: url("../images/brand/nofrica-logo.png");
  background-size: 100% auto; background-repeat: no-repeat;
  opacity: 0;
  animation: lay-course .7s var(--ease-out) forwards;
}
.loader__course:nth-child(odd)  { --from: -60px; }
.loader__course:nth-child(even) { --from: 60px; }
@keyframes lay-course {
  from { opacity: 0; transform: translate(var(--from), -26px); }
  to   { opacity: 1; transform: translate(0, 0); }
}
.loader__level {
  width: min(260px, 60vw); height: 6px; background: var(--sand);
  border-radius: 3px; overflow: hidden; position: relative;
}
.loader__level span {
  position: absolute; inset: 0; background: var(--orange);
  transform-origin: left; transform: scaleX(0);
  transition: transform .3s linear;
}
.loader__meta {
  display: flex; justify-content: space-between; width: min(260px, 60vw);
  font-family: var(--font-display); font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; font-size: .85rem; color: var(--graphite);
}
.loader__meta b { color: var(--orange); font-weight: 800; }

/* =========================================================
   BRICK PAGE TRANSITION
   ========================================================= */
.brickwall {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  display: flex; flex-direction: column;
}
.brickwall__row {
  flex: 1; display: flex; gap: 6px; padding: 3px 0; overflow: hidden;
  transform: translateX(-110%);
  will-change: transform;
}
.brickwall__row:nth-child(even) { margin-left: -6vw; width: calc(100% + 12vw); }
.brickwall__brick {
  flex: 1 1 auto; min-width: 0; border-radius: 2px;
  background: var(--graphite);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.06);
}
.brickwall__brick.o { background: var(--orange); }
.brickwall__brick.i { background: var(--ink); }
.brickwall__brick.s { background: #5a554f; }
.brickwall__mortar { position: absolute; inset: 0; background: var(--sand); z-index: -1; opacity: 0; transition: opacity .2s; }

/* covering state (bricks swept in from the left) */
.brickwall.is-in { pointer-events: all; }
.brickwall.is-in .brickwall__mortar { opacity: 1; transition-delay: .35s; }
.brickwall.is-in .brickwall__row {
  transform: translateX(0);
  transition: transform .6s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms);
}
/* page arrives already covered, then bricks leave to the right */
.brickwall.is-covered .brickwall__row { transform: translateX(0); transition: none; }
.brickwall.is-covered .brickwall__mortar { opacity: 1; }
.brickwall.is-out .brickwall__row {
  transform: translateX(110%);
  transition: transform .7s var(--ease-in-out);
  transition-delay: calc(var(--i) * 45ms);
}
.brickwall.is-out .brickwall__mortar { opacity: 0; transition-delay: .1s; }
.brickwall__badge {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
  transition: opacity .3s;
}
.brickwall__badge img { width: 130px; padding: 14px 16px; background: var(--cream); border-radius: 6px; box-shadow: 0 0 0 6px var(--orange), 0 20px 50px rgba(0,0,0,.45); }
.brickwall.is-in .brickwall__badge, .brickwall.is-covered .brickwall__badge { opacity: 1; transition-delay: .45s; }
.brickwall.is-covered .brickwall__badge { transition-delay: 0s; }
.brickwall.is-out .brickwall__badge { opacity: 0; transition-delay: 0s; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.topbar {
  background: var(--ink); color: var(--sand);
  font-size: .85rem; position: relative; z-index: 60;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.topbar a:hover { color: var(--orange); }
.topbar svg { width: 14px; height: 14px; color: var(--orange); }
.topbar__group { display: flex; gap: 24px; align-items: center; }
.topbar__social { display: flex; gap: 14px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  transition: background .4s, box-shadow .4s, transform .5s var(--ease-out);
}
.page--hero .header { position: fixed; left: 0; right: 0; top: 40px; }
.header.is-scrolled { background: rgba(255,252,242,.96); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -20px rgba(0,0,0,.4); }
.page--hero .header.is-scrolled { top: 0; }
.header.is-hidden { transform: translateY(-110%); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.header__logo { display: flex; align-items: center; gap: 12px; }
.header__logo img { height: 64px; width: auto; transition: height .4s; }
.header.is-scrolled .header__logo img { height: 54px; }
.header__logo .logo-light { display: none; }
.page--hero .header:not(.is-scrolled) .logo-dark { display: none; }
.page--hero .header:not(.is-scrolled) .logo-light { display: block; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link svg { width: 12px; transition: transform .3s; }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }
.page--hero .header:not(.is-scrolled) .nav__link { color: var(--cream); }

.nav__dropdown {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  background: var(--cream); padding: 12px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-top: 3px solid var(--orange);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .35s var(--ease-out);
}
.nav__item:hover .nav__dropdown, .nav__item:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a {
  display: block; padding: 10px 14px; border-radius: 3px; font-weight: 600; font-size: .95rem; color: var(--graphite);
  transition: background .25s, color .25s, padding .25s;
}
.nav__dropdown a:hover { background: var(--sand-soft); color: var(--orange); padding-left: 20px; }
.nav__cta { margin-left: 14px; padding: 13px 22px; font-size: .95rem; }

.burger {
  display: none; width: 48px; height: 48px; border: 0; background: var(--orange);
  border-radius: var(--radius); position: relative; z-index: 70;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 3px; background: var(--cream);
  transition: transform .4s var(--ease-out), opacity .3s, top .3s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; right: 18px; }
.burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 65; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-in-out);
  overflow-y: auto;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu nav a {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 11vw, 4rem); text-transform: uppercase; color: var(--cream);
  line-height: 1.15; opacity: 0; transform: translateY(30px);
  transition: opacity .5s, transform .6s var(--ease-out), color .3s;
}
.mobile-menu nav a span { color: var(--orange); font-size: .4em; vertical-align: super; margin-right: 10px; }
.mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { color: var(--orange); }
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(1) { transition-delay: .25s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .32s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .39s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .46s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .53s; }
.mobile-menu__sub { margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mobile-menu__sub a { font-family: var(--font-body) !important; font-size: .95rem !important; font-weight: 600 !important; text-transform: none !important; color: var(--sand) !important; }
.mobile-menu__foot { margin-top: 40px; color: var(--sand); font-size: .95rem; border-top: 1px solid rgba(204,197,185,.2); padding-top: 24px; }
.mobile-menu__foot a { color: var(--orange); font-weight: 700; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end;
  color: var(--cream); overflow: hidden; background: var(--ink);
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.15);
  animation: kenburns 18s ease-out forwards;
}
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.18) translate(1%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(37,36,34,.55) 0%, rgba(37,36,34,.15) 35%, rgba(37,36,34,.85) 100%),
    linear-gradient(90deg, rgba(37,36,34,.7) 0%, rgba(37,36,34,0) 70%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: clamp(120px, 16vh, 170px); padding-top: 180px; width: 100%; }
.hero h1 { color: var(--cream); max-width: 12ch; margin-bottom: 24px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); }
.is-ready .hero h1 .line > span { animation: rise 1.1s var(--ease-out) forwards; }
.is-ready .hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.is-ready .hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }
.hero__tag {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.25; max-width: 34ch; color: var(--cream); margin-bottom: 10px;
}
.hero__sub { font-size: 1.05rem; color: var(--sand); max-width: 52ch; }
.hero__sub em { color: var(--orange); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.fade-up { opacity: 0; transform: translateY(30px); }
.is-ready .fade-up { animation: fadeUp 1s var(--ease-out) forwards; animation-delay: var(--d, .4s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 48px; z-index: 3;
  writing-mode: vertical-rl; font-family: var(--font-display); letter-spacing: .3em;
  text-transform: uppercase; font-size: .8rem; font-weight: 700; color: var(--sand);
  display: flex; align-items: center; gap: 14px;
}
.hero__scroll::after { content: ""; width: 2px; height: 70px; background: linear-gradient(var(--orange) 50%, rgba(255,255,255,.2) 50%); background-size: 100% 200%; animation: scrollLine 2s linear infinite; }
@keyframes scrollLine { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.hero__dots { position: absolute; left: var(--gutter); bottom: 48px; z-index: 3; display: flex; gap: 10px; }
.hero__dots button { width: 34px; height: 4px; border: 0; padding: 0; background: rgba(255,252,242,.35); position: relative; overflow: hidden; }
.hero__dots button.is-active::after { content: ""; position: absolute; inset: 0; background: var(--orange); animation: dotfill 7s linear forwards; transform-origin: left; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Inner page hero */
.page-hero {
  position: relative; padding: 220px 0 110px; color: var(--cream); background: var(--ink); overflow: hidden;
}
.page-hero__media { position: absolute; inset: -10% 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(37,36,34,.9), rgba(37,36,34,.35)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--cream); margin-bottom: 18px; }
.page-hero p { max-width: 60ch; color: var(--sand); font-size: 1.15rem; }
.crumbs { display: flex; gap: 10px; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--sand); margin-bottom: 26px; }
.crumbs a:hover { color: var(--orange); }
.crumbs span { color: var(--orange); }

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats {
  position: relative; z-index: 5; margin-top: -70px;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--cream); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden;
}
.stat { padding: 34px 28px; border-right: 1px solid var(--sand-soft); position: relative; }
.stat:last-child { border-right: 0; }
.stat::before { content: ""; position: absolute; left: 28px; top: 0; width: 40px; height: 4px; background: var(--orange); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 4vw, 3.6rem); color: var(--ink); line-height: 1; }
.stat__num sup { color: var(--orange); font-size: .5em; }
.stat__label { font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #6d675f; margin-top: 8px; }

/* =========================================================
   SOLUTIONS LIST (home)
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.solutions { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.solutions li a {
  display: grid; grid-template-columns: 64px 1fr 28px; align-items: center; gap: 22px;
  padding: 22px 8px; border-bottom: 1px solid var(--sand);
  transition: padding .4s var(--ease-out), background .4s;
}
.solutions li a:hover { padding-left: 22px; background: var(--sand-soft); }
.solutions .ico { width: 64px; height: 64px; display: grid; place-items: center; border: 2px solid var(--orange); border-radius: 50%; color: var(--orange); transition: background .3s, color .3s; }
.solutions li a:hover .ico { background: var(--orange); color: var(--cream); }
.solutions .ico svg { width: 30px; height: 30px; }
.solutions h3 { margin: 0; font-size: 1.7rem; text-transform: uppercase; }
.solutions p { margin: 4px 0 0; font-size: .95rem; color: #6d675f; }
.solutions .arr { width: 24px; color: var(--orange); transition: transform .4s var(--ease-out); }
.solutions li a:hover .arr { transform: translateX(6px); }

/* =========================================================
   ALTERNATING SERVICE BLOCKS
   ========================================================= */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: stretch; }
.feature + .feature { margin-top: clamp(40px, 6vw, 80px); }
.feature--rev .feature__media { order: 2; }
.feature__media { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 420px; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.feature:hover .feature__media img { transform: scale(1.05); }
.feature__body {
  background: var(--cream); padding: clamp(32px, 5vw, 64px);
  margin: 48px 0 48px -64px; position: relative; z-index: 2; box-shadow: var(--shadow); border-radius: var(--radius);
  align-self: center;
}
.feature--rev .feature__body { margin: 48px -64px 48px 0; }
.feature__num { font-family: var(--font-display); font-weight: 800; font-size: 5rem; line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--orange); margin-bottom: 10px; display: block; }
.feature__body ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.feature__body li { padding-left: 26px; position: relative; }
.feature__body li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 7px; background: var(--orange); border-radius: 1px; }

/* image reveal wipe */
.wipe { position: relative; overflow: hidden; }
.wipe::after {
  content: ""; position: absolute; inset: 0; background: var(--orange); z-index: 3;
  transform: scaleX(1); transform-origin: right;
  transition: transform 1.1s var(--ease-in-out);
}
.wipe.is-visible::after { transform: scaleX(0); }

/* =========================================================
   GENERIC CARDS / GRIDS
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.img-stack { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 560px; }
.img-stack figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.img-stack figure:first-child { grid-row: span 2; }
.img-stack img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.img-stack figure:hover img { transform: scale(1.06); }

.badge-float {
  position: absolute; left: -28px; bottom: 40px; z-index: 4;
  background: var(--orange); color: var(--cream); padding: 22px 26px; border-radius: var(--radius);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; box-shadow: var(--shadow);
}
.badge-float b { display: block; font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: 0; }

.contact-point { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--graphite); border-radius: var(--radius); overflow: hidden; }
.contact-point__body { padding: clamp(36px, 6vw, 80px); color: var(--sand); }
.contact-point__body h2 { color: var(--cream); }
.contact-point__media { position: relative; min-height: 420px; }
.contact-point__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person { display: flex; align-items: center; gap: 16px; margin: 26px 0 32px; }
.person__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--cream); flex: none; }
.person strong { color: var(--cream); display: block; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .04em; }
.person span { font-size: .9rem; }

/* process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: step; }
.process::before { content: ""; position: absolute; top: 44px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 14px, transparent 14px 24px); }
.step { text-align: center; padding: 0 20px; position: relative; }
.step__ico {
  width: 90px; height: 90px; margin: 0 auto 26px; border-radius: 50%; background: var(--ink); color: var(--orange);
  display: grid; place-items: center; position: relative; z-index: 2; border: 4px solid var(--graphite);
  transition: transform .5s var(--ease-out), background .4s;
}
.step:hover .step__ico { transform: translateY(-8px) rotate(-6deg); background: var(--orange); color: var(--cream); }
.step__ico svg { width: 38px; height: 38px; }
.step__ico::after {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -6px; right: -10px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: var(--cream); font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  display: grid; place-items: center; border: 3px solid var(--ink);
}
.step h3 { text-transform: lowercase; font-size: 2rem; }
.step h3::first-letter { text-transform: none; }
.step p { font-size: .95rem; color: var(--sand); }

/* project mosaic (home) */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 240px; gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); grid-column: span 2; }
.tile--wide { grid-column: span 4; }
.tile--tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), opacity .5s; opacity: .92; }
.tile:hover img { transform: scale(1.08); opacity: .55; }
.tile__info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; color: var(--cream);
  background: linear-gradient(transparent, rgba(37,36,34,.92));
  transform: translateY(30%); opacity: .0; transition: all .5s var(--ease-out);
}
.tile:hover .tile__info, .tile:focus-visible .tile__info { transform: none; opacity: 1; }
.tile__info small { color: var(--orange); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; }
.tile__info h3 { color: var(--cream); margin: 6px 0 0; font-size: 1.5rem; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 54px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 46ch; margin: 0; }

/* marquee */
.marquee { overflow: hidden; background: var(--orange); color: var(--cream); padding: 22px 0; }
.marquee__track { display: flex; gap: 60px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: 60px; }
.marquee__track span::after { content: ""; width: 26px; height: 14px; background: var(--ink); border-radius: 2px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); padding: clamp(70px, 9vw, 120px) 0; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image:
    linear-gradient(var(--sand) 2px, transparent 2px),
    linear-gradient(90deg, var(--sand) 2px, transparent 2px);
  background-size: 120px 50px, 120px 50px;
  background-position: 0 0, 0 0;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.cta-band .container { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--cream); margin: 0; max-width: 16ch; }
.cta-band .phone-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--orange); display: block; margin-bottom: 14px; letter-spacing: .02em; }

/* =========================================================
   COMPANY PAGE
   ========================================================= */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--sand); border-radius: var(--radius); overflow: hidden; }
.mvv__card { background: var(--cream); padding: 44px 36px; position: relative; transition: background .5s; }
.mvv__card:hover { background: var(--ink); }
.mvv__card:hover h3, .mvv__card:hover p { color: var(--cream); }
.mvv__card .ico { width: 54px; height: 54px; color: var(--orange); margin-bottom: 22px; }
.mvv__card h3 { text-transform: uppercase; font-size: 2rem; transition: color .4s; }
.mvv__card p { transition: color .4s; margin: 0; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { padding: 30px; border: 1px solid rgba(204,197,185,.2); border-radius: var(--radius); transition: border-color .4s, transform .4s var(--ease-out); }
.value:hover { border-color: var(--orange); transform: translateY(-6px); }
.value b { font-family: var(--font-display); color: var(--orange); font-size: 1.1rem; letter-spacing: .18em; display: block; margin-bottom: 8px; }
.value h3 { font-size: 1.7rem; text-transform: uppercase; }
.value p { margin: 0; font-size: .95rem; }

.leader { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.leader__photo { position: relative; }
.leader__photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.leader__photo::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 3px solid var(--orange); border-radius: var(--radius); z-index: -1; }
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 40px;
  background: var(--sand-soft); font-size: .85rem; font-weight: 700; color: var(--graphite);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.timeline { position: relative; max-width: 920px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 120px; top: 0; bottom: 0; width: 2px; background: var(--sand); }
.tl { display: grid; grid-template-columns: 120px 1fr; gap: 0 48px; padding: 0 0 46px; position: relative; }
.tl__year { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--ink); line-height: 1; }
.tl::after { content: ""; position: absolute; left: 113px; top: 8px; width: 16px; height: 16px; background: var(--orange); border: 4px solid var(--cream); box-shadow: 0 0 0 2px var(--orange); }
.tl h3 { font-size: 1.6rem; margin-bottom: 6px; }
.tl p { margin: 0; }

.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--sand); border-radius: var(--radius); overflow: hidden; }
.client { background: var(--cream); padding: 34px 26px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; transition: background .4s; }
.client:hover { background: var(--sand-soft); }
.client strong { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); line-height: 1.1; text-transform: uppercase; }
.client span { font-size: .85rem; color: #6d675f; }

.compliance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.compliance div { padding: 26px; border-left: 4px solid var(--orange); background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0; }
.compliance b { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); display: block; text-transform: uppercase; }
.compliance span { font-size: .9rem; color: #6d675f; }

/* =========================================================
   SERVICES PAGE
   ========================================================= */
.service-nav { position: sticky; top: var(--header-h); z-index: 20; background: var(--ink); }
.service-nav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.service-nav .container::-webkit-scrollbar { display: none; }
.service-nav a {
  white-space: nowrap; padding: 18px 20px; color: var(--sand); font-family: var(--font-display);
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem;
  border-bottom: 3px solid transparent; transition: color .3s, border-color .3s;
}
.service-nav a:hover, .service-nav a.is-active { color: var(--cream); border-color: var(--orange); }
.service-detail { scroll-margin-top: calc(var(--header-h) + 70px); }
.service-detail .split { align-items: start; }
.service-detail__media { position: sticky; top: calc(var(--header-h) + 90px); }
.service-detail__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 32px; }
.scope div { padding: 18px; background: var(--sand-soft); border-radius: var(--radius); font-weight: 600; font-size: .95rem; color: var(--ink); display: flex; gap: 12px; align-items: flex-start; }
.scope svg { width: 22px; height: 22px; flex: none; color: var(--orange); margin-top: 1px; }
.section--sand .scope div { background: var(--cream); }

/* =========================================================
   PORTFOLIO (equipment-rental style stacked list)
   ========================================================= */
.pf-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.pf-intro h1 { color: var(--ink); text-transform: lowercase; font-size: clamp(3.2rem, 9vw, 7.5rem); margin: 0; }
.pf-intro h1 b { color: var(--orange); text-transform: uppercase; font-weight: 800; }
.pf-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 0; }
.pf-cats a, .pf-cats button {
  padding: 12px 22px; border-radius: 40px; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem;
  transition: background .3s, color .3s, border-color .3s;
}
.pf-cats a:hover, .pf-cats .is-active { background: var(--orange); border-color: var(--orange); color: var(--cream); }
.callout {
  margin-top: 40px; padding: 26px 30px; background: var(--ink); color: var(--sand); border-radius: var(--radius);
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: space-between;
}
.callout strong { color: var(--cream); font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .03em; display: block; }
.callout p { margin: 0; }

.pf-section { padding: clamp(60px, 8vw, 110px) 0 20px; scroll-margin-top: var(--header-h); }
.pf-section__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; border-bottom: 3px solid var(--ink); padding-bottom: 18px; margin-bottom: 40px; }
.pf-section__head h2 { margin: 0; }
.pf-section__head h2 small { display: block; font-size: .32em; color: var(--orange); letter-spacing: .25em; margin-bottom: 8px; }

.pf-item {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(26px, 4vw, 56px);
  padding: 34px 0; border-bottom: 1px solid var(--sand); align-items: center;
}
.pf-item:last-child { border-bottom: 0; }
.pf-item__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--sand); display: block; }
.pf-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.pf-item:hover .pf-item__media img { transform: scale(1.05); }
.status {
  position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 12px; border-radius: 3px;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: var(--cream); color: var(--ink);
}
.status--live { background: var(--orange); color: var(--cream); }
.status--live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cream); margin-right: 7px; animation: pulse 1.4s infinite; vertical-align: 1px; }
.status--ph { background: var(--ink); color: var(--sand); }
@keyframes pulse { 50% { opacity: .2; } }
.pf-item h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); text-transform: uppercase; margin-bottom: 10px; }
.pf-item__spec { color: #6d675f; margin-bottom: 20px; }
.pf-item__notes { font-size: .9rem; font-style: italic; color: var(--graphite); margin: -6px 0 20px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.tiers div { padding: 14px 16px; border-right: 2px solid var(--ink); }
.tiers div:last-child { border-right: 0; }
.tiers span { display: block; font-size: .72rem; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; color: var(--orange); }
.tiers b { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); line-height: 1.2; }
.is-placeholder h3, .is-placeholder .tiers b { color: #8b847a; }
.is-placeholder .pf-item__media { outline: 2px dashed var(--orange); outline-offset: -2px; }
.pf-item.is-hidden, .pf-section.is-hidden { display: none; }

/* project detail */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--sand); border-radius: var(--radius); overflow: hidden; margin: -60px 0 0; position: relative; z-index: 4; box-shadow: var(--shadow); }
.facts div { background: var(--cream); padding: 26px; }
.facts span { display: block; font-size: .75rem; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.facts b { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; display: block; position: relative; }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.gallery a:hover img { transform: scale(1.06); }

.lightbox { position: fixed; inset: 0; z-index: 8000; background: rgba(37,36,34,.95); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 86vh; width: auto; border-radius: var(--radius); transform: scale(.94); transition: transform .5s var(--ease-out); }
.lightbox.is-open img { transform: none; }
.lightbox button { position: absolute; top: 20px; right: 20px; width: 50px; height: 50px; border: 0; border-radius: 50%; background: var(--orange); color: var(--cream); font-size: 1.6rem; line-height: 1; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.ccard { display: flex; gap: 18px; padding: 24px; background: var(--cream); border-radius: var(--radius); border: 1px solid var(--sand); transition: border-color .3s, transform .4s var(--ease-out); }
a.ccard:hover { border-color: var(--orange); transform: translateX(6px); }
.ccard .ico { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--ink); color: var(--orange); display: grid; place-items: center; }
.ccard .ico svg { width: 22px; height: 22px; }
.ccard span { display: block; font-size: .78rem; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; color: #6d675f; }
.ccard b { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); font-weight: 700; line-height: 1.2; }
.hours { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .95rem; }
.hours td { padding: 10px 0; border-bottom: 1px dashed var(--sand); }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--ink); }

.form { background: var(--ink); padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); color: var(--sand); position: relative; overflow: hidden; }
.form h2 { color: var(--cream); font-size: clamp(2rem, 4vw, 3rem); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; margin-bottom: 18px; }
.field label { display: block; font-size: .78rem; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; color: var(--sand); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: var(--radius); border: 2px solid var(--graphite);
  background: var(--graphite); color: var(--cream); font: inherit; font-size: 1rem;
  transition: border-color .3s, background .3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #353330; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #ff8a65; }
.field .err { color: #ff8a65; font-size: .82rem; margin-top: 6px; display: none; }
.field.has-error .err { display: block; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.radios label { cursor: pointer; }
.radios input { position: absolute; opacity: 0; }
.radios span { display: inline-block; padding: 10px 16px; border-radius: 40px; border: 2px solid var(--graphite); font-weight: 700; font-size: .88rem; transition: all .3s; }
.radios input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--cream); }
.radios input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.form__note { font-size: .82rem; color: #9a948a; margin: 14px 0 0; }
.form__success { position: absolute; inset: 0; background: var(--orange); color: var(--cream); display: grid; place-items: center; text-align: center; padding: 40px; transform: translateY(100%); transition: transform .8s var(--ease-in-out); }
.form__success.is-shown { transform: none; }
.form__success h3 { color: var(--cream); font-size: 2.6rem; text-transform: uppercase; }
.map { border-radius: var(--radius); overflow: hidden; height: 420px; background: var(--sand); filter: grayscale(.85) contrast(1.05); transition: filter .6s; }
.map:hover { filter: none; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--sand); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 50px 24px 0; position: relative; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--cream); display: grid; place-items: center; font-size: 1.4rem; transition: transform .4s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 50px 24px 0; margin: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--sand); padding: 90px 0 0; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--orange) 0 60px, var(--ink) 60px 64px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.footer__brand img { width: 120px; margin-bottom: 20px; }
.footer__brand p { font-size: .95rem; max-width: 34ch; }
.footer h4 { color: var(--cream); font-size: 1.15rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 22px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { transition: color .3s, padding .3s; font-size: .95rem; }
.footer ul a:hover { color: var(--orange); padding-left: 6px; }
.footer__contact a { color: var(--cream); font-weight: 700; }
.footer__contact li { font-size: .95rem; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(204,197,185,.3); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--orange); border-color: var(--orange); color: var(--cream); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom { border-top: 1px solid rgba(204,197,185,.15); padding: 24px 0; font-size: .85rem; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--orange); }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--orange); color: var(--cream); display: grid; place-items: center; opacity: 0; transform: translateY(20px); transition: all .4s var(--ease-out); box-shadow: var(--shadow); }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top svg { width: 20px; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal--left { transform: translateX(-50px); }
.reveal--right { transform: translateX(50px); }
.reveal.is-visible { opacity: 1; transform: none; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--wi) * 40ms); }
.split-words.is-visible .w > span { transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .tile--wide { grid-column: span 4; }
  .clients, .compliance { grid-template-columns: repeat(2, 1fr); }
  .leader { grid-template-columns: 300px 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .header__logo img { height: 54px; }
  .split, .contact-grid, .pf-intro, .contact-point { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--sand-soft); }
  .feature, .feature--rev { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: 0; }
  .feature__media { min-height: 300px; }
  .feature__body, .feature--rev .feature__body { margin: -60px 16px 0; }
  .grid-3, .values, .mvv { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr 1fr; gap: 50px 0; }
  .process::before { display: none; }
  .img-stack { height: 420px; }
  .badge-float { left: 12px; bottom: 12px; }
  .pf-item { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 1fr; }
  .leader__photo { max-width: 340px; }
  .leader__photo::before { inset: 16px -12px -12px 16px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .service-detail__media { position: relative; top: 0; }
  .contact-point__media { min-height: 280px; order: -1; }
  .hero__scroll { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar__group.hide-sm, .topbar__social { display: none; }
  .topbar .container { justify-content: center; }
  .stats { margin-top: -50px; }
  .stat { padding: 26px 18px; }
  .stat::before { left: 18px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .tile, .tile--wide { grid-column: span 2; }
  .tile--tall { grid-row: span 1; }
  .tile__info { opacity: 1; transform: none; padding: 16px; }
  .tile__info h3 { font-size: 1.2rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .form__row, .scope { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .tiers div { border-right: 0; border-bottom: 2px solid var(--ink); }
  .tiers div:last-child { border-bottom: 0; }
  .clients, .compliance, .grid-4, .gallery { grid-template-columns: 1fr; }
  .gallery a:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
  .process { grid-template-columns: 1fr; }
  .solutions li a { grid-template-columns: 52px 1fr 22px; gap: 14px; }
  .solutions .ico { width: 52px; height: 52px; }
  .solutions h3 { font-size: 1.4rem; }
  .img-stack { height: 340px; gap: 10px; }
  .timeline::before { left: 7px; }
  .tl { grid-template-columns: 1fr; padding-left: 40px; }
  .tl::after { left: 0; }
  .tl__year { margin-bottom: 8px; }
  .page-hero { padding: 170px 0 80px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 18px; }
  .callout { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .reveal, .fade-up { opacity: 1; transform: none; }
  .hero h1 .line > span, .split-words .w > span { transform: none; }
  .wipe::after { display: none; }
}

/* loader shown only on first visit in a session */
.no-loader .loader { display: none; }

/* mobile menu sits under the header so the logo + close button stay visible */
.mobile-menu { z-index: 45; }
body.is-locked .header { background: transparent !important; box-shadow: none !important; transform: none !important; }
body.is-locked .header .logo-dark { display: none; }
body.is-locked .header .logo-light { display: block; }
.page--hero .header { transition: background .4s, box-shadow .4s, transform .5s var(--ease-out), top .3s; }
