
:root{
--bg: #17181C;
--panel: #1F2024;
--panel-line: #2E3036;
--text: #F2EFEA;
--muted: #A3A6AC;
--amber: #078bf7;
--cyan: #6FA9A0;
--coral: #114ed1;
--green: #8FAE7C;
--mono: 'IBM Plex Mono', monospace;
--sans: 'IBM Plex Sans', sans-serif;
--display: 'Space Grotesk', sans-serif;
}
html[data-theme="light"]{
--bg: #FAF7F2;
--panel: #FFFFFF;
--panel-line: #2b2824;
--text: #201D1A;
--muted: #0a0a0a;
--amber: #2e59a8;
--cyan: #05125e;
--coral: #A23F2C;
--green: #096474;
}
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
margin:0;
transition: background-color .25s ease, color .25s ease;
background:
    radial-gradient(ellipse 900px 500px at 50% -8%, rgba(111,169,160,0.09), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 30%, rgba(208,138,84,0.05), transparent 55%),
    var(--bg);
color: var(--text);
font-family: var(--sans);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
}
a{ color: inherit; }
.wrap{ max-width: 1040px; margin: 0 auto; padding: 0 28px; }
::selection{ background: var(--amber); color:#17181C; }

/* ---------- eyebrow / class-label ---------- */
.eyebrow{
font-family: var(--mono);
font-size: 12.5px;
letter-spacing: 0.14em;
text-transform: uppercase;
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 14px;
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; display:inline-block; }
.eyebrow .num{ color: var(--muted); }

/* ---------- nav ---------- */
nav{
position: sticky; top:0; z-index: 50;
backdrop-filter: blur(10px);
background: rgba(11,26,36,0.82);
border-bottom: 1px solid var(--panel-line);
}
nav .inner{ display:flex; align-items:center; justify-content:space-between; padding: 16px 28px; max-width:1040px; margin:0 auto; }
nav .brand{ font-family: var(--mono); font-size: 13px; letter-spacing:0.08em; color: var(--cyan); }
nav ul{ list-style:none; display:flex; gap: 26px; margin:0; padding:0; }
nav a{ text-decoration:none; font-family: var(--mono); font-size: 12.5px; letter-spacing:0.05em; color: var(--muted); transition: color .2s; }
nav a:hover{ color: var(--amber); }
nav .contact-btn{
font-family: var(--mono); font-size: 12px; letter-spacing:0.05em;
border:1px solid var(--amber); color: var(--amber); padding: 7px 14px; border-radius:3px;
text-decoration:none; white-space:nowrap; background-color:rgba(11,26,36,0.82);
}

.theme-toggle{
font-family: var(--mono); font-size: 15px; line-height:1;
background: transparent; border: 1px solid var(--panel-line); color: var(--text);
width: 32px; height: 32px; border-radius: 3px; cursor: pointer;
display:flex; align-items:center; justify-content:center;
transition: border-color .2s, transform .2s;
}
.theme-toggle:hover{ border-color: var(--amber); transform: rotate(20deg); }
@media (max-width: 720px){ nav ul{ display:none; } }


.status-pill{
display:inline-flex; align-items:center; gap:8px;
font-family: var(--mono); font-size: 11.5px; letter-spacing:0.04em; color: var(--green);
border: 1px solid var(--green); padding: 5px 12px; border-radius: 20px; margin-bottom: 22px;
}
.pulse-dot{ width:6px; height:6px; border-radius:50%; background: var(--green); animation: pulse 1.8s infinite; }
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:0.35; } }
@media (prefers-reduced-motion: reduce){ .pulse-dot{ animation:none; } }

.cta-row{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom: 22px; }
.cta-btn{
font-family: var(--mono); font-size: 13px; letter-spacing:0.03em;
padding: 11px 20px; border-radius: 3px; text-decoration:none; cursor:pointer;
transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
border: none; display:inline-block;
}
.cta-btn.primary{ background: var(--amber); color: #17181C; font-weight:600; }
.cta-btn.primary:hover{ transform: translateY(-2px); box-shadow: 0 6px 18px rgba(208,138,84,0.25); }
.cta-btn.secondary{ background: transparent; border: 1px solid var(--panel-line); color: var(--text); }
.cta-btn.secondary:hover{ transform: translateY(-2px); border-color: var(--cyan); color: var(--cyan); }
.cta-btn.copied{ border-color: var(--green) !important; color: var(--green) !important; }

/* ---------- s1:hero: detection frame ---------- */
.hero {
    padding: 72px 0 56px;
}

.frame {
    position: relative;
    border: 1px solid rgba(111, 169, 160, 0.22);

    background:
        linear-gradient(
            160deg,
            rgba(111, 169, 160, 0.055),
            rgba(208, 138, 84, 0.025)
        ),
        rgba(255, 255, 255, 0.012);

    padding: 48px 40px;
    border-radius: 4px;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.015),
        0 18px 50px rgba(0, 0, 0, 0.18);

    overflow: hidden;
}


