:root {
  background: #050712;
  color: #fff6cc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 36, 97, 0.42), transparent 20rem),
    radial-gradient(circle at 88% 20%, rgba(55, 225, 255, 0.28), transparent 22rem),
    #050712;
}

main {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 56px);
}

nav,
article {
  max-width: 900px;
  margin: 0 auto;
}

nav,
article p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

article {
  position: relative;
  margin-top: clamp(32px, 8vw, 88px);
  isolation: isolate;
}

article:has(.deep-intro) {
  padding: clamp(1rem, 3vw, 2.1rem);
}

article:has(.deep-intro)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: clamp(82px, 9vw, 132px) clamp(-42px, -4vw, -24px) clamp(-38px, -4vw, -22px);
  border: 2px solid rgba(255, 239, 106, 0.34);
  border-radius: 32px 18px 38px 22px;
  background:
    radial-gradient(circle at 50% -1%, rgba(255, 239, 106, 0.34), transparent 6rem),
    radial-gradient(circle at 4% 18%, rgba(255, 79, 145, 0.38), transparent 9rem),
    radial-gradient(circle at 96% 28%, rgba(85, 232, 255, 0.32), transparent 10rem),
    linear-gradient(90deg, rgba(255, 79, 145, 0.36), transparent 18%, transparent 82%, rgba(85, 232, 255, 0.28)),
    linear-gradient(180deg, rgba(16, 12, 34, 0.94), rgba(5, 7, 18, 0.9));
  box-shadow:
    inset 0 0 0 5px rgba(5, 7, 18, 0.84),
    inset 0 0 0 7px rgba(85, 232, 255, 0.12),
    0 0 28px rgba(255, 79, 145, 0.42),
    0 0 42px rgba(85, 232, 255, 0.22);
  clip-path: polygon(3% 0, 31% 1.8%, 36% 0, 50% 3%, 64% 0, 71% 1.8%, 98% 0, 100% 8%, 98% 96%, 84% 100%, 62% 98%, 50% 100%, 38% 98%, 17% 100%, 0 96%, 2% 11%);
  opacity: 0.9;
  pointer-events: none;
}

