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

:root {
  --bg:        #080808;
  --bg2:       #0f0f0f;
  --bg-card:   #111111;
  --gold:      #c9a96e;
  --gold-dim:  #8a7249;
  --gold-pale: #e8d5b0;
  --cream:     #f2ede4;
  --muted:     #7a7672;
  --border:    #232323;
  --border-g:  rgba(201,169,110,.25);
  --r:         2px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none !important; }
}

/* CURSOR */
.cursor {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px;
  background: var(--gold); border-radius: 50%; pointer-events: none;
  z-index: 9999; transform: translate(-50%, -50%);
  transition: transform .15s ease, width .3s, height .3s, opacity .3s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px;
  border: 1px solid var(--gold); border-radius: 50%; pointer-events: none;
  z-index: 9998; transform: translate(-50%, -50%);
  transition: transform .35s ease, width .3s, height .3s, opacity .3s;
  opacity: .5;
}
.cursor.active { width: 16px; height: 16px; }
.cursor-ring.active { width: 50px; height: 50px; opacity: .3; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 60px;
  transition: background .4s, padding .4s, backdrop-filter .4s;
}
nav.scrolled {
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(20px);
  padding: 18px 60px;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 500; letter-spacing: .15em;
  color: var(--cream); text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 48px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  transition: color .3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px; background: var(--gold); transition: width .3s;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: transparent; border: 1px solid var(--border-g);
  color: var(--gold) !important; padding: 10px 24px;
  font-size: 11px !important; letter-spacing: .25em !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--bg) !important; }
.nav-cta::after { display: none !important; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span {
  display: block; width: 24px; height: 1px; background: var(--cream);
  margin: 6px 0; transition: all .3s;
}

/* HERO */
#hero {
  position: relative; width: 100%; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(8,8,8,.7) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 0 24px;
}
.hero-badge {
  display: inline-block; font-size: 11px; letter-spacing: .4em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 28px;
  border: 1px solid var(--border-g); padding: 8px 20px;
  opacity: 0; animation: fadeUp .8s .3s forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 300; line-height: .95; letter-spacing: -.02em;
  color: var(--cream); margin-bottom: 24px;
  opacity: 0; animation: fadeUp .9s .5s forwards;
}
.hero-title span { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: 15px; font-weight: 300; color: var(--muted);
  line-height: 1.7; max-width: 480px; margin: 0 auto 44px;
  opacity: 0; animation: fadeUp .9s .7s forwards;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .9s .9s forwards;
}
.btn-primary {
  display: inline-block; background: var(--gold); color: var(--bg);
  padding: 16px 40px; font-size: 11px; letter-spacing: .25em;
  text-transform: uppercase; text-decoration: none; font-weight: 500;
  transition: background .3s, transform .3s;
}
.btn-primary:hover { background: var(--gold-pale); transform: translateY(-2px); }
.btn-outline {
  display: inline-block; border: 1px solid var(--border-g); color: var(--muted);
  padding: 16px 40px; font-size: 11px; letter-spacing: .25em;
  text-transform: uppercase; text-decoration: none; font-weight: 400;
  transition: border-color .3s, color .3s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--cream); }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  animation: fadeUp 1s 1.2s forwards; opacity: 0;
}
.hero-scroll .line {
  width: 1px; height: 50px; background: linear-gradient(to bottom, transparent, var(--gold));
  animation: lineDown 2s 1.5s ease infinite;
}
@keyframes lineDown {
  0%,100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* STATS */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  padding: 60px 40px; text-align: center;
  border-right: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: background .3s;
}
.stat-item:last-child { border-right: none; }
.stat-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,.04) 0%, transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.stat-item:hover::before { opacity: 1; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px; font-weight: 300; line-height: 1;
  color: var(--gold); display: block; letter-spacing: -.03em;
}
.stat-suffix { color: var(--gold); font-size: 40px; }
.stat-label {
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted); margin-top: 12px; display: block;
}

/* SECTION HEADER */
.section-header { text-align: center; margin-bottom: 72px; }
.section-tag {
  display: inline-block; font-size: 11px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300; color: var(--cream); line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--gold-pale); }

