:root {
  --bg: #f2eee7;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #6a6661;
  --primary: #cb6b2f;
  --primary-dark: #a44f1a;
  --accent: #22333b;
  --line: #ded7cf;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(23, 18, 12, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, #fff9f1 0%, var(--bg) 48%, #e6e0d9 100%);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  position: relative;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(34, 51, 59, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 51, 59, 0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 58%, transparent 100%);
  pointer-events: none;
  z-index: -2;
  opacity: 0.65;
}

.home-page {
  position: relative;
  overflow-x: clip;
}

.home-page::before,
.home-page::after {
  content: "";
  position: fixed;
  top: 18vh;
  width: min(34vw, 420px);
  height: min(34vw, 420px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(42px);
  opacity: 0.45;
  animation: floatAura 14s ease-in-out infinite;
}

.home-page::before {
  left: -15vw;
  background: radial-gradient(circle, rgba(203, 107, 47, 0.35), rgba(203, 107, 47, 0));
}

.home-page::after {
  right: -15vw;
  animation-delay: -6s;
  background: radial-gradient(circle, rgba(34, 51, 59, 0.3), rgba(34, 51, 59, 0));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 6vw;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-size: 1.15rem;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a[href="viewer3d.html"] {
  color: #fff;
  background: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s;
}

.nav a[href="viewer3d.html"]:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav a[href="viewer3d.html"]::after {
  display: none;
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: 7vw 6vw;
  background-image: linear-gradient(120deg, rgba(18, 20, 22, 0.72), rgba(34, 51, 59, 0.45)),
    url("assets/images/hero-main.jpg");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(126, 204, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 204, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%);
  background-size: 40px 40px, 40px 40px, 120px 100%;
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px));
  pointer-events: none;
  opacity: 0.38;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-tech {
  position: absolute;
  right: 6.5vw;
  bottom: 16%;
  width: min(500px, 36vw);
  z-index: 2;
}

.hero-tech-frame {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 1.05rem 1.2rem;
  background:
    linear-gradient(135deg, rgba(11, 23, 31, 0.78), rgba(16, 38, 51, 0.64)),
    repeating-linear-gradient(90deg, rgba(126, 204, 255, 0.08) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(126, 204, 255, 0.07) 0 1px, transparent 1px 22px);
  border: 1px solid rgba(126, 204, 255, 0.5);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 169, 102, 0.14) inset;
  backdrop-filter: blur(4px);
  animation: techFloat 4.8s ease-in-out infinite;
}

.hero-tech-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(161, 219, 255, 0.42);
  border-radius: 6px;
  pointer-events: none;
}

.hero-tech-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 0 34%, rgba(187, 232, 255, 0.42) 47%, transparent 61% 100%);
  transform: translateX(-130%);
  animation: techSweep 4.2s ease-in-out infinite;
}

.hero-tech-frame > * {
  position: relative;
  z-index: 1;
}

.tech-kicker {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.12em;
  font-size: 0.77rem;
  color: #7cd5ff;
}

.hero-tech-frame strong {
  display: block;
  margin-top: 0.45rem;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.04em;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: #f5fbff;
  text-shadow: 0 0 18px rgba(124, 213, 255, 0.22);
}

.hero-tech-frame p {
  margin: 0.45rem 0 0;
  color: #d6e6f2;
  font-size: 0.88rem;
}

.tech-bars {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.tech-bars i {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(116, 213, 255, 0.92), rgba(246, 159, 94, 0.7));
  transform-origin: left;
  animation: techPulse 1.9s ease-in-out infinite;
}

.tech-bars i:nth-child(2) {
  animation-delay: 0.25s;
}

.tech-bars i:nth-child(3) {
  animation-delay: 0.5s;
}

.hero-content {
  max-width: 720px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-size: 0.92rem;
}

