/* =========================================================
   Potter's Messages — Eternal Compass Hero (static, no CDN)
   Hand-rolled subset of Tailwind utilities scoped to .pm-hero
   to avoid collisions with NicePage's global styles.
   ========================================================= */

/* ----- Design tokens ----- */
.pm-hero {
  --pm-surface: #fdf9f6;
  --pm-surface-container-low: #f7f3f0;
  --pm-on-surface: #1c1b1a;
  --pm-on-surface-variant: #504445;
  --pm-outline: #827475;
  --pm-outline-variant: #d4c2c4;
  --pm-primary: #795559;
  --pm-primary-container: #b48a8f;
  --pm-primary-fixed: #ffd9dd;
  --pm-shadow-ambient: 0 16px 32px -12px rgba(44, 62, 80, 0.04);

  --pm-xs: 8px;
  --pm-sm: 16px;
  --pm-md: 24px;
  --pm-lg: 48px;
  --pm-xl: 80px;
  --pm-gutter: 24px;
}

/* ----- Section base ----- */
.pm-hero,
.pm-hero * { box-sizing: border-box; }
.pm-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background: var(--pm-surface);
  color: var(--pm-on-surface);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 32px;
  padding-bottom: 48px;
}
.pm-hero img { max-width: 100%; }
.pm-hero a { color: inherit; text-decoration: none; }

/* Always-visible sticky-header look (override NicePage transparent-on-load) */
.u-header.u-sticky-95bf {
  box-shadow: 5px 5px 20px 0 rgba(0, 0, 0, 0.4) !important;
}

/* ----- Background image + gradient overlay ----- */
.pm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pm-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pm-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(253, 249, 246, 1) 40%, rgba(253, 249, 246, 0.1) 100%);
}

/* ----- Container vessel ----- */
.pm-hero__vessel {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--pm-md) 24px;
}
@media (min-width: 768px) {
  .pm-hero__vessel { padding-left: 48px; padding-right: 48px; }
}

/* ----- Logo block ----- */
.pm-hero__logo {
  margin-bottom: var(--pm-md);
}
.pm-hero__logo img {
  height: 96px; /* h-24 */
  width: auto;
  object-fit: contain;
  display: block;
}

/* ----- Grid layout ----- */
.pm-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pm-gutter);
  align-items: center;
}
@media (min-width: 1024px) {
  .pm-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 64px;
  }
  .pm-hero__col-content { grid-column: span 7 / span 7; }
  .pm-hero__col-cards   { grid-column: span 5 / span 5; }
}
@media (min-width: 1280px) {
  .pm-hero__grid { column-gap: 96px; }
}
@media (min-width: 1280px) {
  .pm-hero__col-content { grid-column: span 6 / span 6; }
  .pm-hero__col-cards   { grid-column: span 6 / span 6; }
}
.pm-hero__col-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ----- Eyebrow ----- */
.pm-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--pm-on-surface-variant);
  margin-bottom: var(--pm-sm);
}
.pm-hero__eyebrow-icon {
  font-size: 18px;
  line-height: 1;
}
.pm-hero__eyebrow-text {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pm-hero__eyebrow-divider {
  width: 1px;
  height: 16px;
  background: var(--pm-outline-variant);
  display: inline-block;
}

/* ----- Headline ----- */
.pm-hero__headline {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--pm-on-surface);
  margin: 0 0 var(--pm-md) 0;
}
@media (max-width: 640px) {
  .pm-hero__headline { font-size: 36px; }
}

/* ----- Lead paragraph ----- */
.pm-hero__lead {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--pm-on-surface-variant);
  max-width: 36rem;
  margin: 0 0 var(--pm-lg) 0;
}

/* ----- CTAs ----- */
.pm-hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--pm-md);
}
@media (min-width: 640px) {
  .pm-hero__ctas { flex-direction: row; align-items: center; }
}
.pm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  border-radius: 12px;
  cursor: pointer;
  transition: all 300ms ease;
  text-decoration: none;
  border: 1px solid transparent;
}
.pm-btn:active { transform: scale(0.95); }
.pm-btn--primary {
  background: var(--pm-primary-container);
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.pm-btn--primary:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.10), 0 10px 10px -5px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}
.pm-btn--ghost {
  background: transparent;
  border-color: var(--pm-outline);
  color: var(--pm-on-surface);
}
.pm-btn--ghost:hover {
  background: var(--pm-surface-container-low);
}
.pm-hero__signin {
  display: inline-block;
  margin-top: var(--pm-md);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--pm-on-surface-variant);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--pm-outline-variant);
}
.pm-hero__signin:hover { color: var(--pm-primary); }

/* ----- Floating cards (right column) ----- */
.pm-hero__cards-wrap {
  display: none;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}
@media (min-width: 1024px) {
  .pm-hero__cards-wrap { display: flex; }
}
.pm-hero__cards {
  position: relative;
  width: 100%;
  max-width: 20rem;
}

.pm-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--pm-md);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--pm-shadow-ambient);
  transition: transform 700ms ease;
}
.pm-card__head {
  display: flex;
  align-items: center;
  gap: var(--pm-sm);
  margin-bottom: var(--pm-sm);
}
.pm-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--pm-primary-fixed);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pm-card__avatar .material-symbols-outlined { color: var(--pm-primary); }
.pm-card__title {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--pm-on-surface);
  margin: 0;
}
.pm-card__sub {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--pm-on-surface-variant);
  margin: 2px 0 0 0;
}
.pm-card__quote {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--pm-on-surface-variant);
  font-style: italic;
  border-left: 2px solid var(--pm-primary-container);
  padding-left: var(--pm-sm);
  margin: 0;
}

/* Top card (Sarah) */
.pm-card--top {
  position: relative;
  z-index: 10;
  transform: rotate(3deg);
}
.pm-card--top:hover { transform: rotate(0deg); }

/* Bottom underlapping card (David — video) */
.pm-card--bottom {
  position: absolute;
  left: -256px;     /* -left-64 */
  bottom: -96px;    /* -bottom-24 */
  width: 18rem;     /* w-72 */
  z-index: 0;
  transform: rotate(-6deg);
}
.pm-card--bottom:hover { transform: rotate(0deg); }

/* Video thumbnail with play button */
.pm-card__video {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(to bottom right, var(--pm-primary-container), var(--pm-primary));
}
.pm-card__video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.20);
}
.pm-card__play {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -2px rgba(0,0,0,0.05);
  transition: transform 300ms ease;
}
.pm-card__video:hover .pm-card__play { transform: scale(1.1); }
.pm-card__play .material-symbols-outlined {
  color: var(--pm-primary);
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  font-size: 28px;
  margin-left: 3px;
}

/* ----- Material Symbols base ----- */
.pm-hero .material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ----- Mobile tweaks ----- */
@media (max-width: 939px) {
  .pm-hero { padding-top: 24px; padding-bottom: 32px; }
}
@media (max-width: 1023px) {
  .pm-hero__bg::after {
    background: linear-gradient(to bottom, rgba(253, 249, 246, 0.95) 30%, rgba(253, 249, 246, 0.6) 100%);
  }
}
