:root {
  --text-dark: #12161d;
  --muted-light: rgba(255,255,255,0.84);
  --button-dark: rgba(17, 22, 31, 0.92);
  --button-light: rgba(255,255,255,0.74);
  --impact-shadow: 0 28px 80px rgba(0,0,0,0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: #fff;
  color: var(--text-dark);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.3), transparent 16%),
    radial-gradient(circle at center, rgba(109, 157, 255, 0.2), transparent 34%);
  opacity: 0;
  transform: scale(0.2);
  z-index: 1;
}

body.page-loaded::before {
  animation: impact-burst 480ms cubic-bezier(0.12, 0.8, 0.24, 1) 260ms both;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 30;
  color: rgba(255,255,255,0.94);
  background: linear-gradient(to bottom, rgba(0,0,0,0.28), rgba(0,0,0,0));
}

.logo {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-nav a,
.menu-toggle,
.mobile-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.desktop-nav a:hover,
.menu-toggle:hover {
  background: rgba(255,255,255,0.12);
}

.menu-toggle {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  top: 48px;
  right: 16px;
  width: min(280px, calc(100% - 32px));
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(18px);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.16);
  z-index: 29;
}

.mobile-nav a {
  color: var(--text-dark);
}

.mobile-nav a:hover {
  background: rgba(0,0,0,0.05);
}

.mobile-nav.open {
  display: flex;
}

.panel {
  position: relative;
  min-height: 100vh;
  padding: 92px 24px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero {
  background: linear-gradient(135deg, #07090d 0%, #121722 45%, #202a3a 100%);
}

.backdrop {
  position: absolute;
  inset: 0;
}

.backdrop-dark {
  background:
    radial-gradient(circle at center, rgba(109, 157, 255, 0.10), transparent 30%),
    linear-gradient(to bottom, rgba(0,0,0,0.08), rgba(0,0,0,0.28));
}

.content {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  min-height: calc(100vh - 128px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.panel-copy {
  max-width: 860px;
}

.hero-logo-wrap {
  margin: 0 auto 26px;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.hero-logo {
  display: block;
  width: min(420px, 72vw);
  max-width: 100%;
  filter: drop-shadow(var(--impact-shadow));
  opacity: 0;
  transform:
    translate3d(0, -52vh, 0)
    scale(1.7)
    rotate(0deg);
  transform-origin: center;
  will-change: transform, opacity, filter;
}

body.page-loaded .hero-logo {
  animation: logo-hammer-in 900ms cubic-bezier(0.2, 0.9, 0.18, 1) forwards;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.76);
  opacity: 0;
  transform: translateY(18px);
}

body.page-loaded .eyebrow,
body.page-loaded h1,
body.page-loaded .lede,
body.page-loaded .panel-actions {
  animation: copy-rise 720ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body.page-loaded .eyebrow {
  animation-delay: 340ms;
}

h1 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-size: clamp(2.8rem, 7vw, 6rem);
  color: white;
  max-width: 12ch;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(22px);
}

.lede {
  margin: 16px auto 0;
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--muted-light);
  opacity: 0;
  transform: translateY(22px);
}

.panel-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
  opacity: 0;
  transform: translateY(22px);
}

body.page-loaded h1 {
  animation-delay: 430ms;
}

body.page-loaded .lede {
  animation-delay: 520ms;
}

body.page-loaded .panel-actions {
  animation-delay: 610ms;
}

.btn {
  min-width: 220px;
  padding: 13px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-dark {
  background: var(--button-dark);
  color: white;
}

.btn-light {
  background: var(--button-light);
  color: var(--text-dark);
  backdrop-filter: blur(8px);
}

.work-page {
  background:
    radial-gradient(circle at top, rgba(76, 118, 184, 0.18), transparent 34%),
    linear-gradient(180deg, #08111d 0%, #0f1a2b 24%, #f3f6fb 24%, #f3f6fb 100%);
}

.architecture-page {
  background: #f3f6fb;
}

.work-main {
  position: relative;
  z-index: 2;
}

.architecture-page .work-main {
  padding-top: 56px;
}

.work-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.work-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 0 80px;
  color: white;
  overflow: hidden;
}

.work-hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(129, 178, 255, 0.2), transparent 24%),
    radial-gradient(circle at 78% 22%, rgba(255,255,255,0.08), transparent 18%),
    linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.38));
}

