/* ===================================================================
   ActorCard — "Premiere / Cinema Noir"
   A dark, cinematic, luxury actor portfolio.
   Display: Playfair Display · UI: Manrope · Accent: champagne gold
   =================================================================== */

:root {
    --ink:        #0a0a0c;
    --ink-2:      #0f0e12;
    --panel:      #141318;
    --panel-2:    #1a181f;
    --panel-hi:   #211e27;

    --gold:       #c9a25f;
    --gold-bright:#e8cf9b;
    --gold-deep:  #93702f;
    --gold-glow:  rgba(201, 162, 95, 0.35);

    --cream:      #f4ecde;
    --text:       #ece6da;
    --muted:      #9c958a;
    --faint:      #6b655d;

    --hairline:   rgba(232, 207, 155, 0.14);
    --hairline-2: rgba(232, 207, 155, 0.08);
    --surface-br: rgba(232, 207, 155, 0.12);

    --radius:     16px;
    --radius-sm:  11px;
    --shadow:     0 24px 60px -20px rgba(0, 0, 0, 0.75);
    --shadow-gold:0 18px 50px -22px rgba(201, 162, 95, 0.45);

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-ui: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Lock horizontal panning: the page must never move left/right (esp. mobile).
   Inner scrollers (e.g. the photos strip) still scroll, but can't drag the page. */
html, body {
    overflow-x: hidden;
    overscroll-behavior-x: none;
    max-width: 100%;
}

body {
    font-family: var(--font-ui);
    background: var(--ink);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    position: relative;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Film-grain + vignette overlay over everything */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ====================  CINEMATIC BACKDROP  ==================== */
.background-blobs {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(201, 162, 95, 0.16), transparent 55%),
        radial-gradient(100% 70% at 50% 120%, rgba(60, 40, 90, 0.12), transparent 60%),
        linear-gradient(180deg, #0b0a0e 0%, #08070a 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}
.blob-1 {
    width: 520px; height: 520px;
    top: -180px; left: 50%; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(201, 162, 95, 0.30), transparent 70%);
    animation: breathe 9s ease-in-out infinite;
}
.blob-2 {
    width: 360px; height: 360px;
    bottom: 4%; left: -120px;
    background: radial-gradient(circle, rgba(123, 86, 168, 0.20), transparent 70%);
    animation: breathe 11s ease-in-out infinite 1s;
}
.blob-3 {
    width: 320px; height: 320px;
    top: 40%; right: -120px;
    background: radial-gradient(circle, rgba(160, 70, 60, 0.16), transparent 70%);
    animation: breathe 13s ease-in-out infinite 2s;
}

/* Vignette */
.background-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(120% 100% at 50% 35%, transparent 50%, rgba(0,0,0,0.55) 100%);
}

@keyframes breathe {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.45; }
    50%      { transform: translateX(-50%) scale(1.12); opacity: 0.65; }
}
.blob-2, .blob-3 { transform: none; }
@keyframes breatheSide {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50%      { transform: scale(1.15); opacity: 0.6; }
}
.blob-2, .blob-3 { animation-name: breatheSide; }

/* ====================  LAYOUT  ==================== */
.container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 3.5rem 1.25rem 4rem;
    position: relative;
    z-index: 1;
}

/* ====================  PROFILE CARD  ==================== */
.profile-card {
    position: relative;
    text-align: center;
    padding: 2.5rem 1.75rem 2rem;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        var(--panel);
    border: 1px solid var(--surface-br);
    box-shadow: var(--shadow);
    overflow: hidden;
}
/* top gold hairline glint */
.profile-card::before {
    content: "";
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.6;
}

.profile-glow {
    position: absolute;
    top: -40%; left: 50%;
    width: 360px; height: 360px;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--gold-glow), transparent 65%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
    animation: breatheSide 7s ease-in-out infinite;
}

.profile-content { position: relative; z-index: 1; }

