/* ==========================================================
   sections.css
   Page-section-specific styles: hero, story, philosophy,
   leadership, journey (timeline), research, gallery,
   credentials, and contact.
   Part of: Mohammed Shehzad Khan Portfolio v2.0
========================================================== */

/* ==========================================================
   HERO
========================================================== */

#hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 15% 50%, rgba(43, 92, 138, 0.04), transparent 50%),
                radial-gradient(circle at 85% 30%, rgba(196, 122, 58, 0.03), transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 5rem;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1.25rem;
    line-height: 1.05;
    background: linear-gradient(135deg, var(--accent), var(--accent-gradient));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: none;
    margin-bottom: 2.5rem;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg);
    border: 2px solid var(--warm-accent);
    box-shadow: -10px 10px 0 rgba(30, 58, 95, 0.1), 0 24px 60px rgba(15, 23, 42, 0.14);
    transition: transform 0.4s ease;
}

/* Scale portrait on hover (pointer devices only) */
@media (hover: hover) {
    .hero-image img:hover {
        transform: scale(1.02);
    }
}

/* Monogram fallback when portrait image fails to load */
.hero-image .monogram {
    width: 460px;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fraunces", serif;
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent);
    background: linear-gradient(135deg, var(--bg-accent), var(--bg-surface));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(15,23,42,.14);
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.hero-meta li,
.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==========================================================
   ABOUT / PHILOSOPHY
========================================================== */

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

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-quote {
    font-family: "Fraunces", serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.4;
    color: var(--accent);
    position: relative;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--warm-accent);
    background: var(--accent-tint);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-style: italic;
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-pillar h3 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

/* ==========================================================
   JOURNEY / TIMELINE
========================================================== */

.journey-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 4rem;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

/* Mobile: year hidden, dot + line at 24px, card has 64px left padding
   matching the original stacked layout. The grid is set on .tl-item
   on desktop only â€” the @media (max-width: 899px) block below
   reverts to padding-based layout for narrow viewports. */
.tl-item {
    position: relative;
    padding-left: 64px;
    margin-bottom: 3rem;
}

.tl-dot {
    position: absolute;
    left: 17px;
    top: 1.25rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--accent);
    z-index: 2;
    box-shadow: 0 0 0 4px white, 0 0 8px rgba(30,58,95,0.3);
}

.tl-card {
    padding: 2.5rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    min-width: 0;
    border-left: 3px solid var(--accent);
}

.tl-card-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .tl-card-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .tl-card-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.tl-card:hover {
    transform: translateX(8px);
}

.tl-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--space-2);
}

.tl-title {
    font-family: "Fraunces", serif;
    font-size: 1.3rem;
    font-weight: 800;
}

.tl-date {
    font-weight: 700;
    background: var(--bg);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.tl-org {
    margin-bottom: var(--space-1);
    font-weight: 600;
}

.tl-loc {
    margin-bottom: var(--space-3);
    font-weight: 400;
}

.tl-desc {
    margin-bottom: var(--space-3);
    font-size: 1.1rem;
    line-height: 1.75;
}

/* .tl-meta removed - using full-width layout now */

.tl-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tl-highlights li {
    font-family: "Manrope", sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.tl-highlights svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 0.125rem;
}

.tl-bullets {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    width: 100%;
    text-align: left;
}

/* Multi-column layout removed â€“ bullets now span the full content width
   of the timeline card rather than being compressed into a narrow first
   column.  The list flows naturally as a single column on all screen
   sizes, preserving readability and eliminating the empty rightâ€‘hand
   column. */
.tl-bullets li {
    margin-bottom: 0.5rem;
    break-inside: avoid;
}

/* Verified Highlights / Achievements */
.tl-achievements {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.tl-achievements .tl-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.tl-achievement-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 2rem;
}

.tl-achievement-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    break-inside: avoid;
}

@media (max-width: 767px) {
    .tl-achievement-list {
        columns: 1;
    }
}

.tl-achievement-list li::before {
    content: "âœ“";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

@media (min-width: 900px) {
    /* The year is a genuine grid column, not padding reserved on .tl-item.
       Layout:
         [year column | gap | card column]
       The vertical timeline line sits on the right edge of the year
       column, and the dot is centred on that line. The card now
       occupies the full remaining horizontal canvas. */
    .tl-item {
        display: grid;
        grid-template-columns: 110px 1fr;
        column-gap: 24px;
        padding-left: 0;
        align-items: start;
    }

    .timeline::before { left: 122px; }

    .tl-dot {
        position: absolute;
        left: 122px;
        transform: translateX(-50%);
        top: 1.5rem;
    }

    .tl-year {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        text-align: right;
        font-weight: 700;
        color: var(--accent);
        font-size: 1.1rem;
        padding-top: 0.4rem;
    }
}

@media (max-width: 899px) {
    .tl-year { display: none; }
}

/* ==========================================================
   RESEARCH
========================================================== */

.research-card {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
    background: var(--accent-tint);
    border-left: 4px solid var(--accent);
}

@media (min-width: 768px) {
    /* Removed for stacked layout */
}

@media (min-width: 1024px) {
    /* Removed for stacked layout */
}

.research-title {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.research-content p {
    max-width: none;
}

.research-feedback {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    align-self: start;
}

.feedback-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.feedback-quote p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: none;
}

.feedback-quote h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feedback-quote ul {
    margin-bottom: 2rem;
    padding-left: 1.25rem;
}

.feedback-quote li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    max-width: none;
}

