/* ============================================================
   SLG REINFORCEMENT SPECIALISTS — style.css
   Dark industrial design system
   ------------------------------------------------------------
   Contents:
   01. Design tokens
   02. Reset & base
   03. Utilities & layout
   04. Buttons & links
   05. Header / navigation
   06. Hero (drone video)
   07. Clients marquee
   08. Sections (shared)
   09. About
   10. Services
   11. Projects
   12. Future 3D section
   13. Why SLG
   14. Contact
   15. Footer
   16. Reveal animations
   17. Responsive
   18. Reduced motion
============================================================ */

/* ------------------------------------------------------------
   01. DESIGN TOKENS
------------------------------------------------------------ */
:root {
  /* Colour — graphite, concrete, safety orange */
  --clr-bg:        #0b0c0e;
  --clr-bg-alt:    #0e1013;
  --clr-surface:   #14161a;
  --clr-surface-2: #1a1d22;
  --clr-line:      rgba(255, 255, 255, 0.08);
  --clr-line-soft: rgba(255, 255, 255, 0.05);
  --clr-text:      #eceef0;
  --clr-muted:     #9aa1a9;
  --clr-accent:    #ff6a00;
  --clr-accent-2:  #ff8a33;
  --clr-accent-dim: rgba(255, 106, 0, 0.12);

  /* Type */
  --font-display: "Big Shoulders Display", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --fs-hero:    clamp(2.6rem, 7.2vw, 5.75rem);
  --fs-title:   clamp(2rem, 4.5vw, 3.5rem);
  --fs-h3:      clamp(1.25rem, 2vw, 1.5rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.8125rem;

  /* Spacing & shape */
  --space-section: clamp(5rem, 10vw, 9rem);
  --container: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;

  --header-h: 5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }

ul { list-style: none; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

::selection { background: var(--clr-accent); color: #0b0c0e; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 200;
  background: var(--clr-accent); color: #0b0c0e;
  padding: 0.75rem 1.25rem; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------
   03. UTILITIES & LAYOUT
------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); position: relative; }

/* Blueprint-style eyebrow with section index */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
}
.section-eyebrow .index {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--clr-muted);
  border: 1px solid var(--clr-line);
  padding: 0.15rem 0.5rem;
}

.section-title {
  font-size: var(--fs-title);
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head .section-title { margin-bottom: 0; }

.section-intro { color: var(--clr-muted); max-width: 44ch; }

.lead { font-size: 1.125rem; color: var(--clr-text); margin-bottom: 1.25rem; }

/* ------------------------------------------------------------
   04. BUTTONS & LINKS
------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

/* sliding fill */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.btn-solid { background: var(--clr-accent); color: #0b0c0e; }
.btn-solid::before { background: var(--clr-text); }
.btn-solid:hover::before,
.btn-solid:focus-visible::before { transform: scaleX(1); }

.btn-ghost {
  background: transparent;
  color: var(--clr-text);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost::before { background: var(--clr-text); }
.btn-ghost:hover,
.btn-ghost:focus-visible { color: #0b0c0e; border-color: var(--clr-text); }
.btn-ghost:hover::before,
.btn-ghost:focus-visible::before { transform: scaleX(1); }

.btn-block { width: 100%; justify-content: center; }

.btn-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translate(3px, -3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  padding-bottom: 0.2rem;
  background-image: linear-gradient(var(--clr-accent), var(--clr-accent));
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: left bottom;
  transition: background-size 0.4s var(--ease-out);
}
.text-link:hover,
.text-link:focus-visible { background-size: 100% 1px; }
.text-link span { transition: transform 0.35s var(--ease-out); }
.text-link:hover span { transform: translate(2px, -2px); }

/* ------------------------------------------------------------
   05. HEADER / NAVIGATION
------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, border-color 0.4s ease,
              backdrop-filter 0.4s ease, transform 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 12, 14, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--clr-line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }

.brand-mark {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(-4deg); }

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.brand-text span { font-size: 0.65rem; letter-spacing: 0.3em; color: var(--clr-muted); }

.site-nav { display: flex; align-items: center; gap: 2.5rem; }

.nav-list { display: flex; gap: 2rem; }

.nav-link {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-muted);
  padding: 0.35rem 0;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active { color: var(--clr-text); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.nav-cta { padding: 0.7rem 1.4rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 3rem;
  height: 3rem;
  padding: 0.65rem;
  background: transparent;
  border: 1px solid var(--clr-line);
  border-radius: var(--radius);
  cursor: pointer;
  z-index: 120;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--clr-text);
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------------------
   06. HERO — DRONE VIDEO
------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  will-change: transform;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fills hero, keeps aspect ratio */
  object-position: center;
  filter: saturate(0.9) contrast(1.05);
}

/* Gradient overlays keep text readable over any footage */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(11, 12, 14, 0.95) 0%, rgba(11, 12, 14, 0.35) 40%, rgba(11, 12, 14, 0.45) 100%),
    linear-gradient(to right, rgba(11, 12, 14, 0.45) 0%, rgba(11, 12, 14, 0) 25%, rgba(11, 12, 14, 0) 75%, rgba(11, 12, 14, 0.45) 100%);
}

/* Faint rebar grid over the footage — industrial texture */
.hero-gridlines {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(90deg,  rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 120px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 2rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-text);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.25s forwards;
}
.hero-eyebrow .tick {
  width: 2.25rem;
  height: 2px;
  background: var(--clr-accent);
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}
.hero-title em { font-style: normal; color: var(--clr-accent); }

/* Line-by-line text reveal */
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(115%);
  animation: lineUp 1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: 0.35s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.48s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.61s; }

