/* Outline's motion motif: a real C9 shape, warm illumination and a little play. */
.intro-bulb {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 170px;
  height: 238px;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.c9-art {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 17%;
  isolation: isolate;
}
.c9-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.c9-lit {
  opacity: 0;
  transition: opacity 0.55s ease;
}
.c9-aura {
  position: absolute;
  inset: -12% -40% -15%;
  z-index: -1;
  background: radial-gradient(
    ellipse at 50% 57%,
    #ffcb6d38 0,
    #ffc56b13 30%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.65s ease;
}
.is-lit .c9-lit,
.is-lit .c9-aura {
  opacity: 1;
}
.festoon {
  position: absolute;
  inset: 96px 0 auto;
  height: 118px;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.festoon-wire {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  fill: none;
  stroke: #88918488;
  stroke-width: 1;
}
.festoon-lamp {
  position: absolute;
  top: var(--drop);
  left: var(--left);
  width: 19px;
  height: 28px;
  transform-origin: 50% 0;
  pointer-events: auto;
  animation: lamp-arrive 0.8s var(--ease) both;
  animation-delay: var(--delay);
}
.festoon-lamp::before {
  content: "";
  position: absolute;
  inset: -18px -26px -24px;
  background: radial-gradient(ellipse, #ffd59865, transparent 65%);
  opacity: 0.58;
  transition: opacity 0.4s;
  animation: lamp-breathe 5.5s ease-in-out infinite alternate;
  animation-delay: var(--delay);
}
.festoon-lamp img {
  width: 100%;
  height: 100%;
  position: relative;
}
.festoon-lamp:nth-child(5n)::before {
  background: radial-gradient(ellipse, #ef636278, transparent 65%);
}
.festoon-lamp:nth-child(5n) img {
  filter: sepia(1) saturate(3) hue-rotate(310deg);
}
.festoon-lamp:hover {
  animation: lamp-swing 0.9s ease-out;
}
.festoon-lamp:hover::before {
  opacity: 1;
}
.hero-snow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}
.hero-snow i {
  position: absolute;
  left: var(--left);
  top: -20px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fff9ee;
  opacity: var(--opacity);
  animation: snow-drift var(--duration) linear infinite;
  animation-delay: var(--delay);
}
.house-moment {
  position: relative;
  background: var(--ink);
  border-top: 1px solid #ffffff15;
  border-bottom: 1px solid #ffffff15;
}
.house-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: var(--outline-column-gap, 64px);
  padding-block: var(--outline-section-pad, 112px);
}
.house-copy,
.house-display {
  min-width: 0;
}
.house-copy h2 {
  margin-top: 24px;
  max-width: 580px;
  font-size: clamp(48px, 4.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.house-copy h2 em {
  color: var(--warm);
}
.house-copy > p:not(.eyebrow) {
  margin-top: 24px;
  max-width: 58ch;
  color: var(--outline-muted-on-dark, #c4c1bd);
  font-size: 16px;
  line-height: 1.65;
}
.house-copy > .text-link {
  margin-top: 24px;
}
.house-display {
  position: relative;
  margin: 0;
}
.house-switch {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffff33;
  border-radius: var(--outline-radius-media, 32px);
  background: #101311;
  box-shadow: 0 16px 48px #00000024;
  isolation: isolate;
  transition: border-color 240ms var(--outline-ease, ease), box-shadow 240ms ease;
}
.house-switch:disabled {
  cursor: progress;
}
.house-switch:focus-visible {
  outline: 2px solid #e6c77a;
  outline-offset: 5px;
}
.house-scene {
  position: relative;
  display: block;
  aspect-ratio: 1800 / 1349;
  overflow: hidden;
  background: #101311;
}
.house-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.house-photo-day {
  opacity: 1;
}
.house-photo-lit {
  opacity: 0;
}
.house-scene-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #08090a3b, transparent 28%, transparent 78%, #08090a20);
  opacity: .45;
}
.house-moment [data-house-state="lit"] .house-photo-lit {
  opacity: 1;
}
.house-moment [data-house-state="lit"] .house-scene-shade {
  opacity: .1;
}
.house-moment [data-house-state="dim"] .house-photo-lit {
  opacity: 0;
}
.house-moment [data-house-state="dim"] .house-scene-shade { opacity: .45; }
@media (hover: hover) and (pointer: fine) {
  .house-switch:hover:not(:disabled) {
    border-color: #e6c77a99;
    box-shadow: 0 20px 58px #00000038, 0 0 0 1px #e6c77a22;
  }
}
.house-instruction {
  min-height: 3.3em;
  margin: 16px 0 0;
  color: #dedbd3;
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
}
.house-preview-note {
  display: block;
  margin-top: 6px;
  color: #9e9d97;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}
.house-no-script {
  display: block;
  margin-top: 10px;
  color: #c4c1bd;
  text-align: center;
  font-size: 14px;
}
html:not(.js) .house-switch {
  pointer-events: none;
}
html:not(.js) .house-moment .house-photo-lit {
  opacity: 1;
}
html:not(.js) .house-instruction,
html:not(.js) .house-preview-note {
  display: none;
}
.gallery-main {
  isolation: isolate;
}
.gallery-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(
    ellipse at var(--light-x, 50%) var(--light-y, 50%),
    #ffe2a72b,
    transparent 50%
  );
  transition: opacity 0.5s;
}
.gallery-main:hover::after {
  opacity: 1;
}
.gallery-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #ffefcf;
  box-shadow: 0 0 25px 9px #ffd89255;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
.gallery-open {
  z-index: 3;
}
.service-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.service-list a:hover::before,
.service-list a:focus-visible::before {
  transform: scaleY(1);
}
.approach-steps .step-light {
  width: 10px;
  height: 16px;
  border-radius: 3px 3px 50% 50%;
  transition:
    background 0.5s,
    box-shadow 0.6s,
    transform 0.6s var(--ease);
  transform: scale(0.75);
}
.approach-steps li.is-lit .step-light {
  background: #ffe1a6;
  box-shadow: 0 0 18px #ffd18a88;
  transform: scale(1);
}
.motion-paused .hero-snow i,
.motion-paused .festoon-lamp,
.motion-paused .festoon-lamp::before,
.motion-off .hero-snow i,
.motion-off .festoon-lamp,
.motion-off .festoon-lamp::before,
.festive-offscreen .hero-snow i,
.festive-offscreen .festoon-lamp::before {
  animation-play-state: paused;
}
.motion-off .hero-snow,
.motion-off .intro-bulb {
  display: none;
}
.motion-off .festoon-lamp {
  animation: none;
}
@keyframes lamp-arrive {
  from {
    opacity: 0;
    transform: translateY(-20px) rotate(-15deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}
@keyframes lamp-breathe {
  from {
    opacity: 0.38;
  }
  to {
    opacity: 0.75;
  }
}
@keyframes lamp-swing {
  0% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(15deg);
  }
  55% {
    transform: rotate(-10deg);
  }
  80% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(0);
  }
}
@keyframes snow-drift {
  from {
    transform: translate3d(0, -20px, 0);
  }
  to {
    transform: translate3d(65px, 1050px, 0);
  }
}
@media (max-width: 1000px) {
  .house-layout { gap: 32px; }
  .house-copy h2 { font-size: clamp(46px, 5vw, 60px); }
}
@media (max-width: 800px) {
  .house-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: var(--outline-section-pad, 72px); }
  .house-copy h2 { font-size: clamp(40px, 8.6vw, 54px); }
  .house-switch { border-radius: var(--outline-radius-media, 24px); }
}
@media (max-width: 760px) {
  .festoon {
    top: 79px;
    height: 82px;
  }
  .festoon-lamp {
    width: 14px;
    height: 21px;
  }
  .festoon-lamp:nth-of-type(even) {
    display: none;
  }
  .hero-snow i:nth-child(n + 10) {
    display: none;
  }
  .intro-bulb {
    width: 125px;
    height: 175px;
    top: 43%;
  }
  .house-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-block: var(--outline-section-pad, 72px);
  }
  .house-copy h2 { font-size: clamp(40px, 8.6vw, 54px); }
  .house-display { width: 100%; }
  .house-switch { border-radius: var(--outline-radius-media, 24px); }
  .house-instruction { margin-top: 13px; }
  .gallery-main::after {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-snow,
  .intro-bulb {
    display: none;
  }
  .festoon-lamp,
  .festoon-lamp::before {
    animation: none;
  }
}

/* Full-screen C9 opening: the light itself becomes the reveal. */
.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 48%, #142019 0, transparent 38%),
    radial-gradient(ellipse at 50% 110%, #261415 0, transparent 45%), #08090a;
  color: #f3eee5;
}
.opening-pending .opening-screen {
  display: grid;
}
.opening-pending,
.opening-pending body {
  overflow: hidden;
}
.opening-skip {
  position: absolute;
  z-index: 3;
  top: max(22px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #ffffff42;
  border-radius: 999px;
  background: #111411a8;
  color: #f3eee5;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.03em;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.opening-skip:hover {
  border-color: #d7b981;
  background: #1b211b;
}
.opening-center {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: center;
  width: 100%;
  height: 100%;
  padding-bottom: 34px;
}
.opening-cable {
  display: block;
  width: 1px;
  height: 38px;
  margin-bottom: -2px;
  background: linear-gradient(#b0a58e00, #c5bba9a8);
}
.opening-bulb {
  position: relative;
  display: block;
  width: clamp(74px, 9vw, 116px);
  aspect-ratio: 300 / 420;
  transform-origin: 50% 0;
  will-change: transform, opacity;
}
.opening-bulb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.opening-bulb-lit {
  opacity: 0;
  transition: opacity 0.22s ease-out;
}
.opening-screen.is-lit .opening-bulb-lit {
  opacity: 1;
}
.opening-screen.is-lit .opening-center::before {
  position: absolute;
  top: calc(50% - 35px);
  left: 50%;
  width: 260px;
  height: 260px;
  content: "";
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #ffe7b879 0,
    #eb9e3b28 34%,
    transparent 72%
  );
  animation: opening-aura 1.5s ease-in-out infinite alternate;
  pointer-events: none;
}
.opening-bloom {
  position: absolute;
  z-index: 1;
  top: 46%;
  left: 50%;
  display: block;
  width: 160vmax;
  height: 160vmax;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 50%,
    #fffef9 0,
    #fffaf0 65%,
    #f7efdf 100%
  );
  pointer-events: none;
  will-change: transform, opacity;
}
.opening-pending .cookie-notice {
  visibility: hidden;
}
.opening-wordmark {
  position: absolute;
  top: calc(50% + 112px);
  display: flex;
  align-items: baseline;
  gap: 9px;
  opacity: 0;
  transform: translateY(8px);
  color: #f4eee4;
  font-size: 11px;
  letter-spacing: 0.2em;
  will-change: transform, opacity;
}
.opening-wordmark i {
  color: #bab7ae;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.13em;
}
.opening-caption {
  position: absolute;
  z-index: 3;
  bottom: max(42px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  opacity: 0;
  transform: translateY(8px);
  color: #c5c0b6;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  will-change: transform, opacity;
}
.opening-caption i {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, #c9434d, #6e9b6b);
}
@keyframes opening-aura {
  from {
    opacity: 0.64;
    scale: 0.88;
  }
  to {
    opacity: 1;
    scale: 1.14;
  }
}
@media (max-width: 600px) {
  .opening-center {
    padding-bottom: 20px;
  }
  .opening-wordmark {
    top: calc(50% + 89px);
    font-size: 9px;
  }
  .opening-caption {
    bottom: max(34px, env(safe-area-inset-bottom));
    font-size: 14px;
  }
  .opening-skip {
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
  }
}
@media (max-width: 760px) {
  .hero-snow {
    display: block;
    opacity: 0.4;
  }
  .festoon-lamp,
  .festoon-lamp::before {
    animation: none;
  }
  .festoon-lamp:nth-child(3n)::before {
    animation: lamp-breathe 6s ease-in-out infinite alternate;
    animation-delay: var(--delay);
  }
  .motion-paused .festoon-lamp::before,
  .motion-off .festoon-lamp::before,
  .festive-offscreen .festoon-lamp::before {
    animation-play-state: paused;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opening-screen {
    display: none !important;
  }
  .opening-screen.is-lit .opening-center::before {
    animation: none;
  }
}

/* Keep scroll sections contained while their images and copy reveal into place. */
.motion-section {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}
.motion-section > .frame,
.motion-section > .story-stage,
.motion-section > .bulb-layout {
  position: relative;
  z-index: 1;
}
.story-image-wrap,
.gallery-feature,
.installation-film,
.house-display {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.gallery-feature,
.installation-film {
  will-change: transform, clip-path;
}
.gallery-thumbnails .gallery-thumb {
  transition:
    transform 0.55s var(--ease),
    opacity 0.35s ease;
}
.gallery-thumbnails:hover .gallery-thumb:not(:hover) {
  opacity: 0.72;
  transform: scale(0.97);
}
.gallery-thumbnails .gallery-thumb:hover {
  transform: translateY(-5px) scale(1.035);
}
.approach-steps li,
.service-list a {
  transform-origin: 50% 100%;
}
.mobile-gallery-hint {
  display: none;
}
@media (max-width: 800px) {
  /* Keep phone scrolling native; entrances happen once as sections arrive. */
  .story-image-wrap,
  .gallery-feature,
  .installation-film,
  .house-display {
    transform-style: flat;
    backface-visibility: visible;
  }
  .mobile-gallery-hint {
    display: block;
    margin-top: 15px;
    color: #68655f;
    font-size: 11px;
    line-height: 1.6;
  }
  .gallery-main {
    touch-action: pan-y pinch-zoom;
  }
  .service-list a.is-lit::before {
    transform: scaleY(1);
  }
  .hero-actions .button,
  .gallery-navigation button,
  .gallery-filters button,
  .gallery-thumb,
  .final-content .button {
    transition:
      transform 0.2s var(--ease),
      background 0.25s ease;
  }
  .hero-actions .button:active,
  .gallery-navigation button:active,
  .gallery-filters button:active,
  .gallery-thumb:active,
  .final-content .button:active {
    transform: scale(0.95);
  }
  .service-list a:active {
    background: #e9e4de;
  }
  .service-list a:active b {
    transform: translate(4px, -4px);
  }
  .gallery-feature,
  .installation-film {
    will-change: auto;
  }
  .gallery-thumbnails:hover .gallery-thumb:not(:hover),
  .gallery-thumbnails .gallery-thumb:hover {
    opacity: 1;
    transform: none;
  }
}
