:root {
  --bg: #050505;
  --bg-soft: #0d0c0a;
  --panel: rgba(22, 20, 17, 0.74);
  --panel-border: rgba(197, 180, 142, 0.18);
  --text: #e8e0cf;
  --muted: #a79b86;
  --gold: #c7b28a;
  --gold-soft: #8c7a5a;
  --shadow: rgba(0, 0, 0, 0.75);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(152, 128, 82, 0.18), transparent 32rem),
    radial-gradient(circle at 20% 20%, rgba(120, 24, 24, 0.11), transparent 26rem),
    linear-gradient(180deg, #030303 0%, #090806 48%, #030303 100%);
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.19;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}

.site {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.25rem;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.92)),
    url("assets/arcanevil-logo.png") center / min(88vw, 980px) no-repeat;
  opacity: 0.16;
  filter: blur(2px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: -2;
  border: 1px solid rgba(199, 178, 138, 0.08);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.95);
}

.mist {
  position: absolute;
  inset: auto -10% 0 -10%;
  height: 40vh;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(180, 160, 120, 0.08), transparent 70%);
  filter: blur(36px);
}

.hero__content {
  width: min(900px, 100%);
  text-align: center;
  padding: 2rem 0;
}

.logo {
  display: block;
  width: min(420px, 82vw);
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 2rem 3rem rgba(0, 0, 0, 0.8));
}

.kicker,
.eyebrow,
.tag {
  margin: 0 0 1rem;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 1.2rem;
  font-size: clamp(2.4rem, 8vw, 6.8rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 0.85rem;
  color: #f0e8d7;
  font-size: 1.45rem;
  font-weight: 400;
}

p {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}

.intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button,
.mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  color: #0d0b08;
  background: linear-gradient(180deg, #d4c29c, #8d7852);
  border: 1px solid rgba(255, 240, 198, 0.45);
  border-radius: 999px;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.42);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.mail:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 240, 198, 0.9);
}

.button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}

.section {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 6rem 0;
  border-top: 1px solid rgba(199, 178, 138, 0.12);
}

.section__header {
  max-width: 820px;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card,
.project-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), transparent),
    var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 1.5rem 3rem var(--shadow);
}

.card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(199, 178, 138, 0.14), transparent 16rem);
}

.section--split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.text-block {
  padding: 1.5rem;
  background: rgba(255,255,255,0.025);
  border-left: 1px solid rgba(199, 178, 138, 0.28);
}

.projects {
  padding-bottom: 4rem;
}

.project-card {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.project-card p {
  max-width: 620px;
}

.sigil {
  flex: 0 0 auto;
}

.sigil--d20 {
  width: clamp(8rem, 18vw, 15rem);
  height: auto;
  stroke: rgba(199, 178, 138, 0.16);
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
}

.contact {
  text-align: center;
  padding-bottom: 7rem;
}

.contact p {
  max-width: 620px;
  margin-inline: auto;
}

.mail {
  margin-top: 1rem;
}

.footer {
  padding: 2rem 1.25rem;
  color: rgba(232, 224, 207, 0.42);
  border-top: 1px solid rgba(199, 178, 138, 0.08);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .hero {
    min-height: 92vh;
  }

  .logo {
    width: min(340px, 88vw);
    margin-bottom: 2rem;
  }

  .grid,
  .section--split {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4.5rem 0;
  }

  .project-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .sigil--d20 {
    align-self: flex-end;
    margin-top: -2rem;
  }
}
