:root {
  --bg: #0a0a0b;
  --bg-elevated: #111114;
  --fg: #f5f1ea;
  --fg-muted: #a8a39a;
  --fg-subtle: #6b665e;
  --border: rgba(245, 241, 234, 0.08);
  --border-strong: rgba(245, 241, 234, 0.16);
  --accent: #d4a574;
  --accent-fg: #0a0a0b;

  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --section-py: clamp(5rem, 10vw, 9rem);
  --container-px: clamp(1.5rem, 5vw, 2.5rem);
  --container-max: 72rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background: var(--bg);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}

.font-display {
  font-family: var(--font-sans);
  letter-spacing: -0.035em;
  font-weight: 500;
  line-height: 0.95;
}

.font-mono {
  font-family: var(--font-mono);
}

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-subtle);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 250ms var(--ease-out), background 250ms var(--ease-out), color 250ms var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--fg);
  color: var(--accent-fg);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--fg);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--fg);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.95);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(10, 10, 11, 0.35) 0%, rgba(10, 10, 11, 0.7) 60%, rgba(10, 10, 11, 0.95) 100%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.4) 0%, transparent 30%, rgba(10, 10, 11, 0.85) 100%);
}

.hero-headline {
  font-size: clamp(3rem, 9vw, 7.5rem);
}

.scroll-indicator {
  width: 1px;
  height: 4rem;
  background: linear-gradient(180deg, transparent, var(--fg-muted), transparent);
  animation: scroll-pulse 2.5s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

.section-headline {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.service-card {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: baseline;
  transition: padding-left 400ms var(--ease-out);
}

.service-card:last-child {
  border-bottom: 1px solid var(--border);
}

.service-card:hover {
  padding-left: 1rem;
}

.service-card .num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-subtle);
}

.service-card .title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
  font-weight: 500;
}

.service-card .desc {
  color: var(--fg-muted);
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.55;
}

.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  display: block;
}

.process-step h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.process-step p {
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 22rem;
}

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 60rem;
  height: 60rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.12) 0%, transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 640px) {
  .service-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 2rem 0;
  }
  .service-card:hover { padding-left: 0; }
  .service-card .desc { max-width: 100%; }
}

#site-header {
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  will-change: opacity, transform;
}

#site-header.is-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
