/* PhiKey glory lane — archival shine, no commercial funnel */

.phikey-glory {
  --pk-gold: #e8c547;
  --pk-gold-soft: rgba(232, 197, 71, 0.14);
  --pk-ink: #0a0c09;
  --pk-paper: #f3eee3;
  --pk-muted: #a8b29c;
}

.phikey-glory .archive-main {
  max-width: 52rem;
}

.phikey-hero {
  position: relative;
  margin: -0.5rem -1.35rem 2rem;
  min-height: min(52vh, 420px);
  overflow: hidden;
  border-bottom: 1px solid rgba(232, 197, 71, 0.35);
}

@media (min-width: 901px) {
  .phikey-hero {
    margin-left: 0;
    margin-right: 0;
    border-radius: 16px;
    border: 1px solid rgba(232, 197, 71, 0.28);
  }
}

.phikey-hero__img {
  width: 100%;
  height: min(52vh, 420px);
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.phikey-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 7, 0.15) 0%, rgba(8, 10, 7, 0.55) 45%, rgba(8, 10, 7, 0.92) 100%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(232, 197, 71, 0.22), transparent 60%);
  pointer-events: none;
}

.phikey-hero__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1.35rem 1.75rem;
  z-index: 1;
}

.phikey-hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(232, 197, 71, 0.45);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pk-gold);
  background: rgba(10, 12, 9, 0.55);
}

.phikey-hero__copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  color: #fff8e7;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.phikey-hero__copy h1::after {
  display: none;
}

.phikey-hero__tag {
  margin: 0.65rem 0 0;
  max-width: 36rem;
  color: #e6dfcf;
  font-size: 1.05rem;
  line-height: 1.55;
}

.phikey-shine {
  display: grid;
  gap: 0.85rem;
  margin: 1.75rem 0 2rem;
}

@media (min-width: 700px) {
  .phikey-shine {
    grid-template-columns: repeat(3, 1fr);
  }
}

.phikey-shine article {
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 197, 71, 0.28);
  background:
    linear-gradient(160deg, rgba(232, 197, 71, 0.16) 0%, transparent 48%),
    rgba(10, 13, 10, 0.78);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.phikey-shine h3 {
  margin: 0 0 0.45rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  color: #fff1c9;
}

.phikey-shine p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--pk-muted);
}

.phikey-formula {
  margin: 1.5rem 0;
  padding: 1.2rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 197, 71, 0.35);
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(232, 197, 71, 0.18), transparent 55%),
    rgba(8, 10, 8, 0.8);
}

.phikey-formula code {
  display: block;
  margin: 0.35rem 0;
  font-size: 1.05rem;
  color: #ffe7a0;
  letter-spacing: 0.01em;
}

.phikey-split {
  display: grid;
  gap: 1.25rem;
  margin: 2.25rem 0;
  align-items: center;
}

@media (min-width: 760px) {
  .phikey-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.75rem;
  }

  .phikey-split--flip .phikey-split__fig {
    order: -1;
  }
}

.phikey-split__fig {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(232, 197, 71, 0.22);
  background: #0c0f0c;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.phikey-split__fig img {
  width: 100%;
  aspect-ratio: 1200 / 720;
  object-fit: cover;
  display: block;
}

.phikey-split__fig figcaption {
  padding: 0.65rem 0.9rem;
  font-size: 0.8rem;
  color: #8f997f;
}

.phikey-living {
  margin: 2.5rem 0;
  padding: 1.5rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(232, 197, 71, 0.55);
  background:
    linear-gradient(135deg, rgba(232, 197, 71, 0.2) 0%, rgba(20, 24, 16, 0.85) 40%, rgba(10, 14, 12, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(232, 197, 71, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.phikey-living h2 {
  margin-top: 0;
  color: #fff4cc;
}

.phikey-living .stack {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
}

@media (min-width: 640px) {
  .phikey-living .stack {
    grid-template-columns: 1fr 1fr;
  }
}

.phikey-living .stack div {
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: rgba(6, 8, 6, 0.45);
  border: 1px solid rgba(232, 197, 71, 0.18);
}

.phikey-living .stack strong {
  display: block;
  color: #ffe7a0;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.phikey-living .stack span {
  font-size: 0.88rem;
  color: var(--pk-muted);
  line-height: 1.45;
}

.phikey-living .cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.15rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0d56a, #c9a227);
  color: #1a1406 !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}

.phikey-living .cta:hover {
  filter: brightness(1.05);
}

.phikey-gallery {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
}

@media (min-width: 620px) {
  .phikey-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .phikey-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.phikey-gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(232, 197, 71, 0.18);
  background: rgba(8, 10, 8, 0.7);
}

.phikey-gallery img {
  width: 100%;
  aspect-ratio: 1200 / 720;
  object-fit: cover;
  display: block;
}

.phikey-gallery figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  color: #8f997f;
}

.phikey-home-band {
  margin: 2rem 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(232, 197, 71, 0.4);
  background: #0c0f0c;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.phikey-home-band a.phikey-home-band__link {
  display: grid;
  text-decoration: none !important;
  color: inherit;
}

@media (min-width: 760px) {
  .phikey-home-band a.phikey-home-band__link {
    grid-template-columns: 1.15fr 1fr;
  }
}

.phikey-home-band img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.phikey-home-band__body {
  padding: 1.35rem 1.3rem 1.5rem;
  background:
    linear-gradient(160deg, rgba(232, 197, 71, 0.16), transparent 50%),
    rgba(10, 12, 10, 0.96);
}

.phikey-home-band__body h2 {
  margin: 0 0 0.5rem;
  color: #fff1c9;
}

.phikey-home-band__body p {
  margin: 0;
  color: var(--pk-muted);
}

.phikey-home-band__body .more {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--pk-gold) !important;
  font-weight: 600;
}
