@font-face { font-family: 'Editorial Old'; src: url('../fonts/editorial-old.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Editorial Old'; src: url('../fonts/editorial-old-italic.woff2') format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: 'Heavitas'; src: url('../fonts/heavitas.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/satoshi-variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('../fonts/satoshi-variable-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
    --white: #F6F2F2;
    --black: #210710;
    --ink: #170308;
    --text: #E6DCDC;
    --text-faint: #A8908F;
    --hairline: rgba(246, 242, 242, 0.08);

    --accent: #E13F36;

    --font-body: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Editorial Old', serif;

    --pad-edge: clamp(20px, 5vw, 80px);
    --container-width: 1400px;
    --radius-pill: 100px;

    --ease-out: cubic-bezier(0.382, 0.618, 0.618, 1);
}

html {
    overflow-x: clip;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--black);
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

body {
    margin: 0;
    background: var(--black);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: clip;
}

p {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
    text-wrap: pretty;
}

:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: clamp(60px, 12vh, 120px) var(--pad-edge);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--black);
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.page-loader {
    --sign: 320px;
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: var(--black);
    pointer-events: none;
}

.page-loader-sign {
    display: block;
    width: var(--sign);
    height: auto;
    aspect-ratio: 1;
}

.page-loader-track,
.page-loader-status {
    width: var(--sign);
    max-width: calc(100vw - 2 * var(--pad-edge));
}

.page-loader-track {
    height: 2px;
    background: var(--hairline);
    overflow: hidden;
}

.page-loader-bar {
    height: 100%;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.page-loader-status {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: -16px 0 0;
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.page-loader-file {
    overflow: hidden;
    color: var(--text-faint);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-loader-sign,
.page-loader-track,
.page-loader-status {
    transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}

.page-loader.is-leaving .page-loader-sign {
    opacity: 0;
    transform: scale(0.94);
}

.page-loader.has-thread .page-loader-sign {
    visibility: hidden;
    transform: none;
}

.page-loader.is-leaving .page-loader-track,
.page-loader.is-leaving .page-loader-status {
    opacity: 0;
}

.page-loader.dissolving {
    background: transparent;
}

.page-loader.dissolving .page-loader-sign,
.page-loader.dissolving .page-loader-track,
.page-loader.dissolving .page-loader-status {
    visibility: hidden;
}

.page-loader.done {
    display: none;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

.intro-waiting .navbar,
.intro-waiting .hero-socials {
    opacity: 0;
}

.intro-in .navbar {
    animation: rise 0.7s var(--ease-out) 0.3s both;
}

.intro-in #header .hero-socials {
    animation: rise 0.7s var(--ease-out) 0.38s both;
}

.cursor {
    --cursor-size: 14px;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor.is-visible {
    opacity: 1;
}

.cursor-dot {
    display: grid;
    place-items: center;
    width: var(--cursor-size);
    height: var(--cursor-size);
    margin: calc(var(--cursor-size) / -2) 0 0 calc(var(--cursor-size) / -2);
    border-radius: 50%;
    background: #fff;
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), margin 0.3s var(--ease-out);
}

.cursor-label {
    color: #000;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.page-cover {
    position: fixed;
    inset: 0;
    z-index: 99998;
}

.thread {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900;
    width: 120px;
    height: auto;
    image-rendering: pixelated;
    pointer-events: none;
    will-change: transform;
}

.thread.is-intro {
    z-index: 100000;
}

.custom-cursor .cursor {
    display: block;
}

html.custom-cursor,
html.custom-cursor * {
    cursor: none;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    line-height: 0.9;
    text-align: left;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(40px, 6.4vw, 112px);
}

h2 {
    font-size: clamp(40px, 5.6vw, 92px);
}

h3 {
    font-size: clamp(24px, 2.6vw, 44px);
    line-height: 1.1;
}

.title {
    max-width: 600px;
    margin: 0;
    color: var(--white);
}

.section-head {
    width: 100%;
    max-width: var(--container-width);
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(24px, 5vw, 80px);
    margin: clamp(55px, 9vh, 89px) auto clamp(160px, 32vh, 360px);
    padding: 0 var(--pad-edge);
}

.section-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.section-note {
    flex: none;
    white-space: nowrap;
    margin: 0;
    color: var(--white);
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 500;
    line-height: 1.5;
}

#my-story .section-note,
#featured-projects .section-note,
.accent-section .section-note {
    color: var(--black);
}

.button {
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: clamp(16px, 3vh, 32px);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--white);
    background: var(--white);
    color: var(--black);
    font: 500 14px/1 var(--font-body);
    letter-spacing: 0;
    text-decoration: none;
    transition: font-weight 0.15s var(--ease-out);
}

.button:hover,
.button:focus-visible {
    font-weight: 800;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(12px, 2.5vh, 28px) var(--pad-edge);
    color: var(--white);
    font-size: clamp(13px, 1.4vw, 16px);
    transition: color 0.3s ease;
}

.navbar.on-accent {
    color: var(--black);
}

.brand {
    display: flex;
    align-items: center;
}

.brand a {
    display: block;
    color: inherit;
    background: currentColor;
    mask: url('../images/core/logo.svg') center / contain no-repeat;
}

.brand img {
    display: block;
    width: clamp(60px, 12vh, 108px);
    opacity: 0;
}

.links-container {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 20px);
}

.hamburger {
    position: relative;
    display: inline-flex;
    width: 56px;
    height: 44px;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
}

.hamburger-line,
.hamburger-half {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
}

.hamburger-line {
    top: 16px;
    transition: top 0.35s var(--ease-out) 0.2s;
}

.hamburger-half {
    top: 26px;
    width: 50%;
    transform-origin: right center;
    transition: top 0.35s var(--ease-out) 0.2s, translate 0.35s var(--ease-out) 0.2s, rotate 0.3s var(--ease-out), scale 0.3s var(--ease-out);
}

.hamburger-half:last-child {
    left: 50%;
}

.hamburger[aria-expanded="true"] .hamburger-line {
    top: 21px;
    transition-delay: 0s;
}

.hamburger[aria-expanded="true"] .hamburger-half {
    top: 21px;
    scale: 0.66 1;
    transition: top 0.35s var(--ease-out), translate 0.35s var(--ease-out), rotate 0.4s var(--ease-out) 0.2s, scale 0.4s var(--ease-out) 0.2s;
}

.hamburger[aria-expanded="true"] .hamburger-half:first-child,
.hamburger[aria-expanded="true"] .hamburger-line + .hamburger-half {
    translate: 100% 0;
    rotate: 40deg;
}

.hamburger[aria-expanded="true"] .hamburger-half:last-child {
    rotate: -40deg;
}

@media (prefers-reduced-motion: reduce) {
    .hamburger-line,
    .hamburger-half { transition: none; }
}

.mobile-menu {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 var(--pad-edge);
    background: var(--accent);
    color: var(--black);
    clip-path: inset(0 0 0 100%);
    pointer-events: none;
    transition: clip-path 0.6s var(--ease-out);
}

.mobile-menu.open {
    clip-path: inset(0);
    pointer-events: auto;
}

html.menu-open .navbar {
    mix-blend-mode: normal;
    color: var(--black);
}

html.on-accent .mobile-menu {
    background: var(--black);
    color: var(--white);
}

html.menu-open.on-accent .navbar {
    color: var(--white);
}

/* Only the root locks the scroll: an overflow on body would make it a scroll container and unstick the showcase. */
html.menu-open {
    overflow: hidden;
}

.mobile-menu-picture {
    overflow: hidden;
    --invert: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: none;
    width: min(44vw, 720px);
    pointer-events: none;
}

@media (min-width: 1025px) {
    .mobile-menu-picture {
        display: block;
    }

    .mobile-menu-links {
        max-width: min(760px, 50vw);
    }
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 760px;
}

.mobile-menu-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.2em;
    padding: clamp(12px, 2.4vh, 24px) 0;
    color: inherit;
    font-family: var(--font-body);
    font-size: clamp(36px, 6vw, 88px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;
    text-decoration: none;
    transition: font-weight 0.15s var(--ease-out);
}

.mobile-menu-group {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}

.mobile-menu.open .mobile-menu-group {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-sub {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0 clamp(12px, 1.6vw, 20px);
    margin: 0 0 clamp(10px, 1.6vh, 16px) 0;
    padding-left: 1.3em;
}

.mobile-menu-sub::before {
    content: '\21B3';
    position: absolute;
    top: 3px;
    left: 0.2em;
    font-size: 13px;
    opacity: 0.6;
}

.mobile-menu-sublink {
    padding: 3px 0;
    color: inherit;
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-decoration: none;
    text-underline-offset: 0.25em;
}

.mobile-menu-sublink:hover,
.mobile-menu-sublink:focus-visible,
.mobile-menu-sublink[aria-current] {
    text-decoration: underline;
}

.mobile-menu-sublink[aria-current] {
    font-weight: 700;
}

.mobile-menu .hero-socials {
    margin: clamp(24px, 4vh, 40px) 0 0;
}

.mobile-menu-group + .mobile-menu-group {
    border-top: 1px solid rgba(33, 7, 16, 0.4);
}

html.on-accent .mobile-menu-picture {
    --invert: 0;
}

html.on-accent .mobile-menu-group + .mobile-menu-group {
    border-color: rgba(246, 242, 242, 0.4);
}

.mobile-menu.open .mobile-menu-group:nth-child(1) { transition-delay: 0.15s, 0.15s; }
.mobile-menu.open .mobile-menu-group:nth-child(2) { transition-delay: 0.22s, 0.22s; }
.mobile-menu.open .mobile-menu-group:nth-child(3) { transition-delay: 0.29s, 0.29s; }
.mobile-menu.open .mobile-menu-group:nth-child(4) { transition-delay: 0.36s, 0.36s; }

.mobile-menu-credit {
    position: absolute;
    top: clamp(12px, 2.5vh, 28px);
    left: var(--pad-edge);
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.5s ease 0.4s;
}

.mobile-menu.open .mobile-menu-credit {
    opacity: 1;
}

.back-to-top {
    --size: 100px;
    position: relative;
    width: var(--size);
    height: var(--size);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: none;
    color: var(--white);
    cursor: pointer;
    transition: transform 0.4s var(--ease-out);
}

.back-to-top:hover {
    transform: scale(0.9);
}

.btt-text {
    position: absolute;
    inset: 0;
    animation: spin 15s linear infinite;
    pointer-events: none;
}

.btt-text span {
    position: absolute;
    top: 0;
    left: 50%;
    transform-origin: 0 calc(var(--size) / 2);
    font-family: 'Heavitas', sans-serif;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: pre;
}

.btt-icon {
    width: 75%;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#header {
    --hero-progress: 0;
    background: var(--black);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    overflow: hidden;
    pointer-events: none;
}

#header.is-turned #site-title,
#header.is-turned .header-subtitles {
    visibility: hidden;
}

#header.is-past {
    display: none;
}

#hero-pixels {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    transform: translateX(22vw);
}

