/* ---------- Design tokens ---------- */
:root{
    --bg: #0b0c10;
    --surface: #11131a;
    --surface-2: #141824;
    --text: #e8eaf2;
    --muted: #a6adc3;
    --border: rgba(255,255,255,.10);
    --shadow: 0 10px 30px rgba(0,0,0,.35);

    --accent: #7c5cff;
    --accent-2: #4dd8ff;
    --accent-3: #ff6db3;

    --radius: 22px;
    --radius-sm: 14px;

    --container: 1120px;
    --pad: 20px;

    --leading: 1.65;

    /* If you're using the Google Fonts from before */
    --font: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    --font-display: "Fraunces", ui-serif, Georgia, serif;
}


:root[data-theme="dark"]{
    --bg: #0b0c10;
    --surface: #11131a;
    --surface-2: #141824;
    --text: #e8eaf2;
    --muted: #a6adc3;
    --border: rgba(255,255,255,.10);
    --shadow: 0 10px 30px rgba(0,0,0,.35);

    --accent: #7c5cff;
    --accent-2: #4dd8ff;
    --accent-3: #ff6db3;
}


*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
    margin:0;
    /* Use a simple solid background instead of multiple radial gradients.
       The complex stacked radial gradients previously used here produced
       visible horizontal bands as you scroll the page.  A single colour
       drawn from the `--bg` token keeps the dark theme consistent and
       avoids distracting artefacts. */
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: var(--leading);
}


img{ max-width:100%; height:auto; }

a{
    color: inherit;
    text-decoration: none;
}
a:hover{ text-decoration: underline; }

.container{
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ---------- Utilities ---------- */
.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;
}

.stack{ display:flex; flex-direction:column; gap:16px; }
.grid{ display:grid; gap:18px; }
.grid-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 860px){
    .grid-2, .grid-3{ grid-template-columns: 1fr; }
}

.card{
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}
:root[data-theme="light"] .card{
    background: var(--surface);
}

/* ---------- Publication tags (NOT buttons) ---------- */
.pub-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.pub-tag{
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.02em;
    padding: 0;
    border: none;
    background: none;
    font-weight: 500;
}

.pub-tag::before{
    content: "|";
    margin-right: 10px;
    color: rgba(255,255,255,.25);
}
.pub-tag:first-child::before{
    content: "";
    margin-right: 0;
}



/* ---------- Buttons ---------- */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor:pointer;
    font-weight: 600;
    text-decoration:none !important;
    line-height: 1;
    user-select:none;
}
.btn-sm{ padding: 9px 12px; font-size: 14px; }
.btn-primary{
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 12px 24px rgba(124,92,255,.18);
}
.btn-primary:hover{ filter: brightness(1.02); }
.btn-ghost{
    border-color: var(--border);
    background: rgba(255,255,255,.03);
    color: var(--text);
}
.btn-ghost:hover{ background: rgba(255,255,255,.06); }

/* ---------- Header / Nav ---------- */
.site-header{
    position: sticky;
    top:0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(10,12,16,.55);
    border-bottom: 1px solid var(--border);
}
:root[data-theme="light"] .site-header{
    background: rgba(255,255,255,.75);
}
.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 12px 0;
    gap: 12px;
}

.nav{
    margin-left: auto;
}

.brand{
    display:flex;
    align-items:center;
    gap: 12px;
    text-decoration:none !important;
    min-width: 220px;
}
.brand-mark{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display:grid;
    place-items:center;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
}
.brand-text{
    display:flex;
    flex-direction:column;
    line-height:1.2;
}
.brand-name{ font-weight: 800; letter-spacing: .2px; }
.brand-subtitle{ color: var(--muted); font-size: 12.5px; }

.nav{ display:flex; align-items:center; gap: 12px; }
.nav-links{
    list-style:none;
    display:flex;
    margin:0;
    padding:0;
    gap: 6px;
}
.nav-links a{
    display:inline-flex;
    align-items:center;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--muted);
    text-decoration:none !important;
    font-weight: 600;
    font-size: 14px;
}
.nav-links a:hover{
    border-color: var(--border);
    color: var(--text);
    background: rgba(255,255,255,.04);
}
.nav-links a.is-active{
    color: var(--text);
    border-color: rgba(124,92,255,.40);
    background: rgba(124,92,255,.14);
}

.header-actions{
    display:flex;
    align-items:center;
    gap: 10px;
}

/* Mobile nav */
.nav-toggle{
    display:none;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor:pointer;
}
.nav-toggle-bars{
    display:block;
    width: 18px;
    height: 2px;
    background: var(--text);
    position: relative;
    margin: 0 auto;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
    content:"";
    position:absolute;
    left:0;
    width: 18px;
    height: 2px;
    background: var(--text);
}
.nav-toggle-bars::before{ top:-6px; }
.nav-toggle-bars::after{ top:6px; }