.hero-sub {
  max-width: 58ch;
  margin-inline: auto;
  color: rgba(236, 238, 240, 0.85);
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.85s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 1s forwards;
}

/* Stats strip anchored to hero bottom */
.hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 12, 14, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 1.5rem 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--clr-accent);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* ------------------------------------------------------------
   07. CLIENTS MARQUEE
------------------------------------------------------------ */
.clients {
  border-bottom: 1px solid var(--clr-line-soft);
  background: var(--clr-bg-alt);
  padding-block: 1.75rem;
  overflow: hidden;
}
.clients-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.clients-label {
  flex-shrink: 0;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-muted);
  padding-right: 2.5rem;
  border-right: 1px solid var(--clr-line);
}
.marquee {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(236, 238, 240, 0.5);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.marquee-item:hover { color: var(--clr-text); }
.marquee-sep {
  width: 8px; height: 8px;
  background: var(--clr-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------
   08. SECTIONS — shared decorative touches
------------------------------------------------------------ */
.section.about,
.section.projects { background: var(--clr-bg); }
.section.services,
.section.why { background: var(--clr-bg-alt); }

.section.services,
.section.why {
  border-block: 1px solid var(--clr-line-soft);
}

/* ------------------------------------------------------------
   09. ABOUT
------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.about-media { position: relative; }

.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--clr-line);
}
.frame::after {
  /* corner tick — blueprint detail */
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 3rem; height: 3rem;
  border-left: 2px solid var(--clr-accent);
  border-bottom: 2px solid var(--clr-accent);
  opacity: 0.9;
}
.frame img {
  width: 100%;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.about-media:hover .frame img { transform: scale(1.04); }

.about-badge {
  position: absolute;
  bottom: -1.25rem;
  right: -0.75rem;
  background: var(--clr-accent);
  color: #0b0c0e;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}
.about-badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.about-badge-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-copy p { color: var(--clr-muted); margin-bottom: 1.25rem; }
.about-copy .lead { color: var(--clr-text); }

.about-points {
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.75rem;
}
.about-points li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--clr-text);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 10px; height: 10px;
  background: var(--clr-accent);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------
   10. SERVICES
------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--clr-surface);
  border: 1px solid var(--clr-line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease;
}
.service-card::before {
  /* accent bar slides in on hover */
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
  z-index: 2;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--clr-line); }
.service-card:hover::before { transform: scaleX(1); }

.service-media { overflow: hidden; }
.service-media[data-slg-anim] { aspect-ratio: 4 / 3; }
.service-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.5s ease;
  filter: saturate(0.85);
}
.service-card:hover .service-media img { transform: scale(1.06); filter: saturate(1); }

.service-body {
  position: relative;
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.service-num {
  position: absolute;
  top: -1.6rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.16);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s ease;
}
.service-card:hover .service-num { color: var(--clr-accent); }
.service-body h3 { font-size: var(--fs-h3); }
.service-body p { color: var(--clr-muted); font-size: 0.95rem; flex: 1; }

