/* ============================================================
   Our Guides — scoped page theme (.gd-*)
   Loaded only on guides.html, after styles.css.

   Built entirely on the core brand tokens (navy --primary /
   gold --accent, Poppins, the 6/12/20 radius scale and the
   --ease-premium curve) so the page reads as a natural
   extension of the rest of the site. Shared shells such as
   .page-hero, .section, .stats-banner, .quote-band and
   .cta-simple are reused from styles.css rather than
   re-implemented here.
   ============================================================ */

:root {
    --gd-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --gd-line: rgba(14, 46, 74, 0.1);
    --gd-shadow-card: 0 18px 40px -22px rgba(14, 46, 74, 0.3);
    --gd-shadow-card-hover: 0 34px 60px -26px rgba(14, 46, 74, 0.42);
}

/* ============================================================
   1. Trust strip under the hero
   ============================================================ */

.gd-trust {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 5;
}

.gd-trust-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 1.6rem 0;
}

.gd-trust-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0 0.5rem;
    position: relative;
}

.gd-trust-item + .gd-trust-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: var(--border-color);
}

.gd-trust-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 8px 18px -8px rgba(14, 46, 74, 0.5);
}

.gd-trust-icon svg {
    width: 21px;
    height: 21px;
    fill: var(--accent-soft);
}

.gd-trust-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.gd-trust-value {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--primary);
    letter-spacing: var(--track-snug);
}

.gd-trust-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   2. Guide cards grid
   ============================================================ */

.gd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
}

.gd-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    box-shadow: var(--gd-shadow-card);
    transition:
        transform 0.5s var(--gd-ease),
        box-shadow 0.5s var(--gd-ease),
        border-color 0.5s var(--gd-ease);
}

.gd-card::after {
    /* Gold hairline that draws itself across the top on hover */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-hover), #d9b566);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s var(--gd-ease);
    z-index: 4;
}

.gd-card:hover,
.gd-card:focus-visible {
    transform: translateY(-10px);
    box-shadow: var(--gd-shadow-card-hover);
    border-color: rgba(184, 134, 58, 0.5);
}

.gd-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.gd-card:hover::after,
.gd-card:focus-visible::after {
    transform: scaleX(1);
}

/* --- Card photo --- */

.gd-card-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--primary-dark);
}

.gd-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--gd-pos, 50% 30%);
    transform: scale(var(--gd-zoom, 1.02));
    transition: transform 0.9s var(--gd-ease), filter 0.6s var(--gd-ease);
    filter: saturate(1.02) contrast(1.02);
}

.gd-card:hover .gd-card-media img {
    transform: scale(calc(var(--gd-zoom, 1.02) * 1.07));
    filter: saturate(1.08) contrast(1.05);
}

.gd-card-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(4, 18, 32, 0.94) 0%,
        rgba(4, 18, 32, 0.68) 26%,
        rgba(4, 18, 32, 0.12) 55%,
        rgba(4, 18, 32, 0.05) 100%
    );
    transition: opacity 0.5s var(--gd-ease);
}

.gd-card:hover .gd-card-scrim {
    opacity: 0.88;
}

.gd-card-flag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-soft);
    background: rgba(7, 27, 47, 0.55);
    border: 1px solid rgba(232, 217, 184, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gd-card-flag svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.gd-card-id {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 1.5rem 1.6rem 1.3rem;
    color: var(--text-light);
}

.gd-card-name {
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: var(--weight-heading);
    letter-spacing: var(--track-tight);
    line-height: 1.2;
    margin-bottom: 0.35rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.gd-card-role {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--accent-soft);
}

/* --- Card body --- */

.gd-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.5rem 1.6rem 1.7rem;
}

/* Equal-width columns so a long label ("Khumbu Treks") can never wrap the row
   and knock this card's body out of step with its neighbours. */
.gd-card-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px dashed var(--border-color);
}

.gd-card-metric {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.gd-card-metric strong {
    font-family: var(--font-numbers);
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--primary);
}

.gd-card-metric span {
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    font-weight: 500;
}

