:root {
  --ink: #090909;
  --muted: rgba(9, 9, 9, 0.68);
  --line: rgba(9, 9, 9, 0.12);
  --cloud: #f8f8f5;
  --lime: #bbff2c;
  --blue: #2458ff;
  --orange: #ff8a1f;
  --pink: #ff4fc4;
  --purple: #8b5cff;
  --shadow: 0 24px 80px rgba(9, 9, 9, 0.1);
  --lift: 0 28px 70px rgba(9, 9, 9, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(187, 255, 44, 0.28), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(255, 79, 196, 0.22), transparent 26rem),
    #fff;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-shell {
  background-image:
    linear-gradient(rgba(9, 9, 9, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 9, 9, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
}

.container {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 40px rgba(9, 9, 9, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
}

.logo-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}

.logo:hover .logo-mark {
  transform: rotate(-6deg) translateY(-2px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 15px;
  color: rgba(9, 9, 9, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: var(--ink);
  color: #fff;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta,
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.nav-cta {
  padding: 13px 20px;
  font-size: 0.92rem;
}

.btn {
  padding: 16px 24px;
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--blue);
}

.btn-secondary {
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--lime);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

.hero {
  padding: 150px 0 86px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 58px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(9, 9, 9, 0.06);
  color: rgba(9, 9, 9, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  padding: 10px 15px;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 7px rgba(187, 255, 44, 0.25);
}

.spark {
  color: var(--pink);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

h1 {
  margin-top: 24px;
  max-width: 900px;
  font-size: clamp(3.5rem, 9vw, 7.7rem);
  font-weight: 900;
  text-shadow:
    0.025em 0.035em 0 var(--lime),
    -0.018em 0.02em 0 var(--pink);
  transform-origin: left center;
  animation: hero-breathe 8.7s ease-in-out infinite;
}

h2 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 900;
}

h3 {
  font-size: 1.55rem;
  font-weight: 900;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.24rem);
  font-weight: 600;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  color: rgba(9, 9, 9, 0.72);
  font-size: 0.95rem;
  font-weight: 800;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row svg {
  color: var(--blue);
}

.creative-graphic {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 540px);
  margin-inline: auto;
}

.shape {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}

.shape-frame {
  inset: 8%;
  border: 2px solid var(--ink);
  border-radius: 48px;
  background: #fff;
  box-shadow: var(--lift);
}

.shape-lime {
  top: 13%;
  left: 1%;
  width: 42%;
  height: 42%;
  border-radius: 48px;
  background: var(--lime);
  box-shadow: 10px 10px 0 var(--ink);
  animation-delay: -1s;
}

.shape-pink {
  top: 18%;
  right: 1%;
  width: 39%;
  height: 39%;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: var(--shadow);
  animation-delay: -2s;
}

.shape-blue {
  right: 8%;
  bottom: 8%;
  width: 48%;
  height: 36%;
  border-radius: 42px;
  background: var(--blue);
  box-shadow: 8px 8px 0 var(--ink);
  animation-delay: -3s;
}

.browser-card {
  position: absolute;
  top: 28%;
  right: 13%;
  left: 13%;
  border: 2px solid var(--ink);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.browser-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.bar {
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.mini-grid span {
  height: 74px;
  border-radius: 16px;
}

.browser-button {
  width: 140px;
  height: 36px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--lime);
}

.doodle-ring {
  position: absolute;
  top: 4%;
  right: 0;
  width: 92px;
  height: 92px;
  border: 2px dashed rgba(9, 9, 9, 0.35);
  border-radius: 999px;
}

.services,
.portfolio,
.why,
.story,
.contact {
  position: relative;
  padding: 86px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 18px 0 40px;
}

.section-heading p,
.why-copy,
.contact-copy {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.75;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card,
.reason-card,
.story-card,
.project-card {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: visible;
  border-radius: 32px;
  padding: 26px;
}

.service-card::after {
  position: absolute;
  z-index: 0;
  inset: 5px -6px -7px 5px;
  border: 2px solid var(--ink);
  border-radius: inherit;
  content: "";
  transform: rotate(-1deg);
  transition: clip-path 0.7s ease, opacity 0.45s ease, transform 0.7s ease;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover,
.project-card:hover,
.story-card:hover,
.reason-card:hover {
  box-shadow: var(--lift);
}

.service-card:hover::after {
  clip-path: inset(0 0 0 4%);
  transform: rotate(-0.7deg) translate3d(1px, -1px, 0);
}

.icon-box {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 32px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  overflow: visible;
  transform: translateZ(0);
}

.service-card p,
.reason-card p,
.story-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.portfolio,
.story {
  background: var(--cloud);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.project-card {
  border-radius: 32px;
  padding: 16px;
}

.project-preview {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 28px;
  padding: 18px;
}

.project-preview::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.75), transparent 12rem);
  content: "";
}

.preview-window {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  box-shadow: 7px 7px 0 rgba(9, 9, 9, 0.88);
  padding: 16px;
}

.live {
  margin-left: auto;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 5px 10px;
}

.preview-tag {
  position: absolute;
  right: 20px;
  bottom: 20px;
  rotate: 3deg;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  padding: 10px 14px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 10px 8px;
}

.project-meta p {
  margin: 6px 0 0;
  color: rgba(9, 9, 9, 0.6);
  font-weight: 800;
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  transition: background 0.2s ease, color 0.2s ease;
}

.outline-btn:hover {
  background: var(--ink);
  color: #fff;
}

.btn,
.nav-cta,
.outline-btn {
  --button-radius: 999px;
  border-radius: var(--button-radius);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.reason-card {
  border-radius: 24px;
  padding: 22px;
}

.reason-card svg {
  margin-bottom: 20px;
  color: var(--blue);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.story-card {
  border: 2px solid transparent;
  border-radius: 32px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.story-card.featured {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--lift);
}

.pill {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 900;
  padding: 9px 14px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  border: 2px solid var(--ink);
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--lift);
  padding: 42px;
}

.callout {
  margin-top: 28px;
  border-radius: 24px;
  background: var(--lime);
  box-shadow: 6px 6px 0 var(--ink);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
  padding: 20px;
}

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

.quote-form label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 2px solid rgba(9, 9, 9, 0.15);
  border-radius: 18px;
  background: var(--cloud);
  color: var(--ink);
  font-weight: 650;
  outline: 0;
  padding: 16px 18px;
  transition: border 0.2s ease, background 0.2s ease;
}

.quote-form textarea {
  min-height: 148px;
  resize: vertical;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--blue);
  background: #fff;
}

.form-status {
  display: none;
  border-radius: 18px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 900;
  padding: 16px 18px;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  background: var(--pink);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 38px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(9, 9, 9, 0.64);
  font-size: 0.92rem;
  font-weight: 800;
}

.footer p {
  margin: 0;
  color: rgba(9, 9, 9, 0.55);
  font-size: 0.9rem;
  font-weight: 750;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.living {
  --mx: 0px;
  --my: 0px;
  --rx: 0deg;
  --ry: 0deg;
  --aura-lift: 0px;
  --aura-scale: 1;
  --aura-radius: 0px;
  --float-distance: 3px;
  --float-rotate: 0.16deg;
  --float-duration: 9s;
  --float-delay: 0s;
  transform: translate3d(var(--mx), calc(var(--my) - var(--aura-lift)), 0) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--aura-scale));
  transform-style: preserve-3d;
  transition:
    transform 0.82s cubic-bezier(0.18, 0.9, 0.22, 1),
    box-shadow 0.42s ease,
    background 0.25s ease,
    border-radius 0.42s ease;
  will-change: transform;
  animation: living-float var(--float-duration) ease-in-out var(--float-delay) infinite;
}

.living.is-aura-near {
  box-shadow: var(--lift);
}

.btn.living.is-aura-near,
.nav-cta.living.is-aura-near,
.outline-btn.living.is-aura-near {
  --aura-scale: 1.02;
  --aura-lift: 2px;
  --aura-radius: 8px;
  border-radius: calc(var(--button-radius) + var(--aura-radius));
  box-shadow: 0 20px 54px rgba(9, 9, 9, 0.14);
}

.service-card.living.is-aura-near,
.project-card.living.is-aura-near,
.story-card.living.is-aura-near,
.reason-card.living.is-aura-near {
  --aura-lift: 3px;
}

.drift {
  --drift-delay: 0s;
  animation: sketch-breathe 12s ease-in-out var(--drift-delay) infinite;
  transform-origin: center;
  will-change: transform;
}

.sketch-doodle {
  position: absolute;
  z-index: 0;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 24px;
  color: rgba(9, 9, 9, 0.38);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  pointer-events: none;
  transform-origin: center;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.section-drawn .sketch-doodle {
  animation:
    sketch-draw 0.55s ease-out forwards,
    sketch-breathe 13s ease-in-out 0.8s infinite;
}

.sketch-doodle.is-wiggling {
  animation:
    sketch-draw 0.01s linear forwards,
    one-doodle-wiggle 0.95s ease-in-out;
}

.doodle-arrow {
  top: 8%;
  right: 8%;
  transform: rotate(-8deg);
}

.doodle-star {
  bottom: 10%;
  left: 6%;
}

.doodle-circle {
  top: 12%;
  left: 7%;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: rgba(9, 9, 9, 0.28);
  font-size: 0;
}

.doodle-squiggle {
  right: 7%;
  bottom: 14%;
  transform: rotate(7deg);
}

.doodle-line {
  right: 6%;
  top: 18%;
  transform: rotate(10deg);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(3px);
  }
}

@keyframes hero-breathe {
  0%,
  78%,
  100% {
    transform: scale(1);
  }
  88% {
    transform: scale(1.019);
  }
}

@keyframes living-float {
  0%,
  100% {
    transform: translate3d(var(--mx), calc(var(--my) - var(--aura-lift)), 0) rotateX(var(--rx)) rotateY(var(--ry)) rotate(0deg) scale(var(--aura-scale));
  }
  35% {
    transform: translate3d(var(--mx), calc(var(--my) - var(--aura-lift) - var(--float-distance)), 0) rotateX(var(--rx)) rotateY(var(--ry)) rotate(var(--float-rotate)) scale(var(--aura-scale));
  }
  70% {
    transform: translate3d(var(--mx), calc(var(--my) - var(--aura-lift) + 1px), 0) rotateX(var(--rx)) rotateY(var(--ry)) rotate(calc(var(--float-rotate) * -0.6)) scale(var(--aura-scale));
  }
}

@keyframes sketch-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  45% {
    transform: translate3d(1px, -2px, 0) rotate(0.55deg) scale(1.01);
  }
  72% {
    transform: translate3d(-1px, 1px, 0) rotate(-0.35deg) scale(1);
  }
}

@keyframes sketch-draw {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes one-doodle-wiggle {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  28% {
    transform: translate3d(1px, -1px, 0) rotate(0.85deg) scale(1.012);
  }
  58% {
    transform: translate3d(-1px, 1px, 0) rotate(-0.65deg) scale(0.998);
  }
}

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

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .mobile-menu.is-open {
    display: grid;
    gap: 4px;
    width: min(100% - 40px, 1180px);
    margin: 0 auto 14px;
    border: 1px solid var(--line);
    border-radius: 0 0 24px 24px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .mobile-menu a {
    border-radius: 18px;
    padding: 13px 16px;
    font-weight: 900;
  }

  .mobile-menu a:hover {
    background: var(--cloud);
  }

  .hero-grid,
  .why-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-top: 130px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-bottom: 58px;
  }

  .hero-actions,
  .project-meta,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .outline-btn {
    width: 100%;
  }

  .card-grid,
  .project-grid,
  .reason-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .creative-graphic {
    width: min(100%, 430px);
  }

  .contact-panel {
    padding: 22px;
  }

  .services,
  .portfolio,
  .why,
  .story,
  .contact {
    padding: 64px 0;
  }
}

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