/* PROJECTS */
#projects { padding: 120px 60px; }
.filter-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 60px; flex-wrap: wrap;
}
.filter-btn {
  background: none; border: 1px solid var(--border); color: var(--muted);
  padding: 10px 24px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer; transition: all .3s; font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--gold); color: var(--cream); background: rgba(201,169,110,.08);
}
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.project-card {
  position: relative; aspect-ratio: 3/4; overflow: hidden; cursor: pointer;
  background: var(--bg-card);
  transition: transform .01s;
}
.project-card:nth-child(3n+2) { margin-top: 60px; }
.project-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
}
.project-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #111 0%, #1a1510 50%, #111 100%);
  display: flex; align-items: center; justify-content: center;
}
.project-placeholder svg { opacity: .15; }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,.95) 0%, rgba(8,8,8,.3) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px 32px; transform: translateY(20px); transition: transform .5s;
}
.project-card:hover .project-overlay { transform: translateY(0); }
.project-card:hover .project-img { transform: scale(1.06); }
.project-cat {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 400; line-height: 1.2;
  color: var(--cream); margin-bottom: 12px;
}
.project-meta {
  font-size: 12px; color: var(--muted); letter-spacing: .1em;
}
.project-arrow {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px; border: 1px solid rgba(201,169,110,.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s, background .3s;
}
.project-card:hover .project-arrow { opacity: 1; }
.project-arrow:hover { background: var(--gold); }
.project-arrow svg { stroke: var(--gold); }
.project-arrow:hover svg { stroke: var(--bg); }

/* ABOUT */
#about { padding: 120px 60px; }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center;
}
.about-image-wrap { position: relative; }
.about-image-wrap img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
}
.about-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(135deg, #141414 0%, #1e1a12 100%);
  display: flex; align-items: center; justify-content: center;
}
.about-accent {
  position: absolute; bottom: -20px; right: -20px;
  width: 60%; height: 60%; border: 1px solid var(--border-g);
  z-index: -1;
}
.about-badge {
  position: absolute; top: 40px; left: -30px;
  background: var(--gold); color: var(--bg);
  padding: 20px 24px; text-align: center;
}
.about-badge .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px; font-weight: 300; display: block; line-height: 1;
}
.about-badge .lbl { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.about-content { }
.about-text {
  color: var(--muted); font-size: 16px; line-height: 1.9;
  margin: 28px 0 40px;
}
.about-features { display: flex; flex-direction: column; gap: 20px; margin-top: 44px; }
.about-feature {
  display: flex; align-items: flex-start; gap: 20px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.about-feature:last-child { border-bottom: none; }
.about-feature-icon {
  width: 44px; height: 44px; border: 1px solid var(--border-g);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.about-feature-icon svg { stroke: var(--gold); }
.about-feature h4 {
  font-size: 14px; font-weight: 500; color: var(--cream);
  letter-spacing: .05em; margin-bottom: 6px;
}
.about-feature p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* CONTACT */
#contact { padding: 120px 60px; background: var(--bg2); }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 100px;
}
.contact-info { }
.contact-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300; margin-bottom: 28px; color: var(--cream);
}
.contact-info p { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 44px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-detail { display: flex; align-items: flex-start; gap: 16px; }
.contact-detail-icon {
  width: 40px; height: 40px; border: 1px solid var(--border-g);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail-icon svg { stroke: var(--gold); }
.contact-detail-text span {
  display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 4px;
}
.contact-detail-text p { font-size: 14px; color: var(--cream); }
.contact-form { }
.form-group { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label {
  display: block; font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.form-group input, .form-group textarea {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--cream); padding: 16px 20px; font-family: inherit; font-size: 14px;
  font-weight: 300; transition: border-color .3s; resize: none; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold-dim); }
.form-group textarea { height: 140px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.contact-message {
  padding: 16px 20px; margin-bottom: 24px; font-size: 14px; border-left: 3px solid;
}
.contact-message.success { border-color: #4caf50; background: rgba(76,175,80,.1); color: #81c784; }
.contact-message.error { border-color: #ef5350; background: rgba(239,83,80,.1); color: #ef9a9a; }

/* FOOTER */
footer {
  background: #050505; padding: 80px 60px 40px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 60px; border-bottom: 1px solid var(--border);
}
.footer-brand .nav-logo-text { font-size: 24px; margin-bottom: 16px; display: block; }
.footer-brand p { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 280px; }
.footer-col h5 {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color .3s; }
.footer-col ul a:hover { color: var(--cream); }
.footer-social { display: flex; gap: 12px; margin-top: 28px; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; text-decoration: none;
  transition: border-color .3s, color .3s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 40px;
}
.footer-bottom p { color: var(--muted); font-size: 12px; }
.footer-bottom a { color: var(--gold-dim); text-decoration: none; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  max-width: 860px; width: 90%; max-height: 90vh; overflow-y: auto;
  transform: scale(.95); transition: transform .3s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 40px; border-bottom: 1px solid var(--border);
}
.modal-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 400; color: var(--cream);
}
.modal-close {
  background: none; border: none; color: var(--muted); font-size: 24px;
  cursor: pointer; transition: color .3s;
}
.modal-close:hover { color: var(--cream); }
.modal-body { padding: 40px; }
.modal-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 28px; }
.modal-img-placeholder {
  width: 100%; aspect-ratio: 16/9; background: #1a1a1a;
  display: flex; align-items: center; justify-content: center; margin-bottom: 28px;
}
.modal-meta { display: flex; gap: 32px; margin-bottom: 20px; }
.modal-meta span {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
}
.modal-desc { color: var(--muted); font-size: 15px; line-height: 1.8; }

/* MOBILE NAV */
.mobile-nav {
  position: fixed; inset: 0; background: var(--bg); z-index: 99;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { list-style: none; text-align: center; }
.mobile-nav ul li { margin: 20px 0; }
.mobile-nav ul a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px; font-weight: 300; color: var(--cream);
  text-decoration: none; letter-spacing: .05em; transition: color .3s;
}
.mobile-nav ul a:hover { color: var(--gold); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card:nth-child(3n+2) { margin-top: 0; }
  .project-card:nth-child(2n) { margin-top: 60px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  nav { padding: 24px 32px; }
  nav.scrolled { padding: 16px 32px; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 60px; }
  #projects, #about, #contact { padding: 80px 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(n) { margin-top: 0; }
  nav { padding: 20px 24px; }
  footer { padding: 60px 24px 32px; }
  .footer-top { grid-template-columns: 1fr; }
}
