:root {
  --background: #ffffff;
  --text: #111111;
  --muted: #6f6f6f;
  --accent: #d95536;

  --line: rgba(17, 17, 17, 0.22);
  --soft-line: rgba(17, 17, 17, 0.09);
}

* {
  box-sizing: border-box;
}

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

  background: var(--background);
  color: var(--text);

  font-family:
    "Onest",
    Arial,
    sans-serif;
}


/* --------------------------------------------------
   PAPER / PRINT TEXTURE
-------------------------------------------------- */

body::before {
  content: "";

  position: fixed;
  z-index: 9999;

  inset: 0;

  pointer-events: none;

  opacity: 0.025;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='.6'/%3E%3C/svg%3E");

  mix-blend-mode: multiply;
}


/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

#viewport {
  position: fixed;
  inset: 0;

  overflow: hidden;

  background: var(--background);
}

#stage {
  position: absolute;

  left: 0;
  top: 0;

  will-change: transform;
}

.world {
  position: absolute;

  left: 0;
  top: 0;

  width: 2400px;
  height: 1800px;
}

.panel {
  position: absolute;

  transform: translate(-50%, -50%);
}


/* --------------------------------------------------
   HOME
-------------------------------------------------- */

.home {
  position: absolute;

  width: 720px;
  height: 650px;

  text-align: left;
}


/* --------------------------------------------------
   HOME PHOTO
-------------------------------------------------- */

.home-photo {
  position: absolute;

  z-index: 1;

  top: 258px;
  left: 57%;

  transform: translateX(-50%);

  width: 300px;

  background: #eeeeee;
}

.home-photo img {
  display: block;

  width: 100%;
  height: auto;

  filter:
    grayscale(1)
    contrast(1.27)
    brightness(0.95);
}

.home-photo::after {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  opacity: 0.13;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='.7'/%3E%3C/svg%3E");

  mix-blend-mode: multiply;
}


/* --------------------------------------------------
   HOME COPY
-------------------------------------------------- */

.home-copy {
  position: absolute;

  z-index: 2;

  left: 50%;
  top: 45px;

  transform: translateX(-50%);

  width: 660px;

  text-align: left;
}

.name {
  margin:
    0
    0
    14px
    4px;

  color: var(--text);

  font-size: 10px;

  font-weight: 650;

  text-transform: uppercase;

  letter-spacing: 0.18em;
}

