@font-face {
  font-family: 'effraArabic';
  src: url('assets/fonts/Effra-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0c0e;
  --ink-soft: #1a1a1a;
  --paper: #f5f5f5;
  --paper-soft: #ffffff;
  --accent: #ffffff;
  --accent-2: #a8a8a8;
  --muted: #6e6e6e;
  --muted-on-ink: #a8a8a8;
  --line-on-paper: rgba(0, 0, 0, 0.12);
  --line-on-ink: rgba(255, 255, 255, 0.12);
  --bg: var(--ink);
  --fg: var(--paper);
  --muted-fg: var(--muted-on-ink);
  --line: var(--line-on-ink);
  --nav-h: 72px;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme='light'] {
  --bg: var(--paper);
  --fg: var(--ink);
  --accent: #0b0c0e;
  --accent-2: #6e6e6e;
  --muted-fg: var(--muted);
  --line: var(--line-on-paper);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: 'effraArabic', ui-sans-serif, system-ui, sans-serif;
  text-align: start;
  overflow-x: clip;
}

body {
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.fas,
.fab,
.far,
.fal,
.fad {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
}

.fas,
.fad {
  font-weight: 900 !important;
}

.fab {
  font-weight: 400 !important;
}

.hidden {
  display: none !important;
}

.wrap {
  width: min(1240px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

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

.light-band {
  position: relative;
  isolation: isolate;
  background-color: #f9f9ff;
}

.light-band::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 28% at 8% 12%, rgba(116, 100, 252, 0.1), transparent 58%),
    radial-gradient(ellipse 50% 22% at 96% 18%, rgba(100, 185, 252, 0.12), transparent 52%),
    radial-gradient(ellipse 46% 20% at 78% 58%, rgba(45, 192, 119, 0.07), transparent 55%),
    radial-gradient(ellipse 42% 18% at 22% 86%, rgba(100, 116, 252, 0.07), transparent 50%);
}

.light-band > .section {
  position: relative;
  z-index: 1;
}

.light-band .pin-spacer {
  background: transparent !important;
}

.section[data-theme='light'] {
  background-color: transparent;
}

.section[data-theme='light']::before {
  content: none;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section[data-theme='light'] .section-kicker {
  color: #3f3f3f;
}

.section-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 400;
}

.section-lead {
  max-width: 38rem;
  color: var(--muted-fg);
  font-size: 1.15rem;
  line-height: 1.9;
  margin: 0;
}

/* Atmosphere + grain */
#atmosphere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-content {
  position: relative;
  z-index: 3;
}

/* Loader */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s var(--ease);
}

#loading-screen.is-done {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

#loading-screen.is-gone {
  visibility: hidden;
  display: none;
}

.loader-inner {
  width: min(22rem, 80vw);
  text-align: center;
}

.loader-rocket {
  width: 56px;
  height: 56px;
  margin: 0 auto 50px;
  position: relative;
  will-change: transform;
}

.loader-rocket-aim {
  position: relative;
  width: 56px;
  height: 56px;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.loader-logo {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.loader-wake {
  position: absolute;
  top: 50%;
  right: calc(100% - 6px);
  left: auto;
  width: 52px;
  height: 34px;
  transform: translateY(-50%);
  pointer-events: none;
}

.loader-wake-core {
  position: absolute;
  top: 50%;
  left: 0;
  width: 34px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff 28%, rgba(255, 255, 255, 0));
  transform: translateY(-50%);
  animation: loader-wake-flicker 0.22s ease-in-out infinite alternate;
}

.loader-wake-glow {
  position: absolute;
  top: 50%;
  left: -8px;
  width: 48px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(ellipse at left, rgba(255, 255, 255, 0.62), transparent 72%);
  transform: translateY(-50%);
  filter: blur(8px);
  animation: loader-wake-flicker 0.34s ease-in-out infinite alternate-reverse;
}

.loader-wake-spark {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: loader-spark 0.7s linear infinite;
}

.loader-wake-spark.is-b {
  top: 28%;
  animation-delay: 0.18s;
  animation-duration: 0.82s;
}

.loader-wake-spark.is-c {
  top: 72%;
  animation-delay: 0.36s;
  animation-duration: 0.64s;
}

.loader-rocket.is-launching .loader-wake-core {
  width: 46px;
  height: 8px;
}

.loader-rocket.is-launching .loader-wake-glow {
  width: 64px;
  height: 26px;
  opacity: 1;
}

@keyframes loader-wake-flicker {
  from {
    opacity: 0.45;
    transform: translateY(-50%) scaleX(0.82);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scaleX(1.08);
  }
}

@keyframes loader-spark {
  0% {
    opacity: 0;
    transform: translateX(0) scale(0.7);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-38px) scale(0.15);
  }
}

