/* Local Hero profile header on the package page (index.html?inspirational=true). Scoped to .hp-*. */
.hp-hero {
    --ip-ocean: #0F3D4C;
    --ip-terracotta: #C4532F;
    --ip-terracotta-ink: #A8432A;
    --ip-red: #A3261A;
    --ip-sun: #F2B33D;
    --ip-sand: #F5EEE3;
    --ip-ink: #1D2A33;
    --ip-muted: #5B6770;
    --ip-line: #E4DCCD;
    --ease-out: cubic-bezier(.2, .8, .2, 1);

    max-width: 1180px;
    margin: 8px auto 36px;
    padding: 24px 32px 40px;
    background: linear-gradient(180deg, var(--ip-sand) 0%, #fff 100%);
    border-radius: 28px;
    overflow-x: clip; /* the stamp starts its entrance at 1.6x */
    font-family: "DM Sans", -apple-system, "Segoe UI", sans-serif;
    color: var(--ip-ink);
}

.hp-back {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
    font-size: 14px; font-weight: 700; color: var(--ip-ocean); text-decoration: none;
}
.hp-back:hover, .hp-back:focus { color: var(--ip-terracotta-ink); text-decoration: none; }
.hp-back span { transition: transform .2s var(--ease-out); }
.hp-back:hover span { transform: translateX(-4px); }

.hp-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }

/* ---------- photos ---------- */
.hp-media { position: relative; }
.hp-photos {
    position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
    background: #e9e1d3; box-shadow: 0 18px 40px rgba(15, 61, 76, .18);
}
.hp-photos img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 1.1s ease;
}
.hp-photos img.is-active { opacity: 1; animation: hp-kenburns 7s ease-out both; }

