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

:root {
  --black: #0d0d0d;
  --dark: #111111;
  --dark2: #1a1a1a;
  --gold: #c8a55c;
  --gold-light: #d4af6a;
  --cream: #faf7ef;
  --cream2: #fbfaf7;
  --white: #f5f5f5;
  --muted: #999999;
  --muted-warm: #6f6a5f;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1.5px solid transparent;
}
.btn .arrow { font-size: 1.1em; transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { padding: 9px 22px; font-size: 0.8rem; }

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.35s, padding 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(9,9,9,0.86);
  backdrop-filter: blur(10px);
  border-color: rgba(200,165,92,0.16);
  padding: 11px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 1px;
}
.logo strong { font-weight: 700; }

.main-nav {
  display: flex;
  gap: 36px;
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.nav-cta { white-space: nowrap; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* === EYEBROW === */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.gold-text { color: var(--gold); }

/* === HERO === */
.hero {
  position: relative;
  min-height: min(100dvh, 820px);
  display: flex;
  align-items: center;
  padding: 92px 0 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 28%, rgba(200,165,92,0.2) 0%, rgba(200,165,92,0) 30%),
    radial-gradient(circle at 19% 72%, rgba(200,165,92,0.11) 0%, rgba(200,165,92,0) 34%),
    linear-gradient(116deg, #090909 0%, #0c0c0c 45%, #121212 100%);
}
.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-asset {
  position: absolute;
  pointer-events: none;
}
.hero-asset.wire-grid {
  right: 22%;
  bottom: 13%;
  width: min(33vw, 500px);
  opacity: 0.5;
  animation: gridFloat 20s ease-in-out infinite;
}
@keyframes gridFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-asset.crescent-arc {
  right: 0%;
  top: 2%;
  width: min(58vw, 860px);
  opacity: 0.5;
}
.hero-asset.sparkle-cluster {
  width: 120px;
  opacity: 0.48;
  animation: sparkle 3s ease-in-out infinite;
}
.hero-asset.sparkle-cluster.s1 { right: 31%; top: 16%; width: 96px; }
.hero-asset.sparkle-cluster.s2 { right: 37%; top: 58%; animation-delay: 1.5s; width: 82px; }
@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr);
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content { max-width: 540px; }

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.95vw, 4.48rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0.4px;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero-headline .gold { color: var(--gold); }
.hero-headline .white { color: var(--white); }

.hero-body {
  font-size: 0.98rem;
  color: #cbcbcb;
  line-height: 1.78;
  margin-bottom: 30px;
  max-width: 400px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0 0;
}
.stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}
.stat-label {
  font-size: 0.7rem;
  color: #b3b3b3;
}
.stat-divider {
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,0.22);
}

/* Hero Visual - CSS devices */
.hero-visual {
  position: relative;
  height: clamp(500px, 48vw, 650px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-asset.torus-ring {
  position: absolute;
  width: min(45vw, 700px);
  top: 42%;
  left: 51%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: torusSpin 30s linear infinite;
  opacity: 0.74;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0,0,0,0.26) 72%, rgba(0,0,0,0) 83%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0,0,0,0.26) 72%, rgba(0,0,0,0) 83%);
}
@keyframes torusSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.hero-asset.rock-base {
  position: relative;
  z-index: 3;
  width: clamp(560px, 47vw, 720px);
  max-width: none;
  transform: translate(6%, 18%);
  filter: drop-shadow(0 34px 58px rgba(0,0,0,0.42));
}
.hero-asset.devices-only {
  position: absolute;
  z-index: 4;
  width: clamp(500px, 41vw, 630px);
  max-width: none;
  left: 54%;
  top: 55%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.32));
}
.hero-asset.phone {
  position: absolute;
  right: 2%;
  top: 54%;
  transform: translateY(-50%);
  width: clamp(158px, 13vw, 208px);
  z-index: 6;
  animation: phoneFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.36));
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 10px)); }
}
.hero-asset.sphere-lg {
  position: absolute;
  left: 2%;
  bottom: 16%;
  width: clamp(94px, 8.8vw, 138px);
  z-index: 7;
  animation: sphereFloat 8s ease-in-out infinite;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.26));
}
.hero-asset.sphere-sm {
  position: absolute;
  right: 8%;
  top: 8%;
  width: clamp(48px, 4.8vw, 74px);
  z-index: 7;
  animation: sphereFloat 6s ease-in-out infinite 1s;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
}
.hero-asset.sphere-black {
  position: absolute;
  left: 10%;
  top: 7%;
  width: clamp(68px, 6.1vw, 98px);
  z-index: 7;
  animation: sphereFloat 7s ease-in-out infinite 0.5s;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.34));
}
@keyframes sphereFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
.hero-asset.sphere-black-back {
  left: 63%;
  top: 63%;
  width: clamp(34px, 3.2vw, 52px);
  z-index: 2;
  opacity: 0.82;
  animation-duration: 9s;
}
.hero-asset.sphere-sm-back {
  left: 28%;
  top: 46%;
  width: clamp(28px, 2.8vw, 44px);
  z-index: 2;
  opacity: 0.94;
  animation-duration: 7.5s;
}
.hero-asset.sphere-lg-back {
  right: 24%;
  bottom: 6%;
  width: clamp(54px, 4.8vw, 82px);
  z-index: 2;
  opacity: 0.9;
  animation-duration: 10s;
}