.header-content {
    --name-size: clamp(40px, 6.4vw, 112px);
    position: absolute;
    bottom: clamp(34px, 7vh, 61px);
    bottom: calc(100lvh - 100svh + clamp(34px, 7vh, 61px));
    left: var(--pad-edge);
    right: var(--pad-edge);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 21px;
}

#site-title {
    display: flex;
    flex-direction: column;
    gap: 0.14em;
    margin: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-size: var(--name-size);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    pointer-events: none;
    font-style: italic;
}

.hero-socials,
.hero-socials a,
.hero-socials button,
.header-meta .clock {
    pointer-events: auto;
}

.hero-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(16px, 4vh, 40px);
}

.hero-socials a,
.hero-socials button,
.hero-socials .clock,
.header-meta .clock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--white);
    border-radius: 999px;
    background: var(--white);
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: font-weight 0.15s var(--ease-out);
}

.hero-socials .clock,
.header-meta .clock {
    background: transparent;
    color: var(--white);
}

.hero-socials button {
    font-family: inherit;
    cursor: pointer;
}

.header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.header-meta .clock {
    padding: 6px 12px;
    font-size: 12px;
    opacity: max(0, calc(1 - var(--turn, 0) * 3));
}

#header.is-turned .header-meta .clock {
    visibility: hidden;
}