@keyframes hp-kenburns {
    0% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.hp-dots { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 2px; }
.hp-dot {
    width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.hp-dot::before {
    content: ""; width: 9px; height: 9px; border-radius: 50%;
    background: rgba(255, 255, 255, .6); box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: background .2s, transform .2s;
}
.hp-dot[aria-pressed="true"]::before { background: #fff; transform: scale(1.3); }

.hp-stamp {
    position: absolute; right: -30px; bottom: -30px;
    filter: drop-shadow(0 6px 12px rgba(15, 61, 76, .25));
    animation: ip-stamp-in .8s var(--ease-out) .5s both;
}
@keyframes ip-stamp-in {
    0% { opacity: 0; transform: scale(1.6) rotate(-20deg); }
    60% { opacity: 1; transform: scale(.94) rotate(-6deg); }
    100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}

/* ---------- info ---------- */
.hp-info > * { animation: hp-rise .6s var(--ease-out) both; }
.hp-info > :nth-child(1) { animation-delay: .05s; }
.hp-info > :nth-child(2) { animation-delay: .12s; }
.hp-info > :nth-child(3) { animation-delay: .19s; }
.hp-info > :nth-child(4) { animation-delay: .26s; }
.hp-info > :nth-child(5) { animation-delay: .33s; }
.hp-info > :nth-child(n+6) { animation-delay: .4s; }
@keyframes hp-rise {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hp-kicker { margin: 8px 0 6px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--ip-terracotta-ink); }
.hp-hero .hp-name { margin: 0; font-family: "Fraunces", Georgia, serif; font-size: 46px; line-height: 1.08; font-weight: 700; color: var(--ip-ocean); }
.hp-meta { margin: 8px 0 0; font-size: 16px; color: var(--ip-muted); }

.hp-hero .hp-quote {
    position: relative; margin: 22px 0 0; padding: 0 0 0 36px; border: 0;
    font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 500;
    font-size: 21px; line-height: 1.4; color: var(--ip-ink);
}
.hp-hero .hp-quote::before {
    content: "“"; position: absolute; left: 0; top: -12px;
    font-size: 56px; line-height: 1; color: var(--ip-sun); font-style: normal;
}

.hp-chips { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hp-chip { font-size: 13px; font-weight: 700; }
.hp-chip-count, .hp-chip a {
    display: inline-flex; align-items: center; min-height: 32px; padding: 5px 13px; border-radius: 999px;
}
.hp-chip-count { background: var(--ip-ocean); color: var(--ip-sand); }
.hp-chip a { background: #EEF5F4; color: var(--ip-ocean); text-decoration: none; transition: background .2s; }
.hp-chip a:hover, .hp-chip a:focus { background: #DCEBE9; color: var(--ip-ocean); text-decoration: none; }

.hp-btn {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
    padding: 13px 24px; border-radius: 999px;
    background: var(--ip-terracotta-ink); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none;
    box-shadow: 0 8px 20px rgba(168, 67, 42, .28);
    transition: background .2s, box-shadow .2s, translate .2s var(--ease-out);
}
.hp-btn:hover, .hp-btn:focus { background: #8F3822; color: #fff; text-decoration: none; translate: 0 -1px; box-shadow: 0 12px 24px rgba(168, 67, 42, .32); }
.hp-btn span { transition: transform .2s var(--ease-out); }
.hp-profile-btn {
    display: inline-flex; align-items: center; gap: 10px; margin: 24px 0 0 10px;
    padding: 12px 22px; border-radius: 999px; border: 2px solid var(--ip-ocean);
    background: var(--ip-ocean); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 61, 76, .25);
    transition: box-shadow .2s, translate .2s var(--ease-out);
}
/* same colours on hover, only the small lift of "See the map" */
.hp-profile-btn:hover, .hp-profile-btn:focus { background: var(--ip-ocean); color: #fff; text-decoration: none; translate: 0 -1px; box-shadow: 0 12px 24px rgba(15, 61, 76, .3); }
.hp-profile-btn:focus-visible { outline: 3px solid var(--ip-sun); outline-offset: 2px; }
@media (max-width: 480px) { .hp-profile-btn { margin: 12px 0 0; } } /* under "See the map", same left edge */
.hp-btn:hover span { transform: translateY(3px); }

.hp-story {
    margin-top: 28px; font-size: 16px; line-height: 1.65; color: var(--ip-ink);
    transition: max-height .5s var(--ease-out);
}
.hp-story p { margin: 0 0 12px; }
.hp-story.is-clamped {
    max-height: 10.5em; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
    mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.hp-more {
    margin-top: 6px; padding: 6px 0; border: 0; background: none; cursor: pointer;
    font: 700 15px "DM Sans", sans-serif; color: var(--ip-terracotta-ink);
    text-decoration: underline; text-underline-offset: 4px;
}

.hp-back:focus-visible, .hp-btn:focus-visible, .hp-more:focus-visible, .hp-dot:focus-visible, .hp-chip a:focus-visible, .hp-sticky:focus-visible {
    outline: 3px solid var(--ip-sun); outline-offset: 3px;
}

/* ---------- sticky call to action ---------- */
.hp-sticky {
    position: fixed; left: 50%; bottom: 20px; z-index: 1030;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 26px; border-radius: 999px;
    background: var(--ip-ocean); color: var(--ip-sand); font: 700 15px "DM Sans", sans-serif; text-decoration: none;
    box-shadow: 0 12px 30px rgba(15, 61, 76, .35);
    transform: translate(-50%, 160%); opacity: 0; pointer-events: none;
    transition: transform .35s var(--ease-out), opacity .35s;
}
.hp-sticky.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.hp-sticky:hover, .hp-sticky:focus { color: #fff; text-decoration: none; background: #0A2A35; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
    .hp-hero { padding: 16px 16px 28px; border-radius: 0; margin-top: 0; }
    .hp-grid { grid-template-columns: 1fr; gap: 36px; }
    .hp-photos { aspect-ratio: 4 / 3; }
    .hp-stamp { width: 84px; height: 84px; right: 10px; bottom: -34px; }
    .hp-hero .hp-name { font-size: 34px; }
    .hp-hero .hp-quote { font-size: 18px; }
    .hp-sticky { left: 16px; right: 16px; justify-content: center; transform: translateY(160%); }
    .hp-sticky.is-visible { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hp-info > *, .hp-photos img.is-active, .hp-stamp { animation: none !important; }
    .hp-stamp { transform: rotate(-8deg); }
    .hp-photos img, .hp-story, .hp-sticky, .hp-btn, .hp-btn span, .hp-back span { transition: none !important; }
}

/* Social profile of the hero (Instagram) */
.hp-social {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 14px; padding: 6px 16px 6px 6px;
    border: 1px solid var(--ip-line); border-radius: 999px; background: #fff;
    text-decoration: none; color: var(--ip-ink);
    transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s;
}
.hp-social:hover, .hp-social:focus-visible { text-decoration: none; color: var(--ip-ink); border-color: #dd2a7b; box-shadow: 0 6px 18px rgba(221, 42, 123, .18); transform: translateY(-1px); }
.hp-social-icon {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 18px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.hp-social-text { display: flex; flex-direction: column; line-height: 1.15; }
.hp-social-label { font-size: 12px; color: var(--ip-muted); }
.hp-social-handle { font-weight: 700; font-size: 15px; }
