/* =====================================================================
   PE Group of Institutions: header, mobile menu and home banner
   Every class is prefixed "pe-" so it will not clash with Bootstrap
   or any existing theme CSS.
   ===================================================================== */

:root {
    /* Palette taken from the college crest */
    --pe-forest: #17392c;
    --pe-forest-2: #21493a;
    --pe-green: #2f6b4f;
    --pe-sage: #7c8c6b;
    --pe-sage-100: #e5ebe0;
    --pe-sage-50: #f3f6f0;
    --pe-blush: #eda792;
    --pe-mustard: #d9a036;
    --pe-mustard-light: #e6b457;
    --pe-mustard-tint: #fbf1dc;
    --pe-mustard-deep: #9a6a12;
    --pe-ink: #1c2521;
    --pe-muted: #5b675f;
    --pe-line: #e2e8df;

    --pe-font-ui: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --pe-font-display: "Young Serif", Georgia, "Times New Roman", serif;

    --pe-container: 1360px;
    --pe-gutter: clamp(16px, 4vw, 32px);
    --pe-header-h: 84px;
    --pe-header-h-scrolled: 70px;
    --pe-ease: cubic-bezier(.22, .7, .2, 1);
    --pe-shadow: 0 28px 50px -28px rgba(23, 57, 44, .42), 0 2px 6px rgba(23, 57, 44, .06);
}

/* ---------- Shared ---------- */
.pe-topbar, .pe-header, .pe-drawer, .pe-hero, .pe-quick {
    font-family: var(--pe-font-ui);
    -webkit-font-smoothing: antialiased;
}
.pe-topbar *, .pe-header *, .pe-drawer *, .pe-hero *, .pe-quick *,
.pe-topbar *::before, .pe-header *::before, .pe-drawer *::before, .pe-hero *::before, .pe-quick *::before {
    box-sizing: border-box;
}
.pe-container {
    width: 100%;
    max-width: var(--pe-container);
    margin-inline: auto;
    padding-inline: var(--pe-gutter);
}
.pe-topbar ul, .pe-header ul, .pe-drawer ul, .pe-quick ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
html.pe-lock, html.pe-lock body { overflow: hidden; }

:where(.pe-header, .pe-drawer, .pe-quick) :focus-visible {
    outline: 2px solid var(--pe-green);
    outline-offset: 3px;
    border-radius: 8px;
}
:where(.pe-topbar, .pe-hero) :focus-visible {
    outline: 2px solid var(--pe-mustard);
    outline-offset: 3px;
    border-radius: 8px;
}

.pe-skip {
    position: absolute;
    left: 12px;
    top: -80px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--pe-forest);
    color: #fff;
    font-family: var(--pe-font-ui);
    font-weight: 600;
    text-decoration: none;
}
.pe-skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.pe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--pe-ease), box-shadow .2s;
}
.pe-btn--apply {
    background: var(--pe-mustard);
    color: var(--pe-forest);
    box-shadow: 0 10px 22px -12px rgba(154, 106, 18, .9);
}
.pe-btn--apply:hover {
    background: var(--pe-mustard-light);
    color: var(--pe-forest);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -12px rgba(154, 106, 18, .95);
}
.pe-btn--apply:active { transform: translateY(0); }
.pe-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .38);
    background: transparent;
}
.pe-btn--ghost:hover {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
    color: #fff;
}
.pe-btn--block { width: 100%; }

/* ===================================================================== Top bar ===================================================================== */
.pe-topbar {
    background: var(--pe-forest);
    color: #d5e0cf;
    font-size: .8125rem;
}
.pe-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
}
.pe-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s, background-color .2s;
}
.pe-topbar a:hover { color: #fff; }
.pe-topbar__contact {
    display: flex;
    align-items: center;
    gap: 22px;
}
.pe-topbar__contact i { color: var(--pe-mustard); }
.pe-topbar__notice {
    color: #fff !important;
    font-weight: 500;
}
.pe-topbar__notice:hover { text-decoration: underline; text-underline-offset: 3px; }
.pe-topbar__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pe-mustard);
    animation: pe-pulse 2.4s ease-out infinite;
}
.pe-topbar__social {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pe-topbar__social a {
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.pe-topbar__social a:hover { background: rgba(255, 255, 255, .1); }

@keyframes pe-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(217, 160, 54, .6); }
    70%  { box-shadow: 0 0 0 8px rgba(217, 160, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 160, 54, 0); }
}