.hero-socials a[target="_blank"]::after,
.footer-socials a[target="_blank"]::after {
    content: '\2197';
}

.footer-socials a[target="_blank"]::after {
    margin-left: 0.4em;
}

.hero-socials button:hover,
.hero-socials button:focus-visible {
    font-weight: 800;
}

.hero-socials a:hover,
.hero-socials a:focus-visible {
    font-weight: 800;
}

#header.is-turned .hero-socials {
    visibility: hidden;
}

.header-subtitles {
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.hero-about {
    position: absolute;
    top: 50%;
    left: var(--pad-edge);
    z-index: 2;
    width: min(40vw, 620px);
    transform: translate(calc((1 - var(--turn, 0)) * -48px), -50%);
    visibility: hidden;
    pointer-events: auto;
}

#header.is-turned .hero-about {
    visibility: visible;
}

.hero-about .about-title,
.about-header-text .about-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 84px);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 0.95;
}

.hero-about .about-title strong,
.about-header-text .about-title strong {
    font-weight: 400;
}

.hero-about .about-title .about-line,
.about-header-text .about-title .about-line {
    display: flex;
    align-items: baseline;
    column-gap: 0.3em;
}

.hero-about .about-hero-lede,
.about-header-text .about-hero-lede {
    max-width: 26ch;
}

/* scroll length of the home hero: 200vh for the title, 200vh for the introduction */
.hero-spacer {
    height: 400vh;
}

.about-title {
    margin-bottom: clamp(24px, 4vh, 40px);
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 116px);
    font-weight: 400;
    line-height: 0.88;
    text-wrap: balance;
}

.about-title strong {
    font-weight: 400;
}

.about-hero-lede {
    max-width: 30ch;
    margin: 0;
    font-size: clamp(17px, 2vw, 24px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.015em;
}

#promise,
#my-story {
    min-height: 0;
    padding: 0 0 clamp(80px, 14vh, 160px);
}

#my-story {
    background: var(--accent);
    color: var(--black);
}

.promise-story {
    margin-top: clamp(40px, 8vh, 96px);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(24px, 4vw, 72px);
    box-sizing: border-box;
    padding: 0 var(--pad-edge);
    margin-left: clamp(0px, 12vw, 200px);
}

.promise-picture {
    --invert: 1;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.promise-picture canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.promise-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 32px;
}

.promise-text p {
    max-width: 44ch;
    margin: 0;
    font-size: clamp(15px, 1.4vw, 21px);
    font-weight: 500;
    line-height: 1.45;
}

.promise-links {
    max-width: 440px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.promise-links a > span[aria-hidden] {
    position: absolute;
    top: 18px;
    right: 0;
}

.promise-links li {
    border-top: 1px solid var(--black);
}

.promise-links a {
    position: relative;
    display: block;
    padding: 18px 2em 18px 0;
    color: inherit;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
}

@media (max-width: 768px) {
    .promise-story {
        grid-template-columns: 1fr;
        margin-left: 0;
    }
}

#featured-projects {
    padding: 0 0 clamp(24px, 6vh, 64px);
    overflow-x: clip;
    background: var(--accent);
    color: var(--black);
}

#my-story .title,
#featured-projects .title,
.accent-section .title {
    color: var(--black);
}

.project-index {
    position: relative;
    width: 100%;
    max-width: var(--container-width);
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 var(--pad-edge);
}

.index-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(160px, 28vh, 320px) clamp(32px, 5vw, 80px);
}

.index-category {
    display: flex;
    align-items: baseline;
    margin: 0 0 clamp(160px, 32vh, 360px);
    font-family: var(--font-display);
    font-size: clamp(36px, 4.4vw, 72px);
    font-weight: 400;
    line-height: 0.9;
    font-style: italic;
}

.index-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.index-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(200px, 21vw, 320px) auto;
    align-items: center;
    gap: 0 clamp(12px, 2vw, 32px);
    padding: clamp(16px, 2.4vh, 26px) 0;
    border-top: 1px solid var(--black);
    color: var(--black);
    text-decoration: none;
}

.index-row:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 4px;
}

.index-title {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
    transform-origin: left bottom;
    transition: font-weight 0.2s var(--ease-out), transform 0.4s var(--ease-out);
}

.index-row:hover .index-title,
.index-row:focus-visible .index-title {
    font-weight: 800;
}

.index-slot {
    align-self: stretch;
}

.index-year {
    justify-self: end;
    font-size: 13px;
    font-weight: 500;
    transform-origin: right bottom;
    transition: font-weight 0.2s var(--ease-out), transform 0.4s var(--ease-out);
}

.index-row:hover .index-year,
.index-row:focus-visible .index-year {
    font-weight: 800;
}

.index-row[aria-expanded="true"] .index-title {
    font-weight: 800;
}

.index-preview {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    margin: 0;
    visibility: hidden;
    transform: translateY(-50%);
    pointer-events: none;
}

.index-preview.is-on {
    visibility: visible;
    transition: top 0.35s var(--ease-out);
}

.index-preview canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* scroll length of the project showcase: 200vh per project (see the two height rules) */
.showcase {
    --count: 8;
    position: relative;
    width: 100%;
    height: calc(var(--count) * 200vh + 100vh);
}

.showcase-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
}

.showcase-count,
.showcase-steps {
    position: absolute;
    top: clamp(96px, 15vh, 140px);
}

.showcase-count {
    left: var(--pad-edge);
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--showcase-accent, currentColor);
}

.showcase-steps {
    right: var(--pad-edge);
    display: flex;
    gap: 4px;
    translate: 0 -11px;
}

