@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --rick-black: #050505;
  --rick-panel: rgba(8, 8, 8, 0.82);
  --rick-white: #f4f1eb;
  --rick-muted: rgba(244, 241, 235, 0.64);
  --rick-faint: rgba(244, 241, 235, 0.38);
  --rick-line: rgba(244, 241, 235, 0.12);
  --rick-line-strong: rgba(244, 241, 235, 0.22);
  --rick-accent: #ff0044;
  --rick-accent-soft: rgba(255, 0, 68, 0.14);
  --rick-frame: min(1088px, calc(100vw - 96px));
}

body,
body.theme-light {
  background: var(--rick-black);
  color: var(--rick-white);
  font-family:
    Poppins,
    Inter,
    "SF Pro Display",
    "PingFang SC",
    "Hiragino Sans GB",
    ui-sans-serif,
    system-ui,
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 0, 68, 0.13), transparent 26rem),
    radial-gradient(circle at 82% 14%, rgba(120, 216, 255, 0.08), transparent 28rem),
    #050505;
  content: "";
}

.page {
  width: var(--rick-frame);
  margin: 0 auto;
  padding: 0 0 80px;
}

.site-promo {
  display: none;
}

.site-promo span,
.site-promo strong,
.site-promo a {
  display: inline-flex;
  align-items: center;
  margin: 0 8px;
  color: inherit;
  text-decoration: none;
}

.site-promo span {
  opacity: 0.78;
}

.site-promo a {
  gap: 8px;
  border-bottom: 1px solid currentColor;
}

.site-promo a::after,
.black-book-action::after {
  display: inline-block;
  color: rgba(244, 241, 235, 0.48);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  content: "→";
  transition: color 180ms ease, transform 180ms ease;
}

.site-promo a:hover::after,
.black-book-feature:hover .black-book-action::after,
.black-book-feature:focus-visible .black-book-action::after {
  color: var(--rick-white);
  transform: translateX(4px);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  width: auto;
  margin: 0 !important;
  padding: 0 max(48px, calc((100vw - 1088px) / 2));
  border: 0;
  background: transparent;
  backdrop-filter: none;
  transition:
    height 280ms ease,
    background-color 280ms ease,
    border-color 280ms ease,
    backdrop-filter 280ms ease;
}

.topbar.is-scrolled {
  height: 80px;
  border-bottom: 1px solid rgba(244, 241, 235, 0.08);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--rick-white);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.brand::before {
  display: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  gap: 31px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.nav a,
.side-nav a,
.collection-nav a,
.detail-top-nav a {
  color: inherit;
  text-decoration: none;
}

.nav a:hover,
.side-nav a:hover,
.collection-nav a:hover,
.detail-top-nav a:hover {
  color: var(--rick-white);
}

.theme-toggle {
  display: none !important;
}

.content,
.archive-layout {
  display: block;
  width: 100%;
  padding: 0;
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 560px) 370px;
  justify-content: space-between;
  gap: 96px;
  align-items: start;
  min-height: 100vh;
  margin: 0;
  padding: clamp(252px, 26vh, 292px) 0 120px;
  background: #050505;
}

