@font-face {
    font-family: 'Self Modern Regular';
    src: url('../fonts/Self Modern Regular.woff2') format('woff2'),
         url('../fonts/Self Modern Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AlteHaasGroteskBold';
    src: url('../fonts/AlteHaasGroteskBold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atlantic SharpLeft';
    src: url('../fonts/Atlantic-SharpLeft.woff2') format('woff2'),
         url('../fonts/Atlantic-SharpLeft.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Mori Regular';
    src: url('../fonts/PPMori-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Mori SemiBold';
    src: url('../fonts/PPMori-SemiBold.woff2') format('woff2'),
         url('../fonts/PPMori-SemiBold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    /* font-family: 'Self Modern Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
    font-family: 'PP Mori Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 auto;
    padding: 20px 20px;
    color: #333;
}

.header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: baseline;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 0px solid #f0f0f0;
    /* font-family: 'AlteHaasGroteskBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
    font-family: 'PP Mori Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1 {
    font-size: 12px;
    /* font-weight: 500; */
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.4;
    grid-column: 1;
    text-transform: uppercase;
    font-family: 'PP Mori SemiBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

/* Atlantic shrink-on-hover: reserved for uppercase nav/footer text only.
   Lowercase/sentence-case links (body copy) get a plain hover, no shrink. */
h1 a:hover {
    font-family: 'Atlantic SharpLeft', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: calc(1em - 3px);
    text-transform: sentence-case;
}

.bio {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #333;
    grid-column: 2 / span 2;
}

.menu {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
    color: #333;
    grid-column: 4;
    text-transform: uppercase;
    font-family: 'PP Mori SemiBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.menu a {
    color: #333;
    text-decoration: none;
}

.menu a:hover {
    font-family: 'Atlantic SharpLeft', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: calc(1em - 3px);
    text-transform: sentence-case;
}

#work-type-display {
    display: none;
}

.projects-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    min-height: 600px;
    margin-bottom: 40px;
    transition: filter 0.3s ease;
}

.projects-container.modal-open {
    filter: grayscale(100%);
}

.project {
    position: absolute;
    cursor: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: pan-y;
}

.project:active {
    cursor: grabbing;
}

.project.dragging {
    cursor: grabbing;
    z-index: 200;
    opacity: 0.9;
}

/* Hover-zoom only for devices with a real pointer that can actually
   hover — on touch it would fight with the long-press drag gesture,
   and there's no hover state to trigger it cleanly anyway. */
@media (hover: hover) and (pointer: fine) {
    .project:hover {
        transform: scale(1.6);
        z-index: 100;
        transition: transform 0.3s ease;
    }
}

.project img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.drag-icon {
    position: fixed;
    width: 28px;
    height: 28px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

.drag-icon.active {
    opacity: 1;
}

.project-title-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    position: relative;
    background: transparent;
    padding: 0;
}

.project h3 {
    font-size: 12px;
    margin: 0;
    white-space: normal;
    align-self: stretch;
    transform-origin: left top;
}

/* Card widths are consistently generous above this point (330px+),
   so title and tag can safely share one row instead of stacking. */
@media (min-width: 1100px) {
    .project-title-container {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 10px;
    }

    .project h3 {
        align-self: auto;
        min-width: 0;
        flex: 1 1 0%;
    }
}

.project-type-tag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
    font-size: 10px;
    /* font-family: 'Self Modern Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
    /* font-family: 'PP Mori Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
    font-family: 'PP Mori SemiBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: #999;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 0.75px solid #999;
    border-radius: 30px;
    padding: 6px 14px;
}

@media (hover: hover) and (pointer: fine) {
    .project:hover h3 {
        /* Card zooms to scale(1.6) — 1 / 1.6 exactly cancels that out,
           so the title renders at its true original size, not shrunk. */
        transform: scale(0.625);
        transform-origin: left top;
    }

    .project:hover .project-type-tag {
        opacity: 1;
        transform: scale(0.625);
        transform-origin: left top;
    }

    @media (min-width: 1100px) {
        .project:hover .project-type-tag {
            transform-origin: right top;
        }
    }
}

/* No hover on touch — keep the tag visible so the info isn't hidden
   behind an interaction that device can't perform. */
@media (hover: none) {
    .project-type-tag {
        opacity: 1;
    }

    .project {
        cursor: default;
    }
}

/* MODAL STYLES */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
}

