@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/SourceSans3-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/SourceSans3-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/SourceSans3-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/SourceSans3-900.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #242529;
  --cream: #f7eadc;
  --tally: #bc2328;
  --warm-dark: #8b847b;
  --warm-light: #6f6962;
  --dark: #141216;
  --dark-raised: #1b181d;
  --page-bg: var(--dark);
  --page-text: var(--cream);
  --page-muted: #c8bbb0;
  --page-line: #4f4a4e;
  --header-bg: rgba(20, 18, 22, 0.9);
  --gutter: clamp(20px, 4vw, 72px);
  --header-height: 78px;
  --portal-progress: 0;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
}

html[data-polarity="light"] {
  color-scheme: light;
  --page-bg: var(--cream);
  --page-text: var(--ink);
  --page-muted: var(--warm-light);
  --page-line: #b2a99e;
  --header-bg: rgba(247, 234, 220, 0.92);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-bg);
  color: var(--page-text);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--page-text);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--tally);
  color: var(--cream);
}

:focus-visible {
  outline: 3px solid var(--tally);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--cream);
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  translate: 0 -180%;
  background: var(--cream);
  color: var(--ink);
  padding: 11px 15px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  translate: 0;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(138px, 190px) 1fr auto;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--page-line);
  background: var(--header-bg);
  color: var(--page-text);
  backdrop-filter: blur(14px);
}

.site-header.is-solid,
body.nav-open .site-header {
  border-color: var(--page-line);
  background: var(--header-bg);
  color: var(--page-text);
}

.brand-lockup,
.footer-brand {
  display: block;
  text-decoration: none;
}

.brand-lockup img {
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}

.primary-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  text-decoration: underline;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.funnel-cta,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tally);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}

.funnel-cta,
.button-primary {
  background: var(--tally);
  color: var(--cream);
}

.funnel-cta:hover {
  border-color: var(--page-text);
  background: var(--page-text);
  color: var(--page-bg);
}

.button-primary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.polarity-toggle,
.menu-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid currentColor;
  background: transparent;
}

.polarity-toggle {
  display: grid;
  place-items: center;
}

.polarity-toggle span {
  width: 18px;
  height: 18px;
  display: block;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 50%, currentColor 50%);
}

.menu-button,
.nav-polarity {
  display: none;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  width: 22px;
  display: block;
  margin: 5px auto;
  border-top: 1px solid currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.chapter-index {
  margin: 0 0 18px;
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.portal {
  position: relative;
  height: 330svh;
  background: var(--dark);
  color: var(--cream);
}

.portal-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}

.portal-camera {
  position: absolute;
  inset: 0;
  transform: scale(calc(1 + var(--portal-progress) * 4.35));
  transform-origin: 66.5% 41.5%;
  will-change: transform;
}

.portal-room {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(calc(0.62 + var(--portal-progress) * 0.22)) saturate(0.76);
}

.portal-screen {
  position: absolute;
  left: 39.3%;
  top: 16.2%;
  width: 53.7%;
  height: 49.1%;
  overflow: hidden;
  border: 1px solid rgba(247, 234, 220, 0.42);
}

.portal-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 18, 22, 0.9), rgba(20, 18, 22, 0.1) 68%),
    linear-gradient(0deg, rgba(20, 18, 22, 0.9), transparent 58%);
  opacity: calc(1 - var(--portal-progress) * 0.75);
}

.portal-copy {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: 10svh;
  width: min(750px, calc(100% - var(--gutter) * 2));
  opacity: clamp(0, calc(1 - var(--portal-progress) * 2.5), 1);
  transform: translateY(calc(var(--portal-progress) * -44px));
}

.portal-copy h1 {
  max-width: 950px;
  margin-bottom: 26px;
  font-size: clamp(4rem, 9.4vw, 9.4rem);
  letter-spacing: -0.074em;
  line-height: 0.8;
}

.portal-copy > p:not(.chapter-index) {
  max-width: 650px;
  margin: 0 0 24px;
  color: #d6c9bd;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.28;
}

.portal-handoff {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 7svh;
  left: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  opacity: clamp(0, calc((var(--portal-progress) - 0.76) * 6), 1);
}