.showcase-step {
    width: 28px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.showcase-step::before {
    content: '';
    display: block;
    height: 2px;
    background: currentColor;
    opacity: 0.25;
    transition: opacity 0.3s var(--ease-out);
}

.showcase-step.is-current::before {
    opacity: 1;
    background: var(--showcase-accent, currentColor);
    transition: opacity 0.3s var(--ease-out);
}

.showcase-anchor {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

.showcase-link {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100001;
    translate: -50% -50%;
    width: 92vw;
    color: inherit;
    text-align: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* It fades out, then leaves the layer; coming back it is visible at once and fades in. */
    transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
}

.showcase-link.is-visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

html.menu-open .showcase-link {
    opacity: 0;
    visibility: hidden;
    transition-delay: 0s, 0.4s;
}

.showcase-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: max(44px, var(--fit, 11vw));
    font-style: italic;
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.01em;
}

.showcase-anchor {
    z-index: 0;
    /* size of the pixel mark shown with each project */
    width: min(60vmin, 600px);
    aspect-ratio: 1;
    pointer-events: none;
}

.showcase-mark {
    display: block;
    width: 60%;
    height: 60%;
    margin: 20%;
    object-fit: contain;
}

.showcase-side {
    position: absolute;
    bottom: clamp(32px, 7vh, 64px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.showcase-left {
    left: var(--pad-edge);
    max-width: min(40vw, 420px);
}

.showcase-right {
    right: var(--pad-edge);
    width: min(34vw, 380px);
}

.showcase-right .index-role,
.showcase-right .index-text {
    margin: 0;
}

.showcase-go {
    margin-top: 8px;
}

.is-changing .showcase-side {
    animation: rise 0.6s var(--ease-out) both;
}

.is-changing .showcase-right {
    animation-delay: 0.06s;
}

@media (max-width: 768px) {
    .showcase {
        height: calc(var(--count) * 200vh + 100vh);
    }

    .showcase-anchor {
        width: 78vw;
    }

    .showcase-side {
        left: var(--pad-edge);
        right: var(--pad-edge);
        width: auto;
        max-width: none;
    }

    .showcase-left {
        bottom: auto;
        top: 60%;
    }

    .showcase-right {
        bottom: clamp(24px, 5vh, 40px);
    }
}

.index-detail {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease-out);
}

.index-item.is-open .index-detail {
    grid-template-rows: 1fr;
}

.index-detail-inner {
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 48px);
}

.index-media {
    position: relative;
    align-self: start;
    justify-self: start;
    max-width: 100%;
    margin: 4px 0 clamp(20px, 3vh, 32px);
    overflow: hidden;
}

.index-media img {
    display: block;
    max-width: 100%;
    max-height: min(60vh, 520px);
}

.index-media video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--ink);
}

/* Hidden until the pixel cover has painted its first frame, so the picture never flashes. */
.is-covered img,
.is-covered video {
    visibility: hidden;
}

.index-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 4px 0 clamp(20px, 3vh, 32px);
}

.index-role {
    font-size: 14px;
    font-weight: 500;
}

.index-text {
    max-width: 44ch;
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 500;
    line-height: 1.45;
}

.index-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.index-tag {
    padding: 4px 10px;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.index-go {
    padding: 11px 20px;
    border: 1px solid var(--black);
    border-radius: 999px;
    background: var(--black);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: font-weight 0.15s var(--ease-out);
}

.index-go:hover,
.index-go:focus-visible {
    font-weight: 800;
}

.journey {
    position: relative;
    width: calc(100% + 2 * var(--pad-edge));
    margin: 0 calc(-1 * var(--pad-edge));
    color: var(--white);
}

.journey-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.globe-label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    height: 24px;
    padding: 0 8px;
    background: var(--black);
    color: var(--white);
    font: 500 13px/24px var(--font-body);
    white-space: nowrap;
    pointer-events: none;
    will-change: transform;
}

.globe-label.is-active {
    background: var(--white);
    color: var(--black);
}

.journey-globe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.journey-stops {
    position: relative;
    z-index: 1;
    max-width: min(54vw, 780px);
    margin: -100vh 0 0;
    padding: 150vh var(--pad-edge) 20vh;
    list-style: none;
}

.journey-stop {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    outline: none;
}

.journey-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.journey-when,
.journey-country {
    font-size: 14px;
    font-weight: 500;
}

.journey-place .journey-half {
    position: relative;
    top: 0.15em;
}

.journey-flag {
    --open: 0;
    position: relative;
    flex: none;
    height: 0.7em;
    width: calc(var(--open) * var(--aspect) * 0.7em + var(--open) * 0.3em + 0.22em);
}

.journey-flag-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.journey-place {
    text-transform: uppercase;
    text-box: trim-both cap alphabetic;
    display: flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: clamp(36px, 4.6vw, 76px);
    font-weight: 400;
    line-height: 0.9;
    font-style: normal;
}