/* ===================================================================== Header ===================================================================== */
.pe-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--pe-line);
    transition: box-shadow .3s var(--pe-ease), border-color .3s;
}
@supports (backdrop-filter: blur(8px)) {
    .pe-header {
        background: rgba(255, 255, 255, .94);
        backdrop-filter: saturate(1.4) blur(12px);
    }
}
.pe-header.is-scrolled {
    border-bottom-color: transparent;
    box-shadow: 0 12px 30px -20px rgba(23, 57, 44, .45);
}
.pe-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--pe-header-h);
    transition: height .3s var(--pe-ease);
}
.pe-header.is-scrolled .pe-header__inner { height: var(--pe-header-h-scrolled); }

/* Brand */
.pe-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--pe-ink);
    text-decoration: none;
}
.pe-brand img {
    display: block;
    width: auto;
    height: 62px;
    transition: height .3s var(--pe-ease);
}
.pe-header.is-scrolled .pe-brand img { height: 52px; }
.pe-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.pe-brand__name {
    font-family: var(--pe-font-display);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--pe-forest);
}
.pe-brand__tag {
    margin-top: 4px;
    font-size: .75rem;
    color: var(--pe-muted);
}

/* Desktop navigation */
.pe-nav {
    position: relative;
    height: 100%;
    margin-inline: auto;
}
.pe-nav__list {
    display: flex;
    align-items: stretch;
    height: 100%;
}
.pe-nav__item {
    position: relative;
    display: flex;
    align-items: center;
}
.pe-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 13px;
    border: 0;
    background: none;
    color: #2a332e;
    font: inherit;
    font-size: .9688rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s;
}
.pe-nav__link:hover,
.pe-nav__item.is-open > .pe-nav__link { color: var(--pe-green); }
.pe-nav__link.is-active {
    color: var(--pe-green);
    font-weight: 600;
}
.pe-nav__caret {
    font-size: .7rem;
    transition: transform .25s var(--pe-ease);
}
.pe-nav__item.is-open .pe-nav__caret { transform: rotate(180deg); }

/* Sliding underline that follows the hovered item */
.pe-nav__ink {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--pe-mustard);
    opacity: 0;
    pointer-events: none;
}
.pe-nav__ink.is-ready {
    transition: transform .35s var(--pe-ease), width .35s var(--pe-ease), opacity .2s;
}

/* Dropdown panel */
.pe-drop {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 20;
    min-width: 310px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--pe-line);
    border-radius: 18px;
    box-shadow: var(--pe-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity .22s var(--pe-ease), transform .22s var(--pe-ease), visibility 0s linear .22s;
}
.pe-drop::before {
    /* small notch pointing at the menu item */
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid var(--pe-line);
    border-left: 1px solid var(--pe-line);
    transform: translateX(-50%) rotate(45deg);
}
.pe-nav__item.is-open > .pe-drop {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity .22s var(--pe-ease), transform .22s var(--pe-ease), visibility 0s;
}
.pe-drop--cols-2 { width: 590px; }
.pe-drop__list {
    position: relative;
    display: grid;
    gap: 2px;
}
.pe-drop--cols-2 .pe-drop__list { grid-template-columns: 1fr 1fr; }
.pe-drop__link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--pe-ink);
    text-decoration: none;
    transition: background-color .18s;
}
.pe-drop__link:hover,
.pe-drop__link:focus-visible { background: var(--pe-sage-50); }
.pe-drop__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--pe-sage-100);
    color: var(--pe-forest);
    font-size: 1.05rem;
    transition: background-color .18s, color .18s;
}
.pe-drop__link:hover .pe-drop__icon,
.pe-drop__link.is-active .pe-drop__icon {
    background: var(--pe-forest);
    color: #fff;
}
.pe-drop__title {
    display: block;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.3;
}
.pe-drop__link.is-active .pe-drop__title { color: var(--pe-green); }
.pe-drop__desc {
    display: block;
    margin-top: 2px;
    font-size: .8125rem;
    line-height: 1.4;
    color: var(--pe-muted);
}
.pe-drop__foot {
    margin-top: 8px;
    padding: 12px 12px 4px;
    border-top: 1px solid var(--pe-line);
}
.pe-drop__foot a {
    font-size: .875rem;
    font-weight: 700;
    color: var(--pe-green);
    text-decoration: underline;
    text-decoration-color: rgba(47, 107, 79, .3);
    text-underline-offset: 4px;
    transition: text-decoration-color .2s;
}
.pe-drop__foot a:hover { text-decoration-color: currentColor; }

