@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Noticia+Text:ital,wght@0,400;0,700;1,400;1,700&display=swap");

@font-face {
  font-family: "Fenul Condensed Trial";
  src: url("assets/fonts/FenulCondensedTRIAL-Regular.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Fenul Condensed Trial";
  src: url("assets/fonts/FenulCondensedTRIAL-Medium.woff2") format("woff2");
  font-weight: 500;
}

@font-face {
  font-family: "Fenul Condensed Trial";
  src: url("assets/fonts/FenulCondensedTRIAL-Bold.woff2") format("woff2");
  font-weight: 700;
}

@font-face {
  font-family: "Fenul Condensed Trial";
  src: url("assets/fonts/FenulCondensedTRIAL-Heavy.woff2") format("woff2");
  font-weight: 900;
}

@font-face {
  font-family: "Helvetica Neue Condensed Black";
  src: url("assets/fonts/HelveticaNeueCondensedBlack.woff") format("woff");
  font-weight: 900;
}

* {
  box-sizing: border-box;
  backface-visibility: hidden;
}

:root {
  --dark-green: #0f171a;
}

html,
body {
  overscroll-behavior: none;
  background-color: var(--dark-green);
}

body {
  --border-w: 14px;
  contain: strict;
  overflow: hidden;
  margin: 0;
  height: 100vh;
  color: white;

  font-family: "Open sans";

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/**/

password-screen {
  position: absolute;
  inset: 0;
  background-color: black;
  color: white;
  z-index: 1000;
  display: grid;
  place-content: center;
}

/**/

main {
  will-change: filter;
  contain: strict;
  position: absolute;
  inset: 0;
  border: var(--border-w) solid var(--dark-green);
  transition: filter 1s ease;
}

button {
  cursor: pointer;
}

main .logo {
  position: absolute;
  inset: 4% auto auto 4%;
  width: 200px;
}

main .logo img {
  max-width: 100%;
}

/**/

load-screen {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background-color: var(--dark-green);
  transition: opacity 0.5s ease;
}

load-screen[done] {
  pointer-events: none;
  opacity: 0;
}

progress-wrapper {
  width: 354px;
  height: 354px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset 0 0 0 2px #2a3c42;
  border-radius: 50%;
}

progress-wrapper img {
  width: 196px;
}

progress-circ {
  position: absolute;
  inset: 0;
  display: flex;
  transform: rotate(90deg);
}

progress-circ svg {
  width: 100%;
  height: 100%;
}

progress-circ svg circle {
  --array: 1110;
  --offset: 1110;
  stroke-width: 2px;
  stroke: #ffffff;
  fill: none;
  stroke-dasharray: var(--array);
  stroke-dashoffset: var(--offset);
  transition: stroke-dashoffset 0.1s ease;
}

/**/

fade-transition {
  position: absolute;
  position: absolute;
  inset: 0;
  z-index: 3;
  background-color: var(--dark-green);
  opacity: 0;
  pointer-events: none;
}

fade-transition.current {
  opacity: 1;
}

/* */

section {
  will-change: opacity;
  --par-trans-duration: 2s;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(min-content, 45%) 1fr;
  grid-template-rows: repeat(4, auto);
  align-content: center;
  justify-items: start;
  padding: 4%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0) 60%
  );
  transition: opacity var(--par-trans-duration) ease;
}

html[lang="ar"] section {
  grid-template-columns: 1fr minmax(min-content, 45%);
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] p,
html[lang="ar"] button-row,
html[lang="ar"] previous-stop {
  grid-column: 2;
}

section.current {
  opacity: 1;
}

h1,
h2,
h3,
p,
button-row {
  will-change: transform, opacity;
  --trans-duration: 1s;
  --trans-delay: 0s;
  grid-column: 1;
  opacity: 0;
  transition: opacity var(--trans-duration) ease-in var(--trans-delay),
    transform var(--trans-duration) ease-in var(--trans-delay);
}

h1,
h3 {
  font-size: clamp(32px, 6vh, 56px);
  margin: 0 0 3vh 0;
  transform: translate3d(0, 2.5vh, 0);
  font-family: "Fenul Condensed Trial";
  font-weight: 500;
}

h2,
p {
  --trans-delay: 0.25s;
  font-size: clamp(14px, 2vh, 18px);
  margin: 0 0 min(3vh, 3vw) 0;
  transform: translate3d(0, 2.5vh, 0);
  font-weight: 400;
}