.journey-what {
    max-width: 34ch;
    margin: 8px 0 0;
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .index-groups {
        grid-template-columns: 1fr;
        row-gap: 96px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .journey-stops {
        max-width: none;
    }

    .journey-stop {
        min-height: 100vh;
        justify-content: flex-end;
        padding-bottom: 8vh;
    }

    .journey-card {
        margin: 0 calc(-1 * var(--pad-edge));
        padding: 24px var(--pad-edge);
        background: var(--black);
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 76px;
    }

    p {
        font-size: 18px;
        line-height: 1.65;
    }

    section {
        min-height: 0;
        padding: clamp(64px, 16vw, 88px) var(--pad-edge);
    }

    .title {
        margin: 0 auto 28px;
        font-size: clamp(40px, 12vw, 64px);
    }

    .navbar {
        padding: max(12px, env(safe-area-inset-top)) var(--pad-edge);
    }

    .brand a {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .brand img {
        width: 60px;
    }

    .mobile-menu {
        box-sizing: border-box;
        padding: max(76px, calc(env(safe-area-inset-top) + 56px)) var(--pad-edge) max(32px, env(safe-area-inset-bottom));
    }

    .mobile-menu-sub {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 12px;
    }

    .mobile-menu-sublink {
        display: flex;
        align-items: center;
        min-height: 34px;
        padding: 0;
    }

    .mobile-menu-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .mobile-menu-credit {
        top: max(12px, env(safe-area-inset-top));
    }

    .header-content {
        --name-size: clamp(38px, 13vw, 72px);
        gap: 13px;
    }

    .hero-socials {
        margin-bottom: 4px;
    }

    /* On a phone the links live in the menu; the hero keeps its title and portrait. */
    #header .hero-socials {
        display: none;
    }

    .hero-socials a,
    .hero-socials button {
        padding: 11px 15px;
    }

    .footer-inner a,
    .footer-inner .copy-handle {
        display: inline-block;
        padding: 6px 0;
    }

    .all-back {
        display: inline-block;
        padding: 10px 0;
    }

    .all-head .all-tabs a {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .index-category {
        margin-bottom: clamp(48px, 10vh, 96px);
    }

    .journey-place {
        font-size: clamp(24px, 7.8vw, 40px);
    }

.hero-about .about-title,
.about-header-text .about-title {
        font-size: clamp(34px, 10vw, 56px);
    }

    .header-subtitles {
        font-size: 12px;
    }

    #featured-projects {
        padding: 64px 0 96px;
    }

    .index-row,
    .culture-list .index-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .index-slot {
        display: none;
    }

    .index-detail-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .index-title {
        font-size: 24px;
    }

    .about-header-text {
        padding: 80px var(--pad-edge) 40px;
    }

    .back-to-top {
        --size: 64px;
    }

    .btt-text span {
        font-size: 7px;
    }
}

@media (hover: none) {
    .button:active,
    .back-to-top:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }

    .mobile-menu-link:active,
    .mobile-menu-sublink:active {
        opacity: 0.7;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btt-text {
        animation: none;
    }
}

.scrubbing-char {
    display: inline;
}

.scrubbing-word {
    white-space: nowrap;
}

.scrubbing-text {
    position: relative;
}

.scrubbing-cells {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.clock {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.clock-icon {
    flex: none;
    width: 12px;
    height: 12px;
    fill: currentColor;
    shape-rendering: crispEdges;
}

.clock-time {
    margin-left: 6px;
}

.clock,
.index-year,
.journey-when,
.index-count {
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
    cursor: default;
}

.journey-when {
    align-self: flex-start;
    font-size: 13px;
}

.index-count {
    align-self: center;
    margin-left: 14px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
}

.mobile-menu-link[aria-current] .menu-current {
    margin-right: 0.25em;
    font-weight: 400;
}

main {
    position: relative;
    z-index: 2;
}

.contact-section {
    display: block;
    min-height: 0;
    padding: 0;
    background: var(--black);
    color: var(--black);
}

.contact-intro {
    --dwell: 130vh;
    position: relative;
    height: calc(100vh + var(--dwell));
    height: calc(100svh + var(--dwell));
    background: var(--black);
}

.contact-stage {
    /* How big the window is when it opens, as a share of the screen. */
    --face-width: 0.26;
    --face-height: 0.56;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: var(--black);
    color: var(--white);
}

.contact-heading {
    position: absolute;
    inset: 0;
    margin: 0;
    font-size: clamp(64px, 12vw, 200px);
    line-height: 1;
    opacity: var(--appear, 0);
    pointer-events: none;
}

.contact-half {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: var(--half, 1);
    white-space: nowrap;
    will-change: transform, opacity;
}

.contact-half:first-child {
    transform-origin: right center;
    transform: translate(calc(-100% + var(--join, 0px) - var(--off, 0px)), -50%) scale(var(--g, 1));
}

.contact-half:last-child {
    transform-origin: left center;
    transform: translate(calc(var(--join, 0px) + var(--off, 0px)), -50%) scale(var(--g, 1));
}

.contact-stage[data-axis="y"] .contact-half:first-child {
    transform-origin: center bottom;
    transform: translate(-50%, calc(-100% - var(--off, 0px))) scale(var(--g, 1));
}

.contact-stage[data-axis="y"] .contact-half:last-child {
    transform-origin: center top;
    transform: translate(-50%, var(--off, 0px)) scale(var(--g, 1));
}

.contact-window {
    position: absolute;
    inset: 0;
    clip-path: inset(50% 50%);
}

.contact-face {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--w, calc(var(--face-width) * 100%));
    height: var(--h, calc(var(--face-height) * 100%));
    background: var(--white);
    transform: translate(-50%, -50%);
}

.contact-scene {
    position: absolute;
    inset: 0;
    background: var(--white);
    color: var(--black);
    opacity: var(--wipe, 0);
}

.contact-title {
    position: absolute;
    z-index: 1;
    top: 17svh;
    left: var(--pad-edge);
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(72px, 15.5vw, 320px);
    font-style: normal;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.82;
    white-space: nowrap;
}

.contact-looking,
.contact-terms {
    position: absolute;
    width: clamp(210px, 17vw, 320px);
    margin: 0;
    font-size: clamp(15px, 1.22vw, 20px);
    font-weight: 500;
    line-height: 1.22;
}

.contact-looking > span,
.contact-terms > span {
    display: block;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
}

.contact-looking em,
.contact-terms em {
    font-family: var(--font-display);
    font-size: 1.12em;
    font-style: italic;
    font-weight: 400;
}

.contact-looking {
    top: 54svh;
    right: 31vw;
}

.contact-frame {
    position: absolute;
    margin: 0;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 50%, var(--ink)) 0%, var(--accent) 74%);
}

.contact-frame::after {
    --m: 13px;
    content: '';
    position: absolute;
    inset: 14px;
    pointer-events: none;
    background:
        linear-gradient(currentColor, currentColor) left 0 top 6px / var(--m) 1px no-repeat,
        linear-gradient(currentColor, currentColor) left 6px top 0 / 1px var(--m) no-repeat,
        linear-gradient(currentColor, currentColor) right 0 top 6px / var(--m) 1px no-repeat,
        linear-gradient(currentColor, currentColor) right 6px top 0 / 1px var(--m) no-repeat,
        linear-gradient(currentColor, currentColor) left 0 bottom 6px / var(--m) 1px no-repeat,
        linear-gradient(currentColor, currentColor) left 6px bottom 0 / 1px var(--m) no-repeat,
        linear-gradient(currentColor, currentColor) right 0 bottom 6px / var(--m) 1px no-repeat,
        linear-gradient(currentColor, currentColor) right 6px bottom 0 / 1px var(--m) no-repeat;
}

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

.contact-frame--portrait {
    top: 20svh;
    right: 0;
    width: 26vw;
    height: 72svh;
}

.contact-frame--speaker {
    top: 16svh;
    left: 36vw;
    width: 24vw;
    height: 64svh;
}

.contact-picture {
    --invert: 1;
    position: absolute;
    inset: 0;
}

.contact-picture canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-rest {
    position: relative;
    height: 104vh;
    height: 104svh;
    background: var(--white);
    color: var(--black);
}