@media (max-width: 980px){
    .brand-subtitle{ display:none; }
}
@media (max-width: 860px){
    .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
    .nav-links{
        position:absolute;
        right: var(--pad);
        top: 64px;
        flex-direction:column;
        width: min(320px, calc(100vw - 2*var(--pad)));
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 10px;
        box-shadow: var(--shadow);
        display:none;
    }
    .nav-links.is-open{ display:flex; }
    .nav-links a{ width: 100%; justify-content:flex-start; }
}

/* ---------- Page layout ---------- */
main{ padding: 32px 0 54px; }

h1, .display {
    /* Use the primary sans-serif font for headings to maintain a consistent look across the site.
       Previously `--font-display` (Fraunces) resulted in a serif-like display face for h1s and
       some section headers.  Switching to `--font` aligns headings with the rest of the text
       (Manrope) and matches the style used on the About page's Core Expertise section. */
    font-family: var(--font);
    letter-spacing: -0.02em;
}

.hero{
    padding: 46px 0 22px;
}

.hero-inner{
    display:grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
    align-items: center;
}

.hero-visual{
    position: relative;
    min-height: 380px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(91,108,255,.10), rgba(18,194,255,.08));
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-visual::before{
    content:"";
    position:absolute;
    inset: -80px -120px auto auto;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 30% 30%, rgba(255,109,179,.45), transparent 60%);
    filter: blur(2px);
}

.hero-visual::after{
    content:"";
    position:absolute;
    inset: auto auto -120px -140px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at 40% 40%, rgba(18,194,255,.40), transparent 60%);
    filter: blur(2px);
}

.hero-visual .mock{
    position:absolute;
    inset: 18px;
    border-radius: calc(var(--radius) - 8px);
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(15,23,42,.08);
}

:root[data-theme="dark"] .hero-visual .mock{
    background: rgba(17,19,26,.55);
    border-color: rgba(255,255,255,.10);
}

@media (max-width: 860px){
    .hero-inner{ grid-template-columns: 1fr; }
    .hero-visual{ min-height: 260px; }
}

.hero-side .kv{
    display:flex;
    flex-direction:column;
    gap: 10px;
}
.kv-row{
    display:flex;
    justify-content:space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.02);
}
.kv-row span:first-child{ color: var(--muted); }
.kv-row span:last-child{ font-weight: 700; }

/* Section */
.section{
    margin-top: 18px;
}
.section-header{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap: 12px;
    margin: 18px 0 12px;
}
.section-title{
    font-size: 18px;
    letter-spacing: .2px;
    margin: 0;
}
.section-subtitle{
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* Lists */
.clean-list{
    margin: 0;
    padding-left: 18px;
}
.clean-list li{ margin: 8px 0; color: var(--text); }
.clean-list li span{ color: var(--muted); }

/* Timeline */
.timeline{ display:flex; flex-direction:column; gap: 14px; }
.timeline-item{
    display:grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255,255,255,.02);
}
:root[data-theme="light"] .timeline-item{ background: var(--surface); }
@media (max-width: 700px){
    .timeline-item{ grid-template-columns: 1fr; }
}
.timeline-date{
    color: var(--muted);
    font-weight: 700;
}
.timeline-role{
    font-weight: 800;
    margin: 0 0 4px;
}
.timeline-org{
    color: var(--muted);
    margin: 0 0 10px;
}
.tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px; }

/* Footer */
.site-footer{
    border-top: 1px solid var(--border);
    padding: 22px 0;
    background: rgba(255,255,255,.02);
}
.footer-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap: 12px;
    flex-wrap:wrap;
}
.footer-title{ font-weight: 800; }
.footer-meta{ color: var(--muted); font-size: 13px; }
.footer-right{ display:flex; gap: 14px; flex-wrap:wrap; }
.footer-link{ color: var(--muted); }
.footer-link:hover{ color: var(--text); text-decoration: underline; }

/* Copyable contact rows */
.contact-row{
    display:flex;
    justify-content:space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,.02);
    align-items:center;
}
:root[data-theme="light"] .contact-row{ background: var(--surface); }
.contact-row .left{ display:flex; flex-direction:column; gap: 2px; }
.contact-row .label{ color: var(--muted); font-size: 13px; }
.contact-row .value{ font-weight: 700; }

/* =========================
   WebWave-ish "banner + centered grid"
   ========================= */

/* Make the overall page feel less "cardy" */
main { padding: 0; } /* we'll control spacing per section */
.pub{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 42%);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255,255,255,.02);
    box-shadow: var(--shadow);
}


