@import url("./fonts.css");

:root {
    --body-padding-left: 10vw;
    --body-padding-right: 10vw;
    --body-padding-right-inset: 30vw;
    --nav-main-top: 0;
    --nav-main-left: 0;
    --viewport-diagonal: max(200vh, 200vw);
    --teaser-dot-top: 50vh;
    --teaser-dot-left: 50vw;
}

@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --body-padding-left: 8vw;
        --body-padding-right: 8vw;
        --body-padding-right-inset: 16vw;
    }
}

@media (max-width: 768px) {
    :root {
        --body-padding-left: 40px;
        --body-padding-right: 40px;
        --body-padding-right-inset: 40px;
    }
}

body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #eaeaea;
    background-color: #2d2a27;
    font-family: "Source Serif 4", serif;
    font-optical-sizing: auto;
    font-size: 1.25rem;
    font-weight: 300;
    font-style: normal;
    line-height: 1.6em;
}

.dark {
    color: #eaeaea;
    background-color: #2d2a27;
}

.light {
    color: #2d2a27;
    background-color: #eaeaea;
}

@media (max-width: 768px) {
    body {
        font-size: 1.1rem;
        line-height: 1.6em;
    }
}

body > header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(80px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) var(--body-padding-right) 0 var(--body-padding-left);
    background-color: rgba(45, 42, 39, 0.95);
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 2rem;
    z-index: 9000;
    box-sizing: border-box;
    /*animation: header 10s forwards;*/
    /*animation-play-state: paused;*/
}

body.has-teaser > header {
    animation: header 10s forwards;
    animation-play-state: paused;
}

@media (max-width: 768px) {
    body > header {
        gap: 1.5rem;
    }
}

.dark > header {
    background-color: rgba(45, 42, 39, 0.95);
}

.light > header {
    background-color: rgba(234, 234, 234, 0.95);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100vw - var(--body-padding-right) - var(--body-padding-left));
    height: 120vh;
    padding: 0 var(--body-padding-right) 0 var(--body-padding-left);
    background-color: #FF6600;
    animation: teaser-dot 10s linear forwards;
    animation-play-state: paused;
    clip-path: circle(0 at var(--nav-main-left) var(--nav-main-top));
    z-index: 9999;
}

nav > header {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(80px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) var(--body-padding-right) 0 var(--body-padding-left);
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    box-sizing: border-box;
    pointer-events: none;
}

nav > header a {
    pointer-events: auto;
}

@media (max-width: 768px) {
    nav > header {
        gap: 1.3rem;
    }
}

.feature-nav-visible nav {
    animation: teaser-dot 10s ease-out forwards, nav-visible 0.5s ease-out forwards;
    animation-play-state: paused, running;
}

.feature-nav-hidden nav {
    animation: teaser-dot 10s ease-out forwards, nav-hidden 0.5s ease-out;
    animation-play-state: paused, running;
}

nav ul.main {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5em;
    font-size: 3rem;
    list-style: none;
    letter-spacing: -0.03em;
    padding: 0;
    margin: 0 0 10vh 0;
    display: flex;
    gap: 1rem;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    pointer-events: none;
}

nav ul.main li {
    line-height: 1.2em;
}

nav ul.main li a {
    pointer-events: auto;
}

@media (min-width: 768px) and (max-width: 1024px) {
    nav ul.main {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    nav ul.main {
        font-size: 2rem;
    }
}

nav ul.main .current {
    color: #2d2a27;
}

.light nav ul.main .current {
    color: #eaeaea;
}

nav ul.main a:hover {
    color: #2d2a27;
}

.light nav ul.main a:hover {
    color: #eaeaea;
}

nav ul.service {
    position: fixed;
    right: 0;
    top: 0;
    height: calc(80px);
    padding: env(safe-area-inset-top) var(--body-padding-right) 0 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.9rem;
    line-height: 1.6em;
    list-style: none;
    gap: 2rem;
    z-index: 9999;
    pointer-events: none;
}

nav ul.service li {
    pointer-events: auto;
}

@media (max-width: 768px) {
    nav ul.service {
        gap: 1.5rem;
    }
}

nav ul.service li span {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 100%;
    display: block;
    background-color: #FFF;
    cursor: pointer;
}

.dark nav ul.service li span {
    background-color: #FFF;
}

.light nav ul.service li span {
    background-color: #2d2a27;
}

@media (max-width: 768px) {
    nav ul.service li span {
        width: 1.2rem;
        height: 1.2rem;
    }
}

main > header {
    width: 100vw;
    height: 300vh;
    max-width: none;
    margin: 0;
    padding: 0;
}

#header-logo a,
#header-logo a:hover {
    color: inherit !important;
}

