/* ── Fix: mil-lines-place must always be out of flow ── */
.mil-lines-place { position: absolute !important; pointer-events: none; }

/* ── Spacing reductions ── */
.mil-p-120-60  { padding-top: 60px !important; padding-bottom: 40px !important; }
.mil-p-120-120 { padding-top: 60px !important; padding-bottom: 60px !important; }
.mil-p-0-120   { padding-bottom: 60px !important; }
.mil-mb-120    { margin-bottom: 60px !important; }
.mil-banner .mil-banner-content { padding-bottom: 72px; }

/* ── Spring cursor ring ── */
#mil-cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255,152,0,.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9990;
    top: 0;
    left: 0;
    transition: transform .3s cubic-bezier(0.25,0.46,0.45,0.94),
                border-color .25s,
                background .25s,
                opacity .25s;
    opacity: 0;
    will-change: left, top, transform;
}
#mil-cursor-ring.active  { opacity: 1; }
#mil-cursor-ring.hov     { transform: scale(1.7); border-color: rgba(255,152,0,.9); background: rgba(255,152,0,.07); }
#mil-cursor-ring.on-dark { border-color: rgba(255,255,255,.35); }
#mil-cursor-ring.on-dark.hov { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.05); }

/* Hide on touch / small screens */
@media (hover: none), (max-width: 991px) { #mil-cursor-ring { display: none; } }

/* ── Scroll-reveal stagger helpers ── */
.mil-reveal-stagger > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}
.mil-reveal-stagger.in-view > * { opacity: 1; transform: none; }
.mil-reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0s; }
.mil-reveal-stagger.in-view > *:nth-child(2) { transition-delay: .09s; }
.mil-reveal-stagger.in-view > *:nth-child(3) { transition-delay: .18s; }
.mil-reveal-stagger.in-view > *:nth-child(4) { transition-delay: .27s; }
.mil-reveal-stagger.in-view > *:nth-child(5) { transition-delay: .36s; }
.mil-reveal-stagger.in-view > *:nth-child(6) { transition-delay: .45s; }

/* ── Hero parallax layer ── */
.mil-hero-parallax { will-change: transform; }

/* ── Scroll-velocity skew ── */
.mil-skew-on-scroll { transition: transform .4s cubic-bezier(0.25,0.46,0.45,0.94); will-change: transform; }

/* ── 3D portfolio card tilt (CSS perspective baseline) ── */
.mil-portfolio-item { transform-style: preserve-3d; perspective: 900px; }
.mil-portfolio-item .mil-cover-frame { transform-origin: center center; transition: transform .25s ease; }

/* ── Portfolio image caps — prevent 1000px-tall images on narrow screens ── */
@media (max-width: 1199px) {
    .mil-portfolio-item .mil-cover-frame.mil-vert { padding-bottom: 90% !important; }
    .mil-portfolio-item .mil-cover-frame.mil-hori { padding-bottom: 58% !important; }
}
@media (max-width: 991px) {
    .mil-portfolio-item .mil-cover-frame.mil-vert { padding-bottom: 65% !important; }
    .mil-portfolio-item .mil-cover-frame.mil-hori { padding-bottom: 50% !important; }
    .mil-portfolio-item-wrap { margin-bottom: 40px !important; }
}
@media (max-width: 575px) {
    .mil-portfolio-item .mil-cover-frame.mil-vert { padding-bottom: 60% !important; }
    .mil-portfolio-item .mil-cover-frame.mil-hori { padding-bottom: 45% !important; }
    .mil-portfolio-item-wrap { margin-bottom: 28px !important; }
}

/* xp-* styles live in home-2.html <style> block */

