:root {
  --white: #ffffff;
  --off-white: #f5f5f7;
  --ink: #1d1d1f;
  --body-muted: #5a5a5e;
  --dark: #18181a;
  --dark-muted: #cccccc;
  --dark-muted-2: #8a8a8e;
  --accent: #c8963c;
  --border-light: #e5e5e7;
  --border-light-2: #d6d6d8;
  --border-dark: #3a3a3c;
  --border-footer: #2c2c2e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.8; }

.mono-tag, .eyebrow { font-family: 'IBM Plex Mono', monospace; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.eyebrow.center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn:active { transform: scale(0.95); }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border-light-2); }
.btn-outline-dark { color: #ffffff; border-color: var(--border-dark); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 72px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { opacity: 1; }
.brand-name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.main-nav a:not(.btn) { color: var(--ink); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.nav-cta { padding: 10px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle:active { transform: scale(0.95); }
.nav-toggle-bar { width: 22px; height: 2px; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  z-index: 99;
  background: var(--white);
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px 40px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu-nav a { color: var(--ink); font-size: 22px; font-weight: 600; padding: 14px 4px; min-height: 44px; }
.mobile-menu-cta { justify-content: center; padding: 16px; font-size: 16px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Hero */
@keyframes heroGridDrift { 0% { background-position: 0 0; } 100% { background-position: 64px 64px; } }
@keyframes heroGlowDrift {
  0% { transform: translate(-8%, -6%) scale(1); }
  50% { transform: translate(6%, 4%) scale(1.15); }
  100% { transform: translate(-8%, -6%) scale(1); }
}
.hero {
  position: relative;
  padding: clamp(96px, 16vw, 180px) clamp(20px, 5vw, 48px) clamp(80px, 10vw, 120px);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(#e9e9eb 1px, transparent 1px), linear-gradient(90deg, #e9e9eb 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
  animation: heroGridDrift 18s linear infinite;
}
.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 900px;
  height: 900px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(200, 150, 60, 0.16), rgba(200, 150, 60, 0) 65%);
  animation: heroGlowDrift 16s ease-in-out infinite;
}
.hero-content { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; text-align: center; }
.hero-content h1 { font-size: clamp(38px, 6vw, 76px); line-height: 1.02; margin: 0 0 28px; }
.hero-lead { font-size: clamp(19px, 2.4vw, 24px); font-weight: 300; color: #3a3a3c; max-width: 620px; margin: 0 auto 44px; line-height: 1.5; }
.hero-cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Services */
.services-section { background: var(--off-white); padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 48px); }
.section-inner { max-width: 1160px; margin: 0 auto; }
.services-section h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 56px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card { background: var(--white); border-radius: 18px; padding: 36px 32px; }
.mono-tag { font-size: 13px; font-weight: 500; color: var(--accent); margin: 0 0 12px; letter-spacing: 0.04em; }
.service-card h3 { font-size: 22px; margin: 0 0 12px; }
.service-card p:last-child { font-size: 17px; color: var(--body-muted); line-height: 1.6; }

/* Portfolio */
.portfolio-section { padding: clamp(24px, 4vw, 40px) 0; }
.portfolio-tile { padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 48px); }
.portfolio-dark { background: var(--dark); color: #ffffff; }
.portfolio-light { background: var(--white); color: var(--ink); }
.portfolio-inner { max-width: 1160px; margin: 0 auto; text-align: center; }
.portfolio-tile h3 { font-size: clamp(30px, 5vw, 52px); margin: 0 0 16px; }
.portfolio-tagline { font-size: 19px; max-width: 560px; margin: 0 auto 20px; line-height: 1.5; }
.portfolio-dark .portfolio-tagline { color: var(--dark-muted); }
.portfolio-light .portfolio-tagline { color: var(--body-muted); }
.portfolio-result { font-size: 17px; font-weight: 600; color: var(--accent); margin: 0 0 32px; }
.portfolio-cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.portfolio-shot-wrap { max-width: 880px; margin: 0 auto; }
.portfolio-shot {
  width: 100%;
  height: clamp(220px, 32vw, 440px);
  border-radius: 14px;
  background: repeating-linear-gradient(45deg, rgba(127,127,130,0.08), rgba(127,127,130,0.08) 12px, rgba(127,127,130,0.03) 12px, rgba(127,127,130,0.03) 24px);
  box-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  will-change: transform;
}
.portfolio-dark .portfolio-shot { background-color: #232326; color: var(--dark-muted); }
.portfolio-light .portfolio-shot { background-color: #fafafb; color: var(--body-muted); border: 1px solid var(--border-light); }

/* Reviews */
.reviews-section { background: var(--off-white); padding: clamp(80px, 10vw, 140px) 0; }
.reviews-title { margin: 0 0 48px; padding: 0 24px; font-size: clamp(28px, 4vw, 42px); }
.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px clamp(20px, 8vw, 120px) 24px;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  scroll-snap-align: center;
  flex: 0 0 clamp(260px, 70vw, 380px);
  background: var(--white);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}
.review-quote { font-size: 17px; color: var(--ink); line-height: 1.6; margin: 0 0 24px; }
.review-name { font-size: 15px; font-weight: 600; margin: 0; }
.review-company { font-size: 14px; color: var(--dark-muted-2); margin: 2px 0 0; }
.review-dots { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.review-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--border-light-2); cursor: pointer; transition: background 0.3s ease, width 0.3s ease; }
.review-dot.is-active { background: var(--accent); width: 20px; }

/* FAQ */
.faq-section { background: var(--white); padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 48px); }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-section h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 48px; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 22px 4px;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  font-family: inherit;
}
.faq-question span:first-child { font-size: 18px; font-weight: 500; color: var(--ink); }
.faq-icon { flex-shrink: 0; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--accent); transform: rotate(0deg); transition: transform 0.35s ease; }
.faq-item.is-open .faq-icon { transform: rotate(135deg); }
.faq-answer-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.faq-item.is-open .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p { font-size: 17px; color: var(--body-muted); line-height: 1.6; margin: 0 0 24px; padding: 0 4px; }

/* Closing CTA */
.closing-cta { background: var(--dark); color: #ffffff; padding: clamp(96px, 14vw, 180px) clamp(20px, 5vw, 48px); text-align: center; }
.closing-cta .eyebrow { text-align: center; }
.closing-headline { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.02em; max-width: 780px; margin: 0 auto 40px; line-height: 1.25; }

/* Footer */
.site-footer { background: var(--dark); color: var(--dark-muted); padding: clamp(64px, 8vw, 96px) clamp(20px, 5vw, 48px) 32px; }
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; padding-bottom: 56px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo span { font-weight: 600; font-size: 17px; color: #ffffff; }
.footer-brand p { font-size: 15px; line-height: 1.6; max-width: 220px; }
.footer-col-title { font-size: 13px; font-weight: 600; color: var(--dark-muted-2); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 16px; }
.footer-col { display: flex; flex-direction: column; }
.footer-col a { color: var(--dark-muted); font-size: 15px; margin-bottom: 10px; }
.footer-address { font-size: 15px; color: var(--dark-muted); margin: 0; }
.footer-legal { border-top: 1px solid var(--border-footer); padding-top: 24px; }
.footer-legal p { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--dark-muted-2); letter-spacing: 0.04em; }

@media (prefers-reduced-motion: reduce) {
  .hero-grid-bg, .hero-glow { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .portfolio-shot { transform: none !important; }
}

@media (max-width: 834px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-content h1 { font-size: clamp(32px, 8vw, 48px); }
  .portfolio-cta-row { margin-bottom: 40px; }
}
