:root {
  color-scheme: light;
  --ink: #333333;
  --muted: #333333;
  --paper: #ffffff;
  --line: #d9d6d2;
  --soft: #f3f1ef;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Futura PT", Futura, "Helvetica Neue", Arial, sans-serif;
}

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

.cover {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.gallery {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-height: 100vh;
  background: transparent;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1400ms var(--ease);
}

.slide.is-active {
  opacity: 1;
}

.copy-panel {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px 60px;
  background: #fff;
  text-align: center;
}

.byline {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  margin: 0;
  font-size: 10px;
  font-family: "Brandon Grotesque", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

.identity {
  width: 100%;
}
.identity h1,.identity p,.actions a,.byline{white-space:pre-wrap}
.identity h1 span{display:inline-block;white-space:pre}

.identity h1,
.portfolio h1 {
  margin: 0;
  font-family: "LTC Bodoni 175", Didot, "Bodoni MT", "Times New Roman", serif;
  font-size: 72px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}

.identity p,
.dek {
  margin: 30px 0 0;
  color: var(--muted);
  font-family: "Brandon Grotesque", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 9.16;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 0;
}

.actions a,
.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 14px 20px;
  font-family: "Futura PT", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.actions a:hover,
.back-link:hover {
  background: var(--ink);
  color: #fff;
}

.email {
  position: absolute;
  bottom: 40px;
  left: calc(50% - 16px);
  width: 32px;
  height: 32px;
  opacity: .18;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.email:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.email svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 34px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.portfolio {
  width: min(1180px, calc(100% - 48px));
  margin: 72px auto 96px;
}

.portfolio.narrow {
  width: min(760px, calc(100% - 48px));
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}

figure {
  margin: 0;
  background: transparent;
}

figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

figure:first-child img {
  aspect-ratio: 3 / 4;
}

figcaption {
  padding: 16px 18px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.back-link {
  margin-top: 42px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  .cover {
    grid-template-columns: 1fr;
  }

  .gallery,
  .copy-panel {
    min-height: 50vh;
    grid-column: 1;
  }
  .gallery { grid-row: 2; }
  .copy-panel { grid-row: 1; }
  .identity h1 { font-size: 40px; }
  .identity p { line-height: 2; margin-top: 30px; }
  .actions { margin-top: 30px; }

  .copy-panel {
    padding: 96px 24px 88px;
  }

  .byline {
    top: 34px;
    left: 0;
  }

  .email {
    bottom: 30px;
    left: calc(50% - 16px);
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
