/* Landing additions — loaded after main.css, which stays untouched. */

html, body
{
    overflow-x: hidden;
    overflow-y: auto;
    background: #1e1e1e;
    scroll-behavior: smooth;
}

.content, .content *
{
    -webkit-user-select: text;
    user-select: text;
}

/* Loading counter: centred on the viewport (and so on the 3D logo),
   whatever the number of digits. Overrides main.css top:46% / left:46.5%. */
.loading
{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1;
    pointer-events: none;
}

/* First screen: the existing 3D logo + corner nav, unchanged */
.hero
{
    position: relative;
    height: 100vh;
    height: 100svh;
}

.nav a, .content a
{
    transition: opacity 300ms cubic-bezier(.25,.46,.45,.94);
}

.nav a:hover, .content a:hover
{
    opacity: 0.5;
}

/* Content scrolls over the fixed canvas */
.content
{
    position: relative;
    z-index: 1;
    background: rgba(30, 30, 30, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #fff;
    font-family: "al", Helvetica, sans-serif;
    padding: 120px 10vw 50px;
}

.label
{
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.55);
}

.intro h1
{
    font-weight: normal;
    font-size: clamp(24px, 3.2vw, 44px);
    line-height: 1.25;
    letter-spacing: 0.02em;
    max-width: 22em;
    margin: 24px 0 80px;
}

.path
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.path p:not(.label), .work .body p:not(.meta)
{
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 12px;
    max-width: 34em;
}

.work
{
    margin-top: 160px;
}

.work ol
{
    list-style: none;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.work li
{
    display: grid;
    grid-template-columns: 8vw 1fr;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.num
{
    font-size: 12px;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.55);
    padding-top: 10px;
}

.work h2
{
    font-weight: normal;
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.meta
{
    font-size: 11px;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 10px;
}

.more
{
    display: inline-block;
    margin-top: 18px;
    font-size: 12px;
    letter-spacing: 0.3em;
}

.foot
{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 160px;
}

@media (max-width: 760px)
{
    .content { padding: 80px 24px 40px; }
    .path { grid-template-columns: 1fr; gap: 32px; }
    .work li { grid-template-columns: 1fr; gap: 12px; }
    .num { padding-top: 0; }
    .work, .foot { margin-top: 100px; }
    .n2, .n3 { right: 24px; }
    .n4 { left: 24px; }
}

/* Side projects: compact rows under Selected Work */
.side
{
    margin-top: 120px;
}

.side ul
{
    list-style: none;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.side li
{
    display: grid;
    grid-template-columns: 8vw 1fr;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.side .year
{
    font-size: 12px;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.55);
    padding-top: 3px;
}

.side b
{
    font-weight: normal;
    color: #fff;
}

.more.inline
{
    margin: 0 0 0 10px;
    font-size: 11px;
}

@media (max-width: 760px)
{
    .side { margin-top: 80px; }
    .side li { grid-template-columns: 1fr; gap: 4px; }
}