.journey-progression {
    text-align: center;
    color: var(--accent);
    opacity: 0.6;
    margin: 1.5rem 0;
    font-size: 1.25rem;
}

.feedback-quote blockquote {
    border-left: 3px solid var(--accent-soft);
    padding-left: 1rem;
    font-style: italic;
}

.feedback-quote blockquote p {
    margin-bottom: 0;
}

.feedback-quote p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   VIDEO
========================================================== */

.video-wrap {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #1E2D45;
    margin: 0 auto;
}

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Placeholder shown until a real video ID is supplied */
.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
}

.video-play {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
}

.video-note {
    font-family: "Manrope", sans-serif;
    font-size: 0.95rem;
    max-width: 32ch;
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================
   GALLERY (Classroom Moments â€” Â§9 Authenticity beat)
========================================================= */

.moments-intro {
    font-size: 1.15rem;
    max-width: 720px;
    margin-bottom: 3rem;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.gallery-filter {
    font-family: "Manrope", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-filter:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.gallery-filter.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    margin: 0;
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-item figure {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item figure:hover,
.gallery-item figure:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent-soft);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.gallery-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
}

/* Placeholder state for the Classroom in Practice section.
   Honest, no invented images. */
.gallery-empty p {
    max-width: 60ch;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==========================================================
   CREDENTIALS — notes (name variants, safeguarding)
========================================================= */

.cred-intro {
    max-width: 68ch;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 2.5rem;
}

.cred-footnote {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cred-name-note {
    margin-top: 1.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-soft, #f8fafc);
    border-left: 3px solid var(--accent-soft, #cbd5e1);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.cred-name-note strong {
    color: var(--ink, #1e293b);
    font-weight: 600;
}

.cred-safeguard {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.cred-safeguard strong {
    color: var(--ink, #1e293b);
    font-weight: 600;
}

/* â”€â”€ Lightbox (built by gallery.js) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(17, 24, 39, 0.92);
}

.lightbox[hidden] {
    display: none;
}

.lightbox__figure {
    margin: 0;
    max-width: min(100%, 900px);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lightbox__img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #fff;
}

.lightbox__caption {
    color: #fff;
    font-size: 0.95rem;
    text-align: center;
    max-width: 60ch;
    margin: 0 auto;
}

.lightbox__btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background var(--transition);
}

.lightbox__btn:hover,
.lightbox__btn:focus-visible {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox__close {
    top: 1.25rem;
    right: 1.25rem;
}

.lightbox__prev {
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

/* â”€â”€ Research additions (Stage 6) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.research-sub {
    font-family: "Fraunces", serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin: 2rem 0 0.75rem;
}

/* â”€â”€ Credentials: languages + safeguarding (Stage 6) â”€â”€â”€ */
.lang-list {
    display: grid;
    gap: 0.6rem;
    max-width: 62ch;
}

.lang-list li {
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
}

.lang-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.safeguard-note {
    color: var(--text-secondary);
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    max-width: none;
}

/* ==========================================================
   CONTACT
========================================================== */

#contact {
    background: #111827;
    color: rgba(255,255,255,0.85);
}

#contact h2 { color: white; }

#contact .eyebrow {
    background: rgba(255,255,255,0.1);
    color: white;
}

#contact .clabel { color: rgba(255,255,255,0.6); }
/* Dark-section overrides: the global `p` and `em` rules use light-theme
   colours (#374151 / #1E3A5F) which fail contrast on #111827 (1.7:1 / 1.5:1).
   Scoped here so other sections are untouched. Measured ratios vs #111827:
   rgba(255,255,255,.85) = 12.9:1, --warm-accent = 5.2:1 (WCAG 2.2 AA pass). */
#contact p { color: rgba(255,255,255,0.85); }
#contact em { color: var(--warm-accent); }
#contact .btn-primary { border-color: rgba(255,255,255,0.55); }
#contact .contact-link { color: white; border-color: rgba(255,255,255,0.1); }
#contact .contact-link:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
}

@media (min-width: 900px) {
    .contact-layout {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.contact-intro {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.contact-link:hover {
    transform: translateX(8px);
    border-color: var(--accent-soft);
    box-shadow: var(--shadow-card);
}

.clabel {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 80px;
}

.contact-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-image img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 60px rgba(15,23,42,.1);
}

/* Fallback when the contact portrait is missing or fails to load.
   A styled monogram is more professional than a broken-image icon. */
.contact-image.media-missing,
.contact-image[data-media-missing] {
    justify-content: center;
    min-height: 280px;
}

.contact-image.media-missing::after {
    content: "MSK";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 400px;
    max-width: 70vw;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent, #1e3a5f), var(--accent-soft, #334155));
    color: #fff;
    font-family: "Fraunces", serif;
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: 0 24px 60px rgba(15,23,42,.15);
}


/* ==========================================================
   STORY SECTION
========================================================== */

.story-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
}

.story-main {
    max-width: 760px;
}

.story-main p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.story-intro {
    font-size: 1.35rem !important;
    line-height: 1.7 !important;
    color: var(--text-primary) !important;
    margin-bottom: 3.5rem !important;
}

.story-main h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 4rem;
    margin-bottom: 1.25rem;
}

.story-sidebar-sticky {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


/* Impact Section Styles */
.trust-signal {
    max-width: 65ch;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.trust-signal a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.trust-signal a:hover {
    text-decoration: underline;
}

.impact-hook {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 70ch;
    margin-bottom: 2rem;
    line-height: 1.6;
    border-left: 3px solid var(--accent);
    padding-left: 1.25rem;
}

.impact-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.impact-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
}

.impact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.impact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Recruiter Routing */
.recruiter-routing {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.route-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.route-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.route-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.route-action {
    margin-bottom: 1rem;
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

.route-link {
    margin-bottom: 0;
}

.route-wc {
    margin: 0;
    box-shadow: none;
    border: 1px solid var(--border);
}


.cred-footnote { margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-secondary); font-style: italic; max-width: 60ch; }
.contact-link .contact-qr { margin-left: 0.75rem; border-radius: 4px; vertical-align: middle; width: 64px; height: 64px; object-fit: cover; }

/* Contact reveal-on-click: hide phone numbers, email, profile URLs,
   and QR thumbnails until the visitor expands the row. The label
   ("WeChat", "Email", etc.) stays visible so channels are discoverable. */
.contact-channel { display: flex; flex-direction: column; }

button.contact-link {
    appearance: none;
    background: transparent;
    border: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    width: 100%;
    justify-content: space-between;
}

button.contact-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.contact-link .chevron {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: inline-block;
}

.cval-link {
    color: var(--accent);
    text-decoration: none;
}

.cval-link:hover { text-decoration: underline; }

/* Contact Modal — shared lightbox for WeChat, WhatsApp, Email, LinkedIn */
.contact-modal-body { padding: 2rem; text-align: center; }
.contact-modal-channel { max-width: 480px; margin: 0 auto; }
.contact-modal-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.contact-modal-value { font-family: "Fraunces", serif; font-size: 1.6rem; font-weight: 700; color: var(--text-primary); margin: 0.75rem 0 1.25rem; word-break: break-word; }
.contact-modal-hint { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 1.25rem; }
.contact-modal-qr-wrap { display: flex; justify-content: center; margin-top: 1rem; }
.contact-modal-qr { width: 160px; height: 160px; border-radius: 8px; object-fit: contain; border: 1px solid var(--border); background: #fff; }
.contact-modal-actions { display: flex; justify-content: center; margin-top: 0.5rem; }

/* ==========================================================
   Languages strip + gallery slots (Phase 2 additions)
========================================================== */

.languages-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.lang-item {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.lang-item strong {
    color: var(--accent);
    font-weight: 700;
}

/* Gallery waiting state (Phase 2) */
.gallery-waiting-state {
    background: var(--bg-surface);
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 0;
    box-shadow: var(--shadow-subtle);
}

.gallery-waiting-state h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.gallery-waiting-state p {
    margin: 0 auto 2rem;
}

.gallery-waiting-state .see-me-teach {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    width: 100%;
}

.gallery-waiting-state .video-meta {
    margin-top: 1rem;
    color: var(--text-secondary);
}

/* ============================================================
   Hygiene additions (Commit 5)
   ============================================================ */

/* Edu notes – italic + muted */
.edu-note {
    font-style: italic;
    color: var(--text-muted);
}

/* Contact links – add margin-top */
.contact-links {
    margin-top: 2.5rem;
}

/* Modal tabs – hidden by default (JS toggles display via element.style) */
.modal-tabs {
    display: none;
}

/* Modal flex container (status badge + year) */
.modal-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Modal exhibit year */
.modal-exhibit-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748B;
}

/* Documentary evidence note */
.doc-evidence {
    font-size: 0.8rem;
    color: #64748B;
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Artefacts section */
.artefacts-intro {
    max-width: 72ch;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.artefacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.artefact-card {
    position: relative;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.artefact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.artefact-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.artefact-badge span {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--border);
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.artefact-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.artefact-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.artefact-video {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.artefact-video h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.artefact-video .video-meta {
    margin-top: 1rem;
    color: var(--text-secondary);
}

/* Testimonials section */
#testimonials {
    padding: var(--space-xl) 0;
}

#testimonials h2 {
    margin-bottom: 1.5rem;
}

.testimonial-note {
    max-width: 72ch;
    color: var(--text-secondary);
    font-style: italic;
}

/* Video frame responsive 16:9 */
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
}

.video-frame video,
.video-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}
