:root {
  --bg: #e8e4e0;
  --fg: #1a1818;
  --fg-rgb: 26, 24, 24;
  --card: #f3f0ec;
  --card-line: rgba(26, 24, 24, 0.08);
  --accent: #6b4f4f;
  --room: #fbfaf8;
  --shadow:
    0 -1px 0 rgba(255, 255, 255, 0.6) inset,
    0 30px 60px -30px rgba(26, 24, 24, 0.35),
    0 -12px 40px -24px rgba(26, 24, 24, 0.25);
  --font:
    "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
html[data-mode="dark"] {
  --bg: #1a1818;
  --fg: #e8e4e0;
  --fg-rgb: 232, 228, 224;
  --card: #232020;
  --card-line: rgba(232, 228, 224, 0.08);
  --accent: #d9c6c6;
  --room: #050505;
  --shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 -12px 40px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid #6b5c5c;
  outline-offset: 3px;
}
.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: var(--room);
  animation: out 0.8s ease 0.15s forwards;
}
@keyframes out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
html.embed .glow {
  animation: none;
  transition:
    opacity 0.45s ease,
    visibility 0s linear 0.45s;
}
html.embed.in .glow {
  opacity: 0;
  visibility: hidden;
}
html.embed.out .glow {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease;
}

.wrap {
  max-width: 88rem;
  margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-right)) 0
    max(16px, env(safe-area-inset-left));
}
@media (min-width: 1024px) {
  .wrap {
    padding-inline: 88px;
  }
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 56px;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(var(--fg-rgb), 0.14);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s;
}
.chip:hover {
  background: rgba(var(--fg-rgb), 0.05);
}
.lbl {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(var(--fg-rgb), 0.5);
}
.intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 64px;
  text-align: left;
}
.intro h1 {
  white-space: nowrap;
  font-size: clamp(34px, 8.2vw, 104px);
}
h1 {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.95;
}
.intro p {
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(var(--fg-rgb), 0.68);
}
.intro .count {
  display: block;
  margin-top: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- stacked project cards ---------- */
.stack {
  position: relative;
  padding-bottom: 12vh;
}
.card {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 16px + var(--i) * 14px);
  margin-bottom: 6vh;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid var(--card-line);
  transform-origin: 50% 0;
  will-change: transform;
  overflow: hidden;
}
.card__in {
  display: grid;
  gap: 28px;
  padding: 28px;
  min-height: min(calc(100vh - var(--nav-h, 72px) - 120px), 720px);
}
@media (min-width: 900px) {
  .card__in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 40px;
    padding: 48px 52px;
  }
  .card.flip .card__in {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .card.flip .card__info {
    order: 2;
  }
}
.card__dim {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.card__meta .no {
  color: rgba(var(--fg-rgb), 0.4);
}
.card__meta i {
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.card h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 10px;
}
.card .sub {
  font-size: 15px;
  font-weight: 500;
  color: rgba(var(--fg-rgb), 0.7);
  margin-bottom: 22px;
}
.card .desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(var(--fg-rgb), 0.75);
  max-width: 44ch;
  margin-bottom: 26px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.tags li {
  list-style: none;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(var(--fg-rgb), 0.14);
  font-size: 13px;
  font-weight: 500;
  color: rgba(var(--fg-rgb), 0.8);
}
.note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(var(--fg-rgb), 0.68);
}
.note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7a8670;
}

