* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
}

.mobile-notice {
    display: none;
}

.header-mark {
    position: fixed;
    z-index: 2;
    top: 25px;
    left: 25px;
    width: calc((100vw - 100px) / 3);
    aspect-ratio: 721 / 194;
    transform-origin: left top;
}

.header-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.nav-tooltip {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    visibility: hidden;
    padding: 6px 9px;
    background: #211f20;
    color: #fff;
    font: 14px/1.2 Arial, sans-serif;
    white-space: nowrap;
    pointer-events: none;
}

.nav-tooltip.is-visible {
    visibility: visible;
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 25px;
    padding: 25px;
}

.grid-column {
    min-height: 100%;
}

.header {
    position: absolute;
    top: 40px;
    left: calc(25px + (100vw - 100px) / 3 + 25px);
    right: 25px;
    padding: 0;
    font-family: hagrid, sans-serif;
    font-weight: 300;
}

.header h1 {
    margin: 0;
    font-size: 140px;
    font-weight: 300;
    line-height: 0.98;
    white-space: normal;
}

.header-name {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 140px;
    line-height: 0.98;
    white-space: normal;
    overflow-wrap: normal;
    hyphens: manual;
}

.portfolio-label {
    position: absolute;
    top: 0;
    right: 0;
    left: calc(25px - (25px + (100vw - 100px) / 3 + 25px));
    font-size: 140px;
    line-height: 0.98;
    white-space: normal;
    overflow-wrap: normal;
    hyphens: manual;
}

.container {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 25px;
    padding: 0 25px;
}

.image-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 25px;
}

