* { margin: 0; padding: 0; box-sizing: border-box; -webkit-user-select: none; user-select: none; }
body {
  background: #000;
  font-family: system-ui, sans-serif;
  overflow: hidden;
  cursor: crosshair;
  width: 100vw; height: 100vh;
}
.container { width: 100vw; height: 100vh; position: relative; }
svg { width: 100%; height: 100%; display: block; object-fit: contain; }
svg path { will-change: transform, filter; }
.stats {
  position: fixed; top: 20px; right: 20px;
  color: #555; font-size: 11px; letter-spacing: 1px;
  font-family: monospace; text-align: right; pointer-events: none;
}
.menu {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  display: flex; width: 420px; max-width: 70vw; height: 40px;
  z-index: 30; gap: 1px;
  opacity: 0; pointer-events: none; transition: opacity 0.8s ease;
}
.menu-btn {
  flex: 1; flex-basis: 0;
  background: transparent; border: 1px solid #444;
  color: #666; cursor: pointer; font-family: inherit;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  text-align: center; outline: none; position: relative;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.menu-btn:hover { color: #999; }
.content-panel {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60%; height: 75svh; border-radius: 5px;
  background: rgba(0,0,0,0.55);
  display: flex; justify-content: center; align-items: center;
  z-index: 12; pointer-events: none; opacity: 0;
  transition: opacity 0.6s ease;
}
.content-panel.active { opacity: 1; pointer-events: auto; border: 1px solid rgba(255,255,255,0.3); }
#panel-about.active { animation: glow-about 2s ease-in-out infinite alternate; background: rgba(0,0,0,0.45); border: 1px solid rgba(255,152,0,0.5); }
#panel-works.active { animation: glow-works 2s ease-in-out infinite alternate; border: 1px solid rgba(0,150,136,0.5); }
#panel-contact.active { animation: glow-contact 2s ease-in-out infinite alternate; border: 1px solid rgba(233,30,99,0.5); }
@keyframes glow-about { from { box-shadow: 0 0 10px rgba(255,152,0,0.15), inset 0 0 10px rgba(255,152,0,0.05); } to { box-shadow: 0 0 30px rgba(255,152,0,0.35), inset 0 0 20px rgba(255,152,0,0.1); } }
@keyframes glow-works { from { box-shadow: 0 0 10px rgba(0,150,136,0.15), inset 0 0 10px rgba(0,150,136,0.05); } to { box-shadow: 0 0 30px rgba(0,150,136,0.35), inset 0 0 20px rgba(0,150,136,0.1); } }
@keyframes glow-contact { from { box-shadow: 0 0 10px rgba(233,30,99,0.15), inset 0 0 10px rgba(233,30,99,0.05); } to { box-shadow: 0 0 30px rgba(233,30,99,0.35), inset 0 0 20px rgba(233,30,99,0.1); } }
.panel-inner {
  width: 100%; padding: 40px; text-align: center;
}
.panel-inner h2 {
  font-size: 28px; font-weight: 300; letter-spacing: 6px;
  color: #fff; margin-bottom: 20px; text-transform: uppercase;
}
.panel-inner p {
  font-size: 14px; line-height: 1.8; color: #888;
  letter-spacing: 1px;
}
.scroll-wrap { display: flex; gap: 6px; justify-content: center; }

.panel-inner--contact .scroll-wrap { flex: 1; min-height: 0; align-items: center; justify-content: center; }

.panel-scroll {
  height: 400px; overflow-y: auto; padding: 16px;
  border-radius: 12px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,152,0,0.2);
  text-align: center; color: #ccc; font-size: 15px;
  line-height: 1.8; letter-spacing: 0.5px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 75%;
}
.panel-scroll p { margin-bottom: 16px; font-size: 15px; color: #ccc; letter-spacing: 0.5px; font-weight: 700; }
.panel-scroll::-webkit-scrollbar { width: 0; display: none; }
#about-scroll { width: 60%; height: 480px; }
.panel-scroll-custom {
  width: 5px; flex-shrink: 0; cursor: pointer; position: relative;
  background: rgba(255,152,0,0.08); border-radius: 3px;
}
.panel-scroll-custom-thumb {
  position: absolute; left: 0; right: 0; border-radius: 3px;
  cursor: grab;
  background: rgba(255,152,0,0.4);
  box-shadow: 0 0 6px rgba(255,152,0,0.25);
  transition: background 0.2s;
}
.panel-scroll-custom-thumb:active { cursor: grabbing; background: rgba(255,152,0,0.6); }
.panel-inner--wide { max-width: none; width: 100%; padding: 16px 32px; display: flex; flex-direction: column; height: 100%; }
.carousel3d-stage { position: relative; perspective: 900px; border-radius: 12px; flex: 1; min-height: 0; }
.carousel3d-ring { width: 100%; height: 100%; transform-style: preserve-3d; position: relative; }
.carousel3d-card { position: absolute; left: 50%; top: 50%; border-radius: 12px; cursor: pointer; backface-visibility: hidden; background: #111; border: 1px solid rgba(0,150,136,0.15); transition: border-color 0.4s ease, box-shadow 0.4s ease; user-select: none; -webkit-user-select: none; overflow: hidden; }
.carousel3d-card:hover { border-color: rgba(0,150,136,0.6); background: rgba(0,150,136,0.1); box-shadow: 0 0 60px rgba(0,150,136,0.7), 0 0 120px rgba(0,150,136,0.3); }
.carousel3d-card.active { border-color: rgba(0,150,136,0.4); box-shadow: 0 0 40px rgba(0,150,136,0.5), 0 0 80px rgba(0,150,136,0.2); }
.carousel3d-card.active:hover { animation: card-glow 2.5s ease-in-out infinite; }
@keyframes card-glow { 0%,100%{ box-shadow: 0 0 40px rgba(0,150,136,0.5), 0 0 80px rgba(0,150,136,0.2); } 50%{ box-shadow: 0 0 60px rgba(0,150,136,0.7), 0 0 120px rgba(0,150,136,0.35); } }
.carousel3d-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; z-index: 1; background: #111; filter: sepia(30%) hue-rotate(150deg) saturate(130%); transition: filter 0.4s ease; }
.carousel3d-card:hover .carousel3d-card-img { filter: none; }
.card-detail-panel { display: none; opacity: 0; background: #111; border: 1px solid rgba(0,150,136,0.25); border-radius: 12px; color: #fff; position: absolute; top: calc(50% - 15px); left: 50%; transform: translate(-50%, -50%); width: 100%; max-width: 548px; z-index: 10; overflow: hidden; }
.card-detail-panel.open { display: grid; grid-template-columns: 1fr 1fr; min-height: 200px; }
.detail-close { position: absolute; top: 8px; right: 10px; background: rgba(0,0,0,0.5); border: 1px solid rgba(0,150,136,0.3); color: rgba(0,150,136,0.6); cursor: pointer; font-size: 16px; line-height: 1; width: 26px; height: 26px; border-radius: 50%; z-index: 5; display: flex; align-items: center; justify-content: center; transition: color 0.3s, background 0.3s; }
.detail-close:hover { color: #fff; background: rgba(0,150,136,0.3); }
.detail-img-wrap { position: relative; background: #000; min-height: 180px; }
.detail-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.detail-img--loading { opacity: 0; }
.detail-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); z-index: 4; transition: opacity 0.3s ease; }
.detail-loading.hidden { opacity: 0; pointer-events: none; }
.detail-spinner { width: 32px; height: 32px; border: 2px solid rgba(0,150,136,0.15); border-top-color: rgba(0,150,136,0.7); border-radius: 50%; animation: detail-spin 0.7s linear infinite; }
@keyframes detail-spin { to { transform: rotate(360deg); } }
.detail-body { padding: 24px 18px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.detail-title { font-size: 14px; font-weight: 700; color: rgba(0,150,136,0.9); letter-spacing: 1px; }
.detail-num { font-size: 9px; color: rgba(0,150,136,0.55); letter-spacing: 2px; }
.detail-desc { font-size: 10px; color: rgba(0,150,136,0.7); line-height: 1.4; }
.works-3d-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; min-height: 0; position: relative; }
.works-carousel { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; max-width: 548px; }
#works-film { margin-top: -140px; }
#works-film .works-section-label { margin-top: -60px; }
#works-interactive { margin-top: 120px; }
.works-section-label { text-align: center; padding: 0; font-size: 15px; letter-spacing: 5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); font-weight: 600; position: relative; z-index: 2; }
.works-carousel .works-section-label { margin-top: -80px; }
.panel-inner--contact { align-self: stretch; padding: 28px 28px; display: flex; flex-direction: column; height: 100%; background: rgba(0,0,0,0.65); }
.panel-inner--contact .scroll-wrap { gap: 0; }
.contact-intro { font-size: 13px; line-height: 1.6; color: #888; letter-spacing: 1px; margin-bottom: 16px; }
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form-group { position: relative; }
.contact-form-input {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(233,30,99,0.2);
  border-radius: 4px; padding: 10px 12px; color: #ddd; font-size: 13px; font-family: inherit;
  letter-spacing: 0.5px; font-weight: 700; text-align: left; outline: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form-input:focus {
  border-color: rgba(233,30,99,0.6); box-shadow: 0 0 12px rgba(233,30,99,0.15);
}
.contact-form-input::placeholder { color: #555; letter-spacing: 1px; }
.contact-form-textarea { resize: none; height: 72px; }
.contact-form-btn {
  background: transparent; border: 1px solid rgba(233,30,99,0.4); color: rgba(233,30,99,0.7);
  padding: 10px; border-radius: 4px; cursor: pointer; font-family: inherit; font-size: 12px;
  letter-spacing: 4px; text-transform: uppercase; text-align: center; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.contact-form-btn:hover {
  background: rgba(233,30,99,0.15); color: #fff; border-color: rgba(233,30,99,0.7);
}
.contact-scroll { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contact-form-wrap { max-width: 340px; width: 100%; }
.contact-divider { height: 1px; background: rgba(233,30,99,0.12); margin: 14px 0; }
.contact-clocks { display: flex; gap: 8px; padding-bottom: 4px; justify-content: center; }
.clock { background: rgba(255,255,255,0.04); border: 1px solid rgba(233,30,99,0.15); border-radius: 4px; padding: 10px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 72px; }
.clock-label { display: block; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(233,30,99,0.5); margin-bottom: 6px; font-weight: 700; }
.clock-time { display: block; font-size: 15px; font-weight: 700; letter-spacing: 2px; color: #ddd; font-variant-numeric: tabular-nums; }
.clock-tz { display: block; font-size: 8px; letter-spacing: 1px; color: rgba(233,30,99,0.35); margin-top: 4px; text-transform: uppercase; font-weight: 700; }
.panel-close {
  position: absolute; top: 28px; right: 28px;
  background: none; border: 1px solid #555; color: #888;
  width: 36px; height: 36px; font-size: 22px; cursor: pointer;
  z-index: 13; line-height: 1; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.3s, border-color 0.3s;
}
.panel-close:hover { color: #fff; border-color: #ccc; }
@media (max-width: 768px) {
  .content-panel { width: 85%; height: 75svh; }
  .panel-inner { max-width: 100%; padding: 24px; }
  .panel-inner h2 { font-size: 22px; letter-spacing: 4px; margin-bottom: 12px; }
  .panel-scroll { height: calc(100vh - 240px); padding: 16px; }
  .panel-close { top: 16px; right: 16px; width: 32px; height: 32px; font-size: 18px; }
  .contact-clocks { flex-wrap: wrap; justify-content: center; }
  .clock { min-width: 80px; }
  .contact-form-wrap { max-width: 400px; }
  .panel-inner--wide { padding: 18px; }
  .works-section-label { font-size: 10px; padding: 3px 0; }
  .carousel3d-stage { perspective: 700px; }
  #about-scroll { height: calc(120vh - 288px); }
}
@media (max-width: 550px) {
  .content-panel { width: calc(100% - 10px); height: 75svh; }
  .panel-inner { max-width: 95%; padding: 12px; }
  .panel-inner h2 { font-size: 18px; letter-spacing: 3px; margin-bottom: 10px; }
  .panel-scroll { height: calc(50vh - 80px); padding: 12px; }
  .panel-inner--wide { padding: 10px; }
  .works-section-label { font-size: 9px; padding: 2px 0; }
  .carousel3d-stage { perspective: 500px; }
  .contact-form-wrap { max-width: 100%; }
  .contact-clocks { flex-wrap: wrap; gap: 6px; justify-content: center; }
  .clock { padding: 8px 10px; min-width: 72px; }
  .clock-time { font-size: 13px; }
  #about-scroll { height: calc(60vh - 96px); }
}