/* ---- Avatar / headshot with spotlight ring ---- */
.avatar-wrapper {
    position: relative;
    width: 132px; height: 132px;
    margin: 0 auto 1.5rem;
}
.avatar-pulse {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--gold-deep), var(--gold-bright), var(--gold), var(--gold-deep));
    opacity: 0.55;
    filter: blur(7px);
    animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar-container {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(145deg, var(--gold-bright), var(--gold-deep));
    box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 18px 40px -12px rgba(0,0,0,0.8);
}
.avatar-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: var(--panel-2);
    filter: saturate(0.92) contrast(1.04);
}

/* ---- Name & titles ---- */
.profile-info-wrapper { position: relative; }

.hero-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    padding-left: 0.42em;
}
.hero-kicker-rule {
    width: 34px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-kicker-rule:last-child { background: linear-gradient(90deg, var(--gold), transparent); }

.profile-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.1rem, 7vw, 2.9rem);
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: var(--cream);
    margin-bottom: 1rem;
    text-shadow: 0 2px 30px rgba(201, 162, 95, 0.15);
}

.title-badge {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.title-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
}
#profileTitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--gold-bright);
    letter-spacing: 0.01em;
    position: relative;
    padding-bottom: 0.55rem;
    margin-bottom: 0.35rem;
}
#profileTitle::after {
    content: "";
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 46px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.title-subtitle,
.title-subtitle-2,
.title-subtitle-3 {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.title-subtitle { color: var(--text); }

.profile-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 42ch;
    margin: 0 auto 1.35rem;
}

.profile-location {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.75rem;
}
.profile-location svg { width: 15px; height: 15px; opacity: 0.9; }

/* ---- Action buttons ---- */
.profile-action-buttons {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}
.profile-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1a1206;
    background: linear-gradient(145deg, var(--gold-bright), var(--gold));
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: var(--shadow-gold);
}
.profile-connect-btn svg { width: 17px; height: 17px; }
.profile-connect-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 22px 55px -18px rgba(201, 162, 95, 0.7);
}

.action-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 1.15rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--gold-bright);
    background: rgba(232, 207, 155, 0.04);
    border: 1px solid var(--surface-br);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.action-btn-secondary svg { width: 16px; height: 16px; }
.action-btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: rgba(232, 207, 155, 0.09);
    color: var(--gold-bright);
}

/* ====================  CONTENT SECTIONS  ==================== */
.content-sections {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.65rem;
}

/* ---- Compact social icon row (in hero) ---- */
.iconrow {
    flex-direction: row !important;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem !important;
    margin-top: 1.4rem;
}
.iconrow .link-card {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 13px;
    justify-content: center;
    overflow: hidden;
}
.iconrow .link-card::before { display: none; }
.iconrow .link-text,
.iconrow .link-card > svg { display: none; }
.iconrow .link-content { gap: 0; width: 100%; height: 100%; }
.iconrow .link-icon {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    border-radius: 13px;
}
.iconrow .link-icon-img {
    border-radius: 13px;
    /* Minimal gold glyphs on the dark tiles — on-theme; subtle brighten on hover */
    object-fit: contain;
    padding: 7px;
    transition: filter 0.3s ease, transform 0.3s ease;
}
.iconrow .link-card:hover .link-icon-img { filter: brightness(1.18); }
.iconrow .link-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 10px 22px -12px var(--gold-glow);
}

.section-header { margin-bottom: 1.1rem; }
.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}
.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--hairline), transparent);
}

/* ====================  LINK CARDS (Building / Socials)  ==================== */
.links-list,
#buildingGrid,
#iconRow {
    display: flex !important;
    flex-direction: column;
    gap: 0.7rem;
}

.link-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)), var(--panel);
    border: 1px solid var(--hairline-2);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}
.link-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}
.link-card:hover {
    transform: translateY(-3px);
    border-color: var(--surface-br);
    background: linear-gradient(180deg, rgba(232,207,155,0.07), rgba(232,207,155,0.02)), var(--panel-2);
    box-shadow: var(--shadow);
}
.link-card:hover::before { transform: scaleY(1); }

.link-content { display: flex; align-items: center; gap: 0.95rem; min-width: 0; }

.link-icon {
    width: 46px; height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--ink-2);
    border: 1px solid var(--hairline-2);
    overflow: hidden;
    font-size: 1.2rem;
}
.link-icon-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 11px;
}
.nobull-icon { object-fit: contain; padding: 5px; }

