:root {
  --why-paper: #f2eadb;
  --why-ink: #04251b;
  --why-accent: #f04a12;
  --why-accent-text: #b53610;
  --why-soft-ink: #315044;
}

html,
body[data-static-page="why"] {
  background: var(--why-paper) !important;
}

body[data-static-page="why"] {
  color: var(--why-ink);
}

body[data-static-page="why"] #siteHeader[data-shared-chrome] {
  --header-ink: var(--why-ink);
  --header-ink-shadow: 0 1px 0 rgba(242, 234, 219, .9), 0 0 9px rgba(242, 234, 219, .72);
  padding-inline: max(28px, calc((100vw - 1120px) / 2));
  background-color: var(--why-paper) !important;
  background-image:
    url("./why-paper-grain.svg"),
    radial-gradient(circle at 18% 11%, rgba(229, 70, 19, .027) 0 1px, transparent 1.3px),
    radial-gradient(circle at 73% 67%, rgba(4, 37, 27, .022) 0 1px, transparent 1.2px),
    linear-gradient(96deg, rgba(255, 255, 255, .16), transparent 38%, rgba(193, 147, 92, .025) 72%, transparent) !important;
  background-position: 0 0 !important;
  background-size: 256px 256px, 23px 29px, 31px 37px, 100% 100% !important;
  background-attachment: fixed, fixed, fixed, fixed !important;
}

body[data-static-page="why"] #siteHeader[data-shared-chrome] .menu-button {
  color: var(--why-ink);
  filter: drop-shadow(0 1px 0 rgba(242, 234, 219, .9));
}

body[data-static-page="why"] .homepage-header-actions {
  right: max(28px, calc((100vw - 1120px) / 2));
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1), visibility 0s linear 0s;
}

body[data-static-page="why"] .homepage-header-actions.is-suppressed {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-7px);
  transition-delay: 0s, 0s, 180ms;
  pointer-events: none;
}

body[data-static-page="why"] .homepage-header-actions .header-try {
  background: var(--why-ink);
  color: var(--why-paper);
  box-shadow: 0 7px 20px rgba(4, 37, 27, .2);
}

body[data-static-page="why"] .homepage-header-actions .header-try:is(:hover, :focus-visible) {
  background: #0a3a2d;
  color: #fffaf0;
  box-shadow: 0 10px 28px rgba(4, 37, 27, .25);
}

body[data-static-page="why"].menu-open #siteHeader[data-shared-chrome] .brand-word,
body[data-static-page="why"].menu-open #siteHeader[data-shared-chrome] .menu-button {
  color: #fffaf0;
  text-shadow: none;
  filter: none;
}

.why-folio {
  position: relative;
  overflow: clip;
  background-color: var(--why-paper);
  background-image:
    url("./why-paper-grain.svg"),
    radial-gradient(circle at 18% 11%, rgba(229, 70, 19, .027) 0 1px, transparent 1.3px),
    radial-gradient(circle at 73% 67%, rgba(4, 37, 27, .022) 0 1px, transparent 1.2px),
    linear-gradient(96deg, rgba(255, 255, 255, .16), transparent 38%, rgba(193, 147, 92, .025) 72%, transparent);
  background-size: 256px 256px, 23px 29px, 31px 37px, 100% 100%;
  background-attachment: fixed, fixed, fixed, fixed;
  color: var(--why-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.why-folio-story,
.why-folio-chapters {
  position: relative;
}

.why-folio-chapter {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: clamp(68px, 6vw, 92px);
  scroll-margin-top: 88px;
}

.why-folio-chapter > * {
  position: relative;
  z-index: 1;
}

.why-folio-chapter--opening::after,
#why-capability::before {
  position: absolute;
  z-index: 0;
  display: block;
  content: "";
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  user-select: none;
}

.why-folio-chapter--opening::after {
  right: max(-90px, calc(244px - ((100vw - 760px) / 2)));
  bottom: -90px;
  width: 220px;
  height: 126px;
  background-image: url("./why-objects/cloud-cluster.webp");
  opacity: .86;
  transform: rotate(-2deg);
  transform-origin: center;
}

#why-capability::before {
  bottom: -88px;
  left: max(-120px, calc(24px - ((100vw - 1120px) / 2)));
  width: 188px;
  height: 170px;
  background-image: url("./why-objects/berry-sprig.webp");
  opacity: .82;
  transform: rotate(-8deg);
  transform-origin: center;
}

.why-folio-chapter--opening,
.why-folio-chapter--closing {
  width: min(760px, calc(100% - 48px));
}

.why-folio-chapter--opening {
  padding-top: calc(clamp(136px, 13vw, 178px) + env(safe-area-inset-top, 0px));
  padding-bottom: clamp(68px, 7vw, 90px);
}

.why-folio-chapter--closing {
  padding-top: clamp(104px, 10vw, 142px);
  padding-bottom: max(118px, calc(96px + env(safe-area-inset-bottom, 0px)));
}

.why-folio-chapter--illustrated {
  display: grid;
  grid-template-columns: minmax(190px, 270px) minmax(0, 680px);
  justify-content: center;
  align-items: center;
  gap: clamp(42px, 6.2vw, 88px);
}

