:root {
    color-scheme: dark;
    --bg: #050505;
    --bg-soft: #0a0a0b;
    --panel: #111113;
    --panel-strong: #18191b;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(167, 255, 224, 0.24);
    --text: #f3f4f4;
    --muted: #a5a8aa;
    --subtle: #73777a;
    --teal: #8fffe3;
    --mint: #9fffe8;
    --teal-soft: rgba(143, 255, 227, 0.08);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(143, 255, 227, 0.045), transparent 30rem),
        linear-gradient(135deg, #050505 0%, #0b0b0c 48%, #111113 100%);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 28px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0;
}

.profile-panel {
    position: sticky;
    top: 24px;
    align-self: start;
}

.profile-card,
.content-card,
.hero-section {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(18, 18, 20, 0.96), rgba(10, 10, 11, 0.96));
    box-shadow: var(--shadow);
    border-radius: 8px;
}

.profile-card {
    padding: 28px;
}

.avatar {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin-bottom: 24px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(143, 255, 227, 0.16), rgba(255, 255, 255, 0.03));
    color: var(--mint);
    font-size: 1.45rem;
    font-weight: 800;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--teal);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    font-size: clamp(2.4rem, 8vw, 4.15rem);
    line-height: 0.94;
}

h2 {
    margin-bottom: 0;
    font-size: 25px;
    line-height: 1.1;
}

h3 {
    margin-bottom: 4px;
    font-size: 1rem;
    line-height: 1.3;
}

.summary,
#intro-copy,
.item-description,
.meta-line,
.detail-line {
    color: var(--muted);
}

.summary {
    margin-bottom: 22px;
}

.profile-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.92rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-link,
.section-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.badge-link:hover,
.section-nav a:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: var(--teal-soft);
}

.badge-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(143, 255, 227, 0.075);
    color: var(--mint);
    font-size: 0.72rem;
    font-weight: 800;
}

.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.section-nav a {
    color: var(--muted);
    font-size: 0.86rem;
}

.content {
    display: grid;
    gap: 18px;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 28px;
    align-items: start;
    padding: 32px;
}

.hero-section h2::after {
    content: "";
    display: block;
    width: min(100%, 64ch);
    height: 1px;
    margin: 12px 0 14px;
    background: var(--line);
}

#intro-copy {
    max-width: 64ch;
    margin-bottom: 0;
}

.quick-stats {
    display: grid;
    gap: 10px;
}

.stat {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.stat strong {
    display: block;
    color: var(--mint);
    font-size: 1.3rem;
    line-height: 1.1;
}

.stat span {
    color: var(--muted);
    font-size: 0.85rem;
}

.content-card {
    padding: 28px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.section-heading h2 {
    color: var(--mint);
}

.stack-list {
    display: grid;
}

.item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.stack-list .item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.compact .item {
    padding: 18px 0;
}

.logo-tile {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-strong);
    color: var(--mint);
    font-size: 0.78rem;
    font-weight: 800;
}

.logo-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-tile:empty::before {
    content: attr(data-fallback);
}

.logo-tile.morgan {
    background: #07345a;
    color: #06345d;
    border-color: rgba(116, 179, 229, 0.28);
}

.logo-tile.fdm {
    background: #b7ff00;
    color: #172400;
    border-color: rgba(167, 255, 0, 0.48);
}

.logo-tile.cine {
    background: #d60012;
    color: #fff;
    border-color: rgba(255, 96, 108, 0.38);
}

.logo-tile.retail {
    background: #cf0026;
    color: #fff;
    border-color: rgba(255, 96, 126, 0.38);
}

.logo-tile.circlek {
    background: #d82027;
    color: #fff;
    border-color: rgba(255, 111, 116, 0.38);
}

.logo-tile.school {
    background: #d7d8da;
    color: #be1e2d;
    border-color: rgba(255, 255, 255, 0.22);
}

.item-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 2px;
}

.item-title {
    color: var(--text);
    font-weight: 800;
}

.item-date {
    color: var(--subtle);
    font-size: 0.88rem;
    white-space: nowrap;
}

.item-org {
    color: var(--muted);
    font-weight: 600;
}

.detail-line {
    margin: 4px 0 10px;
    font-size: 0.92rem;
}

.item-description {
    margin-bottom: 12px;
    max-width: 70ch;
}

.tag-list,
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tag,
.skill {
    border: 1px solid rgba(143, 255, 227, 0.18);
    border-radius: 999px;
    background: rgba(143, 255, 227, 0.045);
    color: #dffdf5;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 9px;
}

.skill-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-top: 22px;
}

.skill-group {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
}

.skill-group h3 {
    margin-bottom: 12px;
    color: var(--mint);
}

.credential-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 2px;
    color: var(--mint);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

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

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

    .profile-panel {
        position: static;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .page-shell {
        width: min(100% - 24px, 1180px);
    }

    .profile-card,
    .content-card,
    .hero-section {
        padding: 20px;
    }

    .item,
    .skill-groups {
        grid-template-columns: 1fr;
    }

    .item-header {
        flex-direction: column;
        gap: 2px;
    }

    .item-date {
        white-space: normal;
    }
}