button-row {
  --trans-delay: 0.45s;
  transform: translate3d(0, 2.5vh, 0);
  display: flex;
  gap: 12px;
}

button-row button,
.previous-page,
.next-page {
  font-size: clamp(16px, 2.5vh, 20px);
  padding: 1.2em 2.4em;
  color: #f1f2f3;
  border-radius: 2.8em;
  background-color: #d90817;
  border: none;
  transition: transform 1.25s ease, opacity 1s ease, box-shadow 0.5s,
    background-color 0.5s;
  font-family: "Fenul Condensed Trial";
  font-weight: 700;
  white-space: nowrap;
}

button-row button:hover,
.previous-page:hover,
.next-page:hover {
  background-color: #bd0714;
  box-shadow: 0 14px 34px 0 rgba(0, 0, 0, 0.2);
}

section:not(:first-of-type):not(:last-of-type) button-row button {
  border: 1px solid #f1f2f3;
  background-color: transparent;
}

section:not(:first-of-type):not(:last-of-type) button-row button:hover {
  box-shadow: 0 14px 34px 0 rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.06);
}

section:not(:first-of-type):not(:last-of-type) button-row button:last-child {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

section:not(:first-of-type):not(:last-of-type)
  button-row
  button:last-child::after {
  content: "";
  width: 0.875em;
  height: 0.75em;
  background-image: url("assets/images/button_arrow.webp");
  background-size: cover;
}

html[lang="ar"]
  section:not(:first-of-type):not(:last-of-type)
  button-row
  button:last-child::after {
  transform: scaleX(-1);
}

previous-stop {
  --trans-duration: 1s;
  --trans-delay: 1s;
  margin-bottom: min(2vh, 2vw);
  grid-column: 1;
  opacity: 0;
  transition: opacity var(--trans-duration) ease-in var(--trans-delay);
}

previous-stop button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 14px;
  color: white;
  background: transparent;
  border: none;
}

previous-stop button::before {
  content: "";
  width: 0.5em;
  height: 0.45em;
  background-image: url("assets/images/button_arrow_back.webp");
  background-size: cover;
}

html[lang="ar"] previous-stop button::before {
  transform: scaleX(-1);
}

