:root {
  --bg: #090a0b;
  --panel: #111417;
  --panel-strong: #171c20;
  --text: #f4f1e8;
  --muted: #a5abb2;
  --line: rgba(244, 241, 232, 0.12);
  --lime: #c7ff46;
  --teal: #2ce6c8;
  --amber: #ffb347;
  --rose: #ff6f91;
  --nav-width: 86px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(199, 255, 70, 0.08), transparent 24%),
    radial-gradient(circle at 82% 28%, rgba(44, 230, 200, 0.07), transparent 28%),
    radial-gradient(circle at 52% 92%, rgba(255, 179, 71, 0.05), transparent 30%);
  animation: ambientGlow 14s ease-in-out infinite alternate;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

i[data-lucide] {
  display: grid;
  width: 1.25em;
  height: 1.25em;
  place-items: center;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

i[data-lucide]::before {
  content: attr(data-fallback);
}

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

button,
input {
  font: inherit;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--lime);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0;
  animation: preloadPulse 1.05s ease-in-out infinite alternate;
}

body.loaded .preloader {
  visibility: hidden;
  opacity: 0;
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--nav-width);
  border-right: 1px solid var(--line);
  background: rgba(9, 10, 11, 0.86);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  animation: navEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand,
.footer-brand {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(199, 255, 70, 0.55);
  background: rgba(199, 255, 70, 0.08);
  color: var(--lime);
  font-weight: 900;
  letter-spacing: 0;
}

.side-nav nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.nav-link {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid transparent;
  color: var(--muted);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
  animation: navItemEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nav-link:nth-child(1) {
  animation-delay: 0.08s;
}

.nav-link:nth-child(2) {
  animation-delay: 0.14s;
}

.nav-link:nth-child(3) {
  animation-delay: 0.2s;
}

.nav-link:nth-child(4) {
  animation-delay: 0.26s;
}

.nav-link:nth-child(5) {
  animation-delay: 0.32s;
}

.nav-link:nth-child(6) {
  animation-delay: 0.38s;
}

.nav-link:hover,
.nav-link.active {
  border-color: rgba(199, 255, 70, 0.45);
  background: rgba(199, 255, 70, 0.08);
  color: var(--lime);
  box-shadow: 0 0 26px rgba(199, 255, 70, 0.16);
  transform: translateY(-2px);
}

.nav-link svg,
.menu-toggle svg,
.btn svg,
.timeline-item svg,
.service-card svg,
.quote-card svg,
.blog-grid svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.menu-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(17, 20, 23, 0.92);
  color: var(--text);
}

main {
  margin-left: var(--nav-width);
}

.section {
  position: relative;
  padding: 140px 0;
}

.section-inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 110px 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 10, 11, 0.94) 0%, rgba(9, 10, 11, 0.78) 42%, rgba(9, 10, 11, 0.2) 100%),
    linear-gradient(180deg, rgba(9, 10, 11, 0.1) 0%, #090a0b 100%),
    url("assets/hero-workspace.png") center right / cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 56px;
  align-items: center;
}

.hero-content {
  min-width: 0;
}

