/* ============================================================
   einfachfelix — neutral / warm graphite portfolio
   Depth via layered gradients, inset shadows, grain + type.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Oxanium:wght@400;500;600;700&display=swap');

:root {
  /* warm graphite base — neutral, no red */
  --bg: #121110;
  --bg-2: #17150f;
  --panel: rgba(255,255,255,0.028);
  --panel-2: rgba(255,255,255,0.045);
  --ink: #f2ede6;
  --ink-soft: #a49c90;
  --ink-inv: #f2ede6;
  --ink-inv-soft: #a49c90;
  /* single warm-neutral accent (champagne / sand) */
  --accent: #cbb89b;
  --accent-soft: #e3d8c6;
  --accent-deep: #9d8a6d;
  --line: rgba(255,255,255,0.08);
  --line-inv: rgba(255,255,255,0.08);
  --line-warm: rgba(203,184,155,0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1120px;
  --pad: clamp(22px, 5vw, 80px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  font-family: "Rajdhani", -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  background:
    radial-gradient(1200px 760px at 80% -6%, rgba(203,184,155,0.13), transparent 60%),
    radial-gradient(1000px 820px at 4% 26%, rgba(255,255,255,0.045), transparent 55%),
    radial-gradient(1050px 900px at 96% 82%, rgba(203,184,155,0.09), transparent 60%),
    radial-gradient(900px 900px at 50% 120%, rgba(157,138,109,0.10), transparent 55%),
    linear-gradient(180deg, #16140f 0%, #100e0b 55%, #0c0b09 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain — texture, adds depth */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* soft top + bottom vignette for depth */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 14%, transparent 84%, rgba(0,0,0,0.45) 100%);
}
.nav, main, .footer { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: normal; color: var(--accent-soft); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(14,13,11,0.86), rgba(14,13,11,0.4));
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: linear-gradient(180deg, rgba(12,11,9,0.94), rgba(12,11,9,0.7));
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-weight: 700; letter-spacing: -.01em; font-size: 20px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav-links a {
  font-family: "Oxanium", sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 620px) { .nav-links { display: none; } }

/* ---------- shared eyebrow (Oxanium + label bar) ---------- */
.hero-eyebrow, .lead-eyebrow {
  font-family: "Oxanium", sans-serif;
  font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 130px var(--pad) 90px; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -24%; left: 50%; transform: translateX(-50%);
  width: min(1300px, 150vw); height: 860px;
  background:
    radial-gradient(circle at 50% 42%, rgba(203,184,155,0.20), transparent 58%),
    radial-gradient(circle at 60% 58%, rgba(255,255,255,0.06), transparent 52%);
  pointer-events: none; z-index: 0; filter: blur(4px);
  animation: heroDrift 16s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  0%   { transform: translateX(-52%) translateY(0) scale(1); opacity: .85; }
  100% { transform: translateX(-48%) translateY(24px) scale(1.09); opacity: 1; }
}
.hero-content { position: relative; z-index: 1; max-width: 940px; }
.hero-eyebrow {
  display: inline-block; font-size: clamp(12px, 1.3vw, 14px);
  margin-bottom: 28px; padding: 8px 18px; border-radius: 4px;
  border: 1px solid var(--line-warm); background: rgba(203,184,155,0.06);
  color: var(--accent-soft);
}
.hero-title {
  font-weight: 700; font-size: clamp(44px, 8.6vw, 104px); letter-spacing: -.01em;
  line-height: 0.98; text-transform: uppercase;
  background: linear-gradient(178deg, #ffffff 0%, #efe7db 40%, #b0a58f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,0.02);
}
.hero-sub {
  margin: 28px auto 0; max-width: 560px;
  font-size: clamp(17px, 2.1vw, 22px); line-height: 1.5; color: var(--ink-soft); font-weight: 500;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 44px;
  padding: 14px 30px; border-radius: 6px;
  font-family: "Oxanium", sans-serif; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; font-size: 14px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  color: #1a1712;
  box-shadow: 0 16px 44px -14px rgba(203,184,155,0.55), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
}
.hero-cta svg { transition: transform .3s var(--ease); }
.hero-cta:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 22px 60px -14px rgba(203,184,155,0.7), inset 0 1px 0 rgba(255,255,255,0.4); }
.hero-cta:hover svg { transform: translateY(3px); }

/* ---------- STATEMENT ---------- */
.statement {
  position: relative; padding: clamp(110px, 17vh, 210px) var(--pad);
  max-width: var(--maxw); margin: 0 auto; text-align: center;
}
.statement p {
  position: relative; z-index: 1;
  font-weight: 600; font-size: clamp(30px, 5.2vw, 60px); letter-spacing: -.005em;
  line-height: 1.12; color: var(--ink);
}
.statement .muted { color: var(--ink-soft); font-weight: 500; }
.statement em {
  background: linear-gradient(100deg, var(--accent-soft), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- SECTION LEAD ---------- */
.section-lead, .mdt-lead, .story-head, .about-inner, .servers-lead {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 10vh, 130px) var(--pad);
}
.lead-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; margin-bottom: 20px;
}
.lead-eyebrow::before {
  content: ""; width: 2px; height: 13px; background: var(--accent);
  box-shadow: 0 0 8px rgba(203,184,155,0.8); border-radius: 2px;
}
.lead-title {
  font-weight: 700; font-size: clamp(36px, 6vw, 74px); letter-spacing: -.01em;
  line-height: 1.02; text-transform: uppercase;
  background: linear-gradient(176deg, #ffffff 0%, #ece3d6 45%, #ab9f89 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead-text {
  margin-top: 26px; max-width: 620px;
  font-size: clamp(17px, 2vw, 21px); line-height: 1.6; color: var(--ink-soft); font-weight: 500;
}
.lead-text a { color: var(--accent-soft); font-weight: 600; border-bottom: 1px solid var(--line-warm); }
.lead-text a:hover { color: #fff; }

/* ---------- PROJECTS ---------- */
.dark { background: transparent; color: var(--ink-inv); }
.project { padding: clamp(70px, 12vh, 150px) var(--pad); }
.project + .project { padding-top: 0; }
.project-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.project-grid.reverse { grid-template-columns: 1.15fr 1fr; }
.project-grid.reverse .project-text { order: 2; }
.project-grid.reverse .project-shot { order: 1; }

.project-tag {
  font-family: "Oxanium", sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; color: var(--accent); margin-bottom: 20px; text-transform: lowercase;
}
.project-title {
  font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.01em;
  line-height: 1.05; text-transform: uppercase; color: #fff;
}
.project-desc {
  margin-top: 20px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.62;
  color: var(--ink-inv-soft); max-width: 460px; font-weight: 500;
}
.project-meta { list-style: none; margin-top: 30px; }
.project-meta li {
  font-family: "Oxanium", sans-serif; font-size: 14px; letter-spacing: .02em;
  color: var(--ink-inv-soft); padding: 12px 0;
  border-top: 1px solid var(--line-inv); display: flex; align-items: center;
}
.project-meta li:last-child { border-bottom: 1px solid var(--line-inv); }
.project-meta li::before {
  content: ""; width: 2px; height: 12px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 8px rgba(203,184,155,0.7);
  margin-right: 13px; flex: none;
}

.project-shot {
  position: relative; border-radius: 16px; overflow: hidden; padding: 1px;
  background:
    linear-gradient(#14120f, #14120f) padding-box,
    linear-gradient(150deg, rgba(227,216,198,0.45), rgba(255,255,255,0.05) 42%, rgba(157,138,109,0.3)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 44px 90px -34px rgba(0,0,0,0.85), inset 0 0 60px rgba(0,0,0,0.25);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.project-shot img { width: 100%; height: auto; border-radius: 15px; display: block; }
.project-shot.narrow { max-width: 380px; margin: 0 auto; }
.project-shot:hover {
  transform: translateY(-8px);
  box-shadow: 0 64px 120px -34px rgba(0,0,0,0.9), 0 0 60px -10px rgba(203,184,155,0.28);
}

/* ---------- MDT ---------- */
.mdt-showcase { padding: clamp(30px, 6vh, 80px) var(--pad) clamp(80px, 14vh, 160px); }
.mdt-hero {
  max-width: var(--maxw); margin: 0 auto; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-inv);
  box-shadow: 0 54px 110px -40px rgba(0,0,0,.88), inset 0 0 80px rgba(0,0,0,.2);
}
.mdt-hero img { width: 100%; }
.mdt-showcase figcaption {
  font-family: "Oxanium", sans-serif; font-size: 13px; letter-spacing: .03em;
  color: var(--ink-inv-soft); padding: 16px 20px;
  border-top: 1px solid var(--line-inv); background: var(--bg-2);
}
.mdt-duo {
  max-width: var(--maxw); margin: 26px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
}
.mdt-duo figure {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line-inv);
  box-shadow: 0 44px 90px -40px rgba(0,0,0,.85);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.mdt-duo figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 54px 100px -40px rgba(0,0,0,.9), 0 0 40px -12px rgba(203,184,155,0.22);
}
.mdt-stack {
  max-width: var(--maxw); margin: 46px auto 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.mdt-stack span {
  font-family: "Oxanium", sans-serif; font-size: 13px; letter-spacing: .04em;
  color: var(--ink-inv-soft); font-weight: 500;
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel);
}

/* ---------- STORY / TIMELINE ---------- */
.story {
  position: relative; padding-bottom: clamp(60px, 10vh, 120px);
  background:
    radial-gradient(760px 420px at 88% 6%, rgba(203,184,155,0.08), transparent 60%),
    rgba(255,255,255,0.014);
  border-top: 1px solid var(--line);
}
.story-head { padding-bottom: clamp(30px, 5vh, 60px); }
.timeline {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(40px, 8vh, 90px);
  list-style: none;
}
.timeline li {
  display: grid; grid-template-columns: 170px 1fr; gap: clamp(20px, 4vw, 60px);
  padding: 36px 0; border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.t-year {
  font-family: "Oxanium", sans-serif; font-size: 14px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: .08em; padding-top: 4px;
}
.timeline h4 { font-weight: 700; font-size: clamp(21px, 2.4vw, 28px); letter-spacing: -.005em; text-transform: uppercase; }
.timeline p { margin-top: 9px; color: var(--ink-soft); font-size: 17px; line-height: 1.6; max-width: 560px; font-weight: 500; }

/* ---------- SERVERS / STATIONEN ---------- */
.servers-lead { padding-bottom: clamp(20px, 4vh, 40px); }
.servers { padding: 0 var(--pad) clamp(70px, 12vh, 150px); }
.servers-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.server-card {
  position: relative; padding: 32px 28px 26px;
  border: 1px solid var(--line); border-radius: 14px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,0.05), transparent 60%),
    var(--panel);
  box-shadow: inset 0 0 50px rgba(0,0,0,0.25);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.server-card:hover {
  transform: translateY(-6px); border-color: var(--line-warm);
  box-shadow: 0 44px 90px -40px rgba(0,0,0,0.85), 0 0 40px -14px rgba(203,184,155,0.2);
}
.server-card.active {
  border-color: var(--line-warm);
  background:
    radial-gradient(130% 90% at 0% 0%, rgba(203,184,155,0.16), transparent 58%),
    var(--panel-2);
  box-shadow: 0 44px 100px -40px rgba(0,0,0,0.85), inset 0 0 60px rgba(203,184,155,0.05), 0 0 50px -18px rgba(203,184,155,0.3);
}
.server-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.server-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Oxanium", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .1em; color: var(--accent-soft); text-transform: uppercase;
}
.server-status i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soft);
  box-shadow: 0 0 0 0 rgba(227,216,198,0.6); animation: pulse 2.4s infinite;
}
.server-status.past { color: var(--ink-soft); }
.server-status.past i { background: #6b655c; animation: none; box-shadow: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(227,216,198,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(227,216,198,0); }
  100% { box-shadow: 0 0 0 0 rgba(227,216,198,0); }
}
.server-role {
  font-family: "Oxanium", sans-serif; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500;
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 5px;
}
.server-name { font-weight: 700; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.01em; text-transform: uppercase; color: #fff; }
.server-desc { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); flex: 1; font-weight: 500; }
.server-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.server-tags span {
  font-family: "Oxanium", sans-serif; font-size: 12px; letter-spacing: .03em;
  color: var(--ink-inv-soft); font-weight: 500;
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 5px;
}
.server-card.active .server-tags span { border-color: var(--line-warm); }

/* ---------- ABOUT ---------- */
.about { position: relative; background: transparent; }
.about-inner { max-width: 860px; text-align: center; }
.about-title {
  font-weight: 700; font-size: clamp(34px, 5.5vw, 64px); letter-spacing: -.01em;
  margin-top: 16px; text-transform: uppercase;
  background: linear-gradient(176deg, #ffffff 0%, #ece3d6 45%, #ab9f89 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-text {
  margin-top: 30px; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.5;
  color: var(--ink-soft); font-weight: 500;
}
.about-now {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 36px;
  font-family: "Oxanium", sans-serif; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); padding: 11px 22px; border: 1px solid var(--line-warm); border-radius: 6px;
  background: rgba(203,184,155,0.05);
}
.about-now strong { color: #fff; font-weight: 600; }
.about-now i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soft);
  box-shadow: 0 0 0 0 rgba(227,216,198,0.6); animation: pulse 2.4s infinite;
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative; color: var(--ink-inv); padding: clamp(70px, 12vh, 130px) var(--pad);
  background: radial-gradient(820px 400px at 50% 120%, rgba(203,184,155,0.16), transparent 62%);
  border-top: 1px solid var(--line);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer-logo { font-weight: 700; font-size: 28px; letter-spacing: -.01em; }
.footer-logo span { color: var(--accent); }
.footer-tag {
  margin-top: 10px; color: var(--ink-inv-soft); font-size: 14px;
  font-family: "Oxanium", sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.footer-links { margin-top: 34px; display: flex; gap: 28px; justify-content: center; }
.footer-links a {
  font-family: "Oxanium", sans-serif; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-inv-soft); transition: color .25s var(--ease);
}
.footer-links a:hover { color: #fff; }
.footer-copy { margin-top: 42px; font-size: 13px; color: #6b655c; }

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-glow { animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 820px) {
  .project-grid, .project-grid.reverse { grid-template-columns: 1fr; gap: 40px; }
  .project-grid.reverse .project-text { order: 1; }
  .project-grid.reverse .project-shot { order: 2; }
  .project-desc, .project-meta { max-width: none; }
  .mdt-duo { grid-template-columns: 1fr; }
  .servers-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding: 26px 0; }
  .t-year { padding-top: 0; }
}
@media (min-width: 821px) and (max-width: 1000px) {
  .servers-grid { grid-template-columns: 1fr 1fr; }
}
