* {
  margin: 0;
  padding: 0;
}

:root {
  --padding: 1.5rem;
  --color-black: #000;
  --color-black70p: #000000B3;
  --color-black50p: #00000080;
  --color-darkgrey: #333333;
  --color-darkwhite: #EEEEEE;
  --color-white: #fff;
  --color-grey: #777;
  --color-highlight: #E2FF62;
  --color-links: #E2FF62;
  --color-light: #F8F8F8;

  --color-menu-current-background: #0000001A;
  --color-menu-background: #FFFFFF88;
  --style-menu-border-radius: 5px;

  --color-text: var(--color-darkgrey);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-light);

  --font-family-sans: 'Jost', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  --font-size-menu: 0.8rem; /* 12 */
  --font-size-small: 0.93rem; /* 14 */
  --font-size-base: 1.07rem; /* 16 */
  --font-size-big: 1.33rem; /* 20 */
  --font-size-bigger: 1.6rem; /* 24 */
  --font-size-verybig: 2.13rem; /* 32 */
  --font-size-veryverybig: 2.4rem; /* 36 */
  --font-size-huge: 3.2rem; /* 48 */

  --font-weight-thin: 200;
  --font-weight-normal: 400;
  --font-weight-bitbold: 500;
  --font-weight-bold: 700;
  --font-weight-bolder: 800;

  --grid-gap: 32px;

  --grid-content-full: col2 / col12;
  --grid-content-full-thin: col3 / col11;

  --grid-content-thin-left: col3 / col7;
  --grid-content-left-larger: col2 / col9;
  --grid-content-left: col2 / col7;
  --grid-content-left-thin: col2 / col6;
  --grid-content-left-thiner: col2 / col5;

  --grid-content-thin-right: col7 / col11;
  --grid-content-right-larger: col5 / col12;
  --grid-content-right: col7 / col12;
  --grid-content-right-thin: col8 / col12;
  --grid-content-right-thiner: col9 / col12;

  --border-fullscreen-width: 20px;
  --border-fullscreen: var(--border-fullscreen-width) white solid;
  --border-nav-item: 3px solid black;

  --padding-top-content: 140px;

  --animation-speed-stagger-text-intro: 50ms;
}

@media (min-width: 1001px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 1000px) {
  :root {
    --grid-content-full: col1 / col13;
    --grid-content-full-thin: col1 / col13;

    --grid-content-thin-left: col1 / col13;
    --grid-content-left-larger: col1 / col13;
    --grid-content-left: col1 / col13;
    --grid-content-left-thin: col1 / col13;
    --grid-content-left-thiner: col1 / col13;

    --grid-content-thin-right: col1 / col13;
    --grid-content-right-larger: col1 / col13;
    --grid-content-right: col1 / col13;
    --grid-content-right-thin: col1 / col13;
    --grid-content-right-thiner: col1 / col13;

    --font-size-menu: 0.53rem; /* 12 */
    --font-size-small: 0.46rem; /* 14 */
    --font-size-base: 0.76rem; /* 16 */
    --font-size-big: 1.0rem; /* 20 */
    --font-size-bigger: 0.8rem; /* 24 */
    --font-size-verybig: 1.06rem; /* 32 */
    --font-size-veryverybig: 1.2rem; /* 36 */
    --font-size-huge: 1.6rem; /* 48 */

    --border-fullscreen-width: 0px;

    --padding-top-content: 120px;
  }

  .desktop-only {
    display: none !important;
  }

  body > header > div {
    margin-top: 20px !important;
    
    justify-content: center !important;
  }

  .logo {
    flex-grow: unset !important;
  }

  section.splash-screen > a.logo {
    margin-top: 12px !important;
    margin-left: 41% !important;
    grid-column: unset !important;
  }

  footer nav.menu ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav.projects > ol > li > a > .left-col {
    padding-left: 15px !important;
    margin-bottom: 15px !important;
    margin-left: 15px !important;
    margin-right: 15px !important;
    width: auto !important;
  }
  nav.projects > ol > li > a > .right-col {
    min-width: unset !important;
    width: calc(100% - 5px) !important;
    overflow-x: clip !important;
    gap: 4px !important
  }
  nav.projects > ol > li > a > .right-col > img { height: 100px !important; }
  nav.projects > ol > li > a {
    display: block !important; 
    min-width: unset !important;
  }
  nav.projects > ol > li { width: 100% !important; }
  nav.projects > ol > li > a > .right-col {
    overflow-x: auto !important;
  }
  nav.projects > ol > li > a {
    background-image: none !important;
  }

  section.project-header > header.right-col img {
    width: 100%;
    max-height: 100%;
    min-height: 0;
    height: auto;
    object-fit: cover;
    align-self: center;

    margin-top: 15px;
    margin-bottom: 15px;

    flex: 1;
  }

  section.project-gallery > div {
    grid-template-columns: 1fr !important;
  }

  ul.journal-entries > li:nth-child(2n+1) {
    margin-top: unset !important;
  }

  ul.journal-entries li {
    margin-bottom: 20px !important;
  }

  ul.journal-entries a.thin {
    width: 100% !important;
  }

  article.journal-entry > div {
    height: 180px !important;
    top: 200px !important;
  }

  article.journal-entry > header {
    height: unset !important;
  }

  article.journal-entry {
    padding-top: 180px !important;
  }

  section.contact div.attention-grabber {
    margin-left: -30px !important;
    margin-bottom: 0px !important;
  }

  .attention-grabber {
    margin-bottom: 20px !important;
  }

  section.pillars > img {
    object-fit: cover !important;
    height: 200px !important;
  }

  article.pillar header {
    padding-top: 0 !important;
    height: unset !important;
    grid-row: 1;
  }

  article.pillar header .intro{
    margin-top: 50px !important;
    font-size: var(--font-size-big) !important;
  }

  article.pillar .outro {
    grid-row: 7;
  }

  #whoweare-illustrations {
    padding: var(--padding);
  }

  #whoweare-illustrations div {
    position: absolute !important;
    height: calc(100% - var(--padding)) !important; /** shouldn't be needed */
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    justify-content: space-between;
  }

  #whoweare-illustrations img {
    height: calc(50% - var(--padding) / 2) !important;
    --move-y: 0 !important;
    margin: 0 !important;
  }

  #whoweare-illustrations nav svg > * {
    stroke: var(--color-white);
  }

  #whoweare-team li:nth-child(even) > img {
    grid-row: 2 !important;
  }

  section.home .excerpt {
    grid-row: 3 !important;
  }

  section.home .cover {
    height: 20vh;
    object-fit: cover;
    object-position: center;
  }

  .socialmedia.full-screen-overlay > * {
    grid-column: col2 / col12 !important;
  }

  body > main, body > footer, body > header, section.splash-screen, .splash-screen-grid {
    column-gap: 0px !important;
  }
}

