.clph {
  --clph-ink: #201c18;
  --clph-muted: #756c62;
  --clph-line: #ddd2c4;
  --clph-cream: #f7f0e5;
  --clph-panel: #fffdfa;
  width: min(100%, 1120px);
  margin: 0 auto;
  color: var(--clph-ink);
  font-family: inherit;
  container-type: inline-size;
}

.clph *, .clph *::before, .clph *::after { box-sizing: border-box; }

.clph-intro {
  margin: 0 0 28px;
  max-width: 760px;
}

.clph-card__eyebrow {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .12em;
  font-weight: 800;
  color: #806d5a;
}

.clph-intro__title {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 750;
}

.clph-intro__copy {
  margin: 0;
  max-width: 680px;
  color: var(--clph-muted);
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.75;
}

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

.clph-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--clph-line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--clph-panel);
  color: var(--clph-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 12px 32px rgba(49, 40, 31, .07);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.clph-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(49, 40, 31, .11);
  border-color: #cdbca9;
}

.clph-card:focus-visible {
  outline: 3px solid rgba(96, 73, 53, .28);
  outline-offset: 4px;
}

.clph-visual {
  position: relative;
  height: 196px;
  overflow: hidden;
  border-bottom: 1px solid rgba(74, 58, 45, .12);
  isolation: isolate;
}

/* RADIO — analog dial + waveform, no external image dependency */
.clph-visual--radio {
  background:
    radial-gradient(circle at 24% 28%, rgba(255,255,255,.72), transparent 24%),
    linear-gradient(135deg, #c4a987 0%, #8d6c4e 48%, #5d4636 100%);
}

.clph-radio__dial {
  position: absolute;
  left: 28px;
  top: 30px;
  width: 92px;
  height: 92px;
  border: 3px solid rgba(255,255,255,.72);
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgba(34,24,18,.12), 0 8px 24px rgba(32,22,16,.18);
}

.clph-radio__dial::before,
.clph-radio__dial::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 50%;
}

.clph-radio__dial::after { inset: 28px; }

.clph-radio__dial span {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 2px;
  height: 33px;
  background: #fff9ef;
  transform-origin: 50% 36px;
  transform: rotate(38deg);
}

.clph-radio__scale {
  position: absolute;
  left: 145px;
  right: 28px;
  top: 44px;
  height: 54px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.5);
}

.clph-radio__scale i {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,.72);
}

.clph-radio__scale i:nth-child(2n) { height: 21px; }
.clph-radio__scale i:nth-child(3n) { height: 30px; }

.clph-radio__waves {
  position: absolute;
  left: 145px;
  right: 32px;
  bottom: 36px;
  display: flex;
  gap: 6px;
  align-items: center;
  height: 44px;
}

.clph-radio__waves b {
  display: block;
  flex: 1;
  min-width: 3px;
  border-radius: 999px;
  background: rgba(255,248,238,.78);
  height: 18px;
}
.clph-radio__waves b:nth-child(2) { height: 34px; }
.clph-radio__waves b:nth-child(3) { height: 25px; }
.clph-radio__waves b:nth-child(4) { height: 40px; }
.clph-radio__waves b:nth-child(5) { height: 22px; }
.clph-radio__waves b:nth-child(6) { height: 31px; }

/* TV — CRT language without broadcaster branding */
.clph-visual--tv {
  background:
    radial-gradient(circle at 72% 28%, rgba(255,255,255,.18), transparent 24%),
    linear-gradient(150deg, #6f6b66 0%, #373531 55%, #232220 100%);
}

.clph-tv__screen {
  position: absolute;
  left: 27px;
  right: 76px;
  top: 24px;
  bottom: 28px;
  border: 8px solid #1d1c1a;
  border-radius: 18px 18px 24px 24px / 14px 14px 28px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(231,224,208,.44), rgba(132,130,122,.16) 43%, rgba(20,20,20,.22) 72%),
    linear-gradient(135deg, #9a978f, #484844);
  box-shadow: inset 0 0 28px rgba(0,0,0,.42), 0 14px 28px rgba(0,0,0,.24);
}

.clph-tv__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.06) 0 1px, rgba(0,0,0,.08) 1px 3px);
  mix-blend-mode: soft-light;
}

.clph-tv__glow {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 26%;
  height: 46%;
  border-radius: 50%;
  background: rgba(243,237,220,.16);
  filter: blur(10px);
}

.clph-tv__scan {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 49%;
  height: 1px;
  background: rgba(255,255,255,.42);
}

.clph-tv__controls {
  position: absolute;
  right: 25px;
  top: 46px;
  display: grid;
  gap: 18px;
}

.clph-tv__controls i {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.58);
  box-shadow: inset 0 0 0 5px rgba(0,0,0,.2);
}

/* GAME — two public scene cards meeting in the middle; no extra image or JS dependency */
.clph-visual--game {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.3), transparent 24%),
    linear-gradient(145deg, #d6b169 0%, #9a6c32 54%, #604426 100%);
}

.clph-game__card {
  position: absolute;
  top: 42px;
  width: 34%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.12)),
    linear-gradient(145deg, #c9b08d, #6f5841);
  box-shadow: 0 14px 28px rgba(43,29,18,.22);
}

.clph-game__card::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 14%;
  height: 30%;
  border-radius: 50% 50% 10px 10px;
  background: rgba(255,247,229,.22);
}

.clph-game__card span {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 18%;
  height: 2px;
  background: rgba(255,255,255,.46);
  box-shadow: 0 12px 0 rgba(255,255,255,.22), 0 24px 0 rgba(255,255,255,.15);
}