.home-hero-video {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc((100vw - var(--rick-frame)) / -2);
  z-index: -3;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.home-hero-video.is-active {
  opacity: 1;
}

.home-hero::before {
  position: absolute;
  inset: 0 calc((100vw - var(--rick-frame)) / -2);
  z-index: -2;
  background:
    radial-gradient(circle at 53% 36%, rgba(255, 255, 255, 0.2), transparent 21rem),
    linear-gradient(90deg, rgba(5, 5, 5, 0.68) 0%, rgba(5, 5, 5, 0.4) 45%, rgba(5, 5, 5, 0.76) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.04) 0%, rgba(5, 5, 5, 0.16) 52%, #050505 100%);
  content: "";
}

.home-hero::after {
  position: absolute;
  inset: auto calc((100vw - var(--rick-frame)) / -2) 0;
  z-index: -1;
  height: 34%;
  background: linear-gradient(180deg, transparent, #050505);
  content: "";
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-video {
    display: none;
  }

  .home-hero::before {
    background:
      radial-gradient(circle at 53% 36%, rgba(255, 255, 255, 0.2), transparent 21rem),
      linear-gradient(90deg, rgba(5, 5, 5, 0.68) 0%, rgba(5, 5, 5, 0.4) 45%, rgba(5, 5, 5, 0.76) 100%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.04) 0%, rgba(5, 5, 5, 0.16) 52%, #050505 100%),
      url("source-assets/home-background-poster.png") center / cover no-repeat;
  }
}

.hero-copy {
  min-width: 0;
}

.home-eyebrow,
.card-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 5px 12px;
  border: 1px solid var(--rick-line-strong);
  border-radius: 999px;
  color: rgba(244, 241, 235, 0.78);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-title {
  max-width: 560px;
  margin: 0;
  color: var(--rick-white);
  font-size: clamp(50px, 4vw, 58px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
  word-spacing: 0;
}

.home-intro {
  align-self: auto;
  justify-self: auto;
  position: static;
  width: min(100%, 520px);
  max-width: 520px;
  margin: 30px 0 0;
  padding: 0;
  transform: none;
  color: rgba(244, 241, 235, 0.72);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.52;
}

.home-intro p {
  max-width: 520px;
}

.home-intro p:first-child {
  color: var(--rick-white);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
  max-width: 520px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(244, 241, 235, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.hero-points li::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--rick-accent);
  color: #fff;
  font-size: 8px;
  line-height: 1;
  box-shadow: 0 0 20px rgba(255, 0, 68, 0.42);
  content: "✓";
}

.social-links {
  display: none;
}

.social-links a {
  height: 26px;
  opacity: 0.72;
  filter: grayscale(1) brightness(1.45);
}

.home-entry-card {
  min-width: 0;
  width: 370px;
  padding: 24px;
  border: 1px solid rgba(244, 241, 235, 0.1);
  border-radius: 14px;
  background: rgba(8, 5, 6, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
}

.home-entry-card h2 {
  margin: 10px 0 0;
  color: var(--rick-white);
  font-size: 23px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: 0;
}

.home-entry-card p {
  margin: 9px 0 0;
  color: rgba(244, 241, 235, 0.58);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.builder-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  color: rgba(244, 241, 235, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.avatar-stack {
  display: flex;
  flex: 0 0 auto;
}

.avatar-stack img {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  margin-left: -7px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: #171313;
  object-fit: cover;
  object-position: center;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.avatar-stack img:nth-child(1) { z-index: 6; }
.avatar-stack img:nth-child(2) { z-index: 5; }
.avatar-stack img:nth-child(3) { z-index: 4; }
.avatar-stack img:nth-child(4) { z-index: 3; }
.avatar-stack img:nth-child(5) { z-index: 2; }
.avatar-stack img:nth-child(6) { z-index: 1; }

.entry-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.entry-form input {
  width: 100%;
  height: 40px;
  padding: 0 22px;
  border: 1px solid rgba(244, 241, 235, 0.28);
  border-radius: 999px;
  background: rgba(244, 241, 235, 0.12);
  color: var(--rick-white);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  outline: 0;
}

.entry-form input::placeholder {
  color: rgba(244, 241, 235, 0.45);
}

.entry-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--rick-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    filter 180ms ease,
    transform 180ms ease;
}

.entry-form button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.home-index {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: clamp(44px, 6vw, 110px);
}

.clone-story {
  grid-template-columns: minmax(0, 530px) minmax(0, 1fr);
  gap: clamp(72px, 8vw, 120px);
  align-items: center;
  width: 100vw;
  margin-left: calc((100vw - var(--rick-frame)) / -2);
  padding: 112px max(48px, calc((100vw - 1088px) / 2)) 120px;
  border-top: 1px solid rgba(244, 241, 235, 0.06);
  background: #050505;
}

.clone-story-media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: #121212;
}

.clone-story-carousel {
  position: absolute;
  inset: 0;
}

.clone-story-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translate3d(0, 1.5%, 0) scale(1.035);
  filter: brightness(0.78) saturate(1.04);
  transition:
    opacity 900ms ease,
    transform 4200ms cubic-bezier(0.2, 0.72, 0.24, 1);
}

.clone-story-media img.is-active {
  z-index: 1;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.clone-story-media figcaption {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.52);
  color: rgba(244, 241, 235, 0.82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .clone-story-media img {
    transition: none;
  }
}

.clone-story-copy {
  max-width: 640px;
}

.clone-story-copy span,
.clone-feature span {
  color: rgba(244, 241, 235, 0.38);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.clone-story-copy h2 {
  margin: 26px 0 28px;
  color: var(--rick-white);
  font-size: clamp(56px, 6.4vw, 82px);
  line-height: 1.02;
  font-weight: 600;
}

.clone-story-copy p {
  max-width: 620px;
  margin: 0 0 24px;
  color: rgba(244, 241, 235, 0.58);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.48;
}

.clone-feature {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 720px;
  width: 100vw;
  margin-left: calc((100vw - var(--rick-frame)) / -2);
  padding: 0 max(48px, calc((100vw - 1088px) / 2));
  overflow: hidden;
  border-top: 1px solid rgba(244, 241, 235, 0.06);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.74) 0%, rgba(5, 5, 5, 0.18) 50%, rgba(5, 5, 5, 0.48) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0) 58%, #050505 100%),
    url("source-assets/archive-feature.png") center / cover no-repeat;
}

.clone-feature div {
  max-width: 640px;
}

.clone-feature h2 {
  margin: 28px 0 26px;
  color: var(--rick-white);
  font-size: clamp(72px, 9vw, 126px);
  line-height: 0.96;
  font-weight: 500;
}

.clone-feature p {
  max-width: 520px;
  color: rgba(244, 241, 235, 0.72);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.42;
}

.clone-library {
  width: 100vw;
  margin-left: calc((100vw - var(--rick-frame)) / -2);
  padding: 80px max(48px, calc((100vw - 1344px) / 2)) 132px;
  border-top: 1px solid rgba(244, 241, 235, 0.06);
  background: #050505;
}

.library-head {
  max-width: 672px;
  margin-bottom: 36px;
}

.library-head span {
  color: rgba(244, 241, 235, 0.36);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.library-head h2 {
  margin: 18px 0 18px;
  color: var(--rick-white);
  font-size: clamp(38px, 3vw, 48px);
  line-height: 1.08;
  font-weight: 500;
}

.library-head p {
  max-width: 560px;
  color: rgba(244, 241, 235, 0.52);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  border: 0;
}

.project-list > .section-anchor {
  display: none !important;
}

.project-row {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 0;
  height: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rick-white);
  text-align: left;
  transition:
    transform 180ms ease;
}

.project-row:hover,
.project-row:focus-visible {
  transform: translateY(-3px);
}

.project-info {
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 22px 0 0;
}

.project-title {
  max-width: none;
  color: var(--rick-white);
  overflow: hidden;
  font-size: 19px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-subtitle {
  max-width: 32em;
  margin-top: 8px;
  color: var(--rick-muted);
  font-size: 13px;
  font-weight: 600;
}

.project-date {
  display: none;
  margin-top: 0;
  color: var(--rick-faint);
  font-size: 12px;
  font-weight: 800;
}

.project-type {
  margin-top: 0;
  color: var(--rick-faint);
  font-size: 12px;
  font-weight: 700;
}

.project-info::after {
  position: absolute;
  top: 26px;
  right: 2px;
  color: rgba(244, 241, 235, 0.48);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  content: "→";
  transition: color 180ms ease, transform 180ms ease;
}

.project-row:hover .project-info::after,
.project-row:focus-visible .project-info::after {
  color: var(--rick-white);
  transform: translateX(4px);
}

.project-media {
  order: -1;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
}

#work .project-media {
  background: url("source-assets/linchong-cover.jpg") center / cover no-repeat;
}

#design .project-media {
  background: url("source-assets/feishu-articles/ai-film-roadmap.jpg") center / cover no-repeat;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.76) saturate(1.02);
  transition: transform 220ms ease, filter 220ms ease;
}

.project-row:hover .project-media img,
.project-row:focus-visible .project-media img {
  filter: brightness(0.9) saturate(1.08);
  transform: scale(1.02);
}

.project-media.is-text {
  display: flex;
  align-items: flex-start;
  min-height: 0;
  padding: 24px;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 0, 68, 0.24), transparent 22rem),
    #f4f1eb;
}

