:root {
  --ink: #26324a;
  --heading: #0f172a;
  --muted: #5f6b80;
  --faint: #8b95a7;
  --line: #e6eaf1;
  --page: #f3f7f6;
  --surface: #ffffff;
  --tint: #eef4f3;
  --accent: #0ea5b0;
  --accent-dark: #0b8a93;
  --hero: #061130;
  --hero-2: #0a1a45;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --section: clamp(32px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  color: var(--heading);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
}

.cpt_shell {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.cpt_mast {
  position: relative;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.cpt_mastbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
  min-width: 0;
}

.cpt_brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  border-radius: 8px;
}

.cpt_brand img {
  height: 26px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.cpt_brand:hover {
  text-decoration: none;
  opacity: 0.85;
}

.cpt_brand:focus-visible,
.cpt_links > a:focus-visible,
.cpt_flyout > button:focus-visible,
.cpt_burger:focus-visible,
.cpt_press:focus-visible,
.cpt_askrow button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cpt_menuhead {
  display: none;
}

.cpt_menubox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cpt_links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.cpt_links > a,
.cpt_flyout > button {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.cpt_links > a:hover,
.cpt_flyout > button:hover {
  color: var(--heading);
  background: var(--tint);
  text-decoration: none;
}

.cpt_links > a.cpt_navcta {
  margin-left: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--heading);
  color: #fff;
  font-weight: 600;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

.cpt_links > a.cpt_navcta:hover {
  background: var(--accent-dark);
  color: #fff;
}

.cpt_flyout {
  position: relative;
}

.cpt_flyout > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cpt_caret {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  transition: transform 0.2s var(--ease);
}

.cpt_flyout.cpt_on .cpt_caret {
  transform: rotate(180deg);
}

.cpt_flyout.cpt_on > button {
  color: var(--heading);
  background: var(--tint);
}

.cpt_flylist {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 620px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
}

.cpt_flyout.cpt_on .cpt_flylist {
  display: block;
}

.cpt_flycols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 4px 0;
}

.cpt_flydiv {
  width: 1px;
  background: var(--line);
  margin: 8px 6px;
}

.cpt_flylist a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.16s var(--ease);
}

.cpt_flylist a:hover {
  background: var(--tint);
  text-decoration: none;
}

.cpt_flymark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cpt_flymark svg {
  width: 22px;
  height: 22px;
}

.cpt_flylist strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.cpt_flylist em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.cpt_burger {
  display: none;
  position: relative;
  z-index: 42;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cpt_burger:hover {
  background: var(--tint);
}

.cpt_burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0;
  background: var(--heading);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease), background 0.2s var(--ease);
}

.cpt_burger.cpt_on {
  background: var(--heading);
  border-color: var(--heading);
}

.cpt_burger.cpt_on span {
  background: #fff;
}

.cpt_burger.cpt_on span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.cpt_burger.cpt_on span:nth-child(2) {
  opacity: 0;
}

.cpt_burger.cpt_on span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.cpt_veil {
  display: none;
}

body.cpt_locked {
  overflow: hidden;
}

/* ---------- Hero ---------- */

.cpt_banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(14, 165, 176, 0.32), transparent 65%),
    linear-gradient(180deg, var(--hero-2) 0%, var(--hero) 100%);
  color: #fff;
  text-align: center;
}

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

