:root {
  --ink: #090a0c;
  --ivory: #f4efe6;
  --ivory-dim: rgba(244, 239, 230, 0.72);
  --gold: #d6ba78;
  --gold-deep: #a68445;
  --line: rgba(244, 239, 230, 0.16);
  --sheet: #12110f;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --nav: 5.2rem;
  --screen-w: 100vw;
  --screen-h: 100dvh;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-500.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("assets/fonts/outfit.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow: hidden;
  height: 100%;
  background: #000;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
}

.screen {
  position: fixed;
  inset: 0;
  width: var(--screen-w);
  height: var(--screen-h);
  margin: auto;
  overflow: hidden;
  background: var(--ink);
}

.scroller {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: auto;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

a,
button,
input,
textarea {
  touch-action: manipulation;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--ivory);
  color: var(--ink);
  padding: 0.6rem 1rem;
}

.skip:focus {
  top: 1rem;
}

.backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #050607 url("assets/poster.jpg?v=4") center / cover no-repeat;
}

.film {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.film-wash-wrap,
.film-wash {
  display: none;
}

@media (max-width: 899px) and (orientation: portrait) {
  .backdrop {
    background-image: none;
  }

  .film-wash-wrap {
    display: block;
    position: absolute;
    z-index: 0;
    inset: -16%;
    width: 132%;
    height: 132%;
    pointer-events: none;
    -webkit-filter: blur(28px);
    filter: blur(28px);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .film-wash {
    display: block;
    width: 100%;
    height: 100%;
  }

  .film {
    z-index: 1;
    width: 100%;
    height: calc(100vw * 0.8);
    max-height: 70%;
    position: absolute;
    inset: 0;
    margin: auto;
    object-fit: fill;
    background: #050607 url("assets/poster.jpg?v=4") center / 100% 100% no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  }
}

.shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.42) 0%, rgba(8, 8, 10, 0.16) 46%, rgba(8, 8, 10, 0.05) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.28) 0%, rgba(8, 8, 10, 0.02) 32%, rgba(8, 8, 10, 0.32) 100%);
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--nav) + env(safe-area-inset-top));
  padding:
    env(safe-area-inset-top)
    max(4vw, env(safe-area-inset-right))
    0
    max(4vw, env(safe-area-inset-left));
  mix-blend-mode: normal;
}