.gd-card-intro {
    font-size: 0.93rem;
    line-height: 1.78;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.gd-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.gd-tag {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.28rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.gd-card:hover .gd-tag {
    border-color: rgba(184, 134, 58, 0.35);
    color: var(--accent-hover);
}

.gd-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-hover);
}

.gd-card-cta svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.4s var(--gd-ease);
}

.gd-card:hover .gd-card-cta svg {
    transform: translateX(5px);
}

/* ============================================================
   3. "What every TerraBlaze guide brings" — standards band
   ============================================================ */

.gd-standards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.gd-standard {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.3rem 1.8rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--gd-ease), box-shadow 0.4s var(--gd-ease), border-color 0.4s var(--gd-ease);
}

.gd-standard:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(184, 134, 58, 0.45);
}

.gd-standard-num {
    font-family: var(--font-numbers);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.9rem;
}

.gd-standard-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: var(--weight-heading);
    letter-spacing: var(--track-snug);
    color: var(--primary);
    margin-bottom: 0.7rem;
}

.gd-standard-desc {
    font-size: 0.92rem;
    line-height: 1.78;
    color: var(--text-muted);
}

/* ============================================================
   4. Profile modal
   ============================================================ */

.gd-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(4, 18, 32, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.gd-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.gd-modal {
    display: none;
    width: 100%;
    max-width: 940px;
    margin: auto;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
    transform: translateY(36px) scale(0.985);
    transition: transform 0.5s var(--gd-ease), opacity 0.4s ease;
    opacity: 0;
}

.gd-modal.is-active {
    display: block;
}

.gd-modal-overlay.is-open .gd-modal.is-active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.gd-modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    z-index: 20;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(7, 27, 47, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform var(--transition-normal), background-color var(--transition-fast), border-color var(--transition-fast);
}

.gd-modal-close svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.gd-modal-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
}

.gd-modal-close:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 3px;
}

/* --- Modal masthead --- */

.gd-modal-top {
    display: grid;
    grid-template-columns: 300px 1fr;
    background:
        radial-gradient(ellipse 60% 70% at 100% 0%, rgba(184, 134, 58, 0.22), transparent 60%),
        linear-gradient(150deg, var(--primary-dark) 0%, var(--primary) 62%, var(--primary-light) 100%);
    color: var(--text-light);
}

.gd-modal-portrait {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    background: var(--primary-dark);
}

.gd-modal-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--gd-pos, 50% 30%);
    transform: scale(var(--gd-zoom, 1.02));
}

.gd-modal-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 55%, rgba(7, 27, 47, 0.55) 100%);
}

.gd-modal-head {
    padding: 2.6rem 2.6rem 2.3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gd-modal-eyebrow {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.26);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 1.1rem;
}

.gd-modal-eyebrow svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.gd-modal-name {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.2vw, 2.15rem);
    font-weight: var(--weight-heading);
    letter-spacing: var(--track-tight);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.gd-modal-role {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-soft);
    margin-bottom: 1.3rem;
}

.gd-modal-tagline {
    font-size: 1rem;
    line-height: 1.72;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    max-width: 46ch;
}

.gd-modal-quickstats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.gd-modal-quickstat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gd-modal-quickstat strong {
    font-family: var(--font-numbers);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.1;
}

.gd-modal-quickstat span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: rgba(255, 255, 255, 0.62);
}

/* --- Modal body --- */

.gd-modal-body {
    padding: 2.6rem;
}

.gd-block + .gd-block {
    margin-top: 2.6rem;
}

.gd-block-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-hover);
    margin-bottom: 1.1rem;
}

.gd-block-title::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(184, 134, 58, 0.45), transparent);
}

.gd-prose p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.gd-prose p + p {
    margin-top: 1.1rem;
}

.gd-pullquote {
    margin-top: 1.5rem;
    padding: 1.4rem 1.6rem;
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    background: linear-gradient(100deg, rgba(184, 134, 58, 0.09), rgba(184, 134, 58, 0.02));
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.65;
    color: var(--primary);
}

/* Two-column detail panels */
.gd-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.gd-panel {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.5rem 1.6rem;
}

.gd-panel-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: var(--track-snug);
    margin-bottom: 1rem;
}

.gd-panel-title svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
    flex: 0 0 auto;
}

