:root {
  --red: #a78bfa;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: #0b0b0b;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  overflow: auto;
}

html.is-embedded,
html.is-embedded body {
  background: transparent;
}

p {
  text-wrap: pretty;
}

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

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

.project-page {
  min-height: 100vh;
  padding: clamp(24px, 3vw, 44px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.back-button,
.visit-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 36px rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease;
}

.back-button {
  margin-bottom: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.12);
}

.visit-button {
  margin-top: 22px;
  background:
    linear-gradient(135deg, rgba(109, 70, 190, 0.95), rgba(48, 28, 92, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 36px rgba(167, 139, 250, 0.18);
}

.back-button:hover,
.back-button:focus-visible,
.visit-button:hover,
.visit-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  outline: 0;
  transform: translateY(-1px);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(26px, 4vw, 58px);
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(3rem, 6.2vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.case-summary {
  max-width: 720px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.4;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.case-meta span {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(167, 139, 250, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.34);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.case-section {
  max-width: 760px;
  margin-top: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(1.12);
}

.case-section strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-section p,
.case-section li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  line-height: 1.42;
}

.case-section p {
  margin: 0;
}

.case-section ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.case-preview {
  margin: 0;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 24px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px) saturate(1.12);
}

.case-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(0.96) brightness(0.84);
}

@media (max-width: 760px) {
  .project-page {
    min-height: 100svh;
    padding: 20px 16px 26px;
  }

  .case-layout {
    grid-template-columns: 1fr;
  }

  .case-preview {
    order: -1;
  }

  h1 {
    font-size: clamp(2.3rem, 12vw, 3.7rem);
    letter-spacing: -0.045em;
  }
}
