/* =========================================================
   ComplyConstruct — landing page styles
   Palette: navy base · electric blue→cyan brand · safety amber accent
   ========================================================= */

:root {
  --navy-900: #0a1424;
  --navy-850: #0c1828;
  --navy-800: #0f1d33;
  --navy-700: #152741;
  --navy-600: #1c3257;

  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --amber-soft: #fbbf24;

  --green: #34d399;

  --ink: #0b1626;
  --slate-900: #111827;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  --line: rgba(255, 255, 255, 0.08);
  --line-dark: rgba(15, 29, 51, 0.1);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 60px -20px rgba(8, 18, 35, 0.45);
  --shadow-md: 0 18px 40px -18px rgba(8, 18, 35, 0.3);

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Sora", -apple-system, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--slate-900); line-height: 1.12; letter-spacing: -0.02em; }

.section { padding: clamp(72px, 11vw, 130px) 0; }

.grad-text {
  background: linear-gradient(100deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 7px 14px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 100px;
  background: rgba(34, 211, 238, 0.07);
  margin-bottom: 22px;
}
.eyebrow--dark { color: var(--blue-deep); border-color: rgba(37, 99, 235, 0.22); background: rgba(37, 99, 235, 0.06); }

/* ============ BUTTONS ============ */
.btn {
  --b: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--primary {
  color: #06203a;
  background: linear-gradient(100deg, var(--blue) 0%, var(--cyan) 100%);
  box-shadow: 0 12px 30px -10px rgba(34, 211, 238, 0.55);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -10px rgba(34, 211, 238, 0.7); }
.btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }
.section .btn--ghost { color: var(--slate-900); border-color: var(--line-dark); background: transparent; }
.section .btn--ghost:hover { background: var(--slate-100); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav.is-scrolled {
  padding: 11px 0;
  background: rgba(10, 20, 36, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 30px -18px rgba(0, 0, 0, 0.6);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 6px 14px rgba(34, 211, 238, 0.35)); }
.brand__text { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--white); letter-spacing: -0.02em; }
.brand__text span { color: var(--cyan); }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  transition: color 0.25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  background: rgba(10, 20, 36, 0.96);
  backdrop-filter: blur(14px);
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav__mobile.is-open { max-height: 420px; padding: 14px 24px 22px; }
.nav__mobile a { padding: 13px 4px; color: rgba(255, 255, 255, 0.85); font-family: var(--font-head); font-weight: 500; border-bottom: 1px solid var(--line); }
.nav__mobile .btn { justify-content: center; margin-top: 12px; border-bottom: 0; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: radial-gradient(120% 100% at 80% -10%, #16315a 0%, var(--navy-900) 55%);
  color: var(--white);
  padding: clamp(140px, 18vw, 200px) 0 clamp(80px, 12vw, 130px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.hero__glow--1 { width: 520px; height: 520px; top: -120px; right: -80px; background: radial-gradient(circle, rgba(34, 211, 238, 0.5), transparent 65%); animation: floatGlow 14s var(--ease) infinite alternate; }
.hero__glow--2 { width: 460px; height: 460px; bottom: -160px; left: -100px; background: radial-gradient(circle, rgba(59, 130, 246, 0.45), transparent 65%); animation: floatGlow 18s var(--ease) infinite alternate-reverse; }

@keyframes floatGlow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.12); }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: clamp(40px, 6.2vw, 70px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
}
.hero__sub { font-size: clamp(17px, 1.6vw, 19px); color: var(--slate-300); max-width: 560px; margin-bottom: 34px; }
.hero__sub em { color: var(--cyan); font-style: normal; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.hero__badges li {
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--slate-300);
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

/* Hero floating panel — a clean left/right cascade of three glassy cards.
   No overlap (no muddy seams); the stagger comes from alignment, and the only
   animated transform is a gentle vertical bob, so nothing fights it. */
.hero__panel { position: relative; display: flex; flex-direction: column; gap: 16px; }
.float-card {
  width: 92%;
  background: rgba(16, 30, 53, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  will-change: transform;
  animation: bob 6.5s ease-in-out infinite;
}
.float-card--rams { align-self: flex-start; animation-delay: 0s; }
.float-card--fra  { align-self: flex-end;   animation-delay: 0.8s; }
.float-card--sor  { align-self: flex-start; animation-delay: 1.6s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.fc__head { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 600; color: var(--white); font-size: 15px; margin-bottom: 16px; }
.fc__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
.fc__dot--blue { background: var(--blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2); }
.fc__dot--amber { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2); }
.fc__row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--slate-300); padding: 9px 0; border-top: 1px solid var(--line); }
.rag { font-family: var(--font-head); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 7px; }
.rag--green { color: #052e1d; background: var(--green); }
.rag--amber { color: #3a2503; background: var(--amber-soft); }
.rag--blue { color: #04233f; background: #7cc4fb; }
.rag--neutral { color: var(--slate-200); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); }
.fc__foot { margin-top: 14px; font-size: 12.5px; color: var(--slate-400); display: flex; align-items: center; gap: 8px; }
.fc__foot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }

/* ============ TRUST STRIP ============ */
.strip { background: var(--navy-850); padding: 38px 0; border-bottom: 1px solid var(--line); }
.strip__inner { text-align: center; }
.strip__lead { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 20px; }
.strip__items { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.strip__items span { font-family: var(--font-head); font-weight: 600; font-size: clamp(15px, 1.8vw, 18px); color: rgba(255, 255, 255, 0.6); transition: color 0.3s; }
.strip__items span:hover { color: var(--white); }

/* ============ FEATURES ============ */
.features { background: var(--white); padding: clamp(56px, 8vw, 90px) 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(59, 130, 246, 0.3); }
.feat__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--blue-deep);
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.12), rgba(34, 211, 238, 0.12));
  margin-bottom: 20px;
}
.feat h3 { font-size: 20px; margin-bottom: 10px; }
.feat p { font-size: 15.5px; color: var(--slate-600); }

/* ============ SECTION HEAD ============ */
.section__head { max-width: 760px; margin: 0 auto clamp(46px, 6vw, 70px); text-align: center; }
.section__title { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; margin-bottom: 18px; }
.section__title--light { color: var(--white); }
.section__lead { font-size: 18px; color: var(--slate-600); }
.section__lead--light { color: var(--slate-300); }

/* ============ WHY ============ */
.why { background: var(--slate-50); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why__card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.why__card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.why__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.why__card:hover::before { transform: scaleX(1); }
.why__num { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--cyan); letter-spacing: 0.08em; }
.why__card h3 { font-size: 20px; margin: 14px 0 11px; }
.why__card p { font-size: 15.5px; color: var(--slate-600); }

/* ============ APPS ============ */
.apps { background: radial-gradient(130% 90% at 50% 0%, #13294b 0%, var(--navy-900) 60%); }
.apps__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.app {
  position: relative;
  background: linear-gradient(180deg, rgba(21, 39, 65, 0.8), rgba(12, 24, 40, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 34px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.app::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(34, 211, 238, 0.1), transparent 55%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.app:hover { transform: translateY(-7px); border-color: rgba(34, 211, 238, 0.35); box-shadow: var(--shadow-lg); }
.app:hover::after { opacity: 1; }
.app__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.app__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; color: var(--cyan);
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.16));
  border: 1px solid rgba(34, 211, 238, 0.2);
}
.app__status { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; padding: 6px 13px; border-radius: 100px; text-transform: uppercase; }
.app__status--live { color: var(--green); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); }
.app__status--soon { color: var(--amber-soft); background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.32); }
.app__name { color: var(--white); font-size: 23px; margin-bottom: 13px; }
.app__desc { font-size: 15.5px; color: var(--slate-300); margin-bottom: 20px; }
.app__feats { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.app__feats li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--slate-300); }
.app__feats li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.app__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--cyan);
  transition: gap 0.3s var(--ease), color 0.3s;
}
.app__link:hover { gap: 13px; color: var(--white); }