.why-folio-chapter--object-right {
  grid-template-columns: minmax(0, 680px) minmax(190px, 270px);
}

.why-folio-chapter--object-right .why-folio-copy {
  grid-column: 1;
  grid-row: 1;
}

.why-folio-chapter--object-right .why-folio-object {
  grid-column: 2;
  grid-row: 1;
}

.why-folio-copy {
  width: 100%;
}

.why-folio h1,
.why-folio h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--why-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 4.45vw, 62px);
  font-weight: 500;
  letter-spacing: -.042em;
  line-height: 1.025;
  text-wrap: balance;
}

.why-folio h1 {
  max-width: 15.5ch;
  font-size: clamp(53px, 5.1vw, 70px);
}

.why-folio-copy > p {
  max-width: 61ch;
  margin: 24px 0 0;
  color: var(--why-soft-ink);
  font-size: clamp(18px, 1.35vw, 20px);
  font-weight: 430;
  line-height: 1.64;
  text-wrap: pretty;
}

.why-folio-copy > p + p {
  margin-top: 17px;
}

.why-folio-copy strong {
  color: var(--why-ink);
  font-weight: 760;
}

.why-folio-opening-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 27px;
}

.why-folio-opening-mark::before,
.why-folio-opening-mark::after {
  position: absolute;
  inset: 50% auto auto 50%;
  display: block;
  content: "";
  transform: translate(-50%, -50%);
}

.why-folio-opening-mark::before {
  width: 11px;
  height: 11px;
  background: var(--why-accent);
  transform: translate(-50%, -50%) rotate(45deg);
}

.why-folio-opening-mark::after {
  width: 34px;
  height: 34px;
  background:
    linear-gradient(var(--why-accent), var(--why-accent)) 50% 0 / 1px 34px no-repeat,
    linear-gradient(90deg, var(--why-accent), var(--why-accent)) 0 50% / 34px 1px no-repeat;
  opacity: .72;
}

.why-folio-object {
  --object-start-x: 18px;
  --object-start-rotate: -2.2deg;
  width: min(100%, 280px);
  margin: 0;
  justify-self: center;
}

.why-folio-chapter--object-right .why-folio-object {
  --object-start-x: -18px;
  --object-start-rotate: 2.2deg;
}

.why-folio-object--lens {
  width: min(100%, 250px);
}

.why-folio-object--arch,
.why-folio-object--remembering {
  width: min(100%, 290px);
}

.why-folio-object picture {
  display: block;
  width: 100%;
}

.why-folio-object img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 13px 18px rgba(4, 37, 27, .13));
}

.why-folio-kicker {
  margin-bottom: 27px !important;
  color: var(--why-accent-text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .1em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.why-folio-sendoff {
  margin-block: 35px 31px !important;
  color: var(--why-ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.4vw, 34px) !important;
  font-weight: 500 !important;
  letter-spacing: -.025em;
  line-height: 1.24 !important;
}

.why-folio-sendoff span {
  display: block;
}

.why-folio-quote {
  color: var(--why-accent);
  font-size: .88em;
  letter-spacing: -.026em;
}

.why-folio-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  margin-top: 31px;
  padding: 13px 19px 12px;
  border-radius: 8px;
  background: var(--why-ink);
  color: var(--why-paper);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(4, 37, 27, .18);
  transition: color 180ms ease, background-color 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1), box-shadow 180ms ease;
}

.why-folio-action span {
  color: var(--why-accent);
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.why-folio-action:is(:hover, :focus-visible) {
  background: #0a3a2d;
  color: #fffaf0;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(4, 37, 27, .24);
}

.why-folio-action:is(:hover, :focus-visible) span {
  transform: translateX(3px);
}

.has-js .why-folio-copy[data-reveal] > * {
  opacity: 0;
  transform: translate3d(0, 13px, 0);
  transition-property: opacity, transform;
  transition-duration: 420ms, 560ms;
  transition-timing-function: ease, cubic-bezier(.22, .76, .3, 1);
}

.has-js .why-folio-copy[data-reveal].is-visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.has-js .why-folio-object[data-object-reveal] {
  opacity: 0;
  transform: translate3d(var(--object-start-x), 14px, 0) rotate(var(--object-start-rotate));
  transition: opacity 470ms ease, transform 680ms cubic-bezier(.22, .76, .3, 1);
}

.has-js .why-folio-object[data-object-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0);
}

.has-js .why-folio-copy[data-reveal].is-visible > :nth-child(1) { transition-delay: 0ms; }
.has-js .why-folio-copy[data-reveal].is-visible > :nth-child(2) { transition-delay: 70ms; }
.has-js .why-folio-copy[data-reveal].is-visible > :nth-child(3) { transition-delay: 125ms; }
.has-js .why-folio-copy[data-reveal].is-visible > :nth-child(4) { transition-delay: 175ms; }
.has-js .why-folio-copy[data-reveal].is-visible > :nth-child(5) { transition-delay: 220ms; }
.has-js .why-folio-copy[data-reveal].is-visible > :nth-child(6) { transition-delay: 260ms; }