.gd-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.gd-list li {
    position: relative;
    padding-left: 1.55rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.gd-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.gd-list li strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Chip rows (languages, certifications) */
.gd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gd-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gd-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 134, 58, 0.5);
    box-shadow: var(--shadow-md);
}

.gd-chip svg {
    width: 14px;
    height: 14px;
    fill: var(--accent);
}

.gd-chip em {
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.76rem;
}

/* Philosophy trio — leadership / safety / customer focus */
.gd-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.gd-trio-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--gd-ease), box-shadow 0.4s var(--gd-ease), border-color 0.4s var(--gd-ease);
}

.gd-trio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 134, 58, 0.45);
}

.gd-trio-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 8px 18px -8px rgba(14, 46, 74, 0.5);
    margin-bottom: 1rem;
    transition: transform 0.4s var(--gd-ease);
}

.gd-trio-card:hover .gd-trio-icon {
    transform: scale(1.08) rotate(-5deg);
}

.gd-trio-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--accent);
}

.gd-trio-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: var(--track-snug);
    margin-bottom: 0.55rem;
}

.gd-trio-desc {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--text-muted);
}

/* Achievements timeline */
.gd-timeline {
    position: relative;
    padding-left: 1.9rem;
}

.gd-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(184, 134, 58, 0.15));
}

.gd-timeline li {
    position: relative;
    padding-bottom: 1.25rem;
}

.gd-timeline li:last-child {
    padding-bottom: 0;
}

.gd-timeline li::before {
    content: '';
    position: absolute;
    left: -1.9rem;
    top: 0.45em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 134, 58, 0.14);
}

.gd-timeline strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.gd-timeline span {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Reasons travellers love this guide */
.gd-reasons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gd-reason {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    border-radius: var(--border-radius-md);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: background-color var(--transition-normal), border-color var(--transition-normal), transform 0.35s var(--gd-ease);
}

.gd-reason:hover {
    transform: translateX(4px);
    background: var(--bg-white);
    border-color: rgba(184, 134, 58, 0.45);
}

.gd-reason-check {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(184, 134, 58, 0.14);
    margin-top: 0.1rem;
}

.gd-reason-check svg {
    width: 13px;
    height: 13px;
    fill: var(--accent-hover);
}

.gd-reason p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.gd-reason p strong {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.94rem;
    margin-bottom: 0.15rem;
}

/* Action photo inside the profile */
.gd-modal-shot {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--primary-dark);
}

.gd-modal-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--gd-shot-pos, 50% 45%);
    transform: scale(var(--gd-shot-zoom, 1.06));
    transition: transform 1s var(--gd-ease);
}

.gd-modal-shot:hover img {
    transform: scale(calc(var(--gd-shot-zoom, 1.06) * 1.06));
}

.gd-modal-shot figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 1.4rem 1rem;
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(to top, rgba(4, 18, 32, 0.88), transparent);
}

/* Closing "why they're exceptional" panel */
.gd-signature {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    padding: 2.3rem 2.2rem;
    color: var(--text-light);
    background:
        radial-gradient(ellipse 55% 70% at 92% 6%, rgba(184, 134, 58, 0.26), transparent 58%),
        linear-gradient(150deg, var(--primary-dark), var(--primary) 65%, var(--primary-light));
}

.gd-signature-mark {
    position: absolute;
    right: -12px;
    bottom: -22px;
    width: 168px;
    opacity: 0.09;
    fill: #fff;
    pointer-events: none;
}

.gd-signature-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-soft);
    margin-bottom: 0.9rem;
}

.gd-signature-title {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: var(--weight-heading);
    letter-spacing: var(--track-snug);
    line-height: 1.35;
    margin-bottom: 1rem;
    position: relative;
}

.gd-signature p {
    font-size: 0.97rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 300;
    position: relative;
    max-width: 62ch;
}

.gd-signature p + p {
    margin-top: 0.9rem;
}

/* Modal footer CTA */
.gd-modal-foot {
    margin-top: 2.4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.3rem;
}

.gd-modal-foot-text {
    max-width: 42ch;
}

