:root {
  --accent: #c9a45c;
  --bg: #111419;
  --card: rgba(28, 33, 43, 0.65);
  --border: rgba(201, 164, 92, 0.12);
  --text: #eceae5;
  --muted: #8e95a0;
  --wrap: 960px;
  --px: clamp(1.5rem, 5vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overscroll-behavior: none; }

body {
  font: 400 1rem/1.7 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 20, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--wrap) + var(--px) * 2);
  margin: 0 auto;
  padding: 1rem var(--px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s ease;
}

.logo:hover { color: var(--accent); }

.logo-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
}

.logo-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex: 0 0 auto;
  transition: background 0.2s ease;
}

.logo:hover .logo-sep {
  background: rgba(201, 164, 92, 0.25);
}

.logo-name {
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.hamburger { display: none; }

/* ── Shared ── */
.label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

section {
  max-width: calc(var(--wrap) + var(--px) * 2);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) var(--px);
}

.divider {
  max-width: calc(var(--wrap) + var(--px) * 2);
  margin: 0 auto;
  padding: 0 var(--px);
}

.divider hr {
  border: none;
  height: 1px;
  background: var(--border);
}

/* ── Hero ── */
.hero-wrapper {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('bg.jpg') center / cover no-repeat;
  filter: blur(3px);
  transform: scale(1.05);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 16, 22, 0.5) 0%,
    rgba(13, 16, 22, 0.5) 35%,
    rgba(17, 20, 25, 0.7) 55%,
    rgba(17, 20, 25, 0.9) 72%,
    rgba(17, 20, 25, 0.97) 85%,
    rgba(17, 20, 25, 1) 92%
  );
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: calc(var(--wrap) + var(--px) * 2);
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 6rem) var(--px) clamp(2rem, 6vh, 4rem);
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 720px;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .label {
  margin-bottom: 1.25rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.75rem 1.6rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border-radius: 6px;
  width: fit-content;
  transition: background 0.2s ease;
}

.hero-cta:hover {
  background: #d4af65;
}

/* ── Work ── */
#work { text-align: center; }
#work .label { margin-bottom: 2.5rem; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.work-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.work-item:hover {
  border-color: rgba(201, 164, 92, 0.25);
  transform: translateY(-2px);
}

.work-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #161a22;
}

.work-item figcaption {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.work-item strong { font-size: 1.05rem; font-weight: 600; }
.work-item span { font-size: 0.8rem; color: var(--muted); }

/* ── Placeholder ── */
.placeholder .placeholder-content {
  width: 100%;
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  background: rgba(28, 33, 43, 0.3);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── About ── */
#about { text-align: center; }

.about-content {
  max-width: 580px;
  margin: 0 auto;
}

.about-content .about-lead {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: #fff;
}

.about-content > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.about-content em {
  font-style: italic;
  color: var(--text);
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.services li {
  padding: 0.45rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--muted);
}

.services li::before {
  content: '✓ ';
  color: var(--accent);
}

/* ── Contact ── */
#contact { text-align: center; }

.contact-content {
  max-width: 480px;
  margin: 0 auto;
}

.contact-content .contact-lead {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.contact-content > p {
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.contact-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1rem;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #d4af65;
}

.social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social a {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social a:hover {
  color: var(--accent);
  border-color: rgba(201, 164, 92, 0.25);
}

/* ── Footer ── */
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem var(--px);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

/* ── Focus ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
  }

  .hamburger span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: top 0.25s ease, transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
  }

  .hamburger span:nth-child(1) { top: 11px; }
  .hamburger span:nth-child(2) { top: 17px; width: 12px; }
  .hamburger span:nth-child(3) { top: 23px; }

  .hamburger:hover span { background: var(--accent); }
  .hamburger:hover span:nth-child(2) { width: 18px; }

  .hamburger.active span { background: var(--accent); }
  .hamburger.active span:nth-child(1) { top: 17px; transform: rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

  .nav-inner { flex-wrap: wrap; }

  .nav-links {
    width: 100%;
    order: 3;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open { max-height: 200px; }

  .nav-links a {
    padding: 0.875rem 0;
    border-top: 1px solid var(--border);
  }

  .hero h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.1rem; }
  .hero .label { font-size: 0.6rem; }
  .hero-cta { width: 100%; justify-content: center; }
  .work-item figcaption { padding: 1rem; }
  .work-item strong { font-size: 1rem; }
  .about-lead, .contact-lead { font-size: 1.25rem; }
  .services { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: center; }
  .social a { width: 2.25rem; height: 2.25rem; }

  .logo-mark { width: 24px; height: 24px; }
  .logo-sep { height: 16px; }
}