

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --white: #f5f0eb;
  --gray: #888;
  --gray-dark: #1a1a1a;
  --gray-mid: #2a2a2a;
  --accent: #e8e0d6;
  --brush-font: 'Caveat', cursive;
  --body-font: 'Inter', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

ul { list-style: none; }

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Brush / Handwritten Accent --- */
.brush {
  font-family: var(--brush-font);
  font-weight: 700;
  font-style: normal;
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.service-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.service-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.service-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.service-card.reveal:nth-child(5) { transition-delay: 0.32s; }
.service-card.reveal:nth-child(6) { transition-delay: 0.4s; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

.nav--scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  padding: 1rem 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 3.5rem;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width var(--transition);
}

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

.nav-cta {
  border: 1px solid var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 0;
  transition: background var(--transition), color var(--transition);
}

.nav-cta:hover {
  background: var(--white);
  color: var(--black);
}

.nav-cta::after { display: none !important; }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

img.hero-bg-text {
  position: absolute;
  width: clamp(40rem, 100vw, 100rem);
  opacity: 0.03;
  user-select: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gray);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--body-font);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.hero-title .brush {
  height: 1.8em;
  display: inline-block;
  vertical-align: middle;
}

.hero-title-light {
  display: block;
  font-weight: 200;
  color: var(--gray);
  font-size: 0.5em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0.3em 0;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 3rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll Hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
}

.scroll-hint span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gray);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gray), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--body-font);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(245, 240, 235, 0.3);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--white);
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1rem;
  max-width: 100%;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

/* --- Sections --- */
.section {
  padding: 8rem 0;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--body-font);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
  max-width: 700px;
}

.section-title .brush {
  font-size: 1.2em;
}

/* --- About --- */
.about-text {
  max-width: 700px;
}

.about-text p {
  color: var(--gray);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* --- Services --- */
.services {
  background: var(--gray-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(245, 240, 235, 0.08);
}

.service-card {
  background: var(--gray-dark);
  padding: 3rem 2.5rem;
  transition: background var(--transition);
  position: relative;
}

.service-card:hover {
  background: var(--gray-mid);
}

.service-num {
  font-family: var(--brush-font);
  font-size: 1.5rem;
  color: rgba(245, 240, 235, 0.2);
  display: block;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--gray);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Marquee --- */
.marquee-section {
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(245, 240, 235, 0.06);
  border-bottom: 1px solid rgba(245, 240, 235, 0.06);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  white-space: nowrap;
}

.marquee-content span {
  font-family: var(--brush-font);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: rgba(245, 240, 235, 0.08);
}

.marquee-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 240, 235, 0.15);
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- CTA --- */
.cta {
  padding: 10rem 0;
  text-align: center;
  border-top: 1px solid rgba(245, 240, 235, 0.06);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.cta-content p {
  color: var(--gray);
  font-weight: 300;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* --- Footer --- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(245, 240, 235, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--gray);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 235, 0.06);
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray);
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .section {
    padding: 5rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta { padding: 6rem 0; }

  .btn-large {
    font-size: 0.65rem;
    padding: 1rem 1.5rem;
    text-transform: none;
    letter-spacing: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-large {
    font-size: 0.65rem;
    padding: 1rem 1.5rem;
    text-transform: none;
  }
}
