/* SRH-inspired homepage styles */

/* title */
.title {
  font-size: clamp(1.8rem, 5vw + 1rem, 3.5rem);
  font-weight: 800;
  line-height: 1.05em !important;
  font-family: "Montserrat";
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* subtitle + Learn More About Me */
.subtitle {
  font-family: "Montserrat";
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* heading, subtitle, and blurb */
.entity-contents {
  text-align: left !important;
  padding: 0 0 0 0;
}

/* blurb */
.about-contents {
  padding: 0 !important;
  font-family: "Poppins";
  font-size: 1.05em;
  line-height: 1.7;
}

/* social links: block of links */
.about-entity .about-links {
  justify-content: flex-start !important;
  column-gap: 0.15em !important;
  font-size: 1.4em !important;
}

/* social links: individual links */
.about-entity .about-link {
  padding: 0.25em 0.25em !important;
  border: none !important;
  transition: transform 0.2s ease;
}

.about-entity .about-link:hover {
  transform: scale(1.2);
}

/* Learn More About Me */
/* Learn More About Me link directly */
a.about-links.subtitle {
  font-size: 1.1em !important;
  font-family: "Montserrat";
  font-weight: 700;
  letter-spacing: 0.1em;
  display: inline-block;
  background: none;
  padding: 0;
  color: #FF822E !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

a.about-links.subtitle:hover {
  transform: none;
  box-shadow: none;
  text-decoration: none !important;
  border-bottom: none !important;
}

/* two-column layout: text left, video right */
.about-entity {
  box-shadow: none !important;
  border: none !important;
  padding: 3em 0 !important;
  margin: 0 !important;
  overflow: visible;
}

.entity-contents {
  position: relative;
  min-height: 450px;
  max-width: 45%;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 120%;
  transform: translateY(-50%);
  width: 100%;
}

.hero-video video {
  width: 100%;
  border-radius: 12px;
  transition: filter 0.3s ease;
}

body.quarto-dark .hero-video {
  background-color: #1A1A2E !important;
}

body.quarto-dark .hero-video video {
  background-color: transparent !important;
  filter: invert(1) hue-rotate(180deg) brightness(0.8) contrast(1.2);
  mix-blend-mode: screen;
}

/* keep text from overlapping the video */
.about-contents {
  max-width: 100%;
}

/* Desktop overrides for iPad (≤1024px) */
@media screen and (max-width: 1024px) {
  .entity-contents {
    max-width: 100%;
    min-height: auto;
  }
  
  .hero-video {
    position: static;
    transform: none;
    width: 60%; /* Tame the width on iPad */
    margin: 2em auto 0 auto;
  }

  .about-entity { padding: 2em 0 !important; }
}

@media screen and (max-width: 768px) {
  .entity-contents { text-align: center !important; }
  .subtitle { text-align: center !important; }
  
  .about-entity .about-links { justify-content: center !important; }
  .about-links.subtitle { justify-content: center !important; }
  .about-image { padding: 0 2em !important; }
  .hero-video { margin-top: 1.5em; width: 100%; }
}

@media screen and (max-width: 576px) {
  .subtitle { font-size: 0.8rem; letter-spacing: 0.1em; }
  .about-contents { padding: 0 !important; font-size: 0.95em; line-height: 1.6; }
  .about-links.subtitle { font-size: 0.9em !important; }
  .about-image { padding: 0 1em !important; }
  .hero-video { margin-top: 1em; }
}

/* ============================================================
   index.css — homepage styles
   Light theme via :root, dark theme via body.quarto-dark
   ============================================================ */

:root {
  --pk-accent: #d85a30;
  --pk-accent-hover: #b94a26;
  --pk-accent-deep: #993c1d;
  --pk-accent-soft: #faece7;
  --pk-text: #1f2430;
  --pk-text-2: #5b606c;
  --pk-card: #f6f6f7;
  --pk-card-border: #e7e7ea;
  --pk-banner-a-bg: #e8eef7;  --pk-banner-a-fg: #3d6396;
  --pk-banner-b-bg: #e7f2e9;  --pk-banner-b-fg: #3f7a4d;
  --pk-banner-c-bg: #f7efdd;  --pk-banner-c-fg: #9a7820;
}

body.quarto-dark {
  --pk-accent: #e8722e;
  --pk-accent-hover: #f0997b;
  --pk-accent-deep: #fac775;
  --pk-accent-soft: #3a2317;
  --pk-text: #ecedef;
  --pk-text-2: #a3a7b1;
  --pk-card: #1c1e24;
  --pk-card-border: #2a2d35;
  --pk-banner-a-bg: #1c2940;  --pk-banner-a-fg: #7da3d8;
  --pk-banner-b-bg: #1a2e1f;  --pk-banner-b-fg: #7cc28b;
  --pk-banner-c-bg: #332a12;  --pk-banner-c-fg: #d8b558;
}

/* ---------- shared ---------- */
.pk-hero, .pk-stats, .pk-featured, .pk-toolkit, .pk-band {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.pk-btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65em 1.25em;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pk-btn-primary { background: var(--pk-accent); color: #fff !important; }
.pk-btn-primary:hover { background: var(--pk-accent-hover); }
.pk-btn-ghost { border: 1.5px solid var(--pk-card-border); color: var(--pk-text) !important; }
.pk-btn-ghost:hover { border-color: var(--pk-accent); color: var(--pk-accent) !important; }

.pk-link { color: var(--pk-accent); font-weight: 600; text-decoration: none; font-size: 0.92rem; }
.pk-link:hover { color: var(--pk-accent-hover); }

/* ---------- hero ---------- */
.pk-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 2.5rem;
}
.pk-eyebrow {
  color: var(--pk-accent-deep);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.pk-role {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.pk-headline {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--pk-text);
  margin: 0 0 1rem;
  border: none;
  padding: 0;
}
.pk-proof {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--pk-text-2);
  margin: 0 0 1.5rem;
  max-width: 34em;
}
.pk-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pk-social { margin-top: 1.25rem; display: flex; gap: 1rem; }
.pk-social a { color: var(--pk-text-2); font-size: 1.25rem; text-decoration: none; }
.pk-social a:hover { color: var(--pk-accent); }

.pk-hero-viz iframe {
  width: 100%;
  height: 540px;
  border: none;
  border-radius: 14px;
  display: block;
}

/* ---------- stat strip ---------- */
.pk-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}
.pk-stat {
  background: var(--pk-card);
  border: 1px solid var(--pk-card-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.pk-stat-num { font-size: 1.6rem; font-weight: 700; color: var(--pk-text); margin: 0; }
.pk-stat-label { font-size: 0.85rem; color: var(--pk-text-2); margin: 0.2rem 0 0; line-height: 1.45; }

/* ---------- featured work ---------- */
.pk-featured { border-top: 1px solid var(--pk-card-border); padding: 2.5rem 0 1rem; }
.pk-featured-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.pk-featured-head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pk-text);
  margin: 0;
  border: none;
  padding: 0;
}
.pk-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.pk-card {
  display: block;
  border: 1px solid var(--pk-card-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.pk-card:hover {
  transform: translateY(-3px);
  border-color: var(--pk-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.pk-card-banner {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pk-banner-a { background: var(--pk-banner-a-bg); color: var(--pk-banner-a-fg); }
.pk-banner-b { background: var(--pk-banner-b-bg); color: var(--pk-banner-b-fg); }
.pk-banner-c { background: var(--pk-banner-c-bg); color: var(--pk-banner-c-fg); }
.pk-card-img { width: 100%; height: 120px; object-fit: cover; display: block; }
.pk-card-body { padding: 1rem 1.1rem 1.1rem; }
.pk-card-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--pk-text);
  margin: 0 0 0.35rem;
  border: none;
  padding: 0;
}
.pk-card-body p { font-size: 0.88rem; color: var(--pk-text-2); line-height: 1.5; margin: 0 0 0.7rem; }
.pk-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.pk-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--pk-accent-soft);
  color: var(--pk-accent-deep);
  padding: 0.2em 0.7em;
  border-radius: 999px;
}
.pk-card-links { color: var(--pk-accent) !important; font-weight: 600; font-size: 0.85rem !important; margin: 0 !important; }

/* ---------- toolkit ---------- */
.pk-toolkit { border-top: 1px solid var(--pk-card-border); padding: 2rem 0 2.5rem; margin-top: 2.5rem; }
.pk-toolkit-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pk-text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}
.pk-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pk-chips span {
  font-size: 0.85rem;
  color: var(--pk-text);
  border: 1px solid var(--pk-card-border);
  padding: 0.3em 0.95em;
  border-radius: 999px;
}

/* ---------- closing band ---------- */
.pk-band {
  background: var(--pk-card);
  border: 1px solid var(--pk-card-border);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}
.pk-band-title { font-size: 1.05rem; font-weight: 700; color: var(--pk-text); margin: 0; }
.pk-band-sub { font-size: 0.87rem; color: var(--pk-text-2); margin: 0.2rem 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pk-hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  .pk-hero-viz iframe { height: 440px; }
  .pk-stats, .pk-cards { grid-template-columns: 1fr; }
  .pk-band { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .pk-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
}