.contact-terms {
    top: 12svh;
    right: var(--pad-edge);
}

.contact-links {
    position: absolute;
    top: 70svh;
    left: var(--pad-edge);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(14px, 2.4svh, 26px);
}

.contact-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: clamp(22px, 2.1vw, 34px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.32;
}

.contact-socials a[href^="mailto:"] {
    display: none;
}

:where(.contact-links a, .contact-links button) {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: font-weight 0.15s var(--ease-out);
}

.contact-links a:hover,
.contact-links a:focus-visible,
.contact-links button:hover,
.contact-links button:focus-visible {
    font-weight: 800;
}

.contact-email {
    font-size: clamp(15px, 1.2vw, 19px);
    font-weight: 500;
}

.contact-intro.is-static {
    height: auto;
}

.contact-intro.is-static .contact-stage {
    position: relative;
    background: var(--white);
}

.contact-intro.is-static .contact-heading,
.contact-intro.is-static .contact-face {
    display: none;
}

.contact-intro.is-static .contact-window {
    clip-path: none;
}

.contact-intro.is-static .contact-scene {
    opacity: 1;
}

@media (max-width: 900px), (max-aspect-ratio: 1/1) {
    .contact-heading {
        font-size: clamp(56px, 21vw, 180px);
    }

    .contact-stage {
        --face-width: 0.62;
        --face-height: 0.34;
    }

    .contact-scene {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
        box-sizing: border-box;
        padding: clamp(88px, 13svh, 120px) var(--pad-edge) clamp(24px, 4svh, 40px);
    }

    .contact-title,
    .contact-looking,
    .contact-frame--portrait {
        position: relative;
        inset: auto;
    }

    .contact-title {
        font-size: clamp(64px, 25vw, 240px);
        white-space: normal;
    }

    .contact-looking,
    .contact-terms {
        width: min(100%, 22rem);
        font-size: 17px;
    }

    .contact-looking {
        align-self: flex-end;
    }

    .contact-frame--portrait {
        align-self: flex-end;
        width: 62vw;
        height: 34svh;
        margin-right: calc(var(--pad-edge) * -1);
    }

    .contact-rest {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 40px;
        padding: clamp(56px, 9svh, 96px) var(--pad-edge) clamp(48px, 8svh, 88px);
    }

    .contact-terms,
    .contact-frame--speaker,
    .contact-links {
        position: relative;
        inset: auto;
    }

    .contact-frame--speaker {
        align-self: flex-start;
        width: 62vw;
        height: 40svh;
        margin-left: calc(var(--pad-edge) * -1);
    }

    .contact-socials {
        font-size: 26px;
    }
}

.footer-space,
#footer {
    height: 100vh;
    height: 100svh;
}

.footer-space {
    pointer-events: none;
}

#footer {
    --reveal: 0;
    --name-size: calc((100vw - 2 * var(--pad-edge)) / 4.74);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: clamp(104px, 17vh, 168px) var(--pad-edge) 0;
    overflow: hidden;
    container-type: inline-size;
    background: var(--ink);
    color: var(--white);
    visibility: hidden;
}

@supports (width: 1cqw) {
    #footer {
        --name-size: calc(100cqw / 4.74);
    }
}

#footer.is-near {
    visibility: visible;
}

.footer-inner {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 32px clamp(24px, 4vw, 64px);
    font-size: clamp(13px, 1.05vw, 15px);
    transform: translateY(calc((var(--reveal) - 1) * 24vh));
    opacity: calc(0.3 + var(--reveal) * 0.7);
}

.footer-contact,
.footer-socials,
.footer-pages {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact {
    font-weight: 500;
}

.footer-socials,
.footer-pages {
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

:where(.footer-inner a, .footer-inner button) {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    text-decoration: none;
    text-transform: inherit;
    cursor: pointer;
    transition: font-weight 0.15s var(--ease-out);
}

.footer-inner a:hover,
.footer-inner a:focus-visible,
.footer-inner .copy-handle:hover,
.footer-inner .copy-handle:focus-visible {
    font-weight: 800;
}

.footer-socials a[href^="mailto:"] {
    display: none;
}

.footer-email {
    font-size: clamp(18px, 1.8vw, 28px);
    font-weight: 500;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.footer-copy {
    margin: 0;
    color: var(--text-faint);
    font-size: inherit;
    font-weight: 500;
    line-height: 1;
}

.footer-inner .back-to-top {
    position: absolute;
    top: 0;
    right: 0;
}

/* The portrait takes the whole width, and all the height the links and the name leave. */
.footer-portrait {
    flex: 1 1 0;
    min-height: 0;
    margin: 0 calc(var(--pad-edge) * -1);
    opacity: var(--reveal);
    pointer-events: none;
}

.footer-portrait canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.footer-name {
    flex: none;
    /* Half of the capitals sit below the bottom edge. They rise 0.22em above the line box, so that room is kept above. */
    margin: calc(var(--name-size) * 0.26) 0 calc(var(--name-size) * -0.49);
    color: var(--white);
    font-family: var(--font-display);
    font-size: var(--name-size);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 0.7;
    white-space: nowrap;
    transform: translateY(calc((1 - var(--reveal)) * 130%));
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-contact {
        grid-column: 1 / -1;
    }
}

@media (max-height: 520px) {
    #footer {
        padding-top: 72px;
    }

    .footer-inner .back-to-top {
        display: none;
    }

    .footer-inner {
        row-gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-inner,
    .footer-name {
        transform: none;
        opacity: 1;
    }

    .footer-portrait {
        opacity: 1;
    }
}

.promise-links a {
    text-decoration: none;
    transition: font-weight 0.15s var(--ease-out);
}

.promise-links a:hover,
.promise-links a:focus-visible,
.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
    font-weight: 800;
}

.about-header {
    --hero-progress: 0;
    position: relative;
    z-index: 1;
    height: 125vh;
}

.about-header.is-past::before,
.about-header.is-past > * {
    visibility: hidden;
}

.about-header::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--black);
    pointer-events: none;
}

.about-header-picture {
    position: fixed;
    inset: 0 0 auto;
    z-index: 0;
    height: 100vh;
    height: 100lvh;
    pointer-events: none;
}

