/**
 * Multi-page mobile-first layout — royal theme extension
 */

body.royal-site main {
    padding-top: 72px;
}

/* ── Home brand hero ── */
.home-hero {
    padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.5rem, 8vw, 5rem);
}

.home-hero__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 767px) {
    .home-hero__photo-wrap {
        order: -1;
    }
}

@media (min-width: 768px) {
    .home-hero__grid {
        grid-template-columns: 1fr;
        max-width: 760px;
    }
}

.home-hero--no-banner .home-hero__grid {
    grid-template-columns: 1fr;
}

.home-hero__wordmark {
    display: block;
    width: min(640px, 100%);
    height: auto;
    margin: 0 auto 1.5rem;
    object-fit: contain;
    filter: drop-shadow(0 10px 28px rgba(110, 168, 255, 0.12));
}

@media (min-width: 768px) {
    .home-hero__wordmark {
        margin-left: 0;
    }

    .home-hero--no-banner .home-hero__brand-panel {
        text-align: left;
    }
}

.home-hero__logo-wrap--wordmark {
    margin-bottom: 0.5rem;
}

.home-hero__brand-panel {
    text-align: center;
}

@media (min-width: 768px) {
    .home-hero__brand-panel {
        text-align: left;
    }
}

.home-hero__logo {
    width: min(220px, 70vw);
    height: auto;
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 8px 24px rgba(201, 169, 98, 0.25));
}

@media (min-width: 768px) {
    .home-hero__logo {
        margin-left: 0;
    }
}

.home-hero__photo-wrap {
    position: relative;
    width: 100%;
    max-width: min(560px, 100%);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .home-hero__photo-wrap {
        margin: 0;
        max-width: 100%;
    }
}

.home-hero__photo-frame {
    padding: 0.65rem;
    overflow: hidden;
}

.home-hero__photo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: calc(var(--royal-radius, 18px) - 4px);
    object-fit: contain;
    object-position: center;
    aspect-ratio: 3 / 2;
    background: radial-gradient(circle at 50% 35%, rgba(110, 168, 255, 0.08), rgba(3, 7, 17, 0.4));
}

.home-hero__photo-glow {
    position: absolute;
    inset: -6%;
    background: radial-gradient(circle at 50% 40%, rgba(110, 168, 255, 0.18), transparent 68%);
    pointer-events: none;
    z-index: -1;
}

.home-hero__hype {
    margin-top: 0.75rem;
}

.home-hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: var(--royal-platinum);
    margin-bottom: 0.5rem;
}

.home-hero__title {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--royal-gold-light);
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

.home-hero__tagline {
    color: var(--royal-silver);
    max-width: 36rem;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
}

@media (min-width: 768px) {
    .home-hero__tagline {
        margin-left: 0;
    }
}

.home-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .home-hero__chips {
        justify-content: flex-start;
    }
}

.home-chip {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    color: var(--royal-gold-light);
    background: rgba(201, 169, 98, 0.12);
    border: 1px solid rgba(201, 169, 98, 0.28);
}

.home-chip--live {
    color: #86efac;
    border-color: rgba(134, 239, 172, 0.35);
    background: rgba(34, 197, 94, 0.12);
}

/* ── Site hub grid ── */
.site-hub {
    padding: 0 0 clamp(3rem, 8vw, 5rem);
}

.site-hub__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    .site-hub__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .site-hub__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hub-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.35rem;
    min-height: 140px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hub-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--royal-shadow-hover);
}

.hub-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(201, 169, 98, 0.12);
    border: 1px solid rgba(201, 169, 98, 0.22);
}

.hub-card__icon .ui-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.hub-card__title {
    font-family: var(--royal-font-display);
    font-size: 1.15rem;
    color: var(--royal-gold-light);
}

.hub-card__desc {
    font-size: 0.88rem;
    color: var(--royal-silver);
    line-height: 1.5;
    flex: 1;
}

