:root {
  --bg: #0b0b0d;
  --surface: #141418;
  --surface-soft: #1a1a20;
  --text: #f7f7fa;
  --muted: #c4c5cd;
  --gold: #d9ae58;
  --gold-dark: #b98f3e;
  --line: #2b2b33;
  --max: 1140px;
  --radius: 16px;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #08080a;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #08080a;
  backdrop-filter: blur(10px);
  border-bottom: 0;
}

.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  overflow: visible;
  background: transparent;
}

.brand img {
  width: 190px;
  height: 72px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.brand-wordmark {
  display: grid;
  line-height: 0.92;
}

.brand-wordmark strong,
.brand-wordmark em {
  font-family: "Georgia", "Times New Roman", serif;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.brand-wordmark strong {
  color: #f4f0e5;
  font-size: 1rem;
}

.brand-wordmark em {
  color: var(--gold);
  font-size: 0.82rem;
}

nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

nav a {
  color: #d9dae2;
  font-weight: 600;
  font-size: 0.93rem;
}

nav a:hover { color: var(--gold); }

.menu-btn {
  display: none;
  background: transparent;
  color: #ececf2;
  border: 1px solid #3a3a43;
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
}

.hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.04) saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(8, 8, 10, 0.66) 15%, rgba(8, 8, 10, 0.2) 65%, rgba(8, 8, 10, 0.56) 100%);
}

.hero-watermark {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: min(34vw, 300px);
  opacity: 0.1;
  transform-origin: center center;
  animation: logoDepthPulse 5.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes logoDepthPulse {
  0% {
    transform: scale(0.55);
    opacity: 0;
    filter: blur(2.8px);
  }
  25% {
    opacity: 0.08;
  }
  55% {
    transform: scale(1);
    opacity: 0.16;
    filter: blur(0.4px);
  }
  100% {
    transform: scale(1.24);
    opacity: 0;
    filter: blur(2.4px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 4.4rem;
  max-width: 640px;
}

.tag {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-weight: 700;
  font-size: 0.78rem;
}

h1 {
  margin: 0.7rem 0 0.8rem;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  line-height: 1.02;
}

.hero-content p {
  color: #d6d6dd;
  font-size: 1.02rem;
  max-width: 60ch;
  margin: 0;
}

.hero-cta {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.64rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: #17120b;
}

.btn-primary:hover { background: var(--gold-dark); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: #4a4a52;
  color: #ececf1;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.section { padding: 4rem 0; }

.section-dark { background: #101014; }

.section-label {
  margin: 0 0 0.4rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-size: 0.78rem;
  font-weight: 700;
}

.section h2 {
  margin: 0 0 0.8rem;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}

.section-copy {
  color: var(--muted);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.panel h3 { margin: 0 0 0.6rem; }

.panel ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.panel li + li { margin-top: 0.42rem; }

.grid { display: grid; gap: 1rem; }

.cards { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.card h3 { margin: 0 0 0.55rem; }
.card p { margin: 0; color: var(--muted); }

.projects { grid-template-columns: repeat(3, 1fr); }

.project {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.project img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-body { padding: 1rem; }
.project-body h3 { margin: 0 0 0.45rem; }
.project-body p { margin: 0; color: var(--muted); }

.cta-box {
  background: linear-gradient(150deg, #17171c, #101015);
  border: 1px solid #32323a;
  border-radius: 18px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-box h2 { margin: 0 0 0.45rem; }
.cta-box p { margin: 0; color: var(--muted); }

.cta-actions {
  display: grid;
  gap: 0.7rem;
  min-width: 220px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 1.7rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: #a5a7b2;
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .split,
  .cta-box { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #0c0c10;
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    padding: 0.9rem;
  }
  nav.open { display: flex; }
  .cards,
  .projects { grid-template-columns: 1fr; }
  .hero { min-height: 66vh; }
  .hero-watermark {
    width: 160px;
    right: 1rem;
    bottom: 1rem;
  }
  .brand img {
    width: 140px;
    height: 56px;
  }
  .brand-wordmark strong {
    font-size: 0.75rem;
    letter-spacing: 0.9px;
  }
  .brand-wordmark em {
    font-size: 0.64rem;
    letter-spacing: 0.9px;
  }
}