.link-text { min-width: 0; text-align: left; }
.link-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 0.01em;
    transition: color 0.25s ease;
}
.link-card:hover .link-title { color: var(--gold-bright); }
.link-subtitle {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-card > svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    color: var(--faint);
    transition: transform 0.28s ease, color 0.28s ease;
}
.link-card:hover > svg {
    color: var(--gold);
    transform: translate(3px, -3px);
}

/* ====================  REELS  ==================== */
.reels-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.reel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.6rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)), var(--panel);
    border: 1px solid var(--hairline-2);
    border-radius: var(--radius);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.reel-card:hover {
    transform: translateY(-4px);
    border-color: var(--surface-br);
    box-shadow: var(--shadow), var(--shadow-gold);
}
.reel-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 11px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(0,0,0,0.6);
}
.reel-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: 0;
}
.reel-caption {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 0.6rem 0.45rem;
}
.reel-caption .link-title { font-size: 1.02rem; }
.reel-caption .link-subtitle { white-space: normal; }

/* ====================  COMING SOON placeholder  ==================== */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 120px;
    padding: 2.25rem 1rem;
    text-align: center;
    border: 1px dashed var(--surface-br);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(232, 207, 155, 0.04), transparent);
}
.coming-soon-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--gold-bright);
}
.coming-soon-sub {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}

/* ====================  STATS / VITALS  ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0.85rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)), var(--panel);
    border: 1px solid var(--hairline-2);
    border-radius: var(--radius-sm);
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.stat:hover { border-color: var(--surface-br); transform: translateY(-2px); }
.stat-wide { grid-column: 1 / -1; }
.stat-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}
.stat-value {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--cream);
    line-height: 1.2;
}
@media (max-width: 420px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    /* 9 vitals don't divide by 2 — let the last one (Languages) span the row */
    .stats-grid > .stat:last-child { grid-column: 1 / -1; }
}

/* ====================  PHOTOS FILM-STRIP  ==================== */
.photos-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 0.6rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-deep) transparent;
}
.photos-strip::-webkit-scrollbar { height: 6px; }
.photos-strip::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 3px; }
.photos-strip::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 3px; }
.photo-item {
    position: relative;
    flex: 0 0 auto;
    width: 124px;
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
    border-radius: 11px;
    overflow: hidden;
    background: var(--ink-2);
    border: 1px solid var(--hairline-2);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.2) contrast(1.04);
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), filter 0.5s ease;
}
.photo-item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.photo-item:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -16px var(--gold-glow);
}
.photo-item:hover img { transform: scale(1.07); filter: grayscale(0) contrast(1.06); }
.photo-item:hover::after { opacity: 1; }
.photo-item img { cursor: zoom-in; }
.photo-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 1;
    pointer-events: none;
    padding: 0.85rem 0.6rem 0.5rem;
    font-family: var(--font-ui);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

/* ====================  LIGHTBOX (expanded photo)  ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(4, 4, 6, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.lightbox.active { opacity: 1; }
.lightbox-img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 12px;
    border: 1px solid var(--surface-br);
    box-shadow: var(--shadow), 0 0 60px -18px var(--gold-glow);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gold-bright);
    background: rgba(232, 207, 155, 0.08);
    border: 1px solid var(--surface-br);
    cursor: pointer;
    transition: all 0.2s ease;
}
.lightbox-close:hover { border-color: var(--gold); transform: rotate(90deg); }

/* ---- Feature stat (Combat Veteran / background highlight) ---- */
.stat-feature {
    background: linear-gradient(135deg, rgba(201, 162, 95, 0.18), rgba(201, 162, 95, 0.04));
    border-color: rgba(232, 207, 155, 0.36);
    box-shadow: var(--shadow-gold);
}
.stat-feature .stat-value { color: var(--gold-bright); font-size: 1.15rem; }
.stat-extra {
    font-size: 0.82rem;
    color: var(--text);
    margin-top: 0.15rem;
    letter-spacing: 0.01em;
}

