:root {
  --bg: #0a0a0b;
  --bg-alt: #111113;
  --bg-card: rgba(245, 242, 236, 0.035);
  --bg-card-hover: rgba(245, 242, 236, 0.06);
  --text: #f5f2ec;
  --text-muted: #9c968c;
  --text-dim: #6f6a63;
  --accent: #c9a961;
  --accent-soft: rgba(201, 169, 97, 0.14);
  --border: rgba(245, 242, 236, 0.09);
  --border-strong: rgba(245, 242, 236, 0.18);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* subtle grain texture for depth */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ambient glows */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.glow--hero {
  width: 44rem;
  height: 44rem;
  top: -18rem;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
}

.glow--contact {
  width: 36rem;
  height: 36rem;
  bottom: -14rem;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
}

/* language toggle */
span.lang-en { display: none; }
body.mode-en span.lang-de { display: none; }
body.mode-en span.lang-en { display: inline; }
body.mode-de span.lang-de { display: inline; }

.lang-toggle__de, .lang-toggle__en { opacity: 0.4; transition: opacity 0.25s ease; }
body.mode-de .lang-toggle__de { opacity: 1; }
body.mode-en .lang-toggle__en { opacity: 1; }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem clamp(1.5rem, 5vw, 4rem);
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__mark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

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

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.lang-toggle:hover { border-color: var(--accent); }

@media (max-width: 640px) {
  .nav__links { display: none; }
}

/* hero */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4.5rem;
  overflow: hidden;
}

.hero > *:not(.glow) { position: relative; z-index: 2; }

.hero__eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero__mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 11vw, 7rem);
  letter-spacing: 0.06em;
  line-height: 1;
}

.hero__rule {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 2rem 0;
}

.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-style: italic;
  color: var(--text);
  max-width: 32rem;
  margin-bottom: 0.9rem;
}

.hero__sub {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 30rem;
  margin-bottom: 2.75rem;
}

.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2.1rem;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

/* sections */
.section {
  position: relative;
  z-index: 2;
  padding: 7rem clamp(1.5rem, 8vw, 8rem);
  border-top: 1px solid var(--border);
}

.section--alt { background: var(--bg-alt); }

.section__index {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1.75rem;
}

.section__text {
  color: var(--text-muted);
  max-width: 42rem;
  font-size: 1.05rem;
}

.section__text--center {
  max-width: 32rem;
  margin: 0 auto;
}

.process__intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.process__intro .section__index,
.process__intro .section__title {
  margin-left: auto;
  margin-right: auto;
}

/* services grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
}

.grid__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
}

.step {
  position: relative;
  padding-top: 2.5rem;
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .steps::before {
    content: '';
    position: absolute;
    top: calc(2.5rem + 1.375rem);
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, var(--border) 0%, var(--border-strong) 50%, var(--border) 100%);
  }
}

/* tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tag {
  padding: 0.65rem 1.3rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color 0.25s ease, color 0.25s ease;
}

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

/* contact */
.contact {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 4.5rem clamp(1.5rem, 8vw, 8rem) 6rem;
  border-top: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact > *:not(.glow) { position: relative; z-index: 2; }

.contact .section__title { margin-bottom: 1rem; }
.contact .section__text { margin-bottom: 2.5rem; }

.contact__email {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.35rem;
  transition: color 0.25s ease;
}

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

.contact__social {
  display: block;
  margin-top: 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

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

/* footer */
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  padding: 2.5rem 1.5rem 3rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer span:first-child {
  font-family: var(--serif);
  color: var(--text);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}