.home-positioning {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.home h1,
.contact-header h2 {
  margin: 12px 0;
  color: var(--accent);
  font-size: 78px;
  line-height: 0.88;
  letter-spacing: -0.065em;
  font-weight: 800;
  text-transform: uppercase;
}

.home h1 span,
.contact-header h2 span {
  display: block;
}


/* --------------------------------------------------
   HOME QUOTE
-------------------------------------------------- */

.home-details {
  position: absolute;
  top: 225px;
  left: 4px;
  width: 205px;
}

.home-quote-wrap {
  position: relative;

  z-index: 3;

  width: 205px;
}

.home-quote {
  position: relative;

  width: 205px;

  margin: 18px 0 0 0;

  color: var(--text);

  font-size: 20px;
  line-height: 0.94;

  font-style: normal;
  font-weight: 200;

  letter-spacing: -0.04em;
}

.home-quote span {
  display: block;
}

.quote-mark {
  position: absolute;

  z-index: 4;

  color: var(--text);

  font-size: 58px;
  line-height: 0.55;

  font-style: normal;
  font-weight: 850;

  letter-spacing: -0.08em;

  pointer-events: none;
}

.quote-mark-open {
  top: -17px;
  left: -2px;
}


/* --------------------------------------------------
   TERRACOTTA ACCENT
-------------------------------------------------- */

.trusted::before {
  content: "";

  display: block;
  margin-bottom: 16px;

  width: 52px;
  height: 5px;

  background: var(--accent);
}


/* --------------------------------------------------
   TRUSTED BY
-------------------------------------------------- */

.trusted {
  position: relative;

  z-index: 3;

  width: 205px;

  margin: 20px 0 0;
}

.trusted-title {
  margin:
    0
    0
    12px;

  color: var(--text);

  font-size: 8px;
  line-height: 1;

  font-weight: 650;

  letter-spacing: 0.11em;
}

.brands {
  display: grid;

  grid-template-columns:
    repeat(3, 61px);

  column-gap: 11px;
  row-gap: 10px;

  width: 205px;
}

.brand-logo {
  width: 61px;
  height: 27px;

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.brand-logo img {
  display: block;

  width: 56px;
  height: 23px;

  object-fit: contain;
  object-position: center;

  opacity: 0.68;
}

.brand-estrella img,
.brand-compal img,
.brand-sumol img {
  width: 48px;
  height: 25px;
}


/* --------------------------------------------------
   PORTALS
-------------------------------------------------- */

.portal {
  width: auto;
}

.portal-link {
  appearance: none;

  border: 0;
  background: transparent;

  padding: 0;

  cursor: pointer;

  color: var(--text);

  font-size: 52px;
  line-height: 0.9;

  letter-spacing: -0.06em;

  font-weight: 800;

  transition:
    color 0.18s ease;
}

.portal-link:hover {
  color: var(--accent);

  opacity: 1;

  transform: none;
}


/* --------------------------------------------------
   FLESH512 LOGO — MAP
-------------------------------------------------- */

.flesh-logo-link {
  display: block;

  line-height: 0;
}

.flesh-map-logo {
  display: block;

  width: 230px;
  height: auto;

  filter: invert(1);

  opacity: 1;

  transition:
    filter 0.18s ease;
}

.flesh-logo-link:hover {
  opacity: 1;

  transform: none;
}

.flesh-logo-link:hover .flesh-map-logo {
  transform: none;

  filter:
    invert(42%)
    sepia(86%)
    saturate(1145%)
    hue-rotate(332deg)
    brightness(94%)
    contrast(88%);
}


/* --------------------------------------------------
   INDEX
-------------------------------------------------- */

.index {
  position: fixed;

  z-index: 100;

  top: 22px;
  left: 22px;

  display: flex;

  align-items: center;

  gap: 22px;

  padding: 0;

  background: transparent;

  border: 0;
}

.index button {
  appearance: none;

  border: 0;
  background: transparent;

  padding: 0;

  cursor: pointer;

  color: var(--text);

  font-size: 10px;
  font-weight: 650;

  letter-spacing: 0.03em;
  line-height: 1;

  transition:
    color 0.15s ease;
}

.index button:hover {
  color: var(--accent);
}

.index-flesh {
  display: flex;

  align-items: center;
  justify-content: center;

  line-height: 0;
}

.index-flesh img {
  display: block;

  width: 58px;
  height: auto;

  filter: invert(1);

  transition:
    filter 0.15s ease;
}

.index-flesh:hover img {
  filter:
    invert(42%)
    sepia(86%)
    saturate(1145%)
    hue-rotate(332deg)
    brightness(94%)
    contrast(88%);
}


/* --------------------------------------------------
   INSTRUCTIONS
-------------------------------------------------- */

.instructions {
  position: fixed;

  z-index: 100;

  right: 22px;
  bottom: 22px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 550;

  text-transform: uppercase;

  letter-spacing: 0.14em;

  pointer-events: none;
}


/* --------------------------------------------------
   OVERLAYS
-------------------------------------------------- */

.overlay {
  position: fixed;

  z-index: 1000;

  inset: 0;

  overflow-y: auto;

  background: var(--background);

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;

  pointer-events: auto;
}

.overlay-inner {
  width:
    min(
      1400px,
      calc(100% - 80px)
    );

  min-height: 100%;

  margin: 0 auto;

  padding:
    100px
    0
    120px;
}

.overlay-tag {
  margin: 0;

  color: var(--accent);

  font-size: 13px;

  font-weight: 700;

  letter-spacing: -0.02em;
}

.overlay-close {
  position: fixed;

  z-index: 1100;

  top: 24px;
  right: 28px;

  width: 52px;
  height: 52px;

  display: flex;

  align-items: center;
  justify-content: center;

  border: 1px solid var(--text);

  background: var(--background);

  color: var(--text);

  cursor: pointer;

  font-size: 30px;
  line-height: 1;

  font-weight: 350;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.overlay-close:hover {
  background: var(--accent);

  color: #ffffff;

  border-color: var(--accent);
}


/* --------------------------------------------------
   ABOUT
-------------------------------------------------- */

.about-case {
  max-width: 1180px;
}

.about-header {
  position: relative;

  padding-bottom: 90px;

  border-bottom:
    2px solid
    var(--text);
}

.about-title {
  margin: 0;

  color: var(--accent);

  font-size:
    clamp(
      76px,
      10vw,
      150px
    );

  line-height: 0.72;

  letter-spacing: -0.075em;

  font-weight: 850;

  text-transform: uppercase;
}

.about-opening {
  max-width: 850px;

  margin:
    85px
    0
    0
    auto;

  color: var(--text);

  font-size:
    clamp(
      28px,
      3.6vw,
      48px
    );

  line-height: 1.05;

  letter-spacing: -0.045em;

  font-weight: 300;
}

.about-body {
  max-width: 820px;

  margin-left: auto;

  padding:
    95px
    0
    50px;
}

.about-body p {
  margin:
    0
    0
    46px;

  color: var(--text);

  font-size: 21px;
  line-height: 1.55;

  letter-spacing: -0.015em;

  font-weight: 350;
}


/* --------------------------------------------------
   ABOUT — PROJECT LINKS
-------------------------------------------------- */

.about-project-link {
  position: relative;

  display: inline;

  appearance: none;

  margin: 0;
  padding: 0;

  border: 0;

  border-bottom:
    1px solid
    rgba(17, 17, 17, 0.3);

  background: transparent;

  color: inherit;

  cursor: pointer;

  font: inherit;
  font-weight: 580;

  line-height: inherit;

  letter-spacing: inherit;

  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.about-project-link:hover,
.about-project-link:focus-visible {
  color: var(--accent);

  border-color: var(--accent);

  outline: none;
}

.about-project-link::after {
  content:
    attr(data-project-label);

  position: absolute;

  z-index: 10;

  left: 50%;
  bottom: calc(100% + 11px);

  transform:
    translateX(-50%)
    translateY(4px);

  padding:
    6px
    8px;

  background: var(--text);

  color: #ffffff;

  white-space: nowrap;

  font-size: 8px;
  line-height: 1;

  font-weight: 700;

  letter-spacing: 0.12em;

  pointer-events: none;

  opacity: 0;

  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.about-project-link:hover::after,
.about-project-link:focus-visible::after {
  opacity: 1;

  transform:
    translateX(-50%)
    translateY(0);
}


/* --------------------------------------------------
   FLESH512 CASE
-------------------------------------------------- */

.flesh-case {
  max-width: 1280px;
}

.case-hero {
  position: relative;

  min-height: 78vh;

  display: flex;

  flex-direction: column;

  justify-content: flex-start;

  padding-bottom: 100px;
}

.case-hero::before {
  content: "";

  position: absolute;

  z-index: -1;

  left: -34px;
  top: 100px;

  width: 18px;
  height: 145px;

  background: var(--accent);
}

.case-logo-header {
  margin-top: 70px;

  width: 100%;
}

.flesh-case-logo {
  display: block;

  width:
    min(
      900px,
      82vw
    );

  height: auto;

  filter: invert(1);
}

.case-intro {
  max-width: 780px;

  margin:
    48px
    0
    0
    170px;

  color: var(--text);

  font-size:
    clamp(
      30px,
      3vw,
      46px
    );

  line-height: 0.98;

  letter-spacing: -0.045em;

  font-weight: 800;
}

.case-lead {
  max-width: 900px;

  margin:
    105px
    0
    0;

  color: var(--text);

  font-size:
    clamp(
      30px,
      4vw,
      54px
    );

  line-height: 1.05;

  letter-spacing: -0.045em;

  font-weight: 500;
}

.case-body {
  border-top:
    2px solid
    var(--text);
}

.case-section {
  display: grid;

  grid-template-columns:
    minmax(170px, 0.3fr)
    minmax(0, 1fr);

  gap: 80px;

  padding:
    95px
    0;

  border-bottom:
    1px solid
    var(--line);
}

.case-label {
  margin:
    4px
    0
    0;

  color: var(--accent);

  font-size: 10px;

  line-height: 1.2;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.11em;
}

.case-copy {
  max-width: 760px;
}

.case-copy p {
  margin:
    0
    0
    28px;

  color: var(--text);

  font-size: 20px;

  line-height: 1.52;

  letter-spacing: -0.012em;

  font-weight: 400;
}

.case-copy p:last-child {
  margin-bottom: 0;
}

.case-copy strong {
  font-weight: 700;
}

.case-copy em {
  font-style: italic;
}

.case-lessons p {
  margin-bottom: 42px;
}

.case-role-list {
  max-width: 800px;

  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}

.case-role-list span {
  padding:
    8px
    12px;

  border:
    1px solid
    var(--text);

  color: var(--text);

  font-size: 12px;

  font-weight: 600;
}


/* --------------------------------------------------
   WORK
-------------------------------------------------- */

#work-overlay {
  overflow: hidden;
}

#work-overlay .overlay-inner {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 0 0;
}

.work-index {
  --work-row-height: max(52px, calc((100dvh - 64px) / 5));
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
}

#work-overlay .overlay-tag {
  margin: 0 0 22px clamp(16px, 3vw, 48px);
  font-size: 15px;
}

.work-item {
  appearance: none;
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--work-row-height);
  scroll-snap-align: center;
  padding-inline: clamp(16px, 3vw, 48px);
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.work-item.is-highlighted {
  background-color: var(--accent);
  color: var(--background);
}

.work-item:not(.is-highlighted):hover {
  color: var(--accent);
}

.work-item:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}

.work-title {
  padding-block: 12px;
  font-size: clamp(26px, min(6vw, calc(var(--work-row-height) * 0.66)), 104px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.075em;
}




/* --------------------------------------------------
   OVERLAY OPEN
-------------------------------------------------- */

body.overlay-open .index,
body.overlay-open .instructions {
  opacity: 0;

  pointer-events: none;
}


/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */

@media (max-width: 800px) {

  .index {
    right: 14px;
    left: 14px;

    gap: 18px;

    overflow-x: auto;
    background: var(--background);
  }

  .index button {
    flex: 0 0 auto;
    min-height: 44px;
  }

  .index-flesh img {
    width: 52px;
  }

  .instructions {
    display: none;
  }


  .home {
    width: 100vw;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-content: start;
    align-items: center;
    gap: 24px 10px;
    padding: 88px 7vw 28px;
    background: var(--background);
  }

  .home-copy,
  .home-details {
    display: contents;
  }

  .name,
  .home h1,
  .home-positioning,
  .trusted {
    grid-column: 1 / -1;
  }

  .name {
    margin: 0 0 -10px;
    font-size: 9px;
  }

  .home h1 {
    margin: 0 0 -12px;
  }

  .home h1 {
    font-size: clamp(40px, 13vw, 78px);
  }

  .home-positioning {
    font-size: clamp(11px, 3.2vw, 13px);
  }

  .home-photo {
    position: relative;
    grid-column: 2;
    grid-row: 4;
    inset: auto;
    width: min(100%, 275px);
    transform: none;
  }

  .home-quote-wrap {
    position: relative;
    grid-column: 1;
    grid-row: 4;
    inset: auto;
    width: auto;
  }

  .home-quote {
    width: auto;
    font-size: clamp(14px, 4vw, 20px);
  }

  .trusted::before {
    content: none;
  }

  .trusted {
    position: relative;
    inset: auto;
    width: 100%;
    margin: 0;
    border-top: 3px solid var(--accent);
    padding-top: 13px;
  }

  .brands {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  }

  .brand-logo {
    width: 100%;
  }

  .portal-link {
    font-size:
      clamp(
        34px,
        10vw,
        46px
      );
  }

  .flesh-map-logo {
    width: 170px;
  }


  .overlay-inner {
    width:
      calc(
        100% - 32px
      );

    padding:
      90px
      0
      80px;
  }

  .overlay-close {
    top: 16px;
    right: 16px;

    width: 46px;
    height: 46px;
  }


  .about-header {
    padding-bottom: 65px;
  }

  .about-title {
    font-size: clamp(48px, 15vw, 92px);
  }

  .about-opening {
    margin-top: 60px;

    font-size: 27px;
  }

  .about-body {
    padding-top: 65px;
  }

  .about-body p {
    margin-bottom: 36px;

    font-size: 18px;

    line-height: 1.55;
  }

  .about-project-link::after {
    display: none;
  }


  .case-hero {
    min-height: auto;

    padding-bottom: 80px;
  }

  .case-hero::before {
    left: -8px;
    top: 75px;

    width: 10px;
    height: 90px;
  }

  .case-logo-header {
    margin-top: 55px;
  }

  .flesh-case-logo {
    width: 86vw;
  }

  .case-intro {
    margin:
      35px
      0
      0
      38px;

    font-size: 28px;
  }

  .case-lead {
    margin-top: 70px;

    font-size: 30px;
  }

  .case-section {
    grid-template-columns: 1fr;

    gap: 25px;

    padding:
      70px
      0;
  }

  .case-copy p {
    font-size: 18px;
  }



  .work-title {
    font-size: clamp(24px, min(6vw, calc(var(--work-row-height) * 0.62)), 52px);
  }

}

@media (min-width: 801px) and (max-height: 800px) {
  .home {
    scale: 0.88;
  }
}

@media (min-width: 801px) and (max-height: 680px) {
  .home {
    scale: 0.75;
  }
}


.project-case {
  max-width: 1020px;
}

.project-header {
  padding-bottom: clamp(36px, 6vw, 76px);
  border-bottom: 2px solid var(--text);
}

.project-header h2 {
  margin: 30px 0 22px;
  color: var(--accent);
  font-size: clamp(42px, 9vw, 106px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.project-lead {
  max-width: 26ch;
  margin: 0;
  font-size: clamp(23px, 3.3vw, 38px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.project-case .case-body {
  border-top: 0;
}

.project-case .case-section {
  padding-block: clamp(30px, 6vw, 72px);
}

.project-case .case-label {
  margin-top: 0;
}

.project-case .case-copy {
  max-width: 66ch;
}


.project-case.project-editorial {
  max-width: 1300px;
}

.project-editorial .project-header {
  text-align: center;
}

.project-editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 45ch) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 4vw, 64px);
  padding-top: clamp(36px, 6vw, 84px);
}

.project-editorial-text {
  grid-column: 2;
  grid-row: 1;
}

.project-editorial-text p {
  text-align: justify;
  hyphens: none;
}

.project-editorial-text .content-lab-disclosure {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  text-align: left;
  hyphens: none;
}

.project-editorial-text h3 {
  margin: 1.8em 0 0.6em;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

.content-lab-images {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4vw, 48px);
}

.content-lab-images-left {
  grid-column: 1;
  padding-top: clamp(58px, 10vw, 140px);
}

.content-lab-images-right {
  grid-column: 3;
}

.content-lab-visual {
  width: min(100%, 220px);
  margin: 0;
}

.content-lab-images-right .content-lab-visual {
  align-self: flex-end;
}

.content-lab-images-left .content-lab-inset,
.content-lab-images-right .content-lab-small {
  align-self: flex-end;
}

.content-lab-images-right .content-lab-inset {
  align-self: flex-start;
}

.content-lab-inset {
  width: min(83%, 176px);
}

.content-lab-small,
.content-lab-video {
  width: min(72%, 150px);
}

.content-lab-visual img,
.content-lab-mosaic img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--soft-line);
}

.content-lab-visual figcaption,
.content-lab-mosaic figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .project-editorial-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }

  .project-editorial-text {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .content-lab-images {
    grid-row: 2;
    gap: 18px;
  }

  .content-lab-images-left {
    padding-top: 38px;
  }

  .content-lab-images-right {
    grid-column: 2;
  }
}