/* ====================  RESUME (collapsibles)  ==================== */
.professional-section { display: block; }
.professional-section > .section-header { margin-bottom: 1.1rem; }

#educationSection, #experienceSection, #certificationsSection {
    margin-bottom: 0.7rem;
}

.section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008)), var(--panel);
    border: 1px solid var(--hairline-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-ui);
    transition: all 0.25s ease;
}
.section-toggle:hover {
    border-color: var(--surface-br);
    background: linear-gradient(180deg, rgba(232,207,155,0.06), rgba(232,207,155,0.015)), var(--panel-2);
    transform: translateY(-2px);
}
.section-toggle-content { display: flex; align-items: center; gap: 0.95rem; }
.section-icon-wrapper {
    width: 44px; height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--ink-2);
    border: 1px solid var(--hairline-2);
    font-size: 1.35rem;
    line-height: 1;
}
.section-icon-img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.section-toggle-label {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--cream);
}
.toggle-icon {
    width: 19px; height: 19px;
    color: var(--gold);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.section-toggle[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }

.section-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.3s ease;
}
.section-content.expanded {
    max-height: 6000px;
    opacity: 1;
    margin-top: 0.7rem;
}
.section-content.collapse {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

/* ---- Timeline (Training / Credits) ---- */
.timeline {
    position: relative;
    padding: 0.4rem 0 0.4rem 0.25rem;
}
.timeline-item {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 0 0 1.5rem 1.5rem;
}
.timeline-item:last-child { padding-bottom: 0.25rem; }
/* vertical gold line */
.timeline-item::before {
    content: "";
    position: absolute;
    left: 4px; top: 6px; bottom: -6px;
    width: 1px;
    background: linear-gradient(180deg, var(--gold), var(--hairline));
}
.timeline-item:last-child::before { display: none; }

.timeline-dot {
    position: absolute;
    left: 0; top: 4px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 0 3px rgba(201,162,95,0.15), 0 0 10px var(--gold-glow);
    z-index: 1;
}
.timeline-content { flex: 1; min-width: 0; }
.timeline-header { display: flex; gap: 0.85rem; align-items: flex-start; }
.timeline-icon {
    width: 38px; height: 38px;
    flex-shrink: 0;
    border-radius: 9px;
    overflow: hidden;
    background: var(--ink-2);
    border: 1px solid var(--hairline-2);
}
.timeline-icon-img { width: 100%; height: 100%; object-fit: contain; }
.timeline-header-text { min-width: 0; }
.timeline-year {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.2rem;
}
.timeline-title {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--cream);
    line-height: 1.3;
}
.timeline-company {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 0.15rem;
}
.timeline-location {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.1rem;
}
.timeline-synopsis-btn {
    margin-top: 0.55rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    transition: color 0.2s ease, transform 0.2s ease;
}
.timeline-synopsis-btn:hover { color: var(--gold-bright); transform: translateX(2px); }
.synopsis-meta { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.04em; margin-bottom: 0.85rem; }
.synopsis-text { font-size: 0.96rem; line-height: 1.75; color: var(--text); }

