/* ==========================================================================
   Sai Infra Services — one-page site
   Palette taken from the company profile: navy, royal blue, amber, vermilion,
   periwinkle. Headings: Archivo (expanded). Body: Figtree.
   ========================================================================== */

:root {
  --ink: #0E2236;
  --ink-2: #17324E;
  --royal: #032C73;
  --royal-2: #0B449F;
  --amber: #F2A93B;
  --vermilion: #E4522A;
  --vermilion-deep: #C63B17;
  --peri: #8FA0DB;
  --paper: #F4F6FB;
  --white: #FFFFFF;
  --text: #1D2E42;
  --muted: #53657C;
  --line: rgba(14, 34, 54, .14);

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 76px;
  --cut: 34px;               /* size of the diagonal corner on cards */
  --ease: cubic-bezier(.2, .7, .2, 1);
}



/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.sec--paper :focus-visible, .sec--white :focus-visible { outline-color: var(--royal-2); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--sm { width: 20px; height: 20px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 18px; border-radius: 8px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.h2, .h3, .hero__title, .stat__num, .fact__v, .band__text, .mission__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -.02em;
}
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.06; color: var(--ink); max-width: 19ch; }
.h2::after {
  content: ""; display: block; width: 64px; height: 6px; margin-top: 22px;
  background: var(--amber); border-radius: 3px;
  transform-origin: left; transition: transform .9s var(--ease) .2s;
}
.js .h2.reveal:not(.is-in)::after { transform: scaleX(0); }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.15; color: var(--ink); font-stretch: 108%; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 60ch; }

