:root {
  color-scheme: dark;
  background: #110c0d;
  --ink: #f0ded0;
  --muted: #b9aaa0;
  --line: rgba(222, 194, 173, 0.5);
  --black-cherry: #110c0d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #110c0d;
}

html {
  scroll-behavior: smooth;
}

body {
  display: block;
  color: var(--ink);
  font-family: 'Tenor Sans', sans-serif;
}

.comp-frame {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  background: #110c0d;
}

.plate {
  margin: 0;
  overflow: hidden;
}

.plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.r-boots-close-up img,
.r-latex-close-up img {
  object-fit: contain;
}

.r-boots-close-up img {
  width: 98%;
  margin-right: 2%;
}

.site-header {
  z-index: 4;
  background: rgba(10, 8, 9, 0.9);
  border-bottom: 1px solid rgba(240, 222, 208, 0.3);
}

.menu-toggle {
  display: none;
}

.brand,
.nav-links,
.hero-title,
.hero-meta,
.hero-subline,
.hero-action,
.universe-title,
.universe-copy,
.universe-close,
.ritual-title,
.ritual-copy,
.ritual-close {
  z-index: 5;
  margin: 0;
}

.brand {
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: var(--r-brand-name-font);
  line-height: 1;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links a {
  color: rgba(240, 222, 208, 0.76);
  padding-block: 0.2rem 0.5rem;
  text-decoration: none;
  text-underline-offset: 0.45rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links .active {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.hero-title {
  color: #ead8c8;
  font-family: 'Playfair Display', serif;
  font-size: var(--r-hero-title-font);
  font-weight: var(--r-hero-title-weight);
  line-height: 1;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-meta,
.hero-subline {
  color: #807977;
  font-size: var(--r-hero-meta-font);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.5em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-meta {
  width: calc(var(--r-hero-meta-w) / 0.95);
  transform: scaleX(0.95);
  transform-origin: left center;
}

.hero-subline {
  color: #918885;
  font-size: var(--r-hero-subline-font);
  letter-spacing: 0.5em;
  width: calc(var(--r-hero-subline-w) / 0.95);
  transform: scaleX(0.95);
  transform-origin: left center;
}

.hero-action {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #cbb6a7;
  font-size: 8px;
  letter-spacing: 0.32em;
  padding-bottom: 1.2rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 36%;
  background: var(--line);
}

.hero-action::after {
  content: '';
  position: absolute;
  bottom: 0.75rem;
  left: 16%;
  width: 68%;
  height: 1px;
  background: var(--line);
}

.universe-title,
.ritual-title {
  color: #e5d1bd;
  font-family: 'Playfair Display', serif;
  font-size: var(--r-universe-title-font);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.universe-title::after,
.ritual-title::after,
.ritual-copy::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  margin-top: 1.25rem;
  background: var(--line);
}

.universe-copy {
  color: #aaa3a0;
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.04em;
}

.universe-copy p {
  margin: 0 0 2.4rem;
}

.universe-close,
.ritual-close {
  color: #a39384;
  font-size: var(--r-universe-close-font);
  line-height: 1.8;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.section-divider {
  z-index: 5;
  background: rgba(232, 203, 180, 0.45);
}

.ritual-title {
  font-size: var(--r-ritual-title-font);
  letter-spacing: 0.13em;
}

.ritual-copy {
  color: rgba(230, 222, 217, 0.85);
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.05em;
}

.ritual-close {
  font-size: 8px;
  line-height: 2.1;
}

::selection {
  color: #110c0d;
  background: #b57cff;
}

:focus-visible {
  outline: 1px solid #d6b8ff;
  outline-offset: 5px;
}

* {
  scrollbar-color: #541016 #110c0d;
  scrollbar-width: thin;
}

.rope-section,
.safety-section,
.site-footer {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.rope-section {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  min-height: 760px;
  background: #0d090b;
  border-top: 1px solid rgba(232, 203, 180, 0.3);
}

.rope-media {
  min-height: 760px;
  margin: 0;
  overflow: hidden;
}

.rope-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% center;
}

.rope-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.5rem, 8vw, 8rem) clamp(2rem, 5vw, 5rem);
  background: #120c0f;
  border-left: 1px solid rgba(232, 203, 180, 0.22);
}

.rope-copy h2,
.safety-section h2 {
  max-width: 9ch;
  margin: 0 0 2.5rem;
  color: #ead8c8;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5.5vw, 5.6rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.rope-copy p {
  max-width: 35rem;
  margin: 0 0 1.4rem;
  color: #b8aaa5;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  line-height: 1.75;
}

.rope-copy a,
.site-footer a {
  width: fit-content;
  margin-top: 1.8rem;
  color: #d5c1b1;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-decoration-color: #7a456f;
  text-underline-offset: 0.6rem;
  text-transform: uppercase;
}

.rope-copy a:hover,
.rope-copy a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff4ed;
  text-decoration-color: #b57cff;
}

.safety-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 9vw, 9rem);
  padding: clamp(5rem, 10vw, 10rem) clamp(2rem, 7vw, 7rem);
  color: #21171a;
  background: #e9e0d8;
}

.safety-section h2 {
  max-width: 10ch;
  color: #21171a;
}

.safety-heading > p {
  max-width: 35ch;
  margin: 0;
  color: #5a3d45;
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  line-height: 1.45;
}

.safety-copy > p {
  max-width: 60ch;
  margin: 0 0 3.5rem;
  color: #4c383e;
  font-size: 1rem;
  line-height: 1.75;
}

.signals {
  margin: 0;
  border-top: 1px solid rgba(43, 22, 28, 0.28);
}

.signals div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(43, 22, 28, 0.28);
}