/* ---- Special Skills (chips) ---- */
.certifications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.3rem 0;
}
.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: linear-gradient(180deg, rgba(232,207,155,0.05), rgba(232,207,155,0.015));
    border: 1px solid var(--surface-br);
    border-radius: 999px;
    transition: all 0.25s ease;
}
.cert-badge:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -12px var(--gold-glow);
}
.cert-icon {
    font-size: 1.05rem;
    line-height: 1;
    display: flex;
    align-items: center;
}
.cert-icon-img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }
.cert-info { display: flex; align-items: baseline; gap: 0.4rem; }
.cert-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cream);
}
.cert-issuer {
    font-size: 0.74rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.cert-year { display: none; }

/* ---- Subtle section (background / non-acting credentials) ---- */
.subtle-section { opacity: 0.72; }
.subtle-section:hover { opacity: 1; transition: opacity 0.3s ease; }
.subtle-section .section-toggle { background: transparent; border-color: var(--hairline-2); }
.subtle-section .section-icon-wrapper { font-size: 1.1rem; opacity: 0.85; }
.subtle-section .section-toggle-label { font-weight: 600; color: var(--muted); }
.section-note { color: var(--faint); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.02em; }
/* muted, denser chips for background certs */
.subtle-section .certifications-grid { gap: 0.4rem; }
.subtle-section .cert-badge {
    background: rgba(255,255,255,0.025);
    border-color: var(--hairline-2);
    padding: 0.4rem 0.7rem;
}
.subtle-section .cert-badge:hover { border-color: var(--surface-br); box-shadow: none; transform: none; }
.subtle-section .cert-icon-img { width: 16px; height: 16px; filter: grayscale(1); opacity: 0.7; }
.subtle-section .cert-name { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.subtle-section .cert-issuer { font-size: 0.7rem; color: var(--faint); }

/* ====================  FOOTER  ==================== */
.footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hairline-2);
    text-align: center;
}
.footer-text {
    font-size: 0.78rem;
    color: var(--faint);
    letter-spacing: 0.04em;
}
.footer-built-with {
    margin-top: 0.9rem;
    font-size: 0.78rem;
    color: var(--muted);
}
.footer-built-label { color: var(--faint); }
.footer-built-items { font-weight: 600; }
.footer-item-coffee  { color: var(--gold); }
.footer-item-hatred  { color: #b9543f; }
.footer-item-malice  { color: #8e6bb0; }
.footer-separator { color: var(--faint); }
.footer-built-subtitle {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    font-style: italic;
    color: var(--faint);
    font-family: var(--font-display);
}
.footer-security {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
}
.footer-security svg { width: 13px; height: 13px; color: var(--gold-deep); }
.footer-notice {
    margin: 0.9rem auto 0;
    max-width: 60ch;
    font-size: 0.68rem;
    line-height: 1.55;
    color: var(--faint);
    letter-spacing: 0.01em;
}

/* ====================  MODALS (contact / qr)  ==================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 6, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--panel);
    border: 1px solid var(--surface-br);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.modal-content::before {
    content: "";
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}
.modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
}
.modal-subtitle {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
    line-height: 1.6;
}
.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(232,207,155,0.05);
    border: 1px solid var(--hairline-2);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.modal-close:hover { color: var(--gold-bright); border-color: var(--gold); transform: rotate(90deg); }
.modal-close svg { width: 17px; height: 17px; }
.modal-body { position: relative; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}
.form-optional { color: var(--faint); font-weight: 500; text-transform: none; letter-spacing: 0; }
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    color: var(--cream);
    background: var(--ink-2);
    border: 1px solid var(--hairline-2);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--faint); }
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,162,95,0.14);
}
.form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding: 0.9rem;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1a1206;
    background: linear-gradient(145deg, var(--gold-bright), var(--gold));
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
}
.form-submit:hover { transform: translateY(-2px); filter: brightness(1.06); }
.submit-spinner svg { width: 18px; height: 18px; animation: spin 0.9s linear infinite; }

.modal-success {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
}
.success-icon {
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gold-bright);
    background: rgba(201,162,95,0.12);
    border: 1px solid var(--gold);
}
.success-icon svg { width: 30px; height: 30px; }
.success-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--cream);
}
.success-text { font-size: 0.9rem; color: var(--muted); }

/* QR modal */
.qr-modal-content { max-width: 340px; text-align: center; }
.qr-modal-body { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.qr-code-container {
    padding: 14px;
    background: var(--cream);
    border-radius: 14px;
    box-shadow: 0 14px 40px -16px rgba(0,0,0,0.8);
}
.qr-code-img { display: block; width: 180px; height: 180px; border-radius: 4px; }
.qr-hint { font-size: 0.85rem; color: var(--muted); }
.qr-url {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gold-bright);
    letter-spacing: 0.02em;
}

/* ====================  LINK CONFIRMATION MODAL  ==================== */
.link-confirmation-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.link-confirmation-modal.active { opacity: 1; }
.link-confirmation-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 6, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.link-confirmation-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 1.6rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--panel);
    border: 1px solid var(--surface-br);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.25s ease;
}
.link-confirmation-modal.active .link-confirmation-modal-content { transform: translateY(0) scale(1); }
.link-confirmation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}
.link-confirmation-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cream);
}
.link-confirmation-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(232,207,155,0.05);
    border: 1px solid var(--hairline-2);
    color: var(--muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}
