/* ================= Fitimi ================= */
:root {
  --bg: #0a0d12;
  --bg-2: #10151c;
  --bg-3: #161c25;
  --ink: #eef2f7;
  --mute: #8d99ab;
  --line: rgba(255, 255, 255, .08);
  --blue: #2f7bff;
  --blue-deep: #1250c4;
  --hot: #ff4a24;

  --g: 44px;                 /* x position of the pipe gutter */
  --pl: max(calc(var(--g) + 56px), calc((100vw - 1240px) / 2));
  --pr: max(32px, calc((100vw - 1240px) / 2));
  --radius: 18px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (max-width: 760px) {
  :root { --g: 16px; --pl: 44px; --pr: 20px; --radius: 14px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.02; font-stretch: 112%; }
p { margin: 0; }
figure { margin: 0; }

.wrap { padding-left: var(--pl); padding-right: var(--pr); }

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  max-width: 16ch;
}
.lead { margin-top: 20px; color: var(--mute); font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 42ch; }

/* split-text helpers (filled by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > i { display: inline-block; font-style: normal; will-change: transform; }

/* concrete + wire mesh floor */
.mesh {
  background-color: var(--bg-2);
  background-image:
    radial-gradient(ellipse at 50% 40%, transparent 0 40%, rgba(0,0,0,.55) 100%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
}

/* ================= buttons ================= */
.btn {
  --c: var(--blue);
  display: inline-flex; align-items: center; gap: .6em;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--c);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--c); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn--small { padding: 10px 18px; font-size: 14px; }
.btn--big { padding: 20px 34px; font-size: 19px; margin: 34px 0 40px; }
.btn--big.is-hot { --c: var(--hot); box-shadow: 0 0 0 0 rgba(255,74,36,.6); animation: hotPulse 1.8s infinite; }
@keyframes hotPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,74,36,.55); }
  70% { box-shadow: 0 0 0 22px rgba(255,74,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,74,36,0); }
}

/* ================= nav ================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px var(--pr) 20px var(--pl);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), background .3s, padding .3s;
}
.nav.is-solid { padding-top: 16px; padding-bottom: 16px; background: rgba(10,13,18,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; flex-direction: column; line-height: 1; }
.nav__word { font-weight: 900; font-stretch: 125%; font-size: 24px; color: var(--blue); letter-spacing: -.01em; }
.nav__sub { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-top: 4px; }
.nav__links { display: flex; gap: 30px; font-size: 15px; color: #c9d2de; }
.nav__links a:hover { color: #fff; }
@media (max-width: 900px) { .nav__links { display: none; } }

/* ================= pipe ================= */
[data-pipe] { position: relative; }
.pipe-seg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}
.pipe-seg .p-base { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pipe-seg .p-shine { fill: none; stroke: rgba(255,255,255,.38); stroke-linecap: round; stroke-linejoin: round; }
.pipe-seg .p-head { filter: drop-shadow(0 0 10px currentColor) drop-shadow(0 0 22px currentColor); }
/* content sits above the pipe, the pipe sits above the floor */
.proc__inner, .svc__head, .svc__track, .core__head, .core__frame,
.gal__head, .gal__grid, .contact__inner { position: relative; z-index: 3; }

/* ================= hero ================= */
.hero {
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(70px, 11vh, 120px);
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 74% 48%, rgba(47,123,255,.22), transparent 45%);
}
.hero__content { position: relative; z-index: 3; width: 100%; }
.hero__title {
  font-size: clamp(5.2rem, 12.5vw, 13rem);
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -.035em;
  line-height: .82;
  color: var(--blue);
  margin: 0 0 26px -.04em;
  text-shadow: 0 20px 80px rgba(47,123,255,.25);
}
.hero__title .ch { display: inline-block; will-change: transform; }
.hero__line { font-size: clamp(1.25rem, 2.6vw, 2.1rem); font-weight: 500; color: #dfe6ef; display: flex; flex-wrap: wrap; gap: .3em; }
.roller { display: inline-block; height: 1.25em; overflow: hidden; vertical-align: bottom; color: #fff; font-weight: 800; }
.roller__track { display: flex; flex-direction: column; }
.roller__track span { display: block; height: 1.25em; line-height: 1.25em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__scroll {
  position: absolute; z-index: 3; right: var(--pr); bottom: 34px;
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute);
}
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--blue), transparent); animation: drip 1.8s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  .hero { align-items: flex-end; padding-bottom: 60px; }
  .hero__title { font-size: 19vw; white-space: nowrap; margin-bottom: 20px; }
  .hero__actions .btn { padding: 13px 22px; }
  .hero__glow { background: radial-gradient(circle at 60% 28%, rgba(47,123,255,.22), transparent 55%); }
  .hero__scroll { display: none; }
}

