body.layer-page {
  background:
    radial-gradient(circle at 78% 0%, rgba(20, 87, 255, 0.16), transparent 30%),
    #05070c;
  color: #fff;
}

body.layer-page .page-nav {
  background: rgba(8, 11, 18, 0.82);
  border-color: rgba(255, 255, 255, 0.1);
}

body.layer-page .page-nav a {
  color: rgba(255, 255, 255, 0.62);
}

body.layer-page .page-nav a:hover,
body.layer-page .page-nav a[aria-current="page"],
body.layer-page .page-nav .logo {
  color: #fff;
}

.layer-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.layer-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.023) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 62%);
}

.layer-wrap {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.layer-hero {
  padding: clamp(122px, 15vh, 166px) 0 clamp(48px, 7vh, 72px);
}

.layer-hero__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.layer-kicker,
.layer-count {
  color: #79a2ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.layer-count {
  color: rgba(255, 255, 255, 0.32);
}

.layer-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(54px, 8.5vw, 110px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.layer-hero h1 span {
  color: #3b82ff;
}

.layer-hero p {
  max-width: 720px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.7;
}

.layer-library {
  padding: 0 0 74px;
}

.layer-library__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.layer-library__head h2,
.layer-library__head p {
  margin: 0;
}

.layer-library__head h2 {
  color: #fff;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.layer-library__head p {
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.layer-grid--dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.layer-grid--dense .layer-thumb__name {
  font-size: clamp(12px, 1.25vw, 16px);
}

.layer-grid--dense .layer-tile__copy p {
  display: none;
}

.layer-tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  background: rgba(13, 17, 27, 0.82);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.21);
  transition: transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1), border-color 280ms ease, background 280ms ease;
}

.layer-tile:hover,
.layer-tile:focus-visible {
  border-color: rgba(121, 162, 255, 0.55);
  background: rgba(17, 23, 38, 0.96);
  transform: translateY(-4px);
}

.layer-tile:focus-visible {
  outline: 3px solid #79a2ff;
  outline-offset: 3px;
}

.layer-thumb {
  --accent: #3b82ff;
  --accent-soft: rgba(59, 130, 255, 0.26);
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 73% 42%, var(--accent-soft), transparent 24%),
    linear-gradient(145deg, #11182a, #070a11 72%);
}

.layer-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 70% 45%, #000, transparent 72%);
}

.layer-thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14%;
  width: 27%;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px color-mix(in srgb, var(--accent) 13%, transparent),
    0 0 0 28px color-mix(in srgb, var(--accent) 6%, transparent),
    0 0 44px var(--accent-soft);
  transform: translateY(-50%);
  opacity: 0.86;
}

.layer-thumb--ice {
  --accent: #7dd3fc;
  --accent-soft: rgba(125, 211, 252, 0.22);
}

.layer-thumb--amber {
  --accent: #ff9f43;
  --accent-soft: rgba(255, 159, 67, 0.24);
}

.layer-thumb--violet {
  --accent: #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.24);
}

.layer-thumb--green {
  --accent: #54d6a3;
  --accent-soft: rgba(84, 214, 163, 0.22);
}

.layer-thumb--red {
  --accent: #ff647c;
  --accent-soft: rgba(255, 100, 124, 0.22);
}

.layer-thumb__number {
  position: absolute;
  top: 14px;
  left: 15px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.36);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.layer-thumb__name {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: 15px;
  z-index: 2;
  max-width: 68%;
  color: #fff;
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.layer-tile__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px 15px 15px;
}

.layer-tile__copy h3,
.layer-tile__copy p {
  margin: 0;
}