.nav.is-solid {
  background: rgba(12, 11, 10, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand img {
  width: 7.2rem;
  height: auto;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.sound {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}

.sound svg {
  width: 1rem;
  height: 1rem;
}

.sound .sound-on {
  display: none;
}

.sound.is-on {
  color: var(--gold);
  border-color: var(--gold);
}

.sound.is-on .sound-on {
  display: block;
}

.sound.is-on .sound-off {
  display: none;
}

.sound:hover,
.sound:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.story {
  position: relative;
  z-index: 1;
  height: calc(var(--screen-h) * 6.75);
}

.story-sticky {
  position: sticky;
  top: 0;
  height: var(--screen-h);
  display: grid;
  align-items: end;
  padding: calc(var(--nav) + env(safe-area-inset-top) + 2rem) max(8vw, env(safe-area-inset-right)) max(12vh, 5.5rem) max(8vw, env(safe-area-inset-left));
}

.chapter {
  grid-area: 1 / 1;
  max-width: min(38rem, 100%);
  align-self: end;
  opacity: 0;
  transform: translateY(1.4rem);
  pointer-events: none;
}

.chapter.is-on {
  pointer-events: auto;
}

.kicker {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
}

h1 {
  font-size: clamp(4.2rem, 9vw, 8.4rem);
  max-width: 100%;
}

h2 {
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.lede {
  margin: 1.4rem 0 0;
  max-width: 26rem;
  font-size: 1.05rem;
  color: var(--ivory-dim);
}

.lede span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ivory);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.body {
  margin: 1.4rem 0 0;
  max-width: 34rem;
  font-size: 1.12rem;
  color: var(--ivory-dim);
}

.scroll-cue {
  margin: 2rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.text-link {
  display: inline-block;
  margin-top: 1.8rem;
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.3rem;
}

.sheet {
  position: relative;
  z-index: 2;
  background: transparent;
}

.services,
.about,
.contact {
  background: transparent;
}

.contact {
  position: sticky;
  top: 0;
  z-index: 2;
  height: var(--screen-h);
  padding: 0;
  overflow: hidden;
}

.ipad {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  margin: 0;
  padding:
    calc(var(--nav) + env(safe-area-inset-top) + 0.6rem)
    max(0.85rem, env(safe-area-inset-right))
    max(0.85rem, env(safe-area-inset-bottom))
    max(0.85rem, env(safe-area-inset-left));
  background: rgba(5, 6, 8, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ipad.is-live {
  opacity: 1;
  visibility: visible;
}

.screen:has(.ipad.is-live) .wa {
  visibility: hidden;
}

.ipad-device {
  width: min(25.5rem, 100%);
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.7rem 0.85rem;
  border-radius: 1.85rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #3c3d40, #16171a 38%, #07080a);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  pointer-events: auto;
  transform: translateY(1rem) scale(0.98);
}

.ipad.is-live .ipad-device {
  transform: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ipad-device::before,
.ipad-device::after {
  content: "";
  display: block;
  margin-inline: auto;
  flex: none;
}

.ipad-device::before {
  width: 0.42rem;
  height: 0.42rem;
  margin-bottom: 0.55rem;
  border-radius: 50%;
  background: #141518;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.ipad-device::after {
  width: 5.4rem;
  height: 0.26rem;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.55);
}

.ipad-screen {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-radius: 1.15rem;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(214, 186, 120, 0.08), transparent 42%),
    #0c0d10;
  padding: 1.15rem 1.15rem 1.2rem;
}

.ipad-close {
  float: right;
  margin: 0 0 0.4rem 0.8rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--ivory-dim);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.ipad-close:hover,
.ipad-close:focus-visible {
  color: var(--gold);
}

.ipad-screen h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.ipad-field {
  display: block;
  margin: 0 0 0.75rem;
}

.ipad-field span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ipad-field input,
.ipad-field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.15rem;
  border: 0;
  border-bottom: 1px solid rgba(214, 186, 120, 0.55);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  caret-color: var(--gold);
  font-size: 1rem;
  line-height: 1.35;
  outline: none;
}

.ipad-field textarea {
  min-height: 5.4rem;
  resize: vertical;
}

.ipad-field input:focus,
.ipad-field textarea:focus {
  border-bottom-color: var(--ivory);
}

.ipad-send {
  width: 100%;
  margin-top: 0.35rem;
  min-height: 2.85rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.ipad-send:hover,
.ipad-send:focus-visible {
  background: var(--ivory);
}

.site-foot {
  position: relative;
  z-index: 4;
}

.vendors {
  position: relative;
  z-index: 3;
  background: var(--sheet);
  border-top: 1px solid var(--line);
}

.logo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.logo-grid li {
  display: grid;
  place-items: center;
  min-height: 9.5rem;
  margin: 0;
  padding: 2.2rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mark {
  margin: 0;
  color: var(--ivory);
  text-align: center;
  line-height: 0.95;
}

.mark-porsche {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
}

.mark-cartier {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.6rem, 3.6vw, 3.5rem);
  letter-spacing: 0.02em;
}

.mark-moynat {
  font-family: var(--serif);
  font-size: clamp(2rem, 2.8vw, 2.7rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
}

.mark-delvaux {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
}

.mark-poole {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mark-poole span {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--gold);
}

.mark-christofle {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
}

.directory,
.footer {
  background: var(--sheet);
}

.about {
  border-top: 1px solid var(--line);
}

.panel {
  padding: 7.5rem 8vw;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
}

.service-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}

.service-list span {
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  padding-top: 0.45rem;
}

.service-list h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  line-height: 1.05;
  margin-bottom: 0.45rem;
}

.service-list p,
.about p,
.details p,
.footer p {
  margin: 0;
  color: var(--ivory-dim);
}

.about {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.about-copy h2 {
  margin-bottom: 1rem;
}

.motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ivory);
  margin: 0 0 1.2rem;
}

.about-copy p:last-child {
  max-width: 40rem;
}

.timeline {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.timeline li {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.timeline strong {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}

.timeline span {
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.form-status {
  min-height: 1.2rem;
  margin: 0 0 0.55rem;
  color: var(--ivory-dim);
  letter-spacing: 0;
  line-height: 1.2;
}

.directory {
  border-top: 1px solid var(--line);
  padding-top: 5.5rem;
  padding-bottom: 4.5rem;
  font-size: 1.3rem;
}

.directory .kicker,
.details span {
  font-size: 0.936rem;
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem 4rem;
}

.details a,
.details p {
  overflow-wrap: anywhere;
}

.details a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.details a:hover {
  border-bottom-color: var(--gold);
}

.details span {
  display: block;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.socials {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
}

.socials a {
  font-size: 0.975rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory-dim);
}

.footer {
  padding: 3rem 8vw 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer img {
  width: 8rem;
  height: auto;
}

.wa {
  position: absolute;
  z-index: 55;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  background: #128c7e;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.wa svg {
  width: 58%;
  height: 58%;
}

.wa:hover,
.wa:focus-visible {
  background: #0e6f64;
}

@media (max-width: 1100px) {
  .panel {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .panel-head,
  .about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .panel-head {
    gap: 0.8rem;
  }

  h1 {
    font-size: clamp(3.4rem, 10vw, 6rem);
    max-width: 9ch;
  }

  h2 {
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    max-width: 100%;
  }

  .service-list {
    gap: 0 2.2rem;
  }

  .service-list h3 {
    font-size: clamp(1.45rem, 2.2vw, 2rem);
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .story-sticky {
    padding-top: calc(var(--nav) + 0.4rem);
    padding-bottom: 4.5rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: clamp(1.8rem, 7vh, 2.4rem);
  }

  .kicker {
    margin-bottom: 0.35rem;
  }

  .lede,
  .body {
    margin-top: 0.45rem;
  }

  .scroll-cue {
    margin-top: 0.55rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--nav) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(12, 11, 10, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 6vw 1rem;
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .logo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story {
    height: calc(var(--screen-h) * 5.75);
  }

  .story-sticky,
  .panel,
  .directory,
  .footer {
    padding-left: max(6vw, env(safe-area-inset-left));
    padding-right: max(6vw, env(safe-area-inset-right));
  }

  h1 {
    font-size: clamp(3.1rem, 14vw, 4.6rem);
    max-width: 8ch;
  }

  h2 {
    max-width: none;
  }

  .service-list,
  .about,
  .details {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .socials {
    padding-bottom: 1rem;
  }

  .footer {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 899px) and (orientation: portrait) {
  .story-sticky {
    align-items: stretch;
    padding-top: 0;
    padding-bottom: 0;
  }

  .shade {
    background: linear-gradient(
      180deg,
      rgba(8, 8, 10, 0.82) 0%,
      rgba(8, 8, 10, 0.74) calc(50% - min(40vw, 35%) - 2.4rem),
      rgba(8, 8, 10, 0) calc(50% - min(40vw, 35%)),
      rgba(8, 8, 10, 0) calc(50% + min(40vw, 35%)),
      rgba(8, 8, 10, 0.76) calc(50% + min(40vw, 35%) + 1.15rem),
      rgba(8, 8, 10, 0.86) 100%
    );
  }

  .chapter {
    position: relative;
    align-self: stretch;
    max-width: none;
    height: 100%;
  }

  .chapter .kicker,
  .chapter h1,
  .chapter h2,
  .chapter .lede,
  .chapter .body,
  .chapter .scroll-cue,
  .chapter .text-link {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
  }

  .chapter .kicker {
    top: calc(var(--nav) + env(safe-area-inset-top) + 0.45rem);
  }

  .chapter h1,
  .chapter h2 {
    top: calc(var(--nav) + env(safe-area-inset-top) + 2rem);
  }

  .chapter .lede,
  .chapter .body,
  .chapter .text-link {
    top: calc(50% + min(40vw, 35%) + 0.85rem);
  }

  .chapter .scroll-cue {
    top: calc(50% + min(40vw, 35%) + 5.5rem);
  }

  .story-sticky h1 {
    font-size: clamp(2.3rem, 11vw, 3.1rem);
  }

  .story-sticky h2 {
    font-size: clamp(1.85rem, 7.6vw, 2.45rem);
  }
}

@media (max-width: 899px) and (orientation: portrait) and (max-height: 740px) {
  .chapter .kicker {
    top: calc(var(--nav) + env(safe-area-inset-top) + 0.4rem);
  }

  .chapter h1,
  .chapter h2 {
    top: calc(var(--nav) + env(safe-area-inset-top) + 1.65rem);
  }

  .story-sticky h1 {
    font-size: 1.8rem;
  }

  .story-sticky h2 {
    font-size: 1.32rem;
  }

  .chapter .lede,
  .chapter .body {
    font-size: 0.95rem;
    line-height: 1.35;
  }
}

@media (min-width: 700px) and (max-width: 899px) and (orientation: portrait) {
  .chapter .kicker {
    top: calc(var(--nav) + env(safe-area-inset-top) + 0.45rem);
  }

  .chapter h1,
  .chapter h2 {
    top: calc(var(--nav) + env(safe-area-inset-top) + 1.75rem);
  }

  .story-sticky h1 {
    font-size: 2.3rem;
  }

  .story-sticky h2 {
    font-size: 1.55rem;
  }
}

.pop {
  opacity: 0;
  transform: translateY(1.15rem) scale(0.98);
}

.pop.is-in {
  animation: pop-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--pop-delay, 0ms);
}

@keyframes pop-up {
  0% {
    opacity: 0;
    transform: translateY(1.35rem) scale(0.96);
  }
  65% {
    opacity: 1;
    transform: translateY(-0.2rem) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .story {
    height: auto;
  }

  .story-sticky {
    position: relative;
    height: auto;
    display: block;
    padding-bottom: 4rem;
  }

  .chapter {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12vh 0;
  }

  .pop,
  .ipad-device {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
