/* Creative Studio R3: media from Filament, independent of the built-in Filament UI */
.hero { background: #211b17 !important; isolation: isolate; }
.hero-media, .hero-video, .hero-media-overlay { position: absolute; inset: 0; pointer-events: none; }
.hero-media { z-index: -3; background-color: #342920; background-position: center 43%; background-size: cover; background-repeat: no-repeat; }
.hero-video { z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media-overlay { z-index: -1; background: linear-gradient(180deg, rgba(13,11,10,var(--cs-overlay, .55)) 0%, rgba(13,11,10,.54) 60%, rgba(13,11,10,.79) 100%); }
.hero .hero-grain { z-index: 0; }
.hero .hero-inner.wrap, .hero .hero-scroll { position: relative; z-index: 2; }
.hero .hero-scroll { position: absolute; }
.hero .hero-inner.wrap { text-align: center; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
@media (max-width: 720px) { .hero-video { display: none; } .hero-media { background-position: 56% center; } }

/* Creative Studio R3.1 – crop controls for hero; video kept separate. */
.hero .hero-media {
  background-position: center center !important;
  background-size: var(--cs-hero-fit, cover) !important;
  /* Translate the IMAGE layer itself, not object-position.
     This allows vertical movement even when contain fills the available height. */
  transform: translate3d(var(--cs-hero-pan-x, 0%), var(--cs-hero-pan-y, 0%), 0)
             scale(var(--cs-hero-zoom, 1));
  transform-origin: center center;
  will-change: transform;
}
.hero .hero-media-mobile { display: none; }
@media (max-width: 720px) {
  .hero .hero-media-desktop { display: none; }
  .hero .hero-media-mobile { display: block; }
}
/* Crop editor is rendered only inside the protected Filament page. */
.cs-crop-tool { width: 100%; color: #eee3d4; }
.cs-crop-help, .cs-crop-note { font-size: 13px; line-height: 1.65; color: #aca29a; margin: 0 0 16px; }
.cs-crop-note { margin: 16px 0 0; }
.cs-crop-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, 1fr); gap: 16px; }
.cs-crop-card { min-width: 0; border: 1px solid #40352c; padding: 14px; border-radius: 13px; background: #1d1b1a; }
.cs-crop-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 11px; }
.cs-crop-heading strong { font-size: 15px; color: #efc990; }
.cs-crop-heading span { color: #afa69b; font-size: 11px; }
.cs-crop-stage { position: relative; overflow: hidden; background: #302720; user-select: none; touch-action: none; cursor: grab; border: 1px solid #473d34; }
.cs-crop-stage:active { cursor: grabbing; }
.cs-crop-stage-desktop { width: 100%; aspect-ratio: 2.8 / 1; }
.cs-crop-stage-mobile { width: min(180px, 100%); height: 260px; margin: 0 auto; }
.cs-crop-stage img { position: absolute; width: 100%; height: 100%; inset: 0; pointer-events: none; user-select: none; }
.cs-crop-shade { position: absolute; inset: 0; pointer-events: none; background: rgba(12,10,9,.34); }
.cs-crop-stage-label { pointer-events: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font: 600 13px Georgia,serif; letter-spacing: .13em; white-space: nowrap; text-shadow: 0 1px 9px #000; color: #f0d4a2; }
.cs-crop-empty { display:grid; place-items:center; height:100%; color:#ddd; font-size: 12px; }
.cs-crop-controls { display: grid; gap: 13px; padding: 16px 0 0; }
.cs-crop-controls label { display: grid; gap: 6px; font-size: 12px; color: #d9d0c7; }
.cs-crop-controls output { font-weight: 700; color: #eac18a; }
.cs-crop-controls input[type=range] { width: 100%; accent-color: #dfae6e; cursor:pointer; }
.cs-crop-controls select { width: 100%; background: #272525; color: #fff0e0; border: 1px solid #554a3e; border-radius: 7px; padding: 9px; }
.cs-crop-controls button { border: 1px solid #69573e; border-radius: 7px; color: #f3d3a3; padding: 10px; cursor:pointer; font-size: 12px; text-align: center; }
.cs-crop-controls button:hover { background:#302b25; }
@media (max-width: 880px) { .cs-crop-grid { grid-template-columns: 1fr; } }

/* R3.2: the preview uses the same translate/scale model as the public hero. */
.cs-crop-stage img { object-position: center center; transform-origin: center center; will-change: transform; }
.cs-crop-help strong { color: #f0d2a0; }