/* Header actions */
.pe-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Hamburger */
.pe-burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--pe-sage-50);
    color: var(--pe-forest);
    cursor: pointer;
    transition: background-color .2s;
}
.pe-burger:hover { background: var(--pe-sage-100); }
.pe-burger span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.pe-burger span:nth-child(2) {
    width: 14px;
    margin-left: 6px;
}

/* Brand text only where there is room for it */
@media (min-width: 1200px) and (max-width: 1439.98px) {
    .pe-header .pe-brand__text { display: none; }
}

/* ---------- Below 1200px: burger + drawer ---------- */
@media (max-width: 1199.98px) {
    :root {
        --pe-header-h: 72px;
        --pe-header-h-scrolled: 64px;
    }
    .pe-nav { display: none; }
    .pe-burger { display: inline-flex; }
    .pe-header__actions { margin-left: auto; }
    .pe-header__inner { gap: 16px; }
    .pe-brand img { height: 52px; }
    .pe-header.is-scrolled .pe-brand img { height: 46px; }
    .pe-header__apply {
        min-height: 44px;
        padding: 0 18px;
        font-size: .875rem;
    }
}
@media (max-width: 991.98px) {
    .pe-topbar .pe-topbar__notice { display: none; }
}
@media (max-width: 575.98px) {
    .pe-topbar .pe-topbar__email { display: none; }
    .pe-brand__tag { display: none; }
    .pe-brand__name { font-size: 1rem; }
    .pe-brand { gap: 10px; }
    .pe-header .pe-brand { flex-shrink: 1; min-width: 0; } /* lets a long name wrap on small phones */
    .pe-brand img { height: 46px; }
    .pe-header__apply { padding: 0 14px; }
}
@media (max-width: 419.98px) {
    .pe-header__apply { display: none; }
}

/* =====================================================================
   Mobile drawer
   ===================================================================== */
.pe-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
}
.pe-drawer[hidden] { display: none; }
.pe-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 32, 24, .5);
    opacity: 0;
    transition: opacity .3s;
}
.pe-drawer.is-open .pe-drawer__backdrop { opacity: 1; }
.pe-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(380px, 90vw);
    background: #fff;
    box-shadow: -24px 0 60px -24px rgba(0, 0, 0, .35);
    transform: translateX(100%);
    transition: transform .36s var(--pe-ease);
}
.pe-drawer.is-open .pe-drawer__panel { transform: none; }

.pe-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 14px 18px;
    border-bottom: 1px solid var(--pe-line);
}
.pe-drawer__head .pe-brand img { height: 44px; }
.pe-drawer__head .pe-brand__name { font-size: 1rem; }
.pe-drawer__close {
    display: grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--pe-sage-50);
    color: var(--pe-forest);
    font-size: .95rem;
    cursor: pointer;
}
.pe-drawer__close:hover { background: var(--pe-sage-100); }

.pe-drawer__nav {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 12px;
}
.pe-acc > li + li { border-top: 1px solid var(--pe-line); }
.pe-acc__link,
.pe-acc__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 0 8px;
    border: 0;
    background: none;
    color: var(--pe-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.pe-acc__link.is-active,
.pe-acc__toggle.is-active { color: var(--pe-green); }
.pe-acc__link.is-active::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pe-mustard);
}
.pe-acc__toggle i {
    font-size: .75rem;
    transition: transform .3s var(--pe-ease);
}
.pe-acc__toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.pe-acc__panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .3s var(--pe-ease), visibility 0s linear .3s;
}
.pe-acc__panel.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .3s var(--pe-ease), visibility 0s;
}
.pe-acc__inner {
    min-height: 0;
    overflow: hidden;
}
.pe-acc__sub { padding: 0 0 12px; }
.pe-acc__sub a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    color: var(--pe-ink);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
}
.pe-acc__sub a:hover { background: var(--pe-sage-50); }
.pe-acc__sub a.is-active {
    color: var(--pe-green);
    font-weight: 700;
}
.pe-acc__sub .pe-drop__icon {
    width: 36px;
    height: 36px;
    font-size: .95rem;
}
.pe-acc__sub a.pe-acc__all {
    padding-left: 56px;
    color: var(--pe-green);
    font-weight: 700;
}

