@font-face {
    font-family: 'Apple SD Gothic Neo';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Regular.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Apple SD Gothic Neo';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Medium.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Medium.ttf') format('truetype');
}
@font-face {
    font-family: 'Apple SD Gothic Neo';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-SemiBold.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-SemiBold.ttf') format('truetype');
}
@font-face {
    font-family: 'Apple SD Gothic Neo';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Bold.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Bold.ttf') format('truetype');
}

:root {
    font-family: Inter, "Apple SD Gothic Neo", sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
    --parallax-ratio: 0;
    --bg-offset: 0px;

    --bg: #fffdf9;
    --txt: #332406;
    --semi: #3a86ff;

    --gray01: rgba(51, 36, 6, 0.01);
    --gray03: rgba(51, 36, 6, 0.03);
    --gray05: rgba(51, 36, 6, 0.05);
    --gray075: rgba(51, 36, 6, 0.075);
    --gray10: rgba(51, 36, 6, 0.1);
	--gray15: rgba(51, 36, 6, 0.15);
	/* Borders, lines */
    --gray20: rgba(51, 36, 6, 0.2);
	--gray25: rgba(51, 36, 6, 0.25);
	/* Dots, borders */
    --gray30: rgba(51, 36, 6, 0.3);
	/* Scrollbar */
    --gray: rgba(51, 36, 6, 0.5);
    --gray60: rgba(51, 36, 6, 0.6);
    --gray70: rgba(51, 36, 6, 0.7);

    --grayb: rgba(0, 0, 0, 0.5);
    --gray60b: rgba(0, 0, 0, 0.6);
    --gray70b: rgba(0, 0, 0, 0.7);

    --white: rgba(255, 253, 249, 0.5);
    --white60: rgba(255, 253, 249, 0.6);
    --white70: rgba(255, 253, 249, 0.7);

    --tp: rgba(255, 255, 255, 0);

    --header-h: 6rem
}

@supports (font-variation-settings: normal) {
  :root { font-family: InterVariable, "Apple SD Gothic Neo", sans-serif; }
}

* {
    outline: none;
    word-break: keep-all;
    text-rendering: optimizeLegibility;
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    scroll-behavior: smooth;
    background-color: var(--bg);
    scrollbar-width: none;
    letter-spacing: -.025rem;
}

.load {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: var(--gray20);
    opacity: 1;
    visibility: visible;
    transition: all .3s ease;
}

.load.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
  width: 60px;
  aspect-ratio: 1;
  --g: conic-gradient(from -90deg at 10px 10px, var(--bg) 90deg,#0000 0);
  background: 
    var(--g),
    var(--g) 10px 10px,
    var(--g) 20px 20px;
  background-size: 50% 50%;
  border-radius: .6rem;
  animation: l15 1s infinite;
}

@keyframes l15 {
    90%,100%  {background-position: -30px 30px,-20px 40px,-10px 50px} 
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2;
}

header * {
    user-select: none;
}

.header-wrap {
    padding: 2rem;
}

.header-contents {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: .3rem;
    gap: .5rem;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: all .2s ease;
}

.logo {
    height: 1.5rem;
    width: auto;
}

.cls-1, .cls-2 {
    fill: var(--bg);
    transition: all .5s ease;
}

.sections {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.sections-button-circle {
    cursor: pointer;
    width: .6rem;
    height: .6rem;
    border: solid .2rem var(--white60);
    background: var(--white60);
    flex-shrink: 0;
    border-radius: 50%;
    transition: all .5s ease;
}

.sections-button.active > .sections-button-circle {
    border: solid .2rem var(--bg);
    background: var(--white70);
    width: .55rem;
    height: .55rem;
    border-radius: .3rem;
    transform: rotate(45deg);
}

.sections-button {
    font-size: 1rem;
    cursor: pointer;
    color: var(--white70);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.sections-button.active {
    color: var(--bg);
}

.sections-button-text {
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    width: 0;
    margin: 0;
    white-space: nowrap;
    transition: all .5s ease;
}

.sbt {
    white-space: nowrap;
}

.sections-button.active > #main-section-button,
.sections-button.semi-active >  #main-section-button {
    width: var(--btn-0-width);
}

.sections-button.active > #about-section-button,
.sections-button.semi-active > #about-section-button {
    width: var(--btn-1-width);
}