#content-lab .project-editorial {
  width: 100%;
  max-width: none;
}

#content-lab .project-header,
#content-lab .story-body {
  width: min(1300px, calc(100% - 80px));
  margin-inline: auto;
}

.content-lab-mosaic {
  margin: clamp(38px, 7vw, 90px) clamp(10px, 1vw, 20px) 0;
  padding-top: clamp(22px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.content-lab-mosaic h3 {
  margin: 0 0 24px;
  font-size: clamp(22px, 3vw, 30px);
}

.content-lab-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(12px, 2vw, 28px) clamp(8px, 1vw, 16px);
}

.content-lab-mosaic figure {
  margin: 0;
}

@media (max-width: 800px) {
  #content-lab .project-header,
  #content-lab .story-body {
    width: calc(100% - 32px);
  }
}

@media (max-width: 640px) {
  .content-lab-mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.olvs-visual {
  margin: 0;
}

.olvs-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.olvs-photo img {
  filter: brightness(var(--olvs-exposure, 0.94))
    contrast(var(--olvs-contrast, 1.17))
    saturate(var(--olvs-saturation, 1.15));
}

.olvs-photo-bright {
  --olvs-exposure: 0.91;
  --olvs-contrast: 1.12;
  --olvs-saturation: 1.02;
}

.olvs-photo-shade {
  --olvs-exposure: 1.01;
  --olvs-contrast: 1.10;
  --olvs-saturation: 1.08;
}

.olvs-photo-still {
  --olvs-exposure: 1.04;
  --olvs-contrast: 1.08;
  --olvs-saturation: 1.03;
}


.olvs-layout + .olvs-layout {
  padding-top: clamp(24px, 4vw, 52px);
}

.olvs-rail {
  grid-row: 1;
  display: grid;
  align-self: stretch;
  align-content: space-between;
  gap: clamp(14px, 2vw, 24px);
}

.olvs-rail-left {
  grid-column: 1;
}

.olvs-rail-right {
  grid-column: 3;
  padding-top: clamp(20px, 4vw, 56px);
}

.olvs-rail .olvs-visual {
  width: min(100%, 240px);
}

.olvs-rail-right .olvs-visual,
.olvs-rail-left .olvs-visual:nth-child(even) {
  justify-self: end;
}

.olvs-rail-right .olvs-visual:nth-child(even) {
  justify-self: start;
}

.olvs-visual figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .olvs-rail {
    grid-row: 2;
    align-content: start;
  }

  .olvs-rail-right {
    grid-column: 2;
  }
}

