@font-face {
    font-family: "Hertz";
    src: url("assets/Hertz Web W04 Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #ffffff;
    --ink: #000000;
    --accent: #4867e4;
    --border-soft: #949494;
    --font-serif: "Hertz", "Songti SC", "STSong", serif;
    --canvas-width: 1440px;
    --canvas-height: 2453px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
}

.page-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    pointer-events: none;
}

.site-header__inner {
    position: relative;
    width: 100%;
    height: 67px;
}

.logo,
.corner-nav {
    pointer-events: auto;
}

.logo {
    position: absolute;
    top: 24px;
    left: 26px;
    display: block;
    width: 152px;
    height: 37px;
    line-height: 0;
    text-decoration: none;
}

.logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.corner-nav {
    --corner-nav-width: 107px;
    --corner-nav-height: 36px;
    --corner-nav-frame-width: 34px;
    --corner-nav-frame-height: 50px;
    --corner-nav-frame-center: 54.12px;

    position: absolute;
    top: 28px;
    right: 27px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: var(--corner-nav-width);
    height: var(--corner-nav-height);
    margin: 0;
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
}

.corner-nav[data-active="n"] {
    --corner-nav-frame-center: 7.7px;
}

.corner-nav[data-active="x"] {
    --corner-nav-frame-center: 54.12px;
}

.corner-nav[data-active="y"] {
    --corner-nav-frame-center: 99.92px;
}

.corner-nav__frame {
    position: absolute;
    top: 50%;
    left: var(--corner-nav-frame-center);
    width: var(--corner-nav-frame-width);
    height: var(--corner-nav-frame-height);
    border: 1px solid var(--border-soft);
    pointer-events: none;
    /* lowercase ink sits below the em/box geometric center */
    transform: translate(-50%, calc(-50% + 2px));
}

.corner-nav__item {
    position: relative;
    z-index: 1;
    display: block;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.homepage {
    position: relative;
    width: var(--canvas-width);
    min-height: var(--canvas-height);
    margin: 0 auto;
    padding-bottom: 80px;
    background: var(--paper);
}

.gallery {
    position: relative;
    width: 100%;
    height: 1185px;
}

.tile {
    position: absolute;
    margin: 0;
    overflow: hidden;
    background: #e8e8e8;
}

.tile--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.tile--link img {
    transition: opacity 0.25s ease;
}

.tile__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 27px;
    color: var(--ink);
    background: var(--paper);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tile--link:hover .tile__label,
.tile--link:focus-visible .tile__label {
    opacity: 1;
}

.tile--link:hover img,
.tile--link:focus-visible img {
    opacity: 0;
}

.tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile--1 {
    top: 166px;
    left: 224px;
    width: 300px;
    height: 439px;
}

.tile--6 {
    top: 209px;
    left: 1061px;
    width: 300px;
    height: 399px;
}

.tile--4 {
    top: 374px;
    left: 643px;
    width: 300px;
    height: 300px;
}

.tile--sirio {
    top: 729px;
    left: 224px;
    width: 300px;
    height: 256px;
}

.tile--sirio .tile__photo {
    position: absolute;
    inset: 0;
    width: 116.73%;
    height: 100.11%;
    top: -0.06%;
    left: 0;
    object-fit: cover;
}

.tile--sirio .tile__icon {
    position: absolute;
    top: 62px;
    left: 52px;
    width: 26px;
    height: 61px;
    object-fit: contain;
}

.tile--2 {
    top: 742px;
    left: 1061px;
    width: 300px;
    height: 198px;
}

.tile--5 {
    top: 797px;
    left: 643px;
    width: 300px;
    height: 400px;
}

.manifesto {
    position: relative;
    width: 644px;
    margin: 0 0 0 80px;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    line-height: 27px;
    color: var(--ink);
}

.manifesto p {
    margin: 0;
}

.manifesto__gap {
    height: 27px;
}

.manifesto__gap--large {
    height: 54px;
}

.manifesto__note {
    font-size: 16px;
    line-height: 1.35;
}

.manifesto p.manifesto__note--last {
    margin-top: calc(16px * 1.35 * 2);
    font-size: 14px;
    line-height: 1.35;
}

.manifesto__han {
    font-family: "Songti SC", "STSong", "Songti TC", serif;
    font-weight: 700;
}

.ref {
    color: var(--accent);
    font-size: 0.92em;
}

.manifesto sup.ref {
    vertical-align: baseline;
    position: relative;
    top: -0.2em;
    margin-left: -0.12em;
    line-height: 0;
}

.site-footer {
    position: relative;
    display: grid;
    grid-template-columns: 294px 294px;
    grid-template-rows: auto auto;
    column-gap: 56px;
    row-gap: 51px;
    width: 644px;
    margin: 145px 0 0 80px;
    pointer-events: none;
}

.site-footer p {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 500;
}

.site-footer__ad {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    font-size: 16px;
    line-height: 1.35;
    text-align: right;
}

.site-footer__gap {
    height: 16px;
}

.site-footer__copyright {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    font-size: 14px;
    line-height: 1.35;
}

.site-footer__contact-group {
    grid-column: 2;
    grid-row: 2;
    position: relative;
    z-index: 5;
    width: 100%;
    text-align: right;
    overflow: visible;
}

.site-footer__contact-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 100%;
    padding-bottom: 50px;
    text-align: left;
    overflow: visible;
}

.site-footer__contact {
    font-size: 14px;
    line-height: 1.35;
    text-align: right;
}

.site-footer__cue {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 6;
    display: inline-flex;
    align-items: flex-start;
    box-sizing: border-box;
    width: 34px;
    height: 50px;
    margin: 0;
    padding: 2px 0 2px 4px;
    border: 1px solid var(--border-soft);
    overflow: hidden;
    color: var(--ink);
    font-family: var(--font-serif);
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    transition: width 0.5s ease;
}

.site-footer__cue:hover {
    width: calc(100% + 4px);
}

.site-footer__cue__text {
    flex: 0 0 auto;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: var(--ink);
    transition: max-width 0.5s ease;
}

.site-footer__cue:hover .site-footer__cue__text {
    max-width: 280px;
}

.site-footer__cue__caret {
    flex: 0 0 auto;
    width: 1px;
    height: 15px;
    margin: 0;
    background: var(--ink);
    animation: site-footer-caret-blink 1s step-end infinite;
}

@keyframes site-footer-caret-blink {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 1440px) {
    .page-viewport {
        overflow-x: auto;
    }
}
