/* ============================================================
   JESUGBENGA OMONIWA — PORTFOLIO
   Inspired by blit.studio + outfit.hellohello.is
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --bg: #ece4d6;            /* warm cream */
    --bg-elev: #e2d9c7;
    --ink: #0c0c0c;
    --ink-soft: #4a4a4a;
    --ink-muted: #8a8275;
    --line: rgba(12, 12, 12, 0.15);
    --line-strong: rgba(12, 12, 12, 0.55);
    --accent: #ff3b30;        /* red dot */
    --accent-soft: rgba(255, 59, 48, 0.12);
    --radius: 14px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --max-w: 1480px;
    --pad-x: clamp(20px, 5vw, 64px);
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html.dark {
    --bg: #0c0c0c;
    --bg-elev: #161616;
    --ink: #ece4d6;
    --ink-soft: #b8b0a0;
    --ink-muted: #6f6a5e;
    --line: rgba(236, 228, 214, 0.16);
    --line-strong: rgba(236, 228, 214, 0.55);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-display);
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

img {
    max-width: 100%;
    display: block;
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* ---------- Custom cursor ---------- */
.cursor-dot,
.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    background: var(--ink);
    border-radius: 50%;
    transition: width 0.25s var(--ease), height 0.25s var(--ease),
                margin 0.25s var(--ease), background 0.25s var(--ease),
                opacity 0.25s var(--ease);
    opacity: 0;
}

.cursor-trail {
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease);
}

.has-custom-cursor .cursor-dot,
.has-custom-cursor .cursor-trail {
    opacity: 1;
}

.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor .work-item {
    cursor: none;
}

body.cursor-hover .cursor-dot {
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    background: transparent;
    border: 1.5px solid var(--ink);
}

body.cursor-hover .cursor-trail {
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
}

/* ---------- Header / nav ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px var(--pad-x);
    z-index: 200;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.logo {
    display: inline-flex;
    align-items: baseline;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--accent);
}

.primary-nav {
    display: flex;
    gap: clamp(20px, 3vw, 40px);
    font-size: 15px;
    font-weight: 500;
}

.primary-nav a {
    position: relative;
    padding-bottom: 3px;
    transition: opacity 0.25s var(--ease);
}

.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.45s var(--ease);
}

.primary-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-pip {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.3); opacity: 0.7; }
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    transition: opacity 0.25s var(--ease);
}

.theme-toggle .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.theme-toggle .dot-1 { background: var(--ink); }
.theme-toggle .dot-2 {
    background: var(--bg);
    border: 1.5px solid var(--ink);
    position: relative;
}
.theme-toggle .dot-2::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--ink);
}
.theme-toggle .dot-3 { background: var(--accent); }

.theme-toggle:hover { opacity: 0.7; }

/* ---------- Layout helpers ---------- */
main {
    padding-top: 96px;
}

.section {
    padding: clamp(80px, 11vw, 160px) var(--pad-x);
    border-top: 1px solid var(--line);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(20px, 4vw, 60px);
    align-items: end;
    margin-bottom: clamp(50px, 7vw, 90px);
}

.section-label,
.meta-label {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
}

.section-title {
    font-size: clamp(40px, 6.5vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.035em;
    font-weight: 800;
}

.accent-dot {
    color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
    padding: clamp(40px, 8vw, 100px) var(--pad-x) clamp(30px, 4vw, 50px);
}

.hero-title {
    font-size: calc((100vw - 2 * var(--pad-x)) / 5.3);
    font-weight: 900;
    line-height: 0.82;
    letter-spacing: -0.06em;
    white-space: nowrap;
    position: relative;
}

.hero-title .r {
    font-size: 0.18em;
    vertical-align: super;
    font-weight: 600;
    margin-left: 6px;
    color: var(--accent);
}

.hero-meta {
    display: grid;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.7fr) minmax(0, 1.1fr) minmax(0, 0.6fr);
    gap: clamp(16px, 3vw, 48px);
    margin-top: clamp(30px, 4vw, 60px);
    padding-top: 24px;
    border-top: 1px solid var(--line-strong);
}

.meta-col p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.4;
    margin-top: 6px;
    max-width: 32ch;
}

.meta-col a {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    border-bottom: 1px solid currentColor;
}

.meta-col--right {
    text-align: right;
}

/* ---------- Works list ---------- */
.works-list {
    list-style: none;
    border-top: 1px solid var(--line-strong);
}

.work-thumb {
    /* used only on mobile card layout */
    display: none;
}

.work-item {
    border-bottom: 1px solid var(--line);
    transition: background 0.4s var(--ease);
}

.work-trigger {
    width: 100%;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 26px;
    align-items: center;
    text-align: left;
    gap: clamp(14px, 2.2vw, 28px);
    padding: clamp(20px, 2.4vw, 30px) clamp(8px, 1.5vw, 20px);
    transition: padding 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}

.work-item:hover {
    background: var(--bg-elev);
}

.work-item:hover .work-trigger,
.work-item.is-open .work-trigger {
    padding-left: clamp(20px, 3vw, 40px);
}

.work-index {
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
}