/* ------------------------------------------------------------
   11. PROJECTS
------------------------------------------------------------ */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}
.projects-filter-btn {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  background: var(--clr-surface);
  border: 1px solid var(--clr-line-soft);
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.projects-filter-btn:hover { color: var(--clr-text); border-color: var(--clr-line); }
.projects-filter-btn.is-active {
  color: #0b0c0e;
  background: var(--clr-accent);
  border-color: var(--clr-accent);
}
.projects-filter-count { margin-left: 0.3em; opacity: 0.75; font-weight: 600; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--clr-line-soft);
  aspect-ratio: 4 / 5;
  transition: opacity 0.4s ease, transform 0.4s ease, grid-column 0s, grid-row 0s;
}
.project-card.is-filtered-out {
  display: none;
}

.project-trigger {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.project-media {
  position: absolute;
  inset: 0;
}
.project-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
  filter: saturate(0.85);
}
.project-card:hover .project-media img { transform: scale(1.06); filter: saturate(1); }
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 12, 14, 0.95) 10%, rgba(11, 12, 14, 0.25) 55%, rgba(11, 12, 14, 0.1) 100%);
  transition: background 0.4s ease;
}

.project-info {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  transform: translateY(0.5rem);
  transition: transform 0.5s var(--ease-out);
  width: 100%;
}
.project-card:hover .project-info { transform: translateY(0); }

.project-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  margin: 0 0 0.6rem;
}
.project-badge-ongoing {
  background: var(--clr-accent);
  color: #0b0c0e;
}
.project-badge-ongoing::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0b0c0e;
  margin-right: 0.45em;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(11, 12, 14, 0.7);
  border: 1px solid rgba(255, 106, 0, 0.4);
  border-radius: var(--radius);
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.85rem;
}
.project-info h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); margin-bottom: 0.4rem; }
.project-info p {
  color: rgba(236, 238, 240, 0.8);
  font-size: 0.9rem;
  max-width: 34ch;
}

.project-gallery-hint {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--clr-accent);
}
.project-gallery-hint svg { width: 14px; height: 14px; flex-shrink: 0; }

.projects-note {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--clr-muted);
}
.projects-note strong { color: var(--clr-accent); font-weight: 600; }

/* ------------------------------------------------------------
   11b. PROJECT LIGHTBOX
------------------------------------------------------------ */
.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.project-lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 8, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 0;
  padding: 0;
  cursor: default;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  width: min(90vw, 68rem);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--clr-line);
  color: var(--clr-text);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.lightbox-close:hover { background: var(--clr-accent); border-color: var(--clr-accent); color: #0b0c0e; }

.lightbox-figure {
  position: relative;
  width: 100%;
  margin: 0;
}
.lightbox-img {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #000;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.lightbox-img.is-visible { opacity: 1; transform: scale(1); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--clr-line);
  color: var(--clr-text);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.lightbox-nav:hover { background: var(--clr-accent); border-color: var(--clr-accent); color: #0b0c0e; }
.lightbox-nav:disabled { opacity: 0.3; cursor: default; }
.lightbox-prev { left: -4.5rem; }
.lightbox-next { right: -4.5rem; }

.lightbox-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: 1.1rem;
  color: var(--clr-muted);
}
.lightbox-title { color: var(--clr-text); font-weight: 700; font-size: 1rem; }
.lightbox-counter { font-size: 0.85rem; flex-shrink: 0; }

@media (max-width: 64rem) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ------------------------------------------------------------
   12. FUTURE 3D SECTION
   #reinforcement-3d-mount is the container the Three.js scene
   will be mounted into later. The .model3d-fallback is a pure
   CSS animation shown until then.
------------------------------------------------------------ */
.model3d { background: var(--clr-bg); }

.model3d-stage {
  position: relative;
  border: 1px solid var(--clr-line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at center, rgba(255, 106, 0, 0.06), transparent 65%),
    var(--clr-bg-alt);
  min-height: clamp(18rem, 45vw, 28rem);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.model3d-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
}

/* CSS "rebar" bars gently pulsing — stand-in for the future 3D scene */
.rebar-anim {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  height: clamp(6rem, 15vw, 10rem);
}
.rebar-anim span {
  width: clamp(6px, 1vw, 9px);
  height: 100%;
  background: linear-gradient(to top, var(--clr-accent), rgba(255, 106, 0, 0.15));
  border-radius: 2px;
  transform-origin: bottom;
  animation: rebarPulse 2.6s ease-in-out infinite;
}
.rebar-anim span:nth-child(2n)  { animation-delay: 0.2s; }
.rebar-anim span:nth-child(3n)  { animation-delay: 0.45s; }
.rebar-anim span:nth-child(4n)  { animation-delay: 0.7s; }
.rebar-anim span:nth-child(5n)  { animation-delay: 0.95s; }
@keyframes rebarPulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.6; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

.model3d-caption {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

/* ------------------------------------------------------------
   13. WHY SLG
------------------------------------------------------------ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  position: relative;
  background: var(--clr-surface);
  border: 1px solid var(--clr-line-soft);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease, background-color 0.4s ease;
}
.why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 106, 0, 0.35);
  background: var(--clr-surface-2);
}
.why-num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--clr-accent);
  border: 1px solid rgba(255, 106, 0, 0.4);
  border-radius: var(--radius);
  transition: background-color 0.35s ease, color 0.35s ease;
}
.why-card:hover .why-num { background: var(--clr-accent); color: #0b0c0e; }
.why-card h3 { font-size: var(--fs-h3); margin-bottom: 0.75rem; }
.why-card p { color: var(--clr-muted); font-size: 0.95rem; }

/* ------------------------------------------------------------
   14. CONTACT
------------------------------------------------------------ */
.contact {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 106, 0, 0.07), transparent 55%),
    var(--clr-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-copy .lead { color: var(--clr-muted); }

.contact-details {
  margin-top: 2.5rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--clr-line);
}
.contact-details li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--clr-line);
}
.contact-key {
  flex-shrink: 0;
  width: 6.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-muted);
}
.contact-details a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.contact-details a:hover { color: var(--clr-accent); }
.contact-details span + span,
.contact-details li > span:last-child { color: var(--clr-text); }