.hero h1 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  line-height: 1.15;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.hero-text {
  max-width: 620px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.trust-strip {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  max-width: 680px;
}

.trust-item {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  backdrop-filter: blur(3px);
}

.trust-item strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.trust-item span {
  color: #d7dde0;
  font-size: 0.86rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.stats {
  position: relative;
  overflow: hidden;
  margin: 1.1rem auto 0;
  width: min(1100px, 92vw);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.4rem;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at top right, rgba(203, 107, 47, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.stats article {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 1.25rem 1rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(203, 107, 47, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 241, 235, 0.86));
  box-shadow: 0 12px 24px rgba(30, 22, 16, 0.07);
  opacity: 0;
  transform: translateY(22px) scale(0.96);
}

.stats article::before {
  content: "";
  position: absolute;
  inset: -30% 22% auto;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 214, 183, 0.5), rgba(255, 214, 183, 0));
  pointer-events: none;
}

.stats.show article {
  animation: statCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stats.show article:nth-child(2) {
  animation-delay: 0.08s;
}

.stats.show article:nth-child(3) {
  animation-delay: 0.16s;
}

.stats.show article:nth-child(4) {
  animation-delay: 0.24s;
}

.stat-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 0.8rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(203, 107, 47, 0.16), rgba(34, 51, 59, 0.08));
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.stat-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-kicker {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.stats h3 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 10px 24px rgba(34, 51, 59, 0.08);
}

.stats p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.years-band {
  width: min(1100px, 92vw);
  margin: 3rem auto 1rem;
}

.years-glow {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 1.8rem;
  background: linear-gradient(125deg, #1c2a31, #31464f 55%, #cb6b2f);
  color: #fff;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 1.1rem;
  align-items: center;
}

.years-glow::after {
  content: "";
  position: absolute;
  inset: auto -12% -34% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 210, 173, 0.28), rgba(255, 210, 173, 0));
  pointer-events: none;
}

.years-glow::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 60%);
  animation: spin 10s linear infinite;
}

.years-glow h2,
.years-glow p,
.years-glow .eyebrow {
  position: relative;
}

.years-main {
  position: relative;
  z-index: 2;
}

.years-counter {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  margin-right: 0.25rem;
  color: #ffd7b8;
  text-shadow: 0 0 20px rgba(255, 215, 170, 0.4);
}

.years-side {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.55rem;
}

.years-point {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.6rem;
  align-items: start;
  padding: 0.58rem 0.68rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(3px);
}

.years-point span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.years-point strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 1.03rem;
}

.years-point p {
  margin: 0.1rem 0 0;
  font-size: 0.86rem;
  color: #d8e3e9;
}

.section {
  width: min(1100px, 92vw);
  margin: 4rem auto;
}

main > section {
  position: relative;
}

main > section + section::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -2.4rem;
  width: min(1180px, 96vw);
  height: 52px;
  border-top: 1px solid rgba(70, 78, 86, 0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  border-radius: 999px;
  filter: blur(0.2px);
  opacity: 0.95;
  pointer-events: none;
}

main > section + section::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -0.85rem;
  width: min(180px, 28vw);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(203, 107, 47, 0), rgba(203, 107, 47, 0.9), rgba(34, 51, 59, 0.75), rgba(203, 107, 47, 0));
  box-shadow: 0 0 28px rgba(203, 107, 47, 0.28);
  pointer-events: none;
}

.section-head h2 {
  margin: 0 0 1.2rem;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.section-lead {
  max-width: 760px;
  margin: -0.3rem 0 0;
  color: #5f5a55;
  font-size: 1rem;
}

.centered-head {
  text-align: center;
}

.centered-head .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.metrics-intro {
  margin: 3.2rem auto 1.4rem;
}

.metrics-wrap {
  position: relative;
  overflow: hidden;
  width: min(1160px, 94vw);
  margin: 2rem auto 0;
  padding: 1.2rem 0 1.4rem;
  border-radius: 18px;
  background: linear-gradient(160deg, #f2e9de 0%, #efe5da 45%, #f6ede3 100%);
  border: 1px solid #e5d6c5;
  box-shadow: 0 12px 28px rgba(42, 29, 18, 0.08);
}

.metrics-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  background:
    radial-gradient(circle at 10% 20%, rgba(203, 107, 47, 0.18), rgba(203, 107, 47, 0) 34%),
    radial-gradient(circle at 88% 12%, rgba(34, 51, 59, 0.12), rgba(34, 51, 59, 0) 28%);
  pointer-events: none;
}

.metrics-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 140px;
  height: 140px;
  border-top: 1px solid rgba(127, 74, 43, 0.18);
  border-right: 1px solid rgba(127, 74, 43, 0.18);
  background:
    repeating-linear-gradient(0deg, rgba(127, 74, 43, 0.06) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(127, 74, 43, 0.06) 0 1px, transparent 1px 16px);
  border-radius: 0 16px 0 0;
  pointer-events: none;
  opacity: 0.8;
}

.metrics-wrap .metrics-intro {
  margin: 0 auto 1rem;
}

.metrics-wrap .stats {
  margin: 0 auto;
}

.headline-chips,
.contact-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.headline-chips {
  justify-content: center;
  margin-top: 1.2rem;
}

.headline-chips span,
.contact-highlights span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  border: 1px solid #e8d8c8;
  background: linear-gradient(120deg, #fffaf4, #fff);
  color: #7f4a2b;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 1rem;
}

