/* Prestigia Homes cinematic presentation layer.
   The established components remain the functional baseline.
   This layer adds depth, light, responsive polish and progressive effects. */

@layer components {
  .property-card[hidden] {
    display: none !important;
  }

  body {
    position: relative;
    overflow-x: clip;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(ellipse 42% 34% at 92% 9%, rgb(201 130 82 / 0.14), transparent 74%),
      radial-gradient(ellipse 50% 44% at 4% 56%, rgb(42 86 112 / 0.16), transparent 76%);
  }

  @supports (animation-timeline: scroll()) {
    body::after {
      content: "";
      position: fixed;
      inset: 0 0 auto;
      z-index: calc(var(--z-overlay) + 1);
      block-size: 2px;
      pointer-events: none;
      transform: scaleX(0);
      transform-origin: left;
      background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
      animation: reading-progress linear both;
      animation-timeline: scroll();
    }

    @keyframes reading-progress {
      to { transform: scaleX(1); }
    }
  }

  .site-header {
    background:
      linear-gradient(135deg, rgb(255 255 255 / 0.07), transparent 38%),
      var(--glass-tint);
    border-block-end-color: color-mix(in oklch, var(--gold) 22%, transparent);
  }

  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, rgb(255 255 255 / 0.1), transparent 22%, transparent 72%, rgb(201 130 82 / 0.05));
    opacity: 0.75;
  }

  .site-header__inner {
    position: relative;
  }

  .wordmark__mark {
    transform: translateZ(0);
    filter: drop-shadow(2px 5px 9px rgb(0 0 0 / 0.48));
  }

  .preview-notice {
    position: fixed;
    inset-block-start: 4.75rem;
    inset-inline: 0;
    z-index: calc(var(--z-header) - 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-block-size: 2.15rem;
    padding: 0.45rem var(--gutter);
    background: color-mix(in oklch, var(--emerald-deepest) 91%, transparent);
    backdrop-filter: blur(14px);
    border-block-end: 1px solid color-mix(in oklch, var(--gold) 18%, transparent);
    color: color-mix(in oklch, var(--ivory) 76%, var(--emerald));
    font-size: 0.7rem;
    letter-spacing: 0.035em;
    line-height: 1.35;
    text-align: center;
  }

  .preview-notice__signal {
    inline-size: 0.42rem;
    block-size: 0.42rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 18px color-mix(in oklch, var(--gold) 72%, transparent);
  }

  .hero {
    min-block-size: max(48rem, 100svh);
    padding-block: 11rem clamp(3.25rem, 8vh, 6rem);
    align-items: end;
    perspective: 1200px;
  }

  .hero__media {
    transform: translateZ(-1px) scale(1.01);
  }

  .hero__media picture {
    display: block;
    inline-size: 100%;
    block-size: 100%;
  }

  .hero__media img {
    object-position: center center;
    filter: saturate(0.84) contrast(1.06) brightness(0.88);
  }

  .hero__media::after {
    background:
      linear-gradient(90deg, rgb(5 9 14 / 0.96) 0%, rgb(5 9 14 / 0.77) 38%, rgb(5 9 14 / 0.18) 72%, rgb(5 9 14 / 0.34) 100%),
      linear-gradient(0deg, rgb(5 9 14 / 0.96), transparent 47%),
      radial-gradient(ellipse 62% 58% at 10% 8%, rgb(201 130 82 / 0.2), transparent 64%);
  }

  .hero__flare {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 30%, rgb(240 201 164 / 0.18), transparent 22%);
    mix-blend-mode: screen;
    opacity: 0.7;
  }

  .hero__content {
    max-inline-size: 76rem;
  }

  .hero h1 {
    max-inline-size: 14ch;
    text-shadow: 0 16px 48px rgb(0 0 0 / 0.48);
  }

  .hero h1 em {
    color: var(--ivory);
    text-decoration: underline;
    text-decoration-thickness: 0.055em;
    text-decoration-color: color-mix(in oklch, var(--gold) 68%, transparent);
    text-underline-offset: 0.12em;
  }

  .hero__lede {
    max-inline-size: 41ch;
    color: color-mix(in oklch, var(--ivory) 84%, var(--emerald));
  }

  .hero__proof {
    max-inline-size: 41rem;
  }

  .hero-model {
    position: absolute;
    inset-block-start: 20%;
    inset-inline-end: clamp(1rem, 5vw, 6rem);
    z-index: var(--z-content);
    inline-size: min(38vw, 34rem);
    aspect-ratio: 1;
    pointer-events: none;
    filter: drop-shadow(32px 42px 60px rgb(0 0 0 / 0.48));
    opacity: 0;
    transition: opacity 800ms var(--ease-out);
  }

  .hero-model.is-ready {
    opacity: 1;
  }

  .hero-model::after {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(201 130 82 / 0.13), transparent 70%);
    filter: blur(24px);
  }

  .hero-model canvas {
    inline-size: 100% !important;
    block-size: 100% !important;
    opacity: 0.9;
  }

  .verification-orbit {
    position: absolute;
    inset-inline-end: clamp(1.5rem, 6vw, 7rem);
    inset-block-end: clamp(2.5rem, 7vh, 5rem);
    z-index: var(--z-raised);
    display: grid;
    grid-template-columns: auto minmax(0, 10rem);
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem 0.8rem 0.75rem;
    background:
      linear-gradient(140deg, rgb(255 255 255 / 0.1), transparent 38%),
      color-mix(in oklch, var(--emerald-deepest) 72%, transparent);
    backdrop-filter: blur(18px) saturate(140%);
    border-block-start: 1px solid color-mix(in oklch, var(--gold-bright) 38%, transparent);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-plane-2);
    color: var(--ivory-dim);
    font-size: 0.72rem;
    letter-spacing: 0.075em;
    line-height: 1.45;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform var(--dur-panel) var(--ease-out), background var(--dur-panel) var(--ease-out);
  }

  .verification-orbit:hover {
    transform: translate3d(0, -4px, 0);
    color: var(--ivory);
  }

  .verification-orbit__value {
    display: grid;
    place-items: center;
    inline-size: 3.25rem;
    block-size: 3.25rem;
    border-radius: 50%;
    border: 1px solid color-mix(in oklch, var(--gold) 58%, transparent);
    font-family: var(--font-display);
    font-size: 1.65rem;
    color: var(--gold-bright);
    box-shadow: inset 6px 8px 18px rgb(255 255 255 / 0.04), 8px 12px 20px rgb(0 0 0 / 0.28);
  }

  .section {
    isolation: isolate;
  }

  .section:not(.section--ground)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      linear-gradient(120deg, rgb(255 255 255 / 0.025), transparent 34%),
      radial-gradient(ellipse 36% 45% at 94% 20%, rgb(201 130 82 / 0.08), transparent 76%);
  }

  .property-grid {
    perspective: 1400px;
  }

  .property-card {
    background:
      linear-gradient(145deg, rgb(255 255 255 / 0.045), transparent 22%),
      var(--surface-raised);
    transform-style: preserve-3d;
    box-shadow: var(--edge-light), 16px 26px 52px -28px rgb(0 0 0 / 0.86);
  }

  .property-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.035);
  }

  .property-card:hover {
    transform: translate3d(0, -7px, 12px);
    box-shadow: var(--edge-light-strong), 24px 38px 72px -32px rgb(0 0 0 / 0.92);
  }

  .property-card__media img {
    transform: scale(1.035) translate3d(var(--image-x, 0), var(--image-y, 0), 0);
    filter: saturate(0.88) contrast(1.04);
  }

  .property-card:hover .property-card__media img {
    transform: scale(1.095) translate3d(var(--image-x, 0), var(--image-y, 0), 0);
  }

  .property-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 50%, rgb(5 9 14 / 0.55));
  }

  .media-sheen {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 20%, rgb(255 255 255 / 0.12) 46%, transparent 64%);
    transform: translate3d(-110%, 0, 0);
    opacity: 0;
    transition: transform 680ms var(--ease-out), opacity 220ms var(--ease-out);
  }

  .property-card:hover .media-sheen {
    transform: translate3d(110%, 0, 0);
    opacity: 0.45;
  }

  .badge-preview {
    border-color: color-mix(in oklch, var(--gold) 42%, transparent);
    color: color-mix(in oklch, var(--gold-bright) 88%, var(--ivory));
  }

  .split__media {
    position: relative;
    transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
    border-block-start: 1px solid color-mix(in oklch, var(--gold-bright) 42%, transparent);
  }

  .split__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(125deg, rgb(255 255 255 / 0.11), transparent 26%),
      linear-gradient(0deg, rgb(5 9 14 / 0.38), transparent 42%);
  }

  .panel {
    background:
      linear-gradient(145deg, rgb(255 255 255 / 0.05), transparent 26%),
      var(--surface-raised);
    border-block-start: 1px solid color-mix(in oklch, var(--gold-bright) 18%, transparent);
    box-shadow: var(--edge-light), 18px 32px 72px -36px rgb(0 0 0 / 0.92);
  }

  .trust-list > li {
    position: relative;
    transition: transform var(--dur-panel) var(--ease-out), background-color var(--dur-panel) var(--ease-out);
  }

  .trust-list > li:hover {
    transform: translate3d(0.7rem, 0, 0);
    background: linear-gradient(90deg, rgb(201 130 82 / 0.07), transparent 60%);
  }

  .enquiry-rail {
    background:
      linear-gradient(142deg, rgb(255 255 255 / 0.11), transparent 30%),
      color-mix(in oklch, var(--emerald) 72%, transparent);
    border-block-start-color: color-mix(in oklch, var(--gold-bright) 48%, transparent);
    box-shadow: var(--edge-light-strong), 22px 40px 82px -32px rgb(0 0 0 / 0.88);
  }

  .gallery-frame {
    position: relative;
    overflow: clip;
    min-block-size: 100%;
    border-radius: inherit;
    background: var(--surface-raised);
  }

  .gallery-frame img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    filter: saturate(0.86) contrast(1.04);
    transition: transform 720ms var(--ease-out), filter 400ms var(--ease-out);
  }

  .gallery-frame:hover img {
    transform: scale(1.045);
    filter: saturate(1) contrast(1.03);
  }

  .gallery-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgb(5 9 14 / 0.76), transparent 40%);
  }

  .gallery-frame figcaption {
    position: absolute;
    inset-inline: 1rem;
    inset-block-end: 0.8rem;
    z-index: 1;
    max-inline-size: calc(100% - 2rem);
    color: var(--ivory);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .page-head {
    background:
      radial-gradient(ellipse 46% 58% at 92% 8%, rgb(201 130 82 / 0.14), transparent 72%),
      linear-gradient(145deg, var(--emerald), var(--emerald-deepest));
  }

  .page-head::after {
    content: "";
    position: absolute;
    inset: auto var(--gutter) 0;
    block-size: 1px;
    background: linear-gradient(90deg, var(--gold), transparent 65%);
    opacity: 0.42;
  }

  .field :is(input, select, textarea) {
    background:
      linear-gradient(145deg, rgb(255 255 255 / 0.035), transparent 45%),
      color-mix(in oklch, var(--emerald-deepest) 76%, transparent);
    backdrop-filter: blur(10px);
  }

  .contact-pending {
    padding-block: 0.7rem;
    border-block-end: 1px solid var(--emerald-line);
    color: var(--ivory-dim);
    font-size: var(--step--1);
  }

  .filter-bar .field label,
  .filter-bar .chip-set legend,
  .filter-bar .field-label {
    color: var(--ivory-dim);
  }

  .site-footer {
    position: relative;
    background:
      radial-gradient(ellipse 45% 60% at 10% 0%, rgb(201 130 82 / 0.11), transparent 72%),
      #03070b;
  }

  @media (max-width: 64rem) {
    .hero-model {
      inset-block-start: 26%;
      inset-inline-end: -4rem;
      inline-size: min(52vw, 28rem);
      opacity: 0.62;
    }

    .verification-orbit {
      inset-inline-end: var(--gutter);
    }
  }

  @media (max-width: 48rem) {
    .section-head--split {
      grid-template-columns: minmax(0, 1fr);
      align-items: start;
    }

    .section-head--split > :first-child {
      inline-size: 100%;
      max-inline-size: 100%;
    }

    .section-head--split > .btn {
      justify-self: start;
    }

    .wordmark,
    .skip-link,
    .property-card__title a,
    .site-footer a {
      min-block-size: 44px;
    }

    .property-card__title a,
    .site-footer a {
      display: inline-flex;
      align-items: center;
    }

    .preview-notice {
      justify-content: flex-start;
      min-block-size: 2.55rem;
      text-align: left;
    }

    .hero {
      min-block-size: max(44rem, 100svh);
      padding-block-start: 10.5rem;
    }

    .hero__media img {
      object-position: 63% center;
    }

    .hero__media::after {
      background:
        linear-gradient(0deg, rgb(5 9 14 / 0.98) 0%, rgb(5 9 14 / 0.75) 54%, rgb(5 9 14 / 0.22) 100%),
        linear-gradient(90deg, rgb(5 9 14 / 0.72), transparent 80%);
    }

    .hero-model {
      display: none;
    }

    .verification-orbit {
      display: none;
    }

    .hero__content {
      max-inline-size: 100%;
    }

    .hero h1 {
      max-inline-size: 10.5ch;
    }

    .hero__proof {
      gap: 0.5rem;
    }

    .split__media {
      transform: none;
      aspect-ratio: 4 / 5;
    }

    .property-card:hover {
      transform: translate3d(0, -3px, 0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-model { display: none; }
    .media-sheen { display: none; }
  }

  body[data-motion="off"] .hero-model { display: none; }
  body[data-motion="off"] .media-sheen { display: none; }
}

/* Time aware architectural atmosphere and the final tactile polish.
   Liquid glass remains a CSS approximation. All continuous movement is
   decorative and disappears when reduced motion is requested. */
@layer components {
  body {
    --daypart-sky: rgb(20 38 52 / 0.18);
    --daypart-glow: rgb(201 130 82 / 0.14);
    transition: background-color 900ms var(--ease-in-out);
  }

  body[data-daypart="morning"] {
    --daypart-sky: rgb(111 145 159 / 0.18);
    --daypart-glow: rgb(240 201 164 / 0.18);
  }

  body[data-daypart="afternoon"] {
    --daypart-sky: rgb(55 105 128 / 0.16);
    --daypart-glow: rgb(201 130 82 / 0.13);
  }

  body[data-daypart="evening"] {
    --daypart-sky: rgb(16 32 48 / 0.23);
    --daypart-glow: rgb(114 47 61 / 0.17);
  }

  body::before {
    background:
      radial-gradient(ellipse 44% 38% at 86% 8%, var(--daypart-glow), transparent 72%),
      radial-gradient(ellipse 55% 52% at 8% 58%, var(--daypart-sky), transparent 76%);
    transition: background 1200ms var(--ease-in-out);
  }

  .time-controls {
    order: 2;
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
    min-inline-size: 0;
  }

  .visitor-time {
    display: grid;
    gap: 0.12rem;
    min-inline-size: 8.8rem;
    padding: 0.52rem 0.72rem;
    border: 1px solid color-mix(in oklch, var(--gold-bright) 18%, transparent);
    border-radius: var(--radius-m);
    background:
      linear-gradient(145deg, rgb(255 255 255 / 0.075), transparent 44%),
      color-mix(in oklch, var(--emerald-deepest) 70%, transparent);
    box-shadow:
      inset 5px 6px 12px rgb(255 255 255 / 0.028),
      inset -7px -9px 15px rgb(0 0 0 / 0.22),
      8px 12px 24px -18px rgb(0 0 0 / 0.9);
    text-align: right;
  }

  .visitor-time__period {
    color: var(--ivory-faint);
    font-size: 0.56rem;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
  }

  .visitor-time__clock {
    color: var(--gold-bright);
    font-size: 0.69rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.055em;
    line-height: 1.2;
    white-space: nowrap;
  }

  .sr-only {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .timezone-picker {
    position: relative;
    display: flex;
    min-inline-size: 7.6rem;
  }

  .timezone-picker::after {
    content: "⌄";
    position: absolute;
    inset-inline-end: 0.68rem;
    inset-block-start: 50%;
    color: var(--gold-bright);
    pointer-events: none;
    transform: translateY(-54%);
  }

  .timezone-picker select {
    inline-size: 100%;
    min-block-size: 44px;
    padding: 0.5rem 1.8rem 0.5rem 0.68rem;
    border: 1px solid color-mix(in oklch, var(--gold-bright) 18%, transparent);
    border-radius: var(--radius-m);
    appearance: none;
    background:
      linear-gradient(145deg, rgb(255 255 255 / 0.075), transparent 44%),
      color-mix(in oklch, var(--emerald-deepest) 94%, black);
    box-shadow:
      inset 5px 6px 12px rgb(255 255 255 / 0.028),
      inset -7px -9px 15px rgb(0 0 0 / 0.22),
      8px 12px 24px -18px rgb(0 0 0 / 0.9);
    color: var(--ivory-dim);
    cursor: pointer;
    font: inherit;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .timezone-picker select:is(:hover, :focus-visible) {
    border-color: color-mix(in oklch, var(--gold-bright) 48%, transparent);
    color: var(--ivory);
  }

  .nav { order: 1; }

  .hero__depth-grid {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
    background-image:
      linear-gradient(rgb(240 201 164 / 0.14) 1px, transparent 1px),
      linear-gradient(90deg, rgb(240 201 164 / 0.14) 1px, transparent 1px);
    background-size: clamp(3.5rem, 7vw, 7rem) clamp(3.5rem, 7vw, 7rem);
    mask-image: linear-gradient(90deg, transparent 22%, black 74%, transparent);
    transform: perspective(900px) rotateX(64deg) translateY(34%);
    transform-origin: bottom;
  }

  .hero__light-arc {
    position: absolute;
    inset-block-start: 11%;
    inset-inline-end: 4%;
    inline-size: min(46vw, 42rem);
    aspect-ratio: 1;
    border: 1px solid color-mix(in oklch, var(--gold-bright) 34%, transparent);
    border-inline-start-color: transparent;
    border-block-end-color: transparent;
    border-radius: 50%;
    box-shadow:
      inset -18px 20px 52px -46px var(--gold-bright),
      18px -20px 58px -48px var(--gold-bright);
    opacity: 0.62;
    pointer-events: none;
    transform: rotate(22deg);
  }

  .hero__content {
    transform-style: preserve-3d;
  }

  .hero__eyebrow,
  .hero h1,
  .hero__lede,
  .hero__actions,
  .hero__proof {
    animation: hero-rise 780ms var(--ease-out) both;
  }

  .hero h1 { animation-delay: 70ms; }
  .hero__lede { animation-delay: 140ms; }
  .hero__actions { animation-delay: 210ms; }
  .hero__proof { animation-delay: 280ms; }

  @keyframes hero-rise {
    from { opacity: 0; transform: translate3d(0, 1.4rem, 0) scale(0.985); }
    to { opacity: 1; transform: none; }
  }

  .property-card__title a::after {
    content: "";
    display: block;
    inline-size: 2.4rem;
    block-size: 1px;
    margin-block-start: 0.45rem;
    background: linear-gradient(90deg, var(--gold), transparent);
    transform-origin: left;
    transition: inline-size 420ms var(--ease-out);
  }

  .property-card:is(:hover, :focus-within, [data-interacting="true"]) .property-card__title a::after {
    inline-size: 6.2rem;
  }

  @media (max-width: 78rem) {
    .time-controls { display: none; }
  }

  @media (max-width: 60rem) {
    .time-controls {
      order: 0;
      display: flex;
      margin-inline-start: auto;
    }

    .visitor-time {
      min-inline-size: 7.6rem;
      padding: 0.42rem 0.56rem;
    }

    .timezone-picker {
      min-inline-size: 6.8rem;
      max-inline-size: 8.6rem;
    }

    .nav-toggle { order: 3; }
    .nav { order: 4; }
  }

  @media (max-width: 34rem) {
    .time-controls { gap: 0.28rem; }

    .visitor-time {
      min-inline-size: 5.8rem;
      padding: 0.38rem 0.48rem;
    }

    .visitor-time__period { display: none; }
    .visitor-time__clock { font-size: 0.61rem; }
    .timezone-picker {
      min-inline-size: 2.8rem;
      max-inline-size: 2.8rem;
    }
    .timezone-picker select {
      padding-inline: 0.45rem 1.3rem;
      color: transparent;
      font-size: 0;
      -webkit-text-fill-color: transparent;
    }
    .timezone-picker::before {
      content: "TZ";
      position: absolute;
      inset-inline-start: 0.52rem;
      inset-block-start: 50%;
      color: var(--ivory-dim);
      font-size: 0.58rem;
      letter-spacing: 0.04em;
      pointer-events: none;
      transform: translateY(-50%);
    }
    .timezone-picker::after { inset-inline-end: 0.4rem; }
    .hero__depth-grid { opacity: 0.1; }
    .hero__light-arc { inline-size: 78vw; opacity: 0.34; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero__eyebrow,
    .hero h1,
    .hero__lede,
    .hero__actions,
    .hero__proof {
      animation: none;
    }

    .hero__depth-grid,
    .hero__light-arc {
      transform: none;
    }
  }

  body[data-motion="off"] :is(.hero__eyebrow, .hero h1, .hero__lede, .hero__actions, .hero__proof) {
    animation: none;
  }
}

/* Adaptive interaction layer. Pointer, touch and keyboard users receive the
   same visual outcome through different controls. The liquid glass treatment
   is a CSS approximation, not an official platform material. */
@layer components {
  .pointer-light {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    z-index: calc(var(--z-header) - 2);
    inline-size: clamp(12rem, 22vw, 22rem);
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(calc(var(--pointer-x, 50vw) - 50%), calc(var(--pointer-y, 50vh) - 50%), 0);
    background: radial-gradient(circle, rgb(240 201 164 / 0.13), rgb(201 130 82 / 0.04) 35%, transparent 70%);
    mix-blend-mode: screen;
    transition: opacity 260ms var(--ease-out);
    will-change: transform;
  }

  body[data-pointer-active="true"] .pointer-light {
    opacity: 1;
  }

  .interaction-tip {
    position: fixed;
    inset-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
    inset-block-end: max(1rem, env(safe-area-inset-bottom));
    z-index: var(--z-overlay);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    max-inline-size: 34rem;
    margin-inline: auto;
    padding: 0.8rem 0.9rem;
    border: 1px solid color-mix(in oklch, var(--gold-bright) 28%, transparent);
    border-radius: var(--radius-l);
    background:
      linear-gradient(140deg, rgb(255 255 255 / 0.1), transparent 36%),
      color-mix(in oklch, var(--emerald-deepest) 91%, transparent);
    backdrop-filter: blur(18px) saturate(145%);
    box-shadow: var(--edge-light), var(--shadow-plane-2);
    color: var(--ivory-dim);
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .interaction-tip[hidden] {
    display: none;
  }

  .interaction-tip p {
    max-inline-size: none;
  }

  .interaction-tip strong {
    color: var(--ivory);
  }

  .interaction-tip__mark {
    inline-size: 0.7rem;
    block-size: 0.7rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 20px color-mix(in oklch, var(--gold) 72%, transparent);
  }

  .interaction-tip button,
  .gallery-control {
    min-inline-size: 44px;
    min-block-size: 44px;
    padding-inline: 0.8rem;
    border: 1px solid color-mix(in oklch, var(--ivory) 22%, transparent);
    border-radius: var(--radius-m);
    background: color-mix(in oklch, var(--emerald-raised) 78%, transparent);
    color: var(--ivory);
    cursor: pointer;
    transition: transform var(--dur-press) var(--ease-out), border-color var(--dur-hover) var(--ease-out);
  }

  .interaction-tip button:active,
  .gallery-control:active {
    transform: scale(0.96);
  }

  .gallery-control:disabled {
    cursor: not-allowed;
    opacity: 0.42;
  }

  .hero {
    --hero-depth-x: 0px;
    --hero-depth-y: 0px;
    touch-action: pan-y;
  }

  .hero__media {
    transform: translate3d(var(--hero-depth-x), var(--hero-depth-y), -1px) scale(1.025);
    transition: transform 420ms var(--ease-out);
  }

  .property-card {
    --card-rotate-x: 0deg;
    --card-rotate-y: 0deg;
    --card-lift: 0px;
    touch-action: pan-y;
    translate: 0 var(--card-lift);
  }

  .property-card__media {
    transform: perspective(1000px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y));
    transform-origin: center;
    transition: transform var(--dur-panel) var(--ease-out);
  }

  .property-card:hover,
  .property-card:focus-within,
  .property-card[data-interacting="true"] {
    --card-lift: -7px;
    box-shadow: var(--edge-light-strong), 24px 38px 72px -32px rgb(0 0 0 / 0.92);
  }

  .property-card:focus-within .property-card__media img,
  .property-card[data-interacting="true"] .property-card__media img {
    transform: scale(1.095) translate3d(var(--image-x, 0), var(--image-y, 0), 0);
  }

  .property-card:focus-within .media-sheen,
  .property-card[data-interacting="true"] .media-sheen {
    transform: translate3d(110%, 0, 0);
    opacity: 0.45;
  }

  .verification-orbit:focus-visible,
  .verification-orbit:active {
    transform: translate3d(0, -4px, 0);
    color: var(--ivory);
  }

  .gallery-shell {
    display: grid;
    gap: var(--space-s);
  }

  .gallery-controls {
    display: none;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-xs);
  }

  .gallery-status {
    max-inline-size: none;
    text-align: center;
    color: var(--ivory-dim);
    font-size: var(--step--1);
  }

  @media (hover: hover) and (pointer: fine) {
    .btn--primary {
      transform: translate3d(var(--magnetic-x, 0), var(--magnetic-y, 0), 0);
    }
  }

  @media (hover: none), (pointer: coarse) {
    .pointer-light {
      inline-size: 15rem;
      opacity: 0;
    }

    body[data-pointer-active="true"] .pointer-light {
      opacity: 0.72;
    }

    .property-card:hover {
      --card-lift: 0px;
    }

    .property-card[data-interacting="true"] {
      --card-lift: -4px;
    }

    .trust-list > li:active {
      transform: translate3d(0.4rem, 0, 0);
      background: linear-gradient(90deg, rgb(201 130 82 / 0.07), transparent 60%);
    }
  }

  @media (max-width: 48rem) {
    .hero__media {
      transform: translate3d(var(--hero-depth-x), var(--hero-depth-y), 0) scale(1.07);
    }

    .gallery {
      display: flex;
      gap: var(--space-xs);
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: inline mandatory;
      scroll-padding-inline: 0;
      border-radius: 0;
      box-shadow: none;
      overscroll-behavior-inline: contain;
      touch-action: pan-x pan-y;
      scrollbar-width: thin;
      scrollbar-color: var(--gold) var(--emerald-line);
    }

    .gallery > *,
    .gallery > :first-child {
      flex: 0 0 min(88%, 32rem);
      aspect-ratio: 4 / 5;
      scroll-snap-align: start;
      border-radius: var(--radius-l);
    }

    .gallery-controls {
      display: grid;
    }

    .gallery-control {
      font-size: 0.74rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
  }

  @media (max-width: 30rem) {
    .btn {
      max-inline-size: 100%;
      white-space: normal;
      text-align: center;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .pointer-light,
    .interaction-tip__mark {
      display: none;
    }

    .hero__media,
    .property-card,
    .property-card__media,
    .btn--primary {
      transform: none !important;
      translate: none !important;
    }
  }

  body[data-motion="off"] .pointer-light,
  body[data-motion="off"] .interaction-tip__mark {
    display: none;
  }

  body[data-motion="off"] :is(.hero__media, .property-card, .property-card__media, .btn--primary) {
    transform: none !important;
    translate: none !important;
  }
}
