:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(17, 24, 39, 0.10);
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.10);
  --radius: 18px;
  --container: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(900px 420px at 80% 0%, rgba(17, 24, 39, 0.06), transparent 55%),
    var(--bg);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  left: 16px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.brand-text {
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  padding: 8px 10px;
  border-radius: 12px;
}

.nav a:hover {
  color: var(--text);
  background: rgba(17, 24, 39, 0.05);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.06);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(17, 24, 39, 0.82);
  margin: 0 auto;
  border-radius: 999px;
}

.nav-toggle-line + .nav-toggle-line {
  margin-top: 6px;
}

.hero {
  padding: 56px 0 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  padding: 10px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(17, 24, 39, 0.72);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(17, 24, 39, 0.30);
}

.headline {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}

.subhead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  border-color: rgba(37, 99, 235, 0.45);
  color: white;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: #1f5ae0;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: rgba(17, 24, 39, 0.05);
}

.meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.meta {
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.meta-k {
  display: block;
  font-size: 12px;
  color: rgba(17, 24, 39, 0.55);
  margin-bottom: 2px;
}

.meta-v {
  display: block;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-card {
  align-self: stretch;
}

.card {
  height: 100%;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 24, 39, 0.10);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.link {
  color: var(--accent);
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

.section {
  padding: 58px 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  letter-spacing: -0.03em;
  font-size: 26px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.grid {
  display: grid;
  gap: 14px;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

.slider-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 14px;
}

.slider-head h3 {
  margin: 0;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.slider-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tile {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
  min-height: 180px;
}

.tile h3 {
  margin: 10px 0 8px;
  letter-spacing: -0.02em;
}

.tile p {
  margin: 0 0 12px;
  color: var(--muted);
}

.tile-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.10);
  background: rgba(255, 255, 255, 0.70);
  font-size: 12px;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.74);
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.tags li {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.05);
  border: 1px solid rgba(17, 24, 39, 0.08);
  color: rgba(17, 24, 39, 0.75);
}

.work-slider {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.work-slider-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.slider-tile {
  flex: 0 0 320px;
  min-height: 220px;
}

.slider-indicator {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.slider-indicator-track {
  position: relative;
  width: min(160px, 100%);
  height: 2px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.09);
  overflow: hidden;
}

.slider-indicator-thumb {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 28px;
  height: 100%;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.42);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.contact-copy h2 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.contact-copy p {
  margin: 0 0 14px;
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: rgba(17, 24, 39, 0.74);
}

.dot {
  opacity: 0.35;
}

.form {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 24, 39, 0.10);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

label span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.65);
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 12px;
  font: inherit;
  color: var(--text);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.60);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-hint {
  margin: 0;
  font-size: 12px;
  color: rgba(17, 24, 39, 0.55);
}

.site-footer {
  padding: 24px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(17, 24, 39, 0.60);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .cards,
  .services,
  .stack {
    grid-template-columns: 1fr;
  }

  .slider-head {
    display: grid;
  }

  .meta {
    min-width: unset;
    flex: 1 1 220px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .slider-tile {
    flex-basis: 280px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(17, 24, 39, 0.10);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav a {
    padding: 12px 12px;
  }

  .site-header[data-menu-open="true"] .nav {
    display: flex;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  .work-slider-track {
    transform: none !important;
  }
}

