@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #12181A;
  --bg-elev: #1A2124;
  --bg-elev-2: #212A2D;
  --line: #2B3538;
  --text: #ECE9E1;
  --text-muted: #98A3A0;
  --teal: #3FA491;
  --teal-dim: #2A6F62;
  --amber: #E0973C;
  --amber-dim: #B87527;
  --radius: 10px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: inherit; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
  display: inline-block;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* Nav */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 24, 26, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand span { color: var(--teal); }

nav.links { display: flex; gap: 34px; }

nav.links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

@media (max-width: 720px) {
  nav.links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-elev);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  nav.links.open { display: flex; }
  nav.links a { padding: 16px 28px; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  font-family: 'Inter', sans-serif;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--amber); color: #191410; }
.btn-primary:hover { background: #ECA255; }

.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); }

.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero */
.hero {
  padding: 96px 0 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { font-size: 46px; max-width: 560px; }
.hero p.lede { font-size: 18.5px; max-width: 480px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 48px; }
  .hero h1 { font-size: 34px; }
}

/* Wave chart signature */
.wave-box { position: relative; }
.wave-box svg { width: 100%; height: auto; display: block; }

.wave-path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 1.8s ease forwards 0.2s;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

.wave-dot {
  fill: var(--amber);
  opacity: 0;
  animation: fadein 0.6s ease forwards 1.6s;
}

@keyframes fadein { to { opacity: 1; } }

.wave-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  fill: var(--text-muted);
  opacity: 0;
  animation: fadein 0.6s ease forwards 1.9s;
}

@media (prefers-reduced-motion: reduce) {
  .wave-path, .wave-dot, .wave-label { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section.no-border { border-top: none; }

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; }

/* Case studies */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 720px) { .case-grid { grid-template-columns: 1fr; } }

.case-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.case-card .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.case-card h3 { font-size: 21px; margin-bottom: 10px; }
.case-card p { margin-bottom: 0; }

/* Service / feature grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-elev);
}

.feature-card .num {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--amber);
  font-size: 13px;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 { font-size: 19px; }
.feature-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 15px; }
.feature-card li { margin-bottom: 6px; }

/* Steps (real sequence, numbered) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.step .num {
  font-family: 'Fraunces', serif;
  font-size: 34px;
  color: var(--teal);
  display: block;
  margin-bottom: 10px;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer.site-footer a { color: var(--text-muted); text-decoration: none; }
footer.site-footer a:hover { color: var(--text); }

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.field textarea { resize: vertical; min-height: 130px; }

.contact-note {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 14.5px;
  margin-top: 24px;
}

.email-link {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--teal);
  text-decoration: none;
  font-size: 16px;
}