html {
  font-family: var(--font-family-sans);
  font-weight: var(--font-weight-normal);
  color: var(--color-text);
  background: var(--color-background);

  border: var(--border-fullscreen);
  box-sizing: border-box;
  min-height: 100vh;
  scroll-behavior: smooth;
}

@font-face {
  font-family: 'Jost';
  src: url('/assets/fonts/Jost-200.ttf') format('truetype');
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('/assets/fonts/Jost-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('/assets/fonts/Jost-500.ttf') format('truetype');
  font-weight: 500;
  font-display: block;
}

@font-face {
  font-family: 'Jost';
  src: url('/assets/fonts/Jost-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}


body > main, body > footer, body > header, section.splash-screen, .splash-screen-grid {
  width: 100%;
  font-size: var(--font-size-base);

  overflow-x: hidden !important;

  display: grid;
  grid-gap: var(--grid-gap);
  grid-template-columns: 
      [col1] 1fr
      [col2] 1fr
      [col3] 1fr
      [col4] 1fr
      [col5] 1fr
      [col6] 1fr
      [col7] 1fr
      [col8] 1fr
      [col9] 1fr
      [col10] 1fr
      [col11] 1fr
      [col12] 1fr
      [col13];

  margin: 0 auto;
  overflow: auto;

  padding-left: 5vw;
  padding-right: 5vw;
}

section.splash-screen, .splash-screen-grid {
  grid-template-rows: minmax(0, 1fr) 100px;
}

.full-screen-overlay {
  display: none;
  background-color: transparent;
  backdrop-filter: blur(60px);
  width: 100vw;
  height: 100vh;
  opacity: 0;
  z-index: -1;

  grid-template-rows: auto 30px 1fr auto;

  transition: opacity 0.4s ease, display 0.4s allow-discrete;
}

.full-screen-overlay:popover-open {
  display: grid;
  opacity: 1;
}

main {
  grid-column: var(--grid-content-full);
  display: grid;
  grid-template-columns: subgrid;
  padding-top: var(--padding-top-content);
  overflow-y: hidden !important;
}

main section {
  grid-column: var(--grid-content-full);
  display: grid;
  grid-template-columns: subgrid;

  overflow: visible;
}

img {
  width: 100%;
}

li {
  list-style: none;
}

p {
  margin-top: 20px;
  margin-bottom: 20px;
}

a, .link-style {
  color: currentColor;
  text-decoration: underline;
  text-decoration-color: var(--color-links);
  text-decoration-thickness: 3px; 

  position: relative;
  background-image: linear-gradient(var(--color-links), var(--color-links));
  background-size: 100% 0px;  /* Thin underline */
  background-position: 0 100%;  /* Bottom */
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
}

a:hover, .link-style:hover {
  transition: background-size 0.3s ease;
  background-size: 100% 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.left-col {
  grid-column: var(--grid-content-left);
  grid-template-columns: subgrid;
}

.right-col {
  grid-column: var(--grid-content-right);
  grid-template-columns: subgrid;  
}

.attention-grabber {
  font-size: var(--font-size-huge);
  font-weight: var(--font-weight-bitbold);
  margin: 40px 0 80px 0;
}

.deep-link {
  margin: 10px 0 10px 0;
  padding: 10px 25px 10px 25px;
  line-height: 1.1;
  text-decoration: none;
  display: block;

  background-image: url("/assets/icons/cross.svg");
  background-position: calc(100% - 25px) 10px;
  background-repeat: no-repeat;
  transition: unset;
  background-size: unset;
  text-transform: uppercase;
}

.deep-link > p:first-child {
  font-weight: var(--font-weight-bitbold);
}

.deep-link:hover {
  background-color: var(--color-highlight);
  transition: unset;
  background-position: calc(100% - 25px) 10px;
  background-size: unset;
}

.deep-link > p {
  border-left: var(--border-nav-item);
  padding-left: 30px;
  padding-right: 60px;
  margin-top: 0;
  margin-bottom: 0;
}

figure.figure-caption {
  margin-top: 20px;
  margin-bottom: 20px;
}

figure.figure-caption > figcaption {
  border-left: 1px solid var(--color-black);
  padding-left: 10px;
  font-size: var(--font-size-menu);
  margin-top: 10px;
  padding-top: 0px;
}

/************ SVG EFFECTS ************/
.white-stroke path,
.white-stroke circle,
.white-stroke polygon {  /* Common SVG shapes */
  stroke: var(--color-white);
}

.white-stroke:hover path,
.white-stroke:hover circle,
.white-stroke:hover polygon {  /* Common SVG shapes */
  stroke: var(--color-darkwhite);
}

.black-stroke path,
.black-stroke circle,
.black-stroke polygon {  /* Common SVG shapes */
  stroke: var(--color-black);
}

.black-stroke:hover path,
.black-stroke:hover circle,
.black-stroke:hover polygon {  /* Common SVG shapes */
  stroke: var(--color-darkgrey);
}


.white path,
.white circle,
.white polygon {  /* Common SVG shapes */
  fill: var(--color-white);
  color: var(--color-white);
}

.white:hover path,
.white:hover circle,
.white:hover polygon {  /* Common SVG shapes */
  fill: var(--color-darkwhite);
}

.black path,
.black circle,
.black polygon {  /* Common SVG shapes */
  fill: var(--color-black);
}

.black:hover path,
.black:hover circle,
.black:hover polygon {  /* Common SVG shapes */
  fill: var(--color-darkgrey);
}

/************ HIDE MORE ITEMS ************/

#more-items:checked ~ * > li.hidden {
  opacity: 1;
  visibility: visible;
  height: auto;
  margin-bottom: 50px;
}

#more-items:checked ~ label {
  display: none;
}

#more-items ~ label {
  cursor: pointer;
  display: flex;
  justify-self: center;
  grid-column: var(--grid-content-full);
}

.hidden {
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}

/************ COOL EFFECTS ************/
.appearing {
  opacity: 0;
  transform: translateY(16px);
  transform-origin: top;
  transition: opacity 0.5s ease-out, transform 0.6s ease-out;
}

.appearing.onscreen {
  opacity: 1;
  transform: translateY(0) scale(1);
}


.stagger-text, .stagger-text-sentence, .stagger-text-word {
  display: inline;
  line-height: 1;
  vertical-align: middle;
  font-size: 0;
}

.stagger-text {
  overflow: hidden;  /* Clip during growth */
  display: contents;
}

.stagger-text .stagger-text-sentence {
  animation:
    shrinkWidth 0s ease forwards;
  animation-delay:
    calc(var(--hide) * var(--animation-speed-stagger-text-intro));
}

.stagger-text .stagger-text-sentence:last-of-type {
  animation: none;
}

.stagger-text .stagger-text-word {
  display: inline-block;
}

.stagger-text .stagger-text-letter {
  padding-bottom: 0.2cap;
  display: inline-block;
  width: 0;
  overflow: hidden;
  animation: growWidth 0.3s ease forwards,
              shrinkWidth 0s ease forwards;
  animation-delay: calc(var(--show) * var(--animation-speed-stagger-text-intro)),
    calc(var(--hide) * var(--animation-speed-stagger-text-intro));
}

.stagger-text .stagger-text-sentence:last-of-type .stagger-text-letter {
  animation: growWidth 0.3s ease forwards;
  animation-delay: calc(var(--show) * var(--animation-speed-stagger-text-intro));
}

@keyframes growWidth {
  0%,100% {
    width: fit-content; font-size: var(--font-size-huge); /* Full letter width */
  }
}

@keyframes shrinkWidth {
  to { width: 0; display: none; font-size: 0; height: 0; margin: 0; }
}

.japQuoted-text::before {
  content: '「';
  margin-right: 0.2rem;
  opacity: 0;
}

/*.japQuoted-text::before, */.japQuoted-text.onscreen::before{
  animation: appear 1.5s forwards;
}

.japQuoted-text > span {
  font-size: var(--font-size-huge);
  font-weight: var(--font-weight-bitbold);
  text-transform: uppercase;
  opacity: 0;
  line-height: 1;
}
/*.japQuoted-text > span, */.japQuoted-text.onscreen > span {
  animation: appear 1.5s 0.6s forwards;
}

.japQuoted-text > span::after {
  content: '」';
  margin-left: 0.2rem;
  opacity: 0;
}
/*.japQuoted-text > span::after, */.japQuoted-text.onscreen > span::after {
  animation: appear 1.5s 1.2s forwards;
}

.japQuoted-text,
.japQuoted-text::before,
.japQuoted-text > span::after {
  display: inline-flex;
  align-items: baseline;
}

@keyframes appear {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.typing-text {
  vertical-align: text-bottom;
}

.typing-text::after {
  content: '|';
  display: inline-block;
  width: 2px;
  height: 1.2em;
  animation: blink 0.75s infinite;
  margin-left: 2px;
  vertical-align: top;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
/************ COOL EFFECTS ************/

/************ SPLASH SCREEN ************/

section.splash-screen {
  background-color: var(--color-black70p);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--color-darkwhite);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  border: var(--border-fullscreen);

  padding-top: var(--padding-top-content);

  z-index: 1;

  display: grid;
  grid-template-rows: minmax(0, 1fr) 100px;
}

section.splash-screen > a.logo {
  grid-row: 1;
  position: absolute;
  top: 20px;
}

.splash-screen-grid > div {
  grid-row: 1;
}

section.splash-screen nav {
  grid-row: 2;
  grid-column: var(--grid-content-full);
  padding-bottom: 40px;

  display: flex;
  justify-content: center;
  justify-self: center;
  align-self: self-end;
}

section.splash-screen nav a, ection.splash-screen nav a:hover {
  background-image: unset !important;
  transition: unset !important;
  text-decoration-color: unset !important;
}

/************ SPLASH SCREEN ************/

/************ HOME ************/
section.home-slide1 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0px;
  padding: 0;
  overflow: hidden;

  animation: bgSlides 50s infinite;

  background-image: var(--bg1);
  background-size: cover;
  background-blend-mode: multiply;
}
/*section.home-slide1::after {
  animation: bgSlides2 50s infinite;

  background-image: var(--bg1), var(--bg2), var(--bg3), var(--bg4), var(--bg5);
  background-size: cover;
}*/

section.home-slide1::before {
  background-color: #000;
  opacity: 1;
  animation: fadeOut 10s forwards;
  content: '';
  z-index: -1;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

@keyframes fadeOut {
  0%, 20% { opacity: 1; }
  30%, 100% { opacity: 0; }
}

@keyframes bgSlides {
  0%, 18% { background-color: transparent; background-image: var(--bg1); background-size: cover;}
  20% { background-color: black; background-image: var(--bg1); background-size: cover;}

  20.0001% { background-color: black; background-image: var(--bg2); background-size: cover;}
  22%, 38% { background-color: transparent; background-image: var(--bg2); background-size: cover;}
  40% { background-color: black; background-image: var(--bg2); background-size: cover;}

  40.0001% { background-color: black; background-image: var(--bg3); background-size: cover;}
  42%, 58% { background-color: transparent; background-image: var(--bg3); background-size: cover;}
  60% { background-color: black; background-image: var(--bg3); background-size: cover;}

  60.0001% { background-color: black; background-image: var(--bg4); background-size: cover;}
  62%, 78% { background-color: transparent; background-image: var(--bg4); background-size: cover;}
  80% { background-color: black; background-image: var(--bg4); background-size: cover;}

  80.0001% { background-color: black; background-image: var(--bg5); background-size: cover;}
  8%, 98% { background-color: transparent; background-image: var(--bg5); background-size: cover;}
  100% { background-color: black; background-image: var(--bg5); background-size: cover;}
}

/*@keyframes bgSlides2 {
  0%,20% { background-image: var(--bg2); background-size: cover;}
  21%, 40% { background-image: var(--bg3); background-size: cover;}
  41%, 60% { background-image: var(--bg4); background-size: cover;}
  61%, 80% { background-image: var(--bg5); background-size: cover;}
  81%, 100% { background-image: var(--bg1); background-size: cover;}
}*/

section.home-slide1 > div {
  height: calc(50% - 1px);
  width: 100%;

  display: grid;

  align-items: center;
  text-align: center;

  text-transform: uppercase;
  letter-spacing: 0;

  background-color: var(--color-white);
  color: var(--color-black);

  font-size: var(--font-size-huge);
  font-weight: var(--font-weight-bitbold);

  animation:
    shrinkDelay 10s forwards,
    borderFade 10s forwards;

  border-width: 0px;
  border-style: solid;
}

.home-white-top {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-end !important;
}

@keyframes shrinkDelay {
  0%, 25% {
    height: calc(50% - 1px);
  }
  55%,100% {
    height: 0;
  }
}

section.home-slide1 > *:last-child {
  margin-top: auto;
}

section.home-slide1 > div > h1 {
  letter-spacing: 0.8rem;
  animation: textFade 10s forwards;
  margin-bottom: 20px;
  align-self: self-end;

  grid-column: var(--grid-content-full);
}

@keyframes textFade {
  0% { opacity: 1; }
  5% { opacity: 1; }
  20%, 100% { opacity: 0; }
}

section.home-slide1 > .home-white-content {
  padding-top: 100px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  display: grid;
  text-align: start;

  background-color: var(--color-white);
  color: var(--color-black);

  font-size: var(--font-size-huge);

  opacity: 0;
  animation: fadeInDelay 10s forwards;
}

@keyframes fadeInDelay {
  0%, 33% { opacity: 0; }
  100% { opacity: .9; }
}

section.home-slide1 > .home-white-content > * {
  grid-column: var(--grid-content-full);
}

section.home-slide1 > .home-white-content > div > * > span:nth-child(1) {
  font-weight: var(--font-weight-thin);
  text-transform: uppercase;
}

section.home-slide1 > .home-white-content > div > h1 {
  text-transform: none;
}

section.home-slide1 > .home-white-content > div > h1 > span:last-of-type {
  opacity: 0;
  animation: fadeIn 1s 5.5s forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

section.home-slide1 > .home-white-content .typing-text {
  opacity: 0;
  animation: fadeIn 1s 6.5s forwards;
}

section.home {
  grid-column: var(--grid-content-full);
  display: grid;
  grid-template-columns: subgrid;
  margin-top: 10vh;
}

section#home-details {
  margin-top: calc(100vh);
  padding-top: 100px;
}

section.home .cover, section.home .excerpt {
  grid-row: 2;
  place-self: center left;
  line-height: 1.2;
}

section.home:nth-of-type(odd) .cover {
  grid-column: var(--grid-content-left-thiner);
}

section.home:nth-of-type(odd) .excerpt {
  grid-column: var(--grid-content-right-larger);
}

section.home:nth-of-type(even) .cover {
  grid-column: var(--grid-content-right-thiner);
}

section.home:nth-of-type(even) .excerpt {
  grid-column: var(--grid-content-left-larger);
}

section.home .excerpt div {
  text-transform: uppercase;
  font-size: var(--font-size-bigger);
  padding-left: 25px;
  margin-bottom: 40px;
}

section.home .excerpt .deep-link {
  font-size: var(--font-size-big);
  display: inline-block;
  background-position-y: center;
}

/************ HOME ************/

/************** HEADER **************/
body > header {
  position: fixed;
  z-index: 100;
  width: calc(100vw - 2 * var(--border-fullscreen-width));
}

body > header > div {
  grid-column: var(--grid-content-full);

  display: flex;
  flex-direction: row;
  justify-content: space-between;

  margin-top: 20px;
  margin-bottom: 22px;
}

.logo {
  flex-grow: 1;
  z-index: 0;
  background: none;
}

body > header nav.menu {
  font-weight: var(--font-weight-bold);
  height: fit-content;

  z-index: 100;
}

.menu ul {
  font-size: var(--font-size-menu);
  display: flex;
  background-color: var(--color-menu-background);
  border-radius: var(--style-menu-border-radius);
}

header .menu ul {
  backdrop-filter: blur(60px);
}

.menu ul li {
  align-self: center;
}

.menu a, .menu button {
  border-radius: var(--style-menu-border-radius);
  padding: 0.4rem 1.3rem 0.4rem 1.3rem;
  margin: 0.3rem;
  display: block;
  text-decoration: none;
  transition: background-color 0.2s ease-out;
}
.menu a[aria-current], .menu a:hover,
  .menu button[aria-current], .menu button:hover {
  background-size: 0% 0%;
}

.menu a[aria-current], .menu button[aria-current] {
  background-color: var(--color-menu-current-background);
}

.menu a:hover, .menu button:hover {
  background-color: var(--color-links);
}

/*** Mobile menu */
@media (max-width: 1000px) {
  .menu-hamburger {
    display: block;
    background-image: url('/assets/icons/cross.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent !important;
    transition: unset !important;
    height: 40px;
    width: 40px;
    margin: 0 !important;
    padding: 0 !important;

    cursor: pointer;
    position: sticky;
    z-index: 200;
    position: absolute;
    right: 5vw;
    
    background-size: 70%;
  }

  .menu-hamburger:hover {
    background-size: 70% !important;
  }

  .menu-hamburger.white {
    filter: brightness(0) invert(1);
  }

  #menu-toggle:checked ~ .menu-hamburger {
    background-image: url('/assets/icons/cross-full-white.svg');
  }

  #menu-toggle {
    display: none;
  }

  #mobile-menu {
    background-color: var(--color-black70p);
    color: var(--color-white);

    display: none;

    z-index: 200 !important;

    position: fixed !important;
    width: 100vw;
    height: 100vh;
    inset: 0;

    padding-left: 5vw;
    padding-right: 5vw;

    opacity: 0;
    transition: opacity 0.4s ease, display 0.4s allow-discrete;
    backdrop-filter: blur(10px);

    animation: menuExpand 0.5s forwards;
  }


  @keyframes menuExpand {
    0% {
      opacity: 0;
      display: none;
    }
    1% {
      display: flex;
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

  #mobile-menu:popover-open {
    display: block;
    opacity: 1;
  }

  #mobile-menu > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  #mobile-menu button.menu-hamburger {
    position: absolute;
    top: 20px;
  }

  #mobile-menu .logo {
    padding: 0;
    margin: 0;
    margin-top: 20px;

    align-self: center;
  }

  #mobile-menu .logo:hover {
    background-color: transparent;
  }

  #mobile-menu ul {
    font-weight: var(--font-weight-bitbold);
    display: flex;
    flex-direction: column;
    background-color: transparent;
  }

  #mobile-menu nav {
    display: flex;
    align-self: center;
    align-items: center;
  }

  #mobile-menu nav:nth-child(2) {
    flex-grow: 1;
  }

  #mobile-menu nav:last-child ul {
    flex-direction: row;
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-base);
  }

  #mobile-menu a {
    font-size: var(--font-size-big);
  }

  #mobile-menu nav:last-child a {
    font-size: var(--font-size-base);
  }

  #mobile-menu a:hover, #mobile-menu a[aria-current],
    #mobile-menu button:hover, #mobile-menu button[aria-current] {
    background-color: var(--color-grey);
  }

  header nav.menu {
    backdrop-filter: unset !important; /** Sad bug prevent the position: absolute */
  }
}

