:root {
  --bg: #0e1214;
  --ink: #ffffff;
  --header-h: 80px;
  --cut: 11px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
}

.screen {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  height: var(--header-h);
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 40px;
  background: var(--bg);
}

.logo {
  display: block;
  height: 16px;
  width: auto;
}

.hero {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
}

.panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #181b1d;
}

.panel__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.panel__mark {
  position: absolute;
  z-index: 2;
  top: 8%;
  left: 50%;
  width: min(78%, 340px);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.panel:last-of-type .panel__mark {
  width: min(84%, 420px);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.panel::before {
  top: 0;
  height: 26%;
  background: linear-gradient(to bottom, rgba(14, 18, 20, 0.42), rgba(14, 18, 20, 0));
}

.panel::after {
  bottom: 0;
  height: 24%;
  background: linear-gradient(to top, rgba(14, 18, 20, 0.5), rgba(14, 18, 20, 0));
}

.cta {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 36px;
  color: var(--ink);
  font: 400 18px/1 "Nunito Sans", Arial, Helvetica, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.cta__border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.cta:hover {
  color: var(--bg);
}

.cta:hover path {
  fill: #fff;
}

.cta:focus-visible {
  outline: none;
}

.cta:focus-visible path {
  stroke: #c78e66;
}

@media (max-width: 900px) {
  :root {
    --header-h: 56px;
  }

  .header {
    padding: 0 20px;
  }

  .logo {
    height: 14px;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.15fr 1fr;
  }

  .panel:first-of-type {
    grid-column: 1 / -1;
  }

  .panel__mark {
    top: 18px;
    width: min(70%, 240px);
  }

  .panel:last-of-type .panel__mark {
    top: 14px;
    width: min(88%, 190px);
  }

  .cta {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: auto;
    margin: 12px 16px max(12px, env(safe-area-inset-bottom));
    padding: 18px 20px;
  }
}

@media (max-width: 360px) {
  .cta {
    font-size: 16px;
  }
}

@media (max-height: 520px) and (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1.05fr 1fr;
    grid-template-rows: 1fr;
  }

  .panel:first-of-type {
    grid-column: auto;
  }

  .panel__mark,
  .panel:last-of-type .panel__mark {
    top: 12px;
    width: min(80%, 180px);
  }

  .cta {
    min-height: 48px;
    margin: 8px 16px;
    padding: 14px 20px;
  }
}