.portal-handoff p {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.5rem, 8.5vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.portal-handoff span {
  font-weight: 700;
}

.rooms {
  position: relative;
  min-height: max(780px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: end;
  gap: 60px;
  overflow: hidden;
  padding: calc(var(--header-height) + 8svh) var(--gutter) 9svh;
  background: var(--dark);
  color: var(--cream);
}

.room-media,
.room-image,
.room-shade {
  position: absolute;
  inset: 0;
}

.room-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.56) saturate(0.78);
  transform: scale(1.03);
  transition: opacity 420ms ease, transform 900ms var(--ease);
}

.room-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.room-shade {
  background:
    linear-gradient(90deg, rgba(20, 18, 22, 0.92), rgba(20, 18, 22, 0.12) 72%),
    linear-gradient(0deg, rgba(20, 18, 22, 0.94), transparent 70%);
}

.room-copy,
.room-tabs {
  position: relative;
  z-index: 2;
}

.room-copy {
  max-width: 790px;
}

.room-copy > h2 {
  margin-bottom: 44px;
  font-size: clamp(3.4rem, 7vw, 7.5rem);
  letter-spacing: -0.065em;
  line-height: 0.84;
}

.room-panels h3 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.room-panels p,
.room-system-note {
  max-width: 650px;
  color: #d2c5ba;
  font-size: clamp(1.06rem, 1.6vw, 1.32rem);
}

.room-system-note {
  margin: 28px 0 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 234, 220, 0.3);
}

.room-tabs {
  display: grid;
  align-self: center;
}

.room-tabs button {
  min-height: 70px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 16px;
  border: 0;
  border-top: 1px solid rgba(247, 234, 220, 0.38);
  background: transparent;
  color: #c8bbb0;
  padding: 14px 4px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
}

.room-tabs button:last-child {
  border-bottom: 1px solid rgba(247, 234, 220, 0.38);
}

.room-tabs button[aria-selected="true"] {
  border-top-color: var(--tally);
  background: var(--tally);
  color: var(--cream);
  padding-inline: 14px;
}

.room-tabs button span {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.services {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(90px, 13svh, 160px) var(--gutter);
}

.services .chapter-index,
.set-check .chapter-index {
  color: var(--tally);
}

.services-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: clamp(50px, 8vw, 130px);
}

.services h2,
.set-check h2 {
  margin-bottom: 0;
  font-size: clamp(3.6rem, 7.5vw, 7.8rem);
  letter-spacing: -0.068em;
  line-height: 0.84;
}