.cpt_banner::before,
.cpt_closer::before {
  opacity: 0.7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='400' viewBox='0 0 560 400'%3E%3Ccircle cx='24' cy='38' r='0.7' fill='%23fff' opacity='0.55'/%3E%3Ccircle cx='92' cy='18' r='0.5' fill='%23dbeafe' opacity='0.4'/%3E%3Ccircle cx='148' cy='72' r='0.8' fill='%23fff' opacity='0.65'/%3E%3Ccircle cx='210' cy='44' r='0.45' fill='%23fff' opacity='0.35'/%3E%3Ccircle cx='268' cy='96' r='0.6' fill='%23e0f2fe' opacity='0.5'/%3E%3Ccircle cx='332' cy='28' r='0.7' fill='%23fff' opacity='0.45'/%3E%3Ccircle cx='398' cy='80' r='0.5' fill='%23fff' opacity='0.38'/%3E%3Ccircle cx='456' cy='36' r='0.9' fill='%23fff' opacity='0.7'/%3E%3Ccircle cx='518' cy='64' r='0.45' fill='%23dbeafe' opacity='0.4'/%3E%3Ccircle cx='48' cy='142' r='0.55' fill='%23fff' opacity='0.42'/%3E%3Ccircle cx='118' cy='168' r='0.7' fill='%23fff' opacity='0.58'/%3E%3Ccircle cx='176' cy='124' r='0.4' fill='%23fff' opacity='0.3'/%3E%3Ccircle cx='244' cy='186' r='0.8' fill='%23e0f2fe' opacity='0.62'/%3E%3Ccircle cx='310' cy='138' r='0.5' fill='%23fff' opacity='0.4'/%3E%3Ccircle cx='372' cy='174' r='0.65' fill='%23fff' opacity='0.5'/%3E%3Ccircle cx='438' cy='148' r='0.45' fill='%23dbeafe' opacity='0.35'/%3E%3Ccircle cx='504' cy='192' r='0.7' fill='%23fff' opacity='0.55'/%3E%3Ccircle cx='36' cy='248' r='0.5' fill='%23fff' opacity='0.38'/%3E%3Ccircle cx='88' cy='286' r='0.75' fill='%23fff' opacity='0.6'/%3E%3Ccircle cx='164' cy='232' r='0.45' fill='%23e0f2fe' opacity='0.4'/%3E%3Ccircle cx='228' cy='278' r='0.55' fill='%23fff' opacity='0.45'/%3E%3Ccircle cx='294' cy='244' r='0.4' fill='%23fff' opacity='0.32'/%3E%3Ccircle cx='358' cy='298' r='0.8' fill='%23fff' opacity='0.68'/%3E%3Ccircle cx='422' cy='256' r='0.5' fill='%23dbeafe' opacity='0.42'/%3E%3Ccircle cx='490' cy='284' r='0.6' fill='%23fff' opacity='0.48'/%3E%3Ccircle cx='62' cy='348' r='0.55' fill='%23fff' opacity='0.4'/%3E%3Ccircle cx='132' cy='372' r='0.7' fill='%23e0f2fe' opacity='0.52'/%3E%3Ccircle cx='198' cy='334' r='0.45' fill='%23fff' opacity='0.35'/%3E%3Ccircle cx='276' cy='362' r='0.5' fill='%23fff' opacity='0.44'/%3E%3Ccircle cx='348' cy='338' r='0.65' fill='%23fff' opacity='0.5'/%3E%3Ccircle cx='414' cy='378' r='0.4' fill='%23dbeafe' opacity='0.33'/%3E%3Ccircle cx='486' cy='342' r='0.75' fill='%23fff' opacity='0.58'/%3E%3Ccircle cx='538' cy='318' r='0.5' fill='%23fff' opacity='0.4'/%3E%3Cpath fill='%23fff' opacity='0.55' d='M96 88l.45 1.5 1.55.35-1.55.35-.45 1.5-.45-1.5-1.55-.35 1.55-.35z'/%3E%3Cpath fill='%23fff' opacity='0.4' d='M402 214l.4 1.3 1.35.3-1.35.3-.4 1.3-.4-1.3-1.35-.3 1.35-.3z'/%3E%3Cpath fill='%23e0f2fe' opacity='0.5' d='M252 318l.5 1.6 1.65.4-1.65.4-.5 1.6-.5-1.6-1.65-.4 1.65-.4z'/%3E%3C/svg%3E");
  background-size: 560px 400px;
}

.cpt_banner::after,
.cpt_closer::after {
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='300' viewBox='0 0 380 300'%3E%3Ccircle cx='18' cy='46' r='0.45' fill='%23fff' opacity='0.4'/%3E%3Ccircle cx='74' cy='12' r='0.6' fill='%23fff' opacity='0.5'/%3E%3Ccircle cx='128' cy='88' r='0.4' fill='%23dbeafe' opacity='0.35'/%3E%3Ccircle cx='186' cy='32' r='0.7' fill='%23fff' opacity='0.58'/%3E%3Ccircle cx='244' cy='70' r='0.45' fill='%23fff' opacity='0.38'/%3E%3Ccircle cx='308' cy='24' r='0.5' fill='%23e0f2fe' opacity='0.45'/%3E%3Ccircle cx='354' cy='96' r='0.65' fill='%23fff' opacity='0.52'/%3E%3Ccircle cx='42' cy='154' r='0.5' fill='%23fff' opacity='0.4'/%3E%3Ccircle cx='98' cy='188' r='0.4' fill='%23fff' opacity='0.32'/%3E%3Ccircle cx='162' cy='142' r='0.75' fill='%23fff' opacity='0.62'/%3E%3Ccircle cx='218' cy='178' r='0.45' fill='%23dbeafe' opacity='0.4'/%3E%3Ccircle cx='286' cy='136' r='0.55' fill='%23fff' opacity='0.44'/%3E%3Ccircle cx='338' cy='198' r='0.5' fill='%23fff' opacity='0.4'/%3E%3Ccircle cx='28' cy='246' r='0.6' fill='%23e0f2fe' opacity='0.48'/%3E%3Ccircle cx='86' cy='268' r='0.4' fill='%23fff' opacity='0.34'/%3E%3Ccircle cx='154' cy='232' r='0.5' fill='%23fff' opacity='0.42'/%3E%3Ccircle cx='226' cy='258' r='0.7' fill='%23fff' opacity='0.56'/%3E%3Ccircle cx='294' cy='238' r='0.45' fill='%23dbeafe' opacity='0.36'/%3E%3Ccircle cx='352' cy='272' r='0.55' fill='%23fff' opacity='0.46'/%3E%3Cpath fill='%23fff' opacity='0.45' d='M190 108l.35 1.2 1.25.28-1.25.28-.35 1.2-.35-1.2-1.25-.28 1.25-.28z'/%3E%3C/svg%3E");
  background-size: 380px 300px;
  background-position: 120px 60px;
}