.work-title {
    font-size: clamp(20px, 2.6vw, 36px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.work-arrow {
    font-size: 22px;
    line-height: 1;
    text-align: center;
    opacity: 0.55;
    transform: rotate(0deg);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    color: var(--accent);
}

.work-item:hover .work-arrow,
.work-item.is-open .work-arrow {
    opacity: 1;
}

.work-item.is-open .work-arrow {
    transform: rotate(45deg);
}

.work-panel {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.55s var(--ease), opacity 0.4s var(--ease);
    opacity: 0;
}

.work-item.is-open .work-panel {
    grid-template-rows: 1fr;
    opacity: 1;
}

.work-panel-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: 60px minmax(0, 1.05fr) minmax(260px, 0.95fr);
    grid-template-areas:
        ". details skills"
        ". details actions";
    gap: 14px clamp(16px, 3vw, 40px);
    padding: 0 clamp(8px, 1.5vw, 20px);
}

.work-item.is-open .work-panel-inner {
    padding-bottom: clamp(20px, 2.6vw, 32px);
}

.work-details {
    grid-area: details;
    list-style: none;
    padding-left: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
}

.work-details li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
}

.work-details li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.work-skills {
    grid-area: skills;
    align-self: start;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--bg-elev) 54%, transparent);
}

.work-skills span {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-muted);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

.work-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.work-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.work-actions a:hover {
    background: var(--ink);
    color: var(--bg);
    transform: translateY(-2px);
}

.work-actions .work-icon-link {
    width: 42px;
    padding: 0;
    border-color: var(--accent);
    color: var(--accent);
    font-size: 17px;
}

.work-actions .work-icon-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- Ghost button ---------- */
.ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    padding: 16px 28px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.ghost-btn:hover {
    background: var(--ink);
    color: var(--bg);
    transform: translateY(-2px);
}

/* ---------- Experience ---------- */
.exp-list {
    list-style: none;
    border-top: 1px solid var(--line-strong);
}

.exp-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: clamp(20px, 4vw, 60px);
    padding: clamp(28px, 4vw, 50px) clamp(8px, 1.5vw, 20px);
    border-bottom: 1px solid var(--line);
    align-items: start;
    transition: background 0.4s var(--ease);
}

.exp-item:hover {
    background: var(--bg-elev);
}

.exp-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-elev);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--line);
}

.exp-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.exp-role {
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.exp-now {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 4px 10px;
    border-radius: 999px;
    position: relative;
    top: -2px;
}

.exp-item--current {
    background: linear-gradient(180deg, var(--accent-soft), transparent 70%);
}

.exp-item--current:hover {
    background: linear-gradient(180deg, var(--accent-soft), var(--bg-elev) 90%);
}

.exp-company {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-weight: 600;
}

.exp-points {
    margin-top: 18px;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.55;
    max-width: 70ch;
}

.exp-points li {
    margin-bottom: 6px;
}

.exp-date {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    white-space: nowrap;
    padding-top: 8px;
    font-variant-numeric: tabular-nums;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    gap: clamp(30px, 6vw, 90px);
    align-items: start;
}

.about-portrait {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elev);
    aspect-ratio: 4 / 5;
}

.about-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.about-portrait:hover img {
    transform: scale(1.03);
}

.portrait-tag {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.18em;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.about-title {
    margin-top: 20px;
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.about-title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 600;
}

.about-copy > p {
    margin-top: 28px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 60ch;
}

.about-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.about-stack > div {
    min-width: 0;
}

.about-stack p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.55;
}

.about-stack-currently {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 24px;
    border-top: 1px dashed var(--line);
}

.about-stack-currently p {
    font-size: 15px;
    color: var(--ink);
    max-width: 70ch;
}

/* ---------- Contact ---------- */
.contact {
    padding-bottom: clamp(40px, 6vw, 80px);
}

