:root {
  --paper: #f3efe7;
  --ultramarine: #0015ff;
  --deep-blue: #001a92;
  --ink: #0b0d1a;
  --frame: 40px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 640px;
  height: 100svh;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", sans-serif;
  font-weight: 400;
}

a {
  font: inherit;
}

a {
  color: var(--ultramarine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:focus-visible {
  outline: 1px solid var(--ultramarine);
  outline-offset: 4px;
}

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

.rule {
  position: fixed;
  z-index: 4;
  display: block;
  background: var(--deep-blue);
  pointer-events: none;
}

.rule--top,
.rule--bottom {
  left: 0;
  width: 100%;
  height: 1px;
}

.rule--top {
  top: var(--frame);
}

.rule--bottom {
  bottom: var(--frame);
}

.rule--left,
.rule--right {
  top: 0;
  width: 1px;
  height: 100%;
}

.rule--left {
  left: var(--frame);
}

.rule--right {
  right: var(--frame);
}

.page {
  position: fixed;
  inset: var(--frame);
  display: grid;
  grid-template-columns: 40% 60%;
}

.identity {
  position: relative;
  min-width: 0;
  background: var(--paper);
}

.brand {
  --brand-width: clamp(280px, 26vw, 440px);
  position: absolute;
  top: 50%;
  left: 64px;
  width: max-content;
  transform: translateY(-50%);
}

.brand__logo {
  display: block;
  width: var(--brand-width);
  height: auto;
}

.brand__signature {
  width: var(--brand-width);
  margin: 10px 0 0;
  padding-right: 8px;
  color: rgb(11 13 26 / 85%);
  font-family: "Figtree", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  text-align: right;
}

.details {
  position: absolute;
  right: 24px;
  bottom: 40px;
  left: 64px;
  display: grid;
  gap: 8px;
}

.details p {
  margin: 0;
}

.details__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5em;
  align-items: baseline;
  color: rgb(11 13 26 / 60%);
  font-size: 12px;
  line-height: 1.3;
}

.visual {
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid var(--deep-blue);
}

.visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
  opacity: 0;
  animation: reveal 600ms ease-out forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
  }
}

@media (max-width: 1023px) {
  :root {
    --frame: 16px;
  }

  body {
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
  }

  body::-webkit-scrollbar {
    display: none;
  }

  .page {
    position: relative;
    inset: auto;
    width: calc(100% - (2 * var(--frame)));
    min-height: calc(100svh - (2 * var(--frame)));
    margin: var(--frame);
    display: flex;
    flex-direction: column;
  }

  .identity {
    display: contents;
  }

  .brand {
    --brand-width: min(360px, 72vw);
    position: static;
    order: 1;
    width: 100%;
    padding: 48px 20px 24px;
    transform: none;
    text-align: center;
  }

  .brand__logo {
    margin: 0 auto;
  }

  .brand__signature {
    margin: 10px auto 0;
    font-size: 18px;
  }

  .visual {
    order: 2;
    width: 100%;
    height: 50svh;
    flex: none;
    border-top: 1px solid var(--deep-blue);
    border-right: 0;
    border-bottom: 1px solid var(--deep-blue);
    border-left: 0;
  }

  .details {
    position: static;
    order: 3;
    display: grid;
    justify-items: center;
    width: 100%;
    padding: 24px 16px;
    text-align: center;
  }

  .details__footer {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .visual {
    height: 52svh;
  }

  .brand__logo {
    max-width: none;
  }

  .brand {
    --brand-width: min(320px, 72vw);
  }
}

@media (max-width: 480px) and (max-height: 700px) {
  .brand {
    padding-top: 32px;
    padding-bottom: 18px;
  }

  .brand__logo {
    width: var(--brand-width);
  }

  .brand {
    --brand-width: min(260px, 72vw);
  }

  .details {
    padding-top: 18px;
    padding-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visual img {
    opacity: 1;
    animation: none;
  }
}
