/* ============================================
   NIANNIAN — Portrait Photography
   Theme: Deep Grey × Rose Gold Luxury
   ============================================ */

:root {
  --bg:          #141414;
  --bg-2:        #1c1c1c;
  --bg-3:        #222222;
  --rose:        #c9956c;
  --rose-light:  #e0b89a;
  --rose-dark:   #a87550;
  --gold:        #d4a96a;
  --text:        #e8e0d8;
  --text-muted:  #8a827a;
  --text-dim:    #5a5450;
  --white:       #f5f0eb;
  --border:      rgba(201,149,108,0.18);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Josefin Sans', sans-serif;
  --transition:   0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.04em;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- Grain Overlay ---- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.032;
  pointer-events: none;
  z-index: 9999;
  animation: grainShift 0.5s steps(1) infinite;
}
@keyframes grainShift {
  0%  { transform: translate(0,0); }
  20% { transform: translate(-3%,-4%); }
  40% { transform: translate(4%,2%); }
  60% { transform: translate(-2%,5%); }
  80% { transform: translate(5%,-3%); }
  100%{ transform: translate(-4%,1%); }
}

/* ---- Custom Cursor ---- */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--rose);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%,-50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-follower {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(201,149,108,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform 0.12s ease, width 0.3s, height 0.3s;
}
body:has(a:hover) .cursor { width: 12px; height: 12px; background: var(--gold); }
body:has(a:hover) .cursor-follower { width: 48px; height: 48px; border-color: var(--gold); }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  transition: background var(--transition), padding var(--transition);
}
.nav.scrolled {
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(12px);
  padding: 18px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-logo a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--white);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--rose-light); }
.nav-cta {
  padding: 10px 24px;
  border: 1px solid var(--rose);
  color: var(--rose) !important;
  transition: background var(--transition), color var(--transition) !important;
}
.nav-cta:hover {
  background: var(--rose) !important;
  color: var(--bg) !important;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--text);
  transition: var(--transition);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transform: translateX(100%);
  transition: transform var(--transition);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--text);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--rose); }

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.05);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,20,20,0.2) 0%,
    rgba(20,20,20,0.1) 40%,
    rgba(20,20,20,0.7) 75%,
    rgba(20,20,20,0.95) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px 100px;
  max-width: 700px;
  animation: fadeUp 1.2s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 20px;
  animation: fadeUp 1.2s 0.2s ease both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeUp 1.2s 0.35s ease both;
}
.hero-title span { display: block; }
.hero-title em {
  font-style: italic;
  color: var(--rose-light);
}
.hero-sub {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeUp 1.2s 0.5s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 1.2s 0.65s ease both;
}
.hero-scroll {
  position: absolute;
  right: 48px;
  bottom: 100px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeUp 1.2s 1s ease both;
}
.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--rose), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 32px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-outline {
  border: 1px solid rgba(201,149,108,0.4);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--rose);
  color: var(--rose);
  background: rgba(201,149,108,0.06);
}
.btn-gold {
  background: linear-gradient(135deg, var(--rose-dark), var(--gold));
  color: var(--bg);
  font-weight: 400;
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--rose-light));
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(201,149,108,0.3);
}
.btn-text {
  color: var(--rose);
  padding: 0;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  border-bottom: 1px solid transparent;
}
.btn-text:hover { border-bottom-color: var(--rose); }

/* ---- Intro Strip ---- */
.intro-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  background: var(--bg-2);
}
.intro-strip-inner {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.intro-strip-inner span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.intro-strip-inner .dot { color: var(--rose); font-size: 0.5rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Section Common ---- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  line-height: 1.1;
}

/* ---- Featured Gallery ---- */
.featured {
  padding: 100px 60px;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 380px 340px;
  gap: 12px;
  margin-bottom: 50px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.85) saturate(0.9);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.75) saturate(1.1);
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(20,20,20,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.gallery-item-lock {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--rose-light);
}
.gallery-item-free {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.featured-cta { text-align: center; }

/* ---- About Teaser ---- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  overflow: hidden;
}
.about-teaser-img {
  position: relative;
  overflow: hidden;
}
.about-teaser-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.8) saturate(0.85);
  transition: transform 0.8s ease;
}
.about-teaser:hover .about-teaser-img img { transform: scale(1.04); }
.about-teaser-content {
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  border-left: 1px solid var(--border);
}
.about-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.about-teaser-content .section-title { margin-bottom: 30px; }
.about-teaser-content .btn-text { margin-top: 16px; }

/* ---- Pricing Teaser ---- */
.pricing-teaser {
  padding: 100px 60px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.pricing-sub {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 12px;
}
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 48px 36px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.pricing-card:hover {
  border-color: var(--rose);
  transform: translateY(-4px);
}
.featured-card {
  border-color: var(--rose);
  background: linear-gradient(135deg, var(--bg-2), rgba(201,149,108,0.05));
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--rose-dark), var(--gold));
  color: var(--bg);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  white-space: nowrap;
}
.pricing-tier {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 20px;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 30px;
  line-height: 1;
}
.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}
.pricing-features {
  list-style: none;
  margin-bottom: 36px;
  text-align: left;
}
.pricing-features li {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pricing-features li::before {
  content: '◆  ';
  color: var(--rose);
  font-size: 0.5rem;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
}
.whatsapp-float svg {
  width: 26px; height: 26px;
  color: white;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 60px 60px 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--rose); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}
.footer-contact p, .footer-contact a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--rose); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ---- Gallery Page ---- */
.page-hero {
  height: 45vh;
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px 60px;
}
.page-hero-content .section-eyebrow { margin-bottom: 10px; }
.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
}

.gallery-full {
  padding: 80px 60px;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.filter-btn {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--rose);
  color: var(--rose);
  background: rgba(201,149,108,0.06);
}
.masonry-grid {
  columns: 3;
  column-gap: 12px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.7s ease, filter 0.7s ease;
  filter: brightness(0.88) saturate(0.9);
}
.masonry-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.75) saturate(1.1);
}
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,20,20,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.masonry-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 6px;
}
.masonry-status-lock { color: var(--rose-light); font-size: 0.72rem; }
.masonry-status-free { color: var(--gold); font-size: 0.72rem; }

/* ---- About Page ---- */
.about-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}
.about-portrait {
  position: relative;
  overflow: hidden;
}
.about-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(0.85);
}
.about-body {
  padding: 100px 80px;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
}
.about-body .section-title { margin-bottom: 40px; text-align: left; }
.about-body p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--rose);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---- Subscribe Page ---- */
.subscribe-section {
  padding: 100px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.subscribe-section .section-header { margin-bottom: 80px; }
.pricing-cards-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.subscribe-note {
  text-align: center;
  padding: 48px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  margin-bottom: 40px;
}
.subscribe-note p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}
.subscribe-methods {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 1; }
  .about-teaser { grid-template-columns: 1fr; }
  .about-teaser-img { height: 400px; }
  .pricing-cards, .pricing-cards-full { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .masonry-grid { columns: 2; }
  .about-main { grid-template-columns: 1fr; }
  .about-portrait { height: 400px; }
}

@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero-content { padding: 0 24px 80px; }
  .hero-scroll { display: none; }
  .featured { padding: 60px 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .about-teaser-content { padding: 48px 24px; }
  .pricing-teaser { padding: 60px 24px; }
  .gallery-full { padding: 60px 24px; }
  .masonry-grid { columns: 1; }
  .footer { padding: 48px 24px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-hero-content { padding: 0 24px 40px; }
  .about-body { padding: 60px 24px; }
  .subscribe-section { padding: 60px 24px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}
