/* ===== Dreambuild Home Vision — sand / gold cinematic layer ===== */

:root {
  --dream-sand: #f1eade;
  --dream-sand-deep: #e8dcc8;
  --dream-gold: #c6a76a;
  --dream-gold-bright: #e8d4a8;
  --dream-gold-dim: rgba(198, 167, 106, 0.42);
  --dream-brown: rgb(92, 68, 48);
  --dream-ink: rgb(21, 20, 21);
  --dream-glow: 0 0 40px rgba(198, 167, 106, 0.18);
  --dream-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
}

/* --- Ambient chrome --- */
.dream-chrome {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 9990;
}

.dream-grain {
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0.045;
  position: absolute;
}

.dream-scroll-rail {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(198, 167, 106, 0.08) 12%,
    rgba(198, 167, 106, 0.08) 88%,
    transparent 100%
  );
  bottom: 8vh;
  left: max(1rem, env(safe-area-inset-left));
  opacity: 0;
  position: absolute;
  top: 18vh;
  transition: opacity 0.8s ease;
  width: 1px;
}

html.-ready .dream-scroll-rail {
  opacity: 1;
}

.dream-scroll-fill {
  background: linear-gradient(
    180deg,
    var(--dream-gold-bright) 0%,
    var(--dream-gold) 55%,
    rgba(198, 167, 106, 0.2) 100%
  );
  box-shadow: 0 0 12px rgba(198, 167, 106, 0.45);
  display: block;
  height: var(--dream-scroll-p, 0%);
  transform-origin: top center;
  transition: height 0.12s linear;
  width: 100%;
}

/* --- Hero cinematic --- */
.c-welcome {
  position: relative;
}

