/* ============================================================
   AS STRUCTURES LTD — COMPLETE STYLESHEET
   ============================================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* VARIABLES */
:root {
  --navy:        #0c1a3a;
  --navy-mid:    #142254;
  --navy-light:  #1e3a8a;
  --blue:        #2563eb;
  --amber:       #f59e0b;
  --amber-light: #fbbf24;
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --light:       #f1f5f9;
  --text-dark:   #0f172a;
  --text-body:   #475569;
  --text-muted:  #94a3b8;
  --border:      #e2e8f0;
  --shadow-sm:   0 1px 4px rgba(12,26,58,0.06);
  --shadow:      0 4px 20px rgba(12,26,58,0.09);
  --shadow-lg:   0 16px 48px rgba(12,26,58,0.14);
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'Inter', system-ui, sans-serif;
  --r:           10px;
}

/* BASE */
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--text-body); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 { font-family: var(--serif); color: var(--text-dark); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.05rem; }
h5 { font-size: 0.9rem; }
p  { line-height: 1.75; }

/* LAYOUT */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
section { padding: 88px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 14px;
}
.eyebrow::before { content: ''; display: block; width: 0; height: 2px; background: var(--amber); border-radius: 2px; transition: width 0.55s ease 0.25s; }
.visible .eyebrow::before,
.page-hero .eyebrow::before { width: 24px; }

.section-head { margin-bottom: 52px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { max-width: 580px; font-size: 1.05rem; color: var(--text-body); }
.section-head.center { text-align: center; }
.section-head.center p { margin: 0 auto; }
.section-head.light h2, .section-head.light .eyebrow { color: var(--white); }
.section-head.light .eyebrow::before { background: var(--amber); }
.section-head.light p { color: rgba(255,255,255,0.72); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 6px;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; border: none; transition: all 0.22s; text-decoration: none;
  font-family: var(--sans);
}
.btn-primary  { background: var(--amber); color: var(--navy); box-shadow: 0 4px 20px rgba(245,158,11,0.3); }
.btn-primary:hover  { background: var(--amber-light); transform: translateY(-1px); color: var(--navy); box-shadow: 0 6px 28px rgba(245,158,11,0.45); }
.btn-white    { background: var(--white); color: var(--navy); }
.btn-white:hover    { background: var(--off-white); transform: translateY(-1px); color: var(--navy); }
.btn-outline-white  { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; color: white; transform: translateY(-1px); }
.btn-navy     { background: var(--navy); color: white; }
.btn-navy:hover     { background: var(--navy-mid); transform: translateY(-1px); color: white; }

/* ============================================================
   SITE NAV — fresh implementation, no legacy class names
   ============================================================ */

.snav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 80px;
  background: #0c1a3a;
  transition: box-shadow 0.3s ease;
}
.snav--scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.3); }

.snav__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  gap: 24px;
}

/* Logo */
.snav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}
.snav__logo img {
  height: 64px;
  width: auto;
  max-width: 280px;
  display: block;
  filter: brightness(1.08);
}