.pe-drawer__foot {
    display: grid;
    gap: 14px;
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--pe-line);
    background: var(--pe-sage-50);
}
.pe-drawer__contact {
    display: grid;
    gap: 8px;
    font-size: .875rem;
}
.pe-drawer__contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pe-ink);
    text-decoration: none;
}
.pe-drawer__contact i { color: var(--pe-green); }
.pe-drawer__social {
    display: flex;
    gap: 8px;
}
.pe-drawer__social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--pe-line);
    border-radius: 50%;
    background: #fff;
    color: var(--pe-forest);
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.pe-drawer__social a:hover {
    background: var(--pe-forest);
    color: #fff;
}

/* =====================================================================
   Hero banner
   ===================================================================== */
.pe-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--pe-forest);
    color: #fff;
}
.pe-hero::before {
    /* soft light from the right + faint vertical "colonnade" lines */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(55% 75% at 82% 38%, rgba(124, 140, 107, .38), transparent 70%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 120px);
}
.pe-hero__inner {
    --pe-hero-pb: clamp(96px, 8vw, 116px); /* bottom space the quick-links strip overlaps */
    position: relative;
    padding-top: clamp(36px, 4vw, 56px);
    padding-bottom: var(--pe-hero-pb);
}
.pe-hero__slides { display: grid; }

.pe-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 37rem) minmax(0, 1fr); /* text | photo fills the rest */
    align-items: center;
    gap: clamp(32px, 4vw, 15px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s var(--pe-ease), visibility 0s linear .6s;
}

.pe-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity .6s var(--pe-ease), visibility 0s;
}

/* Text column */
.pe-slide__text { max-width: 37rem; }
.pe-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    padding: 7px 15px 7px 11px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #f5e2b8;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.2;
}
.pe-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pe-mustard);
}
.pe-slide__title {
    margin: 0 0 20px;
    color: #fff;
    font-family: var(--pe-font-display);
    font-size: clamp(2rem, 1.2rem + 2.6vw, 3.375rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.012em;
    text-wrap: balance;
}
.pe-slide__lead {
    max-width: 34em;
    margin: 0 0 30px;
    color: #cfdac9;
    font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
    line-height: 1.65;
}
.pe-slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Arched photo: fills all the space to the right of the text */
.pe-slide__media {
    --pe-gap: 14px;        /* space between the photo and its frame line */
    --pe-corner: 20px;     /* bottom corner radius */
    --pe-arch-h: 432px;    /* photo height: change this to make the banner taller/shorter */
    --pe-dome: 200px;      /* how tall the curved top is */
    position: relative;
    justify-self: stretch;
    margin: var(--pe-gap);
}
.pe-arch {
    position: relative;
    height: var(--pe-arch-h);
    overflow: hidden;
    border-radius: var(--pe-corner);          /* square with soft corners */
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .14), transparent 60%),
        linear-gradient(165deg, var(--pe-sage), var(--pe-forest-2));
    box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .6);
}
.pe-arch img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pe-slide__media::before {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--pe-gap));
    border: 1.5px solid rgba(237, 167, 146, .7);
    border-radius: calc(var(--pe-corner) + var(--pe-gap));
    pointer-events: none;
}
.pe-slide__caption {
    position: absolute;
    left: -30px;
    bottom: 28px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--pe-ink);
    font-size: .875rem;
    font-weight: 600;
    box-shadow: 0 18px 32px -16px rgba(0, 0, 0, .5);
}
.pe-slide__caption i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pe-sage-100);
    color: var(--pe-forest);
}

/* The one orchestrated moment: each slide arrives with its text rising and its photo settling from a slight zoom. */
.pe-slide.is-active .pe-slide__text > * { animation: pe-rise .8s var(--pe-ease) both; }
.pe-slide.is-active .pe-slide__text > :nth-child(2) { animation-delay: .07s; }
.pe-slide.is-active .pe-slide__text > :nth-child(3) { animation-delay: .14s; }
.pe-slide.is-active .pe-slide__text > :nth-child(4) { animation-delay: .21s; }
.pe-slide.is-active .pe-arch img { animation: pe-settle 9s var(--pe-ease) both; }
.pe-slide.is-active .pe-slide__caption { animation: pe-rise .8s var(--pe-ease) .3s both; }

@keyframes pe-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
@keyframes pe-settle {
    from { transform: scale(1.1); }
    to   { transform: scale(1); }
}