.c-welcome::before {
  background:
    radial-gradient(ellipse 90% 70% at 50% 38%, transparent 42%, rgba(21, 20, 21, 0.22) 100%),
    radial-gradient(circle at 18% 22%, rgba(198, 167, 106, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 82% 28%, rgba(159, 175, 155, 0.06) 0%, transparent 38%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 14;
}

html.-ready .c-welcome {
  animation: dream-hero-breathe 18s ease-in-out infinite;
}

@keyframes dream-hero-breathe {
  0%,
  100% {
    filter: brightness(1) saturate(1);
  }

  50% {
    filter: brightness(1.03) saturate(1.06);
  }
}

.dream-hero-veil {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 13;
}

.dream-hero-veil canvas {
  display: block;
  height: 100%;
  opacity: 0.55;
  width: 100%;
}

/* Desktop hero titles — gold serif glow */
@media (min-width: 1024px) {
  .c-welcome .-w span.title.line-1,
  .c-welcome .-w span.title.line-2,
  .c-welcome .-w span.title.line-3,
  .c-welcome .-w span.title.line-1[data-v-6c6a6d99],
  .c-welcome .-w span.title.line-2[data-v-6c6a6d99],
  .c-welcome .-w span.title.line-3[data-v-6c6a6d99] {
    font-family: var(--dream-serif) !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
  }

  .c-welcome .-w span.title .-s-char {
    color: #e8d4a8 !important;
    text-shadow:
      0 0 22px rgba(198, 167, 106, 0.38),
      0 2px 18px rgba(21, 20, 21, 0.42);
  }

  .c-welcome .-w span.title.line-3 .-s-char {
    color: var(--dream-gold-bright) !important;
  }
}

/* Scroll hint */
.dream-scroll-hint {
  align-items: center;
  bottom: max(2.2rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 26;
}

html.-loaded.-ready .dream-scroll-hint {
  animation: dream-hint-in 1s cubic-bezier(0.22, 1, 0.36, 1) 2.1s both;
}

.dream-scroll-hint.is-hidden {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(1rem);
}

.dream-scroll-hint__line {
  background: linear-gradient(180deg, var(--dream-gold) 0%, transparent 100%);
  display: block;
  height: 2.8rem;
  opacity: 0.72;
  transform-origin: top center;
  width: 1px;
}

.dream-scroll-hint__line::after {
  animation: dream-hint-pulse 2.2s ease-in-out infinite;
  background: var(--dream-gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(198, 167, 106, 0.6);
  content: "";
  display: block;
  height: 4px;
  margin-left: -1.5px;
  width: 4px;
}

.dream-scroll-hint__label {
  color: rgba(var(--c-yellow-rgb), 0.52);
  font-family: var(--font-b-regular), "Noto Sans SC", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
}

@keyframes dream-hint-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(0.8rem);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes dream-hint-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(1.4rem);
  }
}

/* --- Section reveal system --- */
.dream-reveal {
  opacity: 0;
  transform: translate3d(0, 2.4rem, 0);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.dream-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.dream-reveal[data-dream-delay="1"] {
  transition-delay: 0.08s;
}

.dream-reveal[data-dream-delay="2"] {
  transition-delay: 0.16s;
}

.dream-reveal[data-dream-delay="3"] {
  transition-delay: 0.24s;
}

/* --- c-places: Vibe Matters --- */
.c-places .title .line-1,
.c-places .title .-lrg.line-1 {
  font-family: var(--dream-serif) !important;
  font-style: italic;
  letter-spacing: -0.02em !important;
}

.c-places .title .line-2,
.c-places .title .-lrg.line-2 {
  font-family: var(--dream-serif) !important;
  font-weight: 600 !important;
}

.c-places .caption.-h5.-m-h6 span {
  color: rgba(var(--c-yellow-rgb), 0.78) !important;
  font-family: var(--dream-serif) !important;
  letter-spacing: 0.06em;
  text-shadow: var(--dream-glow);
}

.c-places .place-name.-h5 {
  position: relative;
}

.c-places .place-name.-h5::after {
  background: linear-gradient(90deg, var(--dream-gold), transparent);
  bottom: -0.15em;
  content: "";
  height: 1px;
  left: 0;
  opacity: 0.55;
  position: absolute;
  transform: scaleX(var(--place-underline, 0));
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.c-places .sequesnce-nav .place-name.-h5::after {
  transform: scaleX(1);
}

/* --- c-places-after: cooperation panel --- */
.c-places-after {
  position: relative;
}

.c-places-after::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(241, 234, 222, 0.14) 0%, transparent 62%),
    linear-gradient(180deg, rgba(241, 234, 222, 0.06) 0%, transparent 48%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.c-places-after .-w {
  position: relative;
  z-index: 1;
}

.c-places-after .title.-h1.-m-h3 span:first-child {
  color: var(--dream-gold-bright) !important;
}

.c-places-after .title.-h1.-m-h3 span:nth-child(2) {
  font-family: var(--dream-serif) !important;
}

.c-places-after .subtitle.-p-h6 {
  position: relative;
}

.c-places-after .subtitle.-p-h6 .-s-line {
  background: rgba(198, 167, 106, 0.1);
  border: 1px solid rgba(198, 167, 106, 0.22);
  border-radius: 999px;
  display: inline-block;
  font-family: var(--dream-serif) !important;
  letter-spacing: 0.12em;
  padding: 0.45em 1.1em;
}

.c-places-after .caption.-m {
  border-left: 2px solid rgba(198, 167, 106, 0.38);
  margin-top: 1.2em;
  padding-left: 1.1em;
}

.c-places-after .site-copy {
  color: rgba(var(--c-yellow-rgb), 0.82) !important;
  display: block;
  font-family: var(--font-b-regular), "Noto Sans SC", sans-serif;
  line-height: 1.85;
  margin-bottom: 0.65em;
}

.c-places-after .site-copy:last-child {
  margin-bottom: 0;
}

.c-places-after .button.-big {
  border: 1px solid rgba(198, 167, 106, 0.35) !important;
  box-shadow:
    0 0 24px rgba(198, 167, 106, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.c-places-after .button.-big:hover {
  border-color: rgba(198, 167, 106, 0.62) !important;
  box-shadow:
    0 0 36px rgba(198, 167, 106, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* --- c-objects: service stack --- */
.c-objects .title .-lrg {
  font-family: var(--dream-serif) !important;
}

.c-objects .card.-active,
.c-objects figure.-active {
  box-shadow:
    0 0 0 1px rgba(198, 167, 106, 0.28),
    0 24px 48px rgba(21, 20, 21, 0.35),
    0 0 60px rgba(198, 167, 106, 0.08);
}

.c-objects .caption.-h5 {
  color: rgba(var(--c-yellow-rgb), 0.72) !important;
}

/* --- c-connection & bridge --- */
.connection-figure {
  position: relative;
}

.connection-figure::after {
  background: linear-gradient(
    180deg,
    var(--dream-ink) 0%,
    transparent 18%,
    transparent 82%,
    var(--dream-ink) 100%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.c-connection .label.-hp span {
  color: rgba(var(--c-yellow-rgb), 0.55) !important;
}

.c-connection .caption.c-1 .site-copy {
  color: rgba(var(--c-yellow-rgb), 0.78) !important;
  line-height: 1.9;
}

/* --- c-updates --- */
.c-updates .title .-lrg {
  font-family: var(--dream-serif) !important;
}

.c-updates .figure-sequence figure {
  box-shadow: inset 0 0 0 1px rgba(198, 167, 106, 0.12);
}

/* --- c-people --- */
.c-people .title span {
  font-family: var(--dream-serif) !important;
}

.c-people .-lrg.tt-stone {
  color: rgba(198, 167, 106, 0.08) !important;
  font-family: var(--dream-serif) !important;
  font-size: clamp(4rem, 18vw, 12rem) !important;
}

/* --- c-admission --- */
.c-admission .title .-lrg {
  font-family: var(--dream-serif) !important;
}

.c-admission input:focus,
.c-admission textarea:focus {
  border-color: rgba(198, 167, 106, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(198, 167, 106, 0.22) !important;
}

.c-admission .button.-big {
  border: 1px solid rgba(198, 167, 106, 0.3);
}

/* --- Intro exit flash --- */
.dream-intro.is-exit::after {
  animation: dream-intro-flash 0.55s cubic-bezier(0.55, 0, 0.2, 1) forwards;
  background: radial-gradient(circle at 50% 44%, rgba(232, 212, 168, 0.35) 0%, transparent 58%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

@keyframes dream-intro-flash {
  from {
    opacity: 0.85;
    transform: scale(0.92);
  }

  to {
    opacity: 0;
    transform: scale(1.08);
  }
}

/* --- Mobile price gold rule --- */
@media (max-width: 1023px) {
  .hero-mobile-band__line {
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(var(--c-yellow-rgb), 0.55) 50%,
      transparent 100%
    ) !important;
    display: block !important;
    height: 1px !important;
    margin-right: 0.35em;
    width: 1.6em !important;
  }

  .dream-scroll-rail {
    display: none;
  }

  .dream-scroll-hint {
    bottom: max(1.4rem, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .dream-chrome,
  .dream-hero-veil,
  .dream-scroll-hint,
  html.-ready .c-welcome {
    animation: none !important;
  }

  .dream-reveal {
    opacity: 1;
    transform: none;
  }
}
