:root {
  --ink: #f8f4ea;
  --muted: rgba(248, 244, 234, .72);
  --line: rgba(248, 244, 234, .26);
  --dark: #10100d;
  --copper: #d88b57;
  --cyan: #7dd7d8;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--dark);
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.stage {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 44px);
  overflow: hidden;
}

.photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(9, 9, 7, .92) 0%, rgba(12, 12, 10, .68) 42%, rgba(9, 9, 7, .22) 100%),
    url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=2200&q=88") center / cover;
  transform: scale(1.03);
}

.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 24%, rgba(125, 215, 216, .22), transparent 30%),
    radial-gradient(circle at 78% 68%, rgba(216, 139, 87, .28), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .54));
  mix-blend-mode: screen;
}

.grain {
  position: absolute;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, .16) 42% 43%, transparent 43% 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 9px);
  transform: rotate(-7deg);
}

.panel {
  width: min(980px, 100%);
  margin-right: auto;
}

.origin {
  display: inline-flex;
  align-items: center;
  margin: 0 0 20px;
  line-height: 1;
}

.origin img {
  display: block;
  width: clamp(190px, 18vw, 282px);
  height: auto;
  aspect-ratio: 807 / 127;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55));
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 8vw, 106px);
  line-height: .91;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 640px;
  margin: clamp(22px, 3vw, 34px) 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.45;
}

.line {
  width: min(540px, 80%);
  height: 1px;
  margin: clamp(26px, 4vw, 42px) 0 18px;
  background: linear-gradient(90deg, var(--copper), var(--cyan), transparent);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 820px;
  color: rgba(248, 244, 234, .86);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.project {
  position: absolute;
  right: clamp(18px, 3vw, 44px);
  bottom: clamp(76px, 8vw, 112px);
  width: min(310px, calc(100% - 36px));
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.project > span,
.project small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project__item {
  margin-top: 10px;
}

.project a {
  display: inline-block;
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 750;
  border-bottom: 1px solid rgba(248, 244, 234, .45);
}

.legal {
  position: absolute;
  left: clamp(18px, 3vw, 44px);
  bottom: clamp(18px, 3vw, 36px);
  display: flex;
  gap: 18px;
  color: rgba(248, 244, 234, .68);
  font-size: 13px;
}

.brand-footer {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.2vw, 24px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-items: center;
  gap: 9px;
  color: rgba(248, 244, 234, .76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
  line-height: 1;
  max-height: 26px;
  overflow: hidden;
}

.brand-footer img {
  display: block;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .42));
  opacity: .9;
  flex: 0 0 22px;
}

.legal a:hover,
.project a:hover {
  color: var(--cyan);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 18px;
}

.modal.is-open {
  display: grid;
}

.modal__shade {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 5, .76);
  backdrop-filter: blur(16px);
}

.modal__box {
  position: relative;
  width: min(680px, 100%);
  max-height: min(82svh, 620px);
  overflow: auto;
  padding: clamp(24px, 4vw, 42px);
  color: #161511;
  background: rgba(248, 244, 234, .96);
  border: 1px solid rgba(255, 255, 255, .36);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .38);
}

.modal__box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--copper), var(--cyan));
}

.modal__box h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.modal__box p {
  margin: 0 0 15px;
  color: rgba(22, 21, 17, .78);
  line-height: 1.55;
}

.modal__box strong {
  color: #161511;
}

.modal__box a {
  color: #006b73;
  border-bottom: 1px solid rgba(0, 107, 115, .35);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #161511;
  font-size: 28px;
  line-height: 1;
  border: 0;
}

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

  .stage {
    width: 100%;
    max-width: 100vw;
    min-height: 100svh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 34px 20px 24px;
    overflow: hidden;
  }

  .photo {
    background:
      linear-gradient(180deg, rgba(9, 9, 7, .88) 0%, rgba(12, 12, 10, .7) 52%, rgba(9, 9, 7, .8) 100%),
      url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1300&q=86") center / cover;
  }

  .lead {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.5;
  }

  .panel {
    width: 100%;
    min-width: 0;
  }

  .origin {
    margin-bottom: 22px;
  }

  .origin img {
    width: min(226px, 72vw);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(38px, 12vw, 54px);
    line-height: .96;
    text-wrap: balance;
  }

  .line {
    width: 100%;
    margin: 30px 0 18px;
  }

  .facts {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: .08em;
  }

  .project {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 34px;
    padding-left: 14px;
    overflow-wrap: anywhere;
  }

  .project a {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.15;
  }

  .project small {
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .brand-footer {
    position: static;
    transform: none;
    width: 100%;
    justify-content: flex-start;
    margin: 34px 0 0;
    font-size: 10px;
    max-width: 100%;
    max-height: none;
    white-space: normal;
    gap: 7px;
    line-height: 1.25;
    letter-spacing: .08em;
    text-align: left;
  }

  .brand-footer img {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    flex-basis: 18px;
  }

  .legal {
    position: static;
    margin-top: 20px;
    flex-direction: row;
    gap: 16px;
    font-size: 12px;
  }

  .modal {
    padding: 12px;
  }

  .modal__box {
    width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
    overflow-wrap: anywhere;
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .stage {
    min-height: 100svh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-bottom: 28px;
    overflow: hidden;
  }

  .panel {
    width: min(820px, 100%);
  }

  .project {
    position: static;
    width: min(440px, 100%);
    margin-top: 34px;
  }

  .brand-footer {
    position: static;
    transform: none;
    margin: 30px auto 0;
  }

  .legal {
    position: static;
    margin-top: 18px;
  }
}

@media (max-height: 680px) {
  h1 {
    font-size: clamp(34px, 7vw, 74px);
  }

  .lead {
    font-size: 16px;
    margin-top: 16px;
  }

  .line {
    margin: 18px 0 14px;
  }

  .project {
    bottom: 62px;
  }
}
