/* ===== TOKENS ===== */
:root {
  --charcoal: #0F172A;
  --charcoal-2: #1E293B;
  --concrete: #F4F6F8;
  --concrete-2: #E7ECF1;
  --rust: #F97316;
  --rust-dark: #C2570D;
  --steel: #475569;
  --caution: #F59E0B;
  --ink: #1B1F22;
  --line: rgba(15,23,42,0.12);
  --line-light: rgba(244,246,248,0.14);

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1220px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--concrete);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .hero-eyebrow, .hero-title, .hero-sub, .hero-actions, .hero-stats {
    opacity: 1 !important; transform: none !important;
  }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* stagger children inside a revealed group */
.reveal-group.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal-group.is-visible .reveal-item:nth-child(1) { transition-delay: 0.02s; }
.reveal-group.is-visible .reveal-item:nth-child(2) { transition-delay: 0.09s; }
.reveal-group.is-visible .reveal-item:nth-child(3) { transition-delay: 0.16s; }
.reveal-group.is-visible .reveal-item:nth-child(4) { transition-delay: 0.23s; }
.reveal-group.is-visible .reveal-item:nth-child(5) { transition-delay: 0.30s; }
.reveal-group.is-visible .reveal-item:nth-child(6) { transition-delay: 0.37s; }

/* ===== HERO LOAD SEQUENCE ===== */
.hero-eyebrow, .hero-title, .hero-sub, .hero-actions, .hero-stats {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-in 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-eyebrow { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.22s; }
.hero-sub { animation-delay: 0.38s; }
.hero-actions { animation-delay: 0.52s; }
.hero-stats { animation-delay: 0.66s; }

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== UTILITY ===== */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--rust);
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}
.section-eyebrow-light { color: var(--caution); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.section-title-light { color: var(--concrete); }

.section-desc {
  color: var(--steel);
  max-width: 520px;
  margin-top: 14px;
  font-size: 17px;
}

.section-head { margin-bottom: 48px; }
.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.projects-see-all { padding: 12px 22px; font-size: 14px; white-space: nowrap; }
@media (max-width: 760px) {
  .projects-head { flex-direction: column; align-items: flex-start; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--rust);
  color: var(--concrete);
}
.btn-primary:hover { background: var(--rust-dark); transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid var(--charcoal);
  color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--concrete); }

.btn-full { width: 100%; }

.btn-whatsapp {
  background: #25D366;
  color: #08360F;
  margin-top: 28px;
}
.btn-whatsapp:hover { background: #1fb959; transform: translateY(-1px); }

.crop-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--rust);
  border-bottom: 2px solid var(--rust);
}

/* ===== BLUEPRINT GRID BACKDROP (signature element) ===== */
.blueprint-grid {
  position: absolute;
  inset: -44px;
  background-image:
    linear-gradient(rgba(244,246,248,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,246,248,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  animation: grid-drift 26s linear infinite;
}

@keyframes grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 44px 88px, 44px 88px; }
}

/* Cahaya lembut yang mengambang di belakang konten. */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.35;
}
.glow-orb-1 {
  width: 420px;
  height: 420px;
  background: var(--rust);
  top: -120px;
  right: 8%;
  animation: orb-float-1 16s ease-in-out infinite;
}
.glow-orb-2 {
  width: 320px;
  height: 320px;
  background: var(--caution);
  bottom: -100px;
  left: 6%;
  opacity: 0.22;
  animation: orb-float-2 20s ease-in-out infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, 30px) scale(1.08); }
}
@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -25px) scale(1.1); }
}

/* ===== GARIS SCAN — efek "blueprint survey" yang menyapu turun ===== */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rust) 25%, var(--caution) 50%, var(--rust) 75%, transparent);
  box-shadow: 0 0 16px 3px rgba(249,115,22,0.45);
  opacity: 0;
  pointer-events: none;
  animation: scan-sweep 7s ease-in-out infinite;
}
@keyframes scan-sweep {
  0%   { top: -5%;  opacity: 0; }
  8%   { opacity: 0.75; }
  50%  { opacity: 0.55; }
  92%  { opacity: 0.75; }
  100% { top: 104%; opacity: 0; }
}

/* ===== PARTIKEL — titik ukur ala blueprint yang naik perlahan ===== */
.particle-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  bottom: -20px;
  width: 5px;
  height: 5px;
  background: var(--caution);
  transform: rotate(45deg);
  opacity: 0;
  animation: particle-rise linear infinite;
}
.particle:nth-child(odd) { background: var(--rust); width: 4px; height: 4px; }