/************** HEADER **************/

/************** FOOTER **************/
footer {
  margin-top: 40px !important;
}

footer > div {
  grid-column: var(--grid-content-full);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-content: center;
  align-items: center; 
}

footer > div > * {
  background-color: unset !important;
  margin-bottom: 20px;
  margin-left: unset !important;
}

footer > div > nav.menu ul {
  background-color: unset;
}

footer > div > nav.menu:nth-child(2) {
  font-weight: var(--font-weight-bitbold);
}

/************** HEADER **************/

/*************** HOME ****************/

section.home > h1 {
  grid-column: var(--grid-content-full);
  text-align: center;

  text-transform: uppercase;
  color: var(--color-black);

  width: 100%;
  background: white;
  grid-row: 2;

  border-bottom: solid 10px var(--color-black);
}

section.home > h2 {
  grid-column: var(--grid-content-full);
  grid-row: 2;
}

/************** PILLARS **************/
section.pillars {
  grid-column: var(--grid-content-full);
  display: grid;
  grid-template-columns: subgrid;
}

section.pillars > img {
  grid-column: var(--grid-content-left-thin);
  grid-row: 1 / span 2;
  place-self: center;
}

section.pillars > .right-col {
  text-transform: uppercase;
  line-height: 1;
}
/************** PILLARS **************/

