:root {
  --ink: #070808;
  --paper: #ecebe6;
  --muted: rgba(236, 235, 230, .64);
  --hairline: rgba(236, 235, 230, .34);
  --frame-width: min(74vw, 150svh);
  --rail-width: calc((100vw - var(--frame-width)) / 2);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Helvetica Neue", "Nimbus Sans L", Helvetica, Arial, sans-serif;
}

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

.landing {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.pinocchio {
  position: absolute;
  inset: 0;
  width: var(--frame-width);
  height: 100%;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.left-rail,
.right-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: var(--rail-width);
  min-width: 128px;
  background: var(--ink);
}

.left-rail { left: 0; }
.right-rail { right: 0; }

.identity {
  position: absolute;
  top: 21px;
  left: 22px;
  right: 16px;
}

.identity h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.05vw, 39px);
  line-height: .86;
  letter-spacing: .205em;
  font-weight: 500;
  text-rendering: geometricPrecision;
}

.identity p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.15;
  letter-spacing: .105em;
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 400;
}

.downloads {
  position: absolute;
  top: 48%;
  left: 22px;
  right: 16px;
  transform: translateY(-50%);
}

.downloads a {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 14px 0 13px;
  border-top: 1px solid var(--hairline);
  transition: opacity .18s ease;
}

.downloads a:last-child { border-bottom: 1px solid var(--hairline); }
.downloads a:hover, .downloads a:focus-visible { opacity: .62; outline: none; }

.index,
.downloads small,
.contact span,
.registered {
  font-size: 6px;
  line-height: 1.25;
  letter-spacing: .145em;
  text-transform: uppercase;
  font-weight: 400;
}

.index { color: var(--muted); }

.file {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.downloads strong {
  font-size: 14px;
  line-height: 1.18;
  letter-spacing: .008em;
  text-transform: uppercase;
  font-weight: 400;
  text-wrap: balance;
}

.downloads small {
  color: var(--muted);
  font-size: 6px;
}

.contact {
  position: absolute;
  left: 16px;
  right: 22px;
  bottom: 70px;
  text-align: right;
}

.contact span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
}

.contact a {
  display: inline-block;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .005em;
  font-weight: 400;
}

.registered {
  position: absolute;
  right: 22px;
  bottom: 22px;
  margin: 0;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.mobile-bottom { display: none; }

@media (max-width: 900px) {
  :root { --frame-width: 100vw; }

  .pinocchio {
    top: 15svh;
    bottom: auto;
    width: 100vw;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    object-position: center;
  }

  .left-rail,
  .right-rail {
    width: 100%;
    min-width: 0;
    background: transparent;
    pointer-events: none;
  }

  .right-rail { display: none; }

  .identity {
    z-index: 2;
    top: 18px;
    left: 15px;
    right: 15px;
    pointer-events: auto;
  }

  .identity h1 {
    margin-bottom: 7px;
    font-size: 23px;
  }

  .identity p { font-size: 7px; }

  .downloads {
    z-index: 2;
    top: calc(15svh + 66.666vw + 26px);
    left: 15px;
    right: 15px;
    bottom: auto;
    transform: none;
    pointer-events: auto;
  }

  .downloads a { padding: 11px 0 10px; }
  .downloads strong { font-size: 13px; }

  .mobile-bottom {
    position: absolute;
    z-index: 4;
    left: 15px;
    right: 15px;
    bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
  }

  .mobile-bottom a {
    font-size: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--hairline);
  }

  .mobile-bottom span {
    max-width: 112px;
    color: var(--muted);
    font-size: 5.5px;
    line-height: 1.35;
    letter-spacing: .1em;
    text-align: right;
    text-transform: uppercase;
  }
}

@media (max-height: 620px) and (min-width: 901px) {
  .identity { top: 15px; }
  .downloads a { padding-block: 10px; }
  .contact { bottom: 52px; }
  .registered { bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .downloads a { transition: none; }
}
/* ========================================
   PIAGRAPH — SELECTED WORK GALLERY
   ======================================== */

.selected-gallery {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 70px 22px 90px;
  background: var(--ink);
}

.selected-gallery .gallery-head {
  max-width: 1400px;
  margin: 0 auto 28px;
}

.selected-gallery .gallery-head span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.25;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.selected-gallery .gallery-head small {
  display: block;
  color: var(--muted);
  font-size: 6px;
  line-height: 1.25;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gallery-grid {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #111;
  aspect-ratio: 4 / 5;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease, opacity .45s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.018);
  opacity: .92;
}


/* TABLET */

@media (max-width: 900px) {

  .selected-gallery {
    padding: 55px 15px 75px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}


/* MOBILE */

@media (max-width: 560px) {

  .selected-gallery {
    padding: 45px 15px 65px;
  }

  .selected-gallery .gallery-head {
    margin-bottom: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gallery-grid figure {
    aspect-ratio: auto;
  }

  .gallery-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

  .gallery-grid img {
    transition: none;
  }

  .gallery-grid figure:hover img {
    transform: none;
  }
}
/* ========================================
   PIAGRAPH — SELECTED WORK GALLERY
   ======================================== */

.selected-gallery {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: 70px 22px 90px;
  background: var(--ink);
}

.selected-gallery .gallery-head {
  max-width: 1400px;
  margin: 0 auto 28px;
}

.selected-gallery .gallery-head span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.25;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.selected-gallery .gallery-head small {
  display: block;
  color: var(--muted);
  font-size: 6px;
  line-height: 1.25;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gallery-grid {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #111;
  aspect-ratio: 4 / 5;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease, opacity .45s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.018);
  opacity: .92;
}


/* TABLET */

@media (max-width: 900px) {

  .selected-gallery {
    padding: 55px 15px 75px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}


/* MOBILE */

@media (max-width: 560px) {

  .selected-gallery {
    padding: 45px 15px 65px;
  }

  .selected-gallery .gallery-head {
    margin-bottom: 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gallery-grid figure {
    aspect-ratio: auto;
  }

  .gallery-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

  .gallery-grid img {
    transition: none;
  }

  .gallery-grid figure:hover img {
    transform: none;
  }
}

/* ENABLE PAGE SCROLL */

html,
body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.landing {
  min-height: 100vh;
}