/* ---------- the desktop: a slightly side-on monitor ---------- */
.stage {
  position: relative;
  perspective: 1900px;
  perspective-origin: 50% 40%;
  padding: 10px 0 28px;
}
.mon {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-17deg) rotateX(4deg);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-inline: auto;
  width: 100%;
  max-width: 720px;
}
.card.flip .mon {
  transform: rotateY(17deg) rotateX(4deg);
}
.card:hover .mon {
  transform: rotateY(-12deg) rotateX(3deg);
}
.card.flip:hover .mon {
  transform: rotateY(12deg) rotateX(3deg);
}
.mon__body {
  position: relative;
  transform-style: preserve-3d;
  --mp: clamp(5px, 1.3vw, 11px);
  padding: var(--mp);
  border-radius: calc(var(--mp) + 8px);
  background: linear-gradient(160deg, #2a2828, #0d0c0c 60%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
/* the monitor's thickness: an edge you see because it is turned */
.mon__body::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 0;
  width: 22px;
  transform-origin: 100% 50%;
  transform: rotateY(-90deg);
  background: linear-gradient(180deg, #bdb9b5, #8d8985 50%, #6f6b68);
  border-radius: 0 6px 6px 0;
}
.card.flip .mon__body::before {
  right: auto;
  left: 0;
  transform-origin: 0 50%;
  transform: rotateY(90deg);
}
.mon__screen {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  transform: translateZ(0.5px);
}
.mon__screen img.page {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.mon__screen video {
  border-radius: inherit;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
}
.mon__screen.vid {
  aspect-ratio: var(--ar, 16/10);
}
.mon__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.04) 28%,
      transparent 42%
    ),
    linear-gradient(0deg, rgba(0, 0, 0, 0.12), transparent 30%);
}
.mon__neck {
  position: relative;
  width: 15%;
  height: clamp(40px, 7vw, 78px);
  margin: -2px auto 0;
  transform: translateZ(-30px);
  background: linear-gradient(
    90deg,
    #8e8a86,
    #d9d5d0 45%,
    #b7b2ad 60%,
    #7e7a76
  );
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}
.mon__foot {
  width: 36%;
  height: 12px;
  margin: 0 auto;
  border-radius: 3px 3px 8px 8px;
  transform: translateZ(-30px);
  background: linear-gradient(180deg, #e5e1dc, #a9a49f);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.stage::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 14px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.35), transparent);
  filter: blur(6px);
  z-index: -1;
}
html[data-mode="dark"] .stage::after {
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.8), transparent);
}

