/* ==================== RESET & BASE ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0b0d;
  --bg-soft: #121214;
  --cream: #f6efe4;
  --cream-dim: #e8ddc9;
  --gold: #c9a86a;
  --gold-light: #e2c690;
  --text: #f3efe8;
  --text-dim: #a8a29b;
  --serif: 'Playfair Display', serif;
  --script: 'Cormorant Garamond', serif;
  --sans: 'Inter', sans-serif;
  --ease: cubic-bezier(.65,0,.35,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .72rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* ==================== SITE (hidden until envelope opens) ==================== */
.site {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ease);
}
.site.visible {
  opacity: 1;
  visibility: visible;
}
body.locked { overflow: hidden; height: 100vh; }

/* ==================== INTRO / ENVELOPE ==================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #17151b 0%, #0b0b0d 70%);
  transition: opacity 1s var(--ease), visibility 1s var(--ease);
}
.intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bokeh-field { position: absolute; inset: 0; overflow: hidden; }
.bokeh-field span {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(201,168,106,.55), rgba(201,168,106,0) 70%);
  filter: blur(1px);
  animation: float 14s ease-in-out infinite;
  opacity: .5;
}
.bokeh-field span:nth-child(1){ width:120px; height:120px; top:10%; left:8%; animation-delay:0s; }
.bokeh-field span:nth-child(2){ width:60px; height:60px; top:70%; left:15%; animation-delay:2s; }
.bokeh-field span:nth-child(3){ width:180px; height:180px; top:60%; left:80%; animation-delay:1s; }
.bokeh-field span:nth-child(4){ width:80px; height:80px; top:20%; left:85%; animation-delay:3s; }
.bokeh-field span:nth-child(5){ width:40px; height:40px; top:85%; left:50%; animation-delay:4s; }
.bokeh-field span:nth-child(6){ width:100px; height:100px; top:5%; left:55%; animation-delay:2.5s; }
.bokeh-field span:nth-child(7){ width:50px; height:50px; top:40%; left:5%; animation-delay:5s; }
.bokeh-field span:nth-child(8){ width:150px; height:150px; top:35%; left:65%; animation-delay:1.5s; }

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); opacity: .4; }
  50% { transform: translate(15px,-25px) scale(1.15); opacity: .7; }
}

.intro-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  perspective: 2400px;
}

.intro-eyebrow {
  font-family: var(--script);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-light);
  letter-spacing: .04em;
  opacity: 0;
  animation: fadeUp 1s var(--ease) .3s forwards;
}

.intro-hint {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.1s forwards, pulse 2.4s ease-in-out 1.1s infinite;
}

.intro.opened .intro-hint,
.intro.opened .intro-eyebrow { animation: none; opacity: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

/* Envelope */
.envelope {
  position: relative;
  width: 320px;
  height: 220px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(.96);
  animation: fadeUp 1s var(--ease) .6s forwards;
}
@media (max-width: 480px) {
  .envelope { width: 260px; height: 180px; }
}

.envelope-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -30px;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 75%);
  filter: blur(4px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.envelope-body {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, #ede3d0, #dccfae);
  border-radius: 4px;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.05);
}

/* Letter that slides out */
.letter {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 8%;
  height: 84%;
  background: linear-gradient(160deg, #fffdf8, #f4ecdc);
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(201,168,106,.25);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(6%);
  transition: transform 1s var(--ease) .35s;
}
.letter-inner {
  text-align: center;
  padding: 1rem;
}
.letter-monogram {
  display: inline-block;
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  line-height: 62px;
  margin-bottom: .9rem;
}
.letter-script {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: #2a2621;
}
.letter-sub {
  font-family: var(--sans);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: #8a7f6a;
  margin-top: .2rem;
}
.letter-line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto;
}
.letter-caption {
  font-family: var(--script);
  font-style: italic;
  font-size: .95rem;
  color: #8a7f6a;
}

/* Pocket (front lower triangle) sits above letter bottom but below flap */
.envelope-pocket {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 65%;
  background: linear-gradient(155deg, #f2e8d6, #e3d5b6);
  clip-path: polygon(0 100%, 100% 100%, 100% 15%, 50% 55%, 0 15%);
  z-index: 3;
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

/* Flap (top triangle) */
.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 62%;
  background: linear-gradient(200deg, #f4ead7, #e2d2ac);
  clip-path: polygon(0 0, 100% 0, 50% 92%);
  transform-origin: top center;
  transform-style: preserve-3d;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6%;
  transition: transform 1.1s var(--ease);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.05);
}

.wax-seal {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b3462f, #7c2415 75%);
  box-shadow: 0 3px 8px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.wax-seal span {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: rgba(255,235,210,.85);
}

/* ============ OPEN STATE ============ */
.envelope.open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}
.envelope.open .wax-seal {
  opacity: 0;
  transform: scale(.4);
}
.envelope.open .letter {
  transform: translateY(-78%);
  transition: transform 1.1s var(--ease) .5s;
}
.envelope.open .envelope-shadow {
  opacity: .2;
  transform: scaleX(1.15);
}

.intro.opened .intro-content { pointer-events: none; }

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
  transition: background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s var(--ease);
}
.header.scrolled {
  background: rgba(11,11,13,.8);
  backdrop-filter: blur(14px);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .02em;
}
.logo span { color: var(--gold); }