section.current h1,
section.current h3,
section.current h2,
section.current p,
section.current button-row {
  transition-timing-function: ease, ease;
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

section.current previous-stop {
  transition-timing-function: ease;
  opacity: 1;
}

section.current button {
  pointer-events: auto;
}

/**/

aside {
  will-change: transform;
  contain: strict;
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: translate3d(0, 100%, 0);
  transition: transform 1s ease;
  direction: ltr !important;
}

html[lang="ar"] aside > np-wrapper {
  direction: rtl;
}

html[lang="ar"] aside .album .page {
  direction: rtl;
}

aside.current {
  transform: translate3d(0, 0, 0);
}

aside.current ~ main {
  filter: blur(8px);
}

drawer-close {
  position: absolute;
  z-index: 3;
  inset: 36px 42px auto auto;
  width: 64px;
  height: 64px;
  border: 1px solid #fff;
  border-radius: 50%;
  background-image: url("assets/images/wtk_exit_button.webp");
  background-size: 18px 18px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s ease 0s;
  pointer-events: none;
  filter: drop-shadow(2px 4px 6px black);
}

aside.current ~ drawer-close {
  pointer-events: auto;
  transition: opacity 0.5s ease 0.5s;
  opacity: 1;
}

aside.current ~ nav toggle-nav {
  filter: blur(8px);
}

/**/

nav {
  will-change: backdrop-filter;
  contain: strict;
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: backdrop-filter 1s ease;
  pointer-events: none;
}

toggle-nav {
  position: absolute;
  inset: 56px 56px auto auto;
  width: 36px;
  height: 24px;
  pointer-events: auto;
  cursor: pointer;
  transition: filter 1s ease;
}

n-line {
  position: absolute;
  top: 45%;
  left: 0;
  width: 100%;
  height: 9%;
  background-color: white;
  pointer-events: none;
}

n-line:nth-child(2) {
  transition: opacity 0s linear 0.25s;
}

nav.current n-line:nth-child(2) {
  opacity: 0;
}

n-line:first-child,
n-line:last-child {
  transition: top 0.25s ease 0.25s, transform 0.25s ease 0s;
}

nav.current n-line:first-child,
nav.current n-line:last-child {
  top: 45%;
  transition: top 0.25s ease 0s, transform 0.25s ease 0.25s;
}

n-line:first-child {
  top: 0%;
}

n-line:last-child {
  top: 91%;
}

nav.current n-line:first-child {
  transform: rotate(45deg);
}

nav.current n-line:last-child {
  transform: rotate(-45deg);
}

nav-drawer {
  will-change: transform;
  position: absolute;
  inset: 0 0 0 auto;
  padding: 120px 96px 80px 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  pointer-events: auto;
  transform: translate3d(100%, 0, 0);
  transition: transform 1s ease;
  color: white;
  background-color: #34444b;
  background-image: url("assets/images/blurred_wtk_logo.webp");
  background-size: auto 90%;
  background-position: bottom right;
  background-repeat: no-repeat;
  font-family: "Fenul Condensed Trial";
  font-weight: 500;
  overflow-y: auto;
}

nav.current nav-drawer {
  transform: translate3d(0, 0, 0);
}

nav.current {
  pointer-events: auto;
}

nav-header {
  max-width: 300px;
  font-size: 40px;
}

nav-links {
  --number-size: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 45vw;
  color: #e4e1d8;
  pointer-events: none;
}

nav-link {
  font-size: 28px;
  cursor: pointer;
  pointer-events: auto;
}

nav-link.current,
project-link.current {
  color: white;
}

nav-link.current,
project-link.current span {
  text-decoration: underline;
}

project-links {
  counter-reset: projects;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 45vw;
}

project-links::before,
project-link::after {
  content: "";
  display: flex;
  width: 2px;
  height: 7px;
  background-image: url("assets/images/navbar_dots.webp");
  background-size: contain;
  margin-inline-start: calc((var(--number-size) / 2) - 1px);
}

project-link::after {
  grid-row: 2;
}

project-link {
  counter-increment: projects;
  display: grid;
  grid-template-columns: min-content auto;
  gap: 8px 10px;
  align-items: center;
  font-size: 22px;
  cursor: pointer;
  pointer-events: auto;
}

project-link::before {
  content: counter(projects);
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #e4e1d8;
  border-radius: 50%;
  font-size: 14px;
}

project-link.current::before {
  border-color: white;
}

nav.current ~ main {
  filter: blur(8px);
}

nav-bottom {
  display: flex;
}

html[lang="ar"] nav-bottom {
  justify-content: flex-end;
}

nav-bottom a {
  color: #e4e1d8;
  text-decoration: none;
  font-family: "Open sans";
}

nav-bottom a:hover {
  color: white;
  text-decoration: underline;
}

/**/

sequences-wrapper {
  contain: strict;
  position: absolute;
  inset: calc(var(--border-w) * -1);
}

sequences-wrapper video,
canvas {
  will-change: opacity;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

sequences-wrapper video.current,
canvas.current {
  opacity: 1;
}

sequences-wrapper video:nth-child(2) {
  z-index: 1;
}

skip-button {
  display: none;
  position: absolute;
  inset: auto 64px 128px auto;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 3vh, 0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

skip-button.current {
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

table-newspaper {
  position: absolute;
  z-index: 10;
  width: 1920px;
  height: 1080px;
  display: flex;
  justify-content: stretch;
  pointer-events: none;
  opacity: 0;
}

platform-plaque {
  position: absolute;
  z-index: 10;
  width: 1920px;
  height: 1080px;
  display: flex;
  justify-content: stretch;
  pointer-events: none;
  opacity: 0;
}

#np-col-box {
  position: absolute;
  inset: 814px auto auto 960px;
  width: 328px;
  height: 74px;
  cursor: pointer;
}

#pq-col-box {
  position: absolute;
  inset: 604px auto auto 1000px;
  width: 196px;
  height: 410px;
  cursor: pointer;
}

table-newspaper img {
  will-change: filter;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: cover;
  transition: filter 0.5s ease;
}

platform-plaque img {
  will-change: filter;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: cover;
  transition: filter 0.5s ease;
}

@keyframes pulse {
  0% {
    filter: drop-shadow(0 0 0 white);
  }
  50% {
    filter: drop-shadow(0 0 16px white);
  }
  100% {
    filter: drop-shadow(0 0 0 white);
  }
}

table-newspaper .extra-layer,
platform-plaque .extra-layer {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: pulse 4s linear infinite;
  transition: 0.5s ease opacity;
}

table-newspaper .extra-layer {
  background-image: url("assets/isolated_newspaper_asset_updated.webp");
}

platform-plaque .extra-layer {
  background-image: url("assets/isolated_plaque_asset.webp");
}

#np-col-box:hover + img {
  filter: drop-shadow(0 0 32px white);
}

#np-col-box:hover ~ .extra-layer {
  opacity: 0;
}

