/* --- Design Tokens (Matte Palette) --- */
:root {
  --bg: #0b0b0d;
  /* Base black */
  --bg-2: #111115;
  /* Elevated surfaces */
  --bg-3: #16161a;
  /* Hover surfaces */
  --text: #e6e6e8;
  /* Primary text */
  --muted: #a9a9b3;
  /* Secondary text */
  --gold: #c3a34a;
  /* Matte gold accent */
  --gold-ink: #a98c3a;
  /* Darker matte gold for borders */
  --danger: #ff5b5b;
  --radius: 16px;
  --maxw: 1200px;
  --shadow: 0 6px 16px rgba(0, 0, 0, .18);
  /* much softer for matte look */
}

/* --- Reset & Base --- */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.1px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(195, 163, 74, .25);
  color: #111;
}

/* --- Subtle Noise Overlay (very light for matte) --- */
.noise::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url('data:image/svg+xml;utf8,  %3Csvg xmlns="http://www.w3.org/2000/svg" width="140" height="140" viewBox="0 0 140 140"%3E  %3Cfilter id="n" x="0" y="0" width="100%25" height="100%25"%3E    %3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/%3E    %3CfeColorMatrix type="saturate" values="0"/%3E    %3CfeComponentTransfer%3E%3CfeFuncA type="table" tableValues="0 0 0 .05 0"/%3E%3C/feComponentTransfer%3E  %3C/filter%3E  %3Crect width="100%25" height="100%25" filter="url(%23n)"/%3E  %3C/svg%3E');
  mix-blend-mode: overlay;
  opacity: .12;
}

/* --- Layout Helpers --- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 96px 0;
}

.grid {
  display: grid;
  gap: 24px;
}

/* --- Matte Divider Line --- */
.gold-line {
  height: 1px;
  background: var(--gold);
  opacity: .25;
}

/* --- Buttons (matte/flat) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
  will-change: transform;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(195, 163, 74, .28);
}

.btn-primary {
  background: var(--gold);
  color: #1a1a1a;
  border: 1px solid rgba(169, 140, 58, .5);
  box-shadow: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.btn-ghost {
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid rgba(169, 140, 58, .35);
}

.btn-ghost:hover {
  border-color: rgba(169, 140, 58, .55);
}

.chip {
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #111;
  background: var(--gold);
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 9;
  backdrop-filter: blur(10px);
  background: rgba(11, 11, 13, .7);
  border-bottom: 1px solid rgba(169, 140, 58, .25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .4px;
}

.brand .logo {
  height: 64px;
  width: auto;
  display: block
}

.brand span {
  color: var(--gold);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  opacity: .9;
}

.nav-links a:hover {
  color: var(--text);
}

.burger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(169, 140, 58, .25);
  background: var(--bg-2);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  display: block;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
}

.mobile-open .mobile-menu {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(169, 140, 58, .25);
  color: var(--muted);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero .orb {
  display: none;
}

/* remove glow for matte */
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: .2px;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero p {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--muted);
  max-width: 780px;
}

.hero .cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero .stats {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
}

.stat {
  background: var(--bg-2);
  border: 1px solid rgba(169, 140, 58, .3);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat b {
  font-size: 1.6rem;
  display: block;
}

.stat span {
  color: var(--muted);
  font-size: .95rem;
}

/* --- Section Headings --- */
.eyebrow {
  color: #a9a9b3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: none;
  outline: 3px solid rgba(169, 140, 58, .18);
}

.section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin: 12px 0 10px;
  letter-spacing: .3px;
}

.section p.lead {
  color: var(--muted);
  max-width: 820px;
  margin: 0;
}

/* --- Services --- */
.cards {
  grid-template-columns: repeat(12, 1fr);
}

.card {
  grid-column: span 6;
  background: var(--bg-2);
  border: 1px solid rgba(169, 140, 58, .3);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
}

.card h3 {
  margin: 8px 0 6px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  border: 1px solid rgba(169, 140, 58, .35);
}

.card .badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 12px;
  color: #111;
  background: var(--gold);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* --- Work/Projects --- */
.project {
  background: var(--bg-2);
  border: 1px solid rgba(169, 140, 58, .3);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project .thumb {
  aspect-ratio: 16/9;
  background: var(--bg-3);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .7);
  font-weight: 700;
}

.project .body {
  padding: 18px;
}

.project .meta {
  color: var(--muted);
  font-size: .95rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- CTA Banner --- */
.cta-banner {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  padding: 36px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid rgba(169, 140, 58, .35);
}

.cta-banner::after {
  display: none;
}

/* --- Contact --- */
form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 600;
  color: var(--text);
}

.input,
textarea {
  background: var(--bg-3);
  border: 1px solid rgba(169, 140, 58, .25);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
}

.input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(169, 140, 58, .65);
  box-shadow: 0 0 0 3px rgba(169, 140, 58, .18);
}

.form-help {
  color: var(--muted);
  font-size: .95rem;
}

/* --- Footer --- */
footer {
  padding: 32px 0 50px;
  color: var(--muted);
  border-top: 1px solid rgba(169, 140, 58, .25);
}

.social {
  display: flex;
  gap: 12px;
}

.social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border: 1px solid rgba(169, 140, 58, .25);
}

.social a:hover {
  border-color: rgba(169, 140, 58, .45);
}

/* --- Reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .6s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .cards .card {
    grid-column: span 12;
  }

  .hero .stats {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .burger {
    display: inline-flex;
  }
}