@keyframes particle-rise {
  0%   { transform: translateY(0) rotate(45deg); opacity: 0; }
  12%  { opacity: 0.8; }
  85%  { opacity: 0.6; }
  100% { transform: translateY(-560px) rotate(45deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .blueprint-grid,
  .glow-orb,
  .scan-line,
  .particle { animation: none !important; opacity: 0.15; }
}

@media (max-width: 760px) {
  .scan-line { display: none; } /* jaga performa & fokus di layar kecil */
  .particle-field .particle:nth-child(n+7) { display: none; }
}


/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-light);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--concrete);
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--concrete);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--rust);
  transition: width 0.2s ease;
}
.nav-links a:hover { color: var(--caution); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #08360F;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: #1fb959; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav-toggle span {
  height: 2px;
  background: var(--concrete);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--concrete);
  padding: 168px 0 100px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--caution);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6.5vw, 76px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 780px;
}
.hero-title-accent { color: var(--rust); }
.hero-sub {
  margin-top: 28px;
  max-width: 560px;
  font-size: 18px;
  color: rgba(244,246,248,0.78);
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero .btn-outline { border-color: var(--concrete); color: var(--concrete); }
.hero .btn-outline:hover { background: var(--concrete); color: var(--charcoal); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
  max-width: 780px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  color: var(--rust);
}
.stat-label {
  font-size: 12.5px;
  color: rgba(244,246,248,0.6);
  letter-spacing: 0.02em;
}

/* ===== ABOUT ===== */
.about { padding: 110px 0; background: var(--concrete); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.about-frame {
  position: relative;
  padding: 18px;
}
.about-frame img { width: 100%; height: 480px; object-fit: cover; }
.frame-corner {
  position: absolute;
  width: 26px; height: 26px;
  border-color: var(--rust);
  border-style: solid;
  border-width: 0;
}
.frame-corner.tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.frame-corner.tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.frame-corner.bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.frame-corner.br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }

.about-text {
  color: var(--steel);
  margin-top: 20px;
  font-size: 16px;
  max-width: 560px;
}
.about-points { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.point { display: flex; gap: 18px; align-items: flex-start; }
.point-mark {
  font-family: var(--font-mono);
  color: var(--rust);
  font-size: 13px;
  font-weight: 500;
  padding-top: 3px;
  flex-shrink: 0;
}
.point strong {
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  display: block;
  margin-bottom: 3px;
}
.point p { color: var(--steel); font-size: 14.5px; }

/* ===== SERVICES ===== */
.services { background: var(--charcoal); padding: 110px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.service-card {
  background: var(--charcoal-2);
  padding: 40px 32px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.service-card:hover { background: #28374B; transform: translateY(-4px); }

.point {
  transition: transform 0.25s ease;
}
.point:hover { transform: translateX(4px); }

.service-num {
  font-family: var(--font-mono);
  color: var(--rust);
  font-size: 13px;
  display: block;
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display);
  color: var(--concrete);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.service-card p { color: rgba(244,246,248,0.65); font-size: 14.5px; }

/* ===== PROJECTS ===== */
.projects { padding: 110px 0; background: var(--concrete); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 20px;
}
.project-card {
  position: relative;
  overflow: hidden;
  display: block;
}
.project-card-large { grid-column: span 2; grid-row: span 2; }
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover img { transform: scale(1.06); }
.project-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(15,23,42,0.92), transparent 70%);
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--caution);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.project-info h3 {
  font-family: var(--font-display);
  color: var(--concrete);
  font-size: 19px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.project-card-large .project-info h3 { font-size: 24px; }

/* ===== PAGE HEADER BAND (halaman terpisah: Portofolio, dll) ===== */
.page-header {
  position: relative;
  background: var(--charcoal);
  color: var(--concrete);
  padding: 168px 0 70px;
  overflow: hidden;
}
.page-header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.page-header-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--caution);
  margin-bottom: 16px;
  display: block;
}
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 54px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.page-header p {
  margin-top: 16px;
  color: rgba(244,246,248,0.75);
  font-size: 16px;
  max-width: 560px;
}

/* ===== PORTFOLIO LIST PAGE (grid penuh, kartu ukuran seragam) ===== */
.portfolio-list-section { padding: 80px 0 110px; background: var(--concrete); }
.projects-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.projects-grid-full .project-card {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}
.projects-grid-full .project-card-large {
  grid-column: span 1;
  grid-row: span 1;
}
.projects-grid-full .project-card-large .project-info h3 { font-size: 19px; }
@media (max-width: 980px) {
  .projects-grid-full { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .projects-grid-full { grid-template-columns: 1fr; }
}

/* ===== CLIENTS ===== */
/* ===== CLIENT ===== */
.clients { padding: 110px 0; background: var(--concrete-2); }
.client-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.client-logo {
  background: var(--concrete);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--steel);
  letter-spacing: 0.03em;
  font-size: 15px;
  text-align: center;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
}
.client-logo:hover { color: var(--rust); background: var(--concrete-2); }

@media (max-width: 980px) {
  .client-logos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .client-logos { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.faq { padding: 110px 0; background: var(--concrete); }
.faq-list {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--concrete);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.is-open { border-color: var(--rust); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  text-align: left;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--rust);
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.faq-item.is-open .faq-icon {
  transform: rotate(135deg);
  background: var(--rust);
  color: var(--concrete);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.is-open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding: 0 24px 22px;
  color: var(--steel);
  font-size: 15px;
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon, .faq-answer { transition: none; }
}

/* ===== CONTACT ===== */
.contact {
  position: relative;
  background: var(--charcoal);
  padding: 110px 0;
  overflow: hidden;
}
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.contact-desc {
  color: rgba(244,246,248,0.75);
  margin-top: 18px;
  max-width: 440px;
  font-size: 16px;
}
.contact-detail {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
}
.contact-detail strong {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--caution);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 6px;
}
.contact-detail p { color: var(--concrete); font-size: 15.5px; }
.contact-link {
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.contact-link:hover { border-color: var(--caution); color: var(--caution); }

.contact-form {
  background: var(--concrete);
  padding: 40px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--steel);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--concrete);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--rust);
  outline: none;
}
.form-row textarea { resize: vertical; }

.map-embed {
  margin-top: 56px;
  border: 1px solid var(--line-light);
  filter: grayscale(0.3) contrast(1.05);
}
.map-embed iframe { display: block; }

/* ===== FOOTER ===== */
.footer{
  background: var(--charcoal-2);
  border-top:1px solid var(--line-light);
  padding:36px 0;
}

.footer-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
}