#pq-col-box:hover + img {
  filter: drop-shadow(0 0 32px white);
}

#pq-col-box:hover ~ .extra-layer {
  opacity: 0;
}

table-newspaper.current {
  pointer-events: auto;
  opacity: 1;
}

platform-plaque.current {
  pointer-events: auto;
  opacity: 1;
}

/**/

backgrounds-wrapper {
  position: absolute;
  width: 1920px;
  height: 1080px;
  display: grid;
  /* determines framing of videos relative to window knockout */
  /* padding: 160px 320px 230px 910px; */
  padding: 192px 344px 250px 938px;
}

blurred-assets {
  position: absolute;
  width: 1920px;
  height: 1080px;
  display: grid;
  /* determines framing of videos relative to window knockout */
  /* padding: 160px 320px 230px 910px; */
  padding: 0 286px 871px 934px;
  filter: blur(2px);
}

blurred-assets img {
  position: relative;
  width: 100%;
  height: 100%;
  grid-column: 1;
  grid-row: 1;
  object-fit: cover;
  object-position: bottom;
  opacity: 0;
  transition: opacity 0.5s ease 0.5s;
}

blurred-assets img.current {
  z-index: 1;
  transition: opacity 0.5s ease 0s;
  opacity: 1;
}

bgr-frame {
  position: absolute;
  inset: calc(-1 * var(--border-w));
  width: calc(100% + (var(--border-w) * 2));
  height: calc(100% + (var(--border-w) * 2));
  /*final video fallback image*/
  background-image: url("assets/wtk_closing_sequence_poster.webp");
  background-size: cover;
  background-position: center;
}

backgrounds-wrapper video {
  width: 100%;
  height: 100%;
  grid-column: 1;
  grid-row: 1;
  object-fit: cover;
  opacity: 0;
}

backgrounds-wrapper video.current {
  opacity: 1;
}

/**/

/* #lang-select {
  position: absolute;
  inset: auto var(--border-w) var(--border-w) auto;
  z-index: 10;
} */

/* FIX ALL THIS */

album-parallax {
  display: block;
  position: absolute;
  inset: 64px;
}

np-parallax {
  display: block;
  /* position: absolute; */
  /* inset: 64px; */
}

np-wrapper {
  position: absolute;
  inset: 50% 0 0 50%;
  width: 1366px;
  /* height: 916px; */
  height: max-content;
  padding: 48px 40px 56px 40px;
  color: #121110;
}

/* html[lang="ar"] np-wrapper {
  text-align: right;
} */

.album {
  position: absolute;
  inset: 50% 0 0 50%;
  width: 1350px;
  height: 900px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  transform-style: preserve-3d;
  perspective: 2200px;
  user-select: none;
  -webkit-user-select: none;
  color: #000;
}

.previous-page,
.next-page {
  position: absolute;
  opacity: 0;
}

aside.current .previous-page.disabled,
aside.current .next-page.disabled {
  transition-delay: 0s, 0s, 0s, 0s;
  opacity: 0;
  pointer-events: none;
}

aside.current .previous-page,
aside.current .next-page {
  transition-delay: 0s, 1s, 0s, 0s;
  opacity: 1;
}

.previous-page {
  inset: auto auto 128px 128px;
}

.next-page {
  inset: auto 128px 128px auto;
}

.album .page {
  will-change: transform;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  transition: transform 1.5s ease, visibility 0s linear 0.05s;
  transform-origin: left;
  transform-style: preserve-3d;
}

/* all page rotation values are manual, can automate in JS later if needed */

.album .page:nth-child(1) {
  transform: rotateY(-4deg);
}

.album .page:nth-child(1).open {
  transform: rotateY(-180deg);
}

.album .page:nth-child(2) {
  transform: rotateY(-3deg);
}

.album .page:nth-child(2).open {
  transform: rotateY(-179deg);
}

.album .page:nth-child(3) {
  transform: rotateY(-2deg);
}

.album .page:nth-child(3).open {
  transform: rotateY(-178deg);
}

.album .page:nth-child(4) {
  transform: rotateY(-1deg);
}