.text-preview {
  color: #050505;
  overflow: hidden;
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

#writing {
  display: none;
}

.black-book-zone,
.black-book-faq {
  width: 100vw;
  margin-left: calc((100vw - var(--rick-frame)) / -2);
  background: #050505;
}

.black-book-zone {
  scroll-margin-top: 76px;
  padding: clamp(96px, 9vw, 144px) max(48px, calc((100vw - 1344px) / 2)) 32px;
  border-top: 1px solid rgba(244, 241, 235, 0.06);
}

.black-book-inner,
.black-book-faq-inner {
  width: min(1344px, 100%);
  margin: 0 auto;
}

.black-book-heading {
  margin-bottom: 42px;
}

.black-book-heading > span,
.black-book-faq header > span,
.black-book-include > span {
  color: rgba(244, 241, 235, 0.38);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.black-book-heading h2,
.black-book-faq h2 {
  margin: 18px 0 0;
  color: var(--rick-white);
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.04;
  font-weight: 500;
}

.black-book-feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 430px;
  padding: clamp(34px, 4vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(255, 0, 68, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.72) 43%, rgba(5, 5, 5, 0.08) 76%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.74), transparent 58%),
    url("source-assets/cyberpunk-cover.webp") center 36% / cover no-repeat;
  color: var(--rick-white);
  text-decoration: none;
  transition:
    border-color 220ms ease,
    transform 220ms ease;
}

.black-book-feature:hover,
.black-book-feature:focus-visible {
  border-color: rgba(255, 0, 68, 0.78);
  transform: translateY(-2px);
}

.black-book-feature:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 4px;
}

.black-book-feature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 660px;
  flex-direction: column;
  align-items: flex-start;
}