/* Slider controls */
.pe-hero__controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: clamp(28px, 4vw, 48px);
}
.pe-hero__controls[hidden] { display: none; }
@media (min-width: 992px) {
    /* reserve room under the text, then place the controls there */
    .pe-slide__text { padding-bottom: 78px; }
    .pe-hero__controls {
        position: absolute;
        left: var(--pe-gutter);
        bottom: var(--pe-hero-pb);
        z-index: 3; /* above the slide layer so the buttons stay clickable */
        margin-top: 0;
    }
}
.pe-hero__arrow {
    display: grid;
    flex: none;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.pe-hero__arrow:hover {
    background: #fff;
    border-color: #fff;
    color: var(--pe-forest);
}
.pe-hero__bars {
    display: flex;
    gap: 8px;
    margin-inline: 12px 4px;
}
.pe-hero__bar {
    display: flex;
    align-items: center;
    width: 52px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.pe-hero__track {
    position: relative;
    display: block;
    width: 100%;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, .24);
    transition: background-color .2s;
}
.pe-hero__bar:hover .pe-hero__track { background: rgba(255, 255, 255, .45); }
.pe-hero__fill {
    position: absolute;
    inset: 0;
    background: var(--pe-mustard);
    transform: scaleX(0);
    transform-origin: left center;
}
.pe-hero__bar.is-active .pe-hero__fill {
    animation: pe-fill var(--pe-interval, 6500ms) linear forwards;
}
.pe-hero.is-paused .pe-hero__bar.is-active .pe-hero__fill,
.pe-hero.is-user-paused .pe-hero__bar.is-active .pe-hero__fill {
    animation-play-state: paused;
}
@keyframes pe-fill { to { transform: scaleX(1); } }

/* ---------- Hero: tablet and phone ---------- */
@media (max-width: 991.98px) {
    .pe-slide {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 44px;
    }
    .pe-slide__text { max-width: 40rem; }
    .pe-slide__media {
        --pe-gap: 12px;
        --pe-arch-h: 360px;
        --pe-dome: 170px;
    }
    .pe-slide__caption { left: 14px; bottom: 16px; }
}
@media (max-width: 575.98px) {
    .pe-hero__inner { padding-top: 36px; }
    .pe-slide { gap: 36px; }
    .pe-slide__media {
        --pe-gap: 10px;
        --pe-arch-h: 260px;
        --pe-dome: 120px;
    }
    .pe-slide__lead { margin-bottom: 28px; }
    .pe-slide__actions .pe-btn { flex: 1 1 auto; }
    .pe-hero__bars { margin-inline: 6px 0; flex: 1; }
    .pe-hero__bar { flex: 1; width: auto; }
    .pe-hero__arrow { width: 42px; height: 42px; }
}

/* =====================================================================
   Quick links strip (overlaps the bottom of the banner)
   ===================================================================== */
.pe-quick {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * clamp(56px, 6vw, 72px));
}
.pe-quick__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--pe-line);
    border-radius: 20px;
    background: var(--pe-line); /* shows through the 1px gaps as dividers */
    box-shadow: var(--pe-shadow);
}
.pe-quick__list > li { background: #fff; }
.pe-quick__link {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 20px 22px;
    color: var(--pe-ink);
    text-decoration: none;
    transition: background-color .2s;
}
.pe-quick__link:hover { background: var(--pe-sage-50); }
.pe-quick__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--pe-mustard-tint);
    color: var(--pe-mustard-deep);
    font-size: 1.25rem;
    transition: background-color .2s, color .2s;
}
.pe-quick__link:hover .pe-quick__icon {
    background: var(--pe-mustard);
    color: var(--pe-forest);
}
.pe-quick__title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}
.pe-quick__text {
    display: block;
    margin-top: 3px;
    font-size: .8125rem;
    line-height: 1.4;
    color: var(--pe-muted);
}
@media (max-width: 1199.98px) {
    .pe-quick__link { padding: 18px; }
}
@media (max-width: 1099.98px) {
    .pe-quick__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .pe-quick__link {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    .pe-quick__icon { width: 42px; height: 42px; font-size: 1.1rem; }
    .pe-quick__title { font-size: .9375rem; }
}

/* =====================================================================
   Reduced motion: no autoplay, no movement
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    .pe-topbar *, .pe-header, .pe-header *, .pe-drawer *, .pe-hero *, .pe-quick * {
        animation: none !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    .pe-hero__bar.is-active .pe-hero__fill { transform: scaleX(1); }
    .pe-hero__toggle { display: none; }
}

/* ---------- Quick link with no destination: text only, nothing to click ---------- */
.pe-quick__link.is-static {
    cursor: default;
}
.pe-quick__link.is-static:hover {
    background: transparent;
}
.pe-quick__link.is-static:hover .pe-quick__icon {
    background: var(--pe-mustard-tint);
    color: var(--pe-mustard-deep);
}