@font-face {
  font-family: 'DM Sans';
  src: url('./assets/fonts/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: 'Bebas Neue';
  src: url('./assets/fonts/bebas-neue.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #090807;
  --paper: #e8dfd0;
  --text: #ccc4b8;
  --ember: #d99c58;
  --blood: #bd5440;
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  background: var(--black);
  color: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 5;
  background: url('./assets/images/grain.webp');
  opacity: 0.055;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

::selection {
  background: #763727;
  color: #fff4df;
}

h1,
h2,
p {
  margin: 0;
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 7.6vw, 116px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

h2 span {
  color: var(--blood);
}

p {
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 7px;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

img,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

.wrap {
  width: min(88%, 1400px);
  margin-inline: auto;
}

.icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

.brand {
  display: block;
  width: 176px;
  flex-shrink: 0;
}

.brand img {
  width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px 20px;
  background: var(--paper);
  color: var(--black);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.reveal {
  transition:
    opacity 800ms ease,
    transform 800ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.reveal.pending {
  opacity: 0;
  transform: translateY(28px);
}

.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 33px 6%;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 18px;
}

.header nav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 9px;
  text-shadow: 0 2px 10px #000;
  transition: color 180ms;
}

.header nav a:hover {
  color: var(--ember);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 860px;
  height: 100svh;
  max-height: 1250px;
  overflow: hidden;
  background: #10100e;
}

.teaser {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(4 4 3 / 72%), rgb(4 4 3 / 38%) 47%, rgb(4 4 3 / 8%) 80%),
    linear-gradient(180deg, rgb(4 4 3 / 53%), transparent 28%, transparent 64%, var(--black));
}

.hero-content {
  padding-top: 88px;
  padding-bottom: 130px;
}

.hero-lockup {
  width: min(55%, 670px);
}

.hero h1 {
  width: min(94%, 600px);
  margin-left: -8px;
}

.hero h1 img {
  width: 100%;
  filter: drop-shadow(0 4px 25px rgb(0 0 0 / 40%));
}

.tagline {
  margin-top: 31px;
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.5;
  color: #e5dbc9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 62px;
  padding: 17px 24px;
  background: var(--ember);
  color: #130f0a;
  font-size: 19px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgb(255 238 196 / 25%);
  transition:
    background 200ms,
    box-shadow 200ms;
}

.button .icon {
  filter: brightness(0);
}

.button:hover {
  background: #ebbd7d;
  box-shadow: 0 0 32px rgb(214 143 68 / 15%);
}

.explore {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-size: 18px;
  white-space: nowrap;
  padding-block: 12px;
  border-bottom: 1px solid #8e7e67;
}

.explore .icon {
  width: 18px;
  height: 18px;
  transition: transform 200ms;
}

.explore:hover .icon {
  transform: translateY(4px);
}

.hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.hero-bottom > p {
  font-size: 17px;
  color: #bdb4a5;
}

.video-controls {
  display: flex;
  gap: 28px;
}

.video-controls button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 12px;
  font-size: 17px;
}

.video-controls button:hover {
  color: var(--ember);
}

.video-controls .icon {
  width: 21px;
  height: 21px;
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 7%;
  padding-top: 130px;
  padding-bottom: 140px;
}

.story-image {
  position: relative;
  width: calc(100% + 55px);
  margin-left: -40px;
}

.story-image img {
  width: 100%;
}

.story-image::after {
  content: '';
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(90deg, var(--black), transparent 9%, transparent 84%, var(--black)),
    linear-gradient(180deg, var(--black), transparent 12%, transparent 86%, var(--black));
  pointer-events: none;
}

.story-copy {
  position: relative;
  padding-block: 20px;
}

.story-copy h2 {
  margin-bottom: 32px;
}

.story-copy > p {
  font-size: 20px;
  max-width: 520px;
}

.story-copy > p + p {
  margin-top: 25px;
}

.story-copy strong {
  color: var(--paper);
  font-weight: 600;
}

.mansion {
  padding-bottom: 125px;
}

.mansion > h2 {
  margin-bottom: 40px;
}

.main-scene {
  position: relative;
  display: block;
  width: 100%;
  background: #15130f;
  overflow: hidden;
}

.main-scene > img {
  width: 100%;
  aspect-ratio: 1.9;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.main-scene:hover > img {
  transform: scale(1.025);
}

.view-image {
  position: absolute;
  bottom: 25px;
  right: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgb(9 8 7 / 82%);
  padding: 13px 17px;
  font-size: 17px;
}

.scene-choices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 23px;
}

.scene-choice {
  text-align: left;
  padding-bottom: 14px;
  border-bottom: 2px solid transparent;
  color: #bcb3a6;
  transition:
    color 200ms,
    border-color 200ms;
}

.scene-choice > img {
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 250ms;
}

.scene-choice > span {
  display: block;
  margin-top: 15px;
  font-size: 18px;
}

.scene-choice:hover,
.scene-choice[aria-pressed='true'] {
  color: var(--paper);
  border-color: var(--ember);
}

.scene-choice:hover img,
.scene-choice[aria-pressed='true'] img {
  opacity: 1;
}

.last-word {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  padding-block: 88px 110px;
  border-top: 1px solid #383027;
}

.last-word h2 {
  font-size: clamp(86px, 9vw, 138px);
}

.last-word h2 span {
  color: #827569;
}

.follow {
  width: min(41%, 425px);
}

.follow p {
  margin-bottom: 26px;
  font-size: 20px;
}

.follow a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 17px 0;
  border-bottom: 1px solid #494033;
  font-size: 22px;
  transition: color 200ms;
}

.follow a:hover {
  color: var(--ember);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 26px;
  border-top: 1px solid #383027;
  padding-block: 39px 44px;
}

.footer .brand {
  width: 159px;
}

.footer > p {
  font-size: 18px;
}

.footer .copyright {
  font-size: 16px;
  color: #a99d8d;
}

dialog {
  width: min(1350px, calc(100% - 40px));
  max-height: calc(100svh - 40px);
  margin: auto;
  padding: 20px;
  color: var(--paper);
  background: var(--black);
  border: 1px solid #4a4034;
}

dialog::backdrop {
  background: rgb(0 0 0 / 92%);
}

body:has(dialog[open]) {
  overflow: hidden;
}

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 20px;
}

.viewer-bar p {
  font-size: 20px;
}

.viewer-bar button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  font-size: 18px;
}

