*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
      --bg:        #090909;
      --surface:   #111111;
      --card:      #161616;
      --border:    rgba(255,255,255,0.07);
      --gold:      #c9a84c;
      --gold-dim:  rgba(201,168,76,0.15);
      --gold-glow: rgba(201,168,76,0.35);
      --white:     #f5f0e8;
      --muted:     rgba(245,240,232,0.45);
      --font-display: 'Cormorant Garamond', serif;
      --font-ui:      'Syne', sans-serif;
      --font-mono:    'DM Mono', monospace;
      --max: 1280px;
      --ease: cubic-bezier(.25,.46,.45,.94);
}
html { scroll-behavior: smooth; }
body {
      background: var(--bg);
      color: var(--white);
      font-family: var(--font-ui);
      overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold); }
/* ── NOISE OVERLAY ── */
body::before {
      content: ''; position: fixed; inset: 0; z-index: 0;
      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.025; pointer-events: none;
}
/* ── NAV ── */
nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 1.5rem 3rem; background: rgba(9,9,9,0.8);
      backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
      transition: padding .4s var(--ease);
}
nav.scrolled { padding: 1rem 3rem; }
.nav-logo {
      font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
      letter-spacing: .15em; color: var(--gold); text-decoration: none;
      display:flex; align-items:center; gap: 10px;
}
.nav-logo img { height: 36px; border-radius: 4px; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
      font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
      text-transform: uppercase; color: var(--muted); text-decoration: none;
      transition: color .2s; position: relative;
}
.nav-links a::after {
      content: ''; position: absolute; bottom: -4px; left: 0;
      width: 0; height: 1px; background: var(--gold); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
      font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
      text-transform: uppercase; padding: .65rem 1.4rem; border: 1px solid var(--gold);
      color: var(--gold); text-decoration: none; transition: background .25s, color .25s;
}
.nav-cta:hover { background: var(--gold); color: var(--bg); }
.hamburger {
      display: none; flex-direction: column; gap: 5px; cursor: pointer;
      background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 1px; background: var(--white); transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
      display: none; position: fixed; inset: 0; z-index: 99;
      background: rgba(9,9,9,0.97); backdrop-filter: blur(20px);
      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: 300;
      color: var(--white); text-decoration: none; letter-spacing: .05em; transition: color .2s;
}
.mobile-menu a:hover { color: var(--gold); }
/* ── FOOTER ── */
footer {
      padding: 2.5rem 3rem; border-top: 1px solid var(--border);
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap; gap: 1rem; position: relative; z-index: 2;
}
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--gold); letter-spacing: .15em; }
.footer-copy { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; color: var(--muted); text-align: center}
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
      font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em;
      text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
/* Core Layout Styles */
.section-max { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1;}
.section-tag {
      font-family: var(--font-mono); font-size: .65rem; letter-spacing: .2em;
      text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
.section-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }
.section-title { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 300; line-height: 1.1; margin-bottom: 1rem; }
.section-title em { font-style: italic; color: var(--gold); }
.section-sub { font-size: .95rem; color: var(--muted); line-height: 1.75; max-width: 520px; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.3} }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { nav { padding: 1.25rem 2rem; } nav.scrolled { padding: .85rem 2rem; } }
@media (max-width: 768px) {
      nav { padding: 1rem 1.5rem; } nav.scrolled { padding: .75rem 1.5rem; }
      .nav-links, .nav-cta { display: none; } .hamburger { display: flex; }
      footer { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2rem 1.5rem; }
      .footer-links { flex-wrap: wrap; gap: 1rem; }
}

/* ── HERO ── */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 8rem 3rem 4rem; overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px); background-size: 60px 60px; }
.hero-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); filter: blur(80px); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: var(--max); width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; opacity: 0; animation: fadeUp .8s .2s var(--ease) forwards; }
.hero-label::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }
.hero-title { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 6rem); font-weight: 300; line-height: 1.05; letter-spacing: -.01em; margin-bottom: 1.5rem; opacity: 0; animation: fadeUp .8s .35s var(--ease) forwards; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-desc { font-size: .95rem; line-height: 1.75; color: var(--muted); max-width: 420px; margin-bottom: 2.5rem; opacity: 0; animation: fadeUp .8s .5s var(--ease) forwards; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s .65s var(--ease) forwards; }
.btn-primary { padding: .9rem 2rem; background: var(--gold); color: var(--bg); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: opacity .2s, transform .2s; }
.btn-primary:hover { opacity: .85; transform: translateY(-2px); }
.btn-outline { padding: .9rem 2rem; border: 1px solid var(--border); color: var(--muted); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: border-color .2s, color .2s; }
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.hero-right { display: flex; align-items: center; justify-content: center; opacity: 0; animation: fadeIn 1.2s .5s var(--ease) forwards; }
.hero-card { position: relative; width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); padding: 2.5rem; }
.hero-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-num { font-family: var(--font-display); font-size: 3rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: .25rem; }
.stat-label { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat-divider { width: 100%; height: 1px; background: var(--border); margin: 1.5rem 0; }
.hero-card-tag { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.3); padding: .4rem .9rem; font-family: var(--font-mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse 2s infinite; }

/* ── PORTFOLIO SECTION ── */
section { padding: 7rem 3rem; position: relative; }
.portfolio-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; flex-wrap: wrap; gap: 1.5rem; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--border); min-height: 360px; height: 100%; transition: border-color .3s; text-decoration: none; display: block; }
.project-card:hover { border-color: rgba(201,168,76,0.5); }
.project-visual { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: absolute; top:0; left:0; right:0; bottom:0; overflow: hidden; background: linear-gradient(135deg,#0d0d0d 0%,#1a1a1a 100%); z-index: 0; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .4; transition: opacity .4s, transform .4s; }
.project-card:hover .project-visual img { opacity: .6; transform: scale(1.05); }
.project-overlay { position: relative; z-index: 1; height: 100%; background: linear-gradient(to top, rgba(9,9,9,1) 15%, rgba(9,9,9,0.5) 60%, transparent 100%); padding: 2rem 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; }
.project-cat { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.project-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; line-height: 1.2; margin-bottom: .5rem; color: var(--white); }
.project-desc { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.project-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.tag { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem; border: 1px solid rgba(255,255,255,0.1); color: var(--muted); }

@media (max-width: 1024px) and (min-width: 769px) {
    .projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  #hero { padding: 7rem 1.5rem 3rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { order: -1; }
  .hero-card { max-width: 100%; }
  section { padding: 4rem 1.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