.loader-label {
  margin-bottom: 1.25rem;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--muted-on-ink);
}

.loader-track {
  height: 1px;
  background: rgba(243, 239, 230, 0.15);
  overflow: hidden;
}

#loading-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s linear;
}

#loading-percentage {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--accent);
}

/* Cursor */
#cursor {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  display: none;
}

body.has-cursor #cursor {
  display: block;
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button {
  cursor: none;
}

body.has-cursor input,
body.has-cursor textarea,
body.has-cursor label {
  cursor: text;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.25s;
}

#cursor.is-hidden .cursor-dot,
#cursor.is-hidden .cursor-ring {
  opacity: 0;
}

#cursor.is-hover .cursor-ring {
  width: 64px;
  height: 64px;
  opacity: 0.55;
}

/* Nav */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 12px;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding-inline: var(--pad);
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  position: relative;
  width: min(72rem, 100%);
  min-height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.3rem;
  padding-inline: 0.75rem 0.45rem;
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  backdrop-filter: blur(36px) saturate(1.7);
  -webkit-backdrop-filter: blur(36px) saturate(1.7);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

html[data-theme='light'] .nav-shell {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.logo-link {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  grid-column: 1;
}

.logo-image {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.35s var(--ease);
}

html[data-theme='dark'] .logo-image {
  filter: brightness(0) invert(1);
}

html[data-theme='light'] .logo-image {
  filter: brightness(0);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 42;
  grid-column: 3;
  justify-self: end;
  margin-inline-end: 0.2rem;
}

.nav-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: background 0.25s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(6px);
}

.nav-toggle.is-open span {
  background: transparent;
}

.nav-toggle.is-open span::before {
  transform: rotate(45deg);
}

.nav-toggle.is-open span::after {
  transform: rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  grid-column: 2;
  justify-self: center;
}

.nav-cta-mobile {
  display: none;
}

.nav-cta-bar {
  grid-column: 3;
  justify-self: end;
  z-index: 1;
  margin-inline-start: 0;
}

.nav-link {
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  color: var(--muted-fg);
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--fg);
}

.nav-cta {
  margin-inline-start: 0.5rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  transition: background 0.3s, color 0.3s;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--ink);
}

/* Hero */
#hero,
#stats {
  background: var(--ink);
}

#about,
#services,
#portfolio,
#team,
#contact {
  background-color: transparent;
}

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 5rem;
  color: var(--paper);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
  width: min(1240px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

html:not(.is-ready) #hero .hero-kicker,
html:not(.is-ready) #hero .hero-title,
html:not(.is-ready) #hero .hero-copy,
html:not(.is-ready) #hero .hero-actions,
html:not(.is-ready) #hero .hero-aside {
  opacity: 0;
}

.hero-kicker {
  color: var(--accent);
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 1.22;
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-block: 0.14em 0.2em;
}

.hero-title .word {
  display: inline-block;
  will-change: transform;
}

.hero-copy {
  max-width: 36rem;
  color: var(--muted-on-ink);
  font-size: 1.15rem;
  line-height: 1.95;
  margin: 0 0 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
  transition: color 0.3s, border-color 0.3s;
}

.hero-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-link.is-ghost {
  color: var(--muted-on-ink);
}

.hero-aside {
  display: grid;
  justify-items: end;
  padding-top: 2.35rem;
}

.hero-orb {
  position: relative;
  width: min(340px, 36vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero-orb-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb-ring.is-dashed {
  inset: 0;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  animation: hero-spin 28s linear infinite;
}

.hero-orb-ring.is-solid {
  inset: 9%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  animation: hero-spin-rev 36s linear infinite;
}

.hero-orb-track {
  position: absolute;
  inset: 4%;
}

.hero-orb-track.is-slow {
  animation: hero-spin 16s linear infinite;
}

.hero-orb-track.is-mid {
  inset: 9%;
  animation: hero-spin 22s -7.3s linear infinite;
}

.hero-orb-track.is-fast {
  inset: 14%;
  animation: hero-spin-rev 11s -4s linear infinite;
}

.hero-orb-track i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-inline-start: -3.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

.hero-mark {
  position: relative;
  z-index: 1;
  width: 58%;
  opacity: 0.96;
  filter: brightness(0) invert(1);
  transform-origin: 50% 50%;
  will-change: transform;
}

@keyframes hero-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hero-spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes hero-pulse {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes hero-breathe {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.08);
  }
}

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

.hero-scroll {
  position: absolute;
  inset-inline: 0;
  bottom: 1.75rem;
  z-index: 4;
  width: max-content;
  margin-inline: auto;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.75rem;
  padding: 0.2rem 1rem 0.2rem 0.2rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

html.is-ready .hero-scroll {
  opacity: 1;
  pointer-events: auto;
}

.hero-scroll:hover {
  opacity: 0.9;
}

.hero-scroll-orb {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}

.hero-scroll-orb i {
  animation: hero-scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(3px);
  }
}

/* Stats */
#stats {
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--paper);
  padding-block: 0;
}