.link-confirmation-close:hover { color: var(--gold-bright); border-color: var(--gold); }
.link-confirmation-body { margin-bottom: 1.3rem; }
.link-confirmation-message { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.link-confirmation-message strong { color: var(--gold-bright); font-weight: 700; }
.link-confirmation-footer { display: flex; gap: 0.6rem; justify-content: flex-end; }
.link-confirmation-btn {
    padding: 0.7rem 1.3rem;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.22s ease;
    border: 1px solid transparent;
}
.link-confirmation-btn-cancel {
    background: rgba(232,207,155,0.04);
    border-color: var(--hairline-2);
    color: var(--muted);
}
.link-confirmation-btn-cancel:hover { color: var(--cream); border-color: var(--surface-br); }
.link-confirmation-btn-confirm {
    background: linear-gradient(145deg, var(--gold-bright), var(--gold));
    color: #1a1206;
}
.link-confirmation-btn-confirm:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* ====================  TOAST  ==================== */
.toast {
    font-family: var(--font-ui) !important;
}

/* ====================  PAGE-LOAD ANIMATIONS  ==================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.fade-in-up-delay {
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}
/* staggered reveal of the stacked sections */
.content-sections > .section,
.content-sections > .professional-section,
.content-sections > .footer { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) forwards; }
.content-sections > *:nth-child(1) { animation-delay: 0.30s; }
.content-sections > *:nth-child(2) { animation-delay: 0.42s; }
.content-sections > *:nth-child(3) { animation-delay: 0.54s; }
.content-sections > *:nth-child(4) { animation-delay: 0.66s; }
.content-sections > *:nth-child(5) { animation-delay: 0.78s; }

/* ====================  RESPONSIVE  ==================== */
@media (max-width: 480px) {
    .container { padding: 2.25rem 1rem 3rem; }
    .profile-card { padding: 2rem 1.25rem 1.75rem; }
    .avatar-wrapper { width: 116px; height: 116px; }
    .profile-action-buttons { gap: 0.5rem; }
    .profile-connect-btn { padding: 0.8rem 1.3rem; }
    .hero-kicker { letter-spacing: 0.3em; }
    .hero-kicker-rule { width: 22px; }
}

/* ====================  ACCESSIBILITY  ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in-up, .fade-in-up-delay,
    .content-sections > * { opacity: 1 !important; }
}

::selection { background: var(--gold); color: #14100a; }

/* ====================  ABOUT / BIO PAGE  ==================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.back-link:hover { color: var(--gold-bright); transform: translateX(-3px); }
.back-link-bottom { margin-top: 0.5rem; }

.about-hero {
    text-align: center;
    margin: 1.75rem 0 2.5rem;
}
.about-hero .avatar-wrapper { margin: 0 auto 1.4rem; }
.about-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--gold-bright);
    margin-top: 0.85rem;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 2.1rem;
}
.about-body .section-header { margin-bottom: 0.9rem; }
.about-body p {
    color: var(--text);
    font-size: 0.97rem;
    line-height: 1.85;
    margin-bottom: 0.85rem;
}
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--cream); font-weight: 700; }

.about-edu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0.4rem 0 1rem;
}
.about-edu li {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008)), var(--panel);
    border: 1px solid var(--hairline-2);
    border-radius: var(--radius-sm);
}
.about-edu-year {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--gold);
    min-width: 3rem;
}
.about-edu-detail { font-size: 0.92rem; color: var(--text); line-height: 1.5; }

/* Certifications on the about page */
.about-certs { display: flex; flex-direction: column; gap: 1.1rem; }
.cert-group-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.55rem;
}
.cert-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cert-chip {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--hairline-2);
    border-radius: 999px;
}

/* "Read full bio" link on the main card */
.bio-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-bright);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.bio-link:hover { border-color: var(--gold); transform: translateX(2px); }