#header-logo {
    height: 30px;
    pointer-events: all;
    cursor: pointer;
    z-index: 9999;
}

#header-logo a {
    height: 30px;
    width: 74px;
}

#header-logo svg {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#nav-logo a,
#nav-logo a:hover {
    color: inherit !important;
}

#nav-logo {
    height: 30px;
    cursor: pointer;
    z-index: 9999;
}

#nav-logo a {
    height: 30px;
    width: 74px;
}

#nav-logo svg {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#nav-phoneme {
    height: 15px;
    width: 71px;
    line-height: 0;
    cursor: pointer;
    z-index: 9999;
    pointer-events: auto;
}

#nav-phoneme svg {
    width: 100%;
    height: 100%;
}

#header-dot {
    color: #FF6600;
    transition: color 0s linear;
    transition-delay: 0.4s;
}

.dark > header {
    background-color: rgba(45, 42, 39, 0.95);
}

.light > header {
    background-color: rgba(234, 234, 234, 0.95);
}

#nav-dot {
    color: #2d2a27;
    transition-delay: 0s;
}

.light #nav-dot {
    color: #eaeaea;
    transition-delay: 0s;
}

main > article {
    padding-top: calc(12rem + 80px + env(safe-area-inset-top));
}

@media (min-width: 768px) and (max-width: 1024px) {
    main > article {
        padding-top: calc(12rem + 80px + env(safe-area-inset-top));
    }
}

@media (max-width: 768px) {
    main > article {
        padding-top: calc(6rem + 80px + env(safe-area-inset-top));
    }
}

section {
    max-width: 1280px;
    margin: 0 var(--body-padding-right-inset) 0 var(--body-padding-left);
}



#teaser-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: all;
    padding-bottom: 3vh;
    animation: teaser-element 10s forwards;
    animation-play-state: paused;
    cursor: pointer;
}

#teaser-logo svg {
    width: min(40vw, 40vh);
    pointer-events: none;
}

@media screen and (min-width: 1025px) {
    #teaser-logo svg {
        width: 20vw;
        pointer-events: none;
    }
}

#teaser-phoneme {
    position: fixed;
    left: 50%;
    top: 75%;
    transform-origin: top left;
    transform: scale(0.4) translate(-50%, -50%);
    cursor: pointer;
    animation: teaser-element 10s forwards;
    animation-play-state: paused;
}

#teaser-phoneme svg {
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    #teaser-phoneme {
        transform: scale(0.3) translate(-50%, -50%);
    }

    svg {
        width: 40vw;
    }
}

@media screen and (min-width: 1025px) {
    #teaser-phoneme {
        transform: scale(0.2) translate(-50%, -50%);
    }

    svg {
        width: 30vw;
    }
}

#teaser-dot {
    color: #FF6600;
}

#teaser-dot-free {
    position: fixed;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    background-color: #FF6600;
    clip-path: circle(calc(var(--viewport-diagonal) / 2 * 0) at var(--teaser-dot-left) var(--teaser-dot-top));
    animation: teaser-dot-free 10s ease-out;
    animation-play-state: paused;
    z-index: 99999;
    cursor: pointer;
}

footer {
    padding: 0 0 calc(var(--body-padding-left) / 8 * 5) 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: calc(12rem + env(safe-area-inset-top)) var(--body-padding-right) 0 var(--body-padding-left);
    font-size: 1rem;
    line-height: 1.6em;
}

@media (max-width: 768px) {
    footer {
        padding-bottom: 40px;
    }
}

footer ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

footer p {
    padding: 0;
    margin: 0;
}

/*footer ul li:first-child {*/
/*    margin-bottom: 3rem;*/
/*}*/

footer ul li:last-child {
    margin-top: 6rem;
}

.top {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 100%;
    display: block;
    background-color: #FF6600;
}

@media (max-width: 768px) {
    .top {
        width: 1.2rem;
        height: 1.2rem;
    }
}

a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: color 0.1s ease-in;
    /* border-bottom: 1px #FF6600 solid; */
}

strong {
    font-weight: 600;
}

h1, h2, h3, h4, h5 {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.1em;
}

h1, h2, h3 {
    letter-spacing: -0.03em;
}

h1 {
    position: relative;
    font-size: 8rem;
    margin-top: 0;
    margin-bottom: 8rem;
    left: -0.1em;
}

h1:after {
    content: " ";
    width: 1.4rem;
    height: 1.4rem;
    vertical-align: bottom;
    margin-left: 0.7rem;
    margin-bottom: 1.55rem;
    border-radius: 100%;
    display: inline-block;
    background-color: #FF6600;
}