.stats-pin {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--pad);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  width: min(1100px, 100%);
}

.stat {
  text-align: start;
  border-top: 1px solid var(--line-on-ink);
  padding-top: 1.5rem;
}

.stat-num {
  display: block;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1;
  color: var(--paper);
  margin-bottom: 0.85rem;
}

.stat-label {
  color: var(--muted-on-ink);
  font-size: 1rem;
}

/* About */
#about {
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.about-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.about-copy p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.95;
  margin: 0 0 1.5rem;
}

.about-copy .line {
  display: block;
  overflow: hidden;
}

.about-copy .line span {
  display: block;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0 0;
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border: 0;
  background: #fff;
  background-clip: padding-box;
  border-radius: 16px;
  transition: transform 0.4s var(--ease);
}

.feature-chip:hover {
  transform: translateY(-3px);
}

.feature-chip i {
  color: var(--accent);
}

/* Services */
#services {
  color: var(--ink);
}

.services-pin {
  min-height: auto;
}

.services-stage {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}

.service-card {
  padding: 1.75rem 1.5rem;
  border: 0;
  background: #fff;
  background-clip: padding-box;
  border-radius: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  overflow: visible;
  isolation: isolate;
  transition: transform 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
}

.service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 400;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-ask {
  color: var(--accent);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.service-ask:hover {
  border-color: var(--accent);
}

/* Portfolio */
#portfolio {
  color: var(--ink);
}

.portfolio-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-bar {
  position: relative;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  background-clip: padding-box;
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(36px) saturate(1.7);
  -webkit-backdrop-filter: blur(36px) saturate(1.7);
}

.filter-btn {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.work-group {
  margin-bottom: 3.5rem;
}

.work-group-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
  color: var(--ink);
  font-weight: 400;
}

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

.work-card {
  min-height: 188px;
  padding: 1.25rem;
  border: 1px solid #fff;
  background: rgba(255, 255, 255, 0.3);
  background-clip: padding-box;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
  backdrop-filter: blur(32px) saturate(1.65);
  -webkit-backdrop-filter: blur(32px) saturate(1.65);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-card img {
  width: auto;
  max-width: 88px;
  height: 40px;
  object-fit: contain;
  object-position: start;
  margin-bottom: 1rem;
  transform-origin: center;
}

.work-card img.is-rounded {
  border-radius: 10px;
}

.work-card:hover img {
  transform: scale(1.06);
}

.work-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 400;
}

.work-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.work-links {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.work-links a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  transition: opacity 0.25s;
}

.work-links a:hover {
  opacity: 0.7;
}

/* Team */
#team {
  color: var(--ink);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1.25rem 1.75rem;
  border: 0;
  background: #fff;
  background-clip: padding-box;
  border-radius: 22px;
  overflow: visible;
  isolation: isolate;
}

.team-card img {
  width: min(220px, 70%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  filter: grayscale(0.35);
  transition: filter 0.4s, transform 0.4s;
}

.team-card:hover img {
  filter: none;
  transform: scale(1.03);
}

.team-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
  font-weight: 400;
}

.team-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.team-links {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
}

.team-links a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background 0.25s, color 0.25s;
}

.team-links a:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Contact */
#contact {
  color: var(--ink);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-intro .section-title {
  max-width: 10ch;
}

.contact-intro .section-lead {
  margin-top: 0.5rem;
  max-width: 28rem;
}

.contact-details {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: #fff;
  background-clip: padding-box;
  border: 0;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s;
}

a.contact-detail:hover {
  transform: translateY(-2px);
}

.contact-detail-icon {
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
}

.contact-detail small,
.contact-detail em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.contact-detail strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-detail em {
  margin-top: 0.15rem;
}

.contact-panel {
  position: relative;
}