.signals dt {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
}

.signals dd {
  margin: 0;
  color: #694f56;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: 1.5rem 3rem;
  align-items: end;
  padding: 5rem clamp(2rem, 6vw, 6rem);
  color: #9e8d83;
  background: #0a0708;
  border-top: 1px solid rgba(232, 203, 180, 0.25);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-transform: uppercase;
}

.footer-mark {
  color: #ead8c8;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
}

.site-footer p {
  margin: 0;
}

.adult-note {
  grid-column: 1 / 3;
  max-width: 60ch;
  text-transform: none;
}

.site-footer a {
  justify-self: end;
  margin: 0;
}

@supports (animation-timeline: view()) {
  .rope-media img {
    animation: rope-drift linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }

  @keyframes rope-drift {
    from { object-position: 42% center; }
    to { object-position: 56% center; }
  }
}

@media (min-width: 761px) {
  .brand { font-size: clamp(17px, 1.66vw, 24px); }
  .nav-links { font-size: clamp(8px, 0.78vw, 11px); }
  .hero-title { font-size: clamp(51px, 4.98vw, 72px); }
  .hero-meta { font-size: clamp(11px, 0.98vw, 14px); }
  .hero-subline { font-size: clamp(10px, 0.98vw, 14px); }
  .hero-action { font-size: clamp(8px, 0.78vw, 11px); }
  .universe-title { font-size: clamp(19px, 1.85vw, 27px); }
  .universe-copy { font-size: clamp(12px, 1.17vw, 17px); }
  .universe-close { font-size: clamp(10px, 0.98vw, 14px); }
  .ritual-title { font-size: clamp(25px, 2.44vw, 35px); }
  .ritual-copy { font-size: clamp(13px, 1.27vw, 18px); }
  .ritual-close { font-size: clamp(8px, 0.78vw, 11px); }
}