.services {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.home-page .card,
.home-page .value-card,
.home-page .step-card,
.home-page .project-card,
.home-page .testimonial-card,
.home-page .trust-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.home-page .card::before,
.home-page .value-card::before,
.home-page .step-card::before,
.home-page .project-card::before,
.home-page .testimonial-card::before,
.home-page .trust-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(203, 107, 47, 0.55), rgba(34, 51, 59, 0.25), rgba(203, 107, 47, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.home-page .card::after,
.home-page .value-card::after,
.home-page .step-card::after,
.home-page .project-card::after,
.home-page .testimonial-card::after,
.home-page .trust-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0) 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 48%);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
  z-index: 1;
}

.home-page .card .card-tag,
.home-page .value-card .value-icon,
.home-page .step-card span,
.home-page .project-card .project-image,
.home-page .testimonial-card blockquote,
.home-page .trust-item strong {
  transform: translateZ(22px);
}

.home-page .card:hover,
.home-page .value-card:hover,
.home-page .step-card:hover,
.home-page .project-card:hover,
.home-page .testimonial-card:hover,
.home-page .trust-item:hover {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-10px);
  box-shadow: 0 26px 44px rgba(23, 18, 12, 0.2);
}

.home-page .card:hover::before,
.home-page .value-card:hover::before,
.home-page .step-card:hover::before,
.home-page .project-card:hover::before,
.home-page .testimonial-card:hover::before,
.home-page .trust-item:hover::before,
.home-page .card:hover::after,
.home-page .value-card:hover::after,
.home-page .step-card:hover::after,
.home-page .project-card:hover::after,
.home-page .testimonial-card:hover::after,
.home-page .trust-item:hover::after {
  opacity: 1;
}

.home-page .card > *,
.home-page .value-card > *,
.home-page .step-card > *,
.home-page .project-card > *,
.home-page .testimonial-card > *,
.home-page .trust-item > * {
  position: relative;
  z-index: 2;
  transform: translateZ(12px);
}

.card h3 {
  margin-top: 0;
  font-family: "Oswald", sans-serif;
  color: var(--accent);
  font-weight: 500;
}

.card-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #a24b1a;
  background: #fff1e6;
  border: 1px solid #f1d3bb;
}