.footer-instagram{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:rgba(245,243,238,.85);
  text-decoration:none;
  font-size:14px;
  transition:.3s;
}

.footer-instagram:hover{
  color:var(--gold);
}

.footer-copy{
  color:rgba(245,243,238,.55);
  font-size:13px;
  margin:0;
}

.footer-credit{
  color:rgba(245,243,238,.55);
  font-size:13px;
  margin:0;
}

.footer-credit span{
  color:var(--concrete);
  font-weight:600;
  letter-spacing:.5px;
}

.footer-instagram{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#f5f3ee;
  text-decoration:none;
  font-weight:500;
  transition:.3s;
}

.footer-instagram i{
  font-size:22px;
  color:#E4405F;
  transition:.3s;
}

.footer-instagram:hover{
  color:#D4AF37;
}

.footer-instagram:hover i{
  transform:scale(1.15);
}
/* ===== FLOATING WHATSAPP ===== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 90;
  transition: transform 0.2s ease;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.08); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 0 10px rgba(37,211,102,0); }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--charcoal);
  color: var(--concrete);
  border: 1px solid var(--line-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.15s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--rust); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-frame img { height: 360px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 240px); }
  .project-card-large { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .navbar.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--charcoal);
    padding: 20px 32px;
    gap: 18px;
    border-bottom: 1px solid var(--line-light);
  }
  .navbar.open .nav-cta {
    display: flex;
    position: absolute;
    top: calc(100% + 220px);
    left: 32px; right: 32px;
    justify-content: center;
  }
  .hero { padding: 140px 0 70px; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 220px); }
  .project-card-large { grid-column: span 1; }
  .contact-form { padding: 28px; }
  .wa-float { width: 52px; height: 52px; bottom: 20px; right: 20px; }
  .back-to-top { width: 40px; height: 40px; bottom: 82px; right: 22px; }
}

/* ===== PROJECT GALLERY (LIGHTBOX) ===== */
body.gallery-open { overflow: hidden; }

.project-card { position: relative; cursor: pointer; }

.project-photo-count {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15,23,42,0.75);
  color: var(--concrete);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(244,246,248,0.25);
  backdrop-filter: blur(2px);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(6,9,17,0.96);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.gallery-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.gallery-modal img {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  object-fit: contain;
}

.gallery-caption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--concrete);
  font-family: var(--font-body);
  text-align: center;
}
.gallery-caption #galleryTitle {
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.gallery-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--caution);
  border: 1px solid rgba(244,246,248,0.25);
  padding: 3px 10px;
  border-radius: 20px;
}

.gallery-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  color: var(--concrete);
  transition: color 0.15s ease, transform 0.15s ease;
}
.gallery-close:hover { color: var(--rust); transform: rotate(90deg); }

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(244,246,248,0.2);
  border-radius: 50%;
  background: rgba(244,246,248,0.08);
  color: var(--concrete);
  font-size: 22px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.gallery-prev:hover,
.gallery-next:hover {
  background: var(--rust);
  border-color: var(--rust);
}
.gallery-prev { left: 24px; }
.gallery-next { right: 24px; }

@media (max-width: 640px) {
  .gallery-prev, .gallery-next { width: 42px; height: 42px; font-size: 18px; }
  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
  .gallery-close { top: 14px; right: 18px; font-size: 32px; }
  .gallery-caption #galleryTitle { font-size: 13px; }
}