/* ── VARIABLES ───────────────────────────────────────────────── */
:root {
  --bg:       #0b0b0b;
  --surface:  #141414;
  --border:   #1e1e1e;
  --gold:     #c9a84c;
  --gold-lt:  #e8c97a;
  --white:    #f0ece4;
  --muted:    #7a7570;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  cursor: default;
}

/* ── CURSOR RING (decorative only — real cursor stays visible) ── */
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.25s cubic-bezier(.22,.68,0,1.2),
              width 0.2s, height 0.2s, opacity 0.3s;
  opacity: 0;
  mix-blend-mode: difference;
}
.cursor-ring.visible { opacity: 0.6; }

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.35rem; font-weight: 400; }
p  { color: #a09b94; font-size: 0.95rem; }
a  { text-decoration: none; color: inherit; cursor: pointer; }

.label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 500;
}

/* ── LAYOUT ──────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
section { padding: 7rem 0; }
hr { border: none; border-top: 1px solid var(--border); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: #0b0b0b; }
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #0b0b0b; transform: translateY(-2px); }

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.4rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(11,11,11,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 0.9rem; }
.nav-brand img {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; gap: 1rem; align-items: center; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.25s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* ── HERO ────────────────────────────────────────────────────── */
#home {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 0 2.5rem;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.hero-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.hero-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold) 40%, transparent);
  opacity: 0.12;
}
.hero-content { position: relative; z-index: 1; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.hero-tag::before {
  content: '';
  display: inline-block;
  width: 2rem; height: 1px;
  background: var(--gold);
}
.hero-title { margin-bottom: 1.5rem; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-desc { max-width: 440px; margin-bottom: 2.5rem; line-height: 1.9; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label { font-size: 0.72rem; color: var(--muted); margin-top: 0.3rem; letter-spacing: 0.08em; }
.hero-image { position: relative; z-index: 1; display: flex; justify-content: center; }
.hero-image-frame { position: relative; display: inline-block; }
.hero-image-frame::before {
  content: '';
  position: absolute;
  top: 20px; right: -20px;
  width: 100%; height: 100%;
  border: 1px solid var(--gold);
  border-radius: 4px;
  opacity: 0.3;
  z-index: -1;
}
.hero-image img {
  width: 320px;
  max-width: 100%;
  border-radius: 4px;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.4s;
}
.hero-image img:hover { filter: grayscale(0%); }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}
.scroll-line {
  width: 40px; height: 1px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine { to { left: 100%; } }

/* ── SERVICES ────────────────────────────────────────────────── */
#services { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header .label { margin-bottom: 1rem; display: block; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 480px; margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--surface);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}
.service-card:hover::before { height: 100%; }
.service-card:hover { background: #191916; }
.service-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}
.service-card:hover .service-num { color: #2a2620; }
.service-card h3 { color: var(--white); margin-bottom: 0.8rem; font-size: 1.25rem; }
.service-card p { font-size: 0.88rem; }
.service-icon { font-size: 1.8rem; margin-bottom: 1rem; }

/* ── ABOUT ───────────────────────────────────────────────────── */
#about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-label { margin-bottom: 1.2rem; display: block; }
.about-text { margin: 1.5rem 0 2.5rem; }
.about-skills { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.skill-row { display: flex; flex-direction: column; gap: 0.4rem; }
.skill-info { display: flex; justify-content: space-between; font-size: 0.8rem; }
.skill-info span:first-child { color: var(--white); letter-spacing: 0.05em; }
.skill-info span:last-child { color: var(--gold); }
.skill-bar { height: 1px; background: var(--border); position: relative; overflow: hidden; }
/* Skill bars default to full width; JS animates them from 0 */
.skill-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--gold);
  width: 100%; /* visible by default */
  transition: width 1.2s cubic-bezier(.22,.68,0,1.2);
}
body.js-ready .skill-fill { width: 0; } /* JS will then animate to correct % */
.about-right { position: relative; }
.about-img-wrap { position: relative; display: inline-block; }
.about-img-wrap img { width: 100%; max-width: 420px; border-radius: 4px; filter: grayscale(20%); display: block; }
.about-badge {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  background: var(--gold);
  color: #0b0b0b;
  padding: 1.5rem;
  border-radius: 50%;
  width: 110px; height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.about-badge .badge-num { font-size: 1.8rem; line-height: 1; }
.about-badge .badge-text { font-size: 0.6rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

/* ── WORKS ───────────────────────────────────────────────────── */
#works { background: var(--surface); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 4rem;
}
.work-item { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--bg); cursor: pointer; }
.work-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.22,.68,0,1.2), filter 0.4s;
  filter: grayscale(30%);
}
.work-item:hover img { transform: scale(1.07); filter: grayscale(0%); }
.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,11,11,0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}
.work-item:hover .work-overlay { opacity: 1; }
.work-meta h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 0.2rem; }
.work-meta p { font-size: 0.78rem; color: var(--gold); }

/* ── TESTIMONIALS ────────────────────────────────────────────── */
#testimonials { text-align: center; overflow: hidden; }
.testimonial-wrapper { position: relative; max-width: 700px; margin: 4rem auto 0; }
.testimonial-slide { display: none; animation: fadeIn 0.5s ease; }
.testimonial-slide.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; } }
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
  font-style: italic;
  margin-bottom: 2rem;
  padding: 0 1rem;
}
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.2em; }
.testimonial-author { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.testimonial-author strong { color: var(--white); font-weight: 500; }
.testimonial-controls { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 3rem; }
.t-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: none;
  color: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}
.t-btn:hover { border-color: var(--gold); color: var(--gold); }
.t-dots { display: flex; gap: 0.5rem; }
.t-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background 0.3s, transform 0.3s; }
.t-dot.active { background: var(--gold); transform: scale(1.4); }

/* ── CONTACT / FOOTER ────────────────────────────────────────── */
#contact { background: var(--surface); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; }
.contact-left h2 { margin-bottom: 1.5rem; }
.contact-left p { margin-bottom: 3rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: none; }
.contact-icon { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; color: var(--gold); }
.contact-detail { display: flex; flex-direction: column; }
.contact-detail span:first-child { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.contact-detail span:last-child { font-size: 0.9rem; color: var(--white); }
.contact-right { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2rem; }
.contact-cta-text { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.3; }
.contact-cta-text em { font-style: italic; color: var(--gold); }
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-link { padding: 0.6rem 1.2rem; border: 1px solid var(--border); border-radius: 2px; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); transition: all 0.3s; }
.social-link:hover { border-color: var(--gold); color: var(--gold); }

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg);
}
footer a { color: var(--gold); transition: opacity 0.2s; }
footer a:hover { opacity: 0.7; }

/* ── BACK TO TOP ─────────────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--gold);
  color: #0b0b0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}
.back-top.visible { opacity: 1; pointer-events: all; }
.back-top:hover { transform: translateY(-3px); }

/* ── REVEAL ANIMATION ────────────────────────────────────────── */
/* Content is always visible. Animation only activates when JS loads. */
.reveal { opacity: 1; transform: none; }

body.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  #home { grid-template-columns: 1fr; text-align: center; padding-top: 7rem; padding-bottom: 5rem; }
  .hero-image { display: none; }
  .hero-desc { margin: 1.5rem auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  #about .container { grid-template-columns: 1fr; }
  .about-right { display: none; }
  .works-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-scroll { display: none; }
}
@media (max-width: 600px) {
  section { padding: 5rem 0; }
  .container { padding: 0 1.25rem; }
  nav { padding: 1.2rem 1.25rem; }
}