:root {
  --void: #07080c;
  --surface: #0f1118;
  --surface-raised: #161922;
  --line: #252a38;
  --line-soft: #1a1e28;
  --text: #e8eaef;
  --text-muted: #9499ab;
  --text-dim: #6b7082;
  --copper: #d4a054;
  --copper-soft: #e8bc72;
  --teal: #3dd6c7;
  --teal-soft: #6de8dc;
  --glow-copper: rgba(212, 160, 84, 0.18);
  --glow-teal: rgba(61, 214, 199, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1140px;
  --step: clamp(72px, 9vw, 120px);
  --display: "Syne", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); }
h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  background: var(--surface-raised);
  color: var(--teal);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}

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

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.85rem;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(7, 8, 12, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  color: var(--copper);
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

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

.nav-list a.is-active {
  background: rgba(61, 214, 199, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle .bar { top: 50%; margin-top: -1px; }
.nav-toggle .bar::before { content: ""; top: -6px; }
.nav-toggle .bar::after { content: ""; top: 6px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--copper) 0%, var(--copper-soft) 100%);
  color: var(--void);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 24px var(--glow-copper);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--glow-copper);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: var(--teal);
  background: rgba(61, 214, 199, 0.06);
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: calc(72px + var(--step)) var(--step);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#hero-waveform {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 60%, var(--glow-teal) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, var(--glow-copper) 0%, transparent 55%),
    linear-gradient(to bottom, transparent 50%, var(--void) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-block: 1.4rem 2rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-tags li {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: rgba(15, 17, 24, 0.6);
}

/* ---------- sections ---------- */

.section {
  padding-block: var(--step);
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head-center .section-lede {
  margin-inline: auto;
}

.section-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 1rem;
  max-width: 58ch;
}

.section-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: 2rem;
}

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(61, 214, 199, 0.35);
  transform: translateY(-2px);
}

.card-feature .card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(61, 214, 199, 0.1);
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.card-feature .card-icon svg {
  width: 22px;
  height: 22px;
}

.card-feature h3 { margin-bottom: 0.6rem; }
.card-feature p { color: var(--text-muted); font-size: 0.95rem; }

.card-learn h3 { margin-bottom: 0.65rem; }
.card-learn p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(212, 160, 84, 0.12);
  color: var(--copper-soft);
}

.card-portfolio {
  position: relative;
  padding-top: 2.5rem;
}

.portfolio-type {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.card-portfolio h3 { margin-bottom: 0.55rem; }
.card-portfolio p { color: var(--text-muted); font-size: 0.94rem; }

/* ---------- split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.split-reverse .field-visual { order: -1; }

.check-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--glow-teal);
}

/* ---------- stats ---------- */

.stat-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat {
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--copper);
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ---------- timeline ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.timeline-step {
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.timeline-num {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  margin-bottom: 1rem;
  line-height: 1;
}

.timeline-step h3 { margin-bottom: 0.5rem; }
.timeline-step p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- field visual ---------- */

.field-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin-inline: auto;
}

.field-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.field-ring-1 { animation: pulse-ring 4s ease-in-out infinite; }
.field-ring-2 { inset: 12%; animation: pulse-ring 4s ease-in-out infinite 0.5s; }
.field-ring-3 { inset: 24%; animation: pulse-ring 4s ease-in-out infinite 1s; }

@keyframes pulse-ring {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

.field-center {
  position: absolute;
  inset: 38%;
  display: grid;
  place-items: center;
  background: var(--surface-raised);
  border-radius: 50%;
  border: 1px solid rgba(61, 214, 199, 0.3);
  color: var(--teal);
  box-shadow: 0 0 40px var(--glow-teal);
}

.field-center svg {
  width: 36px;
  height: 36px;
}

/* ---------- about ---------- */

.about-panel {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(135deg, rgba(61, 214, 199, 0.06) 0%, rgba(212, 160, 84, 0.06) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.about-panel p {
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ---------- contact ---------- */

.section-cta {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, var(--glow-copper) 0%, transparent 60%),
    var(--surface);
  border-top: 1px solid var(--line-soft);
}

.cta-inner {
  max-width: 640px;
}

.contact-form {
  margin-top: 2rem;
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-row-2 { grid-template-columns: 1fr 1fr; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.field textarea { resize: vertical; min-height: 120px; }

.field-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
  min-height: 1.4em;
}

.form-status.is-success { color: var(--teal); }
.form-status.is-error { color: #f07178; }
.form-status.is-warn { color: var(--copper-soft); }

.cta-note {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.cta-note a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: 48px 32px;
  border-top: 1px solid var(--line-soft);
  background: var(--void);
}

.footer-inner {
  display: grid;
  gap: 32px;
}

.footer-brand .brand-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.footer-brand p {
  margin-top: 0.75rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 36ch;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--teal); }

.copyright {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- error page ---------- */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page .hero-inner {
  margin-inline: auto;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-reverse .field-visual { order: 0; }
}

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

  .nav-list {
    position: fixed;
    inset: 72px 16px auto;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .nav-list.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list a { padding: 12px 14px; }

  .card-grid-2,
  .card-grid-3 { grid-template-columns: 1fr; }

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

  .form-row-2 { grid-template-columns: 1fr; }

  .stat-panel { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .field-ring { animation: none; }
  .card:hover { transform: none; }
}