/* ================= runs (pipe meanders between sections) ================= */
.run { height: 34vh; min-height: 220px; overflow: hidden; }
@media (max-width: 760px) { .run { height: 24vh; min-height: 170px; } }
.marquee {
  position: absolute; top: 50%; left: 0; z-index: 1;
  display: flex; white-space: nowrap;
  transform: translateY(-50%);
  font-size: clamp(3.5rem, 11vw, 10rem);
  font-weight: 900; font-stretch: 125%;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.13);
  will-change: transform;
}
.marquee span { padding-right: .3em; }

/* ================= process ================= */
.proc { height: 100vh; height: 100svh; background: var(--bg); overflow: hidden; }
.proc__inner { height: 100%; display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; align-items: center; }
.proc__count { display: flex; align-items: baseline; gap: 10px; margin-bottom: 26px; }
.proc__num { font-size: clamp(4rem, 8vw, 7rem); font-weight: 900; font-stretch: 125%; line-height: .9; color: var(--blue); font-variant-numeric: tabular-nums; }
.proc__total { color: var(--mute); font-weight: 600; }
.proc__steps { position: relative; min-height: 210px; }
.proc__step { position: absolute; inset: 0 0 auto 0; opacity: 0; }
.proc__step.is-on { opacity: 1; }
.proc__step h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.proc__step p { color: var(--mute); font-size: 1.1rem; max-width: 36ch; }
.proc__bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 28px; max-width: 320px; }
.proc__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--hot)); transform-origin: left; transform: scaleX(.25); }
.proc__media { position: relative; height: min(74vh, 720px); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.proc__img { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.proc__img:first-child { clip-path: inset(0 0 0 0); }
.proc__img img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
@media (max-width: 760px) {
  .proc__inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 22px; align-content: center; padding-top: 80px; padding-bottom: 30px; }
  .proc__text { order: 2; }
  .proc__media { order: 1; height: 42svh; }
  .proc__count { margin-bottom: 10px; }
  .proc__num { font-size: 3rem; }
  .proc__steps { min-height: 170px; }
  .proc__step h2 { font-size: 1.9rem; margin-bottom: 10px; }
  .proc__step p { font-size: 1rem; }
  .proc .kicker { margin-bottom: 8px; }
}

/* ================= services (horizontal) ================= */
.svc { height: 100vh; height: 100svh; padding-top: 60px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4.5vh; }
.svc__head { display: flex; flex-direction: column; }
.svc__head .h2 { font-size: clamp(2rem, 4.2vw, 3.8rem); max-width: 20ch; }
.svc__track { display: flex; gap: 26px; padding-left: var(--pl); padding-right: var(--pr); width: max-content; will-change: transform; }
.card {
  width: clamp(280px, 34vw, 480px);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.card__img { position: relative; height: clamp(200px, 36vh, 380px); overflow: hidden; }
.card__img img { position: absolute; top: 0; left: -12%; width: 124%; height: 100%; object-fit: cover; will-change: transform; }
.card__img--ph {
  display: grid; place-items: center; align-content: center; gap: 14px;
  color: rgba(255,255,255,.35); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  background: repeating-linear-gradient(135deg, var(--bg-2) 0 14px, #121821 14px 28px);
}
.card__img--ph svg { width: 64px; height: 64px; color: var(--blue); }
.card__body { padding: 24px 26px 28px; }
.card__n { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .1em; }
.card h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 800; margin: 8px 0 10px; }
.card p { color: var(--mute); font-size: 15.5px; }
@media (max-width: 760px) {
  .svc { gap: 3vh; }
  .card { width: 78vw; }
  .card__img { height: 30svh; }
  .card__body { padding: 18px 20px 22px; }
}

/* ================= boiler room ================= */
.core { height: 100vh; height: 100svh; padding-top: 76px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3vh; }
.core__head { align-self: stretch; text-align: left; }
.core__head .h2 { font-size: clamp(2rem, 4.2vw, 3.8rem); max-width: none; }
.core__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  width: min(84vw, calc((100svh - 300px) * 4 / 3));
  border-radius: var(--radius);
  overflow: hidden;
  will-change: transform;
}
.core__frame img { width: 100%; height: 100%; object-fit: cover; }
.spot {
  position: absolute; left: var(--x); top: var(--y);
  display: flex; align-items: center; gap: 10px;
  padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: default;
  margin: -11px 0 0 -11px;            /* centre the dot on (x, y); transform is left to GSAP */
  transform-origin: 11px 50%;
}
.spot--l { left: auto; right: calc(100% - var(--x)); margin: -11px -11px 0 0; flex-direction: row-reverse; transform-origin: calc(100% - 11px) 50%; }
.spot i {
  position: relative; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px rgba(255,255,255,.9);
  flex-shrink: 0;
}
.spot i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #fff; animation: ping 2s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.spot span {
  background: rgba(10,13,18,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
@media (max-width: 760px) {
  .core__frame { width: calc(100vw - var(--pl) - var(--pr)); margin-left: calc(var(--pl) - var(--pr)); }
  .spot span { font-size: 11px; padding: 5px 9px; }
  .spot i { width: 16px; height: 16px; }
  .spot { margin: -8px 0 0 -8px; transform-origin: 8px 50%; }
  .spot--l { margin: -8px -8px 0 0; transform-origin: calc(100% - 8px) 50%; }
}

/* ================= stats ================= */
.stats { background: var(--blue-deep); padding: clamp(80px, 14vh, 140px) 0; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px;
}
.stats__grid { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat b { font-size: clamp(2.8rem, 6vw, 5.4rem); font-weight: 900; font-stretch: 125%; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat sup { font-size: clamp(1.1rem, 2vw, 1.8rem); font-weight: 800; vertical-align: top; margin-left: 4px; position: relative; top: .3em; }
.stat span { display: block; margin-top: 10px; color: rgba(255,255,255,.75); font-size: 15px; }
@media (max-width: 900px) { .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 50px; } }

/* ================= gallery ================= */
.gal { padding: clamp(100px, 16vh, 170px) 0 clamp(80px, 12vh, 140px); background: var(--bg); }
.gal__head { margin-bottom: clamp(50px, 8vh, 90px); }
.gal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.gal__col { display: flex; flex-direction: column; gap: 22px; will-change: transform; }
.gal__col[data-speed="1"] { margin-top: 90px; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--bg-3); }
.shot img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.gal__col:nth-child(2) .shot:nth-child(2) img, .gal__col:nth-child(1) .shot:nth-child(1) img { aspect-ratio: 4 / 3; }
.shot.is-ready img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.shot.is-ready:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute; left: 14px; bottom: 14px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(10,13,18,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 600;
}
@media (max-width: 760px) {
  .gal__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gal__col { gap: 12px; }
  .gal__col:nth-child(3) { display: none; }
  .gal__col[data-speed="1"] { margin-top: 50px; }
  .shot figcaption { left: 8px; bottom: 8px; font-size: 11px; padding: 5px 9px; }
}

/* ================= contact ================= */
.contact { padding: clamp(80px, 12vh, 140px) 0 clamp(90px, 14vh, 160px); background: var(--bg); overflow: hidden; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.contact__text { position: relative; z-index: 3; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-width: 460px; }
.contact__list li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list span { color: var(--mute); }
.contact__list a, .contact__list b { font-weight: 600; text-align: right; }
.contact__list a:hover { color: var(--blue); }
.van { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); will-change: transform; }
.van img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__van { order: -1; }
}

/* ================= footer ================= */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-top: 30px; padding-bottom: 34px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
.foot__logo { font-weight: 900; font-stretch: 125%; color: var(--blue); font-size: 20px; }

/* ================= lightbox ================= */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4vw; background: rgba(5,7,10,.92); opacity: 0; pointer-events: none; transition: opacity .35s; }
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb img { max-height: 88vh; max-width: 100%; border-radius: 12px; transform: scale(.94); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.lb.is-open img { transform: scale(1); }
.lb button { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 28px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .hero__scroll i, .spot i::after, .btn--big.is-hot { animation: none; }
}