#olvs .project-editorial {
  width: 100%;
  max-width: none;
  padding-top: 0;
}

#olvs .project-header {
  padding-bottom: 0;
  border-bottom: 0;
}

#olvs .olvs-layout {
  width: min(1300px, calc(100% - 80px));
  margin-inline: auto;
}

.project-header .olvs-cover {
  margin: 0;
}

@media (max-width: 800px) {
  #olvs .olvs-layout {
    width: calc(100% - 32px);
  }
}

.olvs-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.olvs-balcony {
  margin: 0 0 28px;
}

.olvs-layout.olvs-first-rails {
  padding-top: 28px;
}

.olvs-first-rails .olvs-rail-right {
  padding-top: 0;
}

.olvs-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  width: min(1300px, calc(100% - 32px));
  margin: clamp(30px, 6vw, 76px) auto 0;
}

.olvs-layout .project-editorial-text > h3:first-child {
  margin-top: 0;
}

.story-project {
  max-width: 1320px;
}

.story-project .project-header {
  text-align: left;
}

#olvs .story-body {
  width: min(1320px, calc(100% - 80px));
  margin-inline: auto;
}

.story-body {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  padding-top: clamp(32px, 6vw, 86px);
}

.story-chapter,
.story-notes {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 38px);
  align-items: start;
}