/* Links — desktop: horizontal row */
.snav__links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  flex-shrink: 1;
}
.snav__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.snav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #f59e0b;
  border-radius: 1px;
  transition: width 0.25s ease;
}
.snav__link:hover       { color: #ffffff; }
.snav__link:hover::after { width: 100%; }
.snav__link--active     { color: #ffffff; }
.snav__link--active::after { width: 100%; }

/* CTA button */
.snav__cta {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 0.82rem;
  margin-left: 8px;
}

/* Hamburger — hidden on desktop */
.snav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}
.snav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---- Mobile breakpoint ---- */
@media (max-width: 900px) {
  /* Show burger, hide CTA */
  .snav__burger { display: flex; }
  .snav__cta    { display: none; }

  /* Stack links as a dropdown below the bar */
  .snav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    /* take it out of the bar flow */
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #0c1a3a;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    z-index: 9998;
  }
  .snav__links--open {
    max-height: 320px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .snav__link {
    display: block;
    padding: 15px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.78);
  }
  .snav__link::after { display: none; }
  .snav__link:hover       { color: #ffffff; background: rgba(255,255,255,0.04); }
  .snav__link--active     { color: #ffffff; background: rgba(255,255,255,0.04); }
}

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(12,26,58,0.9) 0%, rgba(12,26,58,0.72) 55%, rgba(12,26,58,0.4) 100%);
}
.hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; padding: 64px 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.4);
  border-radius: 100px; padding: 7px 18px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-light); margin-bottom: 28px;
}
.hero-dot { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; }
.hero h1 { color: white; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--amber-light); }
.hero-sub { font-size: clamp(1rem, 1.8vw, 1.2rem); color: rgba(255,255,255,0.8); margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-divider { width: 48px; height: 2px; background: var(--amber); border-radius: 1px; margin-bottom: 28px; }
.hero-tagline { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.5; font-style: italic; max-width: 480px; }

/* STATS BAR */
.stats-bar { background: var(--navy-mid); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,0.06);
}
.stat-item {
  padding: 40px 28px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-top: 3px solid transparent;
  transition: border-top-color 0.25s;
}
.stat-item:hover { border-top-color: var(--amber); }
.stat-num {
  font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; color: white; display: block; line-height: 1; margin-bottom: 8px;
}
.stat-num em { font-style: normal; color: var(--amber-light); }
.stat-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* PHOTO CARDS */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.photo-card { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-card:hover img { transform: scale(1.04); }
.photo-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,26,58,0.9) 0%, rgba(12,26,58,0.3) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  transition: background 0.35s;
}
.photo-card:hover .photo-card-overlay { background: linear-gradient(to top, rgba(12,26,58,0.96) 0%, rgba(12,26,58,0.55) 70%, rgba(12,26,58,0.1) 100%); }
.photo-card-tag {
  display: inline-block; background: var(--amber); color: var(--navy);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px; margin-bottom: 10px; width: fit-content;
}
.photo-card h3 { color: white; font-size: 1.1rem; margin-bottom: 8px; }
.photo-card p { color: rgba(255,255,255,0.75); font-size: 0.88rem; line-height: 1.55; max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.photo-card:hover p { max-height: 120px; }

/* SERVICE CARDS */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border-radius: var(--r); overflow: hidden; }
.service-card { background: var(--white); padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; transition: background 0.25s; }
.service-card:hover { background: var(--off-white); }
.service-icon-wrap { width: 54px; height: 54px; border-radius: 12px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-icon-wrap svg { width: 26px; height: 26px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1rem; color: var(--text-dark); line-height: 1.3; }
.service-card p { font-size: 0.9rem; color: var(--text-body); line-height: 1.7; flex: 1; }
.service-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--blue); letter-spacing: 0.03em; margin-top: 4px; transition: gap 0.2s; }
.service-card-link:hover { gap: 10px; color: var(--navy); }
.service-card-link svg { width: 14px; height: 14px; }

/* CASE STUDY */
.case-card { background: var(--white); border-radius: 12px; border-left: 4px solid var(--amber); box-shadow: var(--shadow-lg); padding: 44px 48px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.case-tag { background: var(--light); border-radius: 4px; padding: 5px 12px; font-size: 0.75rem; font-weight: 600; color: var(--navy); letter-spacing: 0.04em; }
.case-meta-row { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.case-meta-item { display: flex; flex-direction: column; gap: 3px; }
.case-meta-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.case-meta-value { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }
.case-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 28px 0; }
.case-stage-item { display: flex; flex-direction: column; gap: 8px; }
.case-stage-num { width: 32px; height: 32px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; color: var(--amber); font-family: var(--serif); flex-shrink: 0; }
.case-stage-label { font-size: 0.8rem; font-weight: 700; color: var(--text-dark); }
.case-stage-desc { font-size: 0.82rem; color: var(--text-body); line-height: 1.5; }
.pull-quote { background: var(--navy); border-radius: var(--r); padding: 28px 32px; margin: 32px 0; font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: white; line-height: 1.6; position: relative; }
.pull-quote::before { content: '\201C'; position: absolute; top: 12px; left: 24px; font-size: 3rem; line-height: 1; color: var(--amber); opacity: 0.5; font-family: Georgia, serif; }
.pull-quote p { padding-left: 24px; }

/* WHY US */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 32px 24px; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, transform 0.3s; display: flex; flex-direction: column; gap: 14px; }
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.why-icon { width: 48px; height: 48px; background: var(--amber); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.why-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-card h4 { color: var(--text-dark); font-size: 0.98rem; line-height: 1.3; }
.why-card p { font-size: 0.88rem; color: var(--text-body); }

/* CLIENTS */
.clients-section { background: var(--off-white); }
.clients-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; margin-top: 40px; }
.client-logo-card {
  display: flex; align-items: center; justify-content: center;
  padding: 20px 28px; background: var(--white);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-sm); min-height: 88px; min-width: 200px;
  transition: box-shadow 0.25s, transform 0.25s, filter 0.25s;
  filter: saturate(0.2) opacity(0.6);
}
.client-logo-card:hover { filter: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.client-logo-card img { display: block; object-fit: contain; }

/* CTA BANNER */
.cta-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); padding: 80px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-text h2 { color: white; margin-bottom: 10px; }
.cta-text p { color: rgba(255,255,255,0.65); max-width: 500px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* PAGE HERO (inner pages) */
.page-hero { background: var(--navy); padding: 148px 0 72px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?auto=format&fit=crop&w=1600&q=70') center/cover no-repeat;
  opacity: 0.08;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: white; margin-bottom: 16px; }
.page-hero .eyebrow { color: var(--amber-light); }
.page-hero .eyebrow::before { background: var(--amber); }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 600px; font-size: 1.05rem; }