.clph-game__card--left {
  left: 11%;
  transform: rotate(-3deg);
}

.clph-game__card--right {
  right: 11%;
  transform: rotate(3deg);
}

.clph-game__link {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 42px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}

.clph-game__link i {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,250,240,.74);
}

.clph-game__link b {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.68);
  border-radius: 50%;
  background: rgba(52,35,22,.78);
  color: #fffaf0;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(42,28,18,.2);
}

/* ORIGINAL — stacked frames, intentionally abstract until production thumbnails exist */
.clph-visual--original {
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.12), transparent 22%),
    linear-gradient(145deg, #3d3028 0%, #241e1a 52%, #171513 100%);
}

.clph-original__frame {
  position: absolute;
  width: 58%;
  aspect-ratio: 16/9;
  left: 50%;
  top: 50%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.03));
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
}

.clph-original__frame--back { transform: translate(-60%, -58%) rotate(-8deg); opacity: .48; }
.clph-original__frame--mid { transform: translate(-48%, -48%) rotate(5deg); opacity: .62; }
.clph-original__frame--front {
  display: grid;
  place-items: center;
  transform: translate(-52%, -50%);
  background: linear-gradient(140deg, #5d493a, #2b2420);
}

.clph-original__play {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(255,250,242,.94);
  color: #2c241f;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.clph-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 20px;
  min-height: 232px;
}

.clph-card__title {
  margin: 6px 0 10px;
  font-size: clamp(23px, 2.3vw, 29px);
  line-height: 1.13;
  letter-spacing: -.035em;
  font-weight: 750;
}

/* Long owned-media label: keep the canonical name readable without clipping. */
.clph-card--original .clph-card__title {
  font-size: clamp(20px, 1.9vw, 23px);
  line-height: 1.12;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
  word-break: normal;
}

.clph-card__description {
  margin: 0;
  color: #514b45;
  font-size: 14px;
  line-height: 1.68;
}

.clph-card__cta {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #ece3d8;
  color: #2b2622;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.clph-card__cta > span:first-child {
  min-width: 0;
  white-space: nowrap;
}

.clph-card__cta > span:last-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #241f1b;
  color: #fff;
  flex: 0 0 auto;
}

.clph-boundary {
  margin: 20px 2px 0;
  color: #8a8077;
  font-size: 12px;
  line-height: 1.65;
}

/* WordPress themes can constrain the content column even on a wide viewport.
   Container queries keep the cards readable based on the actual Hub width. */
@container (max-width: 760px) {
  .clph-grid { gap: 14px; }
  .clph-card__body { padding: 18px; }
  .clph-card__title { font-size: 23px; }
  .clph-card--original .clph-card__title { font-size: 20px; }
}

@container (max-width: 620px) {
  .clph-grid { grid-template-columns: 1fr; }
  .clph-card { display: grid; grid-template-columns: 42% 58%; min-height: 208px; }
  .clph-visual { height: auto; min-height: 208px; border-bottom: 0; border-right: 1px solid rgba(74,58,45,.12); }
  .clph-card__body { min-height: 208px; padding: 20px; }
  .clph-card--original .clph-card__title { font-size: 22px; }
  .clph-radio__dial { left: 22px; top: 34px; width: 74px; height: 74px; }
  .clph-radio__scale, .clph-radio__waves { display: none; }
  .clph-tv__screen { right: 28px; }
  .clph-tv__controls { display: none; }
  .clph-game__card { top: 58px; width: 36%; }
  .clph-game__card--left { left: 8%; }
  .clph-game__card--right { right: 8%; }
  .clph-game__link { width: 58px; }
  .clph-original__frame { width: 70%; }
}

@container (max-width: 440px) {
  .clph-card { display: flex; min-height: 0; }
  .clph-visual { height: 168px; min-height: 0; border-right: 0; border-bottom: 1px solid rgba(74,58,45,.12); }
  .clph-card__body { min-height: 0; }
}

@media (max-width: 900px) {
  .clph-grid { gap: 14px; }
  .clph-visual { height: 172px; }
  .clph-card__body { min-height: 220px; padding: 19px; }
}

@media (max-width: 760px) {
  .clph-intro { margin-bottom: 22px; }
  .clph-grid { grid-template-columns: 1fr; }
  .clph-card { display: grid; grid-template-columns: 42% 58%; min-height: 208px; }
  .clph-visual { height: auto; min-height: 208px; border-bottom: 0; border-right: 1px solid rgba(74,58,45,.12); }
  .clph-card__body { min-height: 208px; padding: 20px; }
  .clph-radio__dial { left: 22px; top: 34px; width: 74px; height: 74px; }
  .clph-radio__scale, .clph-radio__waves { display: none; }
  .clph-tv__screen { right: 28px; }
  .clph-tv__controls { display: none; }
  .clph-game__card { top: 58px; width: 36%; }
  .clph-game__card--left { left: 8%; }
  .clph-game__card--right { right: 8%; }
  .clph-game__link { width: 58px; }
  .clph-original__frame { width: 70%; }
}

@media (max-width: 520px) {
  .clph-card { display: flex; min-height: 0; }
  .clph-visual { height: 168px; min-height: 0; border-right: 0; border-bottom: 1px solid rgba(74,58,45,.12); }
  .clph-card__body { min-height: 0; }
  .clph-radio__dial { width: 82px; height: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .clph-card { transition: none; }
}