/************** PILLAR **************/
article.pillar {
  grid-column: var(--grid-content-full);
  display: grid;
  grid-template-columns: subgrid;
}

article.pillar header {
  grid-column: var(--grid-content-right-thin);
  display: block;

  place-self: center;
  height: auto;

  text-transform: uppercase;
  line-height: 1;
}

article.pillar header h1 {
  font-weight: var(--font-weight-bitbold);
  display: block;
  width: 100%;
}

article.pillar header .intro {
  text-transform: none;
  line-height: normal;
  font-size: var(--font-size-base);

  margin-top: 100px;
}

article.pillar .outro {
  margin-top: 30px;
}

article.pillar .left-col, article.pillar .right-col {
  margin-bottom: 30px;
  height: fit-content;
}

nav.other_pillars, nav.other_pillars > ol {
  grid-column: var(--grid-content-full);
  display: grid;
  grid-template-columns: subgrid;
  margin-top: 30px;

  text-transform: uppercase;
}

/************** PILLAR **************/

/************* PROJECTS *************/
header.title {
  grid-column: var(--grid-content-full);
  line-height: 1;
  display: block;
  margin-bottom: 50px;
  font-size: var(--font-size-base);
}

header.title span {
  color: var(--color-grey);
  text-transform: uppercase;
}

