* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 8px solid #4a3f2f;
    pointer-events: none;
    z-index: 999999;
}

body::after {
    content: '';
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid #4a3f2f;
    pointer-events: none;
    z-index: 999999;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.content {
    position: relative;
    z-index: 1;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.project-page.hidden {
    display: none !important;
}

.page-content {
    padding: 60px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.cover-page {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
    height: 100%;
}

.cover-headings {
    width: 100%;
}

.cover-headings h2 {
    margin-bottom: 10px;
}

.cover-headings h1 {
    margin-bottom: 40px;
}

.cover-body {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    width: 100%;
}

.cover-filter {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
}

.cover-filter label {
    font-size: 28px;
    font-weight: 400;
    color: #14112d;
}

.cover-filter select {
    font-size: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    color: #0d103f;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #6b5e3d;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    padding-right: 32px;
}

.cover-filter select:hover,
.cover-filter select:focus {
    background: rgba(255, 255, 255, 1);
    outline: none;
}

.cover-headshot {
    flex-shrink: 0;
}

.cover-headshot .image-placeholder {
    width: 550px;
    height: 550px;
    background: #ddd;
    border: 2px dashed #999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #666;
    font-size: 18px;
}

.image-border {
    border-radius: 8px;
    border: 8px solid #6b5e3d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    height: auto;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.contact-link {
    font-size: 28px;
    color: #0d103f;
    text-decoration: underline;
    font-weight: 300;
}

.contact-link:hover {
    text-decoration: none;
}

.project-media a {
    position: relative;
    display: inline-block;
}

.project-media a::after {
    content: 'click to open';
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(107, 94, 61, 0.9);
    color: #f8f5ee;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-media a:hover::after {
    opacity: 1;
}

.headshot-img {
    width: clamp(320px, 36vw, 550px);
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    background: #f8f5ee;
    display: block;
}

.project-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-body {
    display: block;
    width: 100%;
    position: relative;
}

.project-body::after {
    content: '';
    display: block;
    clear: both;
}

.project-media {
    float: right;
    width: 40%;
    max-width: 500px;
    min-width: 320px;
    margin-left: 32px;
    margin-bottom: 12px;
}

.video-embed {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.project-link {
    font-size: 20px;
    font-weight: 500;
    color: #0d103f;
    text-decoration: underline;
}

.project-link:hover,
.project-link:focus {
    text-decoration: none;
}

.cover-text {
    flex: 1;
}

.cover-text ul {
    list-style: none;
    padding: 0;
}

.page-content p,
.cover-text ul li {
    font-size: 28px;
    line-height: 1.8;
    color: #14112d;
    font-weight: 400;
    margin-bottom: 20px;
}

.cover-text ul li {
    padding-left: 24px;
    position: relative;
}

.cover-text ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #14112d;
}

.page-content h1 {
    font-size: 96px;
    margin-bottom: 20px;
    color: #0d103f;
    font-weight: 700;
}

.page-content h2 {
    font-size: 64px;
    margin-bottom: 30px;
    color: #14112d;
    font-weight: 600;
}

.page-content p {
    /* Typography shared with .cover-text ul li above */
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: #ddd;
    border: 2px dashed #999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #666;
    font-size: 18px;
    margin-top: 30px;
}

.letter-placeholder {
    aspect-ratio: 8.5 / 11;
    height: auto;
    max-width: 900px;
}

.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 8.5 / 11;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-landscape {
    aspect-ratio: 5 / 4;
}

.carousel-landscape.image-border {
    max-width: 980px;
}

.carousel::after {
    content: 'click to open';
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(107, 94, 61, 0.9);
    color: #f8f5ee;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.carousel:hover::after {
    opacity: 1;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide.video-embed {
    object-fit: initial;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(107, 94, 61, 0.7);
    color: #f8f5ee;
    border: none;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2;
    transition: background 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(107, 94, 61, 0.9);
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(107, 94, 61, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: rgba(107, 94, 61, 1);
}