.gd-modal-foot-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: var(--weight-heading);
    color: var(--primary);
    letter-spacing: var(--track-snug);
    margin-bottom: 0.3rem;
}

.gd-modal-foot-text span {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.gd-modal-foot .btn {
    padding: 0.85rem 1.9rem;
    font-size: 0.92rem;
}

/* Dark "ghost" button that works on the light modal body */
.gd-btn-quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary);
    background: transparent;
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.35s var(--gd-ease), border-color var(--transition-fast), background-color var(--transition-fast);
}

.gd-btn-quiet:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: rgba(14, 46, 74, 0.04);
}

body.gd-modal-open {
    overflow: hidden;
}

/* ============================================================
   5. Responsive
   ============================================================ */

/* Four guides on the three-up grid leave a lone card on the second row —
   drop it into the middle column instead of stranding it on the left.
   Scoped to the three-up state: below 1100px the grid is even at two-up,
   and at one-up an explicit column would create a phantom second track. */
@media (min-width: 1101px) {
    .gd-grid > .gd-card:nth-child(4):last-child {
        grid-column: 2 / 3;
    }
}

@media (max-width: 1100px) {
    .gd-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }

    .gd-grid > .gd-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 460px;
        justify-self: center;
    }
}

@media (max-width: 992px) {
    .gd-trust-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.4rem 1rem;
    }

    .gd-trust-item:nth-child(odd) + .gd-trust-item::before {
        display: block;
    }

    .gd-trust-item:nth-child(odd)::before {
        display: none;
    }

    .gd-standards {
        grid-template-columns: 1fr 1fr;
    }

    .gd-modal-top {
        grid-template-columns: 1fr;
    }

    .gd-modal-portrait {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .gd-modal-portrait img {
        object-position: var(--gd-pos-wide, var(--gd-pos, 50% 25%));
    }

    .gd-modal-portrait::after {
        background: linear-gradient(to top, rgba(7, 27, 47, 0.6), transparent 60%);
    }

    .gd-modal-head {
        padding: 2rem 1.9rem;
    }

    .gd-modal-body {
        padding: 2rem 1.9rem 2.2rem;
    }

    .gd-trio {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .gd-trust-inner {
        grid-template-columns: 1fr;
        gap: 1.1rem;
        padding: 1.4rem 0;
    }

    .gd-trust-item::before {
        display: none !important;
    }

    .gd-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .gd-grid > .gd-card:last-child:nth-child(odd) {
        max-width: none;
    }

    .gd-standards {
        grid-template-columns: 1fr;
    }

    .gd-modal-overlay {
        padding: 0;
        align-items: stretch;
    }

    .gd-modal {
        border-radius: 0;
        min-height: 100%;
        max-width: none;
    }

    .gd-modal-name {
        font-size: 1.55rem;
    }

    .gd-modal-quickstats {
        gap: 1.2rem;
    }

    .gd-modal-quickstat strong {
        font-size: 1.25rem;
    }

    .gd-duo,
    .gd-reasons {
        grid-template-columns: 1fr;
    }

    .gd-modal-body {
        padding: 1.7rem 1.25rem 2rem;
    }

    .gd-modal-head {
        padding: 1.8rem 1.25rem;
    }

    .gd-block + .gd-block {
        margin-top: 2.1rem;
    }

    .gd-signature {
        padding: 1.8rem 1.4rem;
    }

    .gd-modal-foot {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .gd-modal-foot-text {
        max-width: none;
    }

    .gd-modal-foot .btn,
    .gd-modal-foot .gd-btn-quiet {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gd-card,
    .gd-card::after,
    .gd-card-media img,
    .gd-modal,
    .gd-modal-shot img,
    .gd-standard,
    .gd-trio-card,
    .gd-trio-icon,
    .gd-reason,
    .gd-chip,
    .gd-card-cta svg {
        transition: none !important;
    }

    .gd-card:hover,
    .gd-standard:hover,
    .gd-trio-card:hover,
    .gd-reason:hover,
    .gd-chip:hover {
        transform: none;
    }

    .gd-card:hover .gd-card-media img,
    .gd-modal-shot:hover img {
        transform: scale(var(--gd-zoom, 1.02));
    }
}