/* =========================
   Corner Decorations
========================= */

.corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: var(--cyan);
    opacity: 0.85;
    pointer-events: none;
}

.corner.tl {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--cyan);
    border-left: 2px solid var(--cyan);
}

.corner.tr {
    top: -1px;
    right: -1px;
    border-top: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
}

.corner.bl {
    bottom: -1px;
    left: -1px;
    border-bottom: 2px solid var(--cyan);
    border-left: 2px solid var(--cyan);
}

.corner.br {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
}


/* =========================
   Hero Content
========================= */

.hero-copy {
    width: 100%;
}


/* =========================
   Status
========================= */

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;

    padding: 7px 12px;
    margin-bottom: 24px;

    border: 1px solid rgba(150, 190, 100, 0.65);
    border-radius: 999px;

    color: #9fc77d;
}


/* =========================
   Name + Photo
========================= */

.hero-name-row {
    display: flex;
    align-items: center;
    gap: 24px;

    margin-bottom: 20px;
}


/* =========================
   Profile Image
========================= */

.hero-avatar {
    flex: 0 0 88px;

    width: 88px;
    height: 88px;

    border-radius: 50%;
    overflow: hidden;

    border: 2px solid #0798ff;

    background: #111;

    box-shadow:
        0 0 0 3px rgba(7, 152, 255, 0.08);

    position: relative;
}

.hero-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    border-radius: 50%;

    filter: grayscale(5%) contrast(1.03);
}


/* =========================
   Main Heading
========================= */

h1 {
    font-family: var(--display);
    font-weight: 700;

    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.02;

    margin: 0;

    letter-spacing: -0.02em;
}

h1 .accent {
    color: #0798ff;
}


/* =========================
   Role
========================= */

.role-line {
    font-family: var(--mono);

    color: var(--cyan);

    font-size: clamp(13px, 1.5vw, 16px);

    margin: 0 0 28px;

    letter-spacing: 0.025em;
}


/* =========================
   CTA
========================= */

.cta-row {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 22px;
}


/* =========================
   Social Icons
========================= */

.contact-icons {
    display: flex;
    align-items: center;

    gap: 10px;
}

.contact-icon {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--panel-line);
    border-radius: 3px;

    color: var(--text);

    text-decoration: none;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.contact-icon svg {
    width: 19px;
    height: 19px;

    fill: currentColor;
}

.contact-icon:hover {
    border-color: var(--cyan);
    color: var(--cyan);

    transform: translateY(-2px);

    background: rgba(111, 169, 160, 0.04);
}


/* =========================
   Responsive
========================= */

@media (max-width: 820px) {

    .hero {
        padding: 48px 0 40px;
    }

    .frame {
        padding: 36px 26px;
    }

    .hero-name-row {
        gap: 18px;
    }

    .hero-avatar {
        flex: 0 0 78px;

        width: 78px;
        height: 78px;
    }

    h1 {
        font-size: clamp(32px, 8vw, 46px);
    }

    .role-line {
        font-size: 13px;
    }
}


/* =========================
   Small Mobile
========================= */

@media (max-width: 520px) {

    .frame {
        padding: 30px 20px;
    }

    .hero-name-row {
        gap: 14px;
        align-items: center;
    }

    .hero-avatar {
        flex: 0 0 68px;

        width: 68px;
        height: 68px;
    }

    h1 {
        font-size: clamp(27px, 8vw, 36px);
        line-height: 1.05;
    }

    .status-pill {
        font-size: 10.5px;
        padding: 6px 10px;
    }

    .role-line {
        font-size: 11.5px;
        margin-bottom: 22px;
    }

    .contact-icon {
        width: 38px;
        height: 38px;
    }
}



/*-----------icons---------------------*/
.contact-icons {
display: flex;
align-items: center;
gap: 12px;
}