.contact-headline {
    font-size: clamp(48px, 9vw, 140px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-top: 24px;
}

.contact-email {
    display: inline-block;
    margin-top: clamp(30px, 5vw, 60px);
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 4px;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-email:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.contact-foot {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 60px);
    margin-top: clamp(60px, 8vw, 100px);
    padding-top: 24px;
    border-top: 1px solid var(--line-strong);
}

.contact-col p {
    margin-top: 6px;
    font-size: 14px;
    color: var(--ink-soft);
}

.contact-col--right {
    text-align: right;
}

.contact-socials {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    gap: 4px;
    font-size: 15px;
    font-weight: 500;
}

.contact-socials a {
    transition: color 0.25s var(--ease);
    width: fit-content;
}

.contact-socials a:hover {
    color: var(--accent);
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
    z-index: 150;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: #fff;
}

/* ---------- Reveal-on-scroll ---------- */
.hero,
.section,
.work-item,
.exp-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.hero.in-view,
.section.in-view,
.work-item.in-view,
.exp-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Selection ---------- */
::selection {
    background: var(--accent);
    color: #fff;
}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 1024px) {
    .hero-meta {
        grid-template-columns: 1fr 1fr;
    }
    .meta-col--right {
        text-align: left;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-portrait {
        max-width: 420px;
    }
    .contact-foot {
        grid-template-columns: 1fr 1fr;
    }
    .contact-col--right {
        grid-column: 1 / -1;
        text-align: left;
        padding-top: 16px;
        border-top: 1px solid var(--line);
    }
}

/* ============================================================
   MOBILE DOCK (floating bottom nav)
   ============================================================ */
.mobile-dock {
    display: none;
}

@media (max-width: 720px) {
    .mobile-dock {
        position: fixed;
        left: 50%;
        bottom: 14px;
        transform: translateX(-50%);
        z-index: 250;
        display: flex;
        align-items: center;
        gap: 2px;
        padding: 5px;
        border-radius: 999px;
        background: color-mix(in srgb, var(--bg) 55%, transparent);
        backdrop-filter: blur(18px) saturate(160%);
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14),
                    0 2px 6px rgba(0, 0, 0, 0.06);
        max-width: calc(100vw - 24px);
    }

    .dock-item {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        color: var(--ink-soft);
        transition: color 0.3s var(--ease), background 0.3s var(--ease);
    }

    .dock-item i {
        font-size: 16px;
        transition: transform 0.35s var(--ease);
    }

    .dock-item span {
        /* hide text labels for a cleaner icon-only dock */
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .dock-item::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -4px;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--accent);
        transform: translateX(-50%) scale(0);
        transition: transform 0.35s var(--ease);
    }

    .dock-item.is-active {
        color: var(--ink);
        background: color-mix(in srgb, var(--ink) 8%, transparent);
    }

    .dock-item.is-active i {
        transform: scale(1.1);
    }

    .dock-item.is-active::after {
        transform: translateX(-50%) scale(1);
    }

    .dock-item--accent i {
        color: var(--accent);
    }

    .dock-item--accent.is-active {
        background: var(--accent);
        color: #fff;
    }

    .dock-item--accent.is-active i {
        color: #fff;
    }

    .dock-item--accent.is-active::after {
        background: #fff;
    }

    /* hide back-to-top on mobile — dock replaces it */
    .back-to-top {
        display: none;
    }
}

/* ============================================================
   RESPONSIVE — mobile (outfit.hellohello.is feel)
   ============================================================ */
@media (max-width: 720px) {
    main { padding-top: 80px; padding-bottom: 80px; }

    .site-header {
        padding: 16px var(--pad-x);
    }
    /* hide the top nav links entirely on mobile — dock handles it */
    .primary-nav {
        display: none;
    }

    .section-head {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hero-meta {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* ---------- Works: compact list accordion ---------- */
    .works-list {
        display: block;
        border-top: 1px solid var(--line-strong);
    }
    .work-item {
        border-bottom: 1px solid var(--line);
        background: transparent !important;
    }
    .work-trigger {
        grid-template-columns: 30px minmax(0, 1fr) 24px;
        gap: 12px;
        padding: 16px 0;
    }
    .work-thumb {
        display: none;
    }
    .work-index {
        display: block;
        font-size: 11px;
    }
    .work-title {
        font-size: clamp(18px, 5vw, 26px);
        font-weight: 650;
        line-height: 1.02;
    }
    .work-arrow {
        display: block;
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
        font-size: 22px;
    }
    .work-panel-inner {
        grid-template-columns: 34px minmax(0, 1fr);
        grid-template-areas:
            ". details"
            ". skills"
            ". actions";
        gap: 12px;
        padding: 0;
    }
    .work-item.is-open .work-panel-inner {
        padding-bottom: 22px;
    }
    .work-details {
        font-size: 14px;
        line-height: 1.5;
    }
    .work-skills {
        padding: 14px;
        font-size: 13px;
    }
    .work-actions {
        gap: 10px;
    }
    .work-actions a {
        min-height: 38px;
        padding: 0 14px;
        font-size: 11px;
    }

    /* ---------- Experience ---------- */
    .exp-item {
        grid-template-columns: 50px 1fr;
        grid-template-areas:
            "logo role"
            "logo company"
            ".    date"
            ".    points";
        gap: 4px 16px;
    }
    .exp-logo {
        grid-area: logo;
        align-self: start;
        width: 50px;
        height: 50px;
    }
    .exp-logo img {
        width: 28px;
        height: 28px;
    }
    /* let body's children participate in the item grid so date can sit between company and bullets */
    .exp-body { display: contents; }
    .exp-role    { grid-area: role; }
    .exp-company { grid-area: company; }
    .exp-points  { grid-area: points; margin-top: 14px; }
    .exp-date {
        grid-area: date;
        padding: 0;
        margin: 2px 0 0 0;
    }
    .exp-role {
        font-size: 18px;
    }

    /* ---------- About ---------- */
    .about-stack {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* ---------- Contact ---------- */
    .contact-foot {
        grid-template-columns: 1fr;
    }

    /* hide custom cursor on touch */
    .has-custom-cursor .cursor-dot,
    .has-custom-cursor .cursor-trail {
        display: none;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .hero, .section, .work-item, .exp-item {
        opacity: 1;
        transform: none;
    }
}