.nav { display: flex; gap: 2.4rem; }
.nav a {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  position: relative;
  padding-bottom: 4px;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .35s var(--ease);
}
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 200;
}
.nav-toggle span {
  height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0;
    background: #0e0e10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    transform: translateX(100%);
    transition: transform .5s var(--ease);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 2.2rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  border-radius: 2px;
  transition: all .4s var(--ease);
}
.btn-primary {
  background: var(--gold);
  color: #1a1408;
  font-weight: 500;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.3);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ==================== HERO ==================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,9,.55) 0%, rgba(8,8,9,.35) 45%, rgba(8,8,9,.85) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 0 1.5rem; }
.hero-content .eyebrow { justify-content: center; display: flex; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.12;
  margin-bottom: 1.4rem;
}
.hero-text {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2.4rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 8px; }
}

/* ==================== REVEAL ANIM ==================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==================== ABOUT ==================== */
.about {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: 9rem clamp(1.5rem, 6vw, 6rem);
  background: var(--bg-soft);
}
.about-image { position: relative; }
.about-image img { border-radius: 4px; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-frame {
  position: absolute;
  top: 20px; left: 20px;
  right: -20px; bottom: -20px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  z-index: -1;
}
.about-content h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 1.4rem;
  line-height: 1.25;
}
.about-content p {
  color: var(--text-dim);
  line-height: 1.85;
  max-width: 520px;
}
.stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.6rem; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold);
}
.stat-label {
  font-size: .78rem;
  color: var(--text-dim);
  letter-spacing: .02em;
}

/* ==================== PORTFOLIO ==================== */
.portfolio { padding: 9rem clamp(1.5rem, 6vw, 6rem); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.filters {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 3.2rem;
}
.filter-btn {
  padding: .6rem 1.4rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 30px;
  color: var(--text-dim);
  transition: all .35s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: #1a1408; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 4/5;
  transition: transform .5s var(--ease), opacity .4s ease;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  font-family: var(--serif);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all .4s var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery-item figcaption span {
  display: block;
  font-family: var(--sans);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: .3rem;
}
.gallery-item.hide { display: none; }

/* ==================== TESTIMONIALS ==================== */
.testimonials { padding: 8rem clamp(1.5rem, 6vw, 6rem); background: var(--bg-soft); text-align: center; }
.testi-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 800px) { .testi-track { grid-template-columns: 1fr; } }
.testi-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 2.2rem 1.8rem;
  text-align: left;
}
.testi-card p {
  font-family: var(--script);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--cream-dim);
  margin-bottom: 1.4rem;
}
.testi-name { font-size: .8rem; color: var(--gold); letter-spacing: .04em; }

/* ==================== CONTACT ==================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 9rem clamp(1.5rem, 6vw, 6rem);
}
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-info h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.25;
  margin-bottom: 1.4rem;
}
.contact-text { color: var(--text-dim); line-height: 1.8; max-width: 460px; margin-bottom: 2.2rem; }
.contact-list li {
  display: flex;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .95rem;
}
.contact-list li span {
  min-width: 100px;
  color: var(--gold);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  padding-top: .15rem;
}
.socials { display: flex; gap: 1.6rem; margin-top: 2.2rem; }
.socials a {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: all .3s var(--ease);
}
.socials a:hover { color: var(--gold); border-color: var(--gold); }

.contact-form { display: flex; flex-direction: column; gap: 1.6rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding: .8rem 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  resize: none;
  transition: border-color .3s var(--ease);
}
.field textarea { min-height: 90px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field label {
  position: absolute;
  left: 0; top: .8rem;
  color: var(--text-dim);
  font-size: 1rem;
  pointer-events: none;
  transition: all .25s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -.9rem;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-form .btn { align-self: flex-start; margin-top: .5rem; }
.form-note { font-size: .85rem; color: var(--gold); min-height: 1.2em; }

/* ==================== FOOTER ==================== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.4rem clamp(1.5rem, 6vw, 6rem);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .8rem;
  color: var(--text-dim);
}
@media (max-width: 560px) { .footer { flex-direction: column; gap: 1rem; text-align: center; } }

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6,6,7,.94);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: 4px;
  transform: scale(.92);
  transition: transform .4s var(--ease);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 2rem; right: 2rem;
  font-size: 2.2rem;
  color: var(--text);
  line-height: 1;
}
.lightbox-close:hover { color: var(--gold); }