header.title > h1 {
  text-transform: uppercase;
  font-weight: var(--font-weight-bitbold);
}

nav.projects, nav.projects > ol, nav.projects > ol > li, nav.projects > ol > li > a {
  grid-column: var(--grid-content-full);
  display: grid;
}
nav.projects, nav.projects > ol {
  grid-template-columns: subgrid;
}

nav.projects > ol > li {
  margin-bottom: 50px;
  display: block;
  width: 1000%;
}

nav.projects > ol > li.hidden {
  margin-bottom: 0px;
}

nav.projects > ol > li > a {
  text-decoration: none;
  padding: 5px;
  padding-right: 0;
  position: relative;  
  min-width: max-content;
  display: flex; 
}

nav.projects > ol > li > a:hover {
}

nav.projects > ol > li > a > .left-col {
  border-left: var(--border-nav-item);
  padding-left: 20px;
  margin-left: 20px;
  margin-bottom: 20px;
  margin-right: 20px;
  width: 35vw;
}

nav.projects > ol > li > a H2 {
  text-transform: uppercase;
  font-size: var(--font-size-verybig);
  font-weight: var(--font-weight-bitbold);
  line-height: 1;
}

nav.projects > ol > li > a > .right-col {
  position: relative; 
  overflow-x: auto;
}

