/* Shared styles for project detail pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f5f4f1; --dark: #111110; --mid: #3a3935; --muted: #7a7870;
  --accent: oklch(62% 0.14 50); --white: #fefefe; --border: rgba(0,0,0,0.10);
  --sans: 'Inter', Helvetica, Arial, sans-serif;
  --display: 'Unbounded', Helvetica, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--dark); font-size: 15px; line-height: 1.6; overflow-x: hidden; }

nav { position: fixed; top:0; left:0; right:0; z-index:100; background: rgba(245,244,241,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0 40px; height: 64px; display:flex; align-items:center; justify-content:space-between; }
.nav-logo { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--dark); }
.nav-logo-icon { width:36px; height:36px; background:var(--dark); border-radius:6px; display:flex; align-items:center; justify-content:center; }
.nav-logo-icon svg { width:20px; height:20px; fill:white; }
.nav-logo-text { font-family:var(--display); font-size:13px; font-weight:700; line-height:1.2; letter-spacing:-0.01em; }
.nav-back { display:flex; align-items:center; gap:8px; text-decoration:none; color:var(--mid); font-size:13px; font-weight:500; transition:color .2s; }
.nav-back:hover { color:var(--dark); }
.btn-primary { background:var(--dark); color:white; border:none; padding:10px 20px; border-radius:8px; font-size:13px; font-weight:600; cursor:pointer; text-decoration:none; display:inline-block; transition:background .2s, transform .15s; font-family:var(--sans); }
.btn-primary:hover { background:var(--mid); transform:translateY(-1px); }
.btn-accent { background:var(--accent); color:white; }
.btn-accent:hover { background:oklch(55% 0.14 50); }

.project-hero { padding-top: 64px; min-height: 72vh; display: grid; grid-template-columns: 1fr 1fr; max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; gap: 60px; align-items: center; }
.project-hero-text { padding: 60px 0; }
.breadcrumb { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); margin-bottom:24px; }
.breadcrumb a { color:var(--muted); text-decoration:none; }
.breadcrumb a:hover { color:var(--dark); }
.breadcrumb span { opacity:.4; }
.project-tag { font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--accent); margin-bottom:12px; display:block; }
.project-title { font-family:var(--display); font-size:clamp(28px,3.5vw,48px); font-weight:700; letter-spacing:-0.03em; line-height:1.1; margin-bottom:20px; }
.project-desc { font-size:16px; color:var(--muted); line-height:1.7; text-wrap:pretty; max-width:480px; }
.project-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:14px; overflow:hidden; margin-top:40px; }
.stat { background:white; padding:20px; }
.stat-val { font-family:var(--display); font-size:22px; font-weight:700; color:var(--dark); display:block; margin-bottom:4px; }
.stat-label { font-size:12px; color:var(--muted); }
.hero-photo { height: 560px; border-radius: 20px; overflow: hidden; position: relative; }
.hero-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.hero-photo-caption { position:absolute; bottom:16px; left:16px; background:rgba(0,0,0,0.45); backdrop-filter:blur(8px); color:white; font-size:12px; font-weight:500; padding:6px 12px; border-radius:20px; letter-spacing:.04em; }

.rooms-nav { position:sticky; top:64px; z-index:80; background:rgba(245,244,241,0.95); backdrop-filter:blur(8px); border-bottom:1px solid var(--border); padding:0 40px; }
.rooms-nav-inner { max-width:1200px; margin:0 auto; display:flex; gap:0; overflow-x:auto; scrollbar-width:none; }
.rooms-nav-inner::-webkit-scrollbar { display:none; }
.room-tab { display:flex; align-items:center; gap:8px; padding:16px 20px; font-size:13px; font-weight:500; color:var(--muted); cursor:pointer; border-bottom:2px solid transparent; white-space:nowrap; transition:color .2s, border-color .2s; text-decoration:none; }
.room-tab:hover { color:var(--dark); }
.room-tab.active { color:var(--dark); border-bottom-color:var(--dark); font-weight:600; }
.room-tab .room-dot { width:6px; height:6px; border-radius:50%; background:var(--accent); }

.rooms-container { max-width:1200px; margin:0 auto; padding:0 40px; }
.room-section { padding:72px 0 56px; border-bottom:1px solid var(--border); }
.room-section:last-child { border-bottom:none; }
.room-header { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:32px; }
.room-name { font-family:var(--display); font-size:22px; font-weight:700; letter-spacing:-0.02em; line-height:1; }
.room-count { font-size:13px; color:var(--muted); }

.carousel-wrap { position:relative; }
.carousel { display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; cursor:grab; }
.carousel::-webkit-scrollbar { display:none; }
.carousel.dragging { cursor:grabbing; }
.carousel-slide { flex:0 0 calc(50% - 8px); scroll-snap-align:start; border-radius:16px; overflow:hidden; aspect-ratio:3/2; position:relative; background:var(--border); cursor:pointer; }
.carousel-slide:first-child { flex:0 0 calc(60% - 8px); }
.carousel-slide img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.carousel-slide:hover img { transform:scale(1.03); }

.carousel-arrows { display:flex; gap:8px; align-items:center; }
.carousel-arrow { width:38px; height:38px; border-radius:50%; border:1px solid var(--border); background:white; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:background .15s, border-color .15s; }
.carousel-arrow:hover { background:var(--dark); border-color:var(--dark); }
.carousel-arrow:hover svg { stroke:white; }
.carousel-arrow svg { width:16px; height:16px; stroke:var(--mid); fill:none; stroke-width:2; }

.details-section { padding:72px 0; display:grid; grid-template-columns:2fr 1fr; gap:60px; }
.details-text h2 { font-family:var(--display); font-size:22px; font-weight:700; letter-spacing:-0.02em; margin-bottom:20px; }
.details-text p { font-size:15px; color:var(--mid); line-height:1.75; margin-bottom:16px; text-wrap:pretty; }
.works-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.works-list li { display:flex; align-items:center; gap:10px; font-size:14px; color:var(--mid); }
.works-list li::before { content:''; width:5px; height:5px; border-radius:50%; background:var(--accent); flex-shrink:0; }
.project-sidebar { display:flex; flex-direction:column; gap:20px; }
.sidebar-card { background:white; border:1px solid var(--border); border-radius:14px; padding:24px; }
.sidebar-card h4 { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:16px; }
.sidebar-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--border); font-size:14px; }
.sidebar-row:last-child { border-bottom:none; }
.sidebar-row span:first-child { color:var(--muted); }
.sidebar-row strong { font-weight:600; }

.lightbox { position:fixed; inset:0; background:rgba(0,0,0,0.92); z-index:500; display:none; align-items:center; justify-content:center; }
.lightbox.open { display:flex; }
.lightbox-inner { position:relative; max-width:1100px; width:94vw; }
.lightbox-inner img { width:100%; max-height:86vh; object-fit:contain; border-radius:12px; display:block; }
.lightbox-close { position:absolute; top:-44px; right:0; background:rgba(255,255,255,0.12); border:none; color:white; width:36px; height:36px; border-radius:50%; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.lb-arrow { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.12); border:none; color:white; width:44px; height:44px; border-radius:50%; font-size:20px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s; }
.lb-arrow:hover { background:rgba(255,255,255,0.25); }
.lb-arrow.prev { left:-56px; }
.lb-arrow.next { right:-56px; }

footer { background:var(--dark); color:rgba(255,255,255,0.4); padding:40px; text-align:center; font-size:13px; margin-top:80px; }
footer a { color:rgba(255,255,255,0.4); text-decoration:none; }
.footer-inner { max-width:1200px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; }

.fade-up { opacity:0; transform:translateY(20px); transition:opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity:1; transform:none; }

@media (max-width: 768px) {
  .project-hero { grid-template-columns:1fr; padding:80px 16px 32px; gap:24px; min-height: auto; }
  .project-hero-text { padding: 0; }
  .breadcrumb { font-size: 11px; margin-bottom: 16px; flex-wrap: wrap; }
  .project-tag { font-size: 10px; }
  .project-title { font-size: clamp(24px, 7vw, 32px); margin-bottom: 14px; }
  .project-desc { font-size: 14px; max-width: 100%; }
  .project-stats { grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-radius: 12px; }
  .stat { padding: 14px 8px; }
  .stat-val { font-size: 14px; }
  .stat-label { font-size: 10px; }
  .hero-photo { height: 240px; border-radius: 14px; }
  .hero-photo-caption { font-size: 11px; padding: 5px 10px; bottom: 10px; left: 10px; }

  nav { padding:0 12px; height: 56px; }
  .nav-logo { gap: 8px; }
  .nav-logo-icon { width: 30px; height: 30px; border-radius: 6px; }
  .nav-logo-icon svg { width: 16px; height: 16px; }
  .nav-logo-text { font-size: 10.5px; line-height: 1.2; }
  .nav-back { font-size: 0; gap: 0; padding: 8px; border-radius: 8px; background: transparent; }
  .nav-back svg { width: 18px; height: 18px; }
  .btn-primary { padding: 8px 12px; font-size: 12px; }

  .rooms-nav { padding:0 12px; top: 56px; }
  .room-tab { padding: 12px 14px; font-size: 12px; gap: 6px; }
  .rooms-container { padding:0 16px; }
  .room-section { padding: 40px 0 32px; }
  .room-header { margin-bottom: 18px; }
  .room-name { font-size: 18px; }
  .room-count { font-size: 12px; }

  .carousel-wrap { margin: 0 -16px; padding: 0 16px; }
  .carousel { gap: 10px; padding-bottom: 8px; }
  .carousel-slide { flex: 0 0 calc(100% - 4px); scroll-snap-align: center; aspect-ratio: 4/3; border-radius: 12px; }
  .carousel-slide:first-child { flex: 0 0 calc(100% - 4px); }
  .carousel-arrow { width: 34px; height: 34px; }
  .carousel-arrow svg { width: 14px; height: 14px; }

  .details-section { grid-template-columns:1fr; gap:24px; padding: 40px 0; }
  .details-text h2 { font-size: 18px; margin-bottom: 14px; }
  .details-text p { font-size: 14px; }
  .works-list li { font-size: 13px; }
  .sidebar-card { padding: 18px; }
  .sidebar-card h4 { margin-bottom: 12px; }

  .lightbox-inner { width: 100vw; }
  .lightbox-inner img { max-height: 78vh; border-radius: 8px; }
  .lb-arrow { width: 38px; height: 38px; }
  .lb-arrow.prev { left:8px; }
  .lb-arrow.next { right:8px; }
  .lightbox-close { top: -42px; }

  footer { padding: 24px 16px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