.work-kicker,
.section-label {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
}

.work-kicker {
  color: rgba(255,255,255,0.74);
}

.work-hero h1,
.work-section h2,
.capability-card h3 {
  margin: 0;
}

.work-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.work-intro {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 1.14rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}

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

.work-section {
  padding: 84px 0;
}

.work-section-alt {
  background: rgba(8, 17, 29, 0.04);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}

.work-section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #111927;
}

.work-copy p,
.capability-card p {
  margin: 0;
  line-height: 1.75;
  font-size: 1.02rem;
  color: rgba(17, 25, 39, 0.8);
}

.work-copy {
  display: grid;
  gap: 18px;
}

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

.capability-card {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(17, 25, 39, 0.08);
  box-shadow: 0 18px 48px rgba(8, 17, 29, 0.08);
}

.capability-card h3 {
  font-size: 1.1rem;
  color: #111927;
}

.image-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
}

.image-feature-copy p:last-child {
  margin: 18px 0 0;
  line-height: 1.75;
  font-size: 1.02rem;
  color: rgba(17, 25, 39, 0.8);
}

.image-frame {
  padding: 18px;
  border-radius: 30px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(17, 25, 39, 0.08);
  box-shadow: 0 22px 64px rgba(8, 17, 29, 0.12);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

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

.summary-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 22px;
  background: #0f1a2b;
  color: white;
  box-shadow: 0 18px 48px rgba(8, 17, 29, 0.16);
}

.summary-value {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.summary-label {
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}

@keyframes logo-hammer-in {
  0% {
    opacity: 0;
    filter: blur(4px) drop-shadow(var(--impact-shadow));
    transform:
      translate3d(0, -52vh, 0)
      scale(1.7)
      rotate(0deg);
  }

  52% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 42px 120px rgba(0,0,0,0.48));
    transform:
      translate3d(0, 0.8vh, 0)
      scale(0.72)
      rotate(0deg);
  }

  66% {
    transform:
      translate3d(0, -1.2vh, 0)
      scale(1.12)
      rotate(0deg);
  }

  82% {
    transform:
      translate3d(0, 0, 0)
      scale(0.97)
      rotate(0deg);
  }

  100% {
    opacity: 1;
    filter: blur(0) drop-shadow(var(--impact-shadow));
    transform:
      translate3d(0, 0, 0)
      scale(1)
      rotate(0deg);
  }
}

@keyframes impact-burst {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }

  35% {
    opacity: 0.8;
    transform: scale(0.82);
  }

  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}

@keyframes copy-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

@media (prefers-reduced-motion: reduce) {
  body::before,
  .hero-logo,
  .eyebrow,
  h1,
  .lede,
  .panel-actions {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
    filter: drop-shadow(var(--impact-shadow));
  }
}

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

@media (max-width: 640px) {
  .panel-actions {
    flex-direction: column;
    width: 100%;
  }

  .work-hero-actions {
    flex-direction: column;
  }

  .hero-logo-wrap {
    margin-bottom: 22px;
  }

  .hero-logo {
    width: min(360px, 80vw);
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .logo {
    letter-spacing: 0.16em;
    font-size: 0.82rem;
  }
}

@media (max-width: 900px) {
  .work-grid,
  .image-feature,
  .capability-grid,
  .summary-panel {
    grid-template-columns: 1fr;
  }

  .work-section {
    padding: 68px 0;
  }
}
