/* Loaded on the front page only. Keep the shared header and site palette intact. */
.pi-home-opening {
  --pi-home-orange: #f58b42;
  --pi-home-white: #f4f2e9;
  background: radial-gradient(ellipse at 82% 30%, #103038 0, transparent 55%), #06131d;
  border-bottom: 1px solid #30464c;
  color: var(--pi-home-white);
  padding: clamp(2.5rem, 5vw, 5rem) 24px 0;
}

.pi-home-opening .pi-home-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1272px;
}

.home .wp-site-blocks > main { margin-block-start: 0; }
.pi-home-intro { min-width: 0; }
.pi-home-opening .pi-home-hero-grid > * { margin-block: 0; }
.pi-home-intro .pi-eyebrow { color: #a9c6cc; font-size: 0.75rem; letter-spacing: 0.08em; line-height: 1.7; margin: 0 0 1.7rem; }
.pi-home-intro h1 { color: var(--pi-home-white); font-size: clamp(3.5rem, 6.5vw, 6.6rem); font-weight: 750; letter-spacing: -0.065em; line-height: 1.02; margin: 0; }
.pi-home-intro h1 span { color: var(--pi-home-orange); display: block; }
.pi-home-intro .pi-home-lead { color: #b7c8ce; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.8; margin: 1.7rem 0 0; max-width: 460px; }
.pi-home-intro .pi-hero-actions { gap: 12px; margin-top: 2rem; }
.pi-home-intro .pi-button { min-height: 50px; padding-inline: 22px; }
.pi-home-intro .pi-button-primary { background: var(--pi-home-orange); color: #06131d; }
.pi-home-intro .pi-button-primary:hover { background: #ffad74; }
.pi-home-intro .pi-button-secondary { border-color: #657b80; color: var(--pi-home-white); }
.pi-home-intro .pi-button-secondary:hover { border-color: var(--pi-home-orange); color: var(--pi-home-orange); }
.pi-home-intro .pi-home-caption { color: #a9c6cc; font-family: var(--pi-font-mono); font-size: 0.72rem; letter-spacing: 0.07em; margin: 1.4rem 0 0; text-transform: uppercase; }

.pi-featured { background: #102a35; border: 1px solid #49636b; border-radius: 12px; box-shadow: 0 24px 60px #0003; min-width: 0; overflow: hidden; }
.pi-featured-heading { align-items: center; border-bottom: 1px solid #49636b; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding: 18px 26px; }
.pi-featured-heading h2 { color: var(--pi-home-white); font-size: 0.84rem; font-weight: 650; margin: 0; }
.pi-featured-heading .pi-featured-label { color: #aac2c9; font-family: var(--pi-font-mono); font-size: 0.59rem; letter-spacing: 0.13em; margin: 0; }
.pi-study-slides { display: grid; touch-action: pan-y; }
.pi-study-slide { min-width: 0; padding: 24px 26px 0; }
.pi-study-slide + .pi-study-slide { border-top: 1px solid #49636b; margin-top: 24px; }
/* All slides retain their grid space, so long titles cannot move the controls. */
.pi-featured.is-enhanced .pi-study-slide { grid-area: 1 / 1; margin-top: 0; border-top: 0; }
.pi-featured.is-enhanced .pi-study-slide[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
.pi-study-meta { align-items: center; color: #b7cbd0; display: flex; flex-wrap: wrap; font-family: var(--pi-font-mono); font-size: 0.68rem; gap: 12px; justify-content: space-between; letter-spacing: 0.08em; text-transform: uppercase; }
.pi-study-access { border: 1px solid #58857d; border-radius: 30px; color: #b5ece0; font-family: var(--pi-font-body); font-size: 0.7rem; font-weight: 650; letter-spacing: 0.02em; padding: 4px 12px; text-transform: none; }
.pi-study-access.is-premium { background: #f58b4214; border-color: #ae754d; color: #ffb981; }
.pi-study-art { align-items: center; display: flex; gap: 16px; justify-content: space-between; min-height: 120px; overflow: hidden; position: relative; }
.pi-study-art::before { border: 1px solid #87b7b325; content: ""; height: 180px; position: absolute; right: 45px; top: -35px; transform: rotate(30deg); width: 110px; }
.pi-study-art > span:first-child { color: #bed7d5; font-family: var(--pi-font-heading); font-size: clamp(3rem, 5.7vw, 5.6rem); font-weight: 750; letter-spacing: -0.065em; line-height: 1.2; overflow-wrap: anywhere; position: relative; }
.pi-study-number { color: #aac2c9; font-family: var(--pi-font-mono); font-size: 0.7rem; position: relative; }
.pi-study-copy { border-top: 1px solid #49636b; padding: 20px 0 24px; }
.pi-study-copy time { color: #a9c6cc; font-family: var(--pi-font-mono); font-size: 0.68rem; }
.pi-study-copy h3 { color: var(--pi-home-white); font-family: var(--pi-font-heading); font-size: clamp(1.3rem, 1.9vw, 1.65rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.25; margin: 12px 0; overflow-wrap: anywhere; }
.pi-study-copy p, .pi-study-empty p { color: #b7c8ce; font-size: 0.87rem; line-height: 1.7; margin: 0 0 16px; }
.pi-study-link { align-items: center; color: var(--pi-home-orange); display: inline-flex; font-size: 0.85rem; font-weight: 650; gap: 16px; min-height: 44px; text-decoration: none; }
.pi-study-link:hover { color: #ffd0ad; text-decoration: underline; }
.pi-study-link > span { font-size: 1.3rem; }
.pi-study-controls { align-items: center; border-top: 1px solid #49636b; display: flex; justify-content: space-between; padding: 10px 18px; }
.pi-study-controls[hidden] { display: none; }
.pi-study-controls button { align-items: center; background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--pi-home-white); cursor: pointer; display: inline-flex; justify-content: center; min-height: 44px; min-width: 44px; padding: 0; }
.pi-study-controls button:hover { background: #23424d; }
.pi-study-arrow { font-size: 1.25rem; }
.pi-study-dots { display: flex; }
.pi-study-dots button > span { background: #89a6b0; border-radius: 4px; height: 5px; width: 5px; }
.pi-study-dots button[aria-current="true"] > span { background: var(--pi-home-orange); width: 22px; }
.pi-home-opening a:focus-visible, .pi-home-opening button:focus-visible { box-shadow: none; outline: 2px solid #f9b888; outline-offset: 3px; }
.pi-study-empty { padding: 36px 26px; }
.pi-study-empty h3 { color: var(--pi-home-white); font-size: 2rem; }

.pi-home-opening .pi-home-pathways { border-top: 1px solid #30464c; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(2.5rem, 5vw, 4rem) auto 0; max-width: 1272px; }
.pi-home-pathway { color: var(--pi-home-white); display: block; padding: 28px 28px 28px 0; text-decoration: none; }
.pi-home-pathway + .pi-home-pathway { border-left: 1px solid #30464c; padding-left: 28px; }
.pi-home-pathway > span:first-child { color: var(--pi-home-orange); display: block; font-family: var(--pi-font-mono); font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; }
.pi-home-pathway strong { display: block; font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; }
.pi-home-pathway > span:last-child { color: #a8bdc5; display: block; font-size: 0.8rem; line-height: 1.6; margin-top: 8px; max-width: 300px; }
.pi-home-pathway:hover strong { color: var(--pi-home-orange); }

@media (max-width: 900px) {
  .pi-home-opening { padding-top: 40px; }
  .pi-home-opening .pi-home-hero-grid { gap: 40px; grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .pi-home-intro h1 { font-size: clamp(3.5rem, 10vw, 5.4rem); }
  .pi-home-intro .pi-home-lead { max-width: 520px; }
  .pi-study-art > span:first-child { font-size: clamp(3.5rem, 12vw, 5.5rem); }
  .pi-study-copy h3 { font-size: 1.6rem; }
  .pi-home-opening .pi-home-pathways { max-width: 640px; }
}

@media (max-width: 600px) {
  .pi-home-opening { padding-inline: 20px; }
  .pi-home-intro .pi-eyebrow { font-size: 0.64rem; letter-spacing: 0.04em; margin-bottom: 1.3rem; }
  .pi-home-intro h1 { font-size: clamp(3.2rem, 12vw, 4.5rem); }
  .pi-home-intro .pi-home-lead { margin-top: 1.3rem; }
  .pi-home-intro .pi-hero-actions { gap: 10px; }
  .pi-home-intro .pi-button { font-size: 0.85rem; padding-inline: 15px; }
  .pi-featured-heading { padding: 16px 20px; }
  .pi-featured-heading .pi-featured-label { font-size: 0.52rem; }
  .pi-study-slide { padding: 20px 20px 0; }
  .pi-study-copy h3 { font-size: 1.35rem; }
  .pi-study-art { min-height: 104px; }
  .pi-study-controls { padding-inline: 10px; }
  .pi-study-dots { flex: 1; justify-content: center; min-width: 0; }
  .pi-study-dots button { flex: 0 1 40px; min-width: 24px; width: 40px; }
  .pi-home-opening .pi-home-pathways { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .pi-home-pathway, .pi-home-pathway + .pi-home-pathway { border-left: 0; padding: 22px 0; }
  .pi-home-pathway + .pi-home-pathway { border-top: 1px solid #30464c; }
  .pi-home-pathway > span:last-child { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pi-home-opening *, .pi-home-opening *::before { transition: none; animation: none; }
  .pi-home-opening .pi-button:hover { transform: none; }
}