.image-frame {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.image-frame[href] .image-decoration {
    cursor: pointer;
}

.image-frame-narrow {
    width: calc(66.6667% - 16.6667px);
}

.about-text-placeholder {
    min-height: clamp(280px, 38vw, 470px);
    background: #f4f1ef;
}

.about-image-placeholder {
    background: #e7e4e2;
}

.about-image-one { aspect-ratio: 0.72; }
.about-image-two { aspect-ratio: 0.78; }
.about-image-three { aspect-ratio: 0.72; }

.image-column-left .image-frame-narrow {
    align-self: flex-end;
}

.image-column-right .image-frame-narrow {
    align-self: flex-start;
}

.image-frame img,
.image-frame video {
    display: block;
    width: 100%;
    transition: transform 300ms ease;
}

.image-frame:hover img,
.image-frame:hover video {
    transform: scale(1.1);
}

.image-decoration {
    position: absolute;
    z-index: 1;
    width: calc((100vw - 175px) / 12);
    aspect-ratio: 1;
    background: var(--frame-color, #f6d34f);
    border-radius: 50% 50% 0 50%;
    pointer-events: auto;
    cursor: help;
}

.corner-top-left .image-decoration {
    top: -1px;
    left: -1px;
    transform: rotate(180deg);
}

.corner-top-right .image-decoration {
    top: -1px;
    right: -1px;
    transform: rotate(270deg);
}

.corner-bottom-left .image-decoration {
    bottom: -1px;
    left: -1px;
    transform: rotate(90deg);
}

.corner-bottom-right .image-decoration {
    right: -1px;
    bottom: -1px;
}

.image-column-left {
    grid-column: 1 / 4;
}

.image-column-right {
    grid-column: 4 / 7;
}

.portfolio {
    padding-top: 450px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 25px;
    row-gap: 25px;
    margin-inline: 25px;
}

.project-stack {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 25px;
    grid-column: span 3;
}

.project-photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.project-photo-portrait {
    aspect-ratio: 0.72;
}

.project-photo-landscape {
    aspect-ratio: 1.5;
}

.project-description {
    --text-decoration-size: max(0px, calc((100vw - 100px) / 3 * 192 / 721));
    width: 100%;
    height: auto;
    margin: 0;
    font-family: hagrid, sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1.2;
    text-align: left;
}

.project-spread {
    position: relative;
    grid-column: 1 / -1;
}

.project-spread .project-photo {
    aspect-ratio: 1.5;
}

.project-arrow {
    position: absolute;
    top: 50%;
    width: clamp(30px, 7.5vw, 50px);
    aspect-ratio: 0.9;
    padding: 0;
    border: 0;
    height: auto;
    background: var(--arrow-color, #f6d34f);
    cursor: pointer;
    transform: translateY(-50%);
}

.project-arrow-previous {
    left: 0;
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.project-arrow-next {
    right: 0;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.project-arrow:hover {
    filter: brightness(0.92);
}

.project-page + .contact-footer {
    column-gap: clamp(12px, 3vw, 20px);
}

.project-gallery-p2 {
    column-gap: 25px;
    row-gap: 25px;
    margin-inline: 25px;
}

.project-gallery-p2 .project-stack {
    gap: 25px;
}

.project-gallery-p3 {
    column-gap: 25px;
    row-gap: 25px;
    margin-inline: 25px;
}

.project-gallery-p3 .project-stack {
    gap: 25px;
}

.project-photo-p3-portrait {
    aspect-ratio: 0.75;
}

.project-video-p5 {
    aspect-ratio: 9 / 16;
    height: auto;
    object-fit: cover;
}

.project-photo-p5-poster {
    aspect-ratio: 5285 / 7559;
    height: auto;
    object-fit: contain;
}

.project-photo-p6-person {
    aspect-ratio: 0.8;
}

.project-photo-p6-person-detail {
    aspect-ratio: 0.9;
}

.project-photo-p7-portrait {
    aspect-ratio: 0.75;
}

.project-photo-p7-poster {
    aspect-ratio: 1683 / 2383;
    height: auto;
    object-fit: contain;
    border: 1px solid #000;
}

.project-p8-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.project-p8-landscape-frame {
    aspect-ratio: 1.5;
}

.project-p8-tower-frame {
    aspect-ratio: 0.72;
}

.project-p8-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
}

.project-p8-circles-frame {
    background: #fff;
}

.project-p8-circles {
    object-fit: contain;
    object-position: center;
    transform: scale(1.12);
}

.project-p8-rotated-tower {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 138.9%;
    height: 72%;
    object-fit: cover;
    transform: translate(-50%, -50%) rotate(90deg) scale(1.1);
}

.project-p8-rotated-scan {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 66.67%;
    height: 150%;
    object-fit: cover;
    transform: translate(-50%, -50%) rotate(90deg) scale(1.04);
}

.project-photo-p9-portrait {
    height: 800px;
}

.project-video-p10 {
    aspect-ratio: 1;
    height: auto;
    object-fit: cover;
    background: #000;
}

.project-gallery-p10 {
    row-gap: 25px;
}

.project-gallery-p10 > * {
    grid-column: span 3;
    min-width: 0;
}

.project-photo-rotated-frame {
    position: relative;
    width: 100%;
    height: 800px;
    overflow: hidden;
    background: #000;
}

.project-photo-rotated {
    position: absolute;
    top: calc(50% - 150px);
    left: 50%;
    width: 800px;
    height: 549px;
    object-fit: contain;
    transform: translate(-50%, -50%) rotate(-90deg) scale(1.25);
}

.project-photo-p2-landscape {
    aspect-ratio: 1.5;
}

.project-photo-p2-portrait {
    aspect-ratio: 0.75;
}

.project-text-blank-p2 {
    aspect-ratio: 0.95;
}

.project-text-blank-p2-wide {
    aspect-ratio: 0.75;
}

.project-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.project-mini-grid .project-photo {
    aspect-ratio: 0.9;
}

.project-video-p2 {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.img_03 {
    display: block;
    height: 650px;
    object-fit: cover;
    object-position: 40% 50%;
}

.img_02 {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: 60% 30%;
}

.img_01 {
    display: block;
    height: 700px;
    object-fit: cover;
}

.img_07 {
    display: block;
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: 40% 60%;
}

.img_04 {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: 55% 45%;
}

.img_06 {
    display: block;
    height: 700px;
    object-fit: cover;
    object-position: 80% 10%;
}

.img_08 {
    display: block;
    height: 700px;
    object-fit: cover;
}

.img_09 {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: 55% 45%;
}

.img_05 {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: 55% 45%;
}


.mov_01 {
    display: block;
    height: auto;
}

.contact-footer {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 25px;
    padding: 25px;
}

.contact-group {
    grid-column: 1 / 7;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 12px;
}

.info-badge[data-info-toggle] {
    padding: 0;
    border: 0;
    cursor: pointer;
}

.info-badge:focus-visible {
    outline: 2px solid #211f20;
    outline-offset: 3px;
}

.info-badge[href] {
    text-decoration: none;
}

.technical-page-mark {
    display: none;
}

.technical-page {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 25px;
    row-gap: 20px;
    padding: 25px clamp(25px, 3.5vw, 34px);
}

.technical-page h1 {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.3vw, 16px);
    margin: 0;
    font-family: hagrid, sans-serif;
    font-size: clamp(42px, 8.2vw, 100px);
    font-weight: 300;
    line-height: 1;
}

.technical-home-link {
    display: block;
    flex: 0 0 auto;
    width: calc(8.8765603vw - 8.8765603px);
    aspect-ratio: 1;
}

.technical-home-link svg {
    display: block;
    width: 100%;
    height: 100%;
}

.technical-home-link .mark-plum {
    fill: #8c2b63;
}

.technical-home-link:focus-visible {
    outline: 2px solid #211f20;
    outline-offset: 3px;
}

.technical-list {
    display: flex;
    grid-column: 1 / 5;
    flex-direction: column;
    gap: 7px;
}

.technical-entry {
    margin: 0;
    font-family: hagrid, sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 0.9;
}

.technical-entry h2,
.technical-entry p {
    margin: 0;
    font: inherit;
}

.info-caption {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 25px;
    margin-inline: -25px;
    padding: 16px 25px 30px;
}

.info-caption[hidden] {
    display: none;
}

.info-caption-text {
    grid-column: 1 / 4;
    margin: 0;
    font-family: hagrid, sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.2;
}

.contact-copy {
    margin: 0;
    font-family: hagrid, sans-serif;
    font-size: clamp(12px, 3vw, 64px);
    font-weight: 300;
    line-height: 0.98;
    text-align: right;
}

.contact-copy a {
    color: inherit;
    text-decoration: none;
}

.contact-copy a:hover,
.contact-copy a:focus-visible {
    text-decoration: underline;
}

.contact-shape {
    flex: 0 0 auto;
    width: max(24px, calc(8.3333vw - 29.1667px));
    max-width: 192px;
    aspect-ratio: 1;
    background: var(--contact-color, #eba446);
    border-radius: 0 50% 50% 0;
}

@media (max-width: 700px) {
    .contact-footer {
        column-gap: 20px;
        padding: 25px;
    }

    .contact-group {
        grid-column: 1 / 7;
        gap: 8px;
    }

    .info-caption {
        column-gap: 20px;
        margin-inline: -20px;
        padding: 16px 20px 30px;
    }

    .info-caption-text {
        grid-column: 1 / -1;
    }

    .contact-shape {
        width: max(24px, calc(8.3333vw - 11.6667px));
    }
}

.ich_01 {
    display: block;
    width: 100%;
    height: 850px;
    object-fit: cover;
    object-position: 20% 70%;
}

.ich_text {
    --text-decoration-size: max(0px, calc((100vw - 100px) / 3 * 192 / 721));
    width: 100%;
    height: auto;
    margin: 0;
    font-family: hagrid, sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: left;
}

.text-decoration {
    float: left;
    display: block;
    width: var(--text-decoration-size);
    height: var(--text-decoration-size);
    margin: 0 0.45em 0 0;
    background: var(--text-decoration-color, #8c2b63);
    shape-outside: inset(0);
}

.ich_02 {
    height: 950px;
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: 55% 45%;
}

.ich_03 {
    height: 900px;
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: 5% 95%;
}

.info-badge {
    grid-column: 1 / 2;
    grid-row: 1;
    align-self: end;
    justify-self: start;
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--badge-color, #775589);
    color: #fff;
    font: 600 40px/1 Arial, sans-serif;
}

@media (max-width: 700px) {
    body > :not(.header-mark):not(.mobile-notice) {
        display: none !important;
    }

    .header-mark {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
    }

    .technical-page-mark {
        display: block;
    }

    .header-mark a {
        pointer-events: none;
    }

    .mobile-notice {
        position: fixed;
        z-index: 3;
        top: 5.9vh;
        left: 18%;
        display: block;
        width: 67%;
        margin: 0;
        font-family: hagrid, sans-serif;
        font-size: clamp(24px, min(13.3vw, 6.3vh), 58px);
        font-weight: 300;
        line-height: 0.96;
    }
}