/* =========================================================
   FOURSCENIC — style.css (FINAL CONSOLIDATED EDITION)
   Art direction: Independent yearbook, photo journal, clean.
   Semua duplikasi dihapus, lightbox diperbaiki, responsif rapi.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

/* ─── 🎨 UNIFIED TOKENS ─── */
:root {
  --midnight: #171815;
  --navy-deep: #20211d;
  --ivory: #eee9dd;
  --ivory-dim: #aaa596;
  --champagne: #d47b5c;
  --champagne-glow: rgba(212, 123, 92, 0.13);
  --glass: rgba(238, 233, 221, 0.035);
  --glass-border: rgba(238, 233, 221, 0.12);
  
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-mono: 'DM Mono', monospace;
  
  --ease-premium: cubic-bezier(0.2, 0.75, 0.25, 1);
  --ease-cinematic: cubic-bezier(0.76, 0, 0.24, 1);
  
  --radius: 2px;
  --nav-h: 76px;
}

body.light {
  --midnight: #e9e4d8;
  --navy-deep: #ded8ca;
  --ivory: #24241f;
  --ivory-dim: #777365;
  --champagne: #a84f36;
  --champagne-glow: rgba(168, 79, 54, 0.1);
  --glass: rgba(30, 29, 24, 0.035);
  --glass-border: rgba(30, 29, 24, 0.14);
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 80px;
  font-size: 16px; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

body {
  background: radial-gradient(ellipse at 50% 0%, rgba(212,123,92,0.055), transparent 42rem), var(--midnight);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.012em;
  overflow-x: hidden;
  transition: background 0.6s var(--ease-premium), color 0.6s var(--ease-premium);
}

::selection { color: #171815; background: var(--champagne); }
:focus-visible { outline: 1px solid var(--champagne); outline-offset: 4px; }

/* ─── 🎞️ ORGANIC FILM GRAIN ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1%, -1%); }
  50% { transform: translate(1%, 1%); }
  75% { transform: translate(-1%, 1%); }
}

/* ─── LOADER ─── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s var(--ease-cinematic), visibility 0.8s var(--ease-cinematic);
}
#loader.hidden { opacity: 0; visibility: hidden; }

.ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--glass-border);
  border-top-color: var(--champagne);
  border-radius: 50%;
  animation: spin 1.2s var(--ease-premium) infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── CURSOR GLOW ─── */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212,123,92,0.075), transparent 68%);
  filter: blur(48px);
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

/* ─── SCROLL PROGRESS ─── */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, #8f7955, #d7c39e);
  z-index: 5000;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: none;
  will-change: transform;
}

/* =====================================================
   NAVBAR
===================================================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top) clamp(20px, 5.2vw, 84px) 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: rgba(23, 24, 21, 0.9);
  border-bottom-color: rgba(238, 233, 221, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.light #nav.scrolled { background: rgba(233, 228, 216, 0.9); }

.logo {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ivory);
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links { display: flex; align-items: center; gap: clamp(17px, 2.7vw, 42px); }

.nav-links a, .toggle {
  position: relative;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.59rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory-dim);
  white-space: nowrap;
  transition: color 0.3s ease;
}
.nav-links a:hover, .toggle:hover { color: var(--ivory); }
.nav-links .admin-link { color: var(--champagne) !important; opacity: 0.3; }
.nav-links .admin-link:hover { opacity: 1; }

.nav-links a::after, .toggle::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-premium);
}
.nav-links a:hover::after, .toggle:hover::after { transform: scaleX(1); }
@media (hover: none), (pointer: coarse) { .nav-links a::after, .toggle::after { display: none; } }

.toggle.music-playing::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  margin-right: 0.6em;
  border-radius: 50%;
  background: var(--champagne);
  vertical-align: 0.08em;
}

/* =====================================================
   HERO
===================================================== */
.hero {
  position: relative;
  min-height: 620px;
  height: min(100svh, 980px);
  background: #171815;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s var(--ease-cinematic);
}
.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.035);
  animation: slow-zoom 24s var(--ease-cinematic) infinite alternate;
  filter: saturate(0.62) brightness(0.53) contrast(1.08);
}
@keyframes slow-zoom { from { transform: scale(1.035); } to { transform: scale(1.00); } }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,11,9,0.18) 0%, rgba(10,11,9,0.08) 34%, rgba(10,11,9,0.68) 100%),
    linear-gradient(90deg, rgba(10,11,9,0.28), transparent 72%);
}
.hero-overlay::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 100px rgba(10,11,9,0.4);
}

