/*
 * GWM Archbishop Leadership Portfolio v1.0.0
 * Presentation is isolated to [data-gwm-archbishop-portfolio].
 */

.gwm-ap {
    --ap-navy: #07131f;
    --ap-midnight: #0b2037;
    --ap-blue: #123a59;
    --ap-gold: #c9a227;
    --ap-soft-gold: #f0d779;
    --ap-ivory: #fbf3df;
    --ap-paper: #fffdf8;
    --ap-white: #ffffff;
    --ap-ink: #101828;
    --ap-muted: #5f6b78;
    --ap-line: rgba(16, 24, 40, 0.12);
    --ap-shadow: 0 24px 70px rgba(7, 19, 31, 0.13);
    background: var(--ap-paper);
    color: var(--ap-ink);
    overflow: clip;
}

.gwm-ap *,
.gwm-ap *::before,
.gwm-ap *::after {
    box-sizing: border-box;
}

.gwm-ap img {
    display: block;
    max-width: 100%;
}

.gwm-ap a {
    color: inherit;
}

.gwm-ap-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.gwm-ap-section {
    position: relative;
    padding: clamp(76px, 9vw, 132px) 0;
}

.gwm-ap-eyebrow {
    margin: 0 0 18px;
    color: var(--ap-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.gwm-ap-section-heading {
    max-width: 780px;
    margin: 0 0 clamp(38px, 6vw, 70px);
}

.gwm-ap-section-heading h2,
.gwm-ap-bio-intro h2,
.gwm-ap-feature-panel h2,
.gwm-ap-family-copy h2,
.gwm-ap-reach-grid h2,
.gwm-ap-closing h2 {
    margin: 0;
    color: var(--ap-navy);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.15rem, 4.2vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.gwm-ap-section-heading > p:last-child,
.gwm-ap-family-copy > p,
.gwm-ap-closing > .gwm-ap-shell > p,
.gwm-ap-reach-grid header p:last-child {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--ap-muted);
    font-size: clamp(1.04rem, 1.4vw, 1.2rem);
    line-height: 1.75;
}

.gwm-ap-hero {
    position: relative;
    min-height: 790px;
    padding: clamp(80px, 9vw, 140px) 0 90px;
    background:
        radial-gradient(circle at 78% 24%, rgba(201, 162, 39, 0.18), transparent 26%),
        linear-gradient(135deg, #07131f 0%, #0b2037 58%, #102d48 100%);
    color: var(--ap-white);
}

.gwm-ap-hero::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    content: '';
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 90%);
    pointer-events: none;
}

.gwm-ap-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.88fr);
    gap: clamp(48px, 8vw, 110px);
    align-items: center;
}