/* arriving */
.card .card__info > *,
.card .stage {
  transition:
    opacity 0.8s ease,
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:not(.seen) .card__info > * {
  opacity: 0;
  transform: translateY(18px);
}
.card:not(.seen) .stage {
  opacity: 0;
  transform: translateX(40px);
}
@media (max-width: 899.98px) {
  .card:not(.seen) .stage,
  .card.flip:not(.seen) .stage {
    transform: translateY(20px);
  }
}
.card.flip:not(.seen) .stage {
  transform: translateX(-40px);
}
.card .card__info > *:nth-child(2) {
  transition-delay: 0.05s;
}
.card .card__info > *:nth-child(3) {
  transition-delay: 0.1s;
}
.card .card__info > *:nth-child(4) {
  transition-delay: 0.15s;
}
.card .card__info > *:nth-child(5) {
  transition-delay: 0.2s;
}
.card .card__info > *:nth-child(6) {
  transition-delay: 0.25s;
}

.outro {
  padding: 10vh 0 14vh;
  text-align: center;
}
.outro p {
  font-size: 15px;
  color: rgba(var(--fg-rgb), 0.55);
  margin-bottom: 18px;
}

@media (max-width: 899.98px) {
  .card {
    top: calc(var(--nav-h, 64px) + 10px + var(--i) * 10px);
    border-radius: 22px;
  }
  /* phones: each card fits one screen, desktop on top, the essentials below */
  .card__in {
    padding: 16px 18px 20px;
    min-height: auto;
    gap: 4px;
    max-height: calc(100svh - var(--nav-h, 64px) - 40px);
  }
  .stage {
    order: -1;
    padding: 4px 6% 18px;
  }
  .mon__neck {
    height: 30px;
  }
  .card__meta {
    margin-bottom: 8px;
    font-size: 11px;
  }
  .card h2 {
    font-size: 26px;
    margin-bottom: 4px;
  }
  .card .sub {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .card .desc {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tags {
    display: none;
  }
  .mon,
  .card.flip .mon {
    transform: rotateY(-10deg) rotateX(3deg);
  }
  .card.flip .mon__body::before {
    right: 0;
    left: auto;
    transform-origin: 100% 50%;
    transform: rotateY(-90deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .glow {
    display: none;
  }
  .card .card__info > *,
  .card .stage {
    transition: none;
    opacity: 1 !important;
    transform: none !important;
  }
}

.rn {
  position: sticky;
  top: 0;
  z-index: 40;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease;
}
.rn {
  background: var(--bg);
}
.rn.stuck {
  box-shadow: 0 1px 0 rgba(var(--fg-rgb), 0.1);
}
.rn__in {
  max-width: 88rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem max(16px, env(safe-area-inset-right)) 1.1rem
    max(16px, env(safe-area-inset-left));
  transition: padding 0.35s ease;
}
.rn.stuck .rn__in {
  padding-block: 0.8rem;
}
@media (min-width: 1024px) {
  .rn__in {
    padding-inline: 88px;
  }
}
.rn nav ul {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.4rem;
  white-space: nowrap;
}
.rn nav button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.2s;
}
.rn nav button:hover,
.rn nav button[aria-current] {
  opacity: 1;
}
.rn nav button[aria-current] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}
.rn__clock {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--fg-rgb), 0.12);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.rn__clock span {
  color: rgba(var(--fg-rgb), 0.68);
}
.rn__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.05rem 0 0.95rem;
  font:
    500 0.9375rem/1 "Onest",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  border-radius: 999px;
  border: 1px solid rgba(var(--fg-rgb), 0.12);
  background: none;
  color: var(--fg);
  cursor: pointer;
}
.rn__menu svg {
  width: 1.1rem;
  height: 1.1rem;
}
/* ---------- the menu, full screen, on small screens ---------- */
.rn__panel {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  padding: max(1rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  background: var(--bg);
  color: var(--fg);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.4s;
}
.rn.open .rn__panel {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
/* a wash of colour sweeps up behind the items as it opens */
.rn__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      70% 55% at 12% 100%,
      rgba(164, 85, 44, 0.2),
      transparent 70%
    ),
    radial-gradient(
      60% 50% at 95% 4%,
      rgba(196, 176, 176, 0.18),
      transparent 72%
    );
  opacity: 0;
  transform: translateY(12%) scale(1.08);
  transition:
    opacity 0.6s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.rn.open .rn__panel::before {
  opacity: 1;
  transform: none;
}
.rn__phead {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  margin-bottom: auto;
}
.rn__plbl {
  font:
    600 0.75rem/1 "Onest",
    ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--fg-rgb), 0.5);
}
.rn__pclose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--fg-rgb), 0.14);
  background: none;
  color: var(--fg);
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.rn__pclose:hover {
  background: rgba(var(--fg-rgb), 0.08);
  transform: rotate(90deg);
}
.rn__pclose svg {
  width: 1.15rem;
  height: 1.15rem;
}
.rn__plist {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  padding-block: 2rem;
}
/* each line rises into place, one after the other */
.rn__plist button {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  width: 100%;
  padding: 0.45rem 0;
  border: 0;
  background: none;
  color: var(--fg);
  font:
    600 clamp(2rem, 9.5vw, 2.9rem)/1.06 "Onest",
    ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: -0.03em;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity 0.5s ease,
    transform 0.66s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.25s ease;
}
.rn.open .rn__plist button {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 55ms + 90ms);
}
.rn__plist button::before {
  content: counter(rnc, decimal-leading-zero);
  counter-increment: rnc;
  font:
    600 0.8125rem/1 ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0.1em;
  color: rgba(var(--fg-rgb), 0.38);
  transition: color 0.25s;
}
.rn__plist {
  counter-reset: rnc;
}
.rn__plist button[aria-current] {
  color: var(--fg);
}
.rn__plist button[aria-current]::before {
  color: #a4552c;
}
@media (hover: hover) {
  .rn__plist button:hover {
    color: #a4552c;
  }
  .rn__plist button:hover::before {
    color: #a4552c;
  }
}
.rn__pfoot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(var(--fg-rgb), 0.1);
  font:
    500 0.8125rem/1.4 "Onest",
    ui-sans-serif,
    system-ui,
    sans-serif;
  color: rgba(var(--fg-rgb), 0.55);
  opacity: 0;
  transform: translateY(0.6rem);
  transition:
    opacity 0.5s ease 0.34s,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.34s;
}
.rn.open .rn__pfoot {
  opacity: 1;
  transform: none;
}
html.rn-lock,
html.rn-lock body {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .rn__panel,
  .rn__panel::before,
  .rn__plist button,
  .rn__pfoot {
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
}

/* ---------- where things sit in the bar ---------- */
/* wide: the full nav shows, and "back" floats in the bottom-left corner instead of taking bar space */
@media (min-width: 1200px) {
  .rn nav ul {
    display: flex;
  }
  .rn__menu,
  .rn__panel {
    display: none !important;
  }
  .backd {
    position: fixed;
    left: max(1.5rem, env(safe-area-inset-left));
    bottom: max(1.5rem, calc(env(safe-area-inset-bottom) + 1rem));
    top: auto;
    z-index: 60;
    height: 3rem;
    padding: 0 1.25rem 0 1rem;
    border-color: transparent;
    background: var(--bd-float, rgba(26, 24, 24, 0.9));
    color: var(--bd-floatfg, #e8e4e0);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow:
      0 12px 30px -12px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  .backd span {
    display: inline;
  }
  .backd:hover {
    background: var(--bd-float, rgba(26, 24, 24, 1));
    border-color: transparent;
  }
}
html[data-mode="dark"] .backd {
  --bd-float: rgba(232, 228, 224, 0.92);
  --bd-floatfg: #1a1818;
}
/* narrow: back on the left, menu on the right, no clock */
@media (max-width: 1199.98px) {
  .rn__in {
    justify-content: space-between;
  }
  .rn nav {
    display: none;
  }
  .rn__clock {
    display: none;
  }
  .rn__menu {
    order: 99;
    margin-left: auto;
  }
  .backd {
    order: -2;
  }
}

/* ---------- footer ---------- */
/* the footer slides up over the last 32px of the section above, so its rounded corners show that
   section's real background (gradients and glows included) instead of a flat patch of colour */
.sfw {
  position: relative;
  z-index: 2;
  background: transparent;
  margin-top: -32px;
}
.sfw--dark .sf {
  box-shadow: inset 0 1px 0 rgba(232, 228, 224, 0.12);
}
.sf {
  --sf-bg: #1a1818;
  --sf-fg: #e8e4e0;
  --sf-rgb: 232, 228, 224;
  --sf-acc: #c4b0b0;
  position: relative;
  z-index: 2;
  background: var(--sf-bg);
  color: var(--sf-fg);
  border-radius: 2rem 2rem 0 0;
  overflow: hidden;
  font-family:
    "Onest",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
html[data-mode="dark"] .sf {
  --sf-bg: #0f0e0e;
  box-shadow: inset 0 1px 0 rgba(232, 228, 224, 0.1);
}
.sf__in {
  max-width: 88rem;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 1.5rem;
}
@media (min-width: 1024px) {
  .sf__in {
    padding: 7rem 5.5rem 1.75rem;
  }
}
html,
body {
  overscroll-behavior-y: none;
}
html {
  background: #1a1818;
}
html[data-mode="dark"] {
  background: #0f0e0e;
}
body {
  margin: 0;
}
.sf {
  margin-bottom: 0;
}
.sf__eye {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(var(--sf-rgb), 0.6);
}
.sf__eye i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #8fbf7a;
  box-shadow: 0 0 0 0 rgba(143, 191, 122, 0.6);
  animation: sfPulse 2.2s ease-out infinite;
}
@keyframes sfPulse {
  70% {
    box-shadow: 0 0 0 0.55rem rgba(143, 191, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(143, 191, 122, 0);
  }
}
.sf__h {
  margin: 1.4rem 0 1.25rem;
  font-size: clamp(2.75rem, 7.5vw, 6.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.sf__h span {
  display: block;
  color: rgba(var(--sf-rgb), 0.42);
}
.sf__p {
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(var(--sf-rgb), 0.7);
}
.sf__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.sf__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  height: 3.5rem;
  padding: 0 0.55rem 0 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--sf-fg);
  color: var(--sf-bg);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sf__btn b {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--sf-bg);
  color: var(--sf-fg);
}
.sf__btn svg {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sf__btn:hover {
  transform: translateY(-2px);
}
.sf__btn:hover svg {
  transform: translateX(3px);
}
.sf__ghost {
  display: inline-flex;
  align-items: center;
  height: 3.5rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--sf-rgb), 0.2);
  background: none;
  color: var(--sf-fg);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s;
}
.sf__ghost:hover {
  background: rgba(var(--sf-rgb), 0.07);
}
.sf__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.5rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(var(--sf-rgb), 0.12);
}
@media (min-width: 768px) {
  .sf__cols {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.sf__cols h3 {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--sf-rgb), 0.66);
}
.sf__cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
@media (pointer: coarse), (max-width: 767.98px) {
  .sf__cols ul {
    gap: 0;
  }
  .sf__cols button,
  .sf__cols a,
  .sf__bot button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }
  .sf__cols li.st {
    min-height: 32px;
    display: flex;
    align-items: center;
  }
}
.sf__cols button,
.sf__cols a {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(var(--sf-rgb), 0.85);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: color 0.2s;
}
.sf__cols button:hover,
.sf__cols a:hover {
  color: #fff;
}
.sf__cols li.st {
  font-size: 0.9375rem;
  color: rgba(var(--sf-rgb), 0.85);
}
.sf__cols .work {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.6rem 1.5rem;
}
.sf__in {
  position: relative;
  z-index: 1;
}
/* the name runs the full width of the footer, edge to edge, behind the links and the bottom line */
.sf__word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  margin: 0;
  padding: 0 1.2vw;
  font-size: var(--wf, 15vw);
  font-weight: 700;
  line-height: 0.74;
  letter-spacing: -0.055em;
  color: rgba(var(--sf-rgb), 0.17);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
  transform: translateY(0.05em);
}
.sf__word span {
  display: inline-block;
}
.sf__word .short {
  display: none;
}
@media (max-width: 767.98px) {
  .sf__word .full {
    display: none;
  }
  .sf__word .short {
    display: inline-block;
  }
}