.hero-content {
  position: relative; z-index: 2;
  width: min(1120px, 90vw);
  margin: 0 auto;
  text-align: left;
  padding: 100px 0 72px;
}

.hero-content h1 {
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(5.2rem, 12.5vw, 12.5rem);
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: -0.055em;
  color: var(--ivory);
  text-shadow: 0 8px 45px rgba(0,0,0,0.2);
  text-wrap: pretty;
  animation: fade-up 1.4s var(--ease-premium) 0.2s both;
}

.hero-content p {
  margin-top: 30px;
  padding-left: 2px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.8;
  text-transform: uppercase;
  color: rgba(245,239,226,0.82);
  animation: fade-up 1.4s var(--ease-premium) 0.5s both;
}

.hero-content::after {
  content: ''; display: block;
  width: 54px; height: 2px;
  margin: 25px 0 0 2px;
  background: var(--champagne);
  opacity: 0.9;
  animation: fade-up 1.4s var(--ease-premium) 0.8s both, pulse-line 3s 2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%      { opacity: 0.8; transform: scaleY(1.1); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-dots {
  position: absolute; bottom: max(34px, env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 9px;
}
.slide-dot {
  width: 18px; height: 2px;
  border-radius: 0;
  background: rgba(233,229,220,0.3);
  cursor: pointer;
  transition: all 0.4s var(--ease-premium);
}
.slide-dot.active {
  width: 34px; height: 2px;
  background: var(--champagne);
  transform: none; box-shadow: none;
}

/* =====================================================
   GALLERY (CONTACT SHEET STYLE)
===================================================== */
#galeri {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(92px, 11vw, 160px) clamp(22px, 6vw, 92px) 110px;
}

#galeri h2 {
  margin-bottom: 54px;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7.5vw, 7.3rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-align: left;
  color: var(--ivory);
}
#galeri h2::after {
  content: ''; display: block;
  width: 100%; height: 1px;
  margin: 30px 0 0;
  background: linear-gradient(90deg, var(--champagne) 0 56px, rgba(238,233,221,0.16) 56px 100%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.25vw, 19px);
  align-items: start;
}

.grid img {
  grid-column: span 4;
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #292a25;
  border-radius: 1px;
  cursor: zoom-in;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: saturate(0.78) contrast(1.025);
  transition: filter 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.75s ease;
}

/* Magazine-like contact sheet breaks */
.grid img:nth-child(5n + 1) { grid-column: span 5; aspect-ratio: 5 / 4; }
.grid img:nth-child(5n + 2) { grid-column: span 3; }
.grid img:nth-child(5n + 4) { grid-column: span 4; aspect-ratio: 1 / 1; }

@media (hover: hover) and (pointer: fine) {
  .grid img:hover {
    transform: translateY(-4px) scale(1.008) !important;
    filter: saturate(1) contrast(1.04) brightness(1.035);
    box-shadow: 0 18px 42px rgba(0,0,0,0.28);
    z-index: 2;
  }
}

.grid img[src=""], .grid img:not([src]) { display: none !important; }

/* =====================================================
   PERBAIKAN + KARTU LIGHTBOX
===================================================== */

/* 2. grain statis, tanpa animasi */
body::after { animation: none; }

/* 3. setelah reveal selesai, transisi hover kembali normal */
.grid img.fsc-done {
  transition:
    transform .75s cubic-bezier(.2, .7, .2, 1),
    filter .75s ease,
    box-shadow .75s ease;
  transition-delay: 0s;
}

