/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary:   #1a56db;
  --primary-d: #1344b0;
  --accent:    #06b6d4;
  --dark:      #0f172a;
  --gray-1:    #1e293b;
  --gray-2:    #334155;
  --gray-3:    #64748b;
  --gray-4:    #cbd5e1;
  --gray-5:    #f1f5f9;
  --white:     #ffffff;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.08);
  --trans:     .3s ease;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--gray-1);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }

/* ── Preloader ────────────────────────────────── */
@keyframes spinGradient {
  0% { transform: rotate(0deg) scale(1); opacity: 1; }
  50% { opacity: 0.6; }
  100% { transform: rotate(360deg) scale(1); opacity: 1; }
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes fadeOutUp {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-30px); }
}
.preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e0e7ff 100%);
  background-size: 200% 200%;
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; animation: fadeOutUp 0.5s ease 2.5s forwards;
  pointer-events: none;
}
.preloader.hidden {
  animation: fadeOutUp 0.5s ease forwards;
  pointer-events: none;
}
.preloader-content {
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 24px;
}
.preloader-spinner {
  width: 60px; height: 60px;
  border-radius: 50%; border: 4px solid rgba(26,86,219,.15);
  border-top: 4px solid var(--primary);
  border-right: 4px solid var(--accent);
  animation: spinGradient 2s linear infinite;
  box-shadow: 0 0 20px rgba(26,86,219,.2), inset 0 0 20px rgba(6,182,212,.1);
}
.preloader-text {
  font-size: 1rem; font-weight: 500; color: var(--gray-2);
  letter-spacing: 0.05em;
  animation: gradientFlow 2s ease infinite;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-5); }
::-webkit-scrollbar-thumb { background: var(--gray-4); border-radius: 3px; }

