:root {
  color-scheme: dark;
  --bg: #081527;
  --surface: #0c1f3b;
  --surface-strong: #152d56;
  --text-primary: #f4efe1;
  --text-secondary: #b8c1d0;
  --accent: #b69954;
  --accent-strong: #d4b870;
  --accent-gradient: linear-gradient(135deg, #f2e5b3 0%, #c9aa63 42%, #b0884a 82%);
  --accent-shine: rgba(255, 255, 255, 0.12);
  --muted: #a29170;
  --border: rgba(190, 154, 74, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(214, 184, 108, 0.08), transparent 24%),
    linear-gradient(180deg, #081527 0%, #0d1f3f 38%, #14294d 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

main.cinematic-main {
  /* keep the cinematic container, but use normal flow to avoid overlap */
}

section.parallax-section {
  position: relative;
  overflow: hidden;
  padding: 100px 24px 80px;
  background: rgba(8, 20, 42, 0.8);
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.parallax-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

section.parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 80% 12%, rgba(184, 138, 62, 0.1), transparent 16%),
    radial-gradient(circle at center right, rgba(255, 255, 255, 0.04), transparent 30%);
  opacity: 1;
  transform: translateY(calc(var(--parallax-offset, 0) * 0.16px));
  transition: transform 0.3s ease-out, opacity 0.5s ease;
}

section.parallax-section .section-content,
section.parallax-section .hero-content {
  position: relative;
  z-index: 1;
}

.section {
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.header,
.section {
  position: relative;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 24px;
  background: radial-gradient(circle at top left, rgba(255, 223, 116, 0.08), transparent 25%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 18%);
}

/* Top navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(8, 21, 41, 0.94), rgba(8, 21, 41, 0.70));
  border-bottom: 1px solid rgba(212, 184, 110, 0.12);
  backdrop-filter: blur(8px);
}
.top-nav .nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.top-nav .logo {
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}
.top-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-toggle {
  display: none;
}
.top-nav .nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 0;
}
.top-nav .nav-link:hover {
  color: var(--accent-strong);
  background: rgba(212, 184, 110, 0.10);
}
.button.small {
  padding: 8px 14px;
  font-size: 0.95rem;
}


@media (max-width: 720px) {
  .top-nav .nav-links {
    gap: 8px;
  }
  .top-nav .nav-inner {
    padding: 10px 16px;
  }
  .hero-section { padding-top: 40px; }
}

/* Mobile improvements */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.04);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 0;
    font-size: 1.1rem;
  }

  .top-nav .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    right: 12px;
    left: 12px;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(7,18,37,0.98), rgba(7,18,37,0.95));
    border-radius: 0;
    border: 1px solid rgba(255,255,255,0.03);
    z-index: 130;
    transition: opacity 200ms ease, transform 200ms ease;
    opacity: 0;
    transform: translateY(-6px);
  }

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

  .top-nav .nav-link {
    padding: 10px 12px;
    width: 100%;
  }

  .top-nav .button.small {
    width: 100%;
    justify-content: center;
  }

  .hero-section { padding-top: 96px; }

  .hero-section h1 {
    font-size: clamp(2rem, 6vw, 2.6rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  section.parallax-section {
    min-height: auto;
    padding: 64px 18px;
  }
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow,
.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-section h1 {
  font-size: clamp(3rem, 4.5vw, 5rem);
  margin: 0;
  line-height: 0.95;
}

.hero-copy {
  margin: 32px 0;
  max-width: 680px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 0;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.primary {
  background-image: var(--accent-gradient);
  background-size: 200% 200%;
  color: #071225;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 var(--accent-shine);
}

.secondary {
  background: transparent;
  border-color: rgba(190, 154, 74, 0.30);
  color: var(--text-primary);
}

.section {
  padding: 80px 24px;
}

.section-content,
.section-header {
  max-width: 1140px;
  margin: 0 auto;
}

.section-header h2,
.about-section h2,
.contact-section h2 {
  font-size: clamp(2rem, 2.5vw, 3rem);
  margin: 16px 0 24px;
  color: var(--text-primary);
}

.section p,
.service-card p,
.portfolio-card p,
.process-step p {
  color: var(--text-secondary);
}

.service-card h3,
.portfolio-card h3,
.process-step h3 {
  background-image: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

.stats-grid,
.cards-grid,
.portfolio-grid,
.process-grid {
  display: grid;
  gap: 24px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 40px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(190, 154, 74, 0.12);
  border-radius: 0;
  padding: 28px;
}

.stat-card h3 {
  margin: 0 0 12px;
  font-size: 2.4rem;
  background-image: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.service-card,
.portfolio-card,
.process-step,
.contact-form {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(190, 154, 74, 0.12);
  border-radius: 0;
  padding: 32px;
}

.cards-grid,
.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.process-step {
  display: grid;
  gap: 16px;
}

.process-step span {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 0;
  background-image: var(--accent-gradient);
  background-size: 200% 200%;
  color: #071225;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.portfolio-card h3,
.service-card h3,
.process-step h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: flex-start;
}

.contact-form label {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(243, 205, 107, 0.45);
  outline-offset: 2px;
}

.form-status {
  margin-top: 16px;
  min-height: 1.2rem;
}

.footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 860px) {
  .process-grid,
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-section,
  .section {
    padding: 64px 18px;
  }

  .hero-copy {
    margin: 24px 0;
  }

  .stats-grid,
  .cards-grid,
  .portfolio-grid {
    gap: 18px;
  }

  .parallax-section {
    padding: 72px 18px 56px;
  }
}