.contact-icon {
    width: 30px;
    height: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #4ad9e4;
    text-decoration: none;

    transition: transform 0.2s ease, color 0.2s ease;
}

.contact-icon svg {
    width: 17px;
    height: 10px;
    display: block;
    fill: currentColor;
}

.contact-icon:hover {
    color: #ff69b4;
    transform: translateY(-2px);
}






/* ---------- section shell ---------- */
section{ padding: 76px 0; border-top: 1px solid var(--panel-line); }
section .head{ margin-bottom: 40px; }
h2{
font-family: var(--display); font-weight: 600;
font-size: clamp(24px, 3.4vw, 32px); margin: 0;
}
.section-sub{ color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 560px; }

/* ---------- experience timeline ---------- */
.timeline{ position: relative; padding-left: 26px; border-left: 1px solid var(--panel-line); }
.t-item{ position: relative; padding-bottom: 34px; }
.t-item:last-child{ padding-bottom: 0; }
.t-item::before{
content:''; position:absolute; left:-31px; top: 4px;
width:9px; height:9px; border-radius:50%;
background: var(--bg); border: 2px solid var(--amber);
}
.t-year{ font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing:0.05em; }
.t-title{ font-family: var(--display); font-weight: 600; font-size: 18px; margin: 4px 0 3px; }
.t-org{ color: var(--cyan); font-size: 13.5px; margin-bottom: 8px; font-family: var(--mono); }
.t-desc{ color: var(--muted); font-size: 14.5px; max-width: 620px; }
/* ---------- project cards ---------- */
.project{
position: relative;
border: 1px solid var(--panel-line);
background: var(--panel);
border-radius: 2px;
padding: 34px 32px;
margin-bottom: 26px;
transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, max-height .3s ease;
}
.project:hover{ transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.project.hidden{ display:none; }
.project::before, .project::after{ content:''; position:absolute; width:16px; height:16px; }
.project::before{ top:-1px; left:-1px; border-top:2px solid var(--cyan); border-left:2px solid var(--cyan); }
.project::after{ bottom:-1px; right:-1px; border-bottom:2px solid var(--cyan); border-right:2px solid var(--cyan); }
.p-top{ display:flex; align-items:flex-start; justify-content:space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 6px; }
.p-name{ font-family: var(--display); font-weight: 700; font-size: 21px; }
.p-badge{ font-family: var(--mono); font-size: 11px; color: var(--green); border:1px solid var(--green); padding:3px 8px; border-radius:2px; white-space:nowrap; height: fit-content; }
.p-advisor{ font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.p-points{ list-style:none; margin: 0 0 20px; padding:0; display:grid; gap:10px; }
.p-points li{ font-size: 14.5px; color: var(--text); padding-left: 18px; position:relative; }
.p-points li::before{ content:'▸'; position:absolute; left:0; color: var(--amber); }
.p-points b{ color: var(--cyan); font-weight:600; }
.case-study{ display:grid; gap: 14px; margin-bottom: 18px; }
.case-block{ font-size: 14.5px; color: var(--text); line-height:1.6; }
.case-block b{ color: var(--cyan); font-weight:600; }
.case-label{ display:block; font-family: var(--mono); font-size: 11px; letter-spacing:0.08em; text-transform:uppercase; margin-bottom: 4px; }
.filter-row{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 30px; }
.filter-btn{
font-family: var(--mono); font-size: 12px; letter-spacing:0.03em;
background:transparent; border:1px solid var(--panel-line); color: var(--muted);
padding: 8px 15px; border-radius: 20px; cursor:pointer; transition: all .15s ease;
}
.filter-btn:hover{ border-color: var(--cyan); color: var(--cyan); }
.filter-btn.active{ background: var(--cyan); border-color: var(--cyan); color: #17181C; font-weight:600; }
.p-media{ margin: 18px 0; }
.p-media iframe{ width:100%; aspect-ratio: 16/9; border:0; border-radius: 2px; border:1px solid var(--panel-line); }
.diagram-frame{ margin: 18px 0; border: 1px solid var(--panel-line); border-radius: 2px; overflow: hidden; background:#0d1922; }
.diagram-frame img{ width:100%; display:block; }
.diagram-caption{ font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--panel-line); }

*, *::before, *::after {
box-sizing: border-box;
}

.photo-scroll {
display: flex;
gap: 24px;
overflow-x: auto;
overflow-y: hidden;
width: 100%;
padding: 10px 0 20px;
scroll-snap-type: x mandatory;
}

.photo-scroll .photo-frame {
/* Set a fluid card width */
flex: 0 0 clamp(280px, 60vw, 420px);
scroll-snap-align: start;
position: relative;
border: 1px solid var(--panel-line);
background: var(--panel-bg);
overflow: hidden;

/* Turn card into a flex container for auto-stretching */
display: flex;
flex-direction: column;
}

.photo-scroll .photo-frame img {
width: 100%;
/* Locks all images to a clean 4:3 landscape ratio regardless of original photo size */
aspect-ratio: 5 / 3; 
object-fit: cover;
display: block;
}

.photo-frame figcaption {
padding: 12px 14px;
font-size: 14px;
line-height: 1.5;
color: var(--text-color);
background: var(--panel-bg);

/* Ensures captions start aligned and fill remaining bottom height */
flex-grow: 1; 
}

/* Scrollbar */
.photo-scroll::-webkit-scrollbar {
height: 8px;
}

.photo-scroll::-webkit-scrollbar-thumb {
border-radius: 10px;
background: var(--panel-line);
}

/* Mobile */
@media (max-width: 600px) {
.photo-scroll {
    gap: 16px;
}

.photo-scroll .photo-frame {
    flex: 0 0 85vw;
}

.photo-frame figcaption {
    font-size: 13px;
}
}
/* ---------- awards ---------- */
.awards-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
@media (max-width:640px){ .awards-grid{ grid-template-columns: 1fr; } }
.award{ border:1px solid var(--panel-line); background: var(--panel); padding: 26px; border-radius:2px; transition: transform .2s ease, box-shadow .2s ease; }
.award:hover{ transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.22); }
.award .rank{ font-family: var(--mono); color: var(--coral); font-size: 12px; letter-spacing:0.05em; margin-bottom:10px; }
.award h3{ font-family: var(--display); font-size: 17px; margin: 0 0 8px; }
.award p{ color: var(--muted); font-size: 13.5px; margin:0; }

/* ---------- skills ---------- */
.skills-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 28px 40px; }
@media (max-width:640px){ .skills-grid{ grid-template-columns: 1fr; } }
.skill-group .g-label{ font-family: var(--mono); font-size: 12px; letter-spacing:0.06em; margin-bottom: 14px; display:flex; align-items:center; gap:8px;}
.g-label .dot{ width:7px; height:7px; border-radius:50%; }
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ font-size: 12.5px; font-family: var(--mono); padding: 6px 11px; border-radius:2px; border:1px solid var(--panel-line); color: var(--muted); }
.chip.core{ color: var(--text); border-color: currentColor; font-weight: 500; }
.skill-legend{ font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* ---------- certifications ---------- */
.cert-group{ margin-bottom: 34px; }
.cert-group:last-child{ margin-bottom: 0; }
.cert-group-label{ font-family: var(--mono); font-size: 12px; letter-spacing:0.08em; text-transform:uppercase; margin-bottom: 16px; display:flex; align-items:center; gap:8px; }
.cert-group-label .dot{ width:7px; height:7px; border-radius:50%; }
.cert-list{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width:720px){ .cert-list{ grid-template-columns: 1fr; } }
.cert-row{
display:flex; justify-content:space-between; align-items:flex-start; gap: 14px;
border: 1px solid var(--panel-line); background: var(--panel);
padding: 15px 17px; border-radius: 2px;
transition: transform .15s ease, border-color .15s ease;
}
.cert-row:hover{ transform: translateY(-2px); border-color: var(--cyan); }
.cert-name{ font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.cert-issuer{ font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.cert-date{ font-family: var(--mono); font-size: 11px; color: var(--amber); white-space:nowrap; padding-top:2px; }

/* ---------- education + activity ---------- */
.edu-act{ display:grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width:720px){ .edu-act{ grid-template-columns: 1fr; } }
.info-box{ border-left: 2px solid var(--amber); padding-left: 18px; }
.info-box h3{ font-family: var(--display); font-size: 16px; margin:0 0 8px; }
.info-box p{ color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.info-box a{ color: var(--cyan); text-decoration:none; font-family: var(--mono); font-size: 12.5px; }

/* ---------- footer ---------- */
footer{ padding: 60px 0 50px; border-top: 1px solid var(--panel-line); }
.foot-grid{ display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap: 24px; }
footer h2{ margin-bottom: 10px; }
footer .bio{ margin-bottom: 0; }
.foot-links{ display:flex; flex-direction:column; gap: 10px; align-items:flex-end; }
.foot-links a{ font-family: var(--mono); font-size: 13px; text-decoration:none; color: var(--muted); }
.foot-links a:hover{ color: var(--amber); }
@media (max-width:640px){ .foot-links{ align-items:flex-start; } }
.fine{ font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 40px; opacity:0.6; }


/* ---------- final footer ---------- */
footer{ padding:56px 0 34px; border-top:1px solid var(--panel-line); }
.footer-content{ display:flex; flex-direction:column; align-items:center; gap:22px; text-align:center; }
.email-btn{ display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:42px; padding:10px 18px; border:1px solid var(--panel-line); border-radius:3px; color:var(--text); background:var(--panel); text-decoration:none; font-family:var(--mono); font-size:12px; transition:border-color .2s,color .2s,transform .15s; }
.email-btn:hover{ border-color:var(--amber); color:var(--amber); transform:translateY(-1px); }
.icon-links{ display:flex; align-items:center; justify-content:center; gap:9px; }
.icon-link{ position:relative; display:flex; align-items:center; justify-content:center; width:38px; height:38px; border:1px solid var(--panel-line); border-radius:3px; color:var(--muted); text-decoration:none; transition:border-color .2s,color .2s,transform .15s; }
.icon-link:hover{ border-color:var(--cyan); color:var(--cyan); transform:translateY(-2px); }
.icon-link[data-tooltip]::after{ content:attr(data-tooltip); position:absolute; left:50%; bottom:calc(100% + 8px); transform:translateX(-50%) translateY(3px); padding:5px 8px; border:1px solid var(--panel-line); background:var(--panel); color:var(--text); font-family:var(--mono); font-size:10px; white-space:nowrap; border-radius:2px; opacity:0; pointer-events:none; transition:opacity .15s,transform .15s; }
.icon-link:hover::after{ opacity:1; transform:translateX(-50%) translateY(0); }
@media(max-width:520px){ .icon-links{ flex-wrap:wrap; max-width:260px; } .email-btn{ max-width:100%; } .email-btn span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } }

/* ---------- refined footer ---------- */
footer{
padding:52px 0 28px;
margin-top:72px;
border-top:1px solid var(--panel-line);
background:var(--bg);
}
.footer-content{
display:flex;
flex-direction:column;
align-items:center;
gap:18px;
text-align:center;
}
.email-btn{
min-height:44px;
padding:10px 20px;
gap:10px;
border:1px solid var(--panel-line);
border-radius:4px;
background:var(--panel);
color:var(--text);
box-shadow:0 6px 18px rgba(0,0,0,.08);
font-family:var(--mono);
font-size:12px;
letter-spacing:.02em;
}
.email-btn svg{ flex:0 0 auto; }
.email-btn:hover{
border-color:var(--amber);
color:var(--amber);
transform:translateY(-2px);
box-shadow:0 8px 22px rgba(0,0,0,.12);
}
.icon-links{
display:flex;
align-items:center;
justify-content:center;
gap:10px;
margin-top:2px;
}
.icon-link{
position:relative;
width:40px;
height:40px;
border:1px solid var(--panel-line);
border-radius:4px;
background:transparent;
color:var(--muted);
transition:all .2s ease;
}
.icon-link svg{ width:16px; height:16px; }
.icon-link:hover{
border-color:var(--cyan);
color:var(--cyan);
background:var(--panel);
transform:translateY(-2px);
}
.icon-link[data-tooltip]::after{
content:attr(data-tooltip);
position:absolute;
left:50%;
bottom:calc(100% + 9px);
transform:translateX(-50%) translateY(3px);
padding:5px 8px;
border:1px solid var(--panel-line);
border-radius:3px;
background:var(--panel);
color:var(--text);
font-family:var(--mono);
font-size:10px;
white-space:nowrap;
opacity:0;
pointer-events:none;
transition:opacity .15s ease,transform .15s ease;
z-index:10;
}
.icon-link:hover::after{
opacity:1;
transform:translateX(-50%) translateY(0);
}
footer .fine{
width:100%;
margin-top:22px;
padding-top:18px;
border-top:1px solid var(--panel-line);
text-align:center;
font-family:var(--mono);
font-size:10px;
letter-spacing:.08em;
color:var(--muted);
opacity:.75;
}
@media(max-width:520px){
footer{ padding:44px 0 24px; margin-top:54px; }
.email-btn{ max-width:calc(100vw - 40px); }
.email-btn span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.icon-links{ gap:8px; }
.icon-link{ width:38px; height:38px; }
}

/* reveal */
.reveal{ opacity:0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

/* ---------- requested refinements ---------- */
/* ---------- Hero Layout ---------- */
.hero-grid {
    display: block;
}

.hero-name-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}


.section-eyebrow{
font-family:var(--mono); font-size:12.5px; letter-spacing:.14em;
text-transform:uppercase; display:flex; align-items:center; gap:10px;
margin-bottom:14px;
}
.section-eyebrow .dot{ width:6px; height:6px; border-radius:50%; display:inline-block; }
.section-eyebrow .num{ color:var(--muted); }

.hero-links.contact-grid{
display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
gap:10px; max-width:520px;
}
.contact-icon{
display:flex; align-items:center; gap:10px; min-height:42px;
font-family:var(--mono); font-size:12px; color:var(--text);
border:1px solid var(--panel-line); padding:9px 12px; border-radius:3px;
text-decoration:none; transition:border-color .2s,color .2s,transform .15s;
}
.contact-icon svg{ width:18px; height:18px; flex:0 0 18px; fill:currentColor; }
.contact-icon:hover{ border-color:var(--amber); color:var(--amber); transform:translateY(-1px); }

.gallery-grid{
display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px;
}
.gallery-grid .photo-frame{ min-width:0; }
.gallery-grid .photo-frame img{  object-fit:cover; }
.gallery-grid .p-cap{ min-height:38px; }
.gallery-grid .scroll-label{ display:none; }
.gallery-grid-wrap{ margin-top:0; }
.gallery-grid-wrap .scroll-hint{ display:none; }

@media (max-width:820px){
.hero-name-row{ align-items:flex-start; }
.hero-avatar{ flex-basis:68px; width:68px; height:68px; }
.gallery-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:520px){
.hero-name-row{ gap:12px; }
.hero-avatar{ flex-basis:58px; width:58px; height:58px; }
.hero-name-row h1{ font-size:clamp(30px,9vw,42px); }
.hero-links.contact-grid{ grid-template-columns:1fr; }
.gallery-grid{ grid-template-columns:1fr; }
}



/* Theme-safe navigation and gallery surfaces */
html[data-theme="light"] nav{ background: rgba(250,247,242,0.94); }
html[data-theme="dark"] nav{ background: rgba(11,26,36,0.88); }
.photo-frame{ background: var(--panel); }
.diagram-frame{ background: var(--panel); }
.video-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 20px;
}
.video-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(77, 166, 255, 0.4); 
  transform: translateY(-2px); 
}

.video-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #4da6ff; 
  text-transform: uppercase;
}