/* ── Navbar ───────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow var(--trans);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 75px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; color: var(--dark);
}
.nav-logo .logo-box {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .85rem; font-weight: 700;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--gray-2);
  transition: color var(--trans);
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width var(--trans);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 12px 12px; border-radius: 12px;
  background: #01875f;
  border: 1.5px solid rgba(0,0,0,.08);
  color: #fff !important;
  line-height: 1; vertical-align: middle;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans) !important;
}
.nav-cta .cta-icon {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; opacity: .9;
}
.nav-cta .cta-text {
  display: flex; flex-direction: column; gap: 1px;
}
.nav-cta .cta-text span:first-child {
  font-size: .65rem !important; font-weight: 400 !important;
  letter-spacing: .06em; text-transform: uppercase; opacity: .75;
}
.nav-cta .cta-text span:last-child {
  font-size: .95rem !important; font-weight: 700 !important;
  letter-spacing: .01em;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: #016d4d !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.35) !important;
}
.nav-cta:active { transform: translateY(0) !important; }

/* ── Back To Top ──────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(26,86,219,.4); }
  50% { box-shadow: 0 8px 32px rgba(26,86,219,.6); }
}
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 998;
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(100px) scale(0.5);
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              background 0.35s ease;
  pointer-events: none; box-shadow: 0 4px 20px rgba(26,86,219,.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
}
.back-to-top.show {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto; animation: float 3s ease-in-out infinite, glow 2s ease-in-out infinite;
}
.back-to-top:hover {
  background: linear-gradient(135deg, #0d47a1 0%, var(--primary) 100%);
  transform: translateY(-4px) scale(1);
  box-shadow: 0 12px 40px rgba(26,86,219,.5);
}
.back-to-top:active { transform: translateY(-1px) scale(0.95); }
.btt-icon { width: 24px; height: 24px; stroke-width: 2.5; }

/* ── Hamburger ────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--gray-2); border-radius: 2px; transition: var(--trans);
}

/* ── Hero Slider ──────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  margin-top: 64px; height: calc(100vh - 64px); min-height: 520px;
}
.slides { display: flex; height: 100%; transition: transform .7s cubic-bezier(.77,0,.175,1); }
.slide {
  min-width: 100%; height: 100%;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05); transition: transform 6s ease;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,.75) 0%, rgba(15,23,42,.2) 100%);
}
.slide-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  width: 100%;
}
.slide-tag {
  display: inline-block;
  background: rgba(6,182,212,.2); border: 1px solid rgba(6,182,212,.4);
  color: var(--accent); font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 99px; margin-bottom: 16px;
  opacity: 0; transform: translateY(20px); transition: opacity .6s .2s, transform .6s .2s;
}
.slide.active .slide-tag { opacity: 1; transform: none; }
.slide-title {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700;
  color: var(--white); line-height: 1.15; max-width: 640px;
  opacity: 0; transform: translateY(24px); transition: opacity .6s .35s, transform .6s .35s;
}
.slide.active .slide-title { opacity: 1; transform: none; }
.slide-desc {
  font-size: 1.05rem; color: rgba(255,255,255,.8);
  max-width: 500px; margin: 16px 0 32px;
  opacity: 0; transform: translateY(24px); transition: opacity .6s .5s, transform .6s .5s;
}
.slide.active .slide-desc { opacity: 1; transform: none; }
.slide-btns {
  display: flex; gap: 12px; flex-wrap: wrap;
  opacity: 0; transform: translateY(24px); transition: opacity .6s .65s, transform .6s .65s;
}
.slide.active .slide-btns { opacity: 1; transform: none; }
.btn-primary {
  padding: 12px 28px; border-radius: 8px;
  background: var(--primary); color: #fff;
  font-weight: 600; font-size: .95rem;
  transition: background 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
  box-shadow: 0 4px 15px rgba(26,86,219,.3);
}
.btn-primary:hover { 
  background: var(--primary-d); 
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26,86,219,.4);
}
.btn-primary:active { transform: translateY(-1px); }
.btn-outline {
  padding: 12px 28px; border-radius: 8px;
  border: 2px solid rgba(255,255,255,.6); color: #fff;
  font-weight: 600; font-size: .95rem;
  transition: border-color 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              background 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
}
.btn-outline:hover {
  border-color: #fff; 
  background: rgba(255,255,255,.12); 
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,255,255,.2);
}
.btn-outline:active { transform: translateY(-1px); }

/* Slider controls */
.slider-ctrl {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%); z-index: 10;
  display: flex; align-items: center; gap: 16px;
}
.slider-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px; border-radius: 99px;
  background: rgba(255,255,255,.4); cursor: pointer;
  transition: width var(--trans), background var(--trans);
}
.dot.active { width: 28px; background: #fff; }
.slider-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--trans); font-size: 1.1rem;
}
.slider-arrow:hover { background: rgba(255,255,255,.3); }

/* ── Section Wrapper ──────────────────────────── */
.section { padding: 88px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--dark); line-height: 1.2; max-width: 560px;
}
.section-sub {
  margin-top: 12px; color: var(--gray-3);
  font-size: 1rem; max-width: 540px;
}
.section-head { margin-bottom: 52px; }