nav.projects > ol > li > a > .right-col > div {
  min-width: max-content; 
  display: flex;
  flex-wrap: nowrap; 
  gap: 8px;
  animation: scrollBackForth 120s infinite linear;
  animation-play-state: paused; /* Pauses mid-scroll */
}

nav.projects > ol > li > a:hover > .right-col > div {
  animation-play-state: running; /* Plays ONLY on hover */
}

nav.projects > ol > li > a > .right-col > div img {
  flex: 0 0 auto;
  height: 150px;
  width: auto;
}

@keyframes scrollBackForth {
  0%, 100% { transform: translateX(0%); }
  50% { transform: translateX(-50%); }
}

/************* PROJECTS *************/

/************* PROJECT *************/
section.project-header { 
  overflow: clip; 
}

section.project-header.splash-screen::before {
  content: '';
  position: absolute;
  background: inherit;
  background-size: cover;
  filter: 
    blur(8px)
    brightness(0.6)
    saturate(1)
    sepia(0.0)
    grayscale(0.0);
  z-index: -1;
  inset: 0 ;
  transform: scale(1.5);
}

section.project-header > .left-col {
  grid-row: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; 

  --edge: 32px;
  --corner: 48px;

  mask-image:
    /* center */
    linear-gradient(black, black),

    /* edges */
    linear-gradient(to right, transparent, black var(--edge), black calc(100% - var(--edge)), transparent),
    linear-gradient(to bottom, transparent, black var(--edge), black calc(100% - var(--edge)), transparent),

    /* corners */
    radial-gradient(circle at top left, transparent 0, black var(--corner)),
    radial-gradient(circle at top right, transparent 0, black var(--corner)),
    radial-gradient(circle at bottom left, transparent 0, black var(--corner)),
    radial-gradient(circle at bottom right, transparent 0, black var(--corner));

  mask-composite: intersect;
  -webkit-mask-composite: destination-in;
}