.services-heading > div:last-child {
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

.button-dark {
  margin-top: 18px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.button-dark:hover {
  border-color: var(--tally);
  background: var(--tally);
  color: var(--cream);
}

.service-list {
  margin: 80px 0 0;
  padding: 0;
  border-top: 1px solid #9d958d;
  list-style: none;
}

.service-list li {
  display: grid;
  grid-template-columns: 52px minmax(220px, 0.65fr) minmax(280px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 118px;
  border-bottom: 1px solid #9d958d;
  padding: 22px 0;
}

.service-list li > span {
  color: var(--warm-light);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.service-list h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.service-list p {
  max-width: 650px;
  margin: 0;
  color: var(--warm-light);
  font-size: 1.06rem;
}

.set-check {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: clamp(50px, 8vw, 140px);
  min-height: 80svh;
  background: var(--cream);
  color: var(--ink);
  padding: clamp(90px, 13svh, 160px) var(--gutter);
  border-top: 14px solid var(--tally);
}

.set-check-copy > p {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.cta-stack {
  margin-top: 32px;
}

.cta-stack p {
  max-width: 520px;
  color: var(--warm-light);
}

.cta-stack p a {
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr auto;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  border-top: 1px solid var(--page-line);
  background: var(--page-bg);
  color: var(--page-text);
  padding: 44px var(--gutter);
}

.footer-brand img {
  width: 100%;
  height: auto;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-footer nav a {
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a[aria-current="page"] {
  text-decoration: underline;
}

.footer-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.footer-meta span {
  display: flex;
  gap: 14px;
  color: var(--page-muted);
}

.noscript-note {
  position: fixed;
  z-index: 120;
  right: 14px;
  bottom: 14px;
  max-width: 430px;
  margin: 0;
  border: 1px solid var(--cream);
  background: var(--dark);
  color: var(--cream);
  padding: 12px 14px;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: minmax(130px, 170px) 1fr auto;
    gap: 18px;
  }

  .primary-nav {
    gap: 15px;
  }

  .primary-nav a {
    font-size: 0.82rem;
  }

  .polarity-toggle {
    display: none;
  }
}

@media (max-width: 940px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    grid-template-columns: minmax(110px, 150px) 1fr;
    padding-block: 10px;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: none;
    align-content: start;
    justify-content: start;
    gap: 0;
    overflow-y: auto;
    background: var(--page-bg);
    color: var(--page-text);
    padding: 7svh var(--gutter);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    min-height: 68px;
    border-bottom: 1px solid var(--page-line);
    font-size: clamp(1.8rem, 7vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
  }

  .nav-polarity {
    min-height: 56px;
    display: block;
    margin-top: 28px;
    border: 1px solid var(--page-line);
    background: transparent;
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
  }

  .header-actions {
    justify-self: end;
  }

  .menu-button {
    display: block;
  }

  .rooms,
  .services-heading,
  .set-check {
    grid-template-columns: 1fr;
  }

  .rooms {
    align-content: end;
    gap: 34px;
  }

  .room-copy > h2 {
    margin-bottom: 28px;
  }

  .room-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: end;
  }

  .room-tabs button {
    min-height: 76px;
    display: block;
    border-right: 1px solid rgba(247, 234, 220, 0.35);
    padding: 10px;
    font-size: 0.94rem;
  }

  .room-tabs button span {
    display: block;
    margin-bottom: 4px;
  }

  .services-heading,
  .set-check {
    align-items: start;
  }

  .service-list li {
    grid-template-columns: 42px 0.8fr 1.2fr;
  }

  .site-footer {
    grid-template-columns: minmax(180px, 250px) 1fr;
  }

  .footer-meta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: minmax(94px, 112px) 1fr;
    gap: 10px;
    padding-inline: 12px;
  }

  .header-actions {
    gap: 7px;
  }

  .funnel-cta {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .portal {
    height: 250svh;
  }

  .portal-stage {
    min-height: 600px;
  }

  .portal-camera {
    transform: scale(calc(1 + var(--portal-progress) * 4.1));
    transform-origin: 62% 39%;
  }

  .portal-screen {
    left: 35.5%;
    top: 24%;
    width: 57%;
    height: 33.5%;
  }

  .portal-copy {
    bottom: 8svh;
  }

  .portal-copy h1 {
    font-size: clamp(3.7rem, 18vw, 6rem);
  }

  .portal-copy > p:not(.chapter-index) {
    font-size: 1.06rem;
  }

  .portal-handoff span {
    display: none;
  }

  .rooms {
    min-height: 860px;
    gap: 26px;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 44px;
  }

  .room-copy > h2 {
    font-size: clamp(3rem, 15vw, 5.4rem);
  }

  .room-panels h3 {
    font-size: 2.3rem;
  }

  .room-panels p,
  .room-system-note {
    font-size: 1rem;
  }

  .room-tabs button {
    min-height: 72px;
    font-size: 0.78rem;
  }

  .services,
  .set-check {
    padding-block: 80px;
  }

  .services h2,
  .set-check h2 {
    font-size: clamp(3.3rem, 16vw, 5.6rem);
  }

  .service-list {
    margin-top: 52px;
  }

  .service-list li {
    grid-template-columns: 34px 1fr;
    gap: 12px;
    padding-block: 24px;
  }

  .service-list p {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-brand {
    width: min(230px, 70vw);
  }

  .footer-meta {
    grid-column: auto;
    display: grid;
    justify-content: start;
  }
}

@media (max-width: 370px) {
  .site-header {
    grid-template-columns: 92px 1fr;
  }

  .funnel-cta {
    font-size: 0.7rem;
    padding-inline: 7px;
  }

  .menu-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}

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

  .portal {
    height: auto;
  }

  .portal-stage {
    position: relative;
    height: 100svh;
  }

  .portal-camera {
    transform: none !important;
    will-change: auto;
  }

  .portal-shade {
    opacity: 1;
  }

  .portal-copy {
    opacity: 1;
    transform: none;
  }

  .portal-handoff {
    display: none;
  }

  .room-image {
    transform: none;
    transition: none;
  }
}

.no-js .portal {
  height: auto;
}

.no-js .portal-stage {
  position: relative;
  height: 100svh;
}

.no-js .portal-camera {
  transform: none;
}

.no-js .portal-handoff {
  display: none;
}

@media (forced-colors: active) {
  .portal-shade,
  .room-shade {
    background: transparent;
  }

  .funnel-cta,
  .button,
  .room-tabs button[aria-selected="true"] {
    border: 2px solid;
  }
}