@media (max-width: 760px) {
  body.menu-open {
    overflow: hidden;
  }

  .comp-frame {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-height: auto;
    padding-top: 100svh;
    aspect-ratio: auto;
    overflow: visible;
  }

  .r-hero-architecture {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: 100svh;
  }

  .r-hero-architecture img {
    object-position: 51% center;
  }

  .site-header {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: 4.5rem;
  }

  .brand {
    position: absolute;
    top: 1.7rem;
    left: 1.25rem;
    width: auto;
    height: auto;
    font-size: 0.78rem;
  }

  .menu-toggle {
    position: absolute;
    z-index: 8;
    top: 1.25rem;
    right: 1.25rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-content: center;
    gap: 0.35rem;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
  }

  .menu-toggle span {
    display: block;
    width: 1.35rem;
    height: 1px;
    background: currentColor;
    transition: transform 260ms ease, translate 260ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    translate: 0 0.18rem;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    translate: 0 -0.18rem;
    transform: rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    z-index: 7;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100svh;
    padding: 5rem 2rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 9vw, 3rem);
    letter-spacing: 0.04em;
    background: rgba(10, 7, 8, 0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-1rem);
    transition: visibility 0s linear 300ms, opacity 300ms ease, transform 300ms ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .hero-title,
  .hero-meta,
  .hero-subline,
  .hero-action {
    position: absolute;
    left: 1.25rem;
    width: calc(100% - 2.5rem);
    height: auto;
    transform: none;
  }

  .hero-title {
    top: 57svh;
    font-size: clamp(2.6rem, 14vw, 4.5rem);
    line-height: 0.94;
    text-align: left;
    white-space: normal;
  }

  .hero-meta {
    top: 75svh;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
  }

  .hero-subline {
    top: 79svh;
    color: #d0c5c1;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  .hero-action {
    top: 85svh;
    left: 1.25rem;
    align-items: center;
    justify-content: flex-start;
    width: 11rem;
    padding: 1.2rem 0;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }

  .hero-action::before {
    display: none;
  }

  .hero-action::after {
    right: 0;
    bottom: 0.8rem;
    left: 0;
    width: 100%;
  }

  .r-objects-still-life,
  .r-boots-close-up,
  .r-latex-close-up,
  .r-universe-title,
  .r-universe-copy,
  .r-universe-close,
  .r-section-divider,
  .r-ritual-title,
  .r-ritual-copy,
  .r-ritual-close {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    transform: none;
  }

  .r-objects-still-life { order: 10; height: 360px; }
  .r-universe-title { order: 11; padding: 3.5rem 1.5rem 0; font-size: 1.8rem; }
  .r-universe-copy { order: 12; padding: 2.5rem 1.5rem 0; font-size: 1rem; color: #b8aaa5; }
  .r-universe-close { order: 13; padding: 0 1.5rem 4rem; }
  .r-section-divider { order: 14; width: 100%; height: 1px; }
  .r-ritual-title { order: 15; padding: 4rem 1.5rem 1.5rem; font-size: 2rem; }
  .r-ritual-copy { order: 16; padding: 1rem 1.5rem 2.5rem; font-size: 1rem; }
  .r-boots-close-up { order: 17; height: 420px; margin: 0 1.5rem 1rem; }
  .r-latex-close-up { order: 18; height: 420px; margin: 0 1.5rem; }
  .r-ritual-close { order: 19; padding: 2.5rem 1.5rem 4.5rem; }

  .r-boots-close-up img {
    width: 100%;
    margin: 0;
  }

  .rope-section,
  .safety-section,
  .site-footer {
    width: 100%;
  }

  .rope-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .rope-media {
    min-height: 440px;
  }

  .rope-copy {
    padding: 4.5rem 1.5rem 5rem;
    border-top: 1px solid rgba(232, 203, 180, 0.22);
    border-left: 0;
  }

  .rope-copy h2,
  .safety-section h2 {
    max-width: 100%;
    font-size: clamp(2.75rem, 13vw, 3.5rem);
    overflow-wrap: break-word;
  }

  .safety-section {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 5rem 1.5rem;
  }

  .signals div {
    grid-template-columns: 6.5rem 1fr;
    gap: 1rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem;
  }

  .adult-note {
    grid-column: auto;
  }

  .site-footer a {
    justify-self: start;
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