/* 4 + 5. mode terang: nav dan hero berada di atas foto gelap */
body.light #nav:not(.scrolled) {
  --ivory: #eee9dd;
  --ivory-dim: rgba(238, 233, 221, .78);
}
body.light .hero-content h1 { color: #eee9dd; }

/* 6. tombol menu */
.toggle {
  margin: 0;
  border: 0;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.nav-links a { cursor: pointer; }

/* 10. navbar + notch */
#nav { height: calc(var(--nav-h) + env(safe-area-inset-top)); }
@media (max-width: 600px) {
  #nav { height: calc(62px + env(safe-area-inset-top)); }
}

/* 8. glow kursor tanpa blur */
.cursor-glow {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--champagne-glow) 0%, transparent 68%);
  filter: none;
  mix-blend-mode: normal;
}

/* 7. komentar */
.comment-login p {
  margin: 0;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--ivory-dim);
}
.comment-status {
  min-height: 18px;
  margin: 6px 0 0;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .06em;
  color: var(--champagne);
}
#commentInput { outline: 0; }

/* 9. footer sejajar dengan galeri */
footer {
  --fpad: max(clamp(22px, 6vw, 92px), calc((100% - 1316px) / 2));
  position: relative;
  padding-left: var(--fpad);
  padding-right: var(--fpad);
}
footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: var(--fpad);
  width: 56px;
  height: 2px;
  background: var(--champagne);
}
@media (max-width: 600px) {
  footer { --fpad: 14px; }
}

/* 1. KARTU LIGHTBOX */
.fsc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: fit-content;
  min-width: min(280px, 80vw);
  margin: 0;
  padding: clamp(10px, 2vw, 16px) clamp(10px, 2vw, 16px) 0;
  background: #eee9dd;
  color: #24241f;
  cursor: default;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

.lightbox .fsc-card img {
  display: block;
  align-self: center;
  width: auto;
  height: auto;
  max-width: min(calc(92vw - 32px), 728px);
  max-height: min(66svh, 720px);
  object-fit: contain;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: #d9d3c4;
}

.fsc-cap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 0;
  min-width: 100%;
  padding: 13px 2px 15px;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.fsc-cap-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.fsc-cap-no { color: #a84f36; }
.fsc-cap-date { color: #777365; white-space: nowrap; }
.fsc-cap-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: none;
}
.fsc-cap-tag {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #777365;
  text-transform: none;
  letter-spacing: .04em;
}

.fsc-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}
.fsc-ui.fsc-hide { opacity: 0; }

.fsc-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #eee9dd;
  background: rgba(23, 24, 21, .6);
  border: 1px solid rgba(238, 233, 221, .25);
  border-radius: 1px;
  cursor: pointer;
  pointer-events: auto;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .fsc-btn:hover { background: #d47b5c; border-color: #d47b5c; color: #171815; }
}
.fsc-ui.fsc-hide .fsc-btn { pointer-events: none; }

.fsc-close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.fsc-prev  { left: 14px;  top: 50%; margin-top: -22px; }
.fsc-next  { right: 14px; top: 50%; margin-top: -22px; }

@media (max-width: 600px) {
  .fsc-cap-brand { font-size: 1.3rem; }
  .fsc-prev, .fsc-next {
    top: auto;
    margin-top: 0;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .fsc-prev { left: calc(50% - 52px); }
  .fsc-next { right: calc(50% - 52px); }
}
/* =====================================================
   POPUPS & MESSAGES
===================================================== */
#globalMessage, .music-popup {
  position: fixed; z-index: 999999;
  width: min(390px, calc(100vw - 32px));
  padding: 16px;
  background: rgba(25, 26, 22, 0.97);
  border: 1px solid rgba(238, 233, 221, 0.16);
  border-radius: 2px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ivory);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-10px) scale(0.96);
  transition: opacity 0.35s var(--ease-premium), transform 0.35s var(--ease-premium), visibility 0.35s var(--ease-premium);
}
#globalMessage { top: max(82px, calc(var(--nav-h) + 10px + env(safe-area-inset-top))); right: 24px; }
.music-popup { top: max(76px, calc(var(--nav-h) + 4px + env(safe-area-inset-top))); right: 24px; }

