@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Montserrat:wght@200;300;400&display=swap');

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

:root {
  --bg:     #0a0a0a;
  --bg2:    #111111;
  --text:   #e8e2d9;
  --muted:  #6b6560;
  --accent: #c9a96e;
  --line:   rgba(201,169,110,0.18);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  overflow-x: hidden;
  cursor: none;
}

/* ── Cursor ── */
.cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid rgba(201,169,110,.4); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, opacity .3s;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.8rem 4rem;
  background: linear-gradient(to bottom, rgba(10,10,10,.96), transparent);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 300; letter-spacing: .12em;
  color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 0; list-style: none; position: relative; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-size: .6rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: .5rem 1.2rem; display: block;
  transition: color .3s;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--accent); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: rgba(12,12,12,.97);
  border: 1px solid var(--line);
  min-width: 180px;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.nav-links > li:hover .dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.dropdown a {
  display: block; padding: .85rem 1.4rem;
  font-size: .58rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid rgba(201,169,110,.08);
  transition: color .2s, background .2s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { color: var(--accent); background: rgba(201,169,110,.04); }

/* ── Hero ── */
.hero {
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139,111,71,.09) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,169,110,.05) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,169,110,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,.025) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-content { text-align: center; position: relative; z-index: 2; }
.hero-eyebrow {
  font-size: .58rem; letter-spacing: .45em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
  animation: fadeUp 1.4s .15s cubic-bezier(.16,1,.3,1) both;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem,10vw,9.5rem);
  font-weight: 300; line-height: .88; letter-spacing: -.02em;
  animation: fadeUp 1.4s .3s cubic-bezier(.16,1,.3,1) both;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-subtitle {
  margin-top: 2rem; font-size: .65rem; letter-spacing: .35em;
  text-transform: uppercase; color: var(--muted);
  animation: fadeUp 1.4s .5s cubic-bezier(.16,1,.3,1) both;
}
.hero-scroll {
  position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  color: var(--muted); font-size: .52rem; letter-spacing: .3em; text-transform: uppercase;
  animation: fadeUp 1.4s 1s cubic-bezier(.16,1,.3,1) both;
}
.hero-scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity:.3; transform:scaleY(1); }
  50%      { opacity:1;  transform:scaleY(.6) translateY(8px); }
}

/* ── Page Hero ── */
.page-hero {
  height: 55vh; min-height: 380px;
  display: flex; align-items: flex-end;
  padding: 0 4rem 4.5rem;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(139,111,71,.1) 0%, transparent 65%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,169,110,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,110,.022) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-hero-content {
  position: relative; z-index: 2;
  animation: fadeUp 1.2s cubic-bezier(.16,1,.3,1) both;
}
.page-hero-eyebrow {
  font-size: .58rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem,7vw,6.5rem);
  font-weight: 300; line-height: .92; letter-spacing: -.02em;
}
.page-hero-title em { font-style: italic; color: var(--accent); }
.page-hero-desc {
  margin-top: 1.5rem; max-width: 500px;
  font-size: .72rem; line-height: 1.9; color: var(--muted); letter-spacing: .04em;
}

/* ── Back link ── */
.back-link {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .58rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 2rem 4rem 0; transition: color .3s;
}
.back-link:hover { color: var(--accent); }
.back-link::before { content: '←'; font-size: .8rem; }

/* ── Section ── */
.section { padding: 6rem 0; }
.section-header {
  display: flex; align-items: center; gap: 2rem;
  padding: 0 4rem 4rem;
}
.section-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem; color: rgba(201,169,110,.07);
  line-height: 1; font-weight: 300; user-select: none;
}
.section-eyebrow {
  font-size: .58rem; letter-spacing: .35em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .4rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem,4vw,3.5rem);
  font-weight: 300; letter-spacing: -.01em; line-height: 1;
}

/* ── Divider ── */
.divider {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 4rem; margin-bottom: 3rem;
}
.divider-line { flex: 1; height: 1px; background: var(--line); }
.divider-dot  { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }

/* ── Masonry Start Grid (10 items) ── */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 68px;
  gap: 4px; padding: 0 4rem;
}
.masonry-grid .theme-card:nth-child(1)  { grid-column:1/7;   grid-row:1/7; }
.masonry-grid .theme-card:nth-child(2)  { grid-column:7/10;  grid-row:1/5; }
.masonry-grid .theme-card:nth-child(3)  { grid-column:10/13; grid-row:1/5; }
.masonry-grid .theme-card:nth-child(4)  { grid-column:7/10;  grid-row:5/9; }
.masonry-grid .theme-card:nth-child(5)  { grid-column:10/13; grid-row:5/9; }
.masonry-grid .theme-card:nth-child(6)  { grid-column:1/5;   grid-row:7/12; }
.masonry-grid .theme-card:nth-child(7)  { grid-column:5/9;   grid-row:7/12; }
.masonry-grid .theme-card:nth-child(8)  { grid-column:9/13;  grid-row:9/13; }
.masonry-grid .theme-card:nth-child(9)  { grid-column:1/5;   grid-row:12/16; }
.masonry-grid .theme-card:nth-child(10) { grid-column:5/9;   grid-row:12/16; }