.values {
  margin-top: 3rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.value-card {
  position: relative;
  background: linear-gradient(130deg, #ffffff 0%, #fff8f1 45%, #ffe8d5 60%, #fff8f1 100%);
  background-size: 220% 220%;
  background-position: 0% 50%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background-position 0.55s ease;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.value-card:hover {
  box-shadow: 0 20px 36px rgba(23, 18, 12, 0.14);
  background-position: 100% 50%;
}

.value-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.03em;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.value-card h3 {
  margin: 0.8rem 0 0.45rem;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  transition: transform 0.35s ease, color 0.35s ease;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  transition: transform 0.35s ease, color 0.35s ease, opacity 0.35s ease;
}

.value-card:hover .value-icon {
  transform: translateY(-2px) scale(1.06);
  background: linear-gradient(145deg, #1f2f38, #3a5664);
  box-shadow: 0 10px 18px rgba(31, 47, 56, 0.22);
}

.value-card:hover h3 {
  transform: translateX(6px);
  color: #1d2f38;
}

.value-card:hover p {
  transform: translateX(6px);
  color: #5b5651;
  opacity: 0.96;
}

.process {
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  inset: -0.8rem auto auto 0;
  width: 130px;
  height: 130px;
  background:
    linear-gradient(rgba(34, 51, 59, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 51, 59, 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  clip-path: polygon(0 0, 100% 0, 100% 24%, 24% 24%, 24% 100%, 0 100%);
  pointer-events: none;
  opacity: 0.7;
}

.step-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.step-grid::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 31px;
  height: 3px;
  background: linear-gradient(90deg, #d8c3ae, #cb6b2f);
  border-radius: 99px;
}

.step-grid::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 24px;
  height: 18px;
  background:
    repeating-linear-gradient(90deg, rgba(34, 51, 59, 0.18) 0 2px, transparent 2px 24px);
  opacity: 0.35;
  pointer-events: none;
}

.step-card {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(203, 107, 47, 0.16) 0%, rgba(203, 107, 47, 0.08) 38%, rgba(203, 107, 47, 0) 58%) no-repeat,
    var(--surface);
  background-size: 0% 100%, 100% 100%;
  background-position: left top, left top;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: background-size 0.45s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.step-card span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--accent), #3e5661);
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
}

.step-card h3 {
  margin: 0.85rem 0 0.35rem;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  transition: transform 0.35s ease;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  transition: transform 0.35s ease;
}

.home-page .step-card:hover {
  background-size: 58% 100%, 100% 100%;
}

.home-page .step-card:hover h3,
.home-page .step-card:hover p {
  transform: translateX(4px);
}

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

.project-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card[data-project-title] {
  cursor: pointer;
}

.project-card[data-project-title]:focus-visible {
  outline: 2px solid rgba(203, 107, 47, 0.78);
  outline-offset: 4px;
}

.project-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease, opacity 0.4s ease;
  background-color: #d6cec6;
  opacity: 1;
}

.project-image:not(.bg-loaded) {
  background-image: linear-gradient(90deg, #d6cec6 25%, #e8e0d8 50%, #d6cec6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.p1.bg-loaded { background-image: url("assets/images/projects/p1/p1-1.webp"); }
.p2.bg-loaded { background-image: url("assets/images/projects/p2/p2-1.webp"); }
.p3.bg-loaded { background-image: url("assets/images/projects/p3/p3-1.webp"); }
.p4.bg-loaded { background-image: url("assets/images/projects/p4/p4-1.webp"); }
.p5.bg-loaded { background-image: url("assets/images/projects/p5/p5-1.webp"); }
.p6.bg-loaded { background-image: url("assets/images/projects/p6/p6-1.webp"); }
.p7.bg-loaded { background-image: url("assets/images/projects/p7/p7-1.webp"); }
.p8.bg-loaded { background-image: url("assets/images/projects/p8/p8-1.webp"); }

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 36px rgba(23, 18, 12, 0.18);
}

.project-card:hover .project-image {
  transform: scale(1.08);
}

.project-body {
  position: relative;
  z-index: 2;
  padding: 1rem;
}

.project-body h3 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
}

.project-body p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.home-projects .section-head p {
  color: var(--muted);
}

.home-projects-top {
  margin: 1.1rem auto 2.2rem;
}

.more-projects {
  margin-top: 1rem;
  text-align: center;
}

.project-hero {
  position: relative;
  min-height: 58vh;
  display: grid;
  align-items: end;
  padding: 5.2rem 6vw 3.2rem;
  background: linear-gradient(125deg, rgba(13, 18, 22, 0.84), rgba(24, 39, 48, 0.52) 48%, rgba(203, 107, 47, 0.2) 100%),
    url("assets/images/project-hero.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.34;
  pointer-events: none;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: auto 6vw 2rem auto;
  width: min(280px, 32vw);
  height: 140px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 14px);
  border-radius: 0 18px 0 0;
  pointer-events: none;
  opacity: 0.7;
}

.project-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.project-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.project-hero-pills span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #edf4f7;
  font-size: 0.84rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.project-hero h1 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.04;
}

.project-hero p {
  max-width: 640px;
  color: rgba(235, 241, 244, 0.9);
  font-size: 1.02rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.projects-intro {
  max-width: 780px;
  margin: 0 0 1.9rem;
}

.projects-intro h2 {
  margin: 0 0 0.7rem;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  color: var(--accent);
}

.projects-intro p {
  margin: 0;
  color: #5f5a55;
  font-size: 1rem;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 0.8rem;
}

.filter-chip {
  border: 1px solid rgba(34, 51, 59, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  background: linear-gradient(135deg, var(--accent), #324a56);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 26px rgba(34, 51, 59, 0.18);
}

.filter-status {
  margin: 0 0 1.5rem;
  color: #6b625b;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.fx-card {
  position: relative;
  isolation: isolate;
}

.fx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.25), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
  pointer-events: none;
}

.fx-card:hover::before {
  opacity: 1;
}

.project-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1.15rem 1.15rem 1.05rem;
  color: #fff;
  background: linear-gradient(to top, rgba(14, 16, 20, 0.96), rgba(14, 16, 20, 0.16));
  transform: translateY(28%);
  transition: transform 0.45s ease;
  z-index: 3;
}

.fx-card:hover .project-overlay {
  transform: translateY(0);
}

.project-type {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd7b8;
}

.project-overlay strong {
  display: block;
  margin-top: 0.55rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.project-overlay p {
  margin: 0.18rem 0 0;
  color: #cfd6da;
}

.project-summary {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: rgba(228, 236, 240, 0.88);
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0;
  transition: max-height 0.35s ease, margin-top 0.35s ease, opacity 0.35s ease;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #eef3f6;
  font-size: 0.8rem;
}

.premium-project {
  min-height: 420px;
  border-radius: 20px;
  opacity: 1;
  transform: scale(1);
  cursor: pointer;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.premium-project:focus-visible {
  outline: 2px solid rgba(203, 107, 47, 0.78);
  outline-offset: 4px;
}

.project-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(10, 16, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}

.premium-project .project-image {
  height: 100%;
  min-height: 420px;
}

.premium-project:hover .project-summary {
  max-height: 90px;
  margin-top: 0.7rem;
  opacity: 1;
}

.premium-project.is-hidden {
  display: none;
}

.premium-project.is-filtering {
  opacity: 0;
  transform: scale(0.96);
}

.project-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.5rem 1.6rem;
  border-radius: 24px;
  border: 1px solid rgba(203, 107, 47, 0.16);
  background: linear-gradient(135deg, #fffaf4, #f3e7da 56%, #efe2d4);
  box-shadow: 0 22px 44px rgba(34, 23, 12, 0.1);
}

.project-cta-copy {
  max-width: 760px;
}

.project-cta-panel h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--accent);
}

body.modal-open {
  overflow: hidden;
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 16, 20, 0.56), rgba(11, 16, 20, 0.78)),
    radial-gradient(circle at 18% 20%, rgba(203, 107, 47, 0.14), transparent 30%);
  backdrop-filter: blur(8px);
}

