:root {
  --bg: #0b0c0f;
  --bg2: #08090c;
  --text: #e8e8e8;
  --muted: rgba(232,232,232,0.7);
  --divider: rgba(255,255,255,0.08);
  --gold: #c7a34a;
  --gold-soft: rgba(199,163,74,0.35);
  --max-width: 1100px;
  --pad: clamp(1.25rem, 3vw, 2rem);
  --section-pad: clamp(3rem, 6vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top, rgba(21,12,12,0.28), transparent 60%),
    var(--bg);
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#hero {
  position: relative;
  min-height: clamp(420px, 55vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(21, 12, 12, 0.45), rgba(21, 12, 12, 0.65)),
    url("../img/header.png") center / cover no-repeat,
    var(--bg);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 0 var(--pad);
}

.hero-logo {
  width: min(520px, 85vw);
  height: auto;
}

.hero-tagline {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.8rem 1.1rem;
  font-weight: 650;
}

.btn:hover {
  border-color: var(--gold-soft);
  opacity: 1;
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--divider), transparent);
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prose {
  margin: 0;
  max-width: 65ch;
  color: var(--muted);
}

.bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.bullet {
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.2rem;
}

.card {
  border: 1px solid rgba(255,255,255,0.07);
  background: #000;
}

.card-hover {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.card-media {
  position: absolute;
  inset: 0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
  opacity: 0.35;
  filter: saturate(0.95) contrast(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.86),
    rgba(0, 0, 0, 0.30)
  );
  opacity: 1;
  transform: none;
}

.card-hover:hover .card-media img {
  opacity: 0.42;
  transform: scale(1.04);
}

.card-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.card-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
}

.card-desc {
  margin: 0;
  color: rgba(232,232,232,0.78);
}

.card-desc code {
  color: rgba(232,232,232,0.9);
}

.card-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 650;
  color: var(--gold);
}

.card-link::after {
  content: " →";
}

.contact-actions {
  margin-top: 1.25rem;
}

.footer {
  padding: 2.5rem 0;
  background: var(--bg2);
  border-top: 1px solid var(--divider);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-muted {
  color: rgba(232,232,232,0.55);
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .bullets {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: min(420px, 92vw);
  }
}