.sf__bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  color: rgba(var(--sf-rgb), 0.68);
}
.sf__bot button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.sf__bot button:hover {
  color: var(--sf-fg);
}
.sf__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(var(--sf-rgb), 0.35);
}
.sf__legal a:hover {
  color: var(--sf-fg);
}
@media (pointer: coarse), (max-width: 767.98px) {
  .sf__legal a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sf__eye i {
    animation: none;
  }
}
/* ---------- floating back-to-top ---------- */
.totop {
  --tt-bg: #1a1818;
  --tt-fg: #e8e4e0;
  --tt-ring: 232, 228, 224;
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tt-bg);
  color: var(--tt-fg);
  cursor: pointer;
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(var(--tt-ring), 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem) scale(0.9);
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0.35s,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}
.totop.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.totop[data-on="dark"] {
  --tt-bg: #e8e4e0;
  --tt-fg: #1a1818;
  --tt-ring: 26, 24, 24;
}
.totop svg.ar {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.totop svg.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.totop .ring circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.85;
  stroke-dasharray: var(--len);
  stroke-dashoffset: calc(var(--len) * (1 - var(--p, 0)));
  transition: stroke-dashoffset 0.12s linear;
}
.totop .lbl {
  position: absolute;
  right: calc(100% + 0.6rem);
  top: 50%;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--tt-bg);
  color: var(--tt-fg);
  font:
    500 0.8125rem/1 "Onest",
    ui-sans-serif,
    system-ui,
    sans-serif;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(0.4rem, -50%);
  transition:
    opacity 0.25s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 0 1px rgba(var(--tt-ring), 0.14);
}
@media (hover: hover) {
  .totop:hover {
    transform: translateY(-3px);
  }
  .totop:hover svg.ar {
    transform: translateY(-3px);
  }
  .totop:hover .lbl {
    opacity: 1;
    transform: translate(0, -50%);
  }
}
.totop:focus-visible {
  outline: 2px solid #c4b0b0;
  outline-offset: 3px;
}
@media (max-width: 767.98px) {
  .totop {
    width: 3rem;
    height: 3rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .totop,
  .totop svg.ar {
    transition:
      opacity 0.2s ease,
      visibility 0s linear 0.2s;
  }
}

.skel {
  position: relative;
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-radius: inherit;
  opacity: 1;
  background: linear-gradient(100deg, #e2ddd8 30%, #f1ede9 50%, #e2ddd8 70%);
  background-size: 220% 100%;
  animation: skel 1.25s linear infinite;
}
html[data-mode="dark"] .skel::after {
  background-image: linear-gradient(
    100deg,
    #231f1f 30%,
    #2f2a2a 50%,
    #231f1f 70%
  );
}
@keyframes skel {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -100% 0;
  }
}
/* a recording that is still buffering: a light sweep over its poster until it plays */
.skel-buf {
  position: relative;
}
.skel-buf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  background-size: 220% 100%;
  animation: skel 1.25s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .skel::after {
    animation: none;
  }
}