.layer-tile__copy h3 {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-tile__copy p {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-tile__arrow {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.layer-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px max(20px, calc((100vw - 1080px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #05070c;
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
}

.layer-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.layer-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.layer-footer a:hover {
  color: #fff;
}

.case-layer {
  padding: clamp(118px, 14vh, 154px) 0 72px;
}

.case-layer__back {
  display: inline-flex;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.case-layer__back:hover {
  color: #fff;
}

.case-layer__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: end;
  margin-bottom: 44px;
}

.case-layer__head h1,
.case-layer__head p {
  margin: 0;
}

.case-layer__head h1 {
  margin-top: 16px;
  color: #fff;
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.case-layer__head h1 span {
  color: #3b82ff;
}

.case-layer__head p {
  color: rgba(255, 255, 255, 0.57);
  font-size: 15px;
  line-height: 1.7;
}

.case-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 18px;
}

.case-detail__media,
.case-detail__facts {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(13, 17, 27, 0.84);
}

.case-detail__media {
  aspect-ratio: 16 / 9;
}

.case-detail__media img,
.case-detail__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-detail__media--contain img {
  object-fit: contain;
  padding: 14px;
  background: #070a11;
}

.case-detail__facts {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.case-fact {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-fact:first-child {
  padding-top: 0;
}

.case-fact:last-of-type {
  border-bottom: 0;
}

.case-fact span,
.case-fact strong {
  display: block;
}

.case-fact span {
  margin-bottom: 4px;
  color: #79a2ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case-fact strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
}

.case-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 18px;
}

.case-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #1457ff;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.case-action--ghost {
  background: transparent;
}

.case-media-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #070a11;
  cursor: pointer;
}

.case-media-button:focus-visible {
  outline: 3px solid #79a2ff;
  outline-offset: -5px;
}

.editorial-layer {
  padding: clamp(116px, 14vh, 150px) 0 68px;
}

.editorial-layer__head {
  margin-bottom: 34px;
}

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

.editorial-shot {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 17px;
  background: #0d111b;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.editorial-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 5, 10, 0.94), transparent 46%);
  pointer-events: none;
}

.editorial-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 600ms ease;
}

.editorial-shot:hover img,
.editorial-shot:focus-visible img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.045);
}

.editorial-shot:focus-visible {
  outline: 3px solid #79a2ff;
  outline-offset: 3px;
}

.editorial-shot__meta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
}

.editorial-shot__meta small,
.editorial-shot__meta strong {
  display: block;
}

.editorial-shot__meta small {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-shot__meta strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

body.layer-page .legal-layout {
  position: relative;
  padding: 34px 0 82px;
  background: transparent;
}

body.layer-page .page-hero {
  padding-bottom: 42px;
  background: transparent;
}

body.layer-page .page-hero h1,
body.layer-page .legal-layout h2,
body.layer-page .legal-layout h3 {
  color: #fff;
}

body.layer-page .page-hero .lede,
body.layer-page .legal-layout p,
body.layer-page .legal-layout li {
  color: rgba(255, 255, 255, 0.62);
}

body.layer-page .legal-layout strong {
  color: rgba(255, 255, 255, 0.88);
}

body.layer-page .legal-layout a {
  color: #79a2ff;
}

body.layer-page .legal-layout .notice,
body.layer-page .legal-layout .legal-contact,
body.layer-page .legal-layout .deletion-step {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(13, 17, 27, 0.84);
  color: rgba(255, 255, 255, 0.68);
}

body.layer-page .legal-layout .deletion-step__num {
  background: #1457ff;
  color: #fff;
}

body.layer-page .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #05070c;
}

body.layer-page .site-footer,
body.layer-page .site-footer a {
  color: rgba(255, 255, 255, 0.48);
}

@media (max-width: 760px) {
  .layer-wrap {
    width: min(100% - 28px, 1080px);
  }

  .layer-hero {
    padding: 112px 0 46px;
  }

  .layer-hero h1 {
    font-size: clamp(50px, 18vw, 72px);
  }

  .layer-hero p {
    margin-top: 22px;
  }

  .layer-library {
    padding-bottom: 52px;
  }

  .layer-library__head p {
    display: none;
  }

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

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

  .layer-thumb__number {
    top: 10px;
    left: 11px;
  }

  .layer-thumb__name {
    right: 10px;
    bottom: 10px;
    left: 11px;
    max-width: 78%;
    font-size: 12px;
  }

  .layer-tile__copy {
    padding: 11px;
  }

  .layer-tile__copy h3 {
    font-size: 13px;
  }

  .layer-tile__copy p {
    display: none;
  }

  .layer-tile__arrow {
    width: 24px;
    height: 24px;
  }

  .layer-footer {
    flex-direction: column;
    padding: 19px 14px 24px;
  }

  .case-layer {
    padding: 108px 0 50px;
  }

  .case-layer__head,
  .case-detail {
    grid-template-columns: 1fr;
  }

  .case-layer__head {
    gap: 24px;
    margin-bottom: 30px;
  }

  .case-layer__head h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .case-detail__facts {
    min-height: 0;
  }

  .editorial-layer {
    padding: 108px 0 48px;
  }

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

  .editorial-shot__meta {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .layer-tile {
    transform: none !important;
    transition: none;
  }
}
