:root {
  --bg: #f9f9f9;
  --fg: #0b0b0b;
  --muted: #4b4b4b;
  --line: rgba(0, 0, 0, 0.12);
  --panel: rgba(0, 0, 0, 0.04);
  --accent: #0b0b0b;
  --shadow: rgba(0, 0, 0, 0.16);
  --mono: "IBM Plex Mono", monospace;
  --display: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}

body {
  font-family: var(--display);
  background: radial-gradient(circle at top left, #ffffff, #f0f0f0 55%);
  color: var(--fg);
  min-height: 100vh;
}

section {
  scroll-margin-top: 25px;
}

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

button {
  font-family: var(--display);
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  background: var(--fg);
  color: #ffffff;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(249, 249, 249, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

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

.brand-logo {
  width: 230px;
  object-fit: contain;
}

.brand-name {
  font-weight: 600;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  border-color: var(--fg);
}

.hero {
  min-height: 90vh;
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  margin-bottom: 20px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.primary {
  background: var(--fg);
  color: #ffffff;
  border-color: var(--fg);
}

.secondary {
  background: transparent;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.stat {
  font-size: 26px;
  font-weight: 600;
}

.stat-label {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
}

.hero-3d {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 420px;
  perspective: 1200px;
}

.orbit {
  perspective: 1200px;
  height: 420px;
  position: relative;
}

.stack {
  width: 320px;
  height: 380px;
  margin: 0 auto;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.panel {
  position: absolute;
  inset: 0;
  background: #ffffff;
  backdrop-filter: blur(8px);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.panel.one {
  transform: translateZ(0);
  background: #ffffff;
}

.panel.two {
  transform: translateZ(-40px) translateX(24px) rotateY(6deg);
  background: #f6f6f6;
}

.panel.three {
  transform: translateZ(-80px) translateX(48px) rotateY(12deg);
  background: #efefef;
}

.panel-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.panel h3 {
  font-size: 1.3rem;
}

.panel ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  padding: 40px 6vw 80px;
  position: relative;
  z-index: 2;
}

.showcase,
.services,
.cta {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.stack {
  padding: 80px 0;
}

.showcase .container {
  width: 100%;
  padding: 0 5vw;
}

.section-head {
  margin-bottom: 40px;
}

.grid-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(400px, 400px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scroll-padding: 12px;
}

.grid-cards::-webkit-scrollbar {
  height: 0;
}

.grid-cards {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.card {
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--panel);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transform: translateZ(0);
  scroll-snap-align: start;
}

.card-desc {
  color: var(--muted);
  margin: 0;
}

.card-media {
  position: relative;
  border-radius: 16px;
  background: #f2f2f2;
  border: 0px dashed rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.work-image {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.85;
}

.card-placeholder {
  position: absolute;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card-links a {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card::before {
  content: "";
  position: absolute;
  inset: -40% 50% auto -40%;
  height: 180px;
  background: linear-gradient(120deg, transparent, rgba(0, 0, 0, 0.08));
  transform: rotate(8deg);
}

.card-tag {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
}

.card-3d {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.card-frame {
  border: 1px dashed rgba(0, 0, 0, 0.4);
  height: 110px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: start;
}

.service-list {
  display: grid;
  gap: 16px;
}

.service {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.02);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stack-item {
  border: 1px solid var(--line);
  padding: 18px;
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
}

.cta-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: center;
}

.cta-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  background: rgba(0, 0, 0, 0.03);
  display: grid;
  gap: 18px;
}

.cta-title {
  font-size: 20px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.site-footer {
  padding: 40px 0 60px;
}

.footer-map {
  margin-bottom: 30px;
}

.map-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f2f2f2;
  min-height: 220px;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  color: var(--muted);
}

.footer-label {
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 10px;
}

.footer-rights {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.footer-location {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-location .material-symbols-rounded {
  font-size: 14px;
  line-height: 1;
}

.footer-grid a {
  display: block;
  margin-bottom: 6px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.social-links a {
  width: 32px;
  height: 32px;
  display: grid;
  color: #0f0f0f;
  place-items: center;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px #bfbfbf;
}

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

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translate(-50%, -50%) rotateX(20deg) rotateY(25deg);
  }

  50% {
    transform: translate(-50%, -52%) rotateX(25deg) rotateY(35deg);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .stage {
    height: 320px;
  }

  .tile {
    width: 160px;
  }
}