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

body {
    background: #070707;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    padding: 0;
}

.outer {
    background: #070707;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Nav ── */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 36px;
    position: relative;
    z-index: 10;
}

.nav-left .name {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.nav-left .role {
    color: #7a7a7a;
    font-size: 12px;
    margin-top: 5px;
}

/* Perry slider: About / Projects */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.nav-pill-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-pill {
    position: relative;
    display: flex;
    background: #141414;
    border: 1px solid #232323;
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
}

.nav-toggle {
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 20px;
    border-radius: 999px;
    transition: color 0.3s ease;
}

.nav-toggle:hover {
    color: #ececec;
}

.nav-toggle.active {
    color: #fff;
}

/* top glow — Perry speed curve: slow start → fast → slow, same 500ms as pill */
.nav-indicator-glow {
    position: absolute;
    top: -8px;
    left: 0;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.72, 0, 0.28, 1), opacity 0.3s ease;
    box-shadow: 0 0 8px rgba(255,255,255,0.9), 0 0 16px rgba(255,255,255,0.4);
}

/* sliding blob underneath */
.nav-indicator-pill {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    background: #1e1e1e;
    border-radius: 999px;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.33, 0, 0.67, 1), width 0.5s cubic-bezier(0.33, 0, 0.67, 1);
    box-shadow: 0 1px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}

.nav-right {
    display: flex;
    gap: 28px;
}

.nav-right a {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.9;
}

.nav-right a span {
    font-size: 14px;
    line-height: 1;
    transform: translateY(-1px);
}

/* ── Hero / Terminal window — same position & size on both pages ── */
.hero,
.hero--projects {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 40px 60px;
}

.window {
    width: 100%;
    max-width: 960px;
    background: #111111;
    border: 1px solid #232323;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.window-bar {
    height: 36px;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid #232323;
}

.dots {
    display: flex;
    gap: 7px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
    border: 1px solid #e0443e;
}

.dot.yellow {
    background: #febc2e;
    border: 1px solid #d9a11f;
}

.dot.green {
    background: #28c840;
    border: 1px solid #1fab33;
}

.window-content {
    padding: 28px;
    position: relative;
}

/* Work heading — same size as IT1-Prosjekter */
.work-head h1 {
    color: #f2f2f2;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.work-head h1 .italic {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: #9a9a9a;
}

.work-head p {
    color: #7a7a7a;
    font-size: 12.5px;
    margin-top: 8px;
    line-height: 1.6;
}

.work-head + .stack-inner {
    margin-top: 24px;
}

/* Stack grid — inside terminal */
.stack-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 32px;
}

.window-content--stack .stack-inner {
    gap: 24px;
}

.stack-inner .full {
    grid-column: 1 / -1;
}

.meta {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.meta-group h3 {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5a5a5a;
    margin-bottom: 10px;
    font-weight: 600;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags span {
    font-size: 11.5px;
    font-weight: 500;
    color: #c8c8c8;
    background: #141414;
    border: 1px solid #232323;
    padding: 5px 9px;
    border-radius: 999px;
}

.lang-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lang {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 14px;
    background: #141414;
    border: 1px solid #232323;
    border-radius: 999px;
}

.lang-name {
    color: #ececec;
    font-size: 13px;
    font-weight: 500;
}

.lang-level {
    color: #7a7a7a;
    font-size: 11px;
    font-weight: 500;
}

/* Projects grid — inside terminal */
.hero--projects .projects-head h1 {
    color: #f2f2f2;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.hero--projects .projects-head p {
    color: #7a7a7a;
    font-size: 12.5px;
    margin-top: 8px;
    line-height: 1.6;
}

.hero--projects .projects-grid {
    margin-top: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.project-card {
    display: block;
    text-decoration: none;
    background: #141414;
    border: 1px solid #232323;
    border-radius: 10px;
    padding: 20px;
    transition: border-color 0.15s, background 0.15s;
}

.project-card:hover {
    border-color: #2a2a2a;
    background: #181818;
}

.project-card h2 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.project-card p {
    color: #7a7a7a;
    font-size: 12.5px;
    margin-top: 6px;
    line-height: 1.5;
}

.project-card .arrow {
    margin-top: 14px;
    color: #9a9a9a;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .stack-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 20px;
    }

    .nav-center {
        position: static;
        transform: none;
    }

    .nav-right {
        display: none;
    }

    .hero,
    .hero--projects {
        padding: 24px 16px;
    }

    .window-content {
        padding: 24px 20px;
    }
}

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

@media (max-width: 480px) {
    .nav {
        flex-wrap: wrap;
        gap: 12px;
    }
}