h1 + p:not(:last-child) {
    font-size: 1.5rem;
    line-height: 1.5em;
    margin-bottom: 14rem;
}

@media (min-width: 768px) and (max-width: 1024px) {
    h1 {
        font-size: 6rem;
    }

    h1:after {
        width: 1rem;
        height: 1rem;
        margin-left: 0.5rem;
        margin-bottom: 0.9rem;
    }
}

@media (max-width: 768px) {
    h1, h2, h3, h4, h5 {
        line-height: 1.2em;
    }
    
    h1 {
        font-size: 3rem;
        margin-bottom: 6rem;
    }

    h1:after {
        width: 0.6rem;
        height: 0.6rem;
        margin-left: 0.3rem;
        margin-bottom: 0.75rem;
    }

    h1 + p {
        font-size: 1.1rem;
        line-height: 1.6em;
        margin-bottom: 6rem;
    }
}

h2 {
    font-size: 3rem;
    margin-top: 6rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
}

section h2:first-child {
    margin-top: 0;
}

h2 ~ p {
    width: 80%;
    margin: 2rem 0;
}

h2 ~ ul {
    width: calc(80% - 2.25rem);
    margin: 2rem 0;
    padding-left: 2.25rem;
}

h3, h4, h5 {
    font-size: 2rem;
    margin-top: 6rem;
    margin-bottom: 1rem;
 }

h4, h5 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

p {
    margin: 3rem 0;
    hyphens: manual;
}

p a {
    display: inline;
}

@media (max-width: 768px) {
    p {
        hyphens: auto;
    }

    h2 ~ p {
        width: auto;
    }

    h2 ~ ul {
        width: auto;
    }
}

article:not(:first-of-type) {
    padding-top: 12rem;
}

@media (max-width: 768px) {
    article:not(:first-of-type) {
        padding-top: 8rem;
    }
}

article:not(:first-of-type) h1 ~ p {
    width: 80%;
}

@media (min-width: 768px) and (max-width: 1024px) {
    article:not(:first-of-type)  h1 ~ p {
        width: 80%;
    }
}

@media (max-width: 768px) {
    article:not(:first-of-type)  h1 ~ p {
        width: auto;
    }
}

@media (max-width: 768px) {
    article:not(:first-of-type) h1 {
        margin-bottom: 3rem;
    }
}

@media (min-width: 768px) {
    article:not(:first-of-type) h1 {
        font-size: 5rem;
        margin-top: 0;
        margin-bottom: 3rem;
    }
    article:not(:first-of-type) h1:after {
        width: 1.2rem;
        height: 1.2rem;
        margin-left: 0.7rem;
        margin-bottom: 1rem;
    }
}

.icon {
    display: inline-block;
    margin-right: 0.2em;
}

.icon svg {
    width: 1.2rem;
    height: 1.2rem;
    vertical-align: middle;
    fill: currentColor;
    transition: fill 0.1s ease-in;
}

.contact p {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8em;
}

.contact a {
    display: inline-block;
}

.address-name {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.2em;
}

.nl-large {
    display: none;
}

@media (min-width: 1024px) {
    .nl-large {
        display: inline;
    }
}

@keyframes teaser-dot {
    0% {
        clip-path: circle(calc(var(--viewport-diagonal) / 2 * 0) at var(--teaser-dot-left) var(--teaser-dot-top));
    }
    50% {
        clip-path: circle(calc(var(--viewport-diagonal) / 2 * 2) at var(--teaser-dot-left) var(--teaser-dot-top));
    }
    100% {
        clip-path: circle(calc(var(--viewport-diagonal) / 2 * 0) at var(--nav-main-left) var(--nav-main-top));
    }
}

@keyframes nav-visible {
    0% {
        clip-path: circle(0 at var(--nav-main-left) var(--nav-main-top));
    }
    100% {
        clip-path: circle(var(--viewport-diagonal) at var(--nav-main-left) var(--nav-main-top));
    }
}

@keyframes nav-hidden {
    0% {
        clip-path: circle(var(--viewport-diagonal) at var(--nav-main-left) var(--nav-main-top));
    }
    100% {
        clip-path: circle(0 at var(--nav-main-left) var(--nav-main-top));
    }
}

@keyframes teaser-element {
    0% {
        visibility: visible;
        pointer-events: all;
    }
    50% {
        visibility: hidden;
        pointer-events: none;
    }
    100% {
        visibility: hidden;
        pointer-events: none;
    }
}

@keyframes header {
    0% {
        visibility: hidden;
        pointer-events: none;
    }
    50% {
        visibility: hidden;
        pointer-events: none;
    }
    100% {
        visibility: visible;
        pointer-events: all;
    }
}