.about-header-picture canvas,
.mobile-menu-picture canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Portrait screens: the picture sits on the floor of the screen and the text is at the top. */
@media (max-aspect-ratio: 1/1) {
    #hero-pixels {
        inset: auto 0 0;
        height: 66vh;
        height: 66lvh;
        transform: none;
    }

    .header-content,
    .hero-about {
        top: clamp(84px, 12svh, 104px);
        bottom: auto;
    }

    .hero-about {
        right: var(--pad-edge);
        width: auto;
        transform: translateX(calc((1 - var(--turn, 0)) * -24px));
    }

    .about-header-picture {
        inset: auto 0 0;
        height: 62vh;
        height: 62lvh;
    }
}

.about-header-overlay {
    position: fixed;
    inset: 0;
    z-index: 3;
    background: rgba(33, 7, 16, calc(var(--hero-progress) * 0.65));
    pointer-events: none;
}

.about-header-text {
    position: fixed;
    inset: 0;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: clamp(96px, 16vh, 160px) var(--pad-edge) clamp(20px, 5vh, 60px);
    pointer-events: none;
}

.about-header-text > * {
    width: min(86vw, 620px);
    pointer-events: auto;
}

.about-header-text .about-title {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    column-gap: 0.3em;
    width: auto;
    max-width: 100%;
    text-align: center;
}

.about-header-text .about-hero-lede {
    max-width: none;
    color: var(--white);
    text-align: center;
}

.timeline-section {
    min-height: 0;
    padding: clamp(60px, 12vh, 120px) 0 0;
}

.timeline {
    width: 100%;
    max-width: var(--container-width);
    box-sizing: border-box;
    margin: clamp(40px, 8vh, 96px) auto 0;
    padding: 0 var(--pad-edge);
    list-style: none;
}

.timeline-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 2fr);
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid rgba(246, 242, 242, 0.25);
}

.timeline-year {
    align-self: start;
    justify-self: start;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.timeline-company {
    font-size: clamp(26px, 2.6vw, 44px);
}

.timeline-place,
.timeline-role {
    margin: 8px 0 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.timeline-role {
    margin-top: 0;
    font-size: 17px;
}

.timeline-points {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.timeline-points li {
    padding: 6px 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.45;
}

@media (max-width: 1024px) {
    .about-header-text > * {
        max-width: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.accent-section {
    background: var(--accent);
    color: var(--black);
}

.culture-section {
    min-height: 0;
    padding: 0 0 clamp(140px, 24vh, 260px);
    justify-content: flex-start;
}

.culture-section .section-head {
    margin-bottom: clamp(80px, 16vh, 180px);
}

@media (min-width: 769px) {
    .culture-list .index-row {
        grid-template-columns: minmax(0, 1fr) clamp(200px, 21vw, 320px) minmax(0, 1fr);
    }
}

.culture-list .index-item:last-child {
    border-bottom: 1px solid var(--black);
}

.culture-preview {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    margin: 0;
    overflow: hidden;
    visibility: hidden;
    transform: translate3d(var(--x, 0), var(--y, 0), 0);
    will-change: transform;
    backface-visibility: hidden;
    pointer-events: none;
}

.culture-preview.is-on {
    visibility: visible;
    transition: transform 0.22s var(--ease-out);
}

.culture-preview img {
    display: block;
    width: auto;
    height: clamp(180px, 32vh, 340px);
    max-width: min(70vw, 440px);
    object-fit: contain;
}

#travels {
    padding-bottom: 0;
}

.journey[data-layout="track"] {
    height: calc(100vh + var(--stops) * 60vh);
}

.travel-track {
    position: absolute;
    top: clamp(72px, 13vh, 140px);
    left: 0;
    z-index: 1;
    display: flex;
    gap: clamp(72px, 12vw, 220px);
    margin: 0;
    padding: 0;
    list-style: none;
    will-change: transform;
}

.travel-stop {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    outline: none;
}

.travel-stop .journey-place {
    font-size: clamp(40px, 10vw, 170px);
}

.index-platform {
    font-size: 0.5em;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
}

.culture-preview video {
    display: block;
    width: clamp(240px, 26vw, 420px);
    height: auto;
}

/* Home: projects share a composition and vary by palette. */
.showcase-stage {
    background: var(--showcase-background, var(--accent));
    color: var(--showcase-foreground, var(--black));
}

.showcase-step.is-current::before {
    background: var(--showcase-accent, currentColor);
}

.showcase-stage .showcase-go {
    border: 0;
    background: var(--showcase-button-background, var(--black));
    color: var(--showcase-button-foreground, var(--white));
    transition: font-weight 0.15s var(--ease-out);
}

/* The list of all projects sits on a red band of its own. */
.index-section {
    min-height: 0;
    padding: clamp(80px, 14vh, 160px) 0 clamp(100px, 16vh, 200px);
    background: var(--accent);
    color: var(--black);
}

.index-section .index-row {
    border-top-color: rgba(33, 7, 16, 0.3);
    color: var(--black);
}

.index-section .index-row:focus-visible {
    outline-color: var(--black);
}

.index-section .index-go {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

/* What you get shares the red project band. */
#promise {
    background: var(--accent);
    color: var(--black);
}

#promise .title,
#promise .section-note {
    color: var(--black);
}

#promise .promise-links li {
    border-top-color: var(--black);
}

@media (min-width: 1025px) {
    #promise .section-head {
        flex-direction: row-reverse;
    }

    #promise .section-head .title {
        text-align: right;
    }
}

/* About: the story turned around. */
@media (min-width: 769px) {
    #my-story .promise-story {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        margin-right: clamp(0px, 12vw, 200px);
        margin-left: 0;
    }

    #my-story .promise-picture {
        order: 2;
    }
}

/* Culture: every category is the same two-column list. */
.culture-list[data-layout="columns"] .index-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(var(--rows, 18), auto);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 5vw, 96px);
}

.culture-list[data-layout="columns"] .index-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.culture-list[data-layout="columns"] .index-slot {
    display: none;
}

.culture-list[data-layout="columns"] .index-item.is-end {
    border-bottom: 1px solid var(--black);
}