.story-copy {
  grid-column: 2 / span 5;
}

.story-copy-secondary {
  grid-column: 8 / span 5;
}

.story-heading {
  grid-column: 2 / -1;
}

.story-heading h3,
.story-note .case-label {
  margin: 0;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.045em;
  font-size: clamp(23px, 3vw, 42px);
  line-height: 1.05;
  text-transform: none;
}

.story-note .case-label {
  margin-bottom: 14px;
  font-size: clamp(21px, 2.3vw, 32px);
}

.story-copy p,
.story-note p {
  margin: 0 0 1.25em;
  font-size: clamp(16px, 1.55vw, 21px);
  line-height: 1.55;
}

.story-copy p:last-child,
.story-note p:last-child {
  margin-bottom: 0;
}

#content-lab .story-copy p,
#olvs .story-copy p {
  text-align: justify;
  hyphens: none;
}

.content-lab-media-block {
  margin: 0;
}

#content-lab .content-lab-block-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  font-style: italic;
}

.story-note {
  grid-column: span 6;
}

.story-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.story-band figure {
  margin: 0;
  width: 100%;
}

.story-band img {
  display: block;
  width: 100%;
  height: auto;
}

.story-band:not(.story-deck) figure:nth-child(3n + 2) {
  width: 85%;
  justify-self: center;
}