.black-book-badge {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid rgba(255, 0, 68, 0.62);
  border-radius: 999px;
  color: var(--rick-accent);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.black-book-feature-copy > strong {
  max-width: 560px;
  margin-top: 22px;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.98;
  font-weight: 600;
}

.black-book-summary {
  max-width: 620px;
  margin-top: 24px;
  color: rgba(244, 241, 235, 0.7);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.55;
  font-weight: 600;
}

.black-book-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.black-book-includes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.black-book-include {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: var(--rick-white);
}

.black-book-include.is-workflow {
  background:
    linear-gradient(0deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.16) 86%),
    url("source-assets/feishu-articles/ai-film-roadmap.jpg") center 44% / cover no-repeat;
}

.black-book-include.is-toolkit {
  background:
    linear-gradient(0deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.18) 88%),
    url("source-assets/feishu-articles/film-lighting-prompts.jpg") center 42% / cover no-repeat;
}

.black-book-include h3 {
  margin: 18px 0 0;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
  font-weight: 600;
}

.black-book-include p {
  max-width: 540px;
  margin: 12px 0 0;
  color: rgba(244, 241, 235, 0.6);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

.black-book-faq {
  padding: 84px max(48px, calc((100vw - 1344px) / 2)) clamp(112px, 10vw, 160px);
}

.black-book-faq-inner {
  padding: clamp(38px, 5vw, 68px);
  border: 1px solid rgba(244, 241, 235, 0.1);
  border-radius: 8px;
  background: #101010;
}

.black-book-faq header {
  margin-bottom: 38px;
}

.black-book-faq-list {
  border-top: 1px solid rgba(244, 241, 235, 0.08);
}

.black-book-faq details {
  border-bottom: 1px solid rgba(244, 241, 235, 0.08);
}

.black-book-faq summary {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 46px 20px 0;
  color: rgba(244, 241, 235, 0.9);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.35;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.black-book-faq summary::-webkit-details-marker {
  display: none;
}

.black-book-faq summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--rick-accent);
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  content: "+";
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.black-book-faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.black-book-faq summary:focus-visible {
  outline: 1px solid rgba(255, 0, 68, 0.82);
  outline-offset: 4px;
}

.black-book-faq details p {
  max-width: 860px;
  margin: -4px 0 24px;
  color: rgba(244, 241, 235, 0.56);
  font-size: 16px;
  line-height: 1.72;
  font-weight: 500;
}

.media-hint {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(5, 5, 5, 0.64);
  color: rgba(255, 255, 255, 0.76);
}

.collection-shell,
.collection-view,
.detail-sheet {
  color: var(--rick-white);
}

.footer {
  width: 100%;
  margin-top: 96px;
  padding-top: 28px;
  border-top: 1px solid var(--rick-line);
  color: var(--rick-faint);
}

@media (max-width: 980px) {
  :root {
    --rick-frame: min(100%, calc(100vw - 36px));
  }

  .home-hero,
  .home-index,
  .clone-story {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding: 176px 0 88px;
  }

  .home-entry-card {
    width: 100%;
  }

  .clone-story {
    width: 100%;
    margin-left: 0;
    padding: 86px 0 96px;
  }

  .clone-story-media {
    max-width: 560px;
  }

  .clone-feature {
    width: 100%;
    min-height: 620px;
    margin-left: 0;
    padding: 0;
  }

  .black-book-zone,
  .black-book-faq {
    width: 100%;
    margin-left: 0;
  }

  .black-book-zone {
    padding: 86px 0 24px;
  }

  .black-book-feature {
    min-height: 500px;
    background-position: 58% center;
  }

  .black-book-includes {
    grid-template-columns: 1fr;
  }

  .black-book-faq {
    padding: 64px 0 104px;
  }

  .archive-sidebar {
    position: static;
    min-height: 0;
  }

  .archive-note {
    margin-top: 24px;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .clone-library {
    padding: 80px 24px 112px;
  }
}

@media (max-width: 640px) {
  :root {
    --rick-frame: min(100%, calc(100vw - 32px));
  }

  .site-promo {
    padding: 9px 18px;
    font-size: 12px;
    line-height: 1.35;
  }

  .site-promo span,
  .site-promo strong,
  .site-promo a {
    margin: 0 4px;
  }

  .topbar {
    height: 72px;
    padding: 0 16px;
  }

  .topbar.is-scrolled {
    height: 72px;
  }

  .brand {
    font-size: 23px;
  }

  .nav {
    gap: 14px;
    font-size: 12px;
  }

  .home-title {
    font-size: clamp(48px, 14vw, 66px);
  }

  .home-intro {
    font-size: 16px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .home-entry-card,
  .project-row {
    border-radius: 14px;
  }

  .clone-library {
    padding: 78px 16px 104px;
  }

  .clone-story-copy h2,
  .clone-feature h2 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .clone-story-copy p,
  .clone-feature p {
    font-size: 17px;
  }
}