/* ── Info Cards ───────────────────────────────── */
#info { background: var(--gray-5); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.info-card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.35s ease;
  border: 1px solid rgba(0,0,0,.04);
  position: relative; overflow: hidden;
  z-index: 1;
}
.info-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,86,219,0.05), rgba(6,182,212,0.05));
  opacity: 0; transition: opacity 0.35s ease;
  pointer-events: none;
}
.info-card:hover::before { opacity: 1; }
.info-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  border-color: var(--primary);
}
.info-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.info-icon.blue  { background: #dbeafe; }
.info-icon.cyan  { background: #cffafe; }
.info-icon.green { background: #dcfce7; }
.info-icon.violet{ background: #ede9fe; }
.info-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.info-card p  { font-size: .9rem; color: var(--gray-3); line-height: 1.65; }

/* ── Stats ────────────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 56px 24px;
}
.stats-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; text-align: center;
}
.stat-num {
  font-size: 2.6rem; font-weight: 700; color: #fff; line-height: 1;
}
.stat-label { font-size: .875rem; color: rgba(255,255,255,.8); margin-top: 6px; }

/* ── Gallery ──────────────────────────────────── */
#galeri { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius); cursor: pointer;
}
.gallery-item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-item:nth-child(3) { grid-column: span 3; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 3; }
.gallery-item:nth-child(6) { grid-column: span 6; }
.gallery-item:nth-child(7) { grid-column: span 6; }
.gallery-img {
  width: 100%; height: 100%; min-height: 200px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gallery-item:hover .gallery-img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,23,42,.8) 0%, rgba(15,23,42,.3) 40%, transparent 70%);
  opacity: 0; transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); display: flex;
  align-items: flex-end; padding: 20px; backdrop-filter: blur(2px);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption { color: #fff; font-size: .85rem; font-weight: 500; }

/* ── Gallery Modal ────────────────────────────── */
.gallery-modal {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(4px);
  z-index: 9999; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.3s ease;
}
.gallery-modal.active {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-content {
  background: var(--white); border-radius: 12px;
  max-width: 800px; width: 100%;
  overflow: hidden; position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex; flex-direction: column;
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none; border-radius: 50%;
  font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: all 0.3s ease;
}
.modal-close:hover {
  background: var(--white); transform: rotate(90deg);
}
.modal-body {
  width: 100%; display: flex; align-items: center;
  justify-content: center;
  background: #f8f9fa; min-height: 300px;
}
.modal-image {
  max-width: 100%; max-height: 70vh;
  object-fit: contain; display: block;
}
.modal-footer {
  padding: 24px; border-top: 1px solid var(--gray-4);
}
.modal-footer h3 {
  margin: 0 0 12px 0; font-size: 1.2rem;
  color: var(--dark);
}
.btn-modal-link {
  display: inline-block;
  background: var(--primary); color: var(--white);
  padding: 10px 20px; border-radius: 6px;
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.3s ease; cursor: pointer;
}
.btn-modal-link:hover {
  background: var(--primary-d); transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}

/* ── Aplikasi ─────────────────────────────────── */
#aplikasi { background: var(--gray-5); }
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.app-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; display: flex; align-items: flex-start; gap: 16px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              border-color 0.35s ease;
  cursor: pointer; text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  z-index: 1;
}
.app-card::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.app-card:hover::before { left: 100%; }
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  border-color: var(--primary);
}
.app-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1.35rem;
}
.app-info { flex: 1; min-width: 0; }
.app-name { font-weight: 600; font-size: .95rem; color: var(--dark); margin-bottom: 4px; }
.app-desc { font-size: .82rem; color: var(--gray-3); line-height: 1.55; }
.app-badge {
  display: inline-block; margin-top: 8px;
  padding: 3px 10px; border-radius: 99px;
  font-size: .7rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-active { background: #dcfce7; color: #16a34a; }
.badge-new    { background: #dbeafe; color: var(--primary); }
.badge-beta   { background: #fef3c7; color: #d97706; }

/* ── Footer ───────────────────────────────────── */
footer {
  background: var(--dark); color: rgba(255,255,255,.7);
  padding: 64px 24px 32px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-box {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; margin-bottom: 16px;
}
.footer-brand p { font-size: .875rem; line-height: 1.7; }
.footer-col h4 {
  font-size: .85rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .875rem; color: rgba(255,255,255,.7);
  transition: color var(--trans);
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 28px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: .8rem;
}
.footer-bottom span { opacity: .5; }

/* ── Scroll-reveal ────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: none; }

/* Stagger effect for reveal elements */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* Smooth hover effects */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

button, a {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced smooth transitions */
.app-card, .info-card, .gallery-item, .slide {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/*  Artistic border glow effect */
.app-card:hover::before,
.info-card:hover::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.1;
  z-index: -1;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 6; grid-row: span 1; }
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) { grid-column: span 3; }
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(7) { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; width: 100%;
    background: rgba(255,255,255,.97); backdrop-filter: blur(18px);
    padding: 20px 24px 28px; gap: 18px;
    border-bottom: 1px solid var(--gray-4);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
