/* ============================================================
   Surendra Engineering Enterprises
   UI/UX faithfully modeled on phenomenonstudio.com
   Canvas #080d10 · Bricolage Grotesque + Albert Sans
   SEE brand accents: orange #ED5335 · blue #1E348A
   ============================================================ */

/* Self-hosted variable fonts (mirrored from phenomenonstudio.com) */
@font-face {
  font-family: 'Milker';
  src: url('../assets/fonts/Milker.otf') format('opentype');
  font-weight: normal; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Helvetica';
  src: url('../assets/fonts/Helvetica.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Helvetica';
  src: url('../assets/fonts/Helvetica-Oblique.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Helvetica';
  src: url('../assets/fonts/helvetica-light-587ebe5a59211.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Helvetica';
  src: url('../assets/fonts/Helvetica-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Phenomenon canvas */
  --bg: #080d10;
  --bg-soft: #0c1216;
  --panel: #121a1f;
  --panel-2: #182127;
  --light: #f6f5f2;
  --light-2: #eceae5;
  --light-line: #e2e0da;

  /* SEE brand accents */
  --orange: #ED5335;
  --orange-2: #ff7a00;
  --blue: #1E348A;
  --blue-bright: #2E50C8;

  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --muted-2: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.05);

  --grad: linear-gradient(102deg, var(--orange) 0%, #ff7a4e 50%, var(--blue-bright) 120%);

  --container: 1440px;
  --pad: clamp(20px, 4.4vw, 64px);
  --r-lg: clamp(28px, 5.5vw, 80px);   /* signature big section radius */
  --r-md: 16px;
  --r-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: 'Helvetica', system-ui, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--orange); color: #fff; }

h1, h2, h3, h4 {
  font-family: 'Milker', 'Helvetica', sans-serif;
  font-weight: 700; line-height: 1.02; letter-spacing: -0.025em;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); position: relative; }

/* Uppercase tracked label — Phenomenon eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.6)} }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ============================================================
   SIGNATURE BUTTON  (expanding-circle hover-fill + arrow)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 60px; padding: 0 30px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), background .35s var(--ease), transform .5s var(--ease);
  will-change: transform;
}
.btn > span { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; }
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
/* the expanding circle */
.btn::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 240%; padding-top: 240%; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .8s var(--ease); z-index: 1;
}
.btn:hover::before { transform: translate(-50%, -50%) scale(1); }

.btn--orange { background: var(--orange); color: #fff; }
.btn--orange::before { background: #fff; }
.btn--orange:hover { color: var(--bg); }

.btn--white { background: var(--white); color: var(--bg); }
.btn--white::before { background: var(--orange); }
.btn--white:hover { color: #fff; }

.btn--light { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid var(--line-2); }
.btn--light::before { background: var(--orange); }
.btn--light:hover { color: #fff; border-color: transparent; }

.btn--dark { background: var(--bg); color: #fff; }
.btn--dark::before { background: var(--orange); }
.btn--dark:hover { color: #fff; }

.btn--block { width: 100%; }

/* text/underline button */
.btn-simple {
  display: inline-flex; align-items: center; gap: 10px; position: relative;
  font-size: 14px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: #fff;
}
.btn-simple span { position: relative; }
.btn-simple span::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: currentColor; transition: width .35s var(--ease) .2s; }
.btn-simple span::before { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0; background: var(--orange); transition: width .35s var(--ease); z-index: 1; }
.btn-simple:hover span::after { width: 0; transition-delay: 0s; }
.btn-simple:hover span::before { width: 100%; transition-delay: .2s; }
.btn-simple svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn-simple:hover svg { transform: translateX(5px); }

/* ============================================================
   CURSOR + SCROLL PROGRESS
   ============================================================ */
/* Click-spark canvas (replaces custom cursor) */
.click-spark { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9500; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
header.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; color: #fff; transition: background .35s var(--ease), border-color .35s, padding .35s var(--ease), transform .45s var(--ease); border-bottom: 1px solid transparent; }
header.nav.to-hide { transform: translateY(-100%); }
header.nav .container { display: flex; align-items: center; justify-content: space-between; height: 86px; transition: height .35s var(--ease); }
header.nav.is-scrolled { background: rgba(8,13,16,0.45); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); border-bottom: 1px solid var(--line); }
header.nav.is-scrolled .container { height: 70px; }
.nav__logo { height: 44px; width: auto; transition: height .35s var(--ease); filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.4)); }
header.nav.is-scrolled .nav__logo { height: 36px; }
.nav__menu { display: flex; gap: 36px; }
.nav__menu a { font-size: 15px; color: var(--muted); position: relative; padding: 6px 0; transition: color .3s; }
.nav__menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--orange); transition: width .35s var(--ease); }
.nav__menu a:hover, .nav__menu a.is-active { color: #fff; }
.nav__menu a:hover::after, .nav__menu a.is-active::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__cta { height: 48px; padding: 0 22px; }

.burger { display: none; flex-direction: column; gap: 6px; width: 40px; height: 40px; align-items: center; justify-content: center; }
.burger span { width: 24px; height: 2px; background: #fff; transition: transform .35s var(--ease), opacity .3s; }
.burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: rgba(8,13,16,0.98); backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: 'Milker'; font-size: clamp(1.6rem, 7vw, 2.4rem); color: var(--muted); transition: color .3s; }
.mobile-menu a:hover { color: #fff; }
.mobile-menu .mm-cta { color: var(--orange); }

/* ============================================================
   HERO  (rounded bottom — Phenomenon signature)
   ============================================================ */
.hero { position: relative; padding: clamp(150px, 16vw, 230px) 0 clamp(80px, 10vw, 150px); border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; background: var(--bg); z-index: 2; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; transform: scale(1.12); will-change: transform; }
.hero__blueprint { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0.45; mix-blend-mode: screen; }
.hero__veil { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 78% 6%, rgba(237,83,53,0.16) 0%, transparent 52%),
  radial-gradient(100% 80% at 0% 100%, rgba(30,52,138,0.40) 0%, transparent 55%),
  linear-gradient(180deg, rgba(8,13,16,0.62) 0%, rgba(8,13,16,0.5) 45%, var(--bg) 100%); }
.hero .container { z-index: 2; }
.hero__eyebrow { margin-bottom: 30px; padding: 9px 18px; border: 1px solid var(--line-2); border-radius: 100px; background: var(--glass); font-size: 12px; }
.hero__title { font-size: clamp(2.7rem, 8.2vw, 7.2rem); font-weight: 600; letter-spacing: -0.035em; max-width: 16ch; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__sub { margin-top: 22px; max-width: 640px; font-size: clamp(1rem, 1.5vw, 1.3rem); color: var(--muted); line-height: 1.6; }
.hero__actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__ticker { margin-top: clamp(50px, 8vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.hero__ticker .ti { background: rgba(8,13,16,0.55); backdrop-filter: blur(6px); padding: 24px; }
.hero__ticker .ti b { display: block; font-family: 'Milker'; font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.hero__ticker .ti span { font-size: 13px; color: var(--muted); }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section__head { max-width: 920px; margin-bottom: clamp(46px, 6vw, 84px); }
.section__tag { display: block; margin-bottom: 22px; font-size: 13px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase; color: var(--orange); }
.section__title { font-size: clamp(2.1rem, 5.2vw, 4.6rem); }
.section__lead { margin-top: 26px; max-width: 680px; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.65; }

/* ============================================================
   CLIENTS MARQUEE
   ============================================================ */
.clients { padding: clamp(44px, 6vw, 76px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.clients__label { text-align: center; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 38px; }
.marquee { overflow: hidden; padding: 26px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; align-items: center; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); padding-right: clamp(16px, 1.8vw, 28px); }
.marquee__chip {
  flex: 0 0 auto; width: clamp(150px, 13vw, 190px); height: 92px;
  display: grid; place-items: center; padding: 18px 26px;
  background: #f7f8fa; border-radius: 16px; border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 22px 44px -28px rgba(0,0,0,0.7);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.marquee__chip img { max-height: 48px; max-width: 100%; width: auto; object-fit: contain; filter: saturate(0.92); transition: filter .4s, transform .45s var(--ease); }
.marquee__chip:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -22px rgba(237,83,53,0.5); position: relative; z-index: 2; }
.marquee__chip:hover img { filter: saturate(1.1); transform: scale(1.04); }
/* legacy single-image fallbacks (still styled if used) */
.marquee__logo { height: 38px; width: auto; opacity: 0.85; }
.marquee__badge { height: 58px; width: auto; opacity: 0.9; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   IMPACT / STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stat { background: var(--panel); padding: clamp(28px, 3vw, 44px); transition: background .4s; }
.stat:hover { background: var(--panel-2); }
.stat__num { font-family: 'Milker'; font-weight: 700; font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1; }
.stat__num .grad { display: inline-block; }
.stat__label { margin-top: 16px; font-weight: 600; font-size: 1.06rem; }
.stat__desc { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
.certs { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.cert-chip { display: flex; align-items: center; gap: 16px; padding: 16px 22px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); flex: 1 1 260px; transition: border-color .4s, transform .4s; }
.cert-chip:hover { border-color: var(--orange); transform: translateY(-3px); }
.cert-chip img { width: 52px; height: 52px; }
.cert-chip strong { display: block; font-size: 0.98rem; font-family: 'Milker'; }
.cert-chip span { font-size: 0.78rem; color: var(--muted); }

/* ============================================================
   SERVICES  (division cards — hover media reveal + corner arrow)
   ============================================================ */
/* ============================================================
   SCROLL STACK  (reactbits-style pinned card stack)
   ============================================================ */
.scroll-stack { position: relative; }
.stack { position: relative; padding-bottom: clamp(60px, 22vh, 300px); }
.stack-card {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 3vw, 56px); align-items: center;
  padding: clamp(26px, 2.8vw, 52px);
  border-radius: clamp(22px, 2.6vw, 34px);
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -42px rgba(0, 0, 0, 0.85);
  min-height: clamp(360px, 52vh, 500px);
  overflow: hidden;
  transform-origin: top center; backface-visibility: hidden;
}
.stack-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(120% 90% at 92% 4%, rgba(237,83,53,0.10), transparent 55%); }
.stack-card__media { position: relative; z-index: 1; border-radius: clamp(14px, 1.4vw, 20px); overflow: hidden; aspect-ratio: 4/3; height: 100%; min-height: 220px; border: 1px solid var(--line); }
.stack-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1s var(--ease); }
.stack-card:hover .stack-card__media img { transform: scale(1.1); }
.stack-card__body { position: relative; z-index: 1; }
.stack-card__no { font-size: 13px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase; color: var(--orange); }
.stack-card h3 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); margin: 12px 0 14px; }
.stack-card p { color: var(--muted); line-height: 1.6; max-width: 46ch; }
.stack-card__list { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.stack-card__list li { font-size: 0.82rem; padding-left: 16px; position: relative; }
.stack-card__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.stack-card__cta { margin-top: 26px; }
.scroll-stack-end { width: 100%; height: 1px; }
/* fallback gap when the stack JS isn't active (reduced-motion / no-JS) */
.stack-card + .stack-card { margin-top: 22px; }
/* before JS upgrades the section, cards are a clean stacked list */
.js .stack-card { will-change: transform; }

@media (max-width: 860px) {
  .stack-card { grid-template-columns: 1fr; min-height: 0; gap: 22px; }
  .stack-card__media { aspect-ratio: 16/10; order: -1; min-height: 0; }
  .stack { padding-bottom: clamp(40px, 8vh, 90px); }
}

/* ============================================================
   CASE / PROJECT STORIES
   ============================================================ */
.cases { display: flex; flex-direction: column; gap: clamp(30px, 4vw, 64px); }
.case { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(26px, 4vw, 70px); align-items: center; }
.case--rev .case__media { order: 2; }
.case__media { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/11; }
.case__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25) contrast(1.04); transition: filter .6s var(--ease); }
.case:hover .case__media img { filter: none; }
.case__client { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.case__value { font-family: 'Milker'; font-weight: 700; font-size: clamp(3rem, 7vw, 5.6rem); line-height: 0.92; }
.case__value .grad { display: inline-block; }
.case__name { font-size: clamp(1.3rem, 2.3vw, 2rem); margin: 14px 0; }
.case__desc { color: var(--muted); max-width: 520px; line-height: 1.6; }
.case__tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.case__tags span { font-size: 12px; padding: 7px 15px; border: 1px solid var(--line-2); border-radius: 100px; background: var(--glass); }

/* ============================================================
   LIGHT PANEL — Industry Footprint (Phenomenon stacked-panel)
   ============================================================ */
.panel-light { background: var(--light); color: var(--bg); border-radius: var(--r-lg); margin: 0 clamp(8px, 1.5vw, 22px); }
.panel-light .section__tag { color: var(--orange); }
.panel-light .section__title { color: var(--bg); }
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sector { padding: clamp(28px, 2.8vw, 42px); border: 1px solid var(--light-line); border-radius: var(--r-md); background: #fff; transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; position: relative; overflow: hidden; }
.sector:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 26px 50px -24px rgba(8,13,16,0.35); }
.sector__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); color: #fff; margin-bottom: 22px; }
.sector__icon svg { width: 26px; height: 26px; }
.sector h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--bg); }
.sector p { font-size: 0.9rem; color: #5a6066; line-height: 1.55; }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.cap-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 18px; }
.cap-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(28px, 2.8vw, 42px); }
.cap-col__title { display: flex; align-items: center; gap: 14px; font-size: 1.15rem; margin-bottom: 28px; }
.cap-col__title i { width: 28px; height: 3px; border-radius: 3px; background: var(--orange); }
.cap-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
.cap-stats b { display: block; font-family: 'Milker'; font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.cap-stats span { font-size: 0.8rem; color: var(--muted); }
.cap-fleet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.cap-fleet li { font-size: 0.88rem; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); }
.cap-fleet li b { font-family: 'Milker'; color: var(--orange); margin-right: 8px; }
.cap-lead { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; line-height: 1.6; }
.cap-check li { font-size: 0.86rem; padding: 11px 0 11px 28px; position: relative; border-bottom: 1px solid var(--line); }
.cap-check li::before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--orange); font-weight: 700; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__title { font-size: clamp(2.2rem, 5.4vw, 4.6rem); margin: 18px 0 24px; }
.contact__lead { color: var(--muted); max-width: 460px; margin-bottom: 38px; line-height: 1.6; }
.contact__details { display: flex; flex-direction: column; gap: 14px; }
.crow { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--glass); transition: border-color .4s, transform .4s, background .4s; }
a.crow:hover { border-color: var(--orange); transform: translateX(4px); background: rgba(255,255,255,0.07); }
.crow__icon { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--blue-bright)); }
.crow__icon svg { width: 20px; height: 20px; color: #fff; }
.crow small { display: block; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 5px; }
.crow strong { display: block; font-size: 1.02rem; font-family: 'Milker'; }
.crow em { font-style: normal; font-size: 0.82rem; color: var(--muted); }

.cform { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(26px, 3vw, 42px); }
.field { position: relative; margin-bottom: 20px; }
.field input, .field textarea, .field select { width: 100%; padding: 22px 16px 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--line-2); border-radius: 12px; color: #fff; font-family: inherit; font-size: 0.95rem; transition: border-color .3s, background .3s; resize: vertical; }
.field textarea { min-height: 92px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,0.05); }
.field label { position: absolute; left: 16px; top: 18px; color: var(--muted); font-size: 0.95rem; pointer-events: none; transition: all .25s var(--ease); }
.field label.static,
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label {
  top: 8px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--orange);
}
.field select option { background: var(--panel); color: #fff; }
.cform__note { margin-top: 14px; font-size: 0.85rem; color: var(--orange); min-height: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer__logo { height: 48px; margin-bottom: 20px; filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.4)); }
.footer__tag { color: var(--muted); font-size: 0.92rem; max-width: 320px; margin-bottom: 24px; line-height: 1.6; }
.footer__badges { display: flex; gap: 12px; }
.footer__badges img { height: 56px; opacity: 0.85; }
.footer__col h4 { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--orange); margin-bottom: 20px; }
.footer__col a, .footer__col span { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; transition: color .3s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--muted-2); }
.footer__credit { flex-basis: 100%; text-align: center; padding-top: 12px; }
.footer__credit a { color: inherit; text-decoration: none; transition: color .3s; }
.footer__credit a:hover { color: var(--orange); }