.hub-card__arrow {
    font-size: 0.75rem;
    color: var(--royal-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ── Link tree ── */
.link-tree {
    padding: 0 0 4rem;
}

.link-tree__stack {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-tree__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--royal-radius-sm, 12px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.link-tree__item:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 169, 98, 0.35);
}

.link-tree__item--whatsapp {
    border-color: rgba(37, 211, 102, 0.35);
    background: linear-gradient(145deg, rgba(37, 211, 102, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.link-tree__item--gold {
    border-color: rgba(201, 169, 98, 0.4);
}

.link-tree__icon {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.link-tree__icon .ui-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.link-tree__item--whatsapp .link-tree__icon {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.25);
}

.link-tree__body {
    flex: 1;
    min-width: 0;
}

.link-tree__label {
    display: block;
    font-weight: 700;
    color: var(--royal-platinum);
    font-size: 0.95rem;
}

.link-tree__desc {
    display: block;
    font-size: 0.78rem;
    color: var(--royal-silver);
    margin-top: 0.15rem;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.link-tree__chevron {
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

/* ── Downloads hub ── */
.downloads-hub {
    padding: 0 0 4rem;
}

.downloads-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .downloads-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.download-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    min-height: 180px;
    transition: transform 0.25s ease;
}

.download-card:hover {
    transform: translateY(-3px);
}

.download-card--primary {
    border-color: rgba(201, 169, 98, 0.35);
    background: linear-gradient(145deg, rgba(201, 169, 98, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.download-card__title {
    font-family: var(--royal-font-display);
    font-size: 1.1rem;
    color: var(--royal-gold-light);
    margin-bottom: 0.5rem;
}

.download-card__desc {
    font-size: 0.88rem;
    color: var(--royal-silver);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1rem;
}

.download-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── Content pages ── */
.content-page {
    padding: 0 0 4rem;
}

.content-page section + section {
    margin-top: 3rem;
}

.competency-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.competency-tags li {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    color: var(--royal-gold-light);
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.22);
}

.live-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.live-app-card {
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
}

.live-app-card strong {
    display: block;
    color: var(--royal-platinum);
    margin-bottom: 0.25rem;
}

.live-app-card span {
    color: var(--royal-silver);
    font-size: 0.75rem;
}

/* Nav logo PNG — legacy fallback if brand-logo partial not used */
.logo--png .logo__img {
    width: auto;
    height: 40px;
    max-width: min(180px, 42vw);
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(201, 169, 98, 0.2));
}

.royal-footer__brand-row {
    margin-bottom: 0.5rem;
}

/* Page hero brand banner */
.page-hero__media {
    width: 100%;
    max-width: min(520px, 100%);
    margin: 0 auto;
}

.page-hero__brand-banner,
.page-hero__illus {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 3 / 2;
    border-radius: var(--royal-radius, 18px);
    border: 1px solid rgba(201, 169, 98, 0.22);
    background: rgba(10, 22, 40, 0.55);
    box-shadow: var(--royal-shadow);
}

@media (min-width: 768px) {
    .page-hero--split .page-hero__media {
        margin: 0 0 0 auto;
        max-width: 100%;
    }
}

.nav-links a.is-active {
    color: var(--royal-gold-light);
}

.nav-drawer__links a.is-active {
    color: var(--royal-gold-light);
    border-left: 2px solid var(--royal-gold);
    padding-left: 0.65rem;
}

/* ── Experience hub (widget layout — no timeline) ── */
.exp-hub {
    padding-bottom: 5rem;
}

.exp-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .exp-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.exp-stat {
    padding: 1.15rem 1rem;
    text-align: center;
    border-radius: var(--royal-radius-sm, 12px);
}

.exp-stat__value {
    display: block;
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--royal-gold-light);
    line-height: 1.1;
}

.exp-stat__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--royal-silver);
    line-height: 1.35;
}

.exp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--royal-gold-light);
    background: rgba(201, 169, 98, 0.12);
    border: 1px solid rgba(201, 169, 98, 0.28);
}

.exp-pill--live {
    color: #0a0e14;
    background: linear-gradient(135deg, var(--royal-gold-light) 0%, var(--royal-gold) 100%);
    border-color: transparent;
}

.exp-pill--muted {
    color: var(--royal-silver);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.exp-featured {
    padding: 1.75rem 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: var(--royal-radius, 18px);
    border-color: rgba(201, 169, 98, 0.35);
    background: linear-gradient(145deg, rgba(201, 169, 98, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

@media (min-width: 768px) {
    .exp-featured {
        padding: 2.25rem 2rem;
    }
}

.exp-featured__badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.exp-featured__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.exp-featured__role {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--royal-platinum);
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.exp-featured__company {
    font-size: 1rem;
    font-weight: 700;
    color: var(--royal-gold);
    margin: 0 0 0.5rem;
}

.exp-featured__loc {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--royal-silver);
    margin: 0;
}

.exp-featured__index {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    color: rgba(201, 169, 98, 0.22);
    flex-shrink: 0;
}

.exp-section-head {
    margin-bottom: 1.5rem;
}

.exp-section-head .section-title {
    margin-top: 0.35rem;
}

.exp-role-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 900px) {
    .exp-role-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

.exp-role-card {
    padding: 1.35rem 1.25rem;
    border-radius: var(--royal-radius-sm, 12px);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.exp-role-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.exp-role-card__index {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(201, 169, 98, 0.35);
    line-height: 1;
}

.exp-role-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.exp-role-card__role {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--royal-platinum);
    margin: 0 0 0.25rem;
    line-height: 1.35;
}

.exp-role-card__company {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--royal-gold);
    margin: 0 0 0.35rem;
}

.exp-role-card__loc {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--royal-silver);
    margin: 0 0 1rem;
}

.exp-role-card__details {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.85rem;
}

.exp-role-card__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    list-style: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--royal-gold-light);
    user-select: none;
}

.exp-role-card__toggle::-webkit-details-marker {
    display: none;
}

.exp-role-card__chevron {
    transition: transform 0.2s ease;
}

.exp-role-card__details[open] .exp-role-card__chevron {
    transform: rotate(90deg);
}

.exp-bullets {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.65rem;
}

.exp-bullets--featured {
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .exp-bullets--featured {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 1.25rem;
    }
}

.exp-bullets li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--royal-silver);
}

.exp-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--royal-gold);
    box-shadow: 0 0 8px rgba(201, 169, 98, 0.45);
}

.exp-cta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--royal-radius, 18px);
    border-color: rgba(201, 169, 98, 0.28);
}

@media (min-width: 768px) {
    .exp-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.75rem 2rem;
    }
}

.exp-cta__title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 1.35rem;
    color: var(--royal-platinum);
    margin: 0 0 0.35rem;
}

.exp-cta__text {
    font-size: 0.88rem;
    color: var(--royal-silver);
    margin: 0;
    max-width: 36rem;
}

.exp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    flex-shrink: 0;
}