.contact-glow {
  position: absolute;
  inset: -8% -6% auto -6%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(116, 100, 252, 0.22),
    rgba(100, 185, 252, 0.14) 45%,
    transparent 70%
  );
  filter: blur(22px);
  pointer-events: none;
}

.contact-card {
  position: relative;
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  background: #fff;
  background-clip: padding-box;
  border: 0;
  border-radius: 42px;
  box-shadow: 0 18px 44px rgba(11, 12, 14, 0.06);
  isolation: isolate;
}

.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
  font-weight: 400;
}

.contact-card > p {
  color: var(--muted);
  margin: 0 0 1.6rem;
}

#contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.9rem;
}

#contact-form .field-message,
#contact-form .submit-btn,
#contact-form #feedback {
  grid-column: 1 / -1;
}

.field {
  margin-bottom: 1.05rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #2c2c2c;
}

.field input,
.field textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(11, 12, 14, 0.12);
  background: #f3f4fb;
  color: var(--ink);
  border-radius: 18px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(116, 100, 252, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(116, 100, 252, 0.14);
}

.field textarea {
  resize: none;
  min-height: 150px;
}

.submit-btn {
  position: relative;
  width: 100%;
  margin-top: 0.9rem;
  padding: 1.05rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover:not(:disabled) {
  background: #1c1d20;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 12, 14, 0.18);
}

.submit-btn:disabled,
.submit-btn.cursor-wait {
  cursor: wait;
  color: transparent;
  opacity: 1;
}

.submit-btn.cursor-wait::after,
.submit-btn:disabled::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(245, 245, 245, 0.28);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: submit-spin 0.65s linear infinite;
}

@keyframes submit-spin {
  to {
    transform: rotate(360deg);
  }
}

#feedback {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
}

#feedback.is-success {
  background: #e5f6ea;
  color: #1c7a3a;
}

#feedback.is-error {
  background: #fde8e8;
  color: #b42318;
}

#close-feedback {
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 3;
  padding: 1.5rem var(--pad);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

#rights {
  margin: 0;
  font-size: 0.9rem;
}

#scroll-top {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: 1.5rem;
  z-index: 35;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: none;
  place-items: center;
}

#scroll-top.is-visible {
  display: grid;
}

/* Responsive */
@media (max-width: 1023px) {
  .nav-toggle {
    display: block;
  }

  .nav-shell {
    padding-inline: 0.9rem 1.15rem;
  }

  .nav-shell:has(.nav-toggle.is-open) {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-shell:has(.nav-toggle.is-open) .logo-link,
  .nav-shell:has(.nav-toggle.is-open) .nav-toggle {
    z-index: 43;
  }

  .nav-shell:has(.nav-toggle.is-open) .logo-image {
    filter: brightness(0) invert(1);
  }

  .nav-shell:has(.nav-toggle.is-open) .nav-toggle span {
    background: transparent;
  }

  .nav-shell:has(.nav-toggle.is-open) .nav-toggle span::before,
  .nav-shell:has(.nav-toggle.is-open) .nav-toggle span::after {
    background: #fff;
  }

  .nav-cta-bar {
    display: none;
  }

  .nav-cta-mobile {
    display: list-item;
    padding-top: 0.85rem;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 41;
    width: 100vw;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    background: var(--ink);
    color: var(--paper);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border-radius: 0;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link,
  .nav-cta {
    font-size: 1.4rem;
    color: var(--paper);
  }

  .hero-grid,
  .about-grid,
  .stats-row,
  .service-card,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #hero {
    padding-bottom: 6.5rem;
  }

  .hero-scroll {
    bottom: 1.15rem;
  }

  .hero-aside {
    display: none;
  }

  .filter-bar {
    border-radius: 22px;
    width: 100%;
    justify-content: center;
  }

  .contact-intro .section-title {
    max-width: none;
  }

  .about-sticky {
    position: static;
  }

  .service-ask {
    justify-self: start;
  }

  #contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .work-grid,
  .about-features,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .grain,
  #atmosphere,
  #cursor,
  .hero-glow {
    display: none !important;
  }

  #hero .hero-kicker,
  #hero .hero-title,
  #hero .hero-copy,
  #hero .hero-actions,
  #hero .hero-aside,
  .hero-scroll {
    opacity: 1 !important;
    pointer-events: auto;
  }

  .hero-orb-glow,
  .hero-orb-ring,
  .hero-orb-track,
  .hero-mark {
    animation: none !important;
  }

  .loader-rocket-aim {
    transform: rotate(-90deg);
  }

  .loader-wake {
    display: none;
  }

  .work-card,
  .service-card,
  .contact-card {
    clip-path: none !important;
  }
}