.viewer-bar button span {
  font-size: 30px;
}

#large-image {
  width: 100%;
  max-height: calc(100svh - 160px);
  object-fit: contain;
}

#scratches {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .hero {
    min-height: 800px;
  }

  .hero-lockup {
    width: min(75%, 670px);
  }

  .hero h1 {
    width: 88%;
  }

  .hero-actions {
    gap: 23px;
  }

  .story {
    gap: 6%;
    padding-block: 85px 110px;
  }

  .story-image {
    width: calc(100% + 30px);
    margin-left: -24px;
  }

  .story-copy h2 {
    font-size: 8vw;
  }

  .footer > p:nth-child(2) {
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  :root {
    font-size: 18px;
    scroll-padding-top: 24px;
  }

  .wrap {
    width: calc(100% - 40px);
  }

  .header {
    padding: 25px 20px;
    gap: 20px;
  }

  .brand {
    width: 147px;
  }

  .header nav {
    font-size: 17px;
  }

  .header .section-link,
  .desktop-word {
    display: none;
  }

  .header nav a {
    gap: 7px;
    text-transform: capitalize;
  }

  .header nav .icon {
    width: 19px;
    height: 19px;
  }

  .hero {
    min-height: 780px;
    height: 100svh;
    max-height: 1100px;
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      rgb(4 4 3 / 58%),
      rgb(4 4 3 / 25%) 25%,
      rgb(4 4 3 / 36%) 67%,
      var(--black)
    );
  }

  .teaser {
    object-position: 53% center;
  }

  .hero-content {
    padding: 128px 0 175px;
  }

  .hero-lockup {
    width: 100%;
    text-align: center;
  }

  .hero h1 {
    width: min(100%, 430px);
    margin: 0 auto;
  }

  .tagline {
    font-size: 24px;
    margin-top: 28px;
    line-height: 1.45;
  }

  .hero-actions {
    flex-direction: column;
    gap: 17px;
    margin-top: 26px;
  }

  .button {
    min-height: 59px;
    font-size: 19px;
    padding-inline: 26px;
  }

  .explore {
    font-size: 18px;
    padding-block: 10px;
  }

  .hero-bottom {
    bottom: 24px;
    flex-direction: column;
    align-items: center;
    gap: 9px;
  }

  .hero-bottom > p {
    font-size: 16px;
    text-align: center;
  }

  .video-controls {
    gap: 30px;
  }

  .video-controls button {
    font-size: 16px;
  }

  .story {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-block: 52px 86px;
  }

  .story-image {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .story-image img {
    max-height: 620px;
    object-fit: contain;
  }

  .story-copy {
    padding-top: 12px;
  }

  .story-copy h2 {
    font-size: clamp(70px, 15vw, 98px);
    margin-bottom: 26px;
  }

  .story-copy > p {
    font-size: 19px;
  }

  .story-copy > p + p {
    margin-top: 21px;
  }

  .mansion {
    padding-bottom: 76px;
  }

  .mansion > h2 {
    font-size: clamp(56px, 12vw, 82px);
    margin-bottom: 26px;
  }

  .main-scene > img {
    aspect-ratio: 1.1;
    object-position: center;
  }

  .view-image {
    right: 13px;
    bottom: 14px;
    font-size: 16px;
    padding: 11px 13px;
  }

  .view-image .icon {
    width: 19px;
    height: 19px;
  }

  .scene-choices {
    grid-template-columns: 1fr 1fr;
    gap: 21px 17px;
    margin-top: 18px;
  }

  .scene-choice > img {
    aspect-ratio: 1.5;
  }

  .scene-choice:nth-child(2) > img {
    object-position: right center;
  }

  .scene-choice > span {
    font-size: 17px;
    margin-top: 12px;
  }

  .last-word {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
    padding-block: 62px 75px;
  }

  .last-word h2 {
    font-size: clamp(84px, 20vw, 124px);
  }

  .follow {
    width: 100%;
  }

  .follow p {
    font-size: 19px;
    margin-bottom: 14px;
  }

  .follow a {
    font-size: 22px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding-block: 33px 36px;
  }

  .footer .brand {
    width: 157px;
  }

  .footer > p:nth-child(2) {
    font-size: 17px;
  }

  .footer .copyright {
    font-size: 16px;
  }

  dialog {
    width: calc(100% - 20px);
    max-height: calc(100svh - 24px);
    padding: 14px;
  }

  .viewer-bar {
    gap: 15px;
    margin-bottom: 14px;
  }

  .viewer-bar p,
  .viewer-bar button {
    font-size: 17px;
  }

  #scratches {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .reveal.pending {
    opacity: 1;
    transform: none;
  }

  #scratches {
    display: none;
  }
}

.motion-off {
  scroll-behavior: auto;
}

.motion-off *,
.motion-off *::before,
.motion-off *::after {
  transition: none !important;
  animation: none !important;
}

.motion-off .reveal.pending {
  opacity: 1;
  transform: none;
}

.motion-off #scratches {
  display: none;
}