.gwm-ap-back {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 38px;
    color: rgba(255,255,255,0.76);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.gwm-ap-back:hover,
.gwm-ap-back:focus-visible {
    color: var(--ap-soft-gold);
}

.gwm-ap-hero h1 {
    max-width: 820px;
    margin: 0;
    color: var(--ap-white);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(3.25rem, 6.2vw, 6.85rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.92;
}

.gwm-ap-hero__summary {
    max-width: 720px;
    margin: 30px 0 0;
    color: rgba(255,255,255,0.78);
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.75;
}

.gwm-ap-mandate {
    display: grid;
    gap: 8px;
    margin: 34px 0 0;
    padding: 22px 0 22px 24px;
    border-left: 3px solid var(--ap-gold);
}

.gwm-ap-mandate span {
    color: var(--ap-soft-gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.gwm-ap-mandate strong {
    max-width: 640px;
    color: var(--ap-white);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.35;
}

.gwm-ap-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.gwm-ap-button {
    display: inline-flex;
    min-height: 52px;
    padding: 14px 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.93rem;
    font-weight: 800;
    letter-spacing: 0.015em;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.gwm-ap-button:hover,
.gwm-ap-button:focus-visible {
    transform: translateY(-2px);
}

.gwm-ap-button--gold {
    background: var(--ap-gold);
    color: var(--ap-navy);
    box-shadow: 0 14px 34px rgba(201, 162, 39, 0.23);
}

.gwm-ap-button--gold:hover,
.gwm-ap-button--gold:focus-visible {
    background: var(--ap-soft-gold);
}

.gwm-ap-button--ghost {
    border-color: rgba(255,255,255,0.27);
    background: rgba(255,255,255,0.04);
    color: var(--ap-white);
}

.gwm-ap-button--ghost:hover,
.gwm-ap-button--ghost:focus-visible {
    border-color: rgba(255,255,255,0.58);
    background: rgba(255,255,255,0.09);
}

.gwm-ap-button--light {
    border-color: rgba(255,255,255,0.46);
    color: var(--ap-white);
}

.gwm-ap-hero__visual {
    position: relative;
    min-height: 610px;
}

.gwm-ap-portrait-card {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin-left: auto;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    box-shadow: 0 38px 100px rgba(0,0,0,0.33);
    backdrop-filter: blur(12px);
}

.gwm-ap-portrait-card__frame {
    position: relative;
    aspect-ratio: 4 / 5.25;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    background: #10283e;
}

.gwm-ap-portrait-card__frame::after {
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(to top, rgba(7,19,31,0.72), transparent);
    content: '';
    pointer-events: none;
}

.gwm-ap-portrait-card__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
}

.gwm-ap-portrait-card__fallback {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(145deg, #173957, #07131f);
}

.gwm-ap-portrait-card__fallback span {
    color: rgba(255,255,255,0.16);
    font-family: Georgia, serif;
    font-size: 8rem;
}

.gwm-ap-portrait-card__caption {
    display: grid;
    gap: 6px;
    padding: 22px 18px 12px;
}

.gwm-ap-portrait-card__caption p,
.gwm-ap-portrait-card__caption span,
.gwm-ap-portrait-card__caption small {
    margin: 0;
}

.gwm-ap-portrait-card__caption p {
    color: var(--ap-white);
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.gwm-ap-portrait-card__caption span {
    color: var(--ap-soft-gold);
    font-size: 0.88rem;
    font-weight: 700;
}

.gwm-ap-portrait-card__caption small {
    color: rgba(255,255,255,0.65);
    font-size: 0.78rem;
}

.gwm-ap-hero__seal {
    position: absolute;
    right: -38px;
    bottom: 10px;
    z-index: 1;
    display: grid;
    width: 170px;
    height: 170px;
    place-items: center;
    border: 1px solid rgba(240,215,121,0.34);
    border-radius: 50%;
    color: rgba(240,215,121,0.16);
    font-family: Georgia, serif;
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.gwm-ap-section-nav {
    position: sticky;
    top: 0;
    z-index: 25;
    border-bottom: 1px solid rgba(7,19,31,0.1);
    background: rgba(255,253,248,0.94);
    backdrop-filter: blur(16px);
}

.admin-bar .gwm-ap-section-nav {
    top: 32px;
}

.gwm-ap-section-nav .gwm-ap-shell {
    display: flex;
    gap: 34px;
    overflow-x: auto;
    scrollbar-width: none;
}

.gwm-ap-section-nav .gwm-ap-shell::-webkit-scrollbar {
    display: none;
}

.gwm-ap-section-nav a {
    position: relative;
    flex: 0 0 auto;
    padding: 19px 0 17px;
    color: #44505d;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.gwm-ap-section-nav a::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: var(--ap-gold);
    content: '';
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.gwm-ap-section-nav a:hover::after,
.gwm-ap-section-nav a:focus-visible::after,
.gwm-ap-section-nav a.is-active::after {
    transform: scaleX(1);
}

.gwm-ap-section--paper {
    background: var(--ap-paper);
}

.gwm-ap-highlight-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.gwm-ap-highlight-card {
    position: relative;
    grid-column: span 4;
    min-height: 265px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    background: var(--ap-white);
    box-shadow: 0 14px 44px rgba(7,19,31,0.055);
}

.gwm-ap-highlight-card:nth-child(1),
.gwm-ap-highlight-card:nth-child(5) {
    grid-column: span 5;
}

.gwm-ap-highlight-card:nth-child(2),
.gwm-ap-highlight-card:nth-child(6) {
    grid-column: span 7;
}

.gwm-ap-highlight-card::before {
    position: absolute;
    right: -38px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border: 28px solid rgba(201,162,39,0.08);
    border-radius: 50%;
    content: '';
}

.gwm-ap-highlight-card__index {
    display: block;
    margin-bottom: 50px;
    color: var(--ap-gold);
    font-family: Georgia, serif;
    font-size: 1.9rem;
    line-height: 1;
}

.gwm-ap-highlight-card > p {
    margin: 0 0 10px;
    color: var(--ap-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.gwm-ap-highlight-card h3 {
    margin: 0;
    color: var(--ap-navy);
    font-family: Georgia, serif;
    font-size: clamp(1.55rem, 2.2vw, 2.25rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.gwm-ap-highlight-card > div {
    max-width: 570px;
    margin-top: 16px;
    color: var(--ap-muted);
    font-size: 0.97rem;
    line-height: 1.65;
}

.gwm-ap-highlight-card--2,
.gwm-ap-highlight-card--5 {
    background: var(--ap-navy);
}

.gwm-ap-highlight-card--2 h3,
.gwm-ap-highlight-card--5 h3 {
    color: var(--ap-white);
}

.gwm-ap-highlight-card--2 > div,
.gwm-ap-highlight-card--5 > div,
.gwm-ap-highlight-card--2 > p,
.gwm-ap-highlight-card--5 > p {
    color: rgba(255,255,255,0.68);
}

.gwm-ap-section--bio {
    background: var(--ap-ivory);
}

.gwm-ap-bio-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(50px, 9vw, 130px);
    align-items: start;
}

.gwm-ap-bio-intro {
    position: sticky;
    top: 100px;
}

.gwm-ap-stat-grid {
    display: grid;
    gap: 12px;
    margin-top: 38px;
}

.gwm-ap-stat-grid > div {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(7,19,31,0.14);
}

.gwm-ap-stat-grid strong {
    color: var(--ap-gold);
    font-family: Georgia, serif;
    font-size: 2.15rem;
    line-height: 1;
}

.gwm-ap-stat-grid span {
    color: var(--ap-muted);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.gwm-ap-prose {
    max-width: 760px;
}

.gwm-ap-prose p {
    margin: 0;
    color: #35404c;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.14rem, 1.65vw, 1.34rem);
    line-height: 1.85;
}

.gwm-ap-prose p + p {
    margin-top: 27px;
}

.gwm-ap-section--timeline {
    background: var(--ap-navy);
    color: var(--ap-white);
}

.gwm-ap-section--timeline::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 18%, rgba(201,162,39,0.12), transparent 24%);
    content: '';
    pointer-events: none;
}

.gwm-ap-section-heading--light {
    position: relative;
}

.gwm-ap-section-heading--light h2 {
    color: var(--ap-white);
}

.gwm-ap-section-heading--light > p:last-child {
    color: rgba(255,255,255,0.68);
}

.gwm-ap-timeline {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px 0;
}

.gwm-ap-timeline__rail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255,255,255,0.12);
    transform: translateX(-50%);
}

.gwm-ap-timeline__rail span {
    display: block;
    width: 100%;
    height: var(--timeline-progress, 0%);
    background: linear-gradient(to bottom, var(--ap-soft-gold), var(--ap-gold));
    transition: height 100ms linear;
}

.gwm-ap-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    min-height: 190px;
    align-items: start;
}

.gwm-ap-timeline__item.is-left .gwm-ap-timeline__card {
    grid-column: 1;
}

.gwm-ap-timeline__item.is-right .gwm-ap-timeline__card {
    grid-column: 3;
}

.gwm-ap-timeline__marker {
    position: absolute;
    top: 30px;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 6px solid var(--ap-navy);
    border-radius: 50%;
    background: var(--ap-gold);
    box-shadow: 0 0 0 1px rgba(240,215,121,0.4);
    transform: translateX(-50%);
}

.gwm-ap-timeline__marker span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ap-navy);
}

.gwm-ap-timeline__card {
    max-width: 430px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    background: rgba(255,255,255,0.055);
    box-shadow: 0 18px 55px rgba(0,0,0,0.12);
}

.gwm-ap-timeline__item.is-left .gwm-ap-timeline__card {
    justify-self: end;
    text-align: right;
}

.gwm-ap-timeline__card > p {
    margin: 0 0 10px;
    color: var(--ap-soft-gold);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gwm-ap-timeline__card h3 {
    margin: 0;
    color: var(--ap-white);
    font-family: Georgia, serif;
    font-size: 1.55rem;
    line-height: 1.18;
}

.gwm-ap-timeline__card > div {
    margin-top: 13px;
    color: rgba(255,255,255,0.67);
    font-size: 0.94rem;
    line-height: 1.65;
}

.gwm-ap-section--portfolio {
    background: var(--ap-paper);
}

.gwm-ap-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gwm-ap-portfolio-card {
    min-height: 310px;
    padding: 32px;
    border: 1px solid var(--ap-line);
    border-radius: 8px;
    background: var(--ap-white);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.gwm-ap-portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ap-shadow);
}

.gwm-ap-portfolio-card.is-wide {
    grid-column: span 2;
}

.gwm-ap-portfolio-card > span {
    display: block;
    color: var(--ap-gold);
    font-family: Georgia, serif;
    font-size: 2rem;
}

.gwm-ap-portfolio-card h3 {
    margin: 72px 0 0;
    color: var(--ap-navy);
    font-family: Georgia, serif;
    font-size: clamp(1.65rem, 2.4vw, 2.45rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.gwm-ap-portfolio-card p {
    max-width: 600px;
    margin: 18px 0 0;
    color: var(--ap-muted);
    line-height: 1.68;
}

.gwm-ap-section--publications {
    background: linear-gradient(135deg, #f7ecd4 0%, #fffaf0 56%, #f5e6c7 100%);
}

.gwm-ap-publications-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(50px, 9vw, 120px);
    align-items: center;
}

.gwm-ap-section-heading--compact {
    margin: 0;
}

.gwm-ap-book-shelf {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
    padding-bottom: 18px;
    border-bottom: 16px solid #8b6730;
    box-shadow: 0 22px 22px -24px rgba(46,29,6,0.8);
}

.gwm-ap-book {
    display: flex;
    min-height: 390px;
    padding: 28px 24px;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px 5px 2px 2px;
    color: var(--ap-white);
    box-shadow: 10px 14px 25px rgba(55,32,4,0.18);
    transform-origin: bottom center;
}

.gwm-ap-book--1 { background: linear-gradient(145deg, #07131f, #173b58); transform: rotate(-1.4deg); }
.gwm-ap-book--2 { min-height: 430px; background: linear-gradient(145deg, #8b6310, #c9a227); }
.gwm-ap-book--3 { background: linear-gradient(145deg, #263b2f, #4c6a58); transform: rotate(1.2deg); }

.gwm-ap-book > span {
    color: rgba(255,255,255,0.68);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gwm-ap-book h3 {
    margin: auto 0 0;
    color: var(--ap-white);
    font-family: Georgia, serif;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.08;
}

.gwm-ap-book p {
    margin: 18px 0 0;
    color: rgba(255,255,255,0.72);
    font-size: 0.88rem;
    line-height: 1.55;
}

.gwm-ap-book small {
    margin-top: 28px;
    color: rgba(255,255,255,0.6);
    font-size: 0.72rem;
}

.gwm-ap-section--teegism {
    padding-top: 0;
    background: var(--ap-paper);
}

.gwm-ap-feature-panel {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: clamp(36px, 8vw, 100px);
    padding: clamp(44px, 7vw, 80px);
    border-radius: 8px;
    background: var(--ap-navy);
    color: var(--ap-white);
    box-shadow: var(--ap-shadow);
}

.gwm-ap-feature-panel h2 {
    color: var(--ap-white);
    font-size: clamp(2.15rem, 3.6vw, 3.5rem);
}

.gwm-ap-feature-panel > div:last-child {
    align-self: end;
}

.gwm-ap-feature-panel > div:last-child p {
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 1.05rem;
    line-height: 1.75;
}

.gwm-ap-feature-panel a {
    display: inline-flex;
    gap: 10px;
    margin-top: 28px;
    color: var(--ap-soft-gold);
    font-weight: 800;
    text-decoration: none;
}

.gwm-ap-section--service {
    background: #f6f7f8;
}

.gwm-ap-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gwm-ap-service-card {
    padding: 32px;
    border-top: 4px solid var(--ap-gold);
    border-radius: 4px 4px 8px 8px;
    background: var(--ap-white);
    box-shadow: 0 14px 42px rgba(7,19,31,0.06);
}

.gwm-ap-service-card h3 {
    margin: 0;
    color: var(--ap-navy);
    font-family: Georgia, serif;
    font-size: 1.7rem;
    line-height: 1.15;
}

.gwm-ap-service-card ul {
    display: grid;
    gap: 14px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.gwm-ap-service-card li {
    position: relative;
    padding-left: 20px;
    color: var(--ap-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.gwm-ap-service-card li::before {
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 7px;
    height: 7px;
    border: 2px solid var(--ap-gold);
    content: '';
    transform: rotate(45deg);
}

.gwm-ap-section--reach {
    background: var(--ap-midnight);
    color: var(--ap-white);
}

.gwm-ap-reach-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(50px, 9vw, 120px);
    align-items: center;
}

.gwm-ap-reach-grid h2 {
    color: var(--ap-white);
}

.gwm-ap-reach-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255,255,255,0.15);
    border-left: 1px solid rgba(255,255,255,0.15);
}

.gwm-ap-reach-list span {
    padding: 22px;
    border-right: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.78);
    font-weight: 700;
}

.gwm-ap-reach-list span:first-child {
    grid-column: span 2;
    color: var(--ap-soft-gold);
    font-family: Georgia, serif;
    font-size: 1.5rem;
}

.gwm-ap-section--family {
    background: var(--ap-paper);
}

.gwm-ap-family-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
    gap: clamp(48px, 9vw, 120px);
    align-items: center;
}

.gwm-ap-family-image {
    position: relative;
    min-height: 520px;
}

.gwm-ap-family-image::before {
    position: absolute;
    top: -24px;
    right: -24px;
    width: 48%;
    height: 60%;
    border: 1px solid var(--ap-gold);
    content: '';
}

.gwm-ap-family-image img,
.gwm-ap-family-image__fallback {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 520px;
    border-radius: 7px;
    object-fit: cover;
    object-position: center 24%;
    box-shadow: var(--ap-shadow);
}

.gwm-ap-family-image__fallback {
    background: linear-gradient(135deg, var(--ap-navy), var(--ap-blue));
}

.gwm-ap-family-copy > p {
    color: var(--ap-muted);
    font-size: 1.04rem;
    line-height: 1.75;
}

.gwm-ap-closing {
    padding: clamp(82px, 10vw, 140px) 0;
    background:
        linear-gradient(rgba(7,19,31,0.91), rgba(7,19,31,0.94)),
        radial-gradient(circle at 50% 20%, rgba(201,162,39,0.28), transparent 32%),
        var(--ap-navy);
    color: var(--ap-white);
    text-align: center;
}

.gwm-ap-closing__inner {
    max-width: 900px;
}

.gwm-ap-closing h2 {
    color: var(--ap-white);
}

.gwm-ap-closing__inner > p:not(.gwm-ap-eyebrow) {
    max-width: 720px;
    margin: 25px auto 0;
    color: rgba(255,255,255,0.72);
    font-size: 1.08rem;
    line-height: 1.75;
}

.gwm-ap-actions--center {
    justify-content: center;
}

body.gwm-ap-is-ready .gwm-ap [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 620ms ease, transform 620ms cubic-bezier(.2,.75,.25,1);
}

body.gwm-ap-is-ready .gwm-ap [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .gwm-ap-hero__grid,
    .gwm-ap-publications-grid,
    .gwm-ap-family-grid {
        grid-template-columns: 1fr 0.9fr;
        gap: 54px;
    }

    .gwm-ap-hero h1 {
        font-size: clamp(3.2rem, 7vw, 5.5rem);
    }

    .gwm-ap-highlight-card,
    .gwm-ap-highlight-card:nth-child(n) {
        grid-column: span 6;
    }

    .gwm-ap-portfolio-grid,
    .gwm-ap-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gwm-ap-service-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 782px) {
    .admin-bar .gwm-ap-section-nav {
        top: 46px;
    }
}

@media (max-width: 760px) {
    .gwm-ap-shell {
        width: min(100% - 28px, 1180px);
    }

    .gwm-ap-section {
        padding: 76px 0;
    }

    .gwm-ap-hero {
        min-height: 0;
        padding: 72px 0;
    }

    .gwm-ap-hero__grid,
    .gwm-ap-bio-grid,
    .gwm-ap-publications-grid,
    .gwm-ap-feature-panel,
    .gwm-ap-reach-grid,
    .gwm-ap-family-grid {
        grid-template-columns: 1fr;
    }

    .gwm-ap-hero__visual {
        min-height: 0;
    }

    .gwm-ap-portrait-card {
        max-width: 440px;
        margin: 0 auto;
    }

    .gwm-ap-hero__seal {
        right: -34px;
        bottom: -36px;
        width: 130px;
        height: 130px;
        font-size: 2rem;
    }

    .gwm-ap-section-nav .gwm-ap-shell {
        gap: 26px;
    }

    .gwm-ap-highlight-card,
    .gwm-ap-highlight-card:nth-child(n) {
        grid-column: span 12;
        min-height: 240px;
    }

    .gwm-ap-bio-intro {
        position: static;
    }

    .gwm-ap-timeline__rail {
        left: 14px;
        transform: none;
    }

    .gwm-ap-timeline__item {
        display: block;
        min-height: 0;
        padding: 0 0 34px 48px;
    }

    .gwm-ap-timeline__item.is-left .gwm-ap-timeline__card,
    .gwm-ap-timeline__item.is-right .gwm-ap-timeline__card {
        max-width: none;
        text-align: left;
    }

    .gwm-ap-timeline__marker {
        top: 25px;
        left: 14px;
        transform: translateX(-50%);
    }

    .gwm-ap-portfolio-grid,
    .gwm-ap-service-grid {
        grid-template-columns: 1fr;
    }

    .gwm-ap-portfolio-card.is-wide,
    .gwm-ap-service-card:last-child {
        grid-column: auto;
    }

    .gwm-ap-book-shelf {
        grid-template-columns: 1fr;
        gap: 18px;
        border-bottom-width: 12px;
    }

    .gwm-ap-book,
    .gwm-ap-book--1,
    .gwm-ap-book--2,
    .gwm-ap-book--3 {
        min-height: 320px;
        transform: none;
    }

    .gwm-ap-family-image,
    .gwm-ap-family-image img,
    .gwm-ap-family-image__fallback {
        min-height: 420px;
    }

    .gwm-ap-family-image::before {
        top: -14px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .gwm-ap-hero h1 {
        font-size: clamp(2.8rem, 14vw, 4rem);
    }

    .gwm-ap-actions {
        display: grid;
    }

    .gwm-ap-button {
        width: 100%;
    }

    .gwm-ap-highlight-card,
    .gwm-ap-portfolio-card,
    .gwm-ap-service-card,
    .gwm-ap-feature-panel {
        padding: 26px;
    }

    .gwm-ap-stat-grid > div {
        grid-template-columns: 78px 1fr;
    }

    .gwm-ap-reach-list {
        grid-template-columns: 1fr;
    }

    .gwm-ap-reach-list span:first-child {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gwm-ap *,
    .gwm-ap *::before,
    .gwm-ap *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    body.gwm-ap-is-ready .gwm-ap [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