.cpt_bannerrow {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 6vw, 72px) 0 clamp(28px, 3.5vw, 40px);
}

.cpt_banner h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.2vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.cpt_banner p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.7;
  max-width: none;
  margin: 22px 0 0;
}

.cpt_bannerbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cpt_banner .cpt_bannerbtns {
  justify-content: center;
  flex-direction: row;
  align-items: center;
}

/* ---------- Buttons ---------- */

.cpt_press {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.cpt_press:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.cpt_press:active {
  transform: translateY(0);
}

.cpt_pressfill {
  background: #fff;
  color: var(--heading);
  box-shadow: 0 6px 18px rgba(2, 8, 30, 0.28);
}

.cpt_pressfill:hover {
  background: #f3f6fa;
  box-shadow: 0 10px 26px rgba(2, 8, 30, 0.34);
}

.cpt_pressline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cpt_pressline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

.cpt_pressline.cpt_pressfade {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ---------- Sections ---------- */

.cpt_catalog,
.cpt_essay,
.cpt_duo,
.cpt_vaultzone,
.cpt_ask {
  padding: var(--section) 0;
  border-top: 0;
}

.cpt_catalog {
  padding-top: clamp(28px, 3.2vw, 40px);
}

.cpt_wash {
  background: var(--page);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cpt_cataloghead {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.cpt_cataloghead p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* ---------- Test cards ---------- */

.cpt_banner .cpt_kicker {
  color: rgba(255, 255, 255, 0.72);
}

.cpt_cataloglist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cpt_cataloglist > *,
.cpt_duorow > *,
.cpt_baserow > *,
.cpt_vaulttiles > * {
  min-width: 0;
}

.cpt_offering {
  --mark: var(--accent);
  position: relative;
  overflow: hidden;
  max-width: 100%;
  background: color-mix(in srgb, var(--mark) 8%, #eef4fc);
  border: 1px solid color-mix(in srgb, var(--mark) 14%, transparent);
  border-radius: 24px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition: transform 0.24s var(--ease), background 0.24s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease);
}

.cpt_offering::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--mark) 26%, transparent) 0%, transparent 70%);
  opacity: 0.9;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.cpt_offering:hover {
  text-decoration: none;
  transform: translateY(-6px);
  background: color-mix(in srgb, var(--mark) 12%, #e8f0fb);
  border-color: color-mix(in srgb, var(--mark) 30%, transparent);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--mark) 18%, rgba(15, 23, 42, 0.06));
}

.cpt_offering:hover::before {
  transform: scale(1.25);
  opacity: 1;
}

.cpt_offering h3 {
  position: relative;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.cpt_duotxt p,
.cpt_essay p {
  color: var(--muted);
}

.cpt_offering p {
  position: relative;
  font-size: 0.98rem;
  line-height: 1.65;
  flex: 1;
  margin: 0;
  color: #5a677d;
}

.cpt_more {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 9px 14px 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--mark) 22%, transparent);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mark);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cpt_more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.cpt_offering:hover .cpt_more {
  text-decoration: none;
  background: var(--mark);
  border-color: var(--mark);
  color: #fff;
}

.cpt_offering:hover .cpt_more svg {
  transform: translateX(3px);
}

/* ---------- Essay ---------- */

.cpt_essay p {
  font-size: 1.125rem;
  line-height: 1.625;
  margin-bottom: 1.25rem;
}

.cpt_essay p:last-child,
.cpt_duotxt p:last-child {
  margin-bottom: 0;
}

/* ---------- Image + text rows ---------- */

.cpt_duorow {
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-template-areas:
    "art title"
    "art body";
  gap: 12px clamp(32px, 5vw, 56px);
  align-items: start;
  align-content: start;
}

.cpt_duorow > h2 {
  grid-area: title;
  margin-bottom: 0;
  align-self: start;
}

.cpt_duorow .cpt_frame {
  grid-area: art;
}

.cpt_duorow .cpt_duotxt {
  grid-area: body;
}

.cpt_duorow:not(.cpt_artfirst) {
  grid-template-columns: 7fr 5fr;
  grid-template-areas:
    "title art"
    "body art";
}

.cpt_frame {
  position: relative;
}

