:root {
  --bg: #0f0d0b;
  --bg-2: #171310;
  --surface: #1c1713;
  --surface-2: #241d17;
  --text: #f5efe6;
  --muted: #cbbfae;
  --accent: #d2a96b;
  --accent-2: #e6c38d;
  --line: rgba(255,255,255,0.08);
  --shadow: 0 18px 50px rgba(0,0,0,0.35);
  --radius: 24px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.6;
}

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

/* =========================
   FULL PAGE VIDEO BACKGROUND
========================= */

.site-video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.site-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.site-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,13,11,0.85) 0%, rgba(15,13,11,0.6) 45%, rgba(15,13,11,0.4) 100%),
    rgba(10, 8, 6, 0.3);
  pointer-events: none;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

main,
header,
footer,
.topbar,
section {
  position: relative;
  z-index: 1;
}

.topbar {
  background: #0f0d0b;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.92);
border-bottom: 1px solid rgba(210,169,107,0.25);
box-shadow: 0 2px 12px rgba(210,169,107,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-logo {
  height: 220px;
  width: auto;
  object-fit: contain;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #a67c45);
  display: grid;
  place-items: center;
  color: #0c120f;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #b88a4e);
  color: #1a140f;
  box-shadow: 0 8px 25px rgba(210,169,107,0.2);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 12px 35px rgba(210,169,107,0.35);
}

.btn-secondary {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(12,18,15,0) 0%, rgba(12,18,15,1) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  padding: 88px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.92rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 20px 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  max-width: 720px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.card-panel {
  margin-left: auto;
  background: rgba(18,27,23,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 430px;
}

.card-panel h3 {
  margin-top: 0;
  font-size: 1.45rem;
}

.card-panel p {
  color: var(--muted);
}

section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
}

.section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }

.service-card,
.showcase-card,
.step,
.info-card,
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.service-card,
.step,
.info-card,
.pricing-card {
  padding: 24px;
}

.service-card span,
.kicker {
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.service-card h3,
.step h3,
.info-card h3,
.pricing-card h3 {
  margin: 12px 0 10px;
  font-size: 1.35rem;
}

.service-card p,
.step p,
.info-card p,
.pricing-card p {
  color: var(--muted);
  margin: 0;
}

.band {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.03));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-media {
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(210,169,107,0.25),
    rgba(15,13,11,0.5)
  );
}

.feature-copy {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bullet-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.bullet {
  padding: 18px 18px 18px 52px;
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
}

.bullet::before {
  content: "•";
  position: absolute;
  left: 20px;
  top: 12px;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}

.showcase-card {
  overflow: hidden;
}

.showcase-image {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.showcase-body {
  padding: 22px;
}

.showcase-body h3 {
  margin: 0 0 10px;
}

.showcase-body p {
  margin: 0 0 18px;
  color: var(--muted);
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(196,162,106,0.14);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 18px;
}

.page-hero {
  padding: 92px 0 48px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    radial-gradient(circle at top right, rgba(196,162,106,0.12), transparent 34%);
}

.page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-panel {
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(196,162,106,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
  padding: 34px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: center;
}

form {
  display: grid;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
textarea,
select {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(9,16,13,0.78);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.note {
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

ul.clean {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

ul.clean li {
  margin: 8px 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SERVICES SECTION UPGRADE ===== */

.services {
  padding: 80px 8%;
  background: #6b6b6b;
}

.services h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 14px;
  color: #ffffff;
}

.services-subtext {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  color: #e7e0d6;
  font-size: 1rem;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 30px 24px;
  border-radius: 18px;
  color: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 280px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.22);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.9);
}

.service-card a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.service-card a:hover {
  transform: scale(1.05);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.service-card.web-design {
  background: linear-gradient(180deg, #3b3b3b, #2b2b2b);
}

.service-card.web-design::before {
  background: #d6b48a;
}

.service-card.web-design a {
  background: #d6b48a;
  color: #1f1f1f;
}

.service-card.branding {
  background: linear-gradient(180deg, #4a443d, #332d28);
}

.service-card.branding::before {
  background: #c89d6b;
}

.service-card.branding a {
  background: #c89d6b;
  color: #1f1f1f;
}

.service-card.seo {
  background: linear-gradient(180deg, #3f4038, #2e2f29);
}

.service-card.seo::before {
  background: #e0c29b;
}

.service-card.seo a {
  background: #e0c29b;
  color: #1f1f1f;
}

.service-card.support {
  background: linear-gradient(180deg, #44413d, #2f2b28);
}

.service-card.support::before {
  background: #b88a5c;
}

.service-card.support a {
  background: #b88a5c;
  color: #ffffff;
}

/* =========================
   RUBIKS CUBE BACKGROUND
========================= */

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.06), rgba(0,0,0,0.88) 60%),
    #050505;
  perspective: 1400px;
}

.bg-reveal {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.2);
  opacity: 0;
  transition: transform 1.8s ease, opacity 1.3s ease;
  filter: brightness(0.5);
}

.bg-reveal.active {
  opacity: 1;
  transform: scale(1);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
  z-index: 1;
}

.cube-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(-24deg) rotateY(35deg);
  animation: introFloat 1.2s ease-in-out infinite alternate;
  z-index: 2;
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
}

.cube-wrap.hide {
  opacity: 0;
  filter: blur(14px);
  transform: translate(-50%, -50%) scale(0.82);
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.face {
  position: absolute;
  width: 240px;
  height: 240px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  padding: 3px;
  background: rgba(12,12,12,0.92);
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 18px rgba(0,0,0,0.25) inset;
  backface-visibility: hidden;
}

.tile {
  background-size: 300% 300%;
  background-repeat: no-repeat;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.tile.dim {
  filter: brightness(0.82);
}

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

.front-solved {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 900px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -44%) scale(0.35);
  opacity: 0;
  z-index: 3;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 1.1s ease, opacity 0.8s ease;
  filter: drop-shadow(0 24px 55px rgba(0,0,0,0.45));
  pointer-events: none;
}

.front-solved.expand-logo {
  opacity: 1;
  transform: translate(-50%, -52%) scale(1);
}

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

@keyframes introFloat {
  0% { transform: translate(-50%, -50%) rotateX(-24deg) rotateY(35deg) translateY(-10px); }
  100% { transform: translate(-50%, -50%) rotateX(-24deg) rotateY(35deg) translateY(10px); }
}

@media (max-width: 1080px) {
  .hero-inner,
  .cta-panel,
  .contact-grid,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .card-panel {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .nav {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-inner,
  .cta-panel,
  .contact-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .field-row,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cube-wrap,
  .face {
    width: 180px;
    height: 180px;
  }

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

  .front-solved {
    width: min(82vw, 420px);
  }
}
/* Header text fix */
.site-header .brand {
  color: #f5efe6 !important;
}

.site-header .nav-links a {
  color: #cbbfae !important;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active {
  color: #ffffff !important;
}
/* ===== REMOVE GREY FROM HOME SECTION ===== */

.services,
.services * {
  background: transparent !important;
}
.showcase-video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
}
/* ===== HEADER SCROLL HIDE ===== */

.site-header {
  transition: transform 0.3s ease;
}

.site-header.hide-header {
  transform: translateY(-100%);
}

/* ===== FORCE BLACK HEADER ON ALL PAGES ===== */

.site-header {
  background: #000000 !important;
}
/* ===== TAN PAGE BACKGROUND ===== */

.tan-bg {
  background: #e6d3a3;
  min-height: 100vh;
}
.tan-bg {
  background: linear-gradient(
    to bottom,
    #b88a5a 0%,
    #d2b48c 100%
  );
}

.tan-bg section,
.tan-bg .page-hero {
  background: transparent;
}

.tan-bg .band {
  background: rgba(0, 0, 0, 0.08);
}
/* 🔥 FORCE Services cards to match Process tan style */
.services .pricing-card {
  background: #e7d3a8 !important;   /* tan color */
  border: 1px solid #d4b97a !important;
  color: #2b2114 !important;
}

/* Text inside */
.services .pricing-card h3,
.services .pricing-card p,
.services .pricing-card li {
  color: #2b2114 !important;
}

/* Small label (Starter Site, Growth Site, etc.) */
.services .pricing-card .kicker {
  color: #7a5a2f !important;
  font-weight: 700;
}

/* Hover effect */
.services .pricing-card:hover {
  border-color: #caa85a !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
/* Make the 4 Services boxes darker brown like you wanted */
.services .step {
  background: #6f4b2f !important;
  border: 1px solid #5a3d26 !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22) !important;
}

.services .step h3,
.services .step p,
.services .step li {
  color: #f5efe6 !important;
}

.services .step .kicker {
  color: #e6c38d !important;
  font-weight: 700;
}
/* 🔥 FIX: restore dark brown bubble color to services cards */
.services .step {
  background: var(--surface-2) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
}

/* text stays readable */
.services .step h3,
.services .step p,
.services .step li {
  color: var(--text) !important;
}

/* kicker color */
.services .step .kicker {
  color: var(--accent) !important;
}
/* 🔥 Match "Ready to start" box to dark brown bubbles */
.cta-panel {
  background: var(--surface-2) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
}

/* keep text clean and readable */
.cta-panel h2,
.cta-panel p,
.cta-panel .eyebrow {
  color: var(--text) !important;
}
/* 🔥 Match top "Services" bubble to dark brown theme */
.tan-bg .eyebrow {
  background: var(--surface-2) !important;
  border: 1px solid var(--line) !important;
  color: var(--accent) !important;
}