h1 {
  margin: 0 0 1rem;
  color: #ffef6a;
  font-size: clamp(2.3rem, 8vw, 5.8rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow:
    4px 4px 0 rgba(255, 79, 145, 0.58),
    8px 10px 0 rgba(85, 232, 255, 0.16);
}

h2 {
  color: #ff4f91;
}

p,
li {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

figure {
  margin: 1.4rem 0 2rem;
  overflow: hidden;
  border: 2px solid rgba(85, 232, 255, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 79, 145, 0.22), rgba(85, 232, 255, 0.12)),
    #080b18;
  clip-path: polygon(0 2%, 98% 0, 100% 92%, 93% 100%, 2% 96%);
}

.media-label {
  display: inline-block;
  margin: 0.85rem 1rem 0;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(255, 239, 106, 0.48);
  border-radius: 6px;
  background: rgba(5, 7, 18, 0.74);
  color: #ffef6a;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

figure img,
figure video {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.story-still-grid,
.arena-still-grid,
.arena-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.15rem);
  margin: 1rem 0 2rem;
}

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

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

.story-still-card,
.arena-still-card {
  margin: 0;
  clip-path: none;
}

.story-still-card img,
.arena-still-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.story-still-card figcaption,
.arena-still-card figcaption {
  display: grid;
  gap: 0.25rem;
}

.story-still-card strong,
.arena-still-card strong {
  color: #ffef6a;
  font-weight: 950;
  text-transform: uppercase;
}

article:has(.prologue) > figure:first-of-type {
  width: min(460px, 78vw);
  margin: 1rem auto clamp(1.6rem, 4vw, 2.4rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow:
    10px 12px 0 rgba(255, 79, 145, .18),
    0 0 30px rgba(85, 232, 255, .14);
  clip-path: polygon(4% 0, 96% 1%, 100% 94%, 90% 100%, 0 96%);
  transform: rotate(-.35deg);
}

article:has(.prologue) > figure:first-of-type img {
  max-height: none;
  object-fit: contain;
  filter:
    saturate(1.04)
    contrast(1.05);
}

article:has(.deep-intro) > figure:first-of-type {
  width: min(560px, 82vw);
  margin: 1rem auto clamp(1.6rem, 4vw, 2.4rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow:
    10px 12px 0 rgba(255, 79, 145, .18),
    0 0 30px rgba(85, 232, 255, .14);
  clip-path: polygon(4% 0, 96% 1%, 100% 94%, 90% 100%, 0 96%);
  transform: rotate(-.35deg);
}

article:has(.deep-intro) > figure:first-of-type img {
  max-height: none;
  object-fit: contain;
  filter:
    saturate(1.04)
    contrast(1.05);
}

article:has(.prologue) > figure:first-of-type {
  width: min(460px, 78vw);
}

figcaption {
  padding: 0.8rem 1rem;
  background: rgba(5, 7, 18, 0.74);
  line-height: 1.4;
}

figcaption strong,
figcaption span {
  display: block;
}

a {
  color: #55e8ff;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  border: 2px solid rgba(255, 239, 106, 0.76);
  border-radius: 8px;
  background: #12162c;
  text-transform: uppercase;
}

.deep-intro,
.deep-section,
.lineage,
.links,
.prologue,
.project {
  border-color: rgba(94, 56, 31, .48);
  background:
    linear-gradient(135deg, rgba(20, 40, 66, .06) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(225deg, rgba(138, 53, 30, .05) 25%, transparent 25%) 0 0 / 22px 22px,
    radial-gradient(circle at 8% 8%, rgba(255, 246, 204, .72), transparent 12rem),
    linear-gradient(180deg, rgba(242, 213, 147, .96), rgba(218, 177, 104, .94));
  color: #2a1710;
  box-shadow:
    inset 0 0 0 2px rgba(255, 246, 204, .28),
    inset 0 0 24px rgba(94, 56, 31, .16),
    7px 8px 0 rgba(5, 7, 18, .36);
}

.deep-intro p,
.deep-section p,
.lineage span,
.links p {
  color: #2a1710;
  font-weight: 850;
}

.deep-section h2,
.lineage h2,
.links h2 {
  color: #8a351e;
  text-shadow: 1px 1px 0 rgba(255, 246, 204, .5);
}

.deep-intro {
  columns: 2 260px;
  column-gap: clamp(1.2rem, 3vw, 2rem);
}

.prologue {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 2rem 0;
  border: 0;
  background: url("/assets/story/designer-card-face.png") center / 142% 142% no-repeat;
  box-shadow:
    10px 12px 0 rgba(255, 79, 145, .2),
    0 0 34px rgba(85, 232, 255, .16);
  clip-path: polygon(0 5%, 8% 0, 44% 2%, 50% 0, 58% 2%, 100% 0, 98% 92%, 92% 100%, 8% 97%, 0 100%);
}

.prologue::before,
.prologue::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.prologue::before {
  content: none;
}

.prologue::after {
  inset: auto 1.2rem 1rem 1.2rem;
  height: 8px;
  background: repeating-linear-gradient(90deg, #8a351e 0 8px, transparent 8px 18px);
  opacity: .28;
}

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

.prologue-label {
  display: inline-grid;
  min-height: 34px;
  margin: 0 0 0.8rem;
  padding: 0.35rem 0.55rem;
  place-items: center;
  color: #050712;
  background: #ffef6a;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(255, 79, 145, 0.68);
}

.prologue h2 {
  max-width: 780px;
  margin: 0 0 1rem;
  color: #0d6c78;
  font-size: clamp(1.7rem, 4.2vw, 3.8rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow:
    3px 3px 0 rgba(255, 79, 145, 0.48),
    1px 1px 0 rgba(255, 246, 204, 0.58);
}

.prologue p:not(.prologue-label) {
  color: #2a1710;
  font-weight: 900;
}

.manual-spread {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin: clamp(1.2rem, 3vw, 2rem) 0;
  padding: clamp(.9rem, 2.4vw, 1.4rem);
  border: 1px solid rgba(94, 56, 31, .66);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(94, 56, 31, .22), transparent 9%, transparent 91%, rgba(94, 56, 31, .2)),
    radial-gradient(circle at 18% 18%, rgba(255, 239, 106, .2), transparent 14rem),
    #e7c888;
  color: #271612;
  box-shadow:
    inset 0 0 0 3px rgba(255, 246, 204, .34),
    inset 0 0 28px rgba(94, 56, 31, .2),
    8px 10px 0 rgba(5, 7, 18, .42);
}

.manual-spread img {
  display: block;
  width: min(92%, 420px);
  max-height: 360px;
  margin: 0 auto;
  object-fit: contain;
  filter:
    saturate(.96)
    contrast(1.12)
    drop-shadow(0 18px 16px rgba(40, 15, 10, .44));
}

.manual-stage {
  position: relative;
  display: grid;
  min-height: clamp(250px, 31vw, 370px);
  place-items: end center;
}

.manual-note {
  position: absolute;
  max-width: 150px;
  padding: .26rem .42rem;
  color: #fff6cc;
  background: #381316;
  border: 1px solid rgba(255, 239, 106, .7);
  font-size: clamp(.68rem, 1.15vw, .86rem);
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(138, 53, 30, .52);
}

.manual-note:nth-of-type(1) {
  left: 0;
  top: 16%;
  transform: rotate(-5deg);
}

.manual-note:nth-of-type(2) {
  right: 2%;
  top: 28%;
  transform: rotate(4deg);
}

.manual-note:nth-of-type(3) {
  left: 12%;
  bottom: 6%;
  max-width: 190px;
  transform: rotate(2deg);
}

.manual-spread figcaption {
  margin: 0;
  padding: clamp(.9rem, 2vw, 1.2rem);
  border-left: 4px solid #8a351e;
  background: rgba(255, 246, 204, .62);
  color: #271612;
  font-size: clamp(1rem, 2vw, 1.28rem);
  font-weight: 900;
  line-height: 1.45;
}

.lineage {
  margin: 2rem 0;
}

.project-figure {
  display: block;
  margin: -.15rem -.15rem .8rem;
}

.project-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border: 2px solid rgba(94, 56, 31, .52);
  background:
    radial-gradient(circle at center, rgba(255, 246, 204, .32), transparent 58%),
    linear-gradient(135deg, #1b2035, #381316);
  filter:
    sepia(.12)
    saturate(1.04)
    contrast(1.08);
  clip-path: polygon(2% 0, 98% 2%, 100% 92%, 92% 100%, 0 96%);
}

.project {
  color: #2a1710;
  border-color: rgba(94, 56, 31, .5);
  background:
    linear-gradient(135deg, rgba(20, 40, 66, .07) 25%, transparent 25%) 0 0 / 20px 20px,
    linear-gradient(225deg, rgba(138, 53, 30, .05) 25%, transparent 25%) 0 0 / 20px 20px,
    radial-gradient(circle at 16% 10%, rgba(255, 246, 204, .7), transparent 12rem),
    linear-gradient(180deg, rgba(242, 213, 147, .96), rgba(218, 177, 104, .94));
  box-shadow:
    inset 0 0 0 2px rgba(255, 246, 204, .24),
    6px 7px 0 rgba(56, 19, 22, .32);
}

.project h3 {
  color: #8a351e;
}

.project p {
  color: #2a1710;
  font-weight: 850;
}

.lineage ol {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lineage-step;
}

.lineage li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(85, 232, 255, 0.24);
  background: rgba(5, 7, 18, 0.62);
}

.lineage li::before {
  counter-increment: lineage-step;
  content: "0" counter(lineage-step);
  color: #050712;
  background: #ffef6a;
  padding: 0.22rem 0.35rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 3px 3px 0 rgba(255, 79, 145, 0.55);
}

.lineage strong,
.lineage span {
  display: block;
}

.lineage strong {
  color: #55e8ff;
  text-transform: uppercase;
}

.lineage span {
  grid-column: 2;
}

@media (max-width: 720px) {
  article:has(.deep-intro)::before {
    opacity: 0.42;
    inset: clamp(112px, 26vw, 150px) -16px -20px;
  }

  .lineage li {
    grid-template-columns: 1fr;
  }

  .lineage span {
    grid-column: 1;
  }

  .manual-spread {
    grid-template-columns: 1fr;
  }

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

  .story-still-grid,
  .arena-still-grid,
  .arena-video-grid {
    grid-template-columns: 1fr;
  }
}

article .deep-intro,
article .deep-section,
article .lineage,
article .links,
article .project,
article .seo-note {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #2a1710;
  border: 0;
  border-radius: 0;
  background: url("/assets/story/designer-card-face.png") center / 142% 142% no-repeat;
  box-shadow:
    9px 11px 0 rgba(5, 7, 18, .34),
    0 0 26px rgba(255, 239, 106, .1);
}

article .deep-intro::before,
article .deep-section::before,
article .lineage::before,
article .links::before,
article .seo-note::before,
article .project::before {
  content: none;
}

article .project::before {
  content: none;
}

article .deep-intro > *,
article .deep-section > *,
article .lineage > *,
article .links > *,
article .seo-note > *,
article .project > * {
  position: relative;
  z-index: 1;
}

article .deep-intro {
  min-height: 430px;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.9rem, 4vw, 3.1rem);
  columns: 2 260px;
  column-gap: clamp(1.2rem, 3vw, 2rem);
}

article .deep-section,
article .lineage,
article .links,
article .seo-note {
  min-height: 300px;
  padding: clamp(2.2rem, 4vw, 3.2rem) clamp(1.5rem, 3vw, 2.4rem);
}

article .deep-intro p,
article .deep-section p,
article .lineage span,
article .project p,
article .links p,
article .seo-note p {
  color: #2a1710;
  font-weight: 850;
  text-shadow: 1px 1px 0 rgba(255, 246, 204, .42);
}

article .deep-section h2,
article .lineage h2,
article .links h2,
article .project h3,
article .seo-note h2 {
  color: #8a351e;
  text-shadow: 1px 1px 0 rgba(255, 246, 204, .5);
}

article .lineage li {
  border-color: rgba(92, 48, 23, .24);
  background: rgba(255, 246, 204, .12);
}

article .lineage strong {
  color: #8a351e;
}

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

article .project {
  min-height: 560px;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 2.4vw, 1.8rem);
  clip-path: polygon(0 1%, 97% 0, 100% 95%, 94% 100%, 2% 98%);
}

article .links a {
  color: #fff6cc;
  background: #381316;
  box-shadow: 4px 4px 0 rgba(138, 53, 30, .54);
}

article .seo-note {
  margin: 1.6rem 0;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  opacity: .86;
}

@media (max-width: 720px) {
  article .deep-intro {
    columns: auto;
  }

  article .projects {
    grid-template-columns: 1fr;
  }
}