.video-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: color 0.3s ease;
}

.video-card:hover .video-title {
  color: #ffffff;
}

.video-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4da6ff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.video-card:hover .video-arrow {
  transform: translate(3px, -3px);
  color: #ffffff;
}
.p-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.p-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.p-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(77, 166, 255, 0.3);
  transform: translateY(-1px);
}

.p-link-icon {
  color: #4da6ff;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.p-link:hover .p-link-icon {
  transform: scale(1.1);
  color: #60a5fa;
}

.training-highlight{
border:1px solid var(--panel-line); background:var(--panel); border-left:2px solid var(--green);
padding:18px 20px; border-radius:2px; margin-top:14px;
}
.training-highlight h3{ font-family:var(--display); font-size:16px; margin:0 0 5px; }
.training-highlight .issuer{ font-family:var(--mono); font-size:11.5px; color:var(--cyan); margin-bottom:7px; }
.training-highlight p{ color:var(--muted); font-size:14px; margin:0 0 9px; }
.training-highlight a{ color:var(--cyan); text-decoration:none; font-family:var(--mono); font-size:12px; }
.training-highlight a:hover{ color:var(--amber); }

@media (max-width:820px){ .gallery-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:520px){ .gallery-grid{ grid-template-columns:1fr; } }

.hero-avatar{ flex-basis:74px; width:74px; height:74px; }
@media (max-width:820px){ .hero-avatar{ flex-basis:66px; width:66px; height:66px; } }
@media (max-width:520px){ .hero-avatar{ flex-basis:56px; width:56px; height:56px; } }

.gallery-grid .p-cap{ background:var(--panel); color:var(--muted); }
