@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@300;400;500&display=swap');

:root {
  --bg-void: #080807;
  --bg-deep: #0d0d0b;
  --bg-surface: #141412;
  --bg-raised: #1c1c19;

  --border-dim: rgba(255, 255, 255, 0.06);
  --border-mid: rgba(255, 255, 255, 0.12);
  --border-bright: rgba(255, 255, 255, 0.22);

  --text-primary: #f0ede4;
  --text-secondary: #9a9890;
  --text-muted: #5c5b58;
  --text-dim: #3a3937;

  --green: #3dba6b;
  --green-dim: rgba(61, 186, 107, 0.12);
  --green-glow: rgba(61, 186, 107, 0.4);
  --gold: #c9a96e;
  --gold-dim: rgba(201, 169, 110, 0.15);
  --red-alert: #e05252;

  --eu-blue: #003399;
  --eu-gold: #ffcc00;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.75rem;
  --text-6xl: 5rem;
  --text-hero: clamp(3.5rem, 8vw, 7rem);

  --site-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--bg-void);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.grain::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9998;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

main {
  position: relative;
  z-index: 1;
}

.container {
  width: min(var(--site-max), calc(100% - 4rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.section-tight {
  padding: 4rem 0;
}

.page-hero {
  padding: 10rem 0 4rem;
  border-bottom: 1px solid var(--border-dim);
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-void));
}

.page-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  border: 1px solid var(--border-mid);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  background: var(--bg-surface);
}

.page-title {
  margin: 1.25rem 0 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 5.25rem);
  line-height: 0.95;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin: 0;
  font-size: var(--text-lg);
  max-width: 760px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  transition-delay: calc(var(--i) * 0.08s);
}

.lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--green);
  color: #000;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 0 var(--green-glow);
}

.btn-primary:hover {
  background: #48d67a;
  box-shadow: 0 0 30px var(--green-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
  background: var(--bg-raised);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 7, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-dim);
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-color: var(--border-mid);
}

.header-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-initials {
  width: 48px;
  height: 48px;
  padding: 4px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
  line-height: 1;
}

.logo-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-raised);
}

.nav-link sup {
  font-size: 0.55rem;
  color: var(--green);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  transition: border-color 0.2s ease, background 0.2s ease;
  margin-left: 0.5rem;
}

.nav-cta:hover,
.nav-cta.active {
  border-color: var(--green);
  background: var(--green-dim);
}

.scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  width: 0%;
  background: var(--green);
  transition: width 0.1s linear;
}

.burger {
  background: transparent;
  border: 0;
  margin-left: auto;
  padding: 0;
}

.site-footer {
  border-top: 1px solid var(--border-dim);
  background: var(--bg-deep);
  position: relative;
  z-index: 1;
}

.footer-container {
  width: min(var(--site-max), calc(100% - 4rem));
  margin: 0 auto;
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-dim);
}

.footer-headline {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: var(--text-primary);
  line-height: 1.1;
}

.footer-location {
  margin: 1rem 0 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-label {
  margin: 0 0 0.6rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.footer-col a,
.footer-col p {
  margin: 0;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: grid;
  gap: 0.4rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--text-primary);
}

.custom-cursor {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease,
    background 0.2s ease;
}

.custom-cursor.hover {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--green);
}

@media (min-width: 901px) {
  body {
    cursor: none;
  }

  a,
  button {
    cursor: none;
  }
}

@media (max-width: 900px) {
  .header-inner,
  .container,
  .footer-container {
    width: calc(100% - 2rem);
    padding-left: 0;
    padding-right: 0;
  }

  .header-inner {
    gap: 1rem;
  }

  .main-nav {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--bg-void);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 0.5rem;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link,
  .nav-cta {
    font-size: 1rem;
    margin: 0;
  }

  .burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .burger span {
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    display: block;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-cursor {
    display: none;
  }
}

@media (min-width: 901px) {
  .burger {
    display: none;
  }
}
