:root {
  --bg: #f2f1ed;
  --surface: #ffffff;
  --text: #121212;
  --muted: #505050;
  --line: #d3d0c8;
  --lime: #c8ff53;
  --cyan: #5ae7ff;
  --accent: #141414;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(200, 255, 83, 0.35), transparent 28%),
    radial-gradient(circle at 90% 16%, rgba(90, 231, 255, 0.28), transparent 34%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
  background-image: radial-gradient(#000 0.4px, transparent 0.4px);
  background-size: 4px 4px;
}

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.section {
  padding: clamp(3.2rem, 6vw, 6rem) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(242, 241, 237, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--text);
}

.pill {
  border: 1px solid var(--text);
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  color: var(--text) !important;
}

.hero {
  padding-top: clamp(4rem, 8vw, 6.8rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.1;
}

h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(3.1rem, 12vw, 7.2rem);
  margin-bottom: 0.9rem;
  letter-spacing: 0.03em;
  max-width: 8.5ch;
}

h1 span {
  color: var(--accent);
  background: var(--lime);
  padding-inline: 0.2rem;
}

h2 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 0.4rem;
}

p {
  margin-top: 0;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  text-decoration: none;
  padding: 0.75rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--text);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

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

.btn-solid {
  background: var(--accent);
  color: #f8f8f8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-line {
  color: var(--text);
}

.hero-stack {
  display: grid;
  gap: 0.75rem;
}

.stack-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
  transition: transform 0.32s ease, border-color 0.32s ease;
}

.stack-card:hover {
  transform: translateX(4px);
  border-color: #9d9a91;
}

.stack-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
}

.card-a {
  background: linear-gradient(140deg, #ffffff, #f6fff0);
}

.card-b {
  background: linear-gradient(140deg, #ffffff, #eefcff);
}

.card-c {
  background: linear-gradient(140deg, #ffffff, #f7f7f7);
}

.projects-section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 70ch;
  margin-bottom: 1.1rem;
}

.filters {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.is-active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.project-card.is-hidden {
  opacity: 0.15;
  pointer-events: none;
  transform: scale(0.98);
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: #9d9a91;
}

.thumb {
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 0.85rem;
  color: #0e0e0e;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.thumb-1 {
  background: linear-gradient(135deg, #c8ff53, #f8fff0);
}

.thumb-2 {
  background: linear-gradient(135deg, #5ae7ff, #f3feff);
}

.thumb-3 {
  background: linear-gradient(135deg, #ffffff, #ecebe8);
}

.thumb-4 {
  background: linear-gradient(135deg, #e7ffd8, #ffffff);
}

.thumb-5 {
  background: linear-gradient(135deg, #dcf8ff, #ffffff);
}

.thumb-6 {
  background: linear-gradient(135deg, #f7f7f7, #ffffff);
}

.project-info {
  padding: 0.9rem;
}

.tag {
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}

.process-section {
  background: #eceae4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.process-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
}

.step {
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.results-section {
  border-bottom: 1px solid var(--line);
}

.stats-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
}

.value {
  margin: 0 0 0.35rem;
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.04em;
  color: var(--text);
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1;
}

.cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  text-align: center;
}

.cta p {
  max-width: 60ch;
  margin: 0 auto 1.1rem;
}

.site-footer {
  padding: 1.4rem 0 2rem;
}

.footer-wrap {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.9s cubic-bezier(0.2, 0.65, 0.2, 1) forwards;
}

.reveal-delay {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 1s cubic-bezier(0.2, 0.65, 0.2, 1) 0.2s forwards;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.82s cubic-bezier(0.2, 0.65, 0.2, 1) forwards;
}

.reveal-stagger > :nth-child(1) {
  animation-delay: 0.08s;
}

.reveal-stagger > :nth-child(2) {
  animation-delay: 0.18s;
}

.reveal-stagger > :nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .project-grid,
  .process-grid,
  .stats-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-wrap {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 0.7rem 0;
  }

  .project-grid,
  .process-grid,
  .stats-wrap {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