/* ============================================================
   MOTION SYSTEM  (modeled on phenomenonstudio.com)
   ============================================================ */

/* Generic fade-up (legacy hook kept working) */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* --- data-anim="fade" : richer fade-up with optional stagger --- */
[data-anim="fade"] { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-anim="fade"].is-in { opacity: 1; transform: none; }

/* --- data-anim="lines" : masked text-line reveal (JS splits into .r-line) --- */
.r-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.r-line__in { display: block; transition: transform 1s var(--ease); transition-delay: calc(var(--li, 0) * 0.085s); will-change: transform; }
[data-anim="lines"] .r-line__in { transform: translateY(120%); }
[data-anim="lines"].is-in .r-line__in { transform: none; }

/* --- Phenomenon signature media reveal : clip-path open + de-rotate --- */
.reveal-media { overflow: hidden; }
.reveal-media__img,
.reveal-media > img,
.reveal-media > video {
  clip-path: inset(48% 12%);
  transform: rotate(-12deg) scale(1.18);
  transition: clip-path 1.1s var(--ease), transform 1.2s var(--ease);
  will-change: clip-path, transform;
}
.reveal-media.is-in .reveal-media__img,
.reveal-media.is-in > img,
.reveal-media.is-in > video {
  clip-path: inset(0% 0%);
  transform: rotate(0) scale(1);
  transition-delay: var(--d, 0s);
}

