*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --cream: #faf7f2;
  --dark: #1a1714;
  --warm: #a0897a;
  --accent: #8b6f5e;
  --gold: #c4a882;
  --light-warm: #ede8e1;
  --text: #2c2520;
  --text-muted: #7a7068;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-user-select: none;
  user-select: none;
}
p,
h1,
h2,
h3,
h4,
span,
a,
li,
.about-text,
.lb-info {
  -webkit-user-select: text;
  user-select: text;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--warm);
  border-radius: 3px;
}
.pw {
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.pw img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.pw::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}
.wm {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wm::before {
  content: "RANITA BERA";
  font-family: var(--serif);
  font-size: 3rem;
  letter-spacing: 0.5em;
  color: rgba(0, 0, 0, 0.045);
  transform: rotate(-30deg);
  white-space: nowrap;
  position: absolute;
}
.gallery-overlay {
  z-index: 3;
}
.preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.8s,
    visibility 0.8s;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-text {
  font-family: var(--serif);
  color: var(--cream);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 0.15em;
  animation: fadeInUp 1s ease;
}
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition:
    background 0.4s,
    backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(160, 137, 122, 0.15);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-logo span {
  font-style: italic;
  color: var(--warm);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover {
  color: var(--dark);
}
.nav-links a:hover::after {
  width: 100%;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--dark);
  display: block;
}
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 4rem;
}
.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s 1.2s forwards;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s 1.4s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.8;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUp 0.8s 1.6s forwards;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.9rem 2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.4s;
  opacity: 0;
  animation: fadeInUp 0.8s 1.8s forwards;
  background: transparent;
}
.hero-cta:hover {
  background: var(--accent);
  color: var(--cream);
}
.hero-images {
  position: relative;
  overflow: hidden;
}
.hero-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  gap: 3px;
}
.hero-img-grid .pw {
  overflow: hidden;
}
.hero-img-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeIn 1s forwards;
}
.hero-img-grid .pw:nth-child(1) img {
  animation-delay: 1.3s;
}
.hero-img-grid .pw:nth-child(2) img {
  animation-delay: 1.5s;
}
.hero-img-grid .pw:nth-child(3) img {
  animation-delay: 1.7s;
}
.hero-img-grid .pw:nth-child(4) img {
  animation-delay: 1.9s;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm);
  opacity: 0;
  animation: fadeInUp 0.8s 2.2s forwards;
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--warm);
  animation: scrollPulse 2s infinite;
}
.section {
  padding: 6rem 4rem;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--dark);
}
.section-line {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem auto 0;
}
.about {
  background: var(--light-warm);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-visual {
  position: relative;
}
.about-visual .pw img {
  width: 100%;
  border-radius: 2px;
}
.about-visual::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  z-index: -1;
}
.about-text h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--dark);
}
.about-text p {
  color: var(--text-muted);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(160, 137, 122, 0.25);
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--accent);
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--warm);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: var(--cream);
  border-color: var(--accent);
}
.gallery-grid {
  columns: 3;
  column-gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  cursor: pointer;
  background: #f0ede7;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(26, 23, 20, 0.85));
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  z-index: 3;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay h4 {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.gallery-overlay p {
  color: rgba(250, 247, 242, 0.7);
  font-size: 0.75rem;
}
.gallery-overlay .tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.gallery-overlay .tag {
  font-size: 0.6rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(250, 247, 242, 0.35);
  color: rgba(250, 247, 242, 0.8);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 23, 20, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active {
  display: flex;
}
.lb-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(250, 247, 242, 0.3);
  background: transparent;
  color: var(--cream);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.lb-close:hover {
  background: rgba(250, 247, 242, 0.1);
}
.lb-content {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  gap: 3rem;
  align-items: center;
}
.lb-content .pw {
  max-height: 80vh;
  max-width: 60vw;
  display: flex;
}
.lb-content .pw img {
  max-height: 80vh;
  max-width: 60vw;
  object-fit: contain;
}
.lb-content .wm::before {
  font-size: 2rem;
}
.lb-info {
  color: var(--cream);
  min-width: 220px;
}
.lb-info h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.lb-info .detail {
  font-size: 0.8rem;
  color: rgba(250, 247, 242, 0.6);
  line-height: 2;
}
.lb-info .detail strong {
  color: rgba(250, 247, 242, 0.9);
  font-weight: 500;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(250, 247, 242, 0.3);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.lb-nav:hover {
  background: rgba(250, 247, 242, 0.1);
}
.lb-prev {
  left: 1.5rem;
}
.lb-next {
  right: 1.5rem;
}
.techniques {
  background: var(--dark);
  color: var(--cream);
}
.techniques .section-eyebrow {
  color: var(--gold);
}
.techniques .section-title {
  color: var(--cream);
}
.techniques .section-line {
  background: var(--gold);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.tech-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(196, 168, 130, 0.2);
  transition: all 0.4s;
}
.tech-card:hover {
  border-color: var(--gold);
  background: rgba(196, 168, 130, 0.05);
}
.tech-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--gold);
}
.tech-card h4 {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--cream);
}
.tech-card p {
  font-size: 0.78rem;
  color: rgba(250, 247, 242, 0.5);
  line-height: 1.6;
  font-weight: 300;
}
.contact {
  text-align: center;
  padding: 6rem 4rem 4rem;
}
.contact-cta {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--dark);
  margin-bottom: 1rem;
}
.contact-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-weight: 300;
}
.contact-email {
  display: inline-block;
  padding: 0.9rem 3rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.4s;
  background: transparent;
}
.contact-email:hover {
  background: var(--accent);
  color: var(--cream);
}
footer {
  background: var(--dark);
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(250, 247, 242, 0.4);
  font-size: 0.75rem;
}
footer .fl {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 1rem;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s,
    transform 0.8s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content {
    padding: 7rem 2rem 3rem;
  }
  .hero-images {
    height: 50vh;
  }
  .section {
    padding: 4rem 2rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gallery-grid {
    columns: 2;
  }
  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }
  nav {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .nav-links.show {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 150;
  }
  .hamburger {
    display: flex;
  }
  .lb-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  .lb-content .pw {
    max-width: 90vw;
  }
  .lb-content .pw img {
    max-width: 90vw;
    max-height: 60vh;
  }
}
@media (max-width: 550px) {
  .gallery-grid {
    columns: 1;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    gap: 1.5rem;
  }
  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