.cpt_bloom {
  position: absolute;
  inset: -12px;
  z-index: 0;
  border-radius: 32px;
  filter: blur(44px);
  opacity: 0.45;
}

.cpt_frame img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.cpt_duotxt p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ---------- Privacy block ---------- */

.cpt_vaulthead {
  margin: 0 auto 32px;
  text-align: center;
}

.cpt_vaulthead h2 {
  margin-bottom: 16px;
}

.cpt_vaulthead p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 0 28px;
}

.cpt_vaulttiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cpt_vaulttiles article {
  position: relative;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cpt_vaulttiles article + article {
  border-left: 1px solid var(--line);
}

.cpt_vaultnum {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.cpt_vaulttiles svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cpt_vaulttiles h3 {
  font-size: 1.0625rem;
  margin: 4px 0 0;
}

.cpt_vaulttiles p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

/* ---------- FAQ ---------- */

.cpt_askintro {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}

.cpt_askintro h2 {
  margin-bottom: 12px;
}

.cpt_askintro p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0;
}

.cpt_pressdark {
  background: var(--heading);
  color: #fff;
}

.cpt_pressdark:hover {
  background: var(--accent-dark);
  color: #fff;
}

.cpt_asklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.cpt_askrow {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.cpt_askrow:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: var(--shadow-sm);
}

.cpt_askrow.cpt_on {
  background: color-mix(in srgb, var(--accent) 7%, #fff);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  box-shadow: var(--shadow-sm);
}

.cpt_askrow button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 18px 16px 18px 18px;
  font: 600 1rem system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.02em;
  color: var(--heading);
  text-align: left;
  cursor: pointer;
  white-space: normal;
  transition: color 0.18s var(--ease);
}

.cpt_askrow button:hover,
.cpt_askrow.cpt_on button {
  color: var(--heading);
}

.cpt_askq {
  flex: 1;
  min-width: 0;
}

.cpt_chevbox {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--heading);
  background: var(--tint);
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.cpt_askrow.cpt_on .cpt_chevbox {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cpt_chevbox svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.cpt_askrow.cpt_on .cpt_chevbox svg {
  transform: rotate(45deg);
}

.cpt_askrow p {
  color: var(--muted);
  margin: 0;
  padding: 0 52px 20px 18px;
  line-height: 1.7;
}

.cpt_askrow p[hidden] {
  display: none;
}

/* ---------- Closing CTA ---------- */

.cpt_closer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 380px at 50% 120%, rgba(14, 165, 176, 0.38), transparent 60%),
    linear-gradient(180deg, var(--hero) 0%, var(--hero-2) 100%);
  padding: var(--section) 0;
  text-align: center;
  color: #fff;
}

.cpt_closerbox {
  position: relative;
  z-index: 1;
}

.cpt_closer h2 {
  color: #fff;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.cpt_closer p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  margin: 14px 0 0;
}

.cpt_closerbox .cpt_bannerbtns {
  justify-content: center;
  margin-top: 30px;
}

/* ---------- Footer ---------- */

.cpt_base {
  background: var(--surface);
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
}

.cpt_baserow {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.cpt_baseintro p {
  color: var(--muted);
  margin: 16px 0 20px;
  max-width: 300px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cpt_nets {
  display: flex;
  gap: 8px;
}

.cpt_nets span,
.cpt_nets a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--tint);
  border: 1px solid var(--line);
  text-decoration: none;
}

.cpt_nets a:hover {
  color: var(--heading);
  background: #fff;
  text-decoration: none;
}

.cpt_nets svg {
  width: 16px;
  height: 16px;
}

.cpt_base h3 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}

.cpt_base nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.cpt_base nav a {
  color: var(--ink);
  font-size: 0.9375rem;
}

.cpt_base nav a:hover {
  color: var(--accent-dark);
}