/* ── Theme Card ── */
.theme-card {
  position: relative; overflow: hidden;
  background: #161616; cursor: none;
  text-decoration: none; display: block;
}
.theme-card img {
  width:100%; height:100%; object-fit:cover; display:block;
  transition: transform .9s cubic-bezier(.25,.46,.45,.94), filter .8s ease;
  filter: brightness(.72) saturate(.8);
}
.theme-card:hover img { transform:scale(1.07); filter:brightness(.88) saturate(1.05); }
.theme-card-overlay {
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.05) 55%, transparent 100%);
}
.theme-card-content {
  position:absolute; bottom:0; left:0; right:0;
  padding:1.8rem 1.6rem;
}
.theme-card-label {
  font-size:.52rem; letter-spacing:.35em; text-transform:uppercase;
  color:var(--accent); margin-bottom:.4rem;
}
.theme-card-title {
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(1.2rem,2.2vw,2rem);
  font-weight:300; color:var(--text); line-height:1;
}
.theme-card-arrow {
  display:inline-block; margin-top:.6rem;
  font-size:.55rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--muted); transition:color .3s, transform .3s;
}
.theme-card:hover .theme-card-arrow { color:var(--accent); transform:translateX(5px); }

/* ── Gallery Grid (20 photos) ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px; padding: 0 4rem;
}
.gallery-grid .photo-item { aspect-ratio: 3/2; }
.gallery-grid .photo-item:nth-child(5n+1) { grid-column: span 2; aspect-ratio: 16/9; }

/* ── Portrait Grid ── */
.portrait-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px; padding: 0 4rem;
}
.portrait-grid .photo-item { aspect-ratio: 2/3; }
.portrait-grid .photo-item:first-child { grid-column: span 2; aspect-ratio: 4/3; }

/* ── Photo Item ── */
.photo-item {
  position: relative; overflow: hidden;
  background: #161616; cursor: none;
}
.photo-item img {
  width:100%; height:100%; object-fit:cover; display:block;
  transition: transform .8s cubic-bezier(.25,.46,.45,.94), filter .7s ease;
  filter: brightness(.85) saturate(.9);
}
.photo-item:hover img { transform:scale(1.06); filter:brightness(1) saturate(1.05); }
.photo-overlay {
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 50%);
  opacity:0; transition:opacity .5s;
  display:flex; align-items:flex-end; padding:1.2rem;
}
.photo-item:hover .photo-overlay { opacity:1; }
.photo-caption {
  font-size:.55rem; letter-spacing:.2em;
  text-transform:uppercase; color:rgba(232,226,217,.75);
}

/* Placeholder */
.ph {
  position:absolute; inset:0;
  display:none; flex-direction:column;
  align-items:center; justify-content:center; gap:.5rem;
  background: linear-gradient(135deg,#131313,#1a1a1a);
  border: 1px dashed rgba(201,169,110,.1);
  color:#2e2b28; font-size:.52rem;
  letter-spacing:.2em; text-transform:uppercase;
}

/* ── Category Subnav ── */
.subnav {
  display:flex; gap:0; padding:0 4rem;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin-bottom:4px; overflow-x:auto;
}
.subnav a {
  font-size:.58rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--muted); text-decoration:none;
  padding:1rem 1.6rem; border-right:1px solid var(--line);
  white-space:nowrap; transition:color .3s, background .3s;
}
.subnav a:last-child { border-right:none; }
.subnav a:hover, .subnav a.active { color:var(--accent); background:rgba(201,169,110,.04); }

/* ── Lightbox ── */
.lightbox {
  position:fixed; inset:0; background:rgba(0,0,0,.97);
  z-index:1000; display:none; align-items:center; justify-content:center;
}
.lightbox.active { display:flex; }
.lightbox img { max-width:90vw; max-height:90vh; object-fit:contain; border:1px solid rgba(201,169,110,.08); }
.lightbox-close {
  position:absolute; top:2rem; right:2rem;
  background:none; border:none; color:var(--muted);
  font-size:1.5rem; cursor:none; padding:.5rem; transition:color .2s;
}
.lightbox-close:hover { color:var(--accent); }
.lightbox-prev, .lightbox-next {
  position:absolute; top:50%; transform:translateY(-50%);
  background:none; border:none; color:var(--muted);
  font-size:2.5rem; cursor:none; padding:1rem; transition:color .2s;
}
.lightbox-prev { left:1.5rem; }
.lightbox-next { right:1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { color:var(--accent); }

/* ── Footer ── */
footer {
  padding:4rem 4rem 2.5rem;
  display:flex; align-items:center; justify-content:space-between;
  border-top:1px solid var(--line); margin-top:4rem;
}
.footer-logo {
  font-family:'Cormorant Garamond',serif;
  font-size:1.1rem; font-weight:300; letter-spacing:.12em; color:var(--muted);
}
.footer-logo span { color:var(--accent); }
.footer-copy { font-size:.58rem; letter-spacing:.2em; color:var(--muted); text-transform:uppercase; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(35px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-up { opacity:0; transform:translateY(28px); transition:opacity .9s ease, transform .9s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ── Responsive ── */
@media (max-width:900px) {
  nav { padding:1.4rem 1.5rem; }
  .nav-links > li > a { padding:.5rem .8rem; font-size:.52rem; }
  .page-hero, .back-link { padding-left:1.5rem; padding-right:1.5rem; }
  .masonry-grid { grid-template-columns:repeat(2,1fr); grid-auto-rows:170px; padding:0 1.5rem; }
  .masonry-grid .theme-card { grid-column:auto!important; grid-row:auto!important; }
  .gallery-grid { grid-template-columns:repeat(2,1fr); padding:0 1.5rem; }
  .gallery-grid .photo-item:nth-child(5n+1) { grid-column:span 2; }
  .portrait-grid { grid-template-columns:repeat(2,1fr); padding:0 1.5rem; }
  .section-header { padding:0 1.5rem 3rem; }
  .divider, .subnav { padding-left:1.5rem; padding-right:1.5rem; }
  footer { flex-direction:column; gap:1rem; padding:2.5rem 1.5rem; text-align:center; }
}
