*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-muted: #999;
  --accent: #555555;
}

html {
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  opacity: 0.5;
}

::selection {
  background: var(--text-primary);
  color: var(--bg);
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
}
.site-header.visible {
  opacity: 1;
  pointer-events: auto;
}

.site-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.site-name:hover {
  opacity: 1;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  background: none;
  border: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
}
.nav-link:hover {
  color: var(--text-primary);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--text-primary);
}
.nav-link.active::after {
  width: 100%;
}

/* ── Home Screen ────────────────────────────────────────── */
.home-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.home-words {
  display: flex;
  gap: 3.5rem;
}

.home-word {
  background: none;
  border: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
}
.home-word::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--text-primary);
}
.home-word:hover {
  color: var(--text-muted);
}
.home-word:hover::after {
  width: 100%;
  left: 0;
}

/* ── Panels ─────────────────────────────────────────────── */
.panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
}
.panel.active {
  opacity: 1;
  pointer-events: auto;
}

.panel-inner {
  flex: 1;
  overflow-y: auto;
  padding: 100px 48px 60px;
}

/* ── Text Pages ─────────────────────────────────────────── */
.text-page {
  max-width: 480px;
  margin: 0 auto;
}

.text-content p {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-wrap: pretty;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.text-content a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  padding-bottom: 1px;
}
.text-content a:hover {
  opacity: 1;
  border-color: var(--text-primary);
}

.about-link {
  background: none;
  border: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-wrap: pretty;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  padding-bottom: 1px;
  cursor: pointer;
}
.about-link:hover {
  border-color: var(--text-primary);
}

/* ── Lightbox ──────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 28px;
  left: 28px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 310;
  line-height: 1;
}
.lightbox-close:hover {
  color: var(--text-primary);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 16px;
  line-height: 1;
  z-index: 310;
}
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }

.lightbox-content {
  max-width: 55vw;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}
.lightbox-spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0,0,0,0.08);
  border-top-color: var(--text-muted);
  border-radius: 50%;
  display: none;
}
.lightbox-spinner.active { display: block; }

.lightbox-counter {
  position: absolute;
  bottom: 28px;
  right: 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 310;
}

.lightbox-meta {
  text-align: center;
  padding: 28px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lightbox-meta .meta-title {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lightbox-meta .meta-separator {
  width: 40px;
  height: 1px;
  background: rgba(26, 26, 26, 0.1);
  margin: 0 auto 10px;
}
.lightbox-meta .meta-details {
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 2;
}
.meta-enquire {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.meta-enquire:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  opacity: 1;
}

/* ── Mobile Toggle ─────────────────────────────────────── */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 32px;
  height: 32px;
  position: relative;
}
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: 6px;
}
.mobile-toggle span:nth-child(1) { top: 10px; }
.mobile-toggle span:nth-child(2) { top: 15px; }
.mobile-toggle span:nth-child(3) { top: 20px; }

.mobile-toggle.active span:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
}

/* ── Mobile Menu ───────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: var(--bg);
  z-index: 450;
  transform: translateX(100%);
  box-shadow: -4px 0 20px rgba(0,0,0,0.05);
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-inner {
  padding: 80px 32px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-link {
  background: none;
  border: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mobile-nav-link:hover {
  color: var(--text-primary);
}
.mobile-nav-link.active {
  color: var(--text-primary);
}

.mobile-social {
  margin-top: auto;
  padding: 24px 0;
}
.mobile-social a {
  color: var(--text-muted);
}
.mobile-social a:hover {
  color: var(--text-primary);
}

.mobile-footer {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b0b0b0;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* ── Responsive ────────────────────────────────────────── */
.site-nav { display: none; }
.mobile-toggle { display: block; }

@media (max-width: 768px) {
  .site-header { padding: 16px 20px; }
  .site-name { font-size: 0.85rem; }
  .home-words { gap: 2rem; }
  .home-word { font-size: 0.85rem; }
  .panel-inner { padding: 80px 24px 40px; }
  .lightbox-content { max-width: 90vw; max-height: 65vh; }
  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 20px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-meta { padding: 16px; font-size: 0.85rem; }
  .lightbox-counter { bottom: 16px; right: 16px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .home-words { flex-direction: column; gap: 1.5rem; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