/* ABOUT PAGE */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.bio-card { background: var(--navy); border-radius: 12px; padding: 36px; color: white; }
.bio-card h4 { color: white; font-size: 1.1rem; margin-bottom: 4px; }
.bio-role { font-size: 0.82rem; color: var(--amber-light); margin-bottom: 20px; font-weight: 600; letter-spacing: 0.04em; }
.bio-card p { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 100px; padding: 5px 14px; font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.tag-light { background: var(--light); border: 1px solid var(--border); border-radius: 100px; padding: 5px 14px; font-size: 0.78rem; font-weight: 600; color: var(--navy); }
.divider { width: 44px; height: 3px; background: var(--amber); border-radius: 2px; margin: 16px 0 28px; }

/* CONTACT PAGE */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.contact-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 44px; box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dark); margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; background: var(--off-white); border: 1.5px solid var(--border); border-radius: 8px; padding: 12px 16px; font-family: var(--sans); font-size: 0.95rem; color: var(--text-dark); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); background: white; }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item-icon { width: 44px; height: 44px; flex-shrink: 0; background: var(--navy); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.contact-item-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-item-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 4px; }
.contact-item-value { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }
.contact-item-value a { color: var(--blue); }

/* PROJECTS PAGE */
.project-card { background: var(--white); border-radius: 12px; padding: 44px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--amber); margin-bottom: 32px; }
.project-card-sm { background: var(--white); border-radius: 12px; padding: 32px 36px; box-shadow: var(--shadow); border: 1px solid var(--border); border-left: 3px solid var(--amber); }
.stage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 24px 0; }
.stage-item { background: var(--light); border-radius: 8px; padding: 20px; }
.stage-num-badge { width: 28px; height: 28px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--amber); margin-bottom: 10px; font-family: var(--serif); }
.stage-item h5 { font-size: 0.85rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.stage-item p { font-size: 0.82rem; color: var(--text-body); line-height: 1.55; }

/* FOOTER */
footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 48px 0 32px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: start; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 28px; }
.footer-logo { height: 48px; margin-bottom: 12px; }
.footer-co-name { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: white; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-nav a:hover { color: white; }
.footer-contact { text-align: right; }
.footer-contact p { font-size: 0.88rem; margin-bottom: 4px; }
.footer-contact a { color: var(--amber-light); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); text-align: center; }