body[data-static-page="why"] [data-shared-footer] {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  body[data-static-page="why"] #siteHeader[data-shared-chrome] {
    padding-inline: 24px;
  }

  body[data-static-page="why"] .homepage-header-actions {
    right: 24px;
  }

  .why-folio-chapter--illustrated,
  .why-folio-chapter--object-right {
    grid-template-columns: minmax(150px, 210px) minmax(0, 590px);
    gap: 36px;
  }

  .why-folio-chapter--object-right {
    grid-template-columns: minmax(0, 590px) minmax(150px, 210px);
  }

  .why-folio-chapter--opening::after {
    right: 0;
    bottom: -80px;
    width: 154px;
    height: 92px;
  }

  #why-capability::before {
    bottom: -88px;
    left: 0;
    width: 142px;
    height: 132px;
  }
}

@media (max-width: 700px) and (orientation: portrait) {
  body[data-static-page="why"] #siteHeader[data-shared-chrome] {
    padding-inline: 20px;
  }

  .why-folio-chapter,
  .why-folio-chapter--opening,
  .why-folio-chapter--closing {
    width: min(100% - 40px, 560px);
    padding-block: 54px;
  }

  .why-folio-chapter--opening::after {
    right: -2px;
    bottom: -74px;
    width: 112px;
    height: 70px;
    opacity: .82;
  }

  #why-capability::before {
    bottom: -92px;
    left: -3px;
    width: 102px;
    height: 96px;
    opacity: .76;
  }

  .why-folio-chapter--opening {
    padding-top: calc(112px + env(safe-area-inset-top, 0px));
    padding-bottom: 60px;
  }

  .why-folio-chapter--closing {
    padding-top: 72px;
    padding-bottom: max(96px, calc(78px + env(safe-area-inset-bottom, 0px)));
  }

  .why-folio-chapter--illustrated,
  .why-folio-chapter--object-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .why-folio-chapter--object-right .why-folio-copy,
  .why-folio-chapter--object-right .why-folio-object {
    grid-column: auto;
    grid-row: auto;
  }

  .why-folio-object,
  .why-folio-object--lens,
  .why-folio-object--arch,
  .why-folio-object--remembering {
    width: 118px;
    margin: 0 0 5px 1px;
    align-self: flex-start;
  }

  .why-folio-chapter--object-right .why-folio-object {
    margin-right: 1px;
    margin-left: auto;
    align-self: flex-end;
  }

  .why-folio-object--lens {
    width: 108px;
  }

  .why-folio-object--remembering {
    width: 128px;
  }

  .why-folio h1,
  .why-folio h2 {
    max-width: 17ch;
    font-size: clamp(32px, 9.1vw, 38px);
    line-height: 1.055;
    letter-spacing: -.038em;
    text-wrap: balance;
  }

  .why-folio h1 {
    max-width: 15ch;
    font-size: clamp(38px, 10.8vw, 44px);
  }

  .why-folio-copy > p {
    max-width: none;
    margin-top: 19px;
    font-size: clamp(16.5px, 4.4vw, 18px);
    line-height: 1.6;
  }

  .why-folio-copy > p + p {
    margin-top: 14px;
  }

  .why-folio-opening-mark {
    margin-bottom: 23px;
  }

  .why-folio-kicker {
    margin-bottom: 23px !important;
    font-size: 11px !important;
  }

  .why-folio-sendoff {
    margin-block: 29px 27px !important;
    font-size: clamp(23px, 6.6vw, 28px) !important;
  }

  .why-folio-action {
    min-height: 50px;
    margin-top: 27px;
    padding-inline: 17px;
    font-size: 14px;
  }
}

@media (max-width: 370px) and (orientation: portrait) {
  .why-folio-chapter,
  .why-folio-chapter--opening,
  .why-folio-chapter--closing {
    width: calc(100% - 32px);
  }

  .why-folio h1 {
    font-size: 37px;
  }

  .why-folio h2 {
    font-size: 31px;
  }

  .why-folio-copy > p {
    font-size: 16px;
    line-height: 1.57;
  }
}

@media (orientation: landscape) and (max-height: 650px) {
  .why-folio-chapter,
  .why-folio-chapter--opening,
  .why-folio-chapter--closing {
    padding-block: 70px;
  }

  .why-folio-chapter--opening {
    padding-top: calc(104px + env(safe-area-inset-top, 0px));
  }

  .why-folio-chapter--illustrated,
  .why-folio-chapter--object-right {
    grid-template-columns: minmax(120px, 180px) minmax(0, 600px);
    gap: 34px;
  }

  .why-folio-chapter--object-right {
    grid-template-columns: minmax(0, 600px) minmax(120px, 180px);
  }

  .why-folio h1,
  .why-folio h2 {
    font-size: clamp(36px, 6.2vw, 50px);
  }

  .why-folio-copy > p {
    font-size: 17px;
    line-height: 1.52;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-js .why-folio-copy[data-reveal] > *,
  .has-js .why-folio-object[data-object-reveal],
  body[data-static-page="why"] .homepage-header-actions,
  .why-folio-action,
  .why-folio-action span {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