/* ── Hero constellation canvas ── */
#mil-hero-canvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: canvasFadeIn 1.4s 0.8s ease forwards;
}
@keyframes canvasFadeIn { to { opacity: 1; } }
/* Hide on small screens — text side takes full width */
@media (max-width: 991px) { #mil-hero-canvas { display: none; } }

/* ── Global mobile: overflow guard + parallax kill ── */
@media (max-width: 767px) {
    /* wrapper clips horizontal overflow without breaking position:sticky */
    .mil-wrapper { overflow-x: hidden; }
    /* kill parallax JS transforms — they translate elements outside viewport on mobile */
    [data-depth] { transform: none !important; transition: none !important; }
}

/* ── Mobile spacing ── */
@media (max-width: 767px) {
    .mil-p-120-60  { padding-top: 48px !important; padding-bottom: 36px !important; }
    .mil-p-120-120 { padding-top: 48px !important; padding-bottom: 48px !important; }
    .mil-p-0-120   { padding-bottom: 48px !important; }
    .mil-banner .mil-banner-content { padding-bottom: 48px; }
    /* ensure paragraphs breathe on mobile */
    p { margin-bottom: 1.2em; }
    /* ensure headings have clear separation */
    h1, h2, h3 { line-height: 1.1 !important; }
}

@media (max-width: 575px) {
    .mil-p-120-60  { padding-top: 40px !important; padding-bottom: 28px !important; }
    .mil-p-120-120 { padding-top: 40px !important; padding-bottom: 40px !important; }
    .mil-p-0-120   { padding-bottom: 36px !important; }
}

/* ── home-1.html: force 16:9 on tech project grid ── */
#tech-grid .mil-cover-frame.mil-vert,
#tech-grid .mil-cover-frame.mil-hori { padding-bottom: 56.25%; }

/* ── home-1.html: filter bar ── */
.mil-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 60px; }
.mil-filter-btn {
    padding: 8px 20px; border: 1px solid rgba(0,0,0,.15); background: none;
    font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; color: inherit;
    transition: all .25s;
}
.mil-filter-btn:hover, .mil-filter-btn.mil-active { background: #000; color: #fff; border-color: #000; }
.mil-portfolio-item-wrap { transition: opacity .35s ease, transform .35s ease; }
.mil-portfolio-item-wrap.mil-hidden { display: none; }

/* ── home-1/creative: creative cards ── */
.mil-creative-card {
    border: 1px solid rgba(0,0,0,.08); padding: 36px 32px; height: 100%;
    transition: transform .3s, box-shadow .3s;
}
.mil-creative-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.mil-creative-icon {
    width: 48px; height: 48px; background: #000;
    display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.mil-creative-icon i { color: #FF9800; font-size: 18px; }
.mil-creative-card h5 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.mil-creative-card p { font-size: 14px; line-height: 1.7; opacity: .6; margin-bottom: 20px; }
.mil-creative-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mil-ctag { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; background: #f5f5f7; padding: 5px 10px; color: #555; }

/* ── home-1: stat numbers ── */
.mil-stat-num { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -.04em; color: #FF9800; line-height: 1; margin-bottom: 8px; }
.mil-stat-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .5; }

/* ── home-2: about portrait — inside .container, right-anchored ── */
.about-portrait {
    position: absolute; right: -15px; top: 40px; bottom: 0; width: 48%;
    overflow: hidden; pointer-events: none; z-index: 0;
}
.about-portrait img {
    width: 100%; height: 100%;
    object-fit: contain; object-position: bottom right;
    display: block;
}
.about-hero-text {
    position: relative; z-index: 1; max-width: 50%;
    padding-top: 60px; padding-bottom: 80px;
    margin-bottom: 0 !important;
}

/* ── Mobile: stack portrait below text ── */
@media (max-width: 991px) {
    /* make container a flex column so we can reorder */
    .mil-banner-personal .container {
        display: flex;
        flex-direction: column;
    }
    /* text block first, portrait second */
    .mil-banner-content { order: 1; }
    .about-portrait    { order: 2; }

    /* hero text: full-width, centered */
    .about-hero-text {
        max-width: 100%;
        text-align: center;
        padding-bottom: 0;
        padding-top: 48px;
    }
    .about-hero-text .mil-avail-chip { justify-content: center; }
    .about-hero-text .mil-link { justify-content: center; display: inline-flex; }

    /* portrait: in-flow block below text */
    .about-portrait {
        position: relative;
        width: 100%; height: 380px;
        right: auto; top: auto; bottom: auto;
        margin-top: 36px;
    }
    .about-portrait img {
        object-fit: cover;
        object-position: top center;
    }

    /* banner panel: center on tablet/mobile */
    .mil-banner-personal .mil-banner-panel { text-align: center; }
    .mil-banner-personal .mil-banner-panel .mil-right {
        justify-content: center; flex-wrap: wrap;
    }
    .mil-banner-personal .mil-social-frame ul { justify-content: center; }
}
@media (max-width: 767px) {
    .about-portrait { height: 300px; }
    .about-hero-text { padding-top: 36px; }
    .about-hero-text h1 { font-size: clamp(34px, 11vw, 54px) !important; }
}
@media (max-width: 575px) {
    .about-portrait { height: 240px; }
    .about-hero-text h1 { font-size: clamp(28px, 12vw, 40px) !important; }
    .about-hero-text .mil-avail-chip { font-size: 9px; padding: 5px 10px; }
}

/* ── home-2: experience / xp styles ── */
.xp-heading { font-size: clamp(36px,5vw,64px); font-weight:700; margin-bottom:10px; line-height:1.1; }
.xp-sub     { font-size:11px; letter-spacing:1.5px; text-transform:uppercase; opacity:.45; margin:0 0 48px; display:block; }
.xp-list    { padding:0; margin:0; }
.xp-item    { position:relative; display:flex; align-items:flex-start; padding-bottom:52px; }
.xp-item:last-child { padding-bottom:0; }
.xp-dot     { flex-shrink:0; width:9px; height:9px; border-radius:50%; background:#FF9800; margin-top:4px; margin-right:20px; position:relative; z-index:1; }
.xp-line    { position:absolute; left:4px; top:13px; bottom:0; width:1px; background:rgba(0,0,0,.12); }
.xp-item:last-child .xp-line { display:none; }
.xp-content { flex:1; min-width:0; }
.xp-date    { font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:#FF9800; margin-bottom:6px; }
.xp-role    { font-size:20px; font-weight:700; color:#111; line-height:1.2; margin-bottom:5px; }
.xp-company { font-size:11px; letter-spacing:1px; text-transform:uppercase; color:rgba(17,17,17,.38); margin-bottom:18px; }
.xp-bullets { list-style:none; padding:0; margin:0; }
.xp-bullets li { font-size:14px; line-height:1.75; color:rgba(17,17,17,.55); padding:0 0 0 14px; position:relative; }
.xp-bullets li::before { content:''; position:absolute; left:0; top:12px; width:5px; height:1px; background:rgba(17,17,17,.3); }
.xp-right   { padding-left:32px; }
.xp-photo   { position:sticky; top:100px; overflow:hidden; }
.xp-photo img { width:100%; height:auto; display:block; }
@media(max-width:991px){ .xp-right{padding-left:0;margin-top:40px;} .xp-photo{position:static;} }

/* ── home-2: timeline ── */
.mil-timeline { position: relative; padding-left: 28px; }
.mil-timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: rgba(0,0,0,.12); }
.mil-timeline-item { position: relative; margin-bottom: 60px; }
.mil-timeline-item::before { content: ''; position: absolute; left: -32px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: #FF9800; }
.mil-timeline-date { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #FF9800; margin-bottom: 8px; }
.mil-timeline-role { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.mil-timeline-company { font-size: 14px; opacity: .5; margin-bottom: 16px; letter-spacing: .5px; text-transform: uppercase; }
.mil-timeline-bullets { list-style: none; padding: 0; margin: 0; }
.mil-timeline-bullets li { font-size: 15px; opacity: .65; padding: 4px 0 4px 16px; position: relative; }
.mil-timeline-bullets li::before { content: '–'; position: absolute; left: 0; }

/* ── home-2: status badges ── */
.mil-status { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 4px 10px; }
.mil-status.active   { background: rgba(39,201,63,.1);  color: #27c93f; }
.mil-status.building { background: rgba(255,152,0,.1);  color: #FF9800; }
.mil-status.paused   { background: rgba(0,0,0,.07);     color: rgba(0,0,0,.45); }
.mil-status.shipped  { background: rgba(59,130,246,.1); color: #3b82f6; }

/* ── home-2: skill tags ── */
.mil-skill-section { margin-bottom: 40px; }
.mil-skill-section h6 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .4; margin-bottom: 12px; }
.mil-skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mil-skill-tag { font-size: 11px; letter-spacing: 1px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.7); }

/* ── home-2: experiment cards ── */
.mil-experiment-card { border: 1px solid rgba(0,0,0,.07); padding: 28px 26px; background: #fff; height: 100%; transition: border-color .25s, transform .25s; }
.mil-experiment-card:hover { border-color: rgba(255,152,0,.4); transform: translateY(-3px); }
.mil-tag-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.mil-tag { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 8px; border: 1px solid rgba(0,0,0,.12); color: rgba(0,0,0,.45); }

/* ── home-2: award cards ── */
.mil-award-card { padding: 32px; border: 1px solid rgba(255,255,255,.1); margin-bottom: 24px; }
.mil-award-year { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #FF9800; margin-bottom: 12px; font-weight: 700; }

/* ── home-2: stat sm ── */
.mil-stat-sm h3 { font-size: clamp(28px,4vw,48px); font-weight: 700; color: #FF9800; line-height: 1; margin-bottom: 6px; }
.mil-stat-sm p { font-size: 12px; opacity: .5; letter-spacing: .5px; text-transform: uppercase; }

/* ── home-2: dev log ── */
.mil-log-entry { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 14px; line-height: 1.7; opacity: .75; }
.mil-log-entry:first-child { border-top: 1px solid rgba(0,0,0,.06); }
.mil-log-date { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #FF9800; padding-top: 3px; }
@media (max-width: 767px) {
    .mil-experiment-card { padding: 22px 18px; }
    .mil-log-entry { grid-template-columns: 1fr; gap: 6px; }
}

/* ── live dot ── */
.mil-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #27c93f; box-shadow: 0 0 6px rgba(39,201,63,.7); animation: livepulse 2s infinite; vertical-align: middle; margin-right: 5px; }
@keyframes livepulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── availability chip (used in home-1 hero) ── */
.mil-avail-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(39,201,63,.08); border: 1px solid rgba(39,201,63,.25);
    padding: 6px 14px; font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase; color: #27c93f;
    margin-bottom: 24px;
}
.mil-avail-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #27c93f; animation: livepulse 2s infinite; flex-shrink: 0; }

/* ── SL flag accent ── */
.mil-sl-tag {
    font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
    opacity: .45; font-weight: 600;
}

/* ══════════════════════════════════════
   CREATIVE PAGE — frame always white
   (class added/removed by JS so it doesn't
    persist after Swup navigation)
══════════════════════════════════════ */
.mil-frame.cr-dark-frame .mil-logo { color: #fff !important; }
.mil-frame.cr-dark-frame .mil-menu-btn span,
.mil-frame.cr-dark-frame .mil-menu-btn span::before,
.mil-frame.cr-dark-frame .mil-menu-btn span::after { background-color: #fff !important; }
.mil-frame.cr-dark-frame .mil-current-page a,
.mil-frame.cr-dark-frame .mil-back-to-top a,
.mil-frame.cr-dark-frame .mil-back-to-top a span,
.mil-frame.cr-dark-frame .mil-about,
.mil-frame.cr-dark-frame .mil-frame-bottom { color: rgba(255,255,255,.45) !important; }
.mil-frame.cr-dark-frame .mil-back-to-top a .mil-arrow svg path { stroke: rgba(255,255,255,.45) !important; }

/* ══════════════════════════════════════
   CREATIVE PAGE — reactive features
══════════════════════════════════════ */

/* Photo filter bar */
.mil-photo-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.mil-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(0,0,0,.4);
    background: none;
    border: 1px solid rgba(0,0,0,.12);
    padding: 6px 14px;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
    position: relative;
}
.mil-filter-btn:hover {
    color: #111;
    border-color: rgba(0,0,0,.3);
}
.mil-filter-btn.active {
    color: #fff;
    background: #111;
    border-color: #111;
}
.mil-filter-btn.active .mil-filter-count {
    background: rgba(255,255,255,.2);
    color: #fff;
}
.mil-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    background: rgba(0,0,0,.07);
    color: rgba(0,0,0,.4);
    border-radius: 2px;
    padding: 1px 5px;
    letter-spacing: 0;
    transition: background .2s, color .2s;
}

/* Masonry item filter transitions */
.mil-photo-masonry-item {
    transition: opacity .3s ease;
}
.mil-photo-masonry-item.filt-hide {
    opacity: 0 !important;
    pointer-events: none;
}
.mil-photo-masonry-item.filt-gone {
    display: none;
}

/* Web card screenshot scroll effect */
.mil-web-card-preview > .mil-web-card-lb img {
    object-position: center top;
}

/* Brand portrait perspective wrapper */
.mil-brand-portrait-wrap {
    perspective: 800px;
    overflow: hidden;
}
.mil-brand-portrait-wrap img {
    transform-style: preserve-3d;
}

/* Skill tag hover glow (home-2) */
.mil-skill-tag {
    transition: border-color .2s, color .2s, background .2s;
    cursor: default;
}
.mil-skill-tag:hover {
    border-color: rgba(255,152,0,.5);
    color: #FF9800;
    background: rgba(255,152,0,.06);
}

@media (max-width: 767px) {
    .mil-photo-filter-bar { gap: 4px; }
    .mil-filter-btn { padding: 5px 10px; font-size: 9px; }
}

/* ══ technical.html styles ══ */

/* ── filter bar ── */
.tp-filter-wrap {
    position: sticky; top: 72px; z-index: 50;
    background: #fff; padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,.07);
    margin-bottom: 0;
}
.tp-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-filter-btn {
    padding: 7px 18px;
    border: 1px solid rgba(0,0,0,.14);
    background: none;
    font-family: 'Outfit', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer; color: inherit;
    transition: all .22s ease;
}
.tp-filter-btn:hover { border-color: #000; }
.tp-filter-btn.mil-active { background: #111; color: #fff; border-color: #111; }

/* ── project strip ── */
.tp-project { padding: 80px 0 0; scroll-margin-top: 130px; }
.tp-project.tp-hidden { display: none; }

/* meta row */
.tp-meta {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 36px;
}
.tp-num {
    font-size: 11px; font-weight: 700;
    letter-spacing: 3px; opacity: .22; flex-shrink: 0;
}
.tp-rule { flex: 1; height: 1px; background: rgba(0,0,0,.1); }
.tp-cats { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.tp-cat {
    font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: #FF9800;
}
.tp-cat + .tp-cat::before { content: '·'; margin-right: 8px; color: rgba(0,0,0,.2); }
.tp-badge {
    font-size: 9px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; padding: 4px 10px;
    flex-shrink: 0;
}
.tp-badge.is-active  { background: rgba(39,201,63,.09);  color: #1ea831; }
.tp-badge.is-nda     { background: rgba(0,0,0,.05);      color: rgba(0,0,0,.35); }
.tp-badge.is-shipped { background: rgba(59,130,246,.09); color: #2563eb; }
.tp-badge.is-fyp     { background: rgba(255,152,0,.09);  color: #e07b00; }

/* ── strip: two-column layout ── */
.tp-strip {
    display: grid;
    grid-template-columns: 52% 1fr;
    gap: 60px;
    align-items: start;
}

/* images side */
.tp-strip-media {
    display: flex; flex-direction: column; gap: 8px;
}

/* single image: hero fills full media column */
.tp-strip-hero {
    width: 100%; overflow: hidden;
    background: #f3f3f3;
    aspect-ratio: 4 / 3;
}
.tp-strip-media:has(.tp-img-thumb) .tp-strip-hero {
    aspect-ratio: 16 / 9;
}
.tp-strip-hero img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .6s ease;
}
.tp-strip-hero:hover img { transform: scale(1.03); }

/* thumbs row */
.tp-strip-thumbs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.tp-strip-thumbs:empty { display: none; }
.tp-strip-hero, .tp-img-thumb { position: relative; }
.tp-lb-anchor {
    display: block;
    position: absolute; inset: 0;
    cursor: zoom-in;
    z-index: 1;
}
.tp-img-thumb { overflow: hidden; aspect-ratio: 16/9; }
.tp-img-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .5s ease;
}
.tp-img-thumb:hover img { transform: scale(1.05); }

.tp-strip-thumbs.tp-thumbs-3 { grid-template-columns: 1fr 1fr 1fr; }
.tp-strip-thumbs .tp-img-thumb:only-child { grid-column: 1 / -1; }

/* text side */
.tp-strip-content { padding-top: 4px; }
.tp-title {
    font-size: clamp(24px, 2.8vw, 44px); font-weight: 700;
    line-height: 1.08; margin: 0 0 20px; letter-spacing: -.02em;
}
.tp-title span { letter-spacing: -.01em; }
.tp-desc {
    font-size: 15px; line-height: 2;
    color: rgba(0,0,0,.55); margin-bottom: 28px;
    font-weight: 400;
}
.tp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 0; }
.tp-tag {
    font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; padding: 5px 13px;
    background: #f4f4f4; color: rgba(0,0,0,.5);
    border-radius: 2px; transition: background .2s, color .2s;
}
.tp-tag:hover { background: #111; color: #FF9800; }

/* project links */
.tp-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tp-link {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 9px 18px; border: 1px solid rgba(0,0,0,.15);
    color: inherit; text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}
.tp-link:hover { background: #111; color: #fff; border-color: #111; }
.tp-link i { font-size: 12px; }
.tp-link.tp-link-press { border-color: #FF9800; color: #FF9800; }
.tp-link.tp-link-press:hover { background: #FF9800; color: #fff; border-color: #FF9800; }

/* separator */
.tp-sep {
    border: none; border-top: 1px solid rgba(0,0,0,.08);
    margin-top: 80px;
}

/* live dot */
.tp-live {
    display: inline-block; width: 7px; height: 7px;
    border-radius: 50%; background: #27c93f;
    box-shadow: 0 0 5px rgba(39,201,63,.6);
    animation: tplive 2s infinite;
    vertical-align: middle; margin-right: 4px;
}
@keyframes tplive { 0%,100%{opacity:1} 50%{opacity:.25} }

/* responsive */
@media (max-width: 991px) {
    .tp-strip { grid-template-columns: 1fr; gap: 36px; }
    .tp-filter-wrap { top: 60px; }
}
@media (max-width: 767px) {
    .tp-project { padding-top: 56px; }
    .tp-sep { margin-top: 56px; }
    .tp-strip-thumbs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .tp-filter-bar { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
    .tp-filter-btn { padding: 7px 8px; font-size: 10px; text-align: center; }
    .tp-strip-thumbs { grid-template-columns: 1fr; }
}

/* ══ home-1: tech bento cards ══ */
.tp-hcard {
    display:block; text-decoration:none; color:inherit;
    overflow:hidden; border:1px solid rgba(0,0,0,.08);
    background:#fff;
    transition: box-shadow .3s, transform .3s;
    height:100%;
}
.tp-hcard:hover { box-shadow:0 16px 48px rgba(0,0,0,.1); transform:translateY(-3px); }
.tp-hcard-img { overflow:hidden; }
.tp-hcard-img img { width:100%; height:auto; display:block; transition:transform .55s; }
.tp-hcard:hover .tp-hcard-img img { transform:scale(1.04); }
.tp-hcard-foot {
    padding:14px 18px; display:flex; gap:12px; align-items:flex-start;
    border-top:1px solid rgba(0,0,0,.06);
}
.tp-hcard-num { font-size:9px; font-weight:700; letter-spacing:3px; opacity:.2; padding-top:4px; flex-shrink:0; font-family:monospace; }
.tp-hcard-cat { font-size:9px; font-weight:700; letter-spacing:1.8px; text-transform:uppercase; color:#FF9800; margin-bottom:5px; }
.tp-hcard-title { font-size:14px; font-weight:700; line-height:1.35; margin:0; letter-spacing:-.01em; }
#tech-grid .mil-portfolio-item-wrap { margin-bottom:12px; }

/* ══ creative.html styles ══ */

/* service list rows */
.cr-service { display:flex; align-items:center; gap:28px; padding:36px 0; border-bottom:1px solid rgba(0,0,0,.08); text-decoration:none; color:inherit; transition:padding-left .25s; cursor:default; }
.cr-service:first-child { border-top:1px solid rgba(0,0,0,.08); }
.cr-service-num { font-size:10px; font-weight:700; letter-spacing:4px; opacity:.18; flex-shrink:0; width:32px; font-family:monospace; }
.cr-service-icon { width:46px; height:46px; background:#111; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:background .25s; }
.cr-service-icon i { color:#FF9800; font-size:17px; transition:color .25s; }
.cr-service:hover .cr-service-icon { background:#FF9800; }
.cr-service:hover .cr-service-icon i { color:#111; }
.cr-service-main { flex:1; min-width:0; }
.cr-service-title { font-size:clamp(22px,2.8vw,36px); font-weight:700; letter-spacing:-.02em; margin:0 0 8px; line-height:1.1; }
.cr-service-desc { font-size:13px; line-height:1.7; opacity:.5; margin:0 0 14px; max-width:520px; }
.cr-tags { display:flex; flex-wrap:wrap; gap:6px; }
.cr-tag { font-size:9px; font-weight:700; letter-spacing:1.8px; text-transform:uppercase; padding:4px 11px; background:rgba(0,0,0,.05); color:rgba(0,0,0,.55); }
.cr-service-arrow { font-size:22px; opacity:.15; flex-shrink:0; transition:opacity .25s,transform .25s; margin-left:auto; }
.cr-service:hover .cr-service-arrow { opacity:.6; transform:translateX(5px); }
@media (max-width:767px) { .cr-service { flex-wrap:wrap; gap:16px; } .cr-service-arrow { display:none; } .cr-service-title { font-size:22px; } }

.mil-web-card {
    border: 1px solid rgba(0,0,0,.08);
    overflow: hidden; height: 100%;
    transition: box-shadow .3s, transform .3s;
    background: #fff;
}
.mil-web-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.1); transform: translateY(-3px); }
.mil-web-card-top {
    background: #f5f5f5; padding: 14px 18px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    display: flex; align-items: center; gap: 7px;
}
.mil-browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.mil-web-card-preview {
    width: 100%; overflow: hidden;
}
.mil-web-card-preview img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    display: block; transition: transform .5s;
    margin-top: -5.63%; /* crop ~10% from top of screenshot */
}
.mil-web-card:hover .mil-web-card-preview img { transform: scale(1.04); }
.mil-web-card-body { padding: 24px; }
.mil-web-card-body h5 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.mil-web-card-body p { font-size: 12px; line-height: 1.7; opacity: .55; margin-bottom: 14px; }
.mil-web-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.mil-wtag {
    font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
    border: 1px solid rgba(0,0,0,.1); padding: 3px 8px; color: #777;
}

/* ── Brand 3-panel image layout ── */
.ig-brand-block { background:#fff; border:1px solid rgba(0,0,0,.1); overflow:hidden; margin-bottom:40px; }
.ig-brand-header { padding:22px 24px 18px; border-bottom:1px solid rgba(0,0,0,.07); display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.ig-brand-meta { flex:1; min-width:0; }
.ig-brand-handle { font-size:15px; font-weight:700; color:#111; line-height:1.2; }
.ig-brand-type { font-size:11px; color:rgba(0,0,0,.38); margin-top:3px; letter-spacing:.3px; }
.ig-brand-bio { font-size:12px; color:rgba(0,0,0,.5); line-height:1.6; margin-top:10px; }
.ig-3panel { display:grid; grid-template-columns:repeat(3,1fr); gap:2px; }
.ig-3panel-frame { overflow:hidden; position:relative; }
.ig-3panel-frame a { display:block; overflow:hidden; }
.ig-3panel-frame img { width:100%; aspect-ratio:9/19; object-fit:cover; display:block; transition:transform .5s; }
.ig-3panel-frame:hover img { transform:scale(1.04); }
.ig-3panel-label { font-size:9px; letter-spacing:2px; text-transform:uppercase; text-align:center; padding:8px 4px 4px; color:rgba(0,0,0,.4); font-weight:700; }
.ig-brand-footer { padding:14px 24px; border-top:1px solid rgba(0,0,0,.07); display:flex; align-items:center; justify-content:space-between; }

/* ── IG Profile embed ── */
.ig-profile { background:#fff; border:1px solid rgba(0,0,0,.1); overflow:hidden; margin-bottom:40px; }
.ig-profile-header { padding:22px 24px 18px; border-bottom:1px solid rgba(0,0,0,.07); }
.ig-profile-top { display:flex; align-items:center; gap:16px; margin-bottom:16px; }
.ig-avatar-ring { padding:2px; background:linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-radius:50%; flex-shrink:0; }
.ig-avatar { width:56px; height:56px; border-radius:50%; background:#111; display:flex; align-items:center; justify-content:center; border:2px solid #fff; }
.ig-handle { font-size:15px; font-weight:700; color:#111; line-height:1.2; }
.ig-type { font-size:11px; color:rgba(0,0,0,.38); margin-top:3px; letter-spacing:.3px; }
.ig-follow-btn { margin-left:auto; display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:#fff; background:linear-gradient(90deg,#e6683c,#cc2366); padding:8px 16px; text-decoration:none; flex-shrink:0; transition:opacity .2s; }
.ig-follow-btn:hover { opacity:.85; color:#fff; }
.ig-bio { font-size:12px; color:rgba(0,0,0,.5); line-height:1.6; }
.ig-embed-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0; }
.ig-embed-cell { overflow:hidden; }
.ig-embed-cell .instagram-media { margin:0 !important; max-width:100% !important; min-width:0 !important; width:100% !important; border-radius:0 !important; box-shadow:none !important; border:none !important; border-right:1px solid rgba(0,0,0,.07) !important; border-bottom:1px solid rgba(0,0,0,.07) !important; }
.ig-footer { padding:14px 24px; border-top:1px solid rgba(0,0,0,.07); display:flex; align-items:center; justify-content:space-between; }
.ig-footer-logo { display:flex; align-items:center; gap:7px; font-size:12px; color:rgba(0,0,0,.35); font-weight:600; }
.ig-view-more { font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:#111; text-decoration:none; }
.ig-view-more:hover { color:#e6683c; }

/* creative.html responsive overrides */
@media (max-width: 767px) {
    .mil-web-card-body { padding: 18px; }
    .ig-3panel { grid-template-columns: 1fr; }
    .ig-embed-grid { grid-template-columns: 1fr; }
}

/* ══ home-1.html styles ══ */

/* ── easter egg terminal ── */
#mil-ee-terminal {
    display: none; position: fixed;
    bottom: 30px; right: 30px; width: 400px; max-width: 90vw;
    background: #080808; border: 1px solid #FF9800;
    font-family: 'Courier New', monospace;
    padding: 18px; z-index: 9999;
    box-shadow: 0 20px 60px rgba(0,0,0,.8);
}
#mil-ee-terminal .ee-bar {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,152,0,.2);
}
.ee-dot { width: 9px; height: 9px; border-radius: 50%; }
#mil-ee-terminal pre { margin: 0; white-space: pre-wrap; line-height: 1.65; color: #ccc; font-size: 11px; }
#mil-ee-terminal pre .a { color: #FF9800; }
#mil-ee-terminal pre .g { color: #27c93f; }
.ee-close { position: absolute; top: 14px; right: 14px; cursor: pointer; color: #FF9800; font-size: 15px; }

/* ── typed cursor ── */
.mil-typed-cursor { animation: tcBlink .7s infinite; font-weight: 300; }
@keyframes tcBlink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── magnetic button ── */
.mil-button, .mil-link { will-change: transform; }

/* ── section spacing fixes ── */
#creative > .mil-animation-frame + .container,
#creative .container { padding-top: 80px !important; padding-bottom: 80px !important; }
#creative .row.align-items-end.mil-mb-60 { margin-bottom: 40px !important; }
#technical { padding-bottom: 0; }
#technical .container { padding-bottom: 40px !important; }

/* ══════════════════════════════════════
   EXPERIENCE SECTION FLEX (home-2)
══════════════════════════════════════ */
.xp-experience-wrap { display: flex; gap: 40px; align-items: flex-start; }
.xp-timeline-col    { flex: 0 0 58%; min-width: 0; }
.xp-photos-col      { flex: 0 0 38%; position: sticky; top: 100px; align-self: flex-start; }
.xp-work-grid       { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.xp-work-grid > div { overflow: hidden; aspect-ratio: 1; }
.xp-work-grid > div:last-child { grid-column: 1 / -1; aspect-ratio: 2/1; }
.xp-work-grid img   { width: 100%; height: 100%; object-fit: cover; display: block;
                      transition: transform .5s, filter .4s; filter: grayscale(20%); }
.xp-work-grid img:hover { transform: scale(1.08); filter: grayscale(0%); }

@media (max-width: 991px) {
    .xp-experience-wrap   { flex-direction: column; gap: 0; }
    .xp-timeline-col      { flex: none; width: 100%; }
    .xp-photos-col        { flex: none; width: 100%; position: static; margin-top: 48px; }
    .xp-work-grid         { grid-template-columns: repeat(4, 1fr); }
    .xp-work-grid > div:last-child { grid-column: auto; aspect-ratio: 1; }
}
@media (max-width: 575px) {
    .xp-photos-col { display: none; }
}

/* ══════════════════════════════════════
   TABLET SPACING (768-991px)
══════════════════════════════════════ */
@media (max-width: 991px) {
    .mil-p-120-60  { padding-top: 52px !important; padding-bottom: 36px !important; }
    .mil-p-120-120 { padding-top: 52px !important; padding-bottom: 52px !important; }
    .mil-p-0-120   { padding-bottom: 52px !important; }
    .mil-mb-120    { margin-bottom: 52px !important; }
    .mil-award-card { padding: 24px; }
    .mil-experiment-card { padding: 24px 20px; }
    /* creative tiles: 2 col on tablet (3 breaks too narrow) */
    #creative-tiles-grid { grid-template-columns: 1fr 1fr !important; }
    /* ig-3panel at tablet: keep 3, just tighter */
    .ig-3panel { grid-template-columns: repeat(3, 1fr); }
    /* brand 3-panel section wrapper: reduce padding */
    .brand-panel-wrap { padding: 28px 20px 20px !important; }
}

/* ══════════════════════════════════════
   STORY SECTION (home-2)
══════════════════════════════════════ */
@media (max-width: 767px) {
    #story p    { font-size: 16px !important; line-height: 1.65 !important; }
    #story .col-lg-7, #story .col-lg-4 { margin-bottom: 0; }
}

/* ══════════════════════════════════════
   ABOUT PAGE — general mobile polish
══════════════════════════════════════ */
@media (max-width: 767px) {
    /* Skills section: bento headline */
    .sk-headline { font-size: clamp(32px, 10vw, 52px) !important; }
    .sk-section-label { font-size: 10px !important; }

    /* Skills stats row: wrap nicely */
    #skills .container > .row div[style*="display:flex"][style*="gap:28px"] {
        gap: 16px !important;
        flex-wrap: wrap;
    }

    /* Experience: timeline breathing room */
    .xp-item { padding-bottom: 36px; }
    .xp-role { font-size: 18px; }

    /* Education section */
    #education .col-lg-5, #education .col-lg-7 { margin-bottom: 20px; }

    /* Awards: full-width stack */
    .mil-award-card { margin-bottom: 14px; }

    /* Lab section heading */
    #lab h2 { font-size: clamp(28px, 9vw, 44px) !important; }

    /* DevLog entries */
    #devlog h2 { font-size: clamp(28px, 9vw, 44px) !important; }
}
@media (max-width: 575px) {
    /* Skills bento: single column already handled, just reduce padding */
    .sk-card { padding: 28px 24px 24px !important; }

    /* Timeline: tighter */
    .mil-timeline { padding-left: 20px; }
    .mil-timeline-item::before { left: -24px; }
    .mil-timeline-role { font-size: 16px; }
    .mil-timeline-bullets li { font-size: 13px; }

    /* Banner panel on small phones: stack social + button */
    .mil-banner-personal .mil-banner-panel .mil-right {
        gap: 16px !important;
    }
}

/* ══════════════════════════════════════
   CREATIVE PAGE MOBILE
══════════════════════════════════════ */
@media (max-width: 767px) {
    #creative-content { margin-top: 40px !important; }
    #creative > .mil-animation-frame + .container,
    #creative .container { padding-top: 48px !important; padding-bottom: 48px !important; }
    /* brand panel wrapper */
    .brand-panel-wrap { padding: 20px 14px 16px !important; }
    /* brand column borders removed on mobile */
    .brand-col-border { border-right: none !important; border-bottom: 1px solid rgba(0,0,0,.07); padding-bottom: 28px !important; margin-bottom: 12px !important; }
}

/* ══════════════════════════════════════
   HOME-1 HERO MOBILE SPACING
══════════════════════════════════════ */
@media (max-width: 767px) {
    .mil-avail-chip { margin-bottom: 18px !important; font-size: 10px; padding: 5px 11px; }
    .mil-banner-content .mil-suptitle { margin-bottom: 14px !important; }
    .mil-banner-content h1 { margin-bottom: 20px !important; font-size: clamp(34px, 11vw, 52px) !important; }
    .mil-banner-content p  { margin-bottom: 28px !important; font-size: 15px !important; }
    /* creative tiles text padding on mobile */
    #creative a[href][style*="height"] > div[style*="padding:30px"] { padding: 18px 16px !important; }
}
@media (max-width: 575px) {
    .mil-banner-content h1 { font-size: clamp(30px, 12vw, 44px) !important; }
    /* stats side-by-side: tighten on small phones */
    .mil-stat-num { font-size: clamp(32px, 9vw, 48px) !important; }
}

/* ══════════════════════════════════════
   TECHNICAL PAGE MOBILE
   (detailed rules live in technical.html
    <style> block — these are supplements)
══════════════════════════════════════ */
@media (max-width: 991px) {
    .tp-strip { gap: 24px; }
}
/* no conflicting rules below 767px — technical.html handles them */

/* ══════════════════════════════════════
   GENERAL MOBILE POLISH
══════════════════════════════════════ */
@media (max-width: 767px) {
    /* reduce section title suptext size */
    .mil-suptitle { font-size: 10px !important; }
    /* log entry */
    .mil-log-entry { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
    .mil-log-date  { padding-top: 0; }
    /* experiment card on mobile */
    .mil-experiment-card { padding: 20px 16px; }
    /* award card */
    .mil-award-card { padding: 22px 20px; margin-bottom: 16px; }
    /* lab featured card */
    .lab-featured-card { padding: 24px 20px !important; }
}
@media (max-width: 575px) {
    /* skills tags: slightly smaller */
    .mil-skill-tag { font-size: 10px; padding: 5px 10px; }
    /* CTA section h2 */
    .mil-center h2 { font-size: clamp(26px, 9vw, 40px) !important; }
}