.cpt_basefine {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.cpt_credit {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .cpt_shell {
    width: min(1200px, calc(100% - 48px));
  }

  .cpt_cataloglist,
  .cpt_baserow {
    grid-template-columns: 1fr 1fr;
  }

  .cpt_duorow,
  .cpt_duorow:not(.cpt_artfirst) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "art"
      "body";
    gap: 20px;
  }

  .cpt_duorow .cpt_frame {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

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

  .cpt_vaulttiles article + article {
    border-left: 0;
  }

  .cpt_vaulttiles article:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .cpt_vaulttiles article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .cpt_flylist {
    width: min(620px, calc(100vw - 48px));
  }
}

@media (max-width: 900px) {
  .cpt_mast {
    padding-top: env(safe-area-inset-top);
  }

  .cpt_mastbar {
    height: 64px;
    gap: 12px;
  }

  .cpt_bannerrow {
    padding: 36px 0 28px;
  }

  .cpt_banner h1,
  .cpt_closer h2 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .cpt_banner p,
  .cpt_closer p {
    font-size: 1rem;
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }

  .cpt_cataloghead {
    margin-bottom: 28px;
  }

  .cpt_offering {
    padding: 24px 20px 22px;
    border-radius: 20px;
  }

  .cpt_vaulthead {
    margin-bottom: 20px;
    text-align: left;
  }

  .cpt_vaulthead h2 {
    margin-bottom: 10px;
  }

  .cpt_vaulthead p {
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
  }

  .cpt_vaulttiles {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .cpt_vaulttiles article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      "icon num"
      "icon title"
      "icon body";
    column-gap: 14px;
    row-gap: 3px;
    padding: 16px;
    align-items: start;
  }

  .cpt_vaulttiles article:nth-child(odd) {
    border-right: 0;
  }

  .cpt_vaulttiles article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .cpt_vaultnum {
    grid-area: num;
    margin: 0;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    line-height: 1.2;
  }

  .cpt_vaulttiles svg {
    grid-area: icon;
    width: 44px;
    height: 44px;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    align-self: start;
  }

  .cpt_vaulttiles h3 {
    grid-area: title;
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
  }

  .cpt_vaulttiles p {
    grid-area: body;
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .cpt_closer {
    padding: 48px 0;
  }

  .cpt_closerbox .cpt_press,
  .cpt_page .cpt_bannerbtns .cpt_press {
    width: 100%;
  }

  .cpt_page .cpt_bannerbtns,
  .cpt_quizout .cpt_bannerbtns {
    flex-direction: column;
    align-items: stretch;
  }

  .cpt_base {
    padding: 48px 0 calc(28px + env(safe-area-inset-bottom));
  }

  .cpt_baseintro p {
    max-width: none;
  }

  .cpt_burger {
    display: flex;
  }

  .cpt_veil {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(6, 17, 48, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
  }

  .cpt_veil.cpt_on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .cpt_menubox {
    display: flex;
    position: fixed;
    z-index: 41;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    background:
      radial-gradient(900px 420px at 50% -10%, rgba(14, 165, 176, 0.12), transparent 65%),
      #fff;
    border: 0;
    border-radius: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    box-shadow: none;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease), transform 0.32s var(--ease);
  }

  .cpt_menubox.cpt_on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .cpt_menuhead {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 22px 24px 12px;
    padding-top: calc(78px + env(safe-area-inset-top));
  }

  .cpt_menuhead span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
  }

  .cpt_links,
  .cpt_flyout {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .cpt_links {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 20px calc(28px + env(safe-area-inset-bottom));
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  .cpt_links > a,
  .cpt_flyout > button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 56px;
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    justify-content: space-between;
    white-space: normal;
    -webkit-tap-highlight-color: transparent;
  }

  .cpt_links > a:hover,
  .cpt_flyout > button:hover {
    background: var(--tint);
  }

  .cpt_links > a.cpt_navcta {
    margin: auto 0 0;
    padding: 16px 18px;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  }

  .cpt_flyout > button {
    display: none;
  }

  .cpt_flyout {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
  }

  .cpt_flyout::before {
    content: "Character Tests";
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    padding: 8px 4px 0;
  }

  .cpt_flylist {
    display: block;
    position: static;
    width: auto;
    box-shadow: none;
    margin: 0;
    border: 1px solid var(--line);
    padding: 0;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
  }

  .cpt_flyout.cpt_on .cpt_flylist {
    display: block;
  }

  .cpt_flycols {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 0;
  }

  .cpt_flycols > div {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .cpt_flydiv {
    display: none;
  }

  .cpt_flylist a,
  .cpt_flylist a:hover {
    min-height: 0;
    padding: 14px 14px 14px 12px;
    gap: 14px;
    border-radius: 0;
    background: transparent;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid var(--line);
    position: relative;
  }

  .cpt_flycols > div:last-child > a:last-child,
  .cpt_flycols > div:only-child > a:last-child {
    border-bottom: 0;
  }

  .cpt_flylist a:active,
  .cpt_flylist a:hover {
    background: var(--tint);
    text-decoration: none;
  }

  .cpt_flylist a::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    flex-shrink: 0;
    border-right: 2px solid var(--faint);
    border-top: 2px solid var(--faint);
    transform: rotate(45deg);
    opacity: 0.7;
  }

  .cpt_flylist a > span:last-of-type {
    flex: 1;
    min-width: 0;
  }

  .cpt_flylist strong {
    font-size: 1rem;
    letter-spacing: -0.015em;
    text-transform: none;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
  }

  .cpt_flylist em {
    display: block;
    margin-top: 3px;
    font-style: normal;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  .cpt_flymark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .cpt_flymark svg {
    width: 20px;
    height: 20px;
  }

  .cpt_askrow button {
    padding: 16px 14px 16px 16px;
    font-size: 0.98rem;
    align-items: flex-start;
  }

  .cpt_askrow p {
    padding: 0 16px 18px 16px;
  }

  .cpt_baserow {
    gap: 32px;
  }

  .cpt_banner .cpt_bannerbtns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .cpt_banner .cpt_bannerbtns .cpt_press {
    width: 100%;
  }

  .cpt_press {
    padding: 15px 22px;
  }
}

.cpt_banner.cpt_quizhero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.cpt_banner.cpt_quizhero p {
  margin-left: auto;
  margin-right: auto;
}

.cpt_cast {
  padding: var(--section) 0;
  background: #fff;
}

.cpt_article {
  margin: 0 auto;
}

.cpt_article h2 {
  margin-bottom: 16px;
}

.cpt_article p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 0 1.15rem;
}

.cpt_article p:last-child {
  margin-bottom: 0;
}

.cpt_article strong {
  color: var(--heading);
  font-weight: 700;
}

.cpt_article h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.15rem;
}

.cpt_article ul {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.cpt_article li {
  margin: 0 0 0.45rem;
}

.cpt_article a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cpt_traits {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.cpt_traits li {
  margin: 0;
  padding: 0 0 0 0.95rem;
  border-left: 2px solid var(--line);
}

.cpt_traits strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.cpt_traits span {
  display: block;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.cpt_castlist {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cpt_castcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.cpt_castcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cpt_castpic {
  width: 100%;
  aspect-ratio: 1;
  margin: 0 0 12px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--tint);
}

.cpt_castpic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cpt_castcard .cpt_quiztags {
  margin-bottom: 8px;
}

.cpt_matchcopy .cpt_quiztags {
  margin-bottom: 10px;
}

.cpt_castcard h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.cpt_castcard p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.cpt_page .cpt_bannerbtns {
  margin-top: 20px;
}

.cpt_page .cpt_press:not(.cpt_pressdark):not(.cpt_pressfill) {
  background: #fff;
  color: var(--heading);
  border-color: var(--line);
}

.cpt_page .cpt_prose {
  margin-left: auto;
  margin-right: auto;
  max-width: 840px;
}

.cpt_page {
  padding: clamp(40px, 5vw, 64px) 0;
  background: #fff;
}

.cpt_essay:not(.cpt_wash) {
  background: #fff;
}

.cpt_quizwide .cpt_shell {
  width: min(1120px, calc(100% - 64px));
}

.cpt_kicker {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

.cpt_quizmeta {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.02em;
}

.cpt_quizbar {
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  margin: 0 0 28px;
  overflow: hidden;
}

.cpt_quizbar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.25s var(--ease);
}

.cpt_quiz fieldset {
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  margin: 0;
  padding: 0;
}

.cpt_quiz legend {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--heading);
  padding: 0;
  margin: 0 0 16px;
  float: none;
  width: 100%;
}

.cpt_quizopts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.cpt_quiz label {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  min-height: 52px;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.cpt_quiz label > span:last-child {
  font-size: 0.9375rem;
  line-height: 1.35;
}

@media (min-width: 901px) {
  .cpt_quiz label > span:last-child {
    white-space: nowrap;
  }
}

.cpt_quizletter {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--tint);
  color: var(--heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cpt_quiz label:has(input:checked) .cpt_quizletter {
  background: color-mix(in srgb, var(--accent) 22%, #fff);
  color: var(--accent-dark);
}

.cpt_quiz label:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.cpt_quiz label:focus-within {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow-sm);
}

.cpt_quiz label:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  box-shadow: var(--shadow-sm);
}

.cpt_quiz input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.cpt_quiznav {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.cpt_quizout .cpt_quizkicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.cpt_quiztags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.cpt_quizhouse {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent-dark);
  font-size: 0.8125rem;
  font-weight: 700;
}

.cpt_quizarch {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--heading) 8%, #fff);
  color: var(--heading);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 700;
}

.cpt_quizhouse[data-house="gryffindor"] {
  background: #fde8e8;
  color: #9a1b2f;
}

.cpt_quizhouse[data-house="slytherin"] {
  background: #e7f1eb;
  color: #1a5c38;
}

.cpt_quizhouse[data-house="ravenclaw"] {
  background: #e8eef8;
  color: #1e3a6e;
}

.cpt_quizhouse[data-house="hufflepuff"] {
  background: #fff4d4;
  color: #8a6a12;
}

.cpt_quizhouse[data-house="gotham"],
.cpt_quizhouse[data-house="street"],
.cpt_quizhouse[data-house="mercenary"] {
  background: #ececf1;
  color: #1a1a22;
}

.cpt_quizhouse[data-house="metropolis"],
.cpt_quizhouse[data-house="avengers"],
.cpt_quizhouse[data-house="justiceleague"] {
  background: #e8f0fe;
  color: #1e4fa3;
}

.cpt_quizhouse[data-house="themyscira"],
.cpt_quizhouse[data-house="wakanda"],
.cpt_quizhouse[data-house="asgard"] {
  background: #f8edd4;
  color: #8a5a12;
}

.cpt_quizhouse[data-house="centralcity"],
.cpt_quizhouse[data-house="fawcettcity"],
.cpt_quizhouse[data-house="guardians"] {
  background: #fde8e8;
  color: #9a1b2f;
}

.cpt_quizhouse[data-house="atlantis"],
.cpt_quizhouse[data-house="xmen"],
.cpt_quizhouse[data-house="coastcity"] {
  background: #e7f1eb;
  color: #1a5c38;
}

.cpt_quizhouse[data-house="titans"],
.cpt_quizhouse[data-house="sanctum"],
.cpt_quizhouse[data-house="houseofmystery"] {
  background: #efe8f8;
  color: #5b2d8e;
}

.cpt_quizhouse[data-house="bludhaven"],
.cpt_quizhouse[data-house="starcity"],
.cpt_quizhouse[data-house="shield"] {
  background: #e8eef8;
  color: #1e3a6e;
}

.cpt_quizout {
  margin-top: 8px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.cpt_quizout[data-house="gryffindor"] {
  background: linear-gradient(180deg, #fff8f6 0%, #fff 42%);
}

.cpt_quizout[data-house="slytherin"] {
  background: linear-gradient(180deg, #f4faf6 0%, #fff 42%);
}

.cpt_quizout[data-house="ravenclaw"] {
  background: linear-gradient(180deg, #f5f8fc 0%, #fff 42%);
}

.cpt_quizout[data-house="hufflepuff"] {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 42%);
}

.cpt_quizout[data-house="gotham"],
.cpt_quizout[data-house="street"],
.cpt_quizout[data-house="mercenary"] {
  background: linear-gradient(180deg, #f6f6f8 0%, #fff 42%);
}

.cpt_quizout[data-house="metropolis"],
.cpt_quizout[data-house="avengers"],
.cpt_quizout[data-house="justiceleague"] {
  background: linear-gradient(180deg, #f5f8fc 0%, #fff 42%);
}

.cpt_quizout[data-house="themyscira"],
.cpt_quizout[data-house="wakanda"],
.cpt_quizout[data-house="asgard"] {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 42%);
}

.cpt_quizout[data-house="centralcity"],
.cpt_quizout[data-house="fawcettcity"],
.cpt_quizout[data-house="guardians"] {
  background: linear-gradient(180deg, #fff8f6 0%, #fff 42%);
}

.cpt_quizout[data-house="atlantis"],
.cpt_quizout[data-house="xmen"],
.cpt_quizout[data-house="coastcity"] {
  background: linear-gradient(180deg, #f4faf6 0%, #fff 42%);
}

.cpt_quizout[data-house="titans"],
.cpt_quizout[data-house="sanctum"],
.cpt_quizout[data-house="houseofmystery"] {
  background: linear-gradient(180deg, #f8f5fc 0%, #fff 42%);
}

.cpt_quizout[data-house="bludhaven"],
.cpt_quizout[data-house="starcity"],
.cpt_quizout[data-house="shield"] {
  background: linear-gradient(180deg, #f5f8fc 0%, #fff 42%);
}

.cpt_match {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
}

.cpt_match:has(#cpt-quiz-picwrap[hidden]) {
  grid-template-columns: 1fr;
}

.cpt_matchpic {
  background: var(--tint);
  overflow: hidden;
}

.cpt_matchpic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cpt_matchcopy {
  padding: 22px 22px 8px;
  min-width: 0;
}

.cpt_quizstamp {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 16px;
}

.cpt_quizdone {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 5px 10px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cpt_quizwhen {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.cpt_matchcopy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cpt_matchcopy #cpt-quiz-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
}

.cpt_quizout .cpt_bannerbtns {
  margin: 0;
  padding: 18px 22px 22px;
}

.cpt_quizout .cpt_press:not(.cpt_pressdark) {
  background: #fff;
  color: var(--heading);
  border-color: var(--line);
}

.cpt_quizout .cpt_press:not(.cpt_pressdark):hover {
  background: var(--tint);
  color: var(--heading);
}

/* Mobile and tablet: kept last so quiz and cast rules cannot override them */
@media (max-width: 1100px) {
  .cpt_castlist {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .cpt_shell,
  .cpt_quizwide .cpt_shell {
    width: calc(100% - 32px);
  }

  .cpt_banner.cpt_quizhero h1 {
    font-size: clamp(1.65rem, 7.2vw, 2.25rem);
  }

  .cpt_banner.cpt_quizhero p {
    max-width: none;
    font-size: 1rem;
    margin-top: 16px;
  }

  .cpt_quizopts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cpt_quiz label {
    min-height: 52px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 20px;
  }

  .cpt_quiz label > span:last-child {
    white-space: normal;
    overflow-wrap: break-word;
  }

  .cpt_quiz legend {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

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

  .cpt_matchpic {
    width: 100%;
    aspect-ratio: 1;
    max-height: none;
  }

  .cpt_matchpic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

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

  .cpt_castcard {
    padding: 14px 14px 16px;
  }

  .cpt_page {
    padding: 36px 0 44px;
  }
  .cpt_cataloglist,
  .cpt_asklist,
  .cpt_baserow,
  .cpt_vaulttiles {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 560px) and (max-width: 900px) {
  .cpt_quizopts {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 480px) {
  .cpt_shell,
  .cpt_quizwide .cpt_shell {
    width: calc(100% - 24px);
  }

  .cpt_brand img {
    height: 22px;
  }

  .cpt_bannerrow {
    padding: 28px 0 24px;
  }

  .cpt_banner h1 {
    font-size: clamp(1.6rem, 9vw, 2.1rem);
  }

  .cpt_offering {
    padding: 22px 20px 20px;
    border-radius: 18px;
  }

  .cpt_essay p {
    font-size: 1.02rem;
  }

  .cpt_quizbar {
    margin-bottom: 20px;
  }
}

@media (hover: none) {
  .cpt_castcard:hover,
  .cpt_offering:hover,
  .cpt_press:hover,
  .cpt_askrow:hover {
    transform: none;
  }
}

/* ---------- Profile ---------- */

.cpt_profilehero .cpt_bannerrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(20px, 3vw, 28px);
}

.cpt_profilehero .cpt_bannerrow:has(.cpt_profileheropic:not([hidden])) {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: clamp(28px, 4vw, 48px);
}

.cpt_profileheromain {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

.cpt_profilehero .cpt_bannerbtns {
  justify-content: center;
}

.cpt_profilehero .cpt_bannerrow:has(.cpt_profileheropic:not([hidden])) .cpt_bannerbtns {
  justify-content: flex-start;
}

.cpt_profilehero #cpt-profile-sentence {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}

.cpt_profileheropic {
  flex: 0 0 auto;
  width: clamp(160px, 22vw, 260px);
  height: clamp(160px, 22vw, 260px);
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.cpt_profileheropic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 720px) {
  .cpt_profilehero .cpt_bannerrow:has(.cpt_profileheropic:not([hidden])) {
    flex-direction: column;
    text-align: center;
  }

  .cpt_profilehero .cpt_bannerrow:has(.cpt_profileheropic:not([hidden])) .cpt_bannerbtns {
    justify-content: center;
  }
}

.cpt_profiledetail > .cpt_shell,
#cpt-profile-intro .cpt_shell {
  width: min(1120px, calc(100% - 64px));
}

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

.cpt_includecard {
  min-width: 0;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, #fff) 0%, #fff 48%);
  box-shadow: var(--shadow-sm);
}

.cpt_includenum {
  display: block;
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--accent) 72%, var(--heading));
}

.cpt_includecard h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--heading);
}

.cpt_includecard p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.6;
}

.cpt_introcopy {
  margin-top: clamp(28px, 4vw, 40px);
}

.cpt_introcopy p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 0 1.15rem;
}

.cpt_introcopy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .cpt_includegrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cpt_includegrid {
    grid-template-columns: 1fr;
  }
}

.cpt_profiledetail {
  padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 72px);
  background: var(--page);
  border-top: 1px solid var(--line);
}

.cpt_profilegroup {
  margin: 0 0 clamp(36px, 5vw, 56px);
}

.cpt_profilegroup:last-child {
  margin-bottom: 0;
}

.cpt_profilegroup > h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--heading);
}

.cpt_profilegrouplead {
  margin: 0 0 18px;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

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

.cpt_profilepanel {
  min-width: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.cpt_profilepanel:only-child {
  grid-column: 1 / -1;
}

.cpt_profilepanel h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--heading);
}

.cpt_profilepanel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

.cpt_profilepanel p:last-child {
  margin-bottom: 0;
}

.cpt_profilepanel .cpt_traits {
  margin: 0;
}

@media (max-width: 800px) {
  .cpt_profilegrid {
    grid-template-columns: 1fr;
  }
}

#cpt-profile-detail {
  display: block;
}

#cpt-profile-detail[hidden] {
  display: none;
}

.cpt_spectrum {
  display: grid;
  gap: 14px;
  margin: 4px 0 0;
}

.cpt_spectrumlabel {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 1rem;
}

.cpt_spectrumlabel strong {
  color: var(--heading);
}

.cpt_spectrumlabel span {
  color: var(--muted);
  font-weight: 600;
}

.cpt_spectrumtrack {
  height: 10px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.cpt_spectrumfill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
}