.modal-backdrop.active {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    z-index: 1002;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal::-webkit-scrollbar {
    display: none;
}

.modal.active {
    display: block;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: #999;
    border: none;
    background: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.5;
    transition: stroke 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.modal h2 {
    font-size: 14px;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.modal-top {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.modal-description {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    flex: 1 1 auto;
    margin: 0;
}

.modal-description a {
    color: inherit;
    text-decoration: underline;
}

.modal-description a:hover {
    font-family: 'Atlantic SharpLeft', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: calc(1em - 3px);
    line-height: 1.8;
    text-decoration: none;
}

.modal-deliverables {
    flex: 0 0 180px;
}

.modal-deliverables h4 {
    /* font-family: 'Self Modern Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
    font-family: 'PP Mori Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin: 0 0 12px 0;
}

.modal-deliverables ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modal-deliverables li {
    font-size: 13px;
    line-height: 1.7;
    color: #333;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-gallery img,
.modal-gallery video {
    width: 100%;
    height: auto;
}

.modal-video {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

/* ABOUT PAGE STYLES */
.about-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 120px;
}

.about-text {
    grid-column: span 2;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.cta-text {
    font-style: italic;
}

.about-text a {
    color: inherit;
    text-decoration: underline;
}

.about-text a:hover {
    font-family: 'Atlantic SharpLeft', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: calc(1em - 3px);
    line-height: 1.8;
    text-decoration: none;
}

.photo-reveal {
    grid-column: 4;
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: 100%;
}

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

.reveal-strip {
    position: absolute;
    height: 5px;
    background: #fdfaf5;
}

@keyframes revealStrip {
    from { width: 100%; }
    to   { width: 0%; }
}

/* FOOTER */
.site-footer {
    margin-top: 60px;
    padding-top: 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.footer-menu {
    display: flex;
    gap: 16px;
    font-size: 12px;
    text-transform: uppercase;
    grid-column: 1;
}

.footer-menu a {
    color: #999;
    text-decoration: none;
}

.footer-menu a:hover {
    font-family: 'Atlantic SharpLeft', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: calc(1em - 3px);
    text-transform: sentence-case;
}

.footer-social {
    display: flex;
    gap: 16px;
    font-size: 12px;
    text-transform: uppercase;
    grid-column: 2;
}

.footer-social a {
    color: #999;
    text-decoration: none;
}

.footer-social a:hover {
    font-family: 'Atlantic SharpLeft', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: calc(1em - 3px);
    text-transform: sentence-case;
}

.footer-info {
    grid-column: 4;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-brand {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'PP Mori SemiBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #999;
    text-decoration: none;
}

.footer-brand:hover {
    font-family: 'Atlantic SharpLeft', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: calc(1em - 3px);
    text-transform: sentence-case;
}

.footer-tagline {
    font-size: 12px;
    line-height: 1.6;
    color: #999;
    margin: 0;
}

.footer-bottom {
    padding-top: 20px;
}

.copyright {
    font-size: 11px;
    color: #999;
    margin: 0;
}

/* ============================
   RESPONSIVE — single breakpoint
   ============================ */
@media (max-width: 800px) {
    body {
        padding: 16px;
    }

    /* HEADER */
    .header {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    h1 {
        grid-column: 1;
    }

    .menu {
        grid-column: 2;
    }

    .bio {
        grid-column: 1 / -1;
    }

    /* MODAL */
    .modal {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 0;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }

    .modal h2 {
        margin-top: 64px;
        padding: 0 16px;
    }

    .modal-top {
        padding: 0 16px;
        flex-direction: column;
        gap: 24px;
    }

    .modal-deliverables {
        flex: 1 1 auto;
    }

    /* ABOUT PAGE */
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-text,
    .photo-reveal {
        grid-column: 1;
    }

    /* FOOTER */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-menu,
    .footer-social,
    .footer-info {
        grid-column: 1;
    }
}

/* Homepage project grid now stays a single drag layout at every width —
   see js/index.js getColumnCount() for how column count scales (4 → 3 → 2 → 1).
   The .drag-icon cursor is shown/positioned by JS for both mouse hover
   and the touch long-press, via the .active class. */
