:root {
  --ink: #11110f;
  --paper: #e8e3d8;
  --signal: #cf3c24;
  --line: rgba(17, 17, 15, 0.18);
  --muted: rgba(17, 17, 15, 0.58);
  --pad: clamp(1.25rem, 3.2vw, 3.75rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.landing {
  --mx: 0;
  --my: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  padding: var(--pad);
}

.landing::before,
.landing::after {
  position: absolute;
  z-index: -1;
  content: "";
  background: var(--line);
}

.landing::before {
  top: 0;
  bottom: 0;
  left: 52%;
  width: 1px;
  transform: scaleY(0);
  transform-origin: top;
  animation: rule-y 1.4s 0.15s var(--ease) forwards;
}

.landing::after {
  right: 0;
  bottom: 5.75rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  animation: rule-x 1.4s 0.28s var(--ease) forwards;
}

.masthead,
.footer {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  width: clamp(2.8rem, 4.4vw, 4.5rem);
  height: clamp(2.8rem, 4.4vw, 4.5rem);
  object-fit: contain;
  opacity: 0;
  transform: rotate(-18deg) scale(0.75);
  animation: mark-in 1.2s 0.35s var(--ease) forwards;
}

.brand__name {
  max-width: 5.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.place,
.eyebrow,
.coordinate {
  font-size: clamp(0.62rem, 0.68vw, 0.73rem);
  line-height: 1.25;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.place {
  display: grid;
  gap: 0.18rem;
  margin: 0;
  text-align: right;
}

.place span:last-child {
  color: var(--muted);
}

.hero {
  position: relative;
  z-index: 3;
  align-self: end;
  padding-bottom: clamp(3rem, 6vh, 5.5rem);
}

.eyebrow {
  margin: 0 0 clamp(1rem, 2.2vh, 1.5rem);
  color: var(--muted);
  opacity: 0;
  animation: fade-up 0.9s 0.75s var(--ease) forwards;
}

.statement {
  width: min-content;
  margin: 0;
  font-size: clamp(4.2rem, 12.8vw, 13.3rem);
  font-weight: 500;
  line-height: 0.74;
  letter-spacing: -0.09em;
}

.statement__line {
  display: block;
  width: max-content;
  opacity: 0;
  transform: translateY(0.35em);
  animation: word-in 1.15s 0.2s var(--ease) forwards;
}

.statement__line--second {
  padding-left: clamp(1rem, 5vw, 5.5rem);
  font-size: 0.51em;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.075em;
  animation-delay: 0.36s;
}

.period {
  color: var(--signal);
}

.cartography {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: clamp(-14rem, -9vw, -7rem);
  width: clamp(31rem, 58vw, 64rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0;
  transform: translate3d(
      calc(var(--mx) * 12px),
      calc(-50% + var(--my) * 12px),
      0
    )
    scale(0.93);
  animation: field-in 1.8s 0.15s var(--ease) forwards;
  will-change: transform;
}

.cartography::before,
.cartography::after {
  position: absolute;
  inset: 11.5%;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.cartography::after {
  inset: 24.5%;
}

.cartography__lines {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--line);
  stroke-width: 0.9;
  transform: rotate(calc(var(--mx) * 1deg));
}

.cartography__axis {
  position: absolute;
  background: var(--line);
}

.cartography__axis--x {
  top: 50%;
  right: -8%;
  left: -8%;
  height: 1px;
}

.cartography__axis--y {
  top: -8%;
  bottom: -8%;
  left: 50%;
  width: 1px;
}

.coordinate {
  position: absolute;
  color: var(--muted);
  background: var(--paper);
}

.coordinate--north {
  top: -0.5em;
  left: calc(50% + 1.25rem);
}

.coordinate--west {
  top: calc(50% + 1rem);
  left: -1rem;
}

.coordinate--origin {
  top: calc(50% + 0.9rem);
  left: calc(50% + 1.25rem);
  color: var(--signal);
}

.cartography__point {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
  transform: translate(-50%, -50%);
  animation: pulse 2.8s 1.6s ease-out infinite;
}

.footer {
  align-items: center;
  min-height: 2.5rem;
}

.email {
  position: relative;
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0;
  color: inherit;
  font-size: clamp(0.72rem, 0.8vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.045em;
  margin-left: auto;
  text-decoration: none;
  text-transform: uppercase;
}

.email::after {
  position: absolute;
  right: 0;
  bottom: 0.3rem;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.email svg {
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.25;
  transition: transform 0.45s var(--ease);
}

.email:hover::after {
  transform: scaleX(0.2);
  transform-origin: right;
}

.email:hover svg {
  transform: translate(0.18rem, -0.18rem);
}

.email:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 0.4rem;
}

@keyframes rule-y {
  to {
    transform: scaleY(1);
  }
}

@keyframes rule-x {
  to {
    transform: scaleX(1);
  }
}

@keyframes mark-in {
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes word-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes field-in {
  to {
    opacity: 1;
    transform: translate3d(
        calc(var(--mx) * 12px),
        calc(-50% + var(--my) * 12px),
        0
      )
      scale(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(207, 60, 36, 0.45);
  }
  55%,
  100% {
    box-shadow: 0 0 0 1.15rem rgba(207, 60, 36, 0);
  }
}

@media (max-width: 760px) {
  .landing {
    min-height: 100svh;
  }

  .landing::before {
    left: 1.25rem;
  }

  .landing::after {
    bottom: 7.5rem;
  }

  .place span:first-child {
    display: none;
  }

  .cartography {
    top: 45%;
    right: -19rem;
    width: 38rem;
    opacity: 0.72;
  }

  .hero {
    padding-bottom: 4.5rem;
  }

  .statement {
    font-size: clamp(4.25rem, 23vw, 7.8rem);
    line-height: 0.78;
  }

  .statement__line--second {
    max-width: calc(100vw - 2 * var(--pad));
    padding-left: 0.08em;
    font-size: 0.4em;
    letter-spacing: -0.065em;
  }

  .footer {
    justify-content: flex-end;
    min-height: 3rem;
  }
}

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

  .cartography {
    transform: translateY(-50%);
  }
}
