/* Ambient motion + mobile UX refinement. Decorative only, intentionally subtle. */
html,body{overflow-x:hidden}
button,a,[role="button"]{touch-action:manipulation}
:focus-visible{outline:3px solid rgba(216,164,59,.38);outline-offset:3px}

/* Ambient decorative layer */
.ambient-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;isolation:isolate}
.ambient-dot,.ambient-line,.ambient-flash{position:absolute;display:block;pointer-events:none}
.ambient-dot{width:5px;height:5px;border-radius:50%;opacity:.24;filter:drop-shadow(0 0 6px currentColor);animation:ambientFloat 12s ease-in-out infinite}
.ambient-dot.gold{color:#d8a43b;background:currentColor}
.ambient-dot.teal{color:#0f5f61;background:currentColor}
.ambient-dot.d1{top:21%;right:17%;animation-duration:13s}
.ambient-dot.d2{top:58%;right:8%;width:3px;height:3px;animation-duration:15s;animation-delay:-4s}
.ambient-dot.d3{top:27%;left:12%;width:4px;height:4px;animation-duration:16s;animation-delay:-7s}
.ambient-dot.d4{bottom:18%;left:22%;width:6px;height:6px;opacity:.18;animation-duration:14s;animation-delay:-2s}
.ambient-dot.d5{top:45%;left:5%;width:3px;height:3px;animation-duration:17s;animation-delay:-9s}
.ambient-dot.d6{bottom:28%;right:26%;width:4px;height:4px;animation-duration:15.5s;animation-delay:-5s}

.ambient-line{height:1px;opacity:.18;background:linear-gradient(90deg,transparent,currentColor,transparent);transform-origin:center;animation:lineDrift 14s ease-in-out infinite}
.ambient-line.gold{color:#d8a43b}.ambient-line.teal{color:#0f5f61}
.ambient-line.l1{width:150px;top:32%;right:3%;transform:rotate(-14deg);animation-duration:16s}
.ambient-line.l2{width:120px;bottom:23%;left:4%;transform:rotate(17deg);animation-duration:18s;animation-delay:-6s}
.ambient-line.l3{width:92px;top:18%;left:27%;transform:rotate(-6deg);opacity:.12;animation-duration:20s;animation-delay:-10s}

.ambient-flash{width:170px;height:170px;border-radius:50%;opacity:.14;filter:blur(2px);animation:cornerBreath 9s ease-in-out infinite}
.ambient-flash.f1{top:-98px;left:-80px;background:radial-gradient(circle,rgba(216,164,59,.22),rgba(216,164,59,.05) 38%,transparent 70%)}
.ambient-flash.f2{right:-88px;bottom:-104px;background:radial-gradient(circle,rgba(15,95,97,.18),rgba(15,95,97,.04) 40%,transparent 72%);animation-duration:11s;animation-delay:-4s}

@keyframes ambientFloat{0%,100%{transform:translate3d(0,0,0);opacity:.16}35%{transform:translate3d(5px,-8px,0);opacity:.32}68%{transform:translate3d(-4px,5px,0);opacity:.22}}
@keyframes lineDrift{0%,100%{margin-left:0;margin-right:0;opacity:.10}50%{margin-left:8px;margin-right:-8px;opacity:.23}}
@keyframes cornerBreath{0%,100%{transform:scale(.94);opacity:.08}50%{transform:scale(1.07);opacity:.17}}

/* Extra calm motion around cards, only on devices with a mouse */
@media(hover:hover) and (pointer:fine){
  .project-card{will-change:transform}
  .project-card:hover{transform:translateY(-5px)}
  .weekly-event:hover{transform:translateY(-4px)}
}

/* Phone experience */
@media(max-width:700px){
  .container{width:min(100% - 24px,1180px)}
  .hero{padding:22px 0 34px;min-height:auto}
  .hero-inner{padding-inline:4px}
  .hero .brand-logo{width:min(190px,58vw)!important;max-height:128px!important;margin-bottom:4px!important}
  .hero h1{font-size:clamp(1.75rem,9vw,2.45rem);line-height:1.18;margin-top:6px}
  .hero p{font-size:.94rem;line-height:1.8;padding-inline:3px}
  .hero-divider{margin-top:19px;max-width:88%;gap:10px}
  .hero-ornament{transform:scale(.72)}
  .ambient-dot{opacity:.18;filter:drop-shadow(0 0 4px currentColor)}
  .ambient-dot.d2,.ambient-dot.d5{display:none}
  .ambient-line{opacity:.12}
  .ambient-line.l3{display:none}
  .ambient-flash{width:120px;height:120px}

  .weekly-section{padding:26px 0 30px}
  .weekly-head h2{font-size:1.45rem;line-height:1.35}
  .weekly-head p{font-size:.9rem;line-height:1.7}
  .weekly-live{font-size:.78rem;padding:7px 10px;max-width:100%;white-space:normal}
  .weekly-timeline{margin-inline:-2px;padding:4px 2px 10px;gap:10px;scroll-padding-inline:2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .weekly-timeline::-webkit-scrollbar{display:none}
  .weekly-event{flex:0 0 min(84vw,330px);min-height:136px;padding:16px 14px 14px;border-radius:16px}
  .weekly-day{font-size:.82rem}.weekly-project{font-size:.95rem}.weekly-time{font-size:.86rem}

  .main-content{padding:34px 0 50px}
  .section-head{display:block;margin-bottom:20px}
  .section-head h2{font-size:1.5rem;line-height:1.35}
  .section-head p{font-size:.91rem;line-height:1.75}
  .status-legend{margin-top:12px;gap:12px;white-space:normal;flex-wrap:wrap;font-size:.82rem}
  .projects-grid{grid-template-columns:1fr;gap:14px}
  .project-card{border-radius:18px}
  .project-logo-wrap{height:166px;padding:20px 24px}
  .project-card-body{padding:18px}
  .project-card h3{font-size:1.17rem}
  .project-card p{font-size:.9rem;min-height:auto;margin-bottom:13px}
  .next-slot{padding:9px 10px;margin-bottom:13px}
  .card-actions{gap:8px}
  .btn{min-height:48px;padding:11px 13px;border-radius:11px}

  .modal{padding:0;align-items:stretch}
  .modal-panel-project{width:100%;height:100dvh;max-height:100dvh;border-radius:0;margin:0;padding:0;overscroll-behavior:contain}
  .modal-panel-project>.modal-close{width:46px;height:46px;margin:10px 10px -56px 0;background:rgba(255,255,255,.96);box-shadow:0 8px 22px rgba(0,0,0,.08)}
  .project-detail-cover{height:150px}
  .project-detail-top{grid-template-columns:82px 1fr;padding:20px 16px 14px;gap:12px}
  .project-detail-logo{height:82px;border-radius:14px;padding:8px}
  .project-detail-title h2{font-size:1.35rem;line-height:1.3;margin-top:5px}
  .project-detail-title p{font-size:.87rem;line-height:1.65}
  .detail-quick-facts{grid-template-columns:1fr 1fr;gap:8px;padding:0 16px 16px}
  .quick-fact{min-height:64px;padding:9px 10px}
  .quick-fact strong{font-size:.82rem}
  .detail-tabs{position:sticky;top:0;z-index:8;padding:0 12px;background:rgba(255,255,255,.97);backdrop-filter:blur(9px);gap:2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .detail-tabs::-webkit-scrollbar{display:none}
  .detail-tab-btn{padding:12px 12px;font-size:.88rem;min-height:46px}
  .detail-tab-panel{padding:18px 16px 24px}
  .detail-schedule-item{grid-template-columns:70px 1fr;padding:11px 12px;gap:9px}
  .detail-registration-bar{padding:10px 14px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -7px 24px rgba(7,72,76,.07)}
  .detail-registration-bar .btn{min-height:50px}
  .site-footer{padding:24px 0 calc(24px + env(safe-area-inset-bottom))}
  .footer-inner{display:block;text-align:center}
  .footer-contact{justify-content:center;flex-wrap:wrap;margin-top:10px}
}

@media(max-width:420px){
  .container{width:calc(100% - 20px)}
  .hero .brand-logo{width:min(172px,56vw)!important;max-height:116px!important}
  .hero h1{font-size:1.72rem}
  .weekly-event{flex-basis:88vw}
  .card-actions{grid-template-columns:1fr}
  .card-actions .btn{width:100%}
  .detail-quick-facts{grid-template-columns:1fr}
  .project-detail-top{grid-template-columns:72px 1fr}
  .project-detail-logo{height:72px}
}

@media(hover:none){
  .project-card:hover,.weekly-event:hover{transform:none!important}
  .project-card:active,.weekly-event:active{transform:scale(.992)!important}
}

@media(prefers-reduced-motion:reduce){
  .ambient-dot,.ambient-line,.ambient-flash{animation:none!important}
}