/* --- data-anim="scale" : subtle pop --- */
[data-anim="scale"] { opacity: 0; transform: scale(0.94); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-anim="scale"].is-in { opacity: 1; transform: none; }

/* --- Stagger helper: children animate in sequence --- */
[data-stagger] > * { transition-delay: calc(var(--si, 0) * 0.08s); }

.no-js [data-anim] { opacity: 1 !important; transform: none !important; }
.no-js .reveal-media__img, .no-js .reveal-media > img { clip-path: none; transform: none; }

/* ============================================================
   SECTION STACKING — rounded panels overlap on scroll
   ============================================================ */
.section--stack { border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: calc(-1 * var(--r-lg)); background: var(--bg); position: relative; z-index: 3; }
.footer { border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: calc(-1 * clamp(20px, 3vw, 40px)); position: relative; z-index: 4; }

/* ============================================================
   INNER PAGE HERO (about / services / projects / contact)
   ============================================================ */
.page-hero { position: relative; padding: clamp(140px, 16vw, 220px) 0 clamp(60px, 7vw, 110px); border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; background: var(--bg); }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; transform: scale(1.1); }
.page-hero__veil { position: absolute; inset: 0; background:
  radial-gradient(110% 80% at 80% 0%, rgba(237,83,53,0.14) 0%, transparent 50%),
  linear-gradient(180deg, rgba(8,13,16,0.6), var(--bg)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero__crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.page-hero__crumb a { color: var(--muted); transition: color .3s; } .page-hero__crumb a:hover { color: #fff; }
.page-hero__crumb span { color: var(--orange); }
.page-hero__title { font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: -0.035em; max-width: 18ch; }
.page-hero__lead { margin-top: 26px; max-width: 640px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.6; }

/* prose / leadership / timeline / values used by inner pages */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.prose p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 18px; }
.prose p strong { color: #fff; }
.media-frame { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.timeline { position: relative; margin-top: 20px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.tl-item { position: relative; padding: 0 0 34px 0; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); transform: translateX(-1px); box-shadow: 0 0 0 5px rgba(237,83,53,0.15); }
.tl-item .yr { font-family: 'Milker'; font-weight: 700; font-size: 1.4rem; }
.tl-item .yr b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tl-item p { color: var(--muted); margin-top: 6px; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.value { padding: clamp(26px, 2.6vw, 38px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); transition: border-color .4s, transform .4s; }
.value:hover { border-color: var(--orange); transform: translateY(-4px); }
.value h3 { font-size: 1.3rem; margin-bottom: 12px; }
.value p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

.leaders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.leader { display: flex; gap: 20px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.leader__av { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-family: 'Milker'; font-weight: 700; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--orange), var(--blue)); }
.leader h4 { font-size: 1.2rem; } .leader span { font-size: 0.85rem; color: var(--muted); }

/* Map embed (contact page) */
.map-embed { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--panel); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.4) invert(0.92) hue-rotate(180deg) contrast(0.9); }

/* CTA band reused across pages */
.cta-band { text-align: center; background: linear-gradient(120deg, rgba(237,83,53,0.12), rgba(30,52,138,0.18)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(48px, 7vw, 100px) var(--pad); }
.cta-band h2 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 22px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 34px; font-size: 1.08rem; }
.cta-band .btn { margin: 0 auto; }

/* Service detail rows (services page) */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding: clamp(40px, 5vw, 70px) 0; border-top: 1px solid var(--line); }
.svc-detail:nth-child(even) .svc-detail__media { order: 2; }
.svc-detail__media { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/11; border: 1px solid var(--line); }
.svc-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail__no { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); }
.svc-detail h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 12px 0 16px; }
.svc-detail p { color: var(--muted); line-height: 1.65; margin-bottom: 22px; }
.svc-detail__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.svc-detail__list li { font-size: 0.9rem; padding-left: 18px; position: relative; color: #fff; }
.svc-detail__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

@media (max-width: 860px) {
  .split-2, .svc-detail, .svc-detail:nth-child(even) .svc-detail__media { grid-template-columns: 1fr; }
  .svc-detail:nth-child(even) .svc-detail__media { order: 0; }
  .values-grid, .leaders { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__ticker { grid-template-columns: repeat(2, 1fr); }
  .nav__menu, .nav__cta { display: none; }
  .burger { display: flex; }
}
@media (max-width: 720px) {
  .contact__inner { grid-template-columns: 1fr; }
  .case, .case--rev { grid-template-columns: 1fr; }
  .case--rev .case__media { order: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .sectors-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}
