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

@font-face {
    font-family: area;
    src: url(fonts/AreaTrialNormal-Light.otf);
}

@font-face {
    font-family: areanorm;
    src: url(fonts/AreaTrialNormal-Regular.otf);
}

html {
    font-family: areanorm;
    font-size: 11.5px;
    line-height: 1.2;
    font-weight: 500;
    background: #fff;
    color: #000;
    -webkit-font-smoothing: antialiased;
}

body {
    position: relative;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }
strong { font-weight: 700; }

/* ─── Corner nav (top-left) ─────────────────────────────────────────────── */

.corner-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.corner-nav a {
    display: block;
    line-height: 1.2;
}

.corner-nav a:hover { opacity: 0.45; }

/* ─── Bio / Header ───────────────────────────────────────────────────────── */
/* Fixed, covers everything left of the 190px right column */

.header {
    width: calc(100vw - 200px);
    height: 100vh;
    position: fixed;
    font-weight: 600;
    top: 0; left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 40px;
    z-index: 0;
    pointer-events: none;
}

.header_wrapper {
    display: block;
    width: 250px;
    pointer-events: all;
    line-height: 1.5;
    color: inherit;
    text-decoration: none;
}
.header_wrapper:hover { opacity: 0.55; }

.header-logo {
    height: 35px;
    width: auto;
    display: block;
}

.header_wrapper .header_links a {
    border-bottom: 1px solid currentColor;
}
.header_wrapper .header_links a:hover { opacity: 0.55; }

/* ─── Preview (video / image cycling) ───────────────────────────────────── */
/* Fixed over the same left area, appears on project hover */

.preview-wrap {
    pointer-events: none;
    width: calc(100vw - 190px);
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.preview-wrap.is-visible { opacity: 1; }

.slideshow-arrow {
    background: none;
    border: none;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.preview-wrap.is-locked .slideshow-arrow {
    opacity: 0.35;
    pointer-events: all;
}

.preview-wrap.is-locked .slideshow-arrow:hover { opacity: 1; }

.preview-media {
    width: 78%;
    aspect-ratio: 11 / 6;
    position: relative;
    overflow: hidden;
}

.preview-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.preview-slide.is-active { opacity: 1; }

.preview-slide img,
.preview-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ─── Project list (right 190px column) ─────────────────────────────────── */

.app {
    width: 190px;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.app.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.project {
    display: block;
    padding: 10px 20px;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.project:first-child { padding-top: 20px; }

.project:last-child { padding-bottom: 40px; }

.project_title {
    font-weight: 700;
    display: block;
    line-height: 1.2;
    text-transform: uppercase;
}

.credit_font {
    padding: 0 20px 10px;
    font-size: 11px;
    opacity: 0.7;
}

/* ─── Project detail panel (replaces nav on click) ───────────────────────── */

.app-detail {
    width: 190px;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.app-detail.is-visible {
    opacity: 1;
    pointer-events: all;
}

.detail-back {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 11.5px;
    cursor: pointer;
    opacity: 0.4;
    text-align: left;
    margin-bottom: 24px;
    transition: opacity 0.15s;
}

.detail-back:hover { opacity: 1; }

.detail-name {
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 10px;
}

.detail-desc {
    line-height: 1.2;
    opacity: 0.7;
    margin-bottom: 16px;
}

.detail-meta {
    line-height: 1.4;
}

/* ─── About page ─────────────────────────────────────────────────────────── */

.about {
    padding: 40px 20px;
}

.about-row {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    gap: 40px;
    align-items: start;
}

.about-bio {
    line-height: 1.3;
}

.about-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.about-links a {
    font-size: inherit;
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-links a:hover {
    opacity: 0.5;
}

.about-photo img {
    width: calc(100% + 25px);
    height: auto;
    object-fit: cover;
    display: block;
}

.about-resume__label {
    opacity: 0.4;
    margin-bottom: 12px;
}

.about-resume a {
    display: block;
    cursor: pointer;
}

.about-resume img {
    width: 100%;
    display: block;
}

/* ─── Project detail page ────────────────────────────────────────────────── */

body.project-page {
    overflow-y: auto;
}

.p-nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 20px;
    background: #fff;
    z-index: 20;
    border-bottom: 1px solid #000;
}

.p-nav__title { font-weight: 700; }

.p-nav__back {
    opacity: 0.4;
    transition: opacity 0.15s;
}
.p-nav__back:hover { opacity: 1; }

.p-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #000;
}

.p-desc {
    line-height: 1.2;
}

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

.p-gallery { display: flex; flex-direction: column; }

.p-img {
    width: 100%;
    background: #e8e8e8;
}

.p-img + .p-img { border-top: 1px solid #000; }

.p-img img {
    width: 100%;
    height: auto;
    display: block;
}

.p-info__label { opacity: 0.4; margin-bottom: 3px; }