.sections-button.active > #projects-section-button,
.sections-button.semi-active > #projects-section-button {
    width: var(--btn-2-width);
}

.sections-button.active > .sections-button-text,
.sections-button.semi-active > .sections-button-text {
    opacity: 1;
    visibility: visible;
    width: 2rem;
    margin-left: .5rem;
}

.sections-button.semi-active > .sections-button-text {
    opacity: 1;
    visibility: visible;
    width: 100%;
    margin-left: .5rem;
}

.sections-button.semi-active > .sections-button-circle {
    border-radius: .3rem;
}

.width-calc {
    opacity: 0;
    visibility: hidden;
    display: flex;
    position: absolute;
}

.lang-alert {
    position: absolute;
    top: 0;
    opacity: 0;
    visibility: hidden;
    color: var(--bg);
    cursor: pointer;
    transition: all .5s ease;
}

.lang-alert.active {
    top: 100%;
    opacity: 1;
    visibility: visible;
}

header.invert .cls-1,
header.invert .cls-2 {
    fill: var(--txt);
}

header.invert .sections-button-circle {
    border: solid .2rem var(--gray);
    background: var(--gray);
}

header.invert .sections-button.active > .sections-button-circle {
    border: solid .2rem var(--txt);
    background: var(--gray60);
}

header.invert .sections-button {
    color: var(--gray60);
}

header.invert .sections-button.active {
    color: var(--txt);
}

header.invert .lang-alert {
    color: var(--txt);
}

#bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    transform: translateY(var(--bg-offset));
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.6s ease-out;
}

main {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

section {
    height: 100%;
    display: flex;
    align-items: normal;
    justify-content: center;
    color: var(--txt);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
    flex-direction: column;
}

.posters {
    padding: 1rem;
    height: 100%;
    overflow: visible hidden !important;
    inset: 0;
}

.posters.projects {
    display: flex;
    justify-content: flex-end;
}

.poster {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .6rem;
}

.prj {
    padding: 0;
    overflow-y: scroll;
    scrollbar-width: none;
    justify-content: flex-start;
}

.animated {
    opacity: 0;
}

.inner {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    text-align: center;
    user-select: none;
    pointer-events: none;
}

.inner.title {
    position: absolute;
    font-size: 5rem;
    text-align: left;
    font-weight: 600;
    letter-spacing: -.025rem;
    padding: 3rem;
    color: var(--white60);
}

.sub {
    font-weight: 600;
    position: relative;
    color: var(--bg);
}

.about-wrap, .projects-wrap {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 15%;
    user-select: none;
}

.about-header, .projects-header {
    cursor: default;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--gray);
    padding-bottom: 2rem;
    border-bottom: solid .075rem var(--gray10);
}

.projects-header {
    color: var(--txt);
}

.about-header-button {
    cursor: pointer;
    transition: all .2s ease;
}

.about-header-button:hover {
    color: var(--gray70);
}

.about-header-button.active {
    cursor: default;
    color: var(--txt);
}

.about-article {
    overflow: hidden;
    position: relative;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    user-select: none;
}

.about-content-wrap {
    opacity: 0;
}

.about-content-wrap.philosophy {
    display: flex;
    opacity: 1;
}

.serif {
    font-style: italic;
}

.about-content-wrap.credits > .about-content {
    display: block;
}

a {
    all: unset;
    cursor: pointer;
    color: var(--txt);
}

a:hover {
    text-decoration: underline;
}

a.nourl {
    cursor: default;
}