.pub h3{ margin: 0 0 6px; font-size: 16px; }
.pub .meta{ margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.pub .desc{ margin: 0 0 12px; color: var(--text); }

.pub-media{
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0a0c12; /* bar colour */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-media img{
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain; /* <-- KEY CHANGE */
    display: block;
}

@media (max-width: 860px){
    .pub{
        grid-template-columns: 1fr;
    }

    .pub-media img{
        max-height: 320px;
    }
}


.panel{
    border: 1px solid var(--border);
    background: rgba(255,255,255,.02);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.panel-title{
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
}

.panel-text{
    margin: 0 0 10px;
    color: var(--muted);
}

.page{
    padding: 34px 0 70px;
}


.pub-controls{
    border: 1px solid var(--border);
    background: rgba(255,255,255,.02);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
}

.pub-row{
    display:flex;
    gap:12px;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
}

.pub-group{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.pub-label{
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-right: 2px;
}

.chip{
    border: 1px solid var(--border);
    background: rgba(255,255,255,.03);
    color: var(--text);
    padding: 8px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}
.chip:hover{ background: rgba(255,255,255,.06); }
.chip.is-active{
    border-color: rgba(124,92,255,.55);
    background: rgba(124,92,255,.16);
}
.chip-ghost{
    background: transparent;
}


.center{
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
}


/* Full-width banner */
.banner{
    position: relative;
    min-height: 260px;
    display: grid;
    place-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.banner::before{
    content:"";
    position:absolute;
    inset:0;
    /* The banner overlays a gradient on top of the custom banner image.  Reduce
       the opacity of the gradient so the underlying LinkedIn banner is more
       visible. */
    background:
            /* Make the overlay more transparent so the LinkedIn banner image is visible. */
            linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.25)),
            var(--banner-image, none);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

/* -----------------------------------------------------------------
   Home page banner image

   The front page has a custom LinkedIn banner image.  CSS custom
   properties cannot reliably substitute into a `url()` for the
   background so we explicitly set the background image here for
   home pages.  The linear gradient overlay remains to ensure text
   remains readable.  The `background-size` and `background-position`
   properties are re-applied to ensure the override behaves like the
   base rule. */
body[data-page="home"] .banner::before{
    background:
            linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.25)),
            url('../img/LinkedInBanner1.png');
    background-size: cover;
    background-position: center;
}

.banner-inner{
    position: relative;
    z-index: 1;
    padding: 26px var(--pad);
    width: 100%;
}

.banner-title{
    /* Use the primary font for the hero title to match other headings */
    font-family: var(--font);
}

.brand-name{
    /* Use the primary font for the site brand name instead of the serif display font */
    font-family: var(--font);
}


.banner-subtitle{
    margin: 10px auto 0;
    max-width: 70ch;
    color: rgba(255,255,255,.88);
    text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* The "shop" style shell: left filter + center grid */
.shell{
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 26px;
    align-items: start;
    padding-top: 26px;
}

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

.filters{
    position: sticky;
    top: 90px;
    padding-top: 6px;
}

.filters h3{
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.filter-list{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-list a{
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none !important;
}

.filter-list a:hover{
    background: rgba(0,0,0,.04);
    color: var(--text);
}

:root[data-theme="dark"] .filter-list a:hover{
    background: rgba(255,255,255,.06);
}

.filter-list a.is-active{
    background: rgba(0,0,0,.06);
    color: var(--text);
    font-weight: 700;
}
:root[data-theme="dark"] .filter-list a.is-active{
    background: rgba(255,255,255,.08);
}

.hash-focus{
    outline: 2px solid rgba(124,92,255,.55);
    outline-offset: 6px;
    border-radius: 16px;
}


/* Gallery grid like product tiles */
.gallery{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 980px){
    .gallery{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px){
    .gallery{ grid-template-columns: 1fr; }
}


.gallery-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 700px){
    .gallery-2{ grid-template-columns: 1fr; }
}


.tile{
    text-decoration: none !important;
    color: inherit;
}

.tile-media{
    aspect-ratio: 4 / 3;              /* keeps your grid uniform */
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--border);

    /* match pub-media behaviour */
    background: #0a0c12;              /* letterbox bar colour */
    display: flex;
    align-items: center;
    justify-content: center;
}

.tile-media img{
    width: 100%;
    height: 100%;
    object-fit: contain;              /* KEY: no cropping */
    display: block;
}

.tile-body{
    padding: 10px 2px 0;
}

.tile-title{
    margin: 0;
    font-weight: 700;
    font-size: 14px;
}

.tile-meta{
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* Load more / infinite scroll control */
.loadmore{
    margin-top: 28px;
    display: flex;
    justify-content: center;
}
