/* Moving light behind a gently misting glass surface; never over the content. */
.public-site { isolation: isolate; background: #0a1016; }
.light-field { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict; background: radial-gradient(ellipse at 15% 25%, #112b36, transparent 65%), #0a1016; }
.light-orbit { position: absolute; top: -20%; left: -15%; width: 95vmax; height: 95vmax; max-width: 1500px; max-height: 1500px; animation: light-wander 29s ease-in-out infinite; }
.light-beam { display: block; width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg 35deg, rgba(75,207,239,.03) 60deg, rgba(103,218,245,.24) 86deg, rgba(208,239,249,.13) 102deg, transparent 135deg 218deg, rgba(54,118,209,.17) 250deg, transparent 292deg); mask-image: radial-gradient(ellipse, #000 8%, rgba(0,0,0,.8) 32%, transparent 68%); -webkit-mask-image: radial-gradient(ellipse, #000 8%, rgba(0,0,0,.8) 32%, transparent 68%); filter: blur(22px); animation: light-turn 23s linear infinite; }
.light-orbit:nth-child(2) { top: 10%; left: 34%; width: 78vmax; height: 78vmax; opacity: .8; animation-duration: 37s; animation-delay: -16s; animation-direction: reverse; }
.light-orbit:nth-child(2) .light-beam { animation-duration: 31s; animation-delay: -11s; animation-direction: reverse; }
.light-orbit:nth-child(3) { top: 45%; left: -20%; width: 70vmax; height: 70vmax; opacity: .55; animation-duration: 43s; animation-delay: -27s; }
.light-orbit:nth-child(3) .light-beam { animation-duration: 19s; animation-delay: -8s; }
.glass-mist { position: absolute; inset: -15%; opacity: 0; background: radial-gradient(ellipse at 25% 36%, rgba(205,234,244,.13), rgba(171,211,228,.04) 26%, transparent 52%), radial-gradient(ellipse at 70% 75%, rgba(186,220,237,.07), transparent 44%); filter: blur(28px); animation: glass-breathe 17s ease-in-out infinite; }
.glass-mist-secondary { background: radial-gradient(ellipse at 76% 25%, rgba(197,221,240,.13), rgba(148,201,221,.025) 32%, transparent 55%); animation-duration: 23s; animation-delay: -12s; animation-direction: reverse; }
@keyframes light-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes light-wander {
  0%, 100% { transform: translate3d(-8%, -6%, 0) scale(1); }
  23% { transform: translate3d(18%, 9%, 0) scale(1.08); }
  51% { transform: translate3d(-4%, 24%, 0) scale(.92); }
  77% { transform: translate3d(-19%, 5%, 0) scale(1.04); }
}
@keyframes glass-breathe {
  0%, 100% { opacity: .05; transform: translate3d(-3%, 2%, 0) scale(.95); }
  24% { opacity: .38; }
  52% { opacity: .9; transform: translate3d(4%, -3%, 0) scale(1.08); }
  76% { opacity: .26; }
}
.public-site .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: rgba(192,229,244,.12); }
.public-site .site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: #0b0f14; opacity: .1; transition: opacity 1.5s ease; }
.public-site .site-header.is-scrolled::before { opacity: .85; }
/* The home film begins at y=0; only its text reserves space for navigation. */
.public-site.home-page .site-header { position: fixed; inset: 0 0 auto; width: 100%; }
.public-site.home-page .hero-content { padding-top: 157px; }
.public-site section[id] { scroll-margin-top: 137px; }
.public-site .card, .public-site .panel, .public-site .review-card, .public-site .modal-box {
  background: linear-gradient(135deg, rgba(162,210,235,.09), rgba(14,25,35,.62) 50%, rgba(81,148,175,.055));
  border: 1px solid rgba(177,221,239,.18);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
  box-shadow: 0 12px 30px rgba(0,0,0,.13), inset 0 1px 0 rgba(237,251,255,.055);
}
.public-site .final-cta { background: linear-gradient(135deg, rgba(28,58,72,.56), rgba(13,23,31,.72)); }
.public-site .stars { color: #f5c84c; }
.public-site .review-card { border-radius: 6px; padding: 24px; flex-shrink: 0; }
.review-card-heading { text-align: center; border-bottom: 1px solid rgba(176,221,240,.12); padding-bottom: 18px; }
.review-card-heading .review-author { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 0 5px; font-size: 15px; line-height: 22px; font-weight: 700; color: #f3f8fc; overflow-wrap: anywhere; }
.review-card-heading .stars { margin: 0; font-size: 17px; line-height: 24px; letter-spacing: 3px; }
.review-date { margin: 7px 0 0; font-size: 12px; line-height: 20px; font-style: italic; color: #acbdc9; }
.review-meta { font-size: 12px; color: var(--muted); }
.public-site .review-card-text { line-height: 1.7; margin: 20px 0; color: #c2cdd6; }
.public-site .review-readmore { align-self: center; margin-top: auto; min-height: 44px; padding: 0 12px; border-radius: 6px; }
.public-site .review-readmore:hover { color: #a5eeff; background: rgba(34,199,242,.07); }
.public-site .carousel-photo { border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.18); flex-shrink: 0; }
.public-site .carousel-section { max-width: none; padding: 0 0 40px; }
.public-site .carousel-section.about-carousel { padding-bottom: 0; }
/* No CSS scroll-snap here: it fights the JS-driven continuous auto-play
   (carousel.js writes scrollLeft every frame; the browser's snap engine
   vetoes/pulls back any non-snap-point value in real time, regardless of
   JS event handling, which froze the whole carousel). Centring on settle
   is handled by the animation loop itself instead. */
.public-site .carousel-wrap { width: 100%; left: auto; transform: none; margin: 0; padding: 10px max(22px, calc((100vw - 1184px) / 2)) 20px; overflow-x: auto; overflow-y: hidden; scroll-behavior: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; }
.public-site .carousel-wrap::-webkit-scrollbar { display: none; }
.public-site .carousel-wrap:focus-visible { outline: 2px solid rgba(34,199,242,.7); outline-offset: -3px; }
.public-site .carousel-track { position: relative; transform: none; will-change: auto; align-items: stretch; }
.carousel-wrap.is-dragging, .carousel-wrap.is-dragging * { cursor: grabbing; user-select: none; }
.carousel-wrap .carousel-photo { user-select: none; -webkit-user-drag: none; }
.carousel-tools { display: none; max-width: 1280px; margin: 0 auto; padding: 0 48px; align-items: center; justify-content: space-between; gap: 16px; }
.carousel-ready .carousel-tools { display: flex; }
.carousel-hint { font-size: 11px; letter-spacing: .03em; color: #96adbd; }
.carousel-actions { display: flex; align-items: center; gap: 8px; }
.carousel-control { min-width: 44px; width: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: rgba(123,179,204,.06); color: #d5e6ef; border: 1px solid rgba(185,221,240,.19); font-size: 20px; }
.carousel-control:hover { background: rgba(110,195,221,.14); }
.carousel-pause-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.carousel-paused .carousel-pause-icon { width: 0; height: 0; border-left: 10px solid currentColor; border-right: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.review-open { overflow: hidden; }
.public-site #review-modal { z-index: 1400; backdrop-filter: blur(8px); }
.public-site .modal-box { background-color: rgba(13,25,35,.90); }
.modal-head > div { flex: 1; text-align: center; }
.modal-head .review-author { margin-top: 0; color: var(--white); }
.modal-close { min-width: 44px; min-height: 44px; padding: 0; background: transparent; }
.modal-close:hover { background: rgba(255,255,255,.08); }
/* Integration with the existing logo and chat assets. */
.wordmark .logo-container, .site-header .wordmark .logo-container { display: inline-block; position: relative; margin: 0; padding: 0; line-height: 0; font-size: 0; letter-spacing: 0; vertical-align: middle; }
.wordmark .shine-mask, .site-header .wordmark .shine-mask { position: absolute; display: block; margin: 0; font-size: 0; letter-spacing: 0; }
.wordmark .shine-mask { visibility: hidden; mask-mode: alpha; mask-repeat: no-repeat; mask-position: center; mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain; }
.wordmark .shine-ready .shine-mask { visibility: visible; }
.wordmark .logo-container .shine-mask { --logo-shine-duration: 818.18ms; animation: none; opacity: 1; background: none; }
.wordmark .shine-mask::before, .wordmark .shine-mask::after { content: ''; position: absolute; pointer-events: none; opacity: 0; }
/* Equal x/y travel gives a true 45-degree sweep while the alpha mask stays still. */
.wordmark .shine-mask::before { inset: -180px; background: linear-gradient(135deg, transparent 43%, rgba(204,219,231,.4) 47%, #f5fbff 50%, rgba(222,234,243,.6) 53%, transparent 57%); }
.wordmark .shine-mask::after { inset: 0; background: radial-gradient(ellipse at 88% 70%, #fff 0%, rgba(224,237,248,.92) 13%, rgba(173,197,219,.25) 32%, transparent 57%); }
.wordmark .animate-shine .shine-mask::before { animation: logo-polish-sweep var(--logo-shine-duration) cubic-bezier(.2,.55,.45,1) both; }
.wordmark .animate-shine .shine-mask::after { animation: logo-polish-glint var(--logo-shine-duration) ease-out both; }
@keyframes logo-polish-sweep {
  0% { transform: translate3d(-200px, -200px, 0); opacity: 0; }
  12% { opacity: .6; }
  62% { opacity: .88; }
  84% { opacity: 1; }
  100% { transform: translate3d(200px, 200px, 0); opacity: 0; }
}
@keyframes logo-polish-glint { 0%, 57% { opacity: 0; } 80% { opacity: .96; } 100% { opacity: 0; } }
.wordmark .logo-container { max-width: 100%; }
.wordmark .logo-img { max-width: 100%; object-fit: contain; }
.site-footer { grid-template-columns: minmax(0, 1fr) auto; }
.site-footer > .footer-contact, .site-footer > p, .site-footer > nav { grid-column: 1; }
.site-footer .footer-brand { grid-column: 2; grid-row: 1 / span 3; justify-self: end; align-self: start; max-width: 100%; }
.site-footer .footer-brand .logo-img { width: 280px; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#chat-panel { padding: 0; margin: 0; max-height: min(520px, calc(100dvh - 110px)); background: rgba(13,24,33,.94); backdrop-filter: blur(18px); box-shadow: 0 18px 50px rgba(0,0,0,.25); }
#chat-panel .chat-panel-head h3 { font-size: 19px; margin: 2px 0 0; }
#chat-panel .chat-panel-head .eyebrow { margin: 0; }
#chat-panel-close { width: 44px; height: 44px; min-height: 44px; padding: 0; }
#chat-panel input, #chat-panel textarea { margin-top: 0; min-width: 0; }
#chat-panel-name[hidden], #chat-panel-error[hidden] { display: none; }
.chat-panel-row textarea { width: 100%; }
#chat-panel .chat-panel-row { align-items: end; }
#chat-panel .chat-panel-row textarea, #chat-panel .chat-panel-row button { height: 48px; min-height: 48px; border-radius: 10px; }
#chat-panel .chat-panel-row textarea { padding: 12px 11px; line-height: 22px; }
#chat-panel .chat-panel-row button { min-width: 66px; padding: 0 14px; margin: 0; font-size: 13px; border: 1px solid var(--accent); }
.chat-bubble { overflow-wrap: anywhere; }
.chat-launcher { padding: 0; }
.chat-icon { position: relative; display: block; width: 22px; height: 17px; border: 2px solid currentColor; border-radius: 6px; }
.chat-icon::after { content: ''; position: absolute; width: 6px; height: 6px; bottom: -5px; left: 3px; border-left: 2px solid currentColor; transform: skewY(-35deg); }
.menu-open .chat-launcher, .menu-open #chat-panel, .review-open .chat-launcher, .review-open #chat-panel { visibility: hidden; }
.chat-heading-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#chat-nav-btn { position: relative; gap: 6px; }
#chat-archive-btn, #chat-ban-btn, #chat-delete-btn { display: none; }
#chat-back-to-list { display: none; }
.chat-modal .chat-close { min-width: 36px; width: 36px; min-height: 36px; height: 36px; padding: 0; }
.chat-modal .chat-ban-btn, .chat-modal .chat-delete-btn { min-height: 36px; }
.chat-modal .chat-row { display: block; }
.chat-modal .chat-thread { min-width: 0; }
.chat-modal .chat-thread-head { gap: 10px; flex-wrap: wrap; }
.chat-modal .chat-composer textarea { width: 100%; min-width: 0; margin-top: 0; }
.chat-modal .chat-list-pager button { min-height: 36px; }
@media (max-width: 900px) {
  .public-site.home-page .hero-content { padding-top: 149px; }
  .carousel-tools { padding: 0 28px; }
  .site-header > .wordmark { min-width: 0; max-width: calc(100% - 70px); }
}
@media (max-width: 760px) {
  .site-footer { grid-template-columns: minmax(0, 1fr); }
  .site-footer .footer-brand { grid-column: 1; grid-row: 1; }
  .carousel-tools { padding: 0 84px 0 22px; gap: 12px; }
  .carousel-hint { max-width: 140px; line-height: 1.6; }
  .light-orbit { width: 115vmin; height: 115vmin; }
  .light-orbit:nth-child(2) { width: 125vmin; height: 125vmin; left: 8%; }
  .light-orbit:nth-child(3) { width: 110vmin; height: 110vmin; top: 60%; }
  .light-beam { filter: blur(16px); }
}
@media (max-width: 700px) {
  #chat-back-to-list { display: inline-flex; }
  .chat-modal .chat-shell { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .public-site .site-header::before { transition: none; }
  .light-orbit, .light-beam, .glass-mist { animation: none; }
  .light-orbit:nth-child(2) .light-beam { transform: rotate(125deg); }
  .glass-mist { opacity: .25; }
  .wordmark .shine-mask, .site-header .wordmark .shine-mask { display: none; }
}

/* Minimal, informational cookie notice -- the site sets no tracking or
   marketing cookies, only the strictly-necessary session cookie, so this
   is a one-time notice rather than an accept/reject consent banner.
   A floating inset card (not a flush full-width bar), z-indexed below
   the chat launcher (210) so it never covers/blocks it. */
.public-site .cookie-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 18px; pointer-events: none; opacity: 0; transition: opacity 1.5s ease; }
.public-site .cookie-notice.is-visible { opacity: 1; transition-duration: 2s; }
.public-site .cookie-notice-card { max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--secondary); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.35); pointer-events: auto; }
.public-site .cookie-notice-card p { margin: 0; flex: 1 1 320px; font-size: 12px; color: var(--muted); }
.public-site .cookie-notice-card a { color: var(--accent); }
.public-site .cookie-notice-card button { min-height: 36px; padding: 0 18px; font-size: 12px; flex-shrink: 0; }
@media (max-width: 480px) { .public-site .cookie-notice { padding: 12px; } .public-site .cookie-notice-card { border-radius: 14px; padding: 14px; } }

/* A hidden field must take no room: the generic input rule would otherwise turn it into an empty grid cell. */
input[type=hidden] { display: none !important; }

/* In a form grid the gap does the spacing: a label's own bottom margin would lift the fields above the button beside them. */
.form-grid > label, .form-grid > .check { margin-bottom: 0; }