section.project-header > header.right-col {
  grid-column: var(--grid-content-right-thin);
  grid-row: 1;

  padding-bottom: 20px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

section.project-header > header > div.title {
  text-transform: uppercase;
  grid-row: 1; 
}

section.project-header > header > div.title > p {
  line-height: 1;
  margin: 0;
  font-weight: var(--font-weight-thin);
}

section.project-header > header > div.title > p > span {
  text-transform: none;
}

section.project-header > header > div.title h1 {
  font-size: var(--font-size-huge);
  font-weight: var(--font-weight-bitbold);
  line-height: 1;
}

section.project-header > header > div.meta {
  align-self: start;
}

section.project-header > header > div.meta > div {
  font-weight: var(--font-weight-normal);
  margin-bottom: 20px;
  text-transform: none;
}

section.project-header > header > div.meta span {
  font-weight: var(--font-weight-thin);
  display: inline-block;
  margin-right: 10px;
}

section.project {
  grid-column: var(--grid-content-full);
  display: grid;
  grid-template-columns: subgrid;

  margin-top: calc(100vh - var(--padding-top-content));
}

section.project > * {
  grid-column: var(--grid-content-full);
  margin-top: 25px;
  margin-bottom: 25px;

  font-size: var(--font-size-big);
}

section.project > p, section.project > h2, section.project > h3 {
  grid-column: var(--grid-content-full-thin);
}

section.project > h2 {
  font-size: var(--font-size-verybig);
  line-height: 1;
  background-image: url("/assets/icons/cross-hollow-long.svg");
  background-position: top right;
  background-repeat: no-repeat;
  background-size: auto 70%;

  margin-top: 40px;
}

section.project > h2::first-line {
  font-weight: var(--font-weight-bolder);
}

section.project > h3 {
  font-size: var(--font-size-big);
  font-weight: var(--font-weight-bitbold);
  margin: 0;
}

section.project > figure {
  grid-column: var(--grid-content-full-thin);
}

section.project > figure > figcaption { 
  grid-column: var(--grid-content-full-thin);

  color: var(--color-black70p)
}

section.project > figure > * { 
  grid-column: var(--grid-content-full);
}

section.project-gallery { 
  grid-column: var(--grid-content-full-thin);
  display: grid;
  grid-template-columns: subgrid;
  margin-bottom: 60px;
}

section.project-gallery > h2 { 
  grid-column: var(--grid-content-full-thin);
  text-transform: uppercase;
  margin-bottom: 5px;
  font-size: var(--font-size-big);
}

section.project-gallery > div { 
  grid-column: var(--grid-content-full-thin);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--grid-gap);
}

section.project-gallery div > figure {
  margin-bottom: 30px;
}

section.project-gallery div > figure:last-of-type {
  margin-bottom: 0;
}


section.project-gallery > p { 
  grid-column: var(--grid-content-full-thin);
}

/************* PROJECT *************/

/************* JOURNAL *************/
ul.journal-entries {
  grid-column: var(--grid-content-full);
  display: grid;
  grid-template-columns: subgrid;
}

ul.journal-entries > li:nth-child(odd) {
  grid-column: var(--grid-content-left);
  display: grid;
  justify-items: start;
}

ul.journal-entries > li:nth-child(even) {
  grid-column: var(--grid-content-right);
  display: grid;
  justify-items: end;
}

ul.journal-entries > li:nth-child(4n + 3) {
  margin-top: -52%;
}

ul.journal-entries li  {
  margin-bottom: 100px;
  align-content: flex-start;
}

ul.journal-entries a {
  text-decoration: none;
  display: block;
  padding-bottom: 5px;
  width: 100%;
}

ul.journal-entries a.thin {
  width: 78%;
}

ul.journal-entries a:hover {
}

ul.journal-entries figure {
  border-left: var(--border-nav-item);
  margin: 15px;
  padding-left: 15px;
}

ul.journal-entries figcaption {
  line-height: 1;
}

ul.journal-entries h2 {
  font-size: var(--font-size-bigger);
  font-weight: var(--font-weight-bitbold);
  margin-bottom: 5px;
}

/************* JOURNAL *************/

/********** JOURNAL ENTRY **********/
article.journal-entry {
  grid-column: var(--grid-content-full);
  display: grid;
  grid-template-columns: subgrid;

  min-height: 560px;

  padding-top: 490px;
}

article.journal-entry > div {
  position: absolute;
  left: 0;
  right: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  display: block ruby;
  height: 560px;
  z-index: -1;
  top: 304px;
}

article.journal-entry > * {
  display: grid;
  grid-column: var(--grid-content-full);
  grid-template-columns: subgrid;

  background-color: var(--color-background);
  margin: 0;
}

article.journal-entry > header {
  height: 160px;
  display: grid;
  grid-template-rows: 1fr auto auto;
}

article.journal-entry > header > h1 {
  grid-row: 2;
  font-size: var(--font-size-veryverybig);
  font-weight: var(--font-weight-bitbold);
  text-transform: none;
}
article.journal-entry > header > span {
  grid-row: 3;
  margin-top: 10px;
}

