/* The doorway light repeats the homepage motif. Faces and readable copy remain still. */
.hero-copy {
  position: relative;
  isolation: isolate;
  row-gap: 22px;
}
.hero-copy > h1,
.hero-intro,
.story-signature {
  position: relative;
  z-index: 1;
}
.hero-light {
  position: absolute;
  inset: -30px -24px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  mask-image: linear-gradient(transparent, #000 18%, #000 76%, transparent);
}
.light-plane {
  position: absolute;
  width: 40%;
  height: 170%;
  top: -25%;
  left: 25%;
  background: linear-gradient(
    100deg,
    transparent 10%,
    #d6ac6a13 40%,
    #f5dfb926 62%,
    transparent 84%
  );
  transform: translate3d(-20%, 0, 0) skewX(-18deg);
  opacity: 0.55;
}
.light-plane-far {
  width: 25%;
  left: 55%;
  background: linear-gradient(
    100deg,
    transparent 20%,
    #f5dfb918 62%,
    transparent 85%
  );
  opacity: 0.5;
}
.story-signature {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.doorway-mark {
  width: 61px;
  height: 40px;
  flex: none;
  overflow: visible;
  stroke-width: 1.3;
}
.doorway-base {
  stroke: #675a48;
}
.doorway-trace {
  stroke: #f5dfb9;
  stroke-dasharray: 25 75;
  stroke-dashoffset: 12;
}
.brand-mark {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  margin-left: -14px;
}
.brand-light {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.brand-light rect {
  fill: none;
  stroke: #98743a;
  stroke-width: 1;
  stroke-dasharray: 16 84;
  opacity: 0.85;
}
.keyhome-entry .brand-light rect {
  stroke: #225c84;
}
.preview-header-inner {
  column-gap: 20px;
}
.motion-toggle {
  position: relative;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #675a48;
  background: #171410;
  color: #faf6ef;
  font-size: 12px;
  border-radius: 3px;
}
.motion-toggle[hidden] {
  display: none;
}
.motion-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.motion-toggle .icon {
  width: 16px;
  height: 16px;
}
.motion-toggle:hover {
  border-color: #f5dfb9;
}
.motion-toggle:disabled {
  cursor: default;
  color: #e3d7c8;
}
.hero h1,
.hero-intro,
.team-hero,
.journey-enhanced .journey-panels article:not([hidden]) {
  animation: none;
}
.stay-connection {
  max-width: 860px;
  margin: -4px auto 42px;
}
.stay-connection-labels,
.foundation-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stay-connection-labels {
  padding-inline: 4px;
}
.stay-connection-labels span:nth-child(2) {
  color: var(--accent);
}
.stay-connection > svg {
  display: block;
  width: 100%;
  margin-top: 12px;
  overflow: visible;
}
.connection-line {
  stroke: #b4a58e;
  stroke-width: 1;
}
.connection-origin,
.connection-destination {
  fill: #efe9df;
  stroke: #806240;
  stroke-width: 1.4;
}
.connection-origin > path:first-child {
  fill: #e4d6c0;
}
.connection-packet {
  fill: #9e753b;
}
.city-lights {
  width: 100%;
  max-width: 420px;
  margin-top: 44px;
}
.city-lights svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.city-horizon {
  stroke: #b5a083;
  stroke-width: 1;
}
.city-sun {
  fill: #f5dfb9;
  opacity: 0.2;
}
.city-window {
  fill: #f5dfb9;
  opacity: 0.4;
}
.city-window-two {
  opacity: 0.75;
}
.care-foundation {
  width: min(100%, 400px);
  margin-top: 28px;
}
.care-foundation > svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.foundation-grid {
  stroke: #c9bca8;
  stroke-width: 0.8;
}
.foundation-roof {
  fill: #e5d9c7;
  stroke: #987547;
  stroke-width: 1.3;
}
.foundation-frame {
  fill: #efe9df;
  stroke: #987547;
  stroke-width: 1;
}
.foundation-beam {
  fill: #c2a170;
  opacity: 0.65;
}
.foundation-crossbar {
  fill: #896236;
  opacity: 0.6;
}
.foundation-outline {
  stroke: #704f27;
  stroke-width: 2;
}
.foundation-keystone {
  fill: #987547;
}
.foundation-labels {
  padding-inline: 19%;
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.09em;
}
.closing-heading {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}
.welcome-portal {
  flex: 0 0 clamp(95px, 10vw, 145px);
}
.welcome-portal > svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.portal-outer {
  stroke: #79674f;
  stroke-width: 1;
}
.portal-room,
.portal-threshold {
  stroke: #f5dfb9;
  stroke-width: 1;
}
.portal-glow {
  fill: #f5dfb9;
  opacity: 0.4;
}
.portal-door {
  fill: #3d3021;
  stroke: #c9aa7d;
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: left center;
  transform: skewY(-9deg) scaleX(0.64);
}
.portal-handle {
  stroke: #f5dfb9;
  stroke-width: 2;
}
.portal-floor {
  transform-origin: 80px 153px;
  opacity: 0.65;
}
.portrait {
  aspect-ratio: 2 / 3;
  background: #d9d0c2;
}
.portrait img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center bottom;
}
.person {
  flex-basis: 300px;
  padding-top: 28px;
}
.person-featured {
  flex-basis: 320px;
  padding-top: 0;
}
.portrait-disclosure {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
.motion-toggle:active {
  transform: scale(0.97);
}

@media screen {
  .ambient-ready .light-plane {
    animation: doorway-light 12s cubic-bezier(0.45, 0, 0.55, 1) infinite
      alternate;
  }
  .ambient-ready .light-plane-far {
    animation-duration: 17s;
    animation-delay: -8s;
    animation-direction: alternate-reverse;
  }
  .ambient-ready .doorway-trace {
    animation: doorway-trace 7s linear infinite;
  }
  .ambient-ready .doorway-trace-second {
    animation-delay: -3.5s;
  }
  .ambient-ready .brand-light rect {
    animation: brand-trace 8s linear infinite;
  }
  .ambient-ready .keyhome-entry .brand-light rect {
    animation-delay: -4s;
  }
  .ambient-ready .property-image img {
    animation: property-drift 18s cubic-bezier(0.45, 0, 0.55, 1) infinite
      alternate;
    transition: none;
  }
  .ambient-ready .keyhome-entry .property-image img {
    animation-duration: 23s;
    animation-delay: -7s;
    animation-direction: alternate-reverse;
  }
  .ambient-ready .connection-packet-stay {
    animation: connection-stay 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }
  .ambient-ready .connection-packet-home {
    animation: connection-home 6s cubic-bezier(0.45, 0, 0.55, 1) -3s infinite;
  }
  .ambient-ready .city-window {
    animation: city-windows 9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }
  .ambient-ready .city-window-two {
    animation-delay: -3s;
  }
  .ambient-ready .city-window-three {
    animation-delay: -6s;
  }
  .ambient-ready .city-sun {
    animation: city-sun 16s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  }
  .ambient-ready .city-reflection {
    animation: city-reflection 9s cubic-bezier(0.45, 0, 0.55, 1) infinite
      alternate;
  }
  .ambient-ready .foundation-beam {
    animation: foundation-light 7.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }
  .ambient-ready .foundation-beam-two {
    animation-delay: -2.5s;
  }
  .ambient-ready .foundation-beam-three {
    animation-delay: -5s;
  }
  .ambient-ready .foundation-crossbar {
    animation: foundation-unity 7.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }
  .ambient-ready .portal-door {
    animation: welcome-door 10s cubic-bezier(0.45, 0, 0.55, 1) infinite
      alternate;
  }
  .ambient-ready .portal-glow {
    animation: welcome-glow 10s cubic-bezier(0.45, 0, 0.55, 1) infinite
      alternate;
  }
  .ambient-ready .portal-floor {
    animation: welcome-floor 10s cubic-bezier(0.45, 0, 0.55, 1) infinite
      alternate;
  }
  .ambient-ready [data-loop-component] .ambient-loop {
    animation-play-state: paused;
  }
  .ambient-ready[data-motion="playing"]
    [data-loop-component][data-ambient="visible"]
    .ambient-loop {
    animation-play-state: running;
  }
  @keyframes doorway-light {
    from {
      transform: translate3d(-35%, 0, 0) skewX(-18deg);
      opacity: 0.4;
    }
    to {
      transform: translate3d(48%, 0, 0) skewX(-18deg);
      opacity: 0.9;
    }
  }
  @keyframes doorway-trace {
    to {
      stroke-dashoffset: -88;
    }
  }
  @keyframes brand-trace {
    to {
      stroke-dashoffset: -100;
    }
  }
  @keyframes property-drift {
    from {
      transform: scale(1.06) translate3d(-1.4%, -0.4%, 0);
    }
    to {
      transform: scale(1.06) translate3d(1.4%, 0.4%, 0);
    }
  }
  @keyframes connection-stay {
    0% {
      transform: translateX(126px);
      opacity: 0;
    }
    16% {
      opacity: 1;
    }
    76% {
      opacity: 1;
    }
    100% {
      transform: translateX(-84px);
      opacity: 0;
    }
  }
  @keyframes connection-home {
    0% {
      transform: translateX(-126px);
      opacity: 0;
    }
    16% {
      opacity: 1;
    }
    76% {
      opacity: 1;
    }
    100% {
      transform: translateX(84px);
      opacity: 0;
    }
  }
  @keyframes city-windows {
    0%,
    100% {
      opacity: 0.15;
    }
    32%,
    55% {
      opacity: 0.85;
    }
  }
  @keyframes city-sun {
    from {
      transform: translate(-20px, 8px);
      opacity: 0.14;
    }
    to {
      transform: translate(32px, -5px);
      opacity: 0.32;
    }
  }
  @keyframes city-reflection {
    from {
      transform: translateX(-50px);
      opacity: 0.4;
    }
    to {
      transform: translateX(50px);
      opacity: 1;
    }
  }
  @keyframes foundation-light {
    0%,
    100% {
      opacity: 0.18;
      transform: translateY(0);
    }
    35%,
    55% {
      opacity: 0.85;
      transform: translateY(-5px);
    }
  }
  @keyframes foundation-unity {
    0%,
    100% {
      opacity: 0.35;
    }
    50% {
      opacity: 0.9;
    }
  }
  @keyframes welcome-door {
    0%,
    12% {
      transform: skewY(-4deg) scaleX(0.9);
    }
    88%,
    100% {
      transform: skewY(-16deg) scaleX(0.43);
    }
  }
  @keyframes welcome-glow {
    from {
      opacity: 0.3;
    }
    to {
      opacity: 0.8;
    }
  }
  @keyframes welcome-floor {
    from {
      transform: scaleX(0.8);
      opacity: 0.35;
    }
    to {
      transform: scaleX(1.06);
      opacity: 0.8;
    }
  }
}
@media (max-width: 1100px) {
  .preview-header-inner {
    column-gap: 12px;
  }
  .motion-toggle {
    margin-left: auto;
  }
  .preview-header .nav-toggle {
    margin-left: 0;
    padding-left: 4px;
  }
  .closing {
    grid-template-columns: 1.4fr 1fr;
    gap: 5%;
  }
  .closing-heading {
    gap: 20px;
  }
  .welcome-portal {
    flex-basis: 90px;
  }
}
@media (max-width: 700px) {
  .hero-light {
    inset-inline: 0;
  }
  .hero-copy {
    row-gap: 22px;
  }
  .story-signature {
    gap: 14px;
    font-size: 10px;
  }
  .doorway-mark {
    width: 49px;
    height: 33px;
  }
  .light-plane {
    width: 70%;
    left: 0;
  }
  .light-plane-far {
    left: 35%;
    width: 45%;
  }
  .brand-mark {
    padding: 10px;
    margin-left: -10px;
  }
  .stay-connection {
    margin: 12px auto 30px;
  }
  .stay-connection-labels {
    font-size: 9px;
    letter-spacing: 0.04em;
  }
  .stay-connection > svg {
    margin-top: 15px;
  }
  .city-lights {
    max-width: 340px;
    margin-top: 28px;
  }
  .values-intro {
    display: block;
  }
  .values-intro > p {
    max-width: 35ch;
  }
  .care-foundation {
    max-width: 300px;
    margin: 22px auto 0;
  }
  .person {
    flex-basis: 82vw;
    max-width: 300px;
    padding-top: 18px;
  }
  .person-featured {
    flex-basis: 85vw;
    max-width: 320px;
    padding-top: 0;
  }
  .closing {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .closing-heading {
    gap: 18px;
  }
  .welcome-portal {
    flex-basis: clamp(58px, 17vw, 95px);
  }
  .closing-heading h2 {
    font-size: clamp(28px, 7vw, 46px);
  }
}
@media (prefers-reduced-motion: reduce) {
  :root:where(:not([data-site-motion="playing"])) {
    scroll-behavior: auto;
  }
  :where(html:not([data-site-motion="playing"])) *,
  :where(html:not([data-site-motion="playing"])) *::before,
  :where(html:not([data-site-motion="playing"])) *::after {
    animation: none !important;
    transition: none !important;
  }
  :where(html:not([data-site-motion="playing"])) .hero h1,
  :where(html:not([data-site-motion="playing"])) .hero-intro,
  :where(html:not([data-site-motion="playing"])) .team-hero,
  :where(html:not([data-site-motion="playing"])) .journey-panels article {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  :where(html:not([data-site-motion="playing"])) .property-image img {
    transform: none !important;
  }
  :where(html:not([data-site-motion="playing"])) .hero-light,
  :where(html:not([data-site-motion="playing"])) .doorway-trace,
  :where(html:not([data-site-motion="playing"])) .brand-light {
    display: none;
  }
}
@media print {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero h1,
  .hero-intro,
  .team-hero,
  .journey-panels article {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .property-image img {
    transform: none !important;
  }
  .hero-light,
  .doorway-trace,
  .brand-light {
    display: none;
  }
}
@media print {
  .motion-toggle {
    display: none;
  }
}