/* "Back to the doors" sits in the room's sticky header: it stays on screen the whole
   time you are inside a room, but it is part of the bar rather than floating over the page,
   so it never covers anything you are reading. */
.backd {
  order: -2;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.1rem 0 0.85rem;
  border: 1px solid rgba(var(--fg-rgb), 0.14);
  border-radius: 999px;
  background: rgba(var(--fg-rgb), 0.05);
  color: var(--fg);
  font:
    500 0.9375rem/1 "Onest",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-0.5rem);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease,
    border-color 0.25s ease;
}
.backd.show {
  opacity: 1;
  transform: none;
}
.backd svg {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .backd:hover {
    background: rgba(var(--fg-rgb), 0.1);
    border-color: rgba(var(--fg-rgb), 0.26);
  }
  .backd:hover svg {
    transform: translateX(-3px);
  }
}
.backd:focus-visible {
  outline: 2px solid #c4b0b0;
  outline-offset: 3px;
}
/* phones keep the words on both pills; on the very narrowest screens they just get a little smaller */
@media (max-width: 359.98px) {
  .backd,
  .rn__menu {
    font-size: 0.8125rem;
  }
  .backd {
    padding: 0 0.85rem 0 0.7rem;
  }
  .rn__menu {
    padding: 0 0.85rem;
  }
}
/* the leftover top row above each room's title, and the gap under the intro */
.top {
  display: none !important;
}
.intro {
  padding-bottom: clamp(28px, 4vw, 44px) !important;
}
.rn__in {
  min-width: 0;
}
.rn nav {
  min-width: 0;
}