body.loaded .hero-content .eyebrow,
body.loaded .hero-content h1,
body.loaded .hero-copy,
body.loaded .hero-actions {
  animation: heroTextUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.loaded .hero-content h1 {
  animation-delay: 0.1s;
}

body.loaded .hero-copy {
  animation-delay: 0.2s;
}

body.loaded .hero-actions {
  animation-delay: 0.3s;
}

.hero-portrait {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 0.78;
  justify-self: end;
  margin: 0 -42px 0 0;
  border: 1px solid rgba(199, 255, 70, 0.38);
  background:
    linear-gradient(135deg, rgba(199, 255, 70, 0.12), transparent),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: portraitEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both, portraitFloat 5.6s ease-in-out 1.2s infinite;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid rgba(199, 255, 70, 0.22);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 30%;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.hero-portrait:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 8vw, 7.9rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.45;
}

.hero-copy {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 0 22px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.32) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:hover,
.text-link:hover,
.blog-grid a:hover {
  transform: translateY(-2px);
}

.btn.primary {
  border-color: var(--lime);
  background: var(--lime);
  color: #111;
  box-shadow: 0 0 0 rgba(199, 255, 70, 0);
}

.btn.primary:hover {
  box-shadow: 0 16px 42px rgba(199, 255, 70, 0.22);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.two-column,
.work-grid,
.testimonial-grid,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
}

.about,
.services,
.blog {
  background: #0c0f11;
}

.about h3 {
  max-width: 560px;
  color: var(--amber);
  font-weight: 600;
}

.body-copy p,
.sticky-heading p,
.service-card p,
.quote-card p,
.blog-grid h3,
.footer p {
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--lime);
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.center-heading {
  max-width: 920px;
  margin: 0 auto 72px;
  text-align: center;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.timeline-item,
.service-card,
.quote-card,
.blog-grid article {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.timeline-item:hover,
.service-card:hover,
.quote-card:hover,
.blog-grid article:hover {
  border-color: rgba(199, 255, 70, 0.36);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.54), 0 0 34px rgba(199, 255, 70, 0.08);
  transform: translateY(-5px);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  min-height: 250px;
  padding: 30px;
}

.item-number {
  color: transparent;
  -webkit-text-stroke: 1px rgba(199, 255, 70, 0.8);
  font-size: 3.3rem;
  font-weight: 900;
  line-height: 1;
}

.timeline-item h3,
.service-card h3,
.quote-card h3 {
  margin-bottom: 6px;
  color: var(--text);
}

.meta,
.date {
  display: block;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 700;
}

.date {
  margin: 12px 0;
  color: var(--amber);
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.timeline-item > svg {
  color: var(--lime);
}

.sticky-heading {
  position: sticky;
  top: 60px;
  align-self: start;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  isolation: isolate;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

a.project-card:hover {
  border-color: rgba(199, 255, 70, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.54), 0 0 40px rgba(199, 255, 70, 0.1);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--project-bg);
  transition: transform 0.65s ease, filter 0.65s ease;
}

.project-card:hover::before {
  filter: saturate(1.18);
  transform: scale(1.04);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.84));
}

.project-one {
  --project-bg:
    radial-gradient(circle at 70% 22%, rgba(199, 255, 70, 0.78), transparent 22%),
    linear-gradient(135deg, #1d3d45, #091013 58%, #151515);
}

.project-two {
  --project-bg:
    radial-gradient(circle at 25% 24%, rgba(255, 179, 71, 0.85), transparent 25%),
    linear-gradient(135deg, #102d24, #101316 60%, #1e1510);
}

.project-three {
  --project-bg:
    radial-gradient(circle at 68% 30%, rgba(44, 230, 200, 0.72), transparent 26%),
    linear-gradient(135deg, #111a22, #08090a 62%, #17252a);
}

.project-four {
  --project-bg:
    radial-gradient(circle at 30% 18%, rgba(255, 111, 145, 0.74), transparent 24%),
    linear-gradient(135deg, #24151a, #08090a 62%, #1b1c16);
}

.project-five {
  --project-bg:
    radial-gradient(circle at 70% 20%, rgba(199, 255, 70, 0.72), transparent 24%),
    radial-gradient(circle at 20% 78%, rgba(255, 179, 71, 0.5), transparent 24%),
    linear-gradient(135deg, #10161f, #08090a 62%, #171c12);
}

.project-card span,
.blog-grid span {
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 12px 0 8px;
  font-size: 1.4rem;
}

.project-card p,
.project-details {
  margin-bottom: 0;
  color: rgba(244, 241, 232, 0.72);
  line-height: 1.6;
}

.project-type {
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 800;
}

.project-details {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding-left: 18px;
}

.project-details li::marker {
  color: var(--lime);
}

.project-link {
  display: inline-flex;
  width: max-content;
  margin-top: 24px;
  border-bottom: 1px solid currentColor;
  color: var(--lime);
}

.stats {
  border-block: 1px solid var(--line);
  background: #101315;
  padding: 62px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stats-grid div {
  min-height: 130px;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}

.stats-grid div:last-child {
  border-right: 0;
}

.stats-grid strong {
  display: block;
  color: var(--text);
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  min-height: 350px;
  padding: 34px;
}

.service-card.featured {
  background:
    linear-gradient(180deg, rgba(199, 255, 70, 0.12), rgba(255, 255, 255, 0.025)),
    var(--panel);
}

.service-card > svg {
  width: 48px;
  height: 48px;
  margin-bottom: 42px;
  color: var(--lime);
}

.testimonial {
  background: #090a0b;
}

.testimonial-grid {
  align-items: center;
  perspective: 1100px;
}

.quote-stack {
  position: relative;
  min-height: 430px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.newsletter h2 {
  max-width: 620px;
}

.newsletter form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  max-width: 560px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.newsletter input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 20px;
  outline: 0;
}

.newsletter button {
  display: grid;
  height: 58px;
  place-items: center;
  border: 0;
  background: var(--lime);
  color: #111;
  cursor: pointer;
}

.quote-card {
  position: relative;
  z-index: 2;
  padding: 44px;
  text-align: center;
  transform-origin: center;
  will-change: transform, box-shadow;
}

.quote-stack .quote-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(32px) rotateX(-70deg) scale(0.9);
  animation: testimonialCardFlip 16s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-play-state: paused;
}

.quote-stack.reveal.is-visible .quote-card {
  animation-play-state: running;
}

.quote-stack .quote-card:nth-child(2) {
  animation-delay: 4s;
}

.quote-stack .quote-card:nth-child(3) {
  animation-delay: 8s;
}

.quote-stack .quote-card:nth-child(4) {
  animation-delay: 12s;
}

.quote-stack:hover .quote-card {
  animation-play-state: paused;
}

.quote-card > svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 22px;
  color: var(--lime);
}

.stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--amber);
}

.stars svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.quote-card p {
  font-size: 1.08rem;
}

.quote-card span {
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 800;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.blog-grid article {
  min-height: 280px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.blog-grid h3 {
  margin: 18px 0 30px;
  color: var(--text);
  font-size: 1.25rem;
}

.blog-grid a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--lime);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 0.2s ease;
}

.footer {
  padding: 90px 0 0;
  background: #060707;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 1fr;
}

.footer h3 {
  margin-bottom: 18px;
}

.footer a,
.footer span {
  display: table;
  margin-bottom: 12px;
  color: var(--muted);
}

.footer a:hover {
  color: var(--lime);
}

.footer-brand {
  margin-bottom: 20px;
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 48px));
  margin: 70px auto 0;
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.copyright p {
  margin-bottom: 0;
}

.copyright a {
  color: var(--lime);
  font-weight: 800;
}

.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;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.project-card.reveal,
.service-card.reveal,
.timeline-item.reveal,
.blog-grid article.reveal {
  transform: translateY(42px) scale(0.98);
}

.project-card.reveal.is-visible,
.service-card.reveal.is-visible,
.timeline-item.reveal.is-visible,
.blog-grid article.reveal.is-visible {
  transform: translateY(0) scale(1);
}

a.project-card.reveal.is-visible:hover,
.service-card.reveal.is-visible:hover,
.timeline-item.reveal.is-visible:hover,
.blog-grid article.reveal.is-visible:hover {
  transform: translateY(-5px) scale(1);
}

.stats-grid div.is-counting strong {
  color: var(--lime);
  text-shadow: 0 0 28px rgba(199, 255, 70, 0.2);
}

@keyframes preloadPulse {
  from {
    box-shadow: 0 0 0 rgba(199, 255, 70, 0);
    transform: scale(0.96);
  }

  to {
    box-shadow: 0 0 42px rgba(199, 255, 70, 0.2);
    transform: scale(1);
  }
}

@keyframes testimonialCardFlip {
  0%,
  100% {
    z-index: 1;
    opacity: 0;
    box-shadow: var(--shadow);
    transform: translateY(32px) rotateX(-70deg) scale(0.9);
  }

  4%,
  22% {
    z-index: 5;
    opacity: 1;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.62), 0 0 36px rgba(199, 255, 70, 0.13);
    transform: translateY(-22px) rotateX(0deg) scale(1.045);
  }

  28% {
    z-index: 1;
    opacity: 0;
    box-shadow: var(--shadow);
    transform: translateY(-62px) rotateX(68deg) scale(0.9);
  }

  29%,
  99% {
    z-index: 1;
    opacity: 0;
    box-shadow: var(--shadow);
    transform: translateY(32px) rotateX(-70deg) scale(0.9);
  }
}

@keyframes navEnter {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes navItemEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroTextUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

@keyframes portraitEnter {
  from {
    opacity: 0;
    transform: translateX(34px) rotate(2deg) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0) scale(1);
  }
}

@keyframes portraitFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.07) translate3d(-18px, 10px, 0);
  }
}