/* ---------- Layout helpers ---------- */
.sec { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.sec--paper { background: var(--paper); }
.sec--white { background: var(--white); }
.sec__head { display: grid; gap: 22px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head .h2 { max-width: 20ch; }

/* Diagonal-corner cards — echoes the slanted stripes in the company profile */
.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }

/* Rounded "floating note" card style, modelled on the amber note card that
   overlaps the About photo in the redesign: solid colour, soft shadow,
   gentle lift on hover, no diagonal-cut corner. Used on the About note,
   the Mission cards and the Safety/Strengths cards. */
.card-float { border-radius: 14px; box-shadow: 0 22px 44px -22px rgba(14,34,54,.35); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card-float:hover { transform: translateY(-8px); box-shadow: 0 30px 56px -22px rgba(14,34,54,.42); }
.diff.card-float { animation: cardFloat 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .diff.card-float { animation: none; } }
@keyframes cardFloat { 50% { transform: translateY(-10px); } }


/* Colour themes for cards */
.c-royal    { background: var(--royal);          color: #fff; --chip: rgba(255,255,255,.14); }
.c-amber    { background: var(--amber);          color: var(--ink); --chip: rgba(14,34,54,.12); }
.c-vermilion{ background: var(--vermilion-deep); color: #fff; --chip: rgba(255,255,255,.16); }
.c-peri     { background: var(--peri);           color: var(--ink); --chip: rgba(14,34,54,.12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .9em 1.7em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #FFBE5C; }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--royal { background: var(--royal); color: #fff; }
.btn--royal:hover { background: var(--royal-2); }
.btn--outline { border-color: var(--royal); color: var(--royal); background: transparent; }
.btn--outline:hover { background: var(--royal); color: #fff; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h); display: flex; align-items: center; transition: background-color .35s, box-shadow .35s; }
.nav::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(14,34,54,.8), rgba(14,34,54,0)); transition: opacity .3s; pointer-events: none; }
.nav.is-solid { background: rgba(14,34,54,.94); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
@supports (backdrop-filter: blur(1px)) { .nav.is-solid { background: rgba(14,34,54,.88); backdrop-filter: blur(14px); } }
.nav.is-solid::before { opacity: 0; }
.nav__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); margin-left: auto; }
.nav__links a { position: relative; color: #fff; font-weight: 600; font-size: .96rem; padding: 8px 2px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { padding: .7em 1.4em; }
.nav__toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; color: #fff; place-items: center; border-radius: 10px; }

/* ---------- Section rail (scroll progress + quick nav) ---------- */
.rail { position: fixed; right: 22px; top: 50%; z-index: 40; width: 14px; height: min(58vh, 520px); transform: translateY(-50%); --p: 0; }
.rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(140,150,170,.55); border-radius: 2px; }
.rail__fill { position: absolute; left: 50%; top: 0; width: 2px; margin-left: -1px; height: calc(var(--p) * 100%); background: var(--amber); border-radius: 2px; box-shadow: 0 0 10px 1px rgba(242,169,59,.8); transition: height .12s linear; }
.rail__node { position: absolute; left: 50%; top: var(--y); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; border: 2px solid #7C8AA3; box-shadow: 0 0 0 2px rgba(14,34,54,.35); transition: transform .3s var(--ease), background-color .3s, border-color .3s; }
.rail__node.is-passed { background: var(--amber); border-color: var(--amber); }
.rail__node.is-active { transform: scale(1.5); background: var(--vermilion); border-color: #fff; }
.rail__node span { position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%) scale(.9); padding: 4px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.3; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.rail__node:hover span, .rail__node:focus-visible span { opacity: 1; transform: translate(0, -50%) scale(1); }

/* ---------- Hero ---------- */
.hero {
  --slant: clamp(32px, 6vw, 90px);
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 32px) 0 calc(var(--slant) + 20px);
  color: #fff; background: var(--ink); overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.hero__media { position: absolute; inset: -10% 0; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(14,34,54,.94) 0%, rgba(14,34,54,.76) 42%, rgba(14,34,54,.28) 100%),
  linear-gradient(0deg, rgba(14,34,54,.9) 0%, rgba(14,34,54,0) 45%); }

.hero__wires { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 34%, #000 62%); mask-image: linear-gradient(90deg, transparent 34%, #000 62%); }
.hero__wires .tower { opacity: .9; }
.wire { stroke: rgba(255,255,255,.42); stroke-width: 1.6; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.2s var(--ease) forwards; animation-delay: calc(.4s + var(--k) * .08s); }
.pulse { stroke: var(--amber); stroke-width: 3; stroke-dasharray: 26 974; stroke-dashoffset: 26; opacity: 0; filter: drop-shadow(0 0 6px rgba(242,169,59,.9)); animation: travel 4.6s linear infinite; animation-delay: calc(2.4s + var(--k) * .55s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes travel { 0% { stroke-dashoffset: 26; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { stroke-dashoffset: -974; opacity: 0; } }
.hero__wires .tower { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 2.6s var(--ease) .1s forwards; }

.hero__body { position: relative; will-change: transform, opacity; }
.hero__copy { max-width: 860px; }
.hero__title { font-size: clamp(2.3rem, 4.9vw, 4.5rem); line-height: 1.03; color: #fff; max-width: 17ch; }
.hero__lead { margin-top: 24px; max-width: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* split-word headline reveal */
.js .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js .w > span { display: inline-block; transform: translateY(112%); animation: rise .95s var(--ease) forwards; animation-delay: calc(var(--d, 0ms) + .3s); }
@keyframes rise { to { transform: none; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(28px, 4vw, 52px); max-width: 980px; }
.fact { display: grid; gap: 2px; padding: 18px 26px 20px; background: rgba(14,34,54,.62); border-top: 5px solid var(--c); }
@supports (backdrop-filter: blur(1px)) { .fact { backdrop-filter: blur(8px); } }
.fact__v { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.1; }
.fact__l { font-size: .92rem; line-height: 1.4; color: rgba(255,255,255,.82); }

/* ---------- Frames with parallax images ---------- */
.frame { position: relative; overflow: hidden; border-radius: 6px; background: var(--ink); }
.frame img, .band__media img, .safety__media img, .clients__media img, .pcard img {
  position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform;
}
.frame { aspect-ratio: 4 / 3; }
.frame--tall { aspect-ratio: 4 / 5; }

/* Photo wipe on entrance */
.js .wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.js .reveal.is-in .wipe, .js .wipe.is-in { clip-path: inset(0); }

/* ---------- Scroll reveal (cards, images, text blocks) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(36px, 7vw, 110px); align-items: start; }
.about__text { display: grid; gap: 22px; }
.about__text > p:not(.lead) { color: var(--muted); max-width: 62ch; }
.diff { margin-top: 14px; padding: 30px 32px 32px; background: var(--amber); color: var(--ink); }
.diff h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: 1.35rem; margin-bottom: 10px; }
.about__media { position: relative; padding-bottom: 150px; }
.about__media::before { content: ""; position: absolute; right: -18px; top: -18px; width: 58%; height: 58%; background: var(--vermilion); border-radius: 6px; }
.about__media .frame { position: relative; z-index: 1; }
.glance { position: absolute; z-index: 2; left: -8%; bottom: 0; width: min(360px, 82%); display: grid; gap: 16px; padding: 28px 30px 30px; background: var(--royal); color: #fff; }
.glance dt { font-weight: 700; font-size: .92rem; color: var(--amber); }
.glance dd { font-size: 1.02rem; line-height: 1.4; }

.mission { margin-top: clamp(64px, 9vw, 120px); display: grid; gap: clamp(28px, 4vw, 48px); }
.mission__head { display: grid; gap: 14px; max-width: 900px; }
.mission__text { font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.22; color: var(--ink); }
.mission__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mcard { display: grid; align-content: start; gap: 18px; padding: 28px 26px 30px; min-height: 230px; transition: transform .35s var(--ease); }
.mcard .ico { width: 34px; height: 34px; }
.mcard p { font-weight: 500; line-height: 1.5; }

/* ---------- Vision band ---------- */
.band {
  --cut-y: clamp(28px, 5vw, 72px);
  position: relative; overflow: hidden; color: #fff; background: var(--ink);
  padding: calc(var(--cut-y) + clamp(64px, 9vw, 130px)) 0;
  clip-path: polygon(0 var(--cut-y), 100% 0, 100% calc(100% - var(--cut-y)), 0 100%);
  margin-top: calc(-1 * var(--cut-y) * .4);
}
.band__media { position: absolute; inset: 0; }
.band__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,34,54,.92), rgba(3,44,115,.62)); }
.band__body { position: relative; display: grid; gap: 22px; }
.band__title { color: var(--amber); }
.band__text { font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.14; max-width: 26ch; }

/* ---------- Services ---------- */
.svc-grid, .str-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc, .str { display: flex; flex-direction: column; gap: 14px; padding: 30px 26px 28px; transition: transform .35s var(--ease); }
.svc { position: relative; isolation: isolate; overflow: hidden; }
.svc::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; }
.svc:hover::before { transform: none; }
.svc__num { position: absolute; right: 20px; top: 58px; font-family: var(--font-display); font-weight: 800; font-size: 3.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px currentColor; opacity: .3; transition: opacity .4s; }
.svc:hover .svc__num { opacity: .18; }
.svc:hover, .svc:hover h3, .svc:hover p { color: #fff; }
.svc__link { display: inline-flex; align-items: center; gap: 8px; }
.svc__link .ico { transition: transform .4s var(--ease); }
.svc__link:hover .ico { transform: translateX(4px); }

.svc { min-height: 380px; }
.svc:hover { transform: translateY(-8px); }
.svc__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--chip); margin-bottom: 8px; transition: transform .5s var(--ease); }
.svc:hover .svc__icon, .str:hover .svc__icon { transform: rotate(-12deg) scale(1.08); }
.svc h3, .str h4 { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.01em; }
.svc p, .str p { font-size: 1rem; line-height: 1.55; }
.svc__link { margin-top: auto; padding: 8px 0 0; align-self: flex-start; background: none; border: 0; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Detail tabs */
.detail { margin-top: clamp(56px, 8vw, 100px); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab { padding: .75em 1.35em; border-radius: 999px; border: 2px solid var(--c); background: transparent; color: var(--ink); font-weight: 700; transition: background-color .25s, color .25s, transform .25s var(--ease); }
.tab:hover { transform: translateY(-2px); }
.tab[aria-selected="true"] { background: var(--c); color: var(--tc); }
.panel[hidden] { display: none; }
.panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); margin-top: 40px; animation: panelIn .55s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.steps li { position: relative; padding: 20px 0 20px 68px; border-bottom: 1px solid var(--line); animation: stepIn .6s var(--ease) both; }
.panel .steps li:nth-child(1) { animation-delay: .05s; } .panel .steps li:nth-child(2) { animation-delay: .1s; }
.panel .steps li:nth-child(3) { animation-delay: .15s; } .panel .steps li:nth-child(4) { animation-delay: .2s; }
.panel .steps li:nth-child(5) { animation-delay: .25s; } .panel .steps li:nth-child(6) { animation-delay: .3s; }
@keyframes stepIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.steps li::before { position: absolute; left: 0; top: 20px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: var(--tc); font: 800 1.05rem/1 var(--font-display); }
.steps--ordered li { counter-increment: step; }
.steps--ordered li::before { content: counter(step); }
.steps:not(.steps--ordered) li::before { content: "\2713"; }
.steps strong { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 106%; font-size: 1.15rem; line-height: 1.25; color: var(--ink); margin-bottom: 4px; }
.steps p { color: var(--muted); max-width: 56ch; }
.panel__media { align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); }
.panel__media .frame { aspect-ratio: 4 / 4.2; border-bottom: 8px solid var(--c); }

/* ---------- Projects ---------- */
.proj { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.pcard { position: relative; overflow: hidden; border-radius: 12px; background: var(--ink); color: #fff; min-height: 300px; isolation: isolate; }
.pcard--a { grid-column: 1 / 8; grid-row: 1; min-height: 520px; }
.pcard--c { grid-column: 8 / 13; grid-row: 1; min-height: 520px; }
.pcard--c img { object-position: 50% 60%; }
.pcard--b { grid-column: 1 / 13; grid-row: 2; min-height: 340px; }
.pcard::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, rgba(14,34,54,.8)); z-index: 0; }
.pcard img { z-index: -1; transition: filter .5s; }
.pcard__cap { position: absolute; z-index: 1; right: 16px; top: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(14,34,54,.72); font-size: .88rem; font-weight: 600; }
.pcard__tag { position: absolute; z-index: 1; left: 0; bottom: 24px; padding: 12px 22px 12px 20px; background: var(--c); color: var(--tc); font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.2; border-radius: 0 999px 999px 0; }
.stat { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(20px, 4vw, 56px); margin-top: 20px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 60px); background: var(--royal); color: #fff; }
.stat__num { font-size: clamp(4rem, 9vw, 7.5rem); line-height: .95; color: var(--amber); }
.stat__text h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.15; margin-bottom: 8px; }
.stat__text p { max-width: 54ch; color: rgba(255,255,255,.84); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: .6em 1.25em; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink); font-weight: 700; font-size: .95rem; transition: background-color .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.masonry { column-count: 3; column-gap: 16px; margin-top: 36px; }
.shot { position: relative; display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; overflow: hidden; border-radius: 8px; background: var(--ink); break-inside: avoid; cursor: zoom-in; }
.shot[hidden] { display: none; }
.shot img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.06); }
.shot::after { content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; text-align: left; font-weight: 600; font-size: .95rem; line-height: 1.3; color: #fff; background: linear-gradient(transparent, rgba(14,34,54,.88)); border-bottom: 5px solid var(--k, var(--amber)); transform: translateY(101%); transition: transform .45s var(--ease); }
.shot:hover::after, .shot:focus-visible::after { transform: none; }
.shot.is-showing { animation: shotIn .55s var(--ease) both; }
@keyframes shotIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.shot[data-cat^="solar"] { --k: var(--amber); }
.shot[data-cat^="telecom"] { --k: var(--peri); }
.shot[data-cat^="electrical"] { --k: var(--vermilion); }
.shot[data-cat^="civil"] { --k: var(--royal-2); }

/* Lightbox */
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(8,18,30,.94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; animation: fadeIn .3s; }
.lightbox::backdrop { background: rgba(8,18,30,.7); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__fig { display: grid; gap: 14px; justify-items: center; max-width: 92vw; }
.lightbox__fig img { max-width: min(92vw, 1400px); max-height: 78vh; width: auto; height: auto; border-radius: 6px; }
.lightbox__fig figcaption { font-weight: 600; text-align: center; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); background: rgba(14,34,54,.6); color: #fff; transition: background-color .2s, color .2s; }
.lightbox__btn:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.lightbox__btn--close { top: 20px; right: 20px; }
.lightbox__btn--prev { left: 20px; top: 50%; margin-top: -26px; }
.lightbox__btn--next { right: 20px; top: 50%; margin-top: -26px; }

/* ---------- Safety ---------- */
.safety { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.safety__media { position: absolute; inset: 0; }
.safety__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,34,54,.94) 0%, rgba(14,34,54,.8) 45%, rgba(14,34,54,.5) 100%), linear-gradient(0deg, rgba(14,34,54,.92) 0%, rgba(14,34,54,0) 55%); }
.safety__body { position: relative; }
.sec__head--dark .h2, .sec__head--dark .lead { color: #fff; }
.safety__sub { color: #fff; margin: 12px 0 28px; }
.str-grid { grid-template-columns: repeat(3, 1fr); }
.str { min-height: 250px; }

/* ---------- Clients ---------- */
.clients { background: var(--paper); }
.clients__band { position: relative; overflow: hidden; color: #fff; background: var(--ink); padding: clamp(80px, 10vw, 130px) 0 clamp(150px, 16vw, 220px); }
.clients__media { position: absolute; inset: 0; }
.clients__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,34,54,.92), rgba(14,34,54,.6)); }
.clients__head { position: relative; display: grid; gap: 22px; }
.clients__head .h2, .clients__head .lead { color: #fff; }
.clients__stage { padding-bottom: clamp(72px, 10vw, 130px); }
.carousel { --gap: 0px; --per: 4; position: relative; margin-top: calc(-1 * clamp(90px, 10vw, 130px)); background: #fff; border-radius: 14px; box-shadow: 0 30px 70px -18px rgba(14,34,54,.28); overflow: hidden; }
.carousel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__track { display: flex; }
.logo { position: relative; flex: 0 0 calc(100% / var(--per)); min-width: 0; scroll-snap-align: start;
  display: grid; place-items: center; height: 190px; padding: 28px 36px; border-right: 1px solid var(--line); transition: background-color .4s; }
.logo:hover { background: var(--paper); transform: none; }
.logo img { max-height: 96px; width: auto; max-width: 100%; object-fit: contain; filter: none; opacity: 1; transition: filter .5s, opacity .5s, transform .5s var(--ease); }
.logo:hover img { filter: grayscale(1); opacity: .7; }
.carousel__controls { display: flex; justify-content: center; gap: 12px; margin-top: 44px; }
.carousel__controls[hidden] { display: none; }
.carousel__btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(14,34,54,.25); background: #fff; color: var(--ink); transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.carousel__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.carousel__btn--play { margin-left: 14px; border-color: var(--amber); background: var(--amber); }
.carousel__btn--play:hover { background: #FFBE5C; color: var(--ink); border-color: #FFBE5C; }
.carousel .ico { width: 22px; height: 22px; }


/* ---------- DTH crawler rig rental ---------- */
.rig { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.rig__media { position: relative; padding-bottom: 40px; }
.rig__accent { position: absolute; left: -18px; bottom: 4px; width: 62%; height: 62%; background: var(--amber); border-radius: 6px; }
.rig__media .frame { position: relative; z-index: 1; box-shadow: 0 30px 60px -26px rgba(14,34,54,.35); }
.rig__content { display: grid; gap: 14px; }
.rig__eyebrow { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; color: var(--vermilion-deep); margin: 0; }
.rig__content .lead { margin-bottom: 6px; }
.rig__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 20px; }
.rig-spec { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.rig-spec:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -20px rgba(14,34,54,.28); }
.rig-spec__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(242,169,59,.18); color: var(--vermilion-deep); }
.rig-spec__icon .ico { width: 20px; height: 20px; }
.rig-spec span { display: block; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .01em; color: var(--muted); }
.rig-spec p { margin-top: 3px; font-family: var(--font-display); font-weight: 800; font-stretch: 106%; font-size: 1.02rem; line-height: 1.3; color: var(--ink); }
.rig-spec--wide { grid-column: span 2; }
.rig__content .btn { justify-self: start; }
@media (max-width: 900px) {
  .rig { grid-template-columns: 1fr; }
  .rig__media { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .rig__specs { grid-template-columns: 1fr; }
  .rig-spec--wide { grid-column: auto; }
}


/* ---------- Founder quote ---------- */
.founder__inner { position: relative; display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(36px, 7vw, 110px); align-items: center; }
.founder__photo { position: relative; max-width: 420px; padding-bottom: 46px; }
.founder__block { position: absolute; left: -16px; bottom: 0; width: 70%; height: 70%; background: var(--royal); border-radius: 12px; z-index: 0; }
.founder__photo .frame { position: relative; z-index: 1; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -24px rgba(14,34,54,.35); }
.founder__photo .frame img { top: 0; height: 100%; object-position: 50% 0; }
.founder__quote { display: grid; gap: 22px; }
.founder__eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .02em; color: var(--vermilion-deep); margin: 0; }
.founder__mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--amber); color: var(--ink); }
.founder__mark .ico { width: 30px; height: 30px; }
.founder blockquote { margin: 0; }
.founder blockquote p { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; letter-spacing: -.015em; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.28; color: var(--ink); max-width: 24ch; }
.founder__name { margin: 0; display: grid; gap: 2px; padding-left: 20px; border-left: 5px solid var(--vermilion); }
.founder__name strong { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: 1.2rem; color: var(--ink); }
.founder__name span { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 110px); align-items: start; }
.faq__intro { display: grid; gap: 22px; position: sticky; top: calc(var(--nav-h) + 32px); }
.faq__list { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 2px solid var(--line); border-radius: 14px; transition: border-color .3s, box-shadow .3s; }
.faq-item:hover { border-color: rgba(14,34,54,.3); }
.faq-item.is-open { border-color: var(--c); box-shadow: 0 18px 36px -24px rgba(14,34,54,.35); }
.faq-item h3 { margin: 0; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 20px 22px; background: none; border: 0; text-align: left; font-family: var(--font-display); font-weight: 800; font-stretch: 106%; font-size: 1.12rem; line-height: 1.3; color: var(--ink); border-radius: 12px; }
.faq-plus { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: var(--tc); transition: transform .4s var(--ease); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item.is-open .faq-plus { transform: rotate(180deg); }
.faq-item.is-open .faq-plus::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease), visibility 0s .4s; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 22px; color: var(--muted); max-width: 60ch; }

/* ---------- Call-to-action band ---------- */
.cta { background: #fff; padding-bottom: clamp(64px, 8vw, 100px); }
.cta__band { --cut: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; padding: clamp(32px, 5vw, 60px) clamp(28px, 5vw, 64px); background: var(--vermilion-deep); color: #fff; }
.cta__copy { flex: 1 1 380px; display: grid; gap: 10px; }
.cta__title { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; max-width: 26ch; }
.cta__copy p { max-width: 50ch; color: rgba(255,255,255,.92); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--white { background: #fff; color: var(--vermilion-deep); }
.btn--white:hover { background: var(--ink); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: #0A1828; color: rgba(255,255,255,.78); padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.4fr; gap: clamp(28px, 4vw, 56px); }
.footer__logo img { height: 50px; width: auto; margin-bottom: 20px; }
.footer__brand p { max-width: 42ch; font-size: .97rem; line-height: 1.65; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); color: #fff; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.footer__social a:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); transform: translateY(-3px); }
.footer__col h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 108%; font-size: 1.1rem; color: #fff; margin-bottom: 18px; padding-bottom: 12px; position: relative; }
.footer__col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 4px; border-radius: 2px; background: var(--amber); }
.footer__col ul { display: grid; gap: 10px; }
.footer__col li a { transition: color .2s; }
.footer__col li a:hover { color: var(--amber); }
.footer__contact { gap: 14px !important; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; line-height: 1.55; }
.footer__contact .ico { margin-top: 3px; color: var(--amber); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: .9rem; padding-right: 84px; }

/* ---------- Floating WhatsApp button ---------- */
.wa-float { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 55; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 12px 28px -8px rgba(0,0,0,.5); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px #128C7E; }
.wa-ico { fill: currentColor; stroke: none; width: 32px; height: 32px; position: relative; }
.wa-ping { position: absolute; inset: 0; border-radius: 50%; background: #25D366; animation: waPing 2.4s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes waPing { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.wa-tooltip { position: absolute; right: calc(100% + 14px); top: 50%; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 600; white-space: nowrap; opacity: 0; transform: translate(8px, -50%); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.wa-float:hover .wa-tooltip, .wa-float:focus-visible .wa-tooltip { opacity: 1; transform: translate(0, -50%); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) { .rail { display: none; } }

@media (max-width: 1100px) {
  .carousel { --per: 3; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .mission__grid { grid-template-columns: repeat(2, 1fr); }
  .str-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__cta { display: none; }
}

@media (max-width: 900px) {
  .founder__inner { grid-template-columns: 1fr; }
  .founder__photo { max-width: 340px; margin-left: 16px; }
  .faq__inner { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
  .nav__toggle { display: grid; margin-left: auto; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: calc(var(--nav-h) + 20px) var(--gutter) 40px; background: var(--ink); margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav__links a { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 2rem; padding: 6px 0; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  /* backdrop-filter would trap the fixed menu inside the nav bar, so drop it while open */
  .nav.is-open, .nav.is-open.is-solid { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .about { grid-template-columns: 1fr; }
  .about__media { padding-bottom: 120px; max-width: 560px; }
  .glance { left: 0; }
  .panel { grid-template-columns: 1fr; }
  .panel__media { position: static; order: -1; }
  .panel__media .frame { aspect-ratio: 16 / 10; }
  .masonry { column-count: 2; }
  .pcard--a, .pcard--b, .pcard--c { grid-column: 1 / -1; grid-row: auto; min-height: 360px; }
  .footer__inner { grid-template-columns: 1fr; text-align: left; }
  .footer__meta { text-align: left; }
}

@media (max-width: 680px) {
  .carousel { --per: 2; --gap: 12px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta__actions .btn { flex: 1 1 100%; }
  .wa-float { right: 16px; width: 56px; height: 56px; }
  .wa-ico { width: 29px; height: 29px; }
  .wa-tooltip { display: none; }
  :root { --nav-h: 68px; --cut: 28px; }
  .nav__logo img { height: 40px; }
  .facts { grid-template-columns: 1fr; }
  .fact { padding: 14px 20px 16px; }
  .svc-grid, .mission__grid, .str-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .mcard, .str { min-height: 0; }
  .pcard--a, .pcard--b, .pcard--c { min-height: 300px; }
  .stat { grid-template-columns: 1fr; }
  .masonry { column-gap: 10px; }
  .shot { margin-bottom: 10px; }
  .about__media::before { right: -8px; top: -8px; }
  .glance { width: 88%; }
}

@media (max-width: 460px) {
  .masonry { column-count: 1; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .wipe { opacity: 1; transform: none; clip-path: none; }
  .js .w > span { transform: none; }
  .wire, .hero__wires .tower { stroke-dashoffset: 0; }
  .pulse, .wa-ping { display: none; }
}