.story-band:has(> :nth-child(2):last-child),
.story-deck {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-band-single {
  display: block;
}

.story-band-single figure {
  width: min(100%, 760px);
  margin-inline: auto;
}

.story-balcony {
  width: min(100%, 610px);
  margin-inline: auto;
}

.story-balcony .olvs-balcony {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  #olvs .story-body {
    width: calc(100% - 32px);
  }
}

@media (max-width: 640px) {
  .story-chapter,
  .story-notes {
    grid-template-columns: 1fr;
  }

  .story-copy,
  .story-copy-secondary,
  .story-heading,
  .story-note {
    grid-column: 1;
  }

  .story-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-band:not(.story-deck) figure:nth-child(3n + 2) {
    width: 100%;
  }
}

.story-opening-line {
  grid-column: 2 / -1;
  margin: 0;
  font-size: clamp(27px, 4vw, 52px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

@media (max-width: 640px) {
  .story-opening-line {
    grid-column: 1;
  }
}

#content-lab .content-lab-image-copy {
  grid-column: auto;
  padding: clamp(4px, 1.8vw, 24px);
}

#content-lab .content-lab-image-copy-wide {
  grid-column: span 2;
  max-width: 66ch;
}

@media (max-width: 640px) {
  #content-lab .content-lab-media-block > .story-band,
  #content-lab .content-lab-media-block > .content-lab-mosaic-grid {
    align-items: end;
  }

  #content-lab .content-lab-block-note {
    margin-top: 4px;
  }

  #content-lab .content-lab-image-copy {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0;
  }
}