article.journal-entry > header > *, article.journal-entry > section {
  grid-column: var(--grid-content-full-thin);
  display: block;
}

article.journal-entry > section {
  margin-top: 30px;
  margin-bottom: 90px;
}

article.journal-entry > section > ul > li {
  position: relative;
  padding-left: 1.5em;
}

article.journal-entry > section > ul > li::before {
  content: '‒‒‒';           /* Em dash */
  position: absolute;
  left: 0;
  width: 1.5em;
  color: currentColor;    /* Matches text color */
  letter-spacing: -0.4em; /* Adjust spacing */
  font-weight: var(--font-weight-thin);
}

article.journal-entry > section > div.date {
  margin-bottom: 30px;
  font-size: var(--font-size-big);
  color: var(--color-black50p);
}

article.journal-entry h2 {
  font-size: var(--font-size-bigger);
  margin-top: 30px;
  margin-bottom: 10px;
}

/********** JOURNAL ENTRY **********/

/************ CONTACTS *************/
section.contact h2 {
  margin-top: 50px;
  margin-bottom: 30px;
  font-size: var(--font-size-verybig);
}

section.contact div.attention-grabber {
  margin-left: -55px;
  grid-column: var(--grid-content-full);
  margin-top: 0px;
}

section.contact div.right-col {
    margin-top: 50px;
}

.socialmedia.full-screen-overlay {
  grid-template-rows: unset;
  align-items: center;
}

.socialmedia.full-screen-overlay > * {
  grid-column: col4 / col10;

  align-items: center;
}

.socialmedia.full-screen-overlay .content {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);

  padding: 4vw;
  padding-top: 0;

  height: fit-content;
  align-items: start;
}
.socialmedia.full-screen-overlay .content button {
  translate: 4vw -50px;
  place-self: end;
  height: 30px;
}

/************ WHO WE ARE ************/
#whoweare-definesus div {
  grid-column: var(--grid-content-full-thin);
}

#whoweare-definesus div header span {
  color: var(--color-darkwhite);
  font-weight: var(--font-weight-thin);
}

#whoweare-definesus .japQuoted-text {
  margin-left: calc(-1 * var(--font-size-huge));
}

#whoweare-definesus div div:last-child {
  text-transform: uppercase;
  line-height: 1;
}

#whoweare-illustrations {
  top: 100vh;
  background-color: var(--color-darkwhite);
  overflow-y: clip !important;
}

#whoweare-illustrations div {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: var(--grid-content-full);
}

#whoweare-illustrations img {
  object-fit: cover;
  animation: parallax-scroll linear auto both; 
  animation-timeline: scroll(root);
}

#whoweare-illustrations .left-col {
  --move-y: 200vh;
  margin-top: -35vh;
}

#whoweare-illustrations .right-col {
  --move-y: -200vh;
  margin-top: 35vh;
}

@keyframes parallax-scroll {
  from { transform: translateY(0vh); }
  to { transform: translateY(var(--move-y)); }
}

#whoweare-collaboration {
  top: 200vh;
  background-attachment: fixed;
}

#whoweare-collaboration .japQuoted-text {
  margin-left: calc(-1 * var(--font-size-huge));
}

#whoweare-collaboration div {
  grid-column: var(--grid-content-full-thin);
}

#whoweare-collaboration .collab-who, #whoweare-collaboration .collab-body {
  display: block;
  margin-top: 5vh;
}

#whoweare-collaboration .collab-who {
  text-transform: uppercase;
  font-weight: var(--font-weight-bitbold);
}

#whoweare-collaboration .collab-who li {
  display: flex;
  justify-content: space-between;
  min-width: 0;
  width: 55vw;
}

#whoweare-collaboration .collab-who li::before {
  content: attr(data-text, '') ' ';
  flex-grow: 1;
  order: 1;
}

#whoweare-collaboration .collab-who li::after {
  content: '+';
  flex-shrink: 0;
  order: 2;
}

#whoweare-collaboration #collab-who:checked ~ * .collab-who {
  display: block;
}

#whoweare-collaboration #collab-who:checked ~ * .collab-body {
  display: none;
}

#whoweare-collaboration label.collab-body {
  cursor: pointer;
}


#whoweare-team {
  margin-top: calc(300vh - var(--padding-top-content));
  padding-top: var(--padding-top-content);

  grid-column: var(--grid-content-full);
}

#whoweare-team > *, #whoweare-team li {
  grid-column: var(--grid-content-full);
  grid-template-columns: subgrid;
  display: grid;
}

#whoweare-team li {
  margin-bottom: 120px;
}

#whoweare-team li:nth-child(odd) > div {
  grid-column: var(--grid-content-left);
}

#whoweare-team li:nth-child(odd) > img {
  grid-column: var(--grid-content-right-thin);
}

#whoweare-team li:nth-child(even) > img {
  grid-column: var(--grid-content-left-thin);
  grid-row: 1;
}

#whoweare-team li:nth-child(even) > div {
  grid-column: var(--grid-content-right);
  grid-row: 1;
}

#whoweare-team .attention-grabber {
  translate: 60px 0px;
  display: inline-block;
}

#whoweare-team h3 {
  font-size: var(--font-size-verybig);
}

#whoweare-team h4 {
  font-size: var(--font-size-big);
  font-weight: var(--font-weight-bitbold);
}