:root {
  --accent: #baf23c;
  --accent2: #5eead4;
  --bg: #0c0d0e;
  --bg-alt: #111315;
  --panel: #15181a;
  --fg: #f5f6f4;
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
}

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

input::placeholder, textarea::placeholder { color: rgba(245, 246, 244, 0.35); }
input:focus, textarea:focus { outline: none; border-color: rgba(255, 255, 255, 0.35); }

#top {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(12, 13, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #0e1210;
  flex-shrink: 0;
}

.brand-mark-sm { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.site-nav > a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: rgba(245, 246, 244, 0.75);
  transition: color 0.15s ease;
}

.site-nav > a:not(.btn):hover { color: var(--fg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--accent); color: #0e1210; padding: 10px 20px; font-size: 14px; }
.btn-outline {
  border: 1px solid color-mix(in srgb, var(--accent2) 55%, transparent);
  color: var(--fg);
  background: transparent;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Hero */
.hero {
  padding: 140px 48px 100px;
  position: relative;
  background:
    radial-gradient(ellipse 700px 480px at 22% -10%, color-mix(in srgb, var(--accent) 30%, transparent), transparent),
    radial-gradient(ellipse 700px 480px at 82% 15%, color-mix(in srgb, var(--accent2) 26%, transparent), transparent);
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(245, 246, 244, 0.7);
  text-transform: uppercase;
  margin-bottom: 28px;
  font-family: 'Space Grotesk', sans-serif;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  font-weight: 700;
}

.hero-lead {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(245, 246, 244, 0.72);
  margin: 0 0 40px;
  max-width: 600px;
}

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

.hero-tags {
  margin-top: 56px;
  font-family: monospace;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: rgba(245, 246, 244, 0.4);
  text-transform: uppercase;
  max-width: 680px;
}

.section-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

.kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-inner h2, .work-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Services */
.services {
  padding: 120px 48px;
  position: relative;
  background:
    radial-gradient(ellipse 900px 500px at 100% 0%, color-mix(in srgb, var(--accent2) 14%, transparent), transparent),
    var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 64px;
}

.section-head h2 { max-width: 520px; }

.section-sub {
  max-width: 380px;
  color: rgba(245, 246, 244, 0.65);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-top: 1px solid var(--border);
}

.service-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 32px 20px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background 0.15s ease;
}

.service-card:hover { background: rgba(255, 255, 255, 0.03); }

.service-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  flex-shrink: 0;
  padding-top: 2px;
}

.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}

.service-card p {
  color: rgba(245, 246, 244, 0.62);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* Work */
.work { padding: 120px 48px; background: var(--bg); }
.work-head { margin-bottom: 56px; }
.work-head h2 { max-width: 600px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.work-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
}

.work-card img {
  max-width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.work-body { padding: 28px; }

.tag {
  display: inline-flex;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.work-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
}

.work-body p {
  color: rgba(245, 246, 244, 0.62);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* Contact */
.contact {
  padding: 120px 48px;
  position: relative;
  background:
    radial-gradient(ellipse 900px 500px at 0% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent),
    var(--bg-alt);
  border-top: 1px solid var(--border-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 64px;
}

.contact-grid h2 { margin: 0 0 24px; max-width: 460px; }

.contact-lead {
  color: rgba(245, 246, 244, 0.65);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 420px;
}

.contact-email {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.contact-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
}

/* Success panel is hidden until the form is submitted; the parent
   .contact-panel.is-sent class is the single source of truth for the swap. */
.contact-success {
  display: none;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 280px;
}

.contact-panel.is-sent .contact-form { display: none; }
.contact-panel.is-sent .contact-success { display: flex; }

.contact-success h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
}

.contact-success p {
  color: rgba(245, 246, 244, 0.65);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label { font-size: 13px; color: rgba(245, 246, 244, 0.6); }

.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--fg);
  border-radius: 2px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
}

.field textarea { resize: vertical; }

.contact-error {
  color: #f87171;
  font-size: 14px;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-copy { color: rgba(245, 246, 244, 0.5); font-size: 14px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: rgba(245, 246, 244, 0.5); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--fg); }

/* Responsive */
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header, .hero, .services, .work, .contact, .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}