#globalMessage.show, .music-popup.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
#globalMessage.hidden { display: none !important; }

.global-message-icon, .music-popup-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.global-message-icon {
  width: 38px; height: 38px; min-width: 38px; border-radius: 1px;
  background: rgba(212,123,92,0.12); border: 1px solid rgba(212,123,92,0.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--champagne); font-size: 14px; font-weight: 500;
}
.global-message-title, .music-popup-label {
  margin: 0 0 4px; color: var(--champagne); font-family: var(--font-mono);
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.global-message-text, .music-popup-title {
  color: var(--ivory); font-size: 14px; font-weight: 400; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
}
.music-popup-title { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-message-time { margin-top: 8px; color: rgba(255,255,255,0.35); font-size: 10px; }

#closeGlobalMessage, .music-popup-close {
  position: absolute; top: 12px; right: 12px; width: 26px; height: 26px;
  padding: 0; border: 0; background: transparent; color: rgba(255,255,255,0.45);
  font-size: 20px; font-weight: 300; cursor: pointer; border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}
#closeGlobalMessage:hover, .music-popup-close:hover { background: rgba(255,255,255,0.06); color: var(--champagne); }

.music-popup-controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.music-control-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(238,233,221,0.18); border-radius: 1px; background: transparent;
  color: var(--ivory); font-size: 14px; cursor: pointer;
  transition: transform 0.2s var(--ease-premium), background 0.2s ease, border-color 0.2s ease;
}
.music-control-btn:hover { transform: translateY(-2px); background: var(--champagne-glow); border-color: rgba(212, 123, 92, 0.35); }
.music-main-btn { width: 46px; height: 46px; border-color: var(--champagne); background: var(--champagne); color: #171815; font-size: 15px; }

/* Web Popup */
body.fourscenic-popup-open { overflow: hidden; }
.fourscenic-web-popup-overlay {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(7, 8, 11, 0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease-cinematic), visibility 0.35s var(--ease-cinematic);
  overflow-y: auto; overscroll-behavior: contain;
}
.fourscenic-web-popup-overlay.show { opacity: 1; visibility: visible; }
body.light .fourscenic-web-popup-overlay { background: rgba(20, 18, 14, 0.55); }

.fourscenic-web-popup {
  position: relative; width: min(470px, 100%);
  padding: 46px 36px 34px;
  background: #101116;
  border: 0.5px solid rgba(191, 164, 119, 0.28);
  border-radius: 3px; text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  transform: translateY(30px) scale(0.94);
  transition: transform 0.5s var(--ease-premium);
  overflow: hidden;
}
.fourscenic-web-popup-overlay.show .fourscenic-web-popup { transform: translateY(0) scale(1); }
.fourscenic-web-popup::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 80px; height: 2px;
  transform: translateX(-50%); background: var(--champagne); box-shadow: 0 0 15px var(--champagne-glow);
}
.fourscenic-web-popup::after {
  content: ""; position: absolute; width: 180px; height: 180px; top: -110px; right: -90px;
  border-radius: 50%; background: var(--champagne-glow); filter: blur(35px); pointer-events: none; opacity: 0.35;
}
.fourscenic-web-popup-close {
  position: absolute; top: 15px; right: 15px; z-index: 5;
  width: 34px; height: 34px; border: 1px solid rgba(207, 168, 104, 0.18);
  border-radius: 50%; background: rgba(255, 255, 255, 0.04); color: var(--ivory-dim);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: transform 0.3s var(--ease-premium), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.fourscenic-web-popup-close:hover { transform: rotate(90deg); background: var(--champagne-glow); color: var(--champagne); border-color: rgba(207, 168, 104, 0.45); }

.fourscenic-web-popup-icon {
  position: relative; width: 54px; height: 54px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--champagne-glow); border: 1px solid rgba(207, 168, 104, 0.45);
  color: var(--champagne); font-family: var(--font-display); font-size: 25px; font-weight: 600;
}
.fourscenic-web-popup-title {
  position: relative; margin: 0 0 15px; color: var(--ivory);
  font-family: var(--font-display); font-size: clamp(25px, 5vw, 32px);
  line-height: 1.15; font-weight: 500; letter-spacing: -0.015em;
}
.fourscenic-web-popup-title::after {
  content: ""; display: block; width: 35px; height: 1px; margin: 14px auto 0; background: var(--champagne);
}
.fourscenic-web-popup-message {
  position: relative; color: var(--ivory-dim); font-family: var(--font-body);
  font-size: 14px; line-height: 1.8; font-weight: 400; white-space: pre-line;
  word-break: break-word; margin: 0 auto; max-width: 390px;
}
.fourscenic-web-popup-button {
  position: relative; min-width: 155px; margin-top: 28px; padding: 12px 28px;
  border: 1px solid var(--champagne); border-radius: 2px; background: transparent;
  color: var(--champagne); font-family: var(--font-body); font-size: 11px;
  font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-premium), box-shadow 0.3s ease;
}
.fourscenic-web-popup-button:hover {
  background: var(--champagne); color: #080910; transform: translateY(-2px); box-shadow: 0 8px 25px var(--champagne-glow);
}