/* === TRUSTED STRIP === */
.trusted-strip {
  background: var(--cream);
  border-top: 1px solid rgba(200,165,92,0.15);
  border-bottom: 1px solid rgba(200,165,92,0.15);
  padding: 24px 0;
}
.trusted-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.trusted-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--muted-warm);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.trusted-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}
.trust-logo {
  font-size: 0.95rem;
  color: #888;
  text-align: center;
  opacity: 0.7;
  line-height: 1.2;
  transition: opacity 0.3s;
}
.trust-logo:hover { opacity: 1; }

/* === SERVICES === */
.services {
  background: var(--cream2);
  padding: 90px 0;
}
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 56px;
}
.section-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
}
.services-intro {
  max-width: 380px;
  font-size: 0.9rem;
  color: var(--muted-warm);
  line-height: 1.7;
  padding-top: 28px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 28px 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.82rem;
  color: var(--muted-warm);
  line-height: 1.65;
}

/* === PROCESS === */
.process {
  background: var(--cream);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.process-bg-city {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  opacity: 0.12;
  pointer-events: none;
}
.process-doodle {
  position: absolute;
  top: 20px;
  right: 0;
  width: 300px;
  opacity: 0.08;
  pointer-events: none;
}
.process-header { margin-bottom: 56px; }
.section-heading.serif-italic {
  font-style: italic;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
}
.process-step {
  flex: 1;
  text-align: center;
  max-width: 224px;
  position: relative;
  z-index: 2;
}
.process-illus {
  width: clamp(172px, 15vw, 222px);
  height: 184px;
  margin: -8px auto 8px;
  position: relative;
  z-index: 3;
}
.process-illus img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0,0,0,0.08));
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 10px;
  position: relative;
  z-index: 4;
}
.process-step h4 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.8rem;
  color: var(--muted-warm);
  line-height: 1.6;
  padding: 0 8px;
}

.process-arrow {
  display: flex;
  align-items: center;
  padding-top: 126px;
  width: 60px;
  flex-shrink: 0;
}
.process-arrow svg { width: 60px; height: 20px; }

/* === PORTFOLIO === */
.portfolio {
  background: var(--dark);
  padding: 80px 0;
  border-top: 1px solid rgba(200,165,92,0.15);
}
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.section-heading.light { color: var(--white); }
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}
.view-all:hover { color: var(--gold); }
.view-all .arrow { transition: transform 0.3s; }
.view-all:hover .arrow { transform: translateX(4px); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.portfolio-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,165,92,0.3);
}
.portfolio-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-img img {
  transform: scale(1.05);
}
.portfolio-info {
  padding: 14px 16px;
  background: rgba(0,0,0,0.3);
}
.portfolio-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.portfolio-cat {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 500;
}