.olvs-letterbox-crop {
  aspect-ratio: 1400 / 786;
  overflow: hidden;
}

.olvs-letterbox-crop img {
  transform: translateY(-8.79%);
}

.olvs-bible {
  grid-column: 1 / -1;
  margin: 0;
}

.olvs-bible figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  line-height: 1.4;
}

.olvs-contribution {
  padding-block: clamp(22px, 4vw, 48px);
}

.olvs-contribution .story-heading h3 {
  font-size: clamp(30px, 4vw, 54px);
}

#olvs .olvs-contribution-line {
  font-size: clamp(21px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
  text-align: left;
}

.olvs-learning-photo {
  grid-column: 8 / span 5;
  width: min(100%, 420px);
  justify-self: start;
}

.olvs-learning-photo figcaption {
  font-style: italic;
}

@media (max-width: 640px) {
  .olvs-learning-photo {
    grid-column: 1;
  }
}

.contact-inner {
  max-width: 720px;
  padding-block: clamp(72px, 9vw, 110px) 56px;
  text-align: center;
}

.contact-header .name {
  margin-left: 0;
}

.contact-header h2 {
  font-size: clamp(40px, 11vw, 78px);
}

.contact-portrait {
  display: block;
  width: min(58vw, 216px);
  height: auto;
  margin: clamp(22px, 4vw, 38px) auto 0;
  filter: grayscale(1) contrast(1.27) brightness(0.95);
}

.contact-thanks {
  margin: 20px 0 15px;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 550;
  letter-spacing: -0.035em;
}

.contact-cta {
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--background);
  line-height: 1.3;
}

.contact-cta:hover {
  background: var(--background);
  color: var(--text);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 16px;
  font-size: 14px;
}

.contact-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-links a:hover {
  color: var(--muted);
}

.contact-inner a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