/* =====================================================
   COMMENTS (GUESTBOOK STYLE)
===================================================== */
:where(.comments-section) button {
  appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0;
  border-radius: 0; background: transparent; font: inherit; color: inherit; cursor: pointer;
}

.comments-section {
  max-width: 1500px; margin: 0 auto;
  padding: clamp(78px, 10vw, 140px) 22px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.11), transparent);
}
.comments-container { max-width: 820px; margin: 0 auto; }

.comments-heading { margin-bottom: 42px; text-align: left; }
.comments-label {
  display: block; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 0.61rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--champagne);
}
.comments-heading h2 {
  margin-top: 8px; font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.6rem); font-weight: 400;
  line-height: 0.94; letter-spacing: -0.035em; color: var(--ivory);
}
.comments-heading p {
  max-width: 480px; margin-top: 14px;
  font-size: 0.88rem; line-height: 1.8; color: var(--ivory-dim);
}

.comment-login, .comment-user, .comment-form {
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  background: rgba(238,233,221,0.025);
}
.comment-login, .comment-user { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.comment-user-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.comment-user-info img { width: 36px; height: 36px; object-fit: cover; border-radius: 1px; filter: grayscale(0.4); }
.comment-user-info strong { display: block; font-size: 0.88rem; font-weight: 500; line-height: 1.3; }
.comment-user-info span { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory-dim); }

.comment-logout, .comment-delete {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ivory-dim); opacity: 0.5;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.comment-logout { padding-bottom: 2px; border-bottom: 1px solid transparent; }
.comment-logout:hover, .comment-delete:hover { color: var(--champagne); opacity: 1; border-bottom-color: var(--champagne); }

.comment-form { margin: 0 0 14px; border-top: 0; overflow: hidden; transition: border-color 0.3s ease; }
.comment-form:focus-within { border-color: rgba(238, 233, 221, 0.32); }
#commentInput {
  display: block; width: 100%; min-height: 132px; padding: 18px;
  border: 0; background: rgba(0,0,0,0.13); color: var(--ivory);
  font-size: 14px !important; line-height: 1.7; resize: vertical;
}
.comment-form-bottom { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; border-top: 1px solid var(--glass-border); }
#commentCounter { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; opacity: 0.5; }