/* === CTA === */
.cta-band {
  background: var(--dark2);
  padding: 60px 0;
  border-top: 1px solid rgba(200,165,92,0.2);
  position: relative;
}
.cta-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-content {
  flex: 1;
  min-width: 280px;
}
.cta-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.25;
}
.cta-content p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 380px;
}
.cta-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
.cta-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 500;
}
.cta-plant {
  position: absolute;
  right: 40px;
  bottom: 0;
  width: 120px;
  pointer-events: none;
}
.cta-sparkle {
  position: absolute;
  right: 180px;
  top: 20px;
  width: 60px;
  opacity: 0.4;
  pointer-events: none;
}

/* === FOOTER === */
.site-footer {
  background: var(--cream);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo {
  margin-bottom: 16px;
}
.footer-logo span { color: var(--dark); }
.footer-desc {
  font-size: 0.82rem;
  color: var(--muted-warm);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}
.social-icons {
  display: flex;
  gap: 12px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  transition: background 0.3s;
}
.social-icons a:hover { background: rgba(200,165,92,0.2); }

.footer-links h4,
.footer-contact h4 {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--muted-warm);
  margin-bottom: 10px;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact p {
  font-size: 0.85rem;
  color: var(--muted-warm);
  margin-bottom: 10px;
}
.footer-town {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.town-illustration {
  width: 100%;
  max-width: 300px;
  display: block;
}

.footer-bottom {
  background: var(--dark);
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .process-arrow { width: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13,13,13,0.98);
    padding: 24px;
    gap: 20px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-visual {
    height: 390px;
    transform: none;
    margin-inline: -24px;
    overflow: hidden;
  }
  .hero {
    padding: 96px 0 24px;
  }
  .hero-content {
    max-width: 100%;
    min-width: 0;
  }
  .hero-headline {
    font-size: clamp(2.15rem, 9.6vw, 2.9rem);
    line-height: 0.98;
    max-width: 10ch;
  }
  .hero-body {
    max-width: min(100%, 33ch);
    overflow-wrap: break-word;
  }
  .hero-asset.crescent-arc {
    right: -46%;
    top: 38%;
    width: 132vw;
    opacity: 0.22;
  }
  .hero-asset.wire-grid {
    right: 3%;
    bottom: 2%;
    width: 230px;
    opacity: 0.26;
  }
  .hero-asset.sparkle-cluster { display: none; }
  .hero-asset.rock-base {
    width: min(116vw, 500px);
    transform: translate(5%, 25%);
  }
  .hero-asset.devices-only {
    width: min(96vw, 408px);
    left: 52%;
    top: 56%;
  }
  .hero-asset.torus-ring {
    width: min(86vw, 360px);
    left: 50%;
    top: 50%;
  }
  .hero-asset.phone {
    width: min(24vw, 108px);
    right: 6%;
    top: 59%;
  }
  .hero-asset.sphere-lg {
    left: 2%;
    bottom: 14%;
    width: min(16vw, 66px);
  }
  .hero-asset.sphere-sm {
    right: 8%;
    top: 12%;
    width: min(9vw, 38px);
  }
  .hero-asset.sphere-black {
    left: 9%;
    top: 10%;
    width: min(11vw, 46px);
  }
  .hero-asset.sphere-black-back,
  .hero-asset.sphere-sm-back,
  .hero-asset.sphere-lg-back {
    display: none;
  }

  .services-header { flex-direction: column; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .process-steps { flex-direction: column; align-items: center; gap: 24px; }
  .process-arrow { display: none; }
  .process-illus {
    width: min(84vw, 286px);
    height: 216px;
  }
  .process-step {
    max-width: 340px;
  }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-header { flex-direction: column; gap: 16px; align-items: flex-start; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-features { justify-items: center; }
  .cta-content p { max-width: 100%; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-town { justify-content: center; }

  .trusted-inner { flex-direction: column; gap: 16px; }
  .trusted-logos { gap: 24px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
  .hero {
    padding: 94px 0 20px;
    min-height: auto;
  }
  .hero-visual {
    height: 310px;
  }
  .hero-headline {
    font-size: clamp(2rem, 9.15vw, 2.42rem);
  }
}