a.nourl:hover {
    text-decoration: none;
}

.credits {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--gray);
}

.about-footer {
    border-top: solid .075rem var(--gray10);
}

.inner.about {
    text-align: left;
    font-weight: 600;
    min-width: 30%;
}

.inner.sub {
    color: var(--gray70);
    font-weight: 400;
    opacity: 1;
    font-size: 1.4rem;
    line-height: 2rem;
    text-align: left;
}

.inner.footer {
    opacity: 1;
    padding: 3rem;
    position: absolute;
    bottom: 0;
    color: var(--bg);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: breathing 5s ease-in-out infinite;
}

.projects {
    display: flex;
    justify-content: center;
    gap: 1.65rem;
    flex-flow: wrap;
    margin: 0 -.3rem;
}

.projects * {
    user-select: none;
}

.projects-wrap {
    padding: calc(40vh - var(--header-h)) 3rem 3rem;
    height: 100%;
    overflow: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
}

.project {
    width: 15rem;
    height: 20rem;
    display: flex;
    border-radius: .6rem;
    position: relative;
    border: solid .075rem var(--gray10);
    overflow: visible;
    transition: all .2s ease;
    cursor: pointer;
}

.project:hover {
    border: solid .075rem var(--gray20);
}

.project.placeholder {
    cursor: default;
}

.project.placeholder:hover {
    border: solid .075rem var(--gray10);
    transform: none;
}

.projects-header {
    border: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

.project-posters {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: .6rem;
    filter: blur(1rem) grayscale(1);
    opacity: .5;
    transition: all .2s ease;
}

.project:hover .project-posters {
    filter: blur(1.5rem) grayscale(0);
    opacity: 1;
}

.project-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .6rem;
}

.project-info-wrap {
    position: absolute;
    height: 100%;
    width: 100%;
}

.project-info {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-number, .project-titles {
    padding: 1rem;
    gap: .25rem;
    display: flex;
    flex-direction: column;
}

.project-number, .project-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--gray60b);
}

.project-number {
    font-size: 1rem;
}

.project-desc {
    font-size: .95rem;
    color: var(--grayb);
}

@keyframes breathing {
    0%, 100% {
      transform: translateY(3px);
    }
    50% {
      transform: translateY(-4px);
    }
}

.overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
}

@media screen and (max-width: 950px) {
    .logo {
        height: 1.35rem;
    }

    .sections-button-circle {
        width: .5rem;
        height: .5rem;
    }

    .sections-button.active > .sections-button-circle {
        width: .45rem;
        height: .45rem;
    }

    .sections-button {
        font-size: .95rem;
    }

    .inner.title {
        font-size: calc(100vw / 12);
    }

    .about-wrap {
        padding: 0 10%;
    }

    .about-content {
        gap: 2rem;
        align-items: flex-start;
    }
}

@media screen and (max-width: 768px) {
    .header-wrap {
        padding: 1rem;
    }

    .logo {
        height: 1.3rem;
    }

    .sections {
        gap: 1.5rem;
    }

    .posters {
        padding: .5rem;
        flex-direction: column;
    }

    .inner.title {
        padding: 2rem;
    }

    .about-wrap {
        gap: 1.5rem;
    }

    .about-header {
        padding-bottom: 1.5rem;
    }

    .about-content {
        gap: 1rem;
        flex-direction: column;
    }

    .credits {
        font-size: 1.5rem;
    }

    .about-header-button {
        font-size: .9rem;
    }

    .inner.about {
        text-align: left;
        font-weight: 600;
        font-size: 1.5rem;
    }

    .inner.sub {
        font-size: 1.15rem;
        line-height: 1.55rem;
    }

    .inner.footer {
        padding: 2rem;
        font-size: .9rem;
    }

    .project {
        height: 15rem;
    }

    .projects-wrap {
        padding: calc(40vh - var(--header-h)) 2rem 2rem;
    }

    .project {
        width: 100%;
    }
}