/* FADE IN */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.25,0.46,0.45,0.94); }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* SLIDE-IN VARIANTS */
.slide-left  { opacity: 0; transform: translateX(-56px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94); }
.slide-right { opacity: 0; transform: translateX(56px);  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94); }
.scale-in    { opacity: 0; transform: scale(0.9);        transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34,1.56,0.64,1); }
.slide-left.visible, .slide-right.visible, .scale-in.visible { opacity: 1; transform: none; }
.slide-left.fade-in-delay-1, .slide-right.fade-in-delay-1, .scale-in.fade-in-delay-1 { transition-delay: 0.1s; }
.slide-left.fade-in-delay-2, .slide-right.fade-in-delay-2, .scale-in.fade-in-delay-2 { transition-delay: 0.2s; }
.slide-left.fade-in-delay-3, .slide-right.fade-in-delay-3, .scale-in.fade-in-delay-3 { transition-delay: 0.3s; }
.slide-left.fade-in-delay-4, .slide-right.fade-in-delay-4, .scale-in.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   KEYFRAMES & ENTRANCE ANIMATIONS
   ============================================================ */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(38px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroPop {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes lineGrow {
  from { transform: scaleX(0); transform-origin: left center; }
  to   { transform: scaleX(1); transform-origin: left center; }
}
@keyframes blueprintScroll {
  from { background-position: 0 0; }
  to   { background-position: 80px 80px; }
}
@keyframes navSlideDown {
  from { transform: translateY(-100%); }
  to   { transform: none; }
}

/* Hero element stagger (triggered on page load, not scroll) */
.hero-badge   { animation: heroPop    0.7s  cubic-bezier(0.34,1.56,0.64,1) both 0.1s; }
.hero h1      { animation: heroFadeUp 0.85s cubic-bezier(0.25,0.46,0.45,0.94) both 0.38s; }
.hero-sub     { animation: heroFadeUp 0.7s  ease both 0.6s; }
.hero-ctas    { animation: heroFadeUp 0.65s ease both 0.78s; }
.hero-divider { animation: lineGrow   0.55s ease both 0.96s; }
.hero-tagline { animation: heroFadeUp 0.6s  ease both 1.08s; }

/* Nav entrance */
.snav { animation: navSlideDown 0.5s cubic-bezier(0.25,0.46,0.45,0.94) both; }

/* Page-hero content stagger (all inner pages) */
.page-hero-content .eyebrow { animation: heroFadeUp 0.6s ease both 0.25s; }
.page-hero-content h1       { animation: heroFadeUp 0.75s cubic-bezier(0.25,0.46,0.45,0.94) both 0.42s; }
.page-hero-content > p      { animation: heroFadeUp 0.65s ease both 0.58s; }

/* Blueprint/engineering grid overlay inside hero */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245,158,11,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.055) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: blueprintScroll 32s linear infinite;
}

/* ---- Service photo system ---- */

/* Strong colour-grade: desaturate + darken → all photos read as navy-toned */
.service-full-photo {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.70) saturate(0.40) contrast(1.18);
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
/* Zoom on card hover */
.service-full-card:hover .service-full-photo { transform: scale(1.08); }

/* Permanent navy tint — blends all images to brand palette */
.service-photo-wrap::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: rgba(12, 26, 58, 0.30);
  transition: background 0.45s ease;
  pointer-events: none;
}
/* On hover: flicker the overlay to near-solid navy */
.service-full-card:hover .service-photo-wrap::before {
  background: rgba(12, 26, 58, 0.86);
  animation: svcFlicker 0.48s ease both;
}

/* Text overlay that fades in over photo on hover */
.service-photo-hover {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px; text-align: center; gap: 14px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.38s ease 0.2s, transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94) 0.2s;
  pointer-events: none;
}
.service-full-card:hover .service-photo-hover { opacity: 1; transform: none; }
.service-photo-hover span {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
  color: #ffffff; line-height: 1.45;
}
.service-photo-line {
  width: 36px; height: 2px; background: var(--amber); border-radius: 1px; flex-shrink: 0;
}

/* Flicker keyframe — CRT-style opacity burst */
@keyframes svcFlicker {
  0%   { background: rgba(12,26,58,0.30); }
  15%  { background: rgba(12,26,58,0.92); }
  30%  { background: rgba(12,26,58,0.38); }
  50%  { background: rgba(12,26,58,0.90); }
  65%  { background: rgba(12,26,58,0.52); }
  82%  { background: rgba(12,26,58,0.88); }
  100% { background: rgba(12,26,58,0.86); }
}

/* UTILS */
.light-bg { background: var(--light); }
.navy-bg  { background: var(--navy); }
.text-center { text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .case-stages, .stage-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  section { padding: 60px 0; }
  .photo-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .case-stages, .stage-grid { grid-template-columns: 1fr 1fr; }
  .case-card, .project-card { padding: 28px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
  .cta-inner { flex-direction: column; }
  .hero-content { padding: 40px 0; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .case-stages, .stage-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .btn { justify-content: center; }
  .clients-grid { gap: 16px; }
  .client-logo-card { min-width: 140px; padding: 16px 20px; }
}
