@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --petrol: #0c2f3b;
  --brick: #a95742;
  --blue: #9bbbc2;
  --ochre: #d5b766;
  --paper: #f6f3ec;
  --ink: #102b34;
  --mist: #dce5e4;
  --gutter: clamp(1.5rem, 4.2vw, 4rem);
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.landing {
  display: grid;
  grid-template-columns: minmax(25rem, 5fr) minmax(32rem, 7fr);
  grid-template-rows: clamp(6.5rem, 13vh, 8.25rem) 1fr;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.brand-panel {
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  background: var(--paper);
}

.wordmark {
  display: block;
  width: clamp(10.25rem, 17vw, 15rem);
  height: auto;
}

.signal-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-width: 0;
}

.signal {
  min-width: 0;
  transform-origin: left;
  animation: reveal-x 700ms cubic-bezier(0.2, 0, 0, 1) both;
}

.signal--brick {
  background: var(--brick);
}

.signal--blue {
  background: var(--blue);
  animation-delay: 80ms;
}

.signal--ochre {
  background: var(--ochre);
  animation-delay: 160ms;
}

.message {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(3rem, 8vh, 6.5rem) var(--gutter)
    clamp(2.6rem, 6.5vh, 5rem);
  color: #fff;
  background: var(--brick);
}

.message::after {
  position: absolute;
  right: clamp(2rem, 4vw, 4rem);
  bottom: clamp(2.75rem, 7vh, 5.25rem);
  width: clamp(3rem, 6vw, 6rem);
  height: 0.28rem;
  background: currentColor;
  content: "";
  transform-origin: left;
  animation: reveal-x 650ms 650ms cubic-bezier(0.2, 0, 0, 1) both;
}

.message h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.8rem, 5.7vw, 6.6rem);
  font-weight: 730;
  letter-spacing: -0.055em;
  line-height: 0.97;
  text-wrap: balance;
  animation: rise-in 700ms 140ms cubic-bezier(0.2, 0, 0, 1) both;
}

.message p {
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 500;
  line-height: 1.3;
  animation: rise-in 700ms 260ms cubic-bezier(0.2, 0, 0, 1) both;
}

.quarter-field {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--petrol);
  isolation: isolate;
}

.field {
  position: absolute;
  animation: field-in 850ms cubic-bezier(0.2, 0, 0, 1) both;
}

.field--sky {
  inset: 0 0 45% 35%;
  background: var(--blue);
  animation-delay: 160ms;
}

.field--light {
  inset: 55% 47% 0 0;
  background: var(--paper);
  animation-delay: 240ms;
}

.field--sun {
  top: 12%;
  right: 9%;
  z-index: 2;
  width: clamp(5.5rem, 11vw, 11rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ochre);
  animation: sun-in 850ms 430ms cubic-bezier(0.2, 0, 0, 1) both;
}

.field--brick {
  right: 0;
  bottom: 0;
  width: 47%;
  height: 45%;
  background: var(--brick);
  animation-delay: 320ms;
}

.field--petrol {
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  background: var(--petrol);
}

.architecture {
  position: absolute;
  z-index: 3;
  inset: 14% 10% 0 13%;
  animation: rise-in 900ms 260ms cubic-bezier(0.2, 0, 0, 1) both;
}

.building {
  position: absolute;
  bottom: 0;
  border: 2px solid rgba(246, 243, 236, 0.72);
  border-bottom: 0;
  background-image:
    linear-gradient(90deg, transparent calc(100% - 2px), rgba(246, 243, 236, 0.46) calc(100% - 2px)),
    linear-gradient(0deg, transparent calc(100% - 2px), rgba(246, 243, 236, 0.46) calc(100% - 2px));
  background-size: clamp(2.25rem, 4vw, 4rem) clamp(2.25rem, 4vw, 4rem);
}

.building--one {
  left: 0;
  width: 37%;
  height: 63%;
}

.building--two {
  left: 36.6%;
  width: 31%;
  height: 86%;
}

.building--three {
  right: 0;
  width: 33%;
  height: 49%;
}

.horizon {
  position: absolute;
  right: -15%;
  bottom: 18%;
  left: -18%;
  height: 2px;
  background: rgba(246, 243, 236, 0.72);
}

@keyframes reveal-x {
  from {
    transform: scaleX(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
}

@keyframes field-in {
  from {
    opacity: 0;
    transform: translateY(7%);
  }
}

@keyframes sun-in {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
}

@media (max-width: 800px) {
  .landing {
    grid-template-columns: 1fr;
    grid-template-rows: 6.5rem 0.75rem minmax(25rem, 58svh) minmax(13rem, 1fr);
    min-height: 100svh;
    overflow: visible;
  }

  .brand-panel {
    padding: 0 1.5rem;
  }

  .wordmark {
    width: min(11.5rem, 58vw);
  }

  .signal-strip {
    grid-row: 2;
  }

  .message {
    grid-row: 3;
    min-height: 25rem;
    padding: clamp(3rem, 7vh, 4rem) 1.5rem 2.25rem;
  }

  .message::after {
    right: 1.5rem;
    bottom: 2.7rem;
    width: 3rem;
    height: 0.22rem;
  }

  .message h1 {
    max-width: 9ch;
    font-size: clamp(3.2rem, 15vw, 5.3rem);
    line-height: 0.96;
  }

  .message p {
    font-size: 1.12rem;
  }

  .quarter-field {
    grid-row: 4;
    min-height: 13rem;
  }

  .field--sky {
    inset: 0 0 42% 42%;
  }

  .field--petrol {
    width: 42%;
  }

  .field--light {
    top: 58%;
    right: 45%;
  }

  .field--brick {
    width: 45%;
    height: 42%;
  }

  .field--sun {
    top: 12%;
    right: 8%;
    width: 4.5rem;
  }

  .architecture {
    inset: 15% 8% 0 12%;
  }

  .building {
    background-size: 2rem 2rem;
  }
}

@media (max-height: 650px) and (orientation: landscape) {
  .landing {
    grid-template-rows: 5rem 1fr;
  }

  .message {
    padding-top: 2rem;
    padding-bottom: 1.75rem;
  }

  .message h1 {
    font-size: clamp(3rem, 7vw, 5rem);
  }

  .message::after {
    bottom: 2rem;
  }
}

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