:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --surface: #151515;
  --line: #2b2b2b;
  --text: #f4f4f4;
  --muted: #b6b6b6;
  --accent: #ffffff;
  --radius: 18px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 42vw;
  height: 42vw;
  z-index: -3;
  filter: blur(60px);
  opacity: 0.5;
}

body::before {
  top: -20vw;
  left: -12vw;
  background: radial-gradient(circle, #ffffff20, transparent 60%);
}

body::after {
  bottom: -18vw;
  right: -14vw;
  background: radial-gradient(circle, #ffffff14, transparent 60%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(#ffffff06 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}

.container {
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: #090909bb;
  border-bottom: 1px solid #1a1a1a;
  z-index: 50;
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  display: inline-block;
  min-height: 1.3em;
  min-width: 2.5em;
  overflow: visible;
}

.brand-short,
.brand-full {
  display: block;
  transition: opacity 300ms ease, transform 300ms ease;
  white-space: nowrap;
}

.brand-short {
  opacity: 1;
  transform: translateY(0);
}

.brand-full {
  opacity: 0;
  transform: translateY(8px);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.brand:hover .brand-short {
  opacity: 0;
  transform: translateY(-8px);
}

.brand:hover .brand-full {
  opacity: 1;
  transform: translateY(0);
}

.nav-links {
  display: flex;
  gap: 1.1rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 220ms ease;
}

.nav-links a:hover {
  color: var(--accent);
}

main {
  padding: 2rem 0 4rem;
}

section {
  margin: 3.5rem auto;
}

.hero {
  padding-top: 2rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 4.6rem);
  max-width: 16ch;
}

h1 span {
  display: inline-block;
  color: #0b0b0b;
  background: linear-gradient(93deg, #ffffff 10%, #c8c8c8 100%);
  border-radius: 8px;
  padding: 0.03em 0.2em;
}

.hero-copy {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--muted);
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  padding: 0.74rem 1.12rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--accent);
  color: #0c0c0c;
}

.btn-solid:hover {
  background: #dbdbdb;
}

.btn-outline {
  color: var(--text);
  border-color: #4b4b4b;
}

.btn-outline:hover {
  border-color: #8c8c8c;
  color: #ffffff;
}

.stats {
  margin: 2.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats li {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, #131313, #101010);
}

.stats strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-head {
  margin-bottom: 1.1rem;
}

h2 {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.project-card,
.client-card,
.process ol,
.contact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #121212, #0e0e0e);
}

.card,
.project-card,
.client-card,
.contact {
  padding: 1.15rem;
}

.card h3,
.project-card h3,
.client-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.card p,
.project-card p,
.client-card p,
.contact p {
  margin: 0;
  color: var(--muted);
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.tag {
  display: inline-flex;
  margin-bottom: 0.55rem;
  border: 1px solid #3d3d3d;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  color: #d0d0d0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: #cbcbcb;
}

.project-card li {
  margin-bottom: 0.45rem;
}

.project-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.project-links a {
  text-decoration: none;
  color: #ededed;
  border: 1px solid #454545;
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  font-size: 0.85rem;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.project-links a:hover {
  border-color: #b6b6b6;
  color: #ffffff;
  transform: translateY(-1px);
}

.client-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.client-card.quote {
  background: linear-gradient(180deg, #1a1a1a, #121212);
}

.client-card.quote span {
  display: block;
  margin-top: 0.7rem;
  color: #e9e9e9;
  font-size: 0.92rem;
}

.process ol {
  margin: 0;
  padding: 1.2rem 1.2rem 1.2rem 2rem;
}

.process li {
  margin-bottom: 0.7rem;
  color: #d4d4d4;
}

.contact {
  text-align: center;
  padding: 2rem 1.2rem;
}

.social-links {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.social-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.social-links a:hover {
  color: var(--text);
  border-color: #8e8e8e;
}

.footer {
  border-top: 1px solid #1e1e1e;
  padding: 1.1rem 0 2rem;
  color: #9a9a9a;
  text-align: center;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 300ms ease;
}

.modal[hidden] {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: #000000aa;
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: linear-gradient(160deg, #1a1a1a, #0f0f0f);
  border: 1px solid #2b2b2b;
  border-radius: 20px;
  padding: 2.2rem;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 20px 60px #00000066;
  animation: slideUp 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 180ms ease, color 180ms ease;
}

.modal-close:hover {
  background-color: #262626;
  color: var(--text);
}

.modal-content h2 {
  margin-bottom: 0.4rem;
  color: var(--text);
}

.modal-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #e0e0e0;
}

.form-group input,
.form-group textarea {
  background: #0a0a0a;
  border: 1px solid #363636;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b6b6b;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6e6e6e;
  box-shadow: 0 0 0 3px #ffffff0c;
}

.form-group textarea {
  resize: vertical;
}

@media (max-width: 980px) {
  .cards,
  .client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .cards,
  .client-grid {
    grid-template-columns: 1fr;
  }

  section {
    margin: 2.4rem auto;
  }
}