#sendCommentBtn, .google-login-btn {
  padding: 11px 22px; font-family: var(--font-mono); font-size: 0.62rem;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 1px; transition: filter 0.25s ease, opacity 0.25s ease, background 0.3s ease;
}
#sendCommentBtn { color: #171815; background: var(--champagne); }
#sendCommentBtn:hover { filter: brightness(1.12); }
#sendCommentBtn:disabled { opacity: 0.4; filter: none; cursor: not-allowed; }
.google-login-btn { color: var(--ivory); border: 1px solid rgba(238, 233, 221, 0.3); }
.google-login-btn:hover { color: #171815; background: var(--champagne); border-color: var(--champagne); }
body.light .google-login-btn { border-color: rgba(30, 29, 24, 0.35); }
body.light .google-login-btn:hover { color: #fff; }

.comments-list { margin-top: 44px; }
.comments-list-header {
  display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; border-bottom: 1px solid var(--glass-border);
}
.comments-list-header span:last-child { opacity: 0.6; }

.comment-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid rgba(238,233,221,0.12); }
.comment-avatar { flex: 0 0 auto; width: 36px; height: 36px; object-fit: cover; border: 1px solid var(--glass-border); border-radius: 1px; filter: grayscale(0.4); }
.comment-content { min-width: 0; flex: 1; }
.comment-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.comment-name { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.comment-time { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.06em; white-space: nowrap; opacity: 0.5; }
.comment-message { margin-top: 8px; font-size: 0.94rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; color: rgba(233,229,220,0.84); }

.comments-empty, .comments-loading { padding: 40px 0; text-align: left; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; opacity: 0.5; }

/* =====================================================
   FOOTER
===================================================== */
footer {
  margin-top: 0;
  padding: 38px 20px max(38px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-border);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px;
}
.footer-brand, .footer-instagram {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.footer-brand { color: var(--ivory-dim); line-height: 1.8; }
.footer-instagram {
  display: inline-flex; align-items: baseline; gap: 0.55em;
  text-decoration: none; color: var(--ivory); opacity: 0.72;
  border-bottom: 1px solid rgba(238, 233, 221, 0.28);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.footer-instagram::after { content: '↗'; transition: transform 0.35s var(--ease-premium); }
.footer-instagram:hover { color: var(--champagne); border-bottom-color: var(--champagne); opacity: 1; }
.footer-instagram:hover::after { transform: translate(2px, -2px); }

/* =====================================================
   RESPONSIVE SYSTEM (CONSOLIDATED)
===================================================== */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .grid img, .grid img:nth-child(5n + 1), .grid img:nth-child(5n + 2), .grid img:nth-child(5n + 4) { grid-column: span 3; aspect-ratio: 4 / 5; }
  .grid img:nth-child(7n + 1) { grid-column: span 6; aspect-ratio: 16 / 9; }
  #galeri { padding-left: 24px; padding-right: 24px; }
  .comments-container { max-width: 720px; }
}

@media (max-width: 600px) {
  #nav { height: 62px; padding-left: 15px; padding-right: 15px; }
  .logo { font-size: 0.63rem; letter-spacing: 0.16em; }
  .nav-links { gap: 10px; }
  .nav-links a, .toggle { font-size: 0.48rem; letter-spacing: 0.025em; }
  
  .hero { min-height: 570px; height: 92svh; }
  .hero-content { width: calc(100% - 38px); padding: 90px 0 60px; }
  .hero-content h1 { font-size: clamp(4.2rem, 18vw, 6.8rem); line-height: 0.79; letter-spacing: -0.06em; }
  .hero-content p { margin-top: 22px; font-size: 0.54rem; letter-spacing: 0.08em; }
  .hero-content::after { margin-top: 22px; }
  
  #galeri { padding: 82px 14px 74px; }
  #galeri h2 { margin-bottom: 34px; font-size: clamp(3.1rem, 14vw, 4.8rem); }
  #galeri h2::after { margin-top: 22px; }
  
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .grid img, .grid img:nth-child(5n + 1), .grid img:nth-child(5n + 2), .grid img:nth-child(5n + 4), .grid img:nth-child(7n + 1) { grid-column: span 1; aspect-ratio: 4 / 5; }
  .grid img:nth-child(6n + 1) { grid-column: span 2; aspect-ratio: 16 / 10; }
  @media (hover: hover) and (pointer: fine) { .grid img:hover { transform: none !important; } }
  
  .comments-section { padding: 76px 15px; }
  .comments-heading h2 { font-size: clamp(3rem, 13vw, 4.1rem); }
  .comment-login, .comment-user { padding: 15px; flex-direction: column; align-items: flex-start; }
  .comment-item { gap: 12px; padding: 20px 0; }
  .comment-avatar, .comment-user-info img { width: 32px; height: 32px; }
  .comment-top { display: block; }
  .comment-time { display: block; margin-top: 3px; }
  #commentInput { font-size: 16px !important; }
  
  .lightbox { padding: 10px; padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .lightbox img { max-width: 96vw; max-height: 86svh; }
  
  #globalMessage, .music-popup { top: calc(70px + env(safe-area-inset-top)); right: 10px; width: calc(100vw - 20px); }
  .fourscenic-web-popup { width: 100%; max-height: calc(100svh - 24px); overflow-y: auto; padding: 42px 20px 25px; }
  .fourscenic-web-popup-button { width: 100%; min-height: 44px; }
  
  footer { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 380px) {
  .logo { font-size: 0.55rem; letter-spacing: 0.12em; }
  .nav-links { gap: 7px; }
  .nav-links a, .toggle { font-size: 0.43rem; }
  .grid { gap: 6px; }
  #globalMessage, .music-popup { right: 8px; width: calc(100vw - 16px); }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 420px; height: 100svh; }
  .hero-content { padding-top: 70px; padding-bottom: 40px; }
  .hero-content h1 { font-size: clamp(2.2rem, 9vw, 4.5rem); }
  .hero-content p { margin-top: 0.5rem; }
  .hero-content::after { height: 30px; margin-top: 1rem; }
  .slide-dots { bottom: 0.8rem; }
}

@media (hover: none) and (pointer: coarse) {
  .grid img:hover { transform: none !important; filter: saturate(0.82) contrast(1.02); }
  .nav-links a::after, .toggle::after { display: none; }
  .google-login-btn, #sendCommentBtn, .fourscenic-web-popup-button, .comment-delete, .comment-logout { min-height: 42px; }
}

/* =====================================================
   ADVANCED FEATURES & ACCESSIBILITY
===================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  body::after { display: none; }
  .lightbox.open img { animation: none !important; opacity: 1; transform: none; filter: none; clip-path: none; }
}

/* Lenis Smooth Scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html:not(.lenis) { scroll-behavior: smooth; }

/* FSC Slow Scroll Reveal */
.grid img.fsc-pre {
  opacity: 0; translate: 0 80px; scale: 1.08;
  filter: blur(10px) saturate(0.6); clip-path: inset(0 0 22% 0);
  will-change: opacity, translate, scale, filter, clip-path;
}
.grid img.fsc-in {
  transition: opacity 1.9s cubic-bezier(0.2, 0.7, 0.2, 1), translate 2.2s cubic-bezier(0.2, 0.7, 0.2, 1),
              scale 2.4s cubic-bezier(0.2, 0.7, 0.2, 1), filter 1.8s ease, clip-path 2.2s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.75s ease;
  transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s, 0s;
}
.grid img.fsc-in:not(.fsc-pre) { opacity: 1; translate: 0 0; scale: 1; clip-path: inset(0 0 0 0); }
.grid img.fsc-done { clip-path: none; will-change: auto; transition-delay: 0s; }

/* Lite Mode (Low-end devices) */
.fsc-lite body::after { display: none; }
.fsc-lite .cursor-glow { display: none; }
.fsc-lite #nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(23,24,21,0.96); }
.fsc-lite body.light #nav.scrolled { background: rgba(233,228,216,0.97); }
.fsc-lite .hero-slide img { animation: none; transform: none; filter: none; }
.fsc-lite .hero-overlay { background: linear-gradient(180deg, rgba(10,11,9,0.5), rgba(10,11,9,0.78)); }
.fsc-lite .grid img { filter: none; box-shadow: none; }
.fsc-lite .grid img.fsc-pre { opacity: 0; translate: 0 36px; scale: 1; filter: none; clip-path: none; will-change: opacity, translate; }
.fsc-lite .grid img.fsc-in { transition: opacity 1.1s cubic-bezier(0.2,0.7,0.2,1), translate 1.2s cubic-bezier(0.2,0.7,0.2,1); transition-delay: var(--d, 0s), var(--d, 0s); }
.fsc-lite .grid img.fsc-in:not(.fsc-pre) { clip-path: none; }