.project-modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 880px);
  overflow: auto;
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid rgba(173, 141, 112, 0.22);
  background:
    linear-gradient(140deg, rgba(255, 251, 245, 0.98), rgba(244, 234, 221, 0.96) 58%, rgba(237, 227, 215, 0.96)),
    repeating-linear-gradient(90deg, rgba(49, 71, 84, 0.04) 0 1px, transparent 1px 18px);
  box-shadow: 0 34px 90px rgba(18, 16, 13, 0.3);
  z-index: 1;
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(34, 51, 59, 0.08);
  color: var(--accent);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.project-modal-close:hover {
  transform: rotate(90deg);
  background: rgba(34, 51, 59, 0.14);
}

.project-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 3.5rem;
}

.project-modal-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: rgba(203, 107, 47, 0.12);
  color: #9c4a16;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-modal-head h2 {
  margin: 0.75rem 0 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  color: #1f3039;
}

.project-modal-location {
  margin: 0.45rem 0 0;
  color: #6f6157;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-modal-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 72px;
  padding: 0 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #23333c, #445b69);
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 34px rgba(35, 51, 60, 0.22);
}

.project-modal-summary {
  margin: 1.2rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3e474d;
}

.project-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.project-modal-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(34, 51, 59, 0.1);
  background: rgba(255, 255, 255, 0.56);
}

.project-modal-card span,
.project-modal-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #8a7668;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-modal-card strong {
  color: #20313a;
  font-size: 0.98rem;
  line-height: 1.45;
}

.project-modal-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.project-modal-column {
  padding: 1.2rem 1.15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(34, 51, 59, 0.08);
}

.project-modal-column p:last-child {
  margin: 0;
  color: #46545d;
  line-height: 1.75;
}

.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-modal-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(34, 51, 59, 0.08);
  color: #1f3039;
  font-weight: 700;
}

.center {
  text-align: center;
}

.build-rise {
  position: relative;
  width: min(1200px, 96vw);
  height: 180px;
  margin: 1.5rem auto -0.4rem;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #e8edf1 0%, #d8e0e6 60%, #c7d2db 100%);
  border: 1px solid #bec9d3;
  border-bottom: 0;
}

.rise-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.55), transparent 36%),
    radial-gradient(circle at 84% 24%, rgba(203, 107, 47, 0.2), transparent 30%);
}

.rise-skyline {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 0;
  display: flex;
  align-items: end;
  gap: 0.65rem;
  height: 82%;
}

.rise-skyline .b {
  display: block;
  flex: 1;
  min-width: 22px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #445a68, #2b3e49);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform-origin: bottom;
  transform: scaleY(0.16);
  animation: riseBuild 2.8s ease-out infinite;
}

.rise-skyline .b::before {
  content: "";
  display: block;
  height: 100%;
  opacity: 0.35;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.12) 0 7px,
    transparent 7px 14px
  );
}

.rise-skyline .b1 { height: 54%; animation-delay: 0s; }
.rise-skyline .b2 { height: 74%; animation-delay: 0.16s; }
.rise-skyline .b3 { height: 66%; animation-delay: 0.32s; }
.rise-skyline .b4 { height: 88%; animation-delay: 0.48s; }
.rise-skyline .b5 { height: 62%; animation-delay: 0.64s; }
.rise-skyline .b6 { height: 80%; animation-delay: 0.8s; }
.rise-skyline .b7 { height: 58%; animation-delay: 0.96s; }
.rise-skyline .b8 { height: 92%; animation-delay: 1.12s; }

.rise-crane {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 230px;
  height: 138px;
}

.crane-tower {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 124px;
  background: linear-gradient(180deg, #3a4f5b, #293c47);
  border-radius: 4px 4px 0 0;
}

.crane-arm {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 190px;
  height: 8px;
  background: linear-gradient(90deg, #334854, #516776);
  transform-origin: right center;
  animation: craneSwing 3.2s ease-in-out infinite;
}

.crane-hook {
  position: absolute;
  right: 158px;
  top: 18px;
  width: 2px;
  height: 56px;
  background: #2f414c;
  animation: hookLift 2.6s ease-in-out infinite;
}

.crane-hook::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #2f414c;
}

.testimonials {
  margin-top: 3.5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-card p {
  margin: 0;
  color: #46423d;
}

.testimonial-card h4 {
  margin: 0.8rem 0 0.2rem;
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
}

.testimonial-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.quote {
  position: relative;
  overflow: hidden;
  width: min(1100px, 92vw);
  margin: 3rem auto;
  background: linear-gradient(130deg, var(--accent), #35454e);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 24%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.quote::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 116px;
  height: 116px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.quote-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: #ffd7b8;
  font-weight: 700;
}

.quote blockquote {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.quote p {
  margin: 0.8rem 0 0;
  color: #d2dee3;
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fffaf4 0%, #f6ebdf 52%, #ead8c5 100%);
  border: 1px solid rgba(161, 116, 82, 0.22);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(41, 27, 17, 0.12);
  padding: 1.55rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 0 35%, rgba(255, 255, 255, 0.62) 50%, transparent 65% 100%);
  transform: translateX(-120%);
  animation: ctaSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(203, 107, 47, 0.16), rgba(203, 107, 47, 0)),
    radial-gradient(circle at 90% 70%, rgba(34, 51, 59, 0.12), rgba(34, 51, 59, 0));
  pointer-events: none;
}

.cta-copy {
  max-width: 700px;
}

.cta-band .section-lead::after {
  content: "";
  display: block;
  width: 96px;
  height: 10px;
  margin-top: 0.9rem;
  background:
    repeating-linear-gradient(90deg, rgba(127, 74, 43, 0.65) 0 2px, transparent 2px 10px);
  opacity: 0.55;
}

.cta-band + .section::before,
.cta-band + .contact::before {
  top: -2.1rem;
}

.cta-band:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(34, 23, 12, 0.16);
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
  color: #1e2f37;
}

.cta-band .section-lead {
  margin-top: 0.65rem;
  color: #65584d;
  max-width: 620px;
}

.cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.cta-points span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(161, 116, 82, 0.18);
  background: rgba(255, 255, 255, 0.58);
  color: #7f4a2b;
  font-size: 0.82rem;
  font-weight: 700;
}

.cta-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  min-width: 230px;
  justify-items: end;
}

.cta-badge {
  width: 100%;
  padding: 1rem 1rem 0.95rem;
  border-radius: 20px;
  background: linear-gradient(145deg, #1d2d35, #30444f);
  color: #e8f0f4;
  box-shadow: 0 20px 34px rgba(24, 33, 39, 0.22);
}

.cta-badge strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
}

.cta-badge span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: #c8d7df;
}

.contact-highlights {
  margin-bottom: 1rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.98rem;
  background: #fff;
}

.contact-form textarea {
  grid-column: 1 / -1;
}

.contact-form button {
  justify-self: start;
}

.form-message {
  margin-top: 0.7rem;
  font-weight: 600;
  color: var(--accent);
}

.footer {
  text-align: center;
  padding: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-main {
  margin-top: 3rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(203, 107, 47, 0.18), rgba(203, 107, 47, 0) 24%),
    linear-gradient(135deg, #17242b, #22363f 55%, #1a2c34);
  color: #d4dee3;
  border-top: none;
  padding: 2.5rem 6vw 1.2rem;
}

.footer-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}

.footer-main .brand-text {
  color: #eef4f7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  padding: 1.1rem 1.1rem 1rem;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer-kicker {
  margin-top: 0.9rem;
  color: #ffd7b8;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.footer-col p {
  margin: 0.7rem 0 0;
  color: #b9c9d1;
}

.footer-col h4 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  color: #ffffff;
}

.footer-col a {
  display: block;
  margin-top: 0.45rem;
  color: #d6e2e8;
  text-decoration: none;
}

.footer-col a:hover {
  color: #ffd7b8;
}

.footer-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.footer-mini-stats span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8f0f4;
  font-size: 0.8rem;
}

.footer-note {
  padding-top: 0.1rem;
}

.footer-note a {
  margin-top: 0.9rem;
  color: #ffd7b8;
  font-weight: 700;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  color: #b6c7cf;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes riseBuild {
  0%,
  100% {
    transform: scaleY(0.16);
    opacity: 0.5;
  }
  45% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes statCardIn {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  65% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes craneSwing {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-4deg);
  }
}

@keyframes hookLift {
  0%,
  100% {
    height: 56px;
  }
  50% {
    height: 34px;
  }
}