.album .page:nth-child(4).open {
  transform: rotateY(-177deg);
}

.album .page:nth-child(5) {
  transform: rotateY(0deg);
}

.album .page:nth-child(5).open {
  transform: rotateY(-176deg);
}

/**/

.album .page .front,
.album .page .back {
  will-change: clip-path, border-radius;
  contain: strict;
  grid-column: 1;
  grid-row: 1;
  background-color: #fbf0e3;
  display: grid;
  grid-template-rows: repeat(3, auto);
  place-items: start;
  gap: 48px;
  padding: 50px 64px;
  transition: clip-path 0.5s ease, border-radius 0.5s ease;
}

.album .page .front {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 100%);
}

.album .page .back {
  transform: rotateY(180deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
}

.album .page .front::before,
.album .page .back::before {
  will-change: transform;
  contain: strict;
  content: "";
  position: absolute;
  z-index: 1;
  backface-visibility: hidden;
  transition: transform 1.5s ease;
}

.album .page .back::before {
  transform: translate3d(-50%, 0, 0);
}

.album .page .front::before {
  inset: 0 0 0 -100%;
}

.album .page .back::before {
  inset: 0 -100% 0 0;
}

.album .page .front::before {
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.5)
  );
}

.album .page .back::before {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.5)
  );
}

.album .page.open .front::before {
  transform: translate3d(50%, 0, 0);
}

.album .page.open .back::before {
  transform: translate3d(0, 0, 0);
}

.album .page.shadow .back::before {
  transform: translate3d(-50%, 0, 0);
}

.album .page .front::after,
.album .page .back::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  backface-visibility: hidden;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.album .page .front::after {
  inset: auto -64px -64px auto;
  background: linear-gradient(to bottom right, #fbf0e3 20%, #c6bcb1);
  filter: drop-shadow(12px 12px 12px rgba(0, 0, 0, 0.25));
}

.album .page .front.curl::after {
  transform: translate3d(-64px, -64px, 0);
  filter: drop-shadow(-12px 8px 12px rgba(0, 0, 0, 0.25));
}

.album .page .back::after {
  inset: auto auto -64px -64px;
  background: linear-gradient(to bottom left, #fbf0e3 40%, #7a746d);
  filter: drop-shadow(-12px 12px 12px rgba(0, 0, 0, 0.25));
}

.album .page .back.curl::after {
  transform: translate3d(64px, -64px, 0);
  filter: drop-shadow(12px 8px 12px rgba(0, 0, 0, 0.25));
}

.album .page .front.curl {
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 64px),
    calc(100% - 64px) 100%,
    0 100%
  );
  border-bottom-right-radius: 85px;
}

.album .page .back.curl {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 64px 100%, 0 calc(100% - 64px));
  border-bottom-left-radius: 85px;
}

.album .page img {
  max-height: 224px;
  max-width: 100%;
  flex-shrink: 0;
}

.album .page .row-wrap {
  display: flex;
  gap: 32px;
}

.album .page img-frame {
  contain: layout;
  display: flex;
  flex-shrink: 0;
  padding: 4px;
  height: 100%;
}

.album .page img-frame::after {
  content: "";
  contain: strict;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("assets/images/photo_bracket_topleft.webp"),
    url("assets/images/photo_bracket_topright.webp"),
    url("assets/images/photo_bracket_bottomright.webp"),
    url("assets/images/photo_bracket_bottomleft.webp");
  background-size: 36px auto;
  background-repeat: no-repeat;
  background-position: top left, top right, bottom right, bottom left;
}

.album .page span {
  margin-top: 40px;
  display: block;
  font-family: "Homemade Apple", cursive;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  transform-origin: top right;
  max-width: 100px;
}

/* testing newspaper styles */

.newspaper-wood {
  content: "";
  position: absolute;
  inset: calc(50% - 4px) -4px -4px -4px;
  background-image: url("assets/images/wood_depth_blur.webp");
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(0, 50%, 0);
  transition: transform 1s ease;
}

.drawer-slide.open .newspaper-wood {
  transform: translate3d(0, 0, 0);
}

.newspaper-wrapper {
  /* position: absolute; */
  inset: 0;
  padding: 32px 64px 48px 64px;
}

.newspaper {
  /* position: absolute;
  inset: 50% 0 0 50%;
  width: 1366px;
  height: 812px;
  padding: 48px 40px 56px 40px;
  color: #121110; */
}

