:root {
  --cream: #e8dfca;
  --bronze: #8a674e;
  --black: #080908;
  --header-height: clamp(64px, 8vh, 92px);
  --footer-height: clamp(44px, 4.9vh, 58px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 1024px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--black);
}

body {
  color: var(--cream);
  font-family: Raleway, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mobile-view {
  display: none;
}

.tablet-view {
  display: none;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.haus {
  display: grid;
  grid-template-rows: var(--header-height) minmax(0, 1fr) var(--footer-height);
  width: 100%;
  height: 100vh;
  height: 100svh;
  background: var(--black);
}

.haus-header,
.haus-footer {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(5, 6, 5, 0.99);
}

.haus-header {
  padding: 0 clamp(22px, 2.5vw, 48px);
  border-top: 1px solid rgba(232, 223, 202, 0.18);
  animation: header-in 700ms 100ms var(--ease) both;
}

.haus-mark {
  justify-self: start;
  display: block;
  width: clamp(42px, 3.3vw, 67px);
  text-decoration: none;
}

.haus-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.haus-status {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  margin: 0;
  color: rgba(232, 223, 202, 0.9);
  font-family: "Gravesend Sans", Raleway, sans-serif;
  font-size: clamp(10px, 0.94vw, 18px);
  font-weight: 700;
  letter-spacing: 0.42em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.spark {
  display: block;
  width: clamp(17px, 1.35vw, 28px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  background: var(--cream);
  clip-path: polygon(50% 0, 57% 42%, 100% 50%, 57% 58%, 50% 100%, 43% 58%, 0 50%, 43% 42%);
}

.haus-year {
  justify-self: end;
  margin: 0;
  font-family: "Gravesend Sans", Raleway, sans-serif;
  font-size: clamp(8px, 0.55vw, 11px);
  font-weight: 700;
  letter-spacing: 0.42em;
  line-height: 1;
  text-transform: uppercase;
}

.haus-scene {
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: #0c0c0b;
}

.haus-scene__image,
.haus-scene__shade,
.haus-scene__brografic-light,
.doors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.haus-scene__image {
  z-index: -3;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  animation: scene-in 900ms var(--ease) both;
}

.haus-scene__shade {
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), transparent 24%, transparent 75%, rgba(0, 0, 0, 0.17)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05), transparent 8%, transparent 92%, rgba(0, 0, 0, 0.05));
}

.haus-scene__brografic-light {
  z-index: -1;
  inset: 0 auto 0 0;
  width: 32%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
  opacity: 0;
  background:
    radial-gradient(ellipse 86% 78% at 48% 55%, rgba(235, 172, 98, 0.2), rgba(205, 127, 61, 0.05) 58%, transparent 88%),
    linear-gradient(180deg, rgba(230, 169, 95, 0.08), transparent 42%, rgba(234, 165, 90, 0.12));
  mix-blend-mode: screen;
  transition: opacity 520ms var(--ease);
}

.haus.is-brografic-hover .haus-scene__brografic-light {
  opacity: 0.82;
}

.enter-cursor {
  --cursor-x: -100px;
  --cursor-y: -100px;
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  display: flex;
  width: clamp(58px, 4vw, 68px);
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(232, 223, 202, 0.76);
  border-radius: 50%;
  background: rgba(8, 9, 8, 0.92);
  color: var(--cream);
  font-family: "Gravesend Sans", Raleway, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate(-50%, -50%) scale(0.82);
  transition: opacity 160ms ease, transform 220ms var(--ease);
  will-change: transform;
}

.enter-cursor b {
  font-family: Raleway, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.enter-cursor.is-visible {
  opacity: 1;
  transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate(-50%, -50%) scale(1);
}

.doors {
  z-index: 3;
  display: grid;
  grid-template-columns: 26.5% 22.7% 24.4% 26.4%;
}

.door {
  position: relative;
  min-width: 0;
  color: var(--cream);
  animation: door-in 750ms var(--ease) both;
}

.door--active {
  z-index: 2;
}

.door:nth-child(1) { animation-delay: 220ms; }
.door:nth-child(2) { animation-delay: 300ms; }
.door:nth-child(3) { animation-delay: 380ms; }
.door:nth-child(4) { animation-delay: 460ms; }

.door__main-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .has-custom-cursor .door--active .door__main-link {
    cursor: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .enter-cursor {
    display: none;
  }
}

.door__main-link:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: -5px;
}

.door__instagram {
  position: absolute;
  z-index: 7;
  display: block;
  width: 34px;
  height: 34px;
  opacity: 0;
}

.door__instagram:focus-visible {
  opacity: 1;
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

.door__coming {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  padding: 8px 11px 7px;
  border: 1px solid rgba(180, 133, 96, 0.35);
  background: rgba(7, 8, 7, 0.72);
  color: #bc8f6b;
  font-family: "Gravesend Sans", Raleway, sans-serif;
  font-size: clamp(8px, 0.54vw, 11px);
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px);
  transition: opacity 320ms var(--ease), transform 380ms var(--ease);
}

.door--closed:hover .door__coming {
  opacity: 1;
  transform: translateY(0);
}

.haus-footer {
  display: flex;
  justify-content: center;
  padding: 0 clamp(22px, 1.9vw, 38px);
  border-bottom: 1px solid rgba(232, 223, 202, 0.1);
  animation: footer-in 700ms 300ms var(--ease) both;
}

.footer-linkedin {
  display: grid;
  width: clamp(26px, 1.7vw, 34px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 4px;
  background: rgba(232, 223, 202, 0.18);
  font-size: clamp(13px, 0.9vw, 18px);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

@keyframes scene-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes header-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes footer-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes door-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 767px) {
  html,
  body {
    min-width: 0;
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .haus {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 100svh;
  }

  .haus > .haus-header,
  .haus > .haus-scene,
  .haus > .haus-footer {
    display: none;
  }

  .mobile-view {
    display: block;
    width: 100%;
    min-height: 100svh;
    background: var(--black);
  }

  .mobile-header {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 58px;
    align-items: center;
    height: clamp(58px, 16vw, 68px);
    padding: 0 16px;
    border-top: 1px solid rgba(232, 223, 202, 0.18);
    background: #050605;
    animation: header-in 700ms 100ms var(--ease) both;
  }

  .mobile-wordmark {
    display: block;
    width: 74px;
    height: 12px;
    overflow: hidden;
  }

  .mobile-wordmark img {
    display: block;
    width: 100%;
    height: auto;
  }

  .mobile-status {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    color: rgba(232, 223, 202, 0.9);
    font-family: "Gravesend Sans", Raleway, sans-serif;
    font-size: clamp(7px, 2.15vw, 9px);
    font-weight: 700;
    letter-spacing: 0.3em;
    line-height: 1.55;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-status .spark {
    width: 9px;
  }

  .mobile-year {
    justify-self: end;
    margin: 0;
    font-family: "Gravesend Sans", Raleway, sans-serif;
    font-size: 6px;
    font-weight: 700;
    letter-spacing: 0.28em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-scene {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #080908;
  }

  .mobile-scene__image {
    display: block;
    width: 100%;
    height: auto;
    animation: scene-in 900ms var(--ease) both;
  }

  .mobile-brografic-link {
    position: absolute;
    z-index: 2;
    inset: 0 0 auto;
    height: 36.6%;
    text-decoration: none;
  }

  .mobile-instagram {
    position: absolute;
    z-index: 4;
    top: 21.9%;
    left: 36.7%;
    display: block;
    width: 44px;
    height: 44px;
  }

  .mobile-footer-mark {
    position: absolute;
    z-index: 4;
    bottom: 11px;
    left: 20px;
    display: block;
    width: 26px;
  }

  .mobile-footer-mark img {
    display: block;
    width: 100%;
    height: auto;
  }

  .mobile-linkedin {
    position: absolute;
    z-index: 4;
    right: 20px;
    bottom: 11px;
    display: grid;
    width: 22px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 4px;
    background: rgba(232, 223, 202, 0.18);
    color: var(--cream);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
  }

  .mobile-brografic-link:focus-visible,
  .mobile-instagram:focus-visible,
  .mobile-footer-mark:focus-visible,
  .mobile-linkedin:focus-visible,
  .mobile-wordmark:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: -3px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  html,
  body {
    min-width: 0;
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .haus {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 100svh;
  }

  .haus > .haus-header,
  .haus > .haus-scene,
  .haus > .haus-footer,
  .mobile-view {
    display: none;
  }

  .tablet-view {
    position: relative;
    display: block;
    width: 100%;
    min-height: 100svh;
    background: var(--black);
  }

  .tablet-header {
    position: absolute;
    z-index: 6;
    top: 0;
    left: 0;
    display: grid;
    width: 100%;
    height: clamp(58px, 7.5vw, 76px);
    grid-template-columns: 84px minmax(0, 1fr) 84px;
    align-items: center;
    padding: 0 clamp(26px, 4vw, 42px);
    animation: header-in 700ms 100ms var(--ease) both;
  }

  .tablet-mark {
    display: block;
    width: clamp(36px, 4.6vw, 47px);
  }

  .tablet-mark img {
    display: block;
    width: 100%;
    height: auto;
  }

  .tablet-status {
    margin: 0;
    color: rgba(232, 223, 202, 0.92);
    font-family: "Gravesend Sans", Raleway, sans-serif;
    font-size: clamp(8px, 1.15vw, 11px);
    font-weight: 700;
    letter-spacing: 0.42em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .tablet-year {
    justify-self: end;
    margin: 0;
    font-family: "Gravesend Sans", Raleway, sans-serif;
    font-size: clamp(6px, 0.78vw, 8px);
    font-weight: 700;
    letter-spacing: 0.32em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .tablet-scene {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #050605;
  }

  .tablet-scene__image {
    display: block;
    width: 100%;
    height: auto;
    animation: scene-in 900ms var(--ease) both;
  }

  .tablet-brografic-link {
    position: absolute;
    z-index: 2;
    top: 26.2%;
    left: 5.8%;
    width: 43.5%;
    height: 29.5%;
  }

  .tablet-instagram {
    position: absolute;
    z-index: 4;
    top: 29.3%;
    left: 42.1%;
    width: 44px;
    height: 44px;
  }

  .tablet-linkedin {
    position: absolute;
    z-index: 4;
    bottom: 2.5%;
    left: 48%;
    width: 44px;
    height: 44px;
  }

  .tablet-brografic-link:focus-visible,
  .tablet-instagram:focus-visible,
  .tablet-linkedin:focus-visible,
  .tablet-mark:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: -3px;
  }
}

@media (max-width: 359px) {
  .mobile-header {
    grid-template-columns: 60px minmax(0, 1fr) 48px;
    padding: 0 12px;
  }

  .mobile-wordmark {
    width: 64px;
    height: 10.5px;
  }

  .mobile-status {
    gap: 5px;
    letter-spacing: 0.22em;
  }

  .mobile-status .spark {
    width: 7px;
  }

  .mobile-year {
    font-size: 5.5px;
    letter-spacing: 0.2em;
  }
}