@media (max-width: 768px) {
    .culture-list[data-layout="columns"] .index-list {
        grid-auto-flow: row;
        grid-template-rows: none;
        grid-template-columns: minmax(0, 1fr);
    }

    .culture-list[data-layout="columns"] .index-item.is-end:not(:last-child) {
        border-bottom: 0;
    }
}

.mobile-menu .hero-socials a,
.mobile-menu .hero-socials button {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

html.on-accent .mobile-menu .hero-socials a,
html.on-accent .mobile-menu .hero-socials button {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}


.section-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--black);
    box-shadow: 0 0 0 1px rgba(246, 242, 242, 0.22);
    color: var(--white);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.96);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.section-nav-pill {
    display: block;
}

html.menu-open .section-nav {
    opacity: 0;
    pointer-events: none;
}

.section-nav.is-on {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.section-nav a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: font-weight 0.15s var(--ease-out), color 0.2s var(--ease-out);
}

.section-nav a:hover,
.section-nav a:focus-visible {
    font-weight: 800;
}

.section-nav a[aria-current] {
    color: var(--black);
}

.section-nav a span {
    font-size: 10px;
    opacity: 0.6;
}

.section-nav-pill {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    border-radius: 999px;
    background: var(--white);
    opacity: 0;
    transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out), opacity 0.2s;
    pointer-events: none;
}

@media (max-width: 768px) {
    .section-nav {
        max-width: calc(100vw - 2 * (var(--pad-edge) + 72px));
        overflow-x: auto;
        scrollbar-width: none;
    }

    .section-nav::-webkit-scrollbar {
        display: none;
    }

    .section-nav a {
        flex: none;
        padding: 11px 7px;
        font-size: 12px;
        white-space: nowrap;
    }

    .section-nav a span {
        display: none;
    }
}

.noscript {
    position: relative;
    z-index: 5;
    margin: 0;
    padding: 16px var(--pad-edge);
    background: var(--white);
    color: var(--black);
    font-size: 15px;
    line-height: 1.4;
}

.not-found-title {
    margin: 0 0 clamp(16px, 3vh, 28px);
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(56px, 11vw, 190px);
    font-style: italic;
    font-weight: 400;
    line-height: 0.9;
}

.not-found-note {
    max-width: 34ch;
    margin: 0 0 clamp(24px, 4vh, 40px);
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.45;
}

.all-main {
    min-height: 100svh;
    padding: clamp(120px, 20vh, 200px) var(--pad-edge) clamp(80px, 14vh, 160px);
    background: var(--black);
}

.all-head,
.all-list {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.all-main .all-list {
    display: block;
    min-height: 0;
    padding: 0;
    background: none;
}

.all-back {
    display: inline-block;
    margin-bottom: clamp(24px, 4vh, 40px);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: font-weight 0.15s var(--ease-out);
}

.all-back:hover,
.all-back:focus-visible,
.all-tabs a:hover,
.all-tabs a:focus-visible {
    font-weight: 800;
}

.all-note {
    max-width: 52ch;
    margin: 20px 0 0;
    color: var(--text);
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 400;
    line-height: 1.5;
}

.all-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: clamp(28px, 5vh, 48px) 0;
}

.all-tabs a {
    padding: 8px 16px;
    border: 1px solid var(--white);
    border-radius: var(--radius-pill);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: font-weight 0.15s var(--ease-out);
}

.all-tabs a[aria-current] {
    background: var(--white);
    color: var(--black);
}

.all-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(14px, 1.2vw, 17px);
    font-variant-numeric: tabular-nums;
}

.all-table th,
.all-table td {
    padding: 12px 16px 12px 0;
    border-bottom: 1px solid var(--hairline);
    text-align: left;
}

.all-table th {
    color: var(--text-faint);
    font-size: 13px;
    font-weight: 500;
}

.all-table td {
    color: var(--white);
    font-weight: 400;
}

.all-table td:nth-child(2),
.all-table th:nth-child(2) {
    width: 90px;
}

.all-download {
    display: inline-block;
    margin-top: clamp(28px, 5vh, 48px);
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

@media (max-width: 768px) {
    .section-aside {
        width: 100%;
    }
}

@media (max-height: 500px) {
    .showcase-right .index-role,
    .showcase-right .index-text {
        display: none;
    }
}

@media (max-height: 720px) {
    .mobile-menu-link {
        padding-block: 8px;
        font-size: clamp(30px, 5vw, 56px);
    }

    .mobile-menu-sub {
        padding-bottom: 8px;
    }

    .mobile-menu .hero-socials {
        margin-top: 16px;
    }
}

.mobile-menu .hero-socials .clock {
    border-color: var(--black);
    background: transparent;
    color: var(--black);
}

html.on-accent .mobile-menu .hero-socials .clock {
    border-color: var(--white);
    color: var(--white);
}

/* Only the widget's own children (button and popup) are moved: the popup's inner parts also carry that id prefix and must stay where the widget puts them. */
[id^="kofi-widget-overlay"]:not([id*="popup"]) > * {
    right: auto !important;
    left: var(--pad-edge) !important;
    visibility: hidden !important;
    pointer-events: none;
    /* It leaves the layer once the menu has swept off. */
    transition: visibility 0s linear 0.6s;
}

html.menu-open [id^="kofi-widget-overlay"]:not([id*="popup"]) > * {
    visibility: visible !important;
    pointer-events: auto;
    transition-delay: 0s;
}

/* The menu opens as a wipe from the right. --menu-sweep is the wipe's left edge, on the same timing as the menu,
   so the Ko-fi button is uncovered when the wipe reaches it instead of appearing on its own. */
@property --menu-sweep {
    syntax: '<length>';
    inherits: true;
    initial-value: 100vw;
}

html {
    --menu-sweep: 100vw;
    transition: --menu-sweep 0.6s var(--ease-out);
}

html.menu-open {
    --menu-sweep: 0px;
}

iframe[class*="floatingchat-container"] {
    right: auto !important;
    bottom: max(clamp(14px, 2.6vh, 30px), env(safe-area-inset-bottom)) !important;
    left: 0 !important;
    transform: scale(0.68);
    transform-origin: left bottom;
    clip-path: inset(0 0 0 max(0px, calc((var(--menu-sweep) - var(--pad-edge)) / 0.68)));
}