/* Form */
.contact-form {
  background: var(--clr-surface);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.form-title {
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 0.5rem;
}
.form-field label span { color: var(--clr-accent); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--clr-text);
  background: var(--clr-bg);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-field textarea { resize: vertical; min-height: 8rem; }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239aa1a9' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(154, 161, 169, 0.55); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px var(--clr-accent-dim);
}
.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: #e5484d;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.15);
}

.form-status {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--clr-muted);
  min-height: 1.25rem;
}
.form-status.is-error { color: #e5484d; }
.form-status.is-success { color: #46c37b; }

/* ------------------------------------------------------------
   15. FOOTER
------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--clr-line);
  background: var(--clr-bg-alt);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1.25rem;
  color: var(--clr-muted);
  max-width: 32ch;
  font-size: 0.95rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-nav ul,
.footer-contact ul { display: grid; gap: 0.6rem; }
.footer-nav a,
.footer-contact a,
.footer-contact li {
  color: var(--clr-muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--clr-accent); }

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.footer-social a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--clr-line);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.footer-social a:hover { border-color: var(--clr-accent); color: var(--clr-accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--clr-line-soft);
  font-size: 0.85rem;
  color: var(--clr-muted);
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: color 0.3s ease;
}
.back-to-top:hover { color: var(--clr-accent); }

/* ------------------------------------------------------------
   16. REVEAL ANIMATIONS (driven by main.js IntersectionObserver)
------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   17. RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 64rem) { /* ~1024px — tablet */
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .services-grid,
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 34rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 48rem) { /* ~768px — mobile */
  :root { --header-h: 4.25rem; }

  /* Mobile navigation panel */
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3rem;
    padding: var(--gutter);
    background: rgba(11, 12, 14, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2%);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.4s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list { flex-direction: column; gap: 0.5rem; }
  .nav-link {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--clr-text);
    padding: 0.35rem 0;
  }
  .nav-cta { margin-top: 0.5rem; }

  body.nav-open { overflow: hidden; }

  .brand-text { display: none; }

  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; padding: 1rem 0; }
  .stat:nth-child(2n) { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,0.1); }

  .clients-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .clients-label { border-right: none; padding-right: 0; }
  .marquee { width: 100%; }

  .services-grid,
  .why-grid { grid-template-columns: 1fr; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card { aspect-ratio: 3 / 4; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .about-badge { right: 0.75rem; bottom: -1rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 26rem) { /* small phones */
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-details a { font-size: 1.1rem; }
}

/* ------------------------------------------------------------
   18. REDUCED MOTION
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .hero-eyebrow, .hero-sub, .hero-actions, .hero-stats { opacity: 1; }
  .marquee-track { animation: none; }
}