@keyframes techFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes techSweep {
  0% {
    transform: translateX(-130%);
  }
  60%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes techPulse {
  0%,
  100% {
    transform: scaleX(0.5);
    opacity: 0.45;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes floatAura {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-26px) scale(1.06);
  }
}

@keyframes ctaSweep {
  0% {
    transform: translateX(-120%);
  }
  55%,
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .home-page::before,
  .home-page::after,
  .cta-band::before,
  .hero-tech-frame,
  .hero-tech-frame::before,
  .hero-tech-frame::after,
  .tech-bars i,
  .rise-skyline .b,
  .crane-arm,
  .crane-hook {
    animation: none;
  }

  .home-page .card:hover,
  .home-page .value-card:hover,
  .home-page .step-card:hover,
  .home-page .project-card:hover,
  .home-page .testimonial-card:hover,
  .home-page .trust-item:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .project-modal-grid,
  .project-modal-body {
    grid-template-columns: 1fr 1fr;
  }

  .project-cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .years-glow {
    grid-template-columns: 1fr;
  }

  .hero-tech {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .services,
  .projects,
  .portfolio-grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .value-grid,
  .step-grid {
    grid-template-columns: 1fr 1fr;
  }

  .step-grid::before {
    display: none;
  }
}

@media (max-width: 700px) {
  .project-modal {
    padding: 0.9rem;
  }

  .project-modal-panel {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .project-modal-head {
    flex-direction: column;
    padding-right: 2.8rem;
  }

  .project-modal-number {
    min-width: 56px;
    height: 56px;
    font-size: 1.2rem;
  }

  .project-modal-grid,
  .project-modal-body {
    grid-template-columns: 1fr;
  }

  .project-hero {
    min-height: 50vh;
    padding: 4.2rem 6vw 2.4rem;
  }

  .project-hero::after {
    display: none;
  }

  .project-hero-pills {
    gap: 0.5rem;
  }

  .project-filters {
    gap: 0.5rem;
  }

  .premium-project,
  .premium-project .project-image {
    min-height: 320px;
  }

  .build-rise {
    height: 130px;
    border-radius: 14px 14px 0 0;
  }

  .rise-crane {
    width: 160px;
    height: 98px;
  }

  .crane-tower {
    height: 88px;
  }

  .crane-arm {
    width: 128px;
  }

  main > section + section::before {
    top: -1.45rem;
    width: min(98vw, 700px);
    height: 34px;
  }

  main > section + section::after {
    top: -0.45rem;
    width: 104px;
  }

  .menu-btn {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: 68px;
    right: 6vw;
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 0.7rem;
  }

  .nav.open {
    display: flex;
  }

  .stats,
  .services,
  .projects,
  .portfolio-grid,
  .contact-form,
  .value-grid,
  .step-grid,
  .testimonial-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .project-overlay {
    transform: translateY(0);
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-side {
    width: 100%;
    justify-items: stretch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Gallery Lightbox ──────────────────────────────────── */
.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 22, 0.93);
  cursor: pointer;
  pointer-events: none;
}

.gallery-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 1100px;
}

.gallery-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.gallery-main {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img {
  max-height: 68vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.gallery-prev { left: 0.5rem; }
.gallery-next { right: 0.5rem; }

.gallery-prev:hover,
.gallery-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-counter {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.gallery-thumb {
  width: 76px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.5;
  outline: 2px solid transparent;
  transition: opacity 0.2s, outline-color 0.2s;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
  opacity: 1;
  outline-color: #fff;
}

@media (max-width: 700px) {
  .gallery-img { max-height: 52vh; }
  .gallery-prev, .gallery-next { width: 38px; height: 38px; font-size: 1.8rem; }
  .gallery-thumb { width: 56px; height: 40px; }
}

/* ── 3D Cube Showcase ── */
.cube-showcase {
  padding: 80px 0;
  overflow: visible;
}

.cube-showcase-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.cube-text h2 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--accent);
  margin: 12px 0 16px;
  line-height: 1.15;
}

.cube-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}

.cube-scene {
  perspective: 900px;
  width: 180px;
  height: 180px;
}

.cube {
  width: 180px;
  height: 180px;
  position: relative;
  transform-style: preserve-3d;
  animation: spinCube 14s linear infinite;
  filter: drop-shadow(0 24px 48px rgba(203, 107, 47, 0.3));
}

.cube-face {
  position: absolute;
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px;
  text-align: center;
  background: rgba(34, 51, 59, 0.9);
  border: 1.5px solid rgba(203, 107, 47, 0.5);
  backdrop-filter: blur(6px);
}

.cube-face svg {
  width: 34px;
  height: 34px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.cube-face strong {
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.cube-face span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  line-height: 1.4;
}

.face-front  { transform: translateZ(90px); }
.face-back   { transform: rotateY(180deg) translateZ(90px); }
.face-right  { transform: rotateY(90deg) translateZ(90px); }
.face-left   { transform: rotateY(-90deg) translateZ(90px); }
.face-top    { transform: rotateX(90deg) translateZ(90px); }
.face-bottom { transform: rotateX(-90deg) translateZ(90px); }

.face-top,
.face-bottom {
  background: linear-gradient(135deg, rgba(203, 107, 47, 0.8), rgba(164, 79, 26, 0.75));
  border-color: rgba(203, 107, 47, 0.8);
}

.face-top strong,
.face-bottom strong {
  font-size: 1.4rem;
  letter-spacing: 0.14em;
}

.face-top span,
.face-bottom span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-family: "Oswald", sans-serif;
}

@keyframes spinCube {
  0%   { transform: rotateX(10deg) rotateY(0deg); }
  100% { transform: rotateX(10deg) rotateY(360deg); }
}

@media (max-width: 768px) {
  .cube-showcase-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .cube-stage { order: 2; }
  .cube-text  { order: 1; }
}

/* ── 3D Viewer ── */
.viewer3d-section { overflow: visible; }

.viewer3d-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.v3d-toggles {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 5px;
}

.v3d-btn {
  background: none;
  border: none;
  padding: 8px 24px;
  border-radius: 30px;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.03em;
}

.v3d-btn.active,
.v3d-btn:hover {
  background: var(--accent);
  color: #fff;
}

#canvas3d {
  width: 100%;
  max-width: 860px;
  height: 480px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: grab;
  display: block;
}

#canvas3d:active { cursor: grabbing; }

.v3d-hint {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

@media (max-width: 640px) {
  #canvas3d { height: 320px; }
  .v3d-btn { padding: 7px 14px; font-size: 0.82rem; }
}

/* ── Parallax Banner ── */
.parallax-banner {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plx-layer {
  position: absolute;
  inset: -80px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

/* Background shapes layer */
.plx-bg {
  z-index: 1;
}

.plx-shape {
  position: absolute;
  border: 1.5px solid rgba(203, 107, 47, 0.18);
  border-radius: 4px;
}

.ps1 {
  width: 220px; height: 280px;
  left: 6%; top: 15%;
  transform: rotate(-8deg);
  border-color: rgba(203, 107, 47, 0.22);
}
.ps1::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 80px;
  border: 1.5px solid rgba(203, 107, 47, 0.22);
  border-bottom: none;
}

.ps2 {
  width: 160px; height: 340px;
  left: 18%; top: 5%;
  transform: rotate(4deg);
  border-color: rgba(255, 255, 255, 0.06);
}

.ps3 {
  width: 300px; height: 400px;
  right: 8%; top: -10%;
  transform: rotate(-3deg);
  border-color: rgba(203, 107, 47, 0.15);
}
.ps3::before {
  content: "";
  position: absolute;
  bottom: 0; left: 30%;
  width: 60px; height: 100px;
  border: 1.5px solid rgba(203, 107, 47, 0.15);
  border-bottom: none;
}

.ps4 {
  width: 100px; height: 200px;
  right: 28%; bottom: 0%;
  transform: rotate(6deg);
  border-color: rgba(255, 255, 255, 0.05);
}

.ps5 {
  width: 180px; height: 260px;
  left: 40%; top: 20%;
  transform: rotate(-2deg);
  border-color: rgba(203, 107, 47, 0.08);
}

/* Mid floating numbers layer */
.plx-mid {
  z-index: 2;
}

.plx-float {
  position: absolute;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  color: rgba(203, 107, 47, 0.18);
  user-select: none;
  pointer-events: none;
  letter-spacing: 0.02em;
}

.pf1 { font-size: clamp(6rem, 12vw, 10rem); left: 4%; top: 10%; }
.pf2 { font-size: clamp(2rem, 4vw, 3.5rem);  left: 4%; top: 58%; color: rgba(255,255,255,0.07); }
.pf3 { font-size: clamp(6rem, 12vw, 10rem); right: 4%; top: 12%; }
.pf4 { font-size: clamp(2rem, 4vw, 3.5rem);  right: 4%; top: 60%; color: rgba(255,255,255,0.07); }
.pf5 { font-size: clamp(3rem, 6vw, 5rem);   left: 50%; top: 5%; transform: translateX(-50%); color: rgba(255,255,255,0.04); }

/* Foreground content */
.plx-front {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  inset: unset;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.plx-front .eyebrow {
  color: var(--primary);
}

.plx-front h2 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  margin: 0;
  line-height: 1.15;
  font-weight: 500;
}

@media (max-width: 640px) {
  .parallax-banner { height: 420px; }
  .ps1, .ps2, .ps3, .ps4, .ps5 { opacity: 0.5; }
}