/* np background */
.newspaper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #fbf0e3 calc(100% - 40px), #a49c93);
  z-index: -1;
  border-radius: 0 0 40px 40px;
}

/* np shadow */
.newspaper::after {
  content: "";
  position: absolute;
  inset: 75% -48px -96px -48px;
  background: rgba(0, 0, 0, 0.5);
  z-index: -2;
  border-radius: 40px;
  filter: blur(32px);
}

.newspaper .header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
  direction: ltr !important;
}

.newspaper .header .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 32px;
}

.newspaper .header .top .wordmark {
  width: 152px;
  flex-shrink: 0;
}

.newspaper .header .top .title {
  font-family: "Fenul Condensed Trial";
  font-weight: 900;
  font-size: 67px;
}

.newspaper .header .top .symbol {
  width: 58px;
}

.newspaper .header .bottom {
  display: flex;
  padding-block: 4px;
  margin-inline: -40px;
  border-block: 1.5px solid #121110;
  justify-content: center;
  gap: 148px;
}

.newspaper .header .bottom span {
  font-family: "Noticia Text";
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.newspaper .content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.newspaper .content .newspaper-col {
  display: flex;
  flex-direction: column;
  padding-inline: 32px;
  gap: 20px;
}

.newspaper .content .newspaper-col:nth-child(1) {
  padding-inline-start: 0;
  border-inline-end: 1px solid rgba(0, 0, 0, 0.25);
}

.newspaper .content .newspaper-col:nth-child(3) {
  padding-inline-end: 0;
  border-inline-start: 1px solid rgba(0, 0, 0, 0.25);
}

.newspaper img {
  max-width: 100%;
}

.np-para {
  font-family: "Noticia Text";
  font-size: 13px;
  line-height: 133%;
}

.np-title {
  font-family: "Helvetica Neue Condensed Black";
  font-size: 32px;
  line-height: 100%;
  text-transform: uppercase;
  min-width: 110%;
}

html:not([lang="en"]) .np-title {
  min-width: 0 !important;
  max-width: none !important;
}

.newspaper-col:first-child .np-title {
  font-size: 45px;
}

/* stop-specific newspaper column styles */

.np-0 .content {
  grid-template-columns: 528px 1.25fr 1fr;
}

.np-0 .newspaper-col:first-child .np-title,
.np-0 .newspaper-col:last-child .np-title {
  order: -1;
}

.np-1 .content {
  grid-template-columns: 512px 1fr 1.1fr;
}

.np-1 .newspaper-col:first-child .np-para {
  max-width: 430px;
}

.np-1 .newspaper-col:nth-child(2) img {
  order: 1;
}

.np-2 .content {
  grid-template-columns: 656px 1.15fr 1fr;
}

.np-2 .newspaper-col:first-child {
  display: grid;
  grid-template-rows: min-content auto;
  grid-template-columns: 1.5fr 1fr;
}

.np-2 .newspaper-col:first-child img {
  grid-column: 1 / span 2;
}

.np-2 .newspaper-col:nth-child(2) img {
  order: 1;
}

.np-2 .newspaper-col:nth-child(2) .np-title {
  min-width: 0;
}

.np-3 .content {
  grid-template-columns: 575px 1.3fr 1fr;
}

.np-3 .newspaper-col:first-child {
  gap: 12px;
}

.np-3 .newspaper-col:nth-child(2) .np-title {
  order: -1;
  min-width: 105%;
}

.np-4 .content {
  grid-template-columns: 460px 1.2fr 1fr;
}

.np-4 .newspaper-col:not(:last-child) {
  gap: 12px;
}

.np-4 .newspaper-col:first-child .np-title,
.np-4 .newspaper-col:last-child .np-title {
  order: -1;
}

.np-4 .newspaper-col:nth-child(2) img {
  max-width: 360px;
}

.np-4 .newspaper-col:nth-child(2) .np-title {
  min-width: 110%;
}

.np-5 .content {
  grid-template-columns: 470px 1.4fr 1fr;
}

.np-5 .newspaper-col:first-child .np-title,
.np-5 .newspaper-col:last-child .np-title {
  order: -1;
}

.np-5 .newspaper-col:first-child .np-title {
  min-width: 0;
}

.np-5 .newspaper-col:last-child .np-title {
  min-width: 120%;
}

desk-surface {
  will-change: transform;
  position: absolute;
  z-index: 1;
  inset: -8px;
  pointer-events: none;
}

desk-surface img {
  will-change: transform;
  inset: -3.5px;
  width: calc(100% + 7px);
  height: calc(100% + 7px);
  object-fit: contain;
  object-position: bottom;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.75s ease;
}

aside:not(:first-of-type):not(:last-of-type).current ~ desk-surface img {
  transform: translate3d(0, 0, 0);
}

plaque-wrapper {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 20vw;
}

plaque-parallax {
  position: absolute;
  inset: 64px;
}

plaque-background {
  position: absolute;
  inset: 50% 0 0 50%;
  width: 1254px;
  height: 800px;
  padding: 0;
  display: flex;
  justify-content: center;
  background: url("assets/plaque_bgr.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

plaque-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 140px;
  color: white;
  font-weight: 600;
  font-size: 22px;
  width: 765px;
  text-shadow: 0px 1px 3px black;
}

plaque-content div:first-child {
  font-size: 64px;
  font-weight: 700;
}

plaque-content div:nth-child(2) {
  font-size: 32px;
  font-weight: 700;
}

/**/

lang-select {
  position: absolute;
  inset: auto 24px 24px auto;
  z-index: 3;
  font-size: 14px;
  min-width: 12em;
  color: #f1f2f3;
  font-family: "Fenul Condensed Trial";
  font-weight: 700;
  user-select: none;
  -webkit-user-select: none;
}

current-lang {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.72em 2.14em;
  border-radius: 4em;
  background-color: #34444b;
  cursor: pointer;
  box-shadow: 0 14px 34px 0 rgba(0, 0, 0, 0.2);
}

current-lang::after {
  content: "";
  height: 0.57em;
  width: 0.76em;
  background-image: url("assets/lang_arrow.webp");
  background-size: 100% 100%;
}

lang-select.open current-lang::after {
  transform: rotate(180deg);
}

lang-options {
  display: none;
  position: absolute;
  inset: auto 0 calc(100% + 0.71em) 0;
  flex-direction: column;
  padding: 0.86em;
  border-radius: 1.3em;
  background-color: #34444b;
  box-shadow: 0 14px 34px 0 rgba(0, 0, 0, 0.2);
}

lang-select.open lang-options {
  display: flex;
}

lang-option {
  padding: 0.35em 1.3em;
  border-radius: 2em;
  cursor: pointer;
}

lang-option.current {
  display: none;
}

lang-option:hover {
  background-color: #1a2a30;
}

/**/

audio-modal-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  transition: 0.5s ease opacity;
  opacity: 0;
  pointer-events: none;
}

audio-modal-wrap.current {
  opacity: 1;
  pointer-events: auto;
}

audio-modal {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 640px;
  padding: 64px;
  background-color: #34444b;
  border-radius: 16px;
  box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.5);
  margin: 16px;
}

