/* =========================================
   Acheron Design ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¢ Core Styles (Flex version)
   Palette: Ink, Lav, Slate, Garnet, Ochre
   Fonts: Playfair Display + Nunito
========================================= */

/* -------------------------------
   Root Tokens (Colors & Layout)
-------------------------------- */
:root {
  /* New palette */
  --ink: #201d31; /* deep indigo/navy (violet undertone) */
  --lav: #dcdbe4; /* lavender-grey */
  --slate: #575469; /* smoky slate purple-grey */
  --garnet: #91263f; /* garnet accent */
  --ochre: #ffc757; /* warm golden ochre */

  /* Tokens */
  --bg: var(--ink);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: 1px solid rgba(220, 219, 228, 0.18);
  --text: rgb(201 198 216 / 80%);
  --muted: #c9c6d8;
  --link: var(--ochre);
  --ring: 0 0 0 1px rgba(255, 199, 87, 0.35), 0 0 28px rgba(255, 199, 87, 0.25);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --wrap: min(1200px, 80vw);
  --pad: clamp(15px, 2vw, 30px);
  --r: 16px;
  --r-lg: 22px;
}

* {
  box-sizing: border-box;
}

/* ================================
   Animated Background (Blob Field)
   - fixed, non-repeating, GPU-accelerated
   - respects reduced motion
================================ */

html {
  background-color: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font: 14px/1.7 "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* remove any previous background-* from body */
  background: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: -25vmax;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(45% 60% at 18% 22%, #91263f80 0%, #91263f00 60%)
      /* garnet */,
    radial-gradient(50% 55% at 82% 24%, #ffc75766 0%, #ffc75700 65%) /* ochre */,
    radial-gradient(55% 60% at 28% 82%, #dcdbe44d 0%, #dcdbe400 60%)
      /* lavender */,
    radial-gradient(60% 60% at 78% 78%, #5754694d 0%, #57546900 60%) /* slate */,
    radial-gradient(120% 120% at 50% 50%, #201d31ff 0%, #201d31ff 60%); /* ink base */
  filter: blur(60px) saturate(115%);
  opacity: 0.75;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.08);
  animation: acheron-drift 10s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    130% 100% at 50% 0%,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.15) 60%,
    rgba(0, 0, 0, 0.3) 100%
  );
  mix-blend-mode: multiply;
}

@keyframes acheron-drift {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1.1) rotate(0deg);
  }
  35% {
    transform: translate3d(2%, 3%, 0) scale(1.2) rotate(10deg);
  }
  70% {
    transform: translate3d(-1%, 4%, 0) scale(1.05) rotate(-10deg);
  }
  100% {
    transform: translate3d(3%, -2%, 0) scale(1.15) rotate(15deg);
  }
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  filter: brightness(1.1);
  text-shadow: 0 0 14px rgba(255, 199, 87, 0.55);
}

/* -------------------------------
   Topbar
-------------------------------- */

.topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgb(15 13 25 / 85%), rgba(32, 29, 49, 0.55));
    border-bottom: var(--border);
}

.wrapper {
  width: var(--wrap);
  margin: 0 auto;
  padding: var(--pad) 0;
}

.topbar .wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.02em;
  line-height: 0;
  margin-bottom: 7px;
}

.topbar .spacer {
  flex: 1;
}

nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex: 2;
}

nav a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d7d5e2;
  position: relative;
  padding: 6px 2px;
}

nav a[aria-current="page"],
nav a:hover {
  color: var(--link);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

nav a:hover::after,
nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.cta {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.btn {
  border: var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}

.btn:hover {
  box-shadow: var(--ring);
}

/* -------------------------------
   Header
-------------------------------- */

header {
    backdrop-filter: blur(15px);
    background: linear-gradient(to bottom, rgb(15 13 25 / 85%), rgba(32, 29, 49, 0.55));
    padding: 120px var(--pad) 50px;
    border-bottom: var(--border);
}

/* -------------------------------
   Sections & Cards
-------------------------------- */

.section {
  width: var(--wrap);
  margin: 30px auto;
}

.card {
  background: linear-gradient(180deg, var(--surface-2), transparent 120%);
  border: var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3.5vw, 40px);
}

.eyebrow {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 11px;
}

h1,
h2,
h3,
h4 {
  color: #fff;
  font-family: "Playfair Display", serif;
}

h1 {
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.25;
  margin: 0.3em 0 0.4em;
}

h2 {
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  margin: 0.2em 0 0.5em;
}

h3 {
  color: var(--muted);
}

.lead {
  color: var(--lav);
  max-width: 68ch;
  margin: 0;
}

.accent {
    color: var(--garnet);
}

/* -------------------------------
   About
-------------------------------- */

.about {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.about .card:nth-child(1) {
  flex: 1;
  flex-basis: 50%;
}

.about .card:nth-child(2) {
  flex: 1;
  flex-basis: 44%;
}

.about .card:nth-child(3) {
  flex: 1;
  flex-basis: 20%;
}

/* -------------------------------
   Services
-------------------------------- */

services {
    display: block;
    backdrop-filter: blur(15px);
    background: linear-gradient(to bottom, rgb(15 13 25 / 85%), rgba(32, 29, 49, 0.55));
    padding: 30px var(--pad);
    border-top: var(--border);
    border-bottom: var(--border);
}

/* -------------------------------
   Footer
-------------------------------- */

footer {
  border-top: var(--border);
  background: var(--surface);
}

.foot {
  width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fine {
  font-size: 12px;
}
