:root {
  --ink: #0a0a0a;
  --muted: #666775;
  --line: rgba(10, 10, 10, 0.12);
  --accent: #6b35d4;
  --surface: #f6f6f8;
}

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

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

body {
  min-width: 320px;
  overflow-x: clip;
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", sans-serif;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(107, 53, 212, 0.38);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: #fff;
  border: 2px solid var(--accent);
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

.project-pill-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1000;
  width: min(900px, calc(100% - 48px));
  height: 64px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 34px rgba(10, 10, 10, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  transform: translateX(-50%);
  transition: top 0.24s ease, background 0.24s ease,
    border-color 0.24s ease, box-shadow 0.24s ease;
}

.project-pill-nav.is-scrolled {
  top: 10px;
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(107, 53, 212, 0.2);
  box-shadow: 0 16px 44px rgba(10, 10, 10, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.project-logo {
  height: 52px;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 17px 0 8px;
  border-right: 1px solid rgba(10, 10, 10, 0.08);
}

.project-logo img {
  width: auto;
  height: 50px;
  display: block;
}

.project-nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.project-nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.project-nav-links a:hover,
.project-nav-links a:focus-visible,
.project-nav-links a[aria-current="page"] {
  color: #5424b7;
  background: rgba(107, 53, 212, 0.08);
}

.project-nav-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border: 1px solid rgba(107, 53, 212, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.project-nav-cta:hover {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(107, 53, 212, 0.24);
  transform: translateY(-1px);
}

.project-menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  border: 0;
  border-radius: 50%;
  background: #111;
  cursor: pointer;
}

.project-menu-toggle span {
  width: 17px;
  height: 1.5px;
  background: #fff;
}

.project-mobile-menu {
  position: fixed;
  inset: 66px 0 auto;
  z-index: 999;
  display: none;
  padding: 18px 20px 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.project-mobile-menu.is-open {
  display: grid;
  gap: 5px;
}

.project-mobile-menu a {
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  font: 700 17px "Syne", sans-serif;
  text-decoration: none;
}

.project-page {
  padding-top: 1px;
}

.project-hero {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 170px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: clamp(48px, 9vw, 150px);
  align-items: end;
}

.project-kicker,
.concept-kicker {
  color: var(--accent);
  font: 500 9px "DM Mono", monospace;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.project-hero h1 {
  max-width: 830px;
  margin-top: 18px;
  font: 800 clamp(58px, 8vw, 112px) / 0.86 "Syne", sans-serif;
  letter-spacing: 0;
  text-wrap: balance;
  animation: project-hero-rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.project-hero h1 em {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: var(--accent);
}

.project-intro {
  max-width: 430px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  animation: project-hero-rise 0.85s 0.12s cubic-bezier(0.16, 1, 0.3, 1)
    both;
}

.project-stack {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 58vh;
}

.project-card {
  --stack-scale: 1;
  --stack-brightness: 1;
  position: sticky;
  top: calc(102px + var(--index) * 14px);
  z-index: calc(10 + var(--index));
  width: 100%;
  height: min(720px, calc(100vh - 150px));
  min-height: 600px;
  margin-bottom: 68vh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(24, 18, 38, 0.1);
  filter: brightness(var(--stack-brightness));
  transform: translate3d(0, 0, 0) scale(var(--stack-scale));
  transform-origin: top center;
  will-change: transform, filter;
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-card.card-enter {
  animation: project-card-rise 0.78s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.project-card-head {
  display: grid;
  grid-template-columns: 105px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.project-number {
  color: var(--accent);
  font: 500 11px "DM Mono", monospace;
  letter-spacing: 2px;
}

.project-card-title span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font: 500 8px "DM Mono", monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.project-card-title h2 {
  font: 800 clamp(26px, 3vw, 42px) / 1 "Syne", sans-serif;
  letter-spacing: 0;
}

.project-case-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 19px;
  border: 1px solid rgba(107, 53, 212, 0.38);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.project-case-link:hover {
  color: #fff;
  background: var(--accent);
}

.project-card-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.37fr) minmax(0, 1fr);
}

.project-card-copy {
  padding: clamp(34px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.project-card-copy p {
  color: #3f4050;
  font: 600 clamp(22px, 2.4vw, 34px) / 1.25 "Cormorant Garamond",
    serif;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.project-tags span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #585867;
  font: 500 8px "DM Mono", monospace;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.project-card-media {
  min-height: 0;
  overflow: hidden;
  background: #111;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-media img {
  transform: scale(1.018);
}

.concept-section {
  padding: 110px max(24px, calc((100vw - 1320px) / 2)) 130px;
  background: #111116;
  color: #fff;
}

.concept-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 52px;
}

.concept-head h2 {
  margin-top: 13px;
  font: 600 clamp(46px, 6vw, 78px) / 0.9 "Cormorant Garamond", serif;
  font-style: italic;
}

.concept-head p {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.7;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.concept-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1fr);
  min-height: 245px;
  background: #111116;
  text-decoration: none;
}

.concept-item.concept-enter {
  animation: concept-rise 0.68s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.concept-item-media {
  overflow: hidden;
}

.concept-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.concept-item:hover img {
  transform: scale(1.035);
}

.concept-item-copy {
  min-width: 0;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.concept-item-copy span {
  color: rgba(255, 255, 255, 0.48);
  font: 500 8px "DM Mono", monospace;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.concept-item-copy h3 {
  max-width: 260px;
  font: 800 clamp(20px, 2vw, 29px) / 1.02 "Syne", sans-serif;
  overflow-wrap: anywhere;
}

.concept-item-copy strong {
  color: #a987ec;
  font-size: 12px;
}

.project-cta {
  padding: 120px 24px;
  text-align: center;
  background: #fff;
}

.project-cta p {
  color: var(--accent);
  font: 500 9px "DM Mono", monospace;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.project-cta h2 {
  max-width: 850px;
  margin: 18px auto 34px;
  font: 600 clamp(48px, 7vw, 88px) / 0.9 "Cormorant Garamond", serif;
  font-style: italic;
}

.project-cta a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 25px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-cta a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.project-footer {
  padding: 38px max(20px, calc((100vw - 1320px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: #fff;
  color: #626262;
  font: 400 9px "DM Mono", monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.project-footer div {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.project-footer a {
  text-decoration: none;
}

@keyframes project-hero-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes project-card-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 52px, 0) scale(calc(var(--stack-scale) - 0.018));
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(var(--stack-scale));
  }
}

@keyframes concept-rise {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .project-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-intro {
    padding: 0;
  }

  .project-card-body {
    grid-template-columns: 0.42fr 0.58fr;
  }

  .project-card-copy {
    padding: 34px;
  }

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

  .concept-item-media {
    aspect-ratio: 8 / 5;
  }
}

@media (max-width: 720px) {
  .project-pill-nav,
  .project-pill-nav.is-scrolled {
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 66px;
    padding: 0 20px;
    border: 0;
    border-bottom: 1px solid rgba(10, 10, 10, 0.07);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 7px 24px rgba(10, 10, 10, 0.045);
    transform: none;
  }

  .project-logo {
    height: 66px;
    padding: 0;
    border: 0;
  }

  .project-logo img {
    height: 54px;
  }

  .project-nav-links,
  .project-nav-cta {
    display: none;
  }

  .project-menu-toggle {
    display: flex;
  }

  .project-hero,
  .project-stack {
    width: calc(100% - 32px);
  }

  .project-hero {
    padding: 122px 0 64px;
  }

  .project-hero h1 {
    font-size: clamp(50px, 17vw, 76px);
    line-height: 0.9;
  }

  .project-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 72px;
  }

  .project-card {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    margin-bottom: 0;
    filter: none !important;
    transform: none !important;
  }

  .project-card-head {
    grid-template-columns: auto 1fr;
    padding: 20px;
  }

  .project-case-link {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .project-card-body {
    display: flex;
    flex-direction: column-reverse;
  }

  .project-card-copy {
    min-height: 250px;
    padding: 27px 20px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .project-card-media {
    aspect-ratio: 8 / 5;
  }

  .concept-section {
    padding: 78px 16px 88px;
  }

  .concept-head {
    align-items: start;
    flex-direction: column;
    margin-bottom: 34px;
  }

  .concept-grid {
    grid-template-columns: 1fr;
  }

  .concept-item {
    min-height: 0;
  }

  .project-cta {
    padding: 90px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-card,
  .project-card-media img,
  .concept-item img {
    animation: none !important;
    transition: none;
  }
}