@keyframes ambientGlow {
  from {
    opacity: 0.65;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, -18px, 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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .quote-stack {
    display: grid;
    gap: 16px;
    min-height: auto;
  }

  .quote-stack .quote-card {
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 1060px) {
  .timeline,
  .service-grid,
  .blog-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-width: 0px;
  }

  body.nav-open {
    overflow: auto;
  }

  main {
    margin-left: 0;
  }

  .menu-toggle {
    display: grid;
    right: auto;
    left: 18px;
  }

  .side-nav {
    inset: 70px auto auto 18px;
    width: 46px;
    max-height: calc(100svh - 96px);
    padding: 8px 0;
    border: 1px solid var(--line);
    background: rgba(9, 10, 11, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px) scale(0.96);
    transition: opacity 0.22s ease, transform 0.22s ease;
    animation: none;
  }

  .side-nav nav {
    flex: none;
    margin-top: 8px;
    gap: 8px;
    justify-content: flex-start;
  }

  .side-nav .brand {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .side-nav .nav-link {
    width: 34px;
    height: 34px;
  }

  body.nav-open .side-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .section {
    padding: 96px 0;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(9, 10, 11, 0.95), rgba(9, 10, 11, 0.65)),
      linear-gradient(180deg, rgba(9, 10, 11, 0.1), #090a0b),
      url("assets/hero-workspace.png") center / cover no-repeat;
  }

  .two-column,
  .hero-inner,
  .work-grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-portrait {
    width: min(100%, 360px);
    justify-self: center;
    margin: 0 auto;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 620px) {
  .section-inner,
  .copyright {
    width: min(100% - 32px, 1160px);
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .timeline,
  .project-grid,
  .service-grid,
  .blog-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item > svg {
    position: absolute;
    top: 30px;
    right: 30px;
  }

  .project-card,
  .service-card {
    min-height: 300px;
  }

  .hero-portrait {
    width: min(100%, 320px);
    aspect-ratio: 0.82;
    justify-self: center;
    margin: 0 auto;
  }

  .quote-card {
    padding: 30px 20px;
  }

  .quote-stack {
    min-height: 470px;
  }
}