audio-modal modal-buttons {
  display: flex;
  gap: 8px;
}

audio-modal modal-buttons button:first-child {
  padding: 12px 24px;
  border: 1px solid white;
  background-color: transparent;
  color: inherit;
  border-radius: 32px;
  transition: background-color 0.25s ease;
}

audio-modal modal-buttons button:first-child:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

audio-modal modal-buttons button:last-child {
  padding: 12px;
  color: #b3b1ad;
  background-color: transparent;
  border: none;
  transition: color 0.25s ease;
}

audio-modal modal-buttons button:last-child:hover {
  color: white;
}

audio {
  display: none;
}

#audio-toggle {
  position: absolute;
  z-index: 3;
  inset: auto auto 32px 32px;
  width: 16px;
  opacity: 0.5;
  cursor: pointer;
}

#audio-toggle:hover {
  opacity: 0.75;
}

#audio-toggle.current {
  opacity: 1;
}

/**/

@media (max-width: 991px) {
  body {
    --border-w: 0px;
    height: 100dvh;
  }

  progress-wrapper {
    transform: scale(0.75);
  }

  main {
    display: grid;
    grid-template-rows: min(calc((3 / 4) * 100vw), 50%) 1fr;
    overflow-y: auto;
    height: 100dvh;
  }

  lang-select {
    inset: auto 8px 8px auto;
    font-size: 12px;
  }

  current-lang {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em 2em;
    border-radius: 4em;
  }

  lang-option {
    padding: 0.4em 1.1em;
    border-radius: 2em;
  }

  section {
    position: static;
    grid-row: 2;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding-block: 16px 64px;
    overflow-y: auto;
    background: none;
    overflow: scroll;
  }

  section.current {
    pointer-events: auto;
  }

  canvas {
    object-position: right;
  }

  h1,
  h3 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  h2,
  p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  sequences-wrapper {
    position: static;
    grid-row: 1;
    grid-column: 1;
  }

  sequences-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.85),
      transparent 45%
    );
  }

  bgr-frame {
    contain: paint;
    position: relative;
    grid-row: 1;
    grid-column: 1;
  }

  toggle-nav {
    width: 24px;
    height: 16px;
    inset: 24px 16px auto auto;
  }

  main .logo {
    inset: 16px auto auto 16px;
    width: 120px;
  }

  table-newspaper {
    display: none;
  }

  platform-plaque {
    display: none;
  }

  button-row button {
    font-size: 14px;
    padding: 0.75em 1.25em;
  }

  previous-stop button {
    gap: 6px;
    font-size: 12px;
  }

  .album {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;

    display: flex;
    flex-direction: column;
    gap: 32px;
    transform-style: flat;
    perspective: none;
    background-color: #fbf0e3;
    padding: 72px 16px 256px 16px;
  }

  album-parallax {
    display: contents;
  }

  .album .page,
  .album .page .front,
  .album .page .back {
    display: contents;
  }

  .page::after,
  .page .front::after,
  .page .back::after {
    content: none !important;
  }

  .page::before,
  .page .front::before,
  .page .back::before {
    content: none !important;
  }

  .next-page,
  .previous-page {
    display: none;
  }

  .album .page .row-wrap {
    flex-direction: column;
    gap: 16px;
  }

  .album .page img {
    max-height: none;
    height: auto;
  }

  .album .page img-frame {
    contain: layout;
    display: flex;
    padding: 4px;
    height: auto;
    order: -1;
  }

  .album .page img-frame::after {
    background-size: 24px auto;
  }

  .album .page span {
    margin: 0;
    font-size: 14px;
    line-height: 150%;
    transform: none !important;
    max-width: none;
  }

  drawer-close {
    inset: 16px 12px auto auto;
    width: 32px;
    height: 32px;
    background-size: 10px 10px;
    filter: drop-shadow(0px 2px 2px black);
  }

  /**/

  np-wrapper {
    inset: 0;
    width: 100%;
    height: 100vh;
    padding: 72px 16px 256px 16px;
    overflow-y: auto;
    background-color: #fbf0e3;
  }

  np-parallax {
    display: contents;
  }

  .newspaper-wrapper {
    display: contents;
  }

  .newspaper .header .top img {
    display: none;
  }

  .newspaper .header .top .title {
    font-size: 42px;
  }

  .newspaper .header .bottom {
    gap: 0;
    justify-content: space-between;
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .newspaper .content {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .newspaper .content .newspaper-col {
    padding: 0 !important;
    border: none !important;
    gap: 16px !important;
    display: flex !important;
  }

  .newspaper .newspaper-col img {
    order: -2 !important;
  }

  .newspaper .newspaper-col .np-title {
    font-size: 30px;
    max-width: 100% !important;
    min-width: 0px !important;
    order: -1 !important;
  }

  .newspaper .newspaper-col .np-para {
    order: 0 !important;
  }

  .newspaper::before,
  .newspaper::after {
    content: none;
  }

  desk-surface {
    display: none;
  }

  nav-drawer {
    padding: 56px 32px 32px 32px;
    width: 100%;
    gap: 24px;
    justify-content: flex-start;
  }

  nav-header {
    font-size: 24px;
  }

  nav-links,
  project-links {
    width: auto;
  }

  nav-links {
    --number-size: 24px;
  }

  nav-link {
    font-size: 20px;
  }

  project-link::before {
    width: 24px;
    height: 24px;
  }

  project-link span {
    font-size: 16px;
  }

  nav-bottom {
    justify-content: flex-start !important;
  }

  audio-modal {
    padding: 32px;
  }

  audio-modal modal-buttons {
    flex-direction: column;
  }

  /**/

  plaque-background {
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
  }

  plaque-content div:first-child {
    font-size: 32px;
  }

  plaque-content div:nth-child(2) {
    font-size: 24px;
  }

  plaque-content {
    width: 100%;
    padding-inline: 32px;
    margin-top: 80px;
    font-size: 16px;
  }

  plaque-parallax {
    display: contents;
  }

  #audio-toggle {
    inset: auto auto 16px 16px;
  }
}