.app--soon { border-style: dashed; border-color: rgba(245, 158, 11, 0.3); }
.app--soon .app__icon { color: var(--amber-soft); background: linear-gradient(140deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.12)); border-color: rgba(245, 158, 11, 0.25); }
.app__soonbar {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--amber-soft);
  padding: 11px 16px; border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); position: relative; }
.pulse::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--amber); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }

/* ============ HOW ============ */
.how { background: var(--white); }
.how__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.how__line { position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); opacity: 0.25; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step__num {
  width: 56px; height: 56px; margin: 0 auto 22px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--white);
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 30px -10px rgba(34, 211, 238, 0.55);
  position: relative; z-index: 1;
}
.step h3 { font-size: 19px; margin-bottom: 9px; }
.step p { font-size: 15px; color: var(--slate-600); }

/* ============ STATS ============ */
.stats { background: var(--navy-900); padding: clamp(56px, 8vw, 88px) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(38px, 5vw, 54px); color: var(--white); line-height: 1; }
.stat__num .grad-text, .stat .count { background: linear-gradient(100deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__num { background: linear-gradient(100deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { font-size: 15px; color: var(--slate-400); margin-top: 12px; }

/* ============ CTA ============ */
.cta { background: var(--slate-50); }
.cta__card {
  position: relative;
  text-align: center;
  background: radial-gradient(120% 130% at 50% 0%, #16315a 0%, var(--navy-900) 70%);
  border-radius: 28px;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 6vw, 80px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta__glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 500px; height: 320px; background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 65%); filter: blur(60px); }
.cta__card h2 { position: relative; font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; color: var(--white); margin-bottom: 18px; }
.cta__card p { position: relative; font-size: 18px; color: var(--slate-300); max-width: 620px; margin: 0 auto 32px; }
.cta__actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.25); }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ============ FOOTER ============ */
.footer { background: var(--navy-900); color: var(--slate-400); padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer__tag { margin-top: 18px; font-size: 15px; max-width: 320px; }
.footer__col h4 { color: var(--white); font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col a { display: block; padding: 6px 0; font-size: 15px; color: var(--slate-400); transition: color 0.25s; }
.footer__col a:hover { color: var(--cyan); }
.footer__small { margin-top: 12px; font-size: 13.5px; color: var(--slate-500); }
.tag-soon { font-size: 11px; font-weight: 700; color: var(--amber-soft); background: rgba(245, 158, 11, 0.14); padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13.5px; color: var(--slate-500); }

/* ============ SECTION CONSTRUCTION IMAGERY ============ */
/* Faint, slowly-panning construction photos fill the light sections'
   background space while a light wash keeps text + cards crisp. */
.features, .why, .how, .cta { position: relative; overflow: hidden; }
.features .container, .why .container, .how .container, .cta .container { position: relative; z-index: 1; }

.sec-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sec-photo i {
  position: absolute; inset: -7%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center;
  animation: kenburns 34s ease-in-out infinite alternate;
}
.sec-photo::after {
  content: "";
  position: absolute; inset: 0;
  /* light wash — stronger on the right (behind centred content), softer on the
     left so the photo reads through the gutter */
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0.74) 0%,
    rgba(255, 255, 255, 0.88) 48%,
    rgba(255, 255, 255, 0.95) 100%);
}
.sec-photo--slate::after {
  background: linear-gradient(100deg,
    rgba(248, 250, 252, 0.76) 0%,
    rgba(248, 250, 252, 0.89) 48%,
    rgba(248, 250, 252, 0.96) 100%);
}
.sec-photo--flip::after { background: linear-gradient(260deg,
    rgba(255, 255, 255, 0.74) 0%,
    rgba(255, 255, 255, 0.88) 48%,
    rgba(255, 255, 255, 0.95) 100%); }

.sec-photo--structure i { background-image: url("../img/structure.jpg"); }
.sec-photo--site i      { background-image: url("../img/construction-site.jpg"); }
.sec-photo--blueprint i { background-image: url("../img/blueprint.jpg"); }
.sec-photo--crane i     { background-image: url("../img/construction-crane.jpg"); }

@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-2.5%, -1.8%, 0); }
}

/* ============ REVEAL ANIMATIONS ============ */
/* Only hide reveal elements when JS is present to bring them back. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* stagger children within a grid */
.why__grid .reveal:nth-child(2), .apps__grid .reveal:nth-child(2), .grid-3 .reveal:nth-child(2), .how__steps .reveal:nth-child(3) { transition-delay: 0.08s; }
.why__grid .reveal:nth-child(3), .apps__grid .reveal:nth-child(3), .grid-3 .reveal:nth-child(3), .how__steps .reveal:nth-child(4) { transition-delay: 0.16s; }
.why__grid .reveal:nth-child(4), .how__steps .reveal:nth-child(5) { transition-delay: 0.24s; }
.why__grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.why__grid .reveal:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__glow, .float-card, .pulse::before, .sec-photo i { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__panel { max-width: 440px; }
  .grid-3, .why__grid, .apps__grid, .how__steps, .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .how__line { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile { display: flex; }
  .grid-3, .why__grid, .apps__grid, .how__steps, .stats__grid { grid-template-columns: 1fr; }
  .hero__panel { display: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  body { font-size: 16px; }
}
