@font-face {
  font-family: "Cloux Display";
  src: url("assets/roboto-light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #181a1b;
  --paper: #7c8081;
  --paper-dark: #686c6d;
  --accent: #a33128;
  --gap: clamp(20px, 3.6vh, 42px);
  --slide-duration: 1450ms;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--ink);
  background-color: #242627;
  background-image:
    linear-gradient(rgba(10, 11, 11, .14), rgba(10, 11, 11, .24)),
    url("assets/concrete-background-v2.webp");
  background-position: center;
  background-size: cover;
}

.stage {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  width: min(75vw, 102vh, 1150px);
  height: min(69vh, 780px);
  opacity: 0;
  transition: opacity .35s ease;
}

.cards-grid.is-ready { opacity: 1; }

.card-frame {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}

.panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.panel.is-incoming { transform: translate3d(-100%, 0, 0); }

.card-frame.is-shifting .panel {
  transition: transform var(--slide-duration) cubic-bezier(.72, 0, .2, 1);
}

.panel--intro {
  display: flex;
  align-items: flex-start;
  padding: clamp(16px, 1.45vw, 24px);
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), transparent 40%),
    var(--paper);
}

.panel--intro-right { background-color: var(--paper-dark); }

.panel--intro::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.intro-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 4%;
  opacity: 0;
  color: var(--ink);
  font-family: "Cloux Display", Helvetica, Arial, sans-serif;
  font-size: clamp(62px, min(7.3vw, 9.5vh), 110px);
  font-weight: 300;
  line-height: .84;
  letter-spacing: -.055em;
  text-transform: uppercase;
  transform: translate3d(0, 18px, 0);
  transition: opacity 2600ms ease, transform 2600ms cubic-bezier(.22, .72, .24, 1);
}

.panel--intro-right .intro-copy {
  font-size: clamp(48px, min(5.7vw, 7.4vh), 86px);
}

.panel--intro.is-revealed .intro-copy {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.intro-copy span { display: block; }

.panel--copy {
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 1.45vw, 24px);
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), transparent 40%),
    var(--paper);
}

.panel--statement,
.panel--pressure { --paper: var(--paper-dark); }

.panel--copy::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.panel--copy::after {
  position: absolute;
  right: -3%;
  bottom: -9%;
  content: attr(data-index);
  color: rgba(24, 26, 27, .065);
  font-family: "Cloux Display", Helvetica, Arial, sans-serif;
  font-size: min(24vw, 32vh);
  font-weight: 300;
  line-height: .72;
  letter-spacing: -.1em;
}

h1,
h2 {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Cloux Display", Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: .81;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

h1 { font-size: clamp(61px, min(7.35vw, 9.65vh), 112px); }
h2 { font-size: clamp(51px, min(6.05vw, 7.95vh), 92px); }

h1 span,
h2 span { display: block; }

.accent { color: var(--accent); }
.shift { padding-left: 18%; }
.shift--far { padding-left: 43%; }
.shift--small { padding-left: 9%; }

.copy-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
}

.copy-footer .contact {
  padding-bottom: 1px;
  font-size: clamp(8px, .62vw, 10px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .035em;
  text-transform: lowercase;
}

.copy-footer > span:last-child {
  font-family: "Cloux Display", Helvetica, Arial, sans-serif;
  font-size: clamp(60px, min(7.3vw, 10vh), 118px);
  font-weight: 300;
  line-height: .64;
  letter-spacing: -.08em;
}

.panel--visual { background: #383a3b; }

.panel--visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  filter: saturate(1.08) brightness(1.02) contrast(1.03);
  transform: scale(1.012);
}

.panel--box img { object-position: 50% 50%; }
.panel--bent img { object-position: 50% 50%; }

.visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,11,11,.18), transparent 29%, transparent 74%, rgba(9,10,10,.3));
}

.visual-shade--box {
  background: linear-gradient(to bottom, rgba(10,11,11,.06), transparent 55%, rgba(245,245,242,.08));
}

.visual-shade--bent {
  background: linear-gradient(to bottom, rgba(10,11,11,.12), transparent 42%, transparent 76%, rgba(9,10,10,.22));
}

.wordmark {
  position: absolute;
  right: clamp(15px, 1.45vw, 24px);
  left: clamp(15px, 1.45vw, 24px);
  color: rgba(242, 243, 243, .94);
  font-family: "Cloux Display", Helvetica, Arial, sans-serif;
  font-size: clamp(88px, min(11.6vw, 15.5vh), 175px);
  font-weight: 300;
  line-height: .78;
  letter-spacing: -.03em;
  text-align: center;
  white-space: nowrap;
}

.wordmark--top { top: clamp(15px, 1.45vw, 24px); }

.wordmark--bottom {
  bottom: clamp(17px, 1.6vw, 26px);
  color: rgba(24, 26, 27, .9);
}

.wordmark-note {
  position: absolute;
  right: clamp(15px, 1.45vw, 24px);
  left: clamp(15px, 1.45vw, 24px);
  color: rgba(242, 243, 243, .82);
  font-size: clamp(7px, .58vw, 9px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark-note--under {
  top: clamp(102px, min(12.2vw, 16.2vh), 184px);
}

.wordmark-note--over {
  bottom: clamp(105px, min(12.2vw, 16.2vh), 184px);
}

.wordmark-note--dark { color: rgba(24, 26, 27, .78); }

.visual-footer {
  position: absolute;
  right: clamp(15px, 1.45vw, 24px);
  bottom: clamp(15px, 1.45vw, 24px);
  left: clamp(15px, 1.45vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(244, 245, 245, .87);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
}

@media (max-width: 850px) {
  .stage { padding: 18px; }

  .cards-grid {
    grid-template-columns: 1fr;
    width: min(calc(100vw - 36px), 520px);
    height: min(calc(100dvh - 36px), 760px);
  }

  .card-frame--right { display: none; }
  h1 { font-size: clamp(53px, 16.8vw, 90px); }
  h2 { font-size: clamp(45px, 14.3vw, 76px); }
  .intro-copy { font-size: clamp(58px, 18vw, 88px); }
  .panel--intro-right .intro-copy { font-size: clamp(43px, 13.4vw, 68px); }
  .wordmark { font-size: clamp(80px, 28vw, 145px); }
  .wordmark-note { font-size: 7px; }
  .wordmark-note--under { top: clamp(112px, 31vw, 155px); }
  .wordmark-note--over { bottom: clamp(112px, 31vw, 155px); }
}

@media (max-height: 700px) and (min-width: 851px) {
  .cards-grid { width: min(78vw, 106vh); height: 72vh; }
  h1 { font-size: min(7.2vw, 9.65vh); }
  h2 { font-size: min(5.9vw, 7.9vh); }
}

@media (prefers-reduced-motion: reduce) {
  :root { --slide-duration: 1ms; }
  .intro-copy { transition-duration: 1ms; }
}
