/* FIRST CLASS — base tokens & typography (no Tailwind runtime) */
@font-face {
  font-family: 'TTNormsPro';
  src: url('../fonts/TTNormsPro-Light.woff2') format('woff2'),
       url('../fonts/TTNormsPro-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TTNormsPro';
  src: url('../fonts/TTNormsPro-Medium.woff2') format('woff2'),
       url('../fonts/TTNormsPro-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --fc-bg: #161616;
  --fc-bg-deep: #0a0a0a;
  --fc-pearl: #F2F1ED;
  --fc-sand: #B38F6F;
  --fc-steel: #5F7579;
  --fc-muted: #9a9a9a;
  --fc-dim: #5a5a5a;
  --fc-danger: #d27474;
  --fc-header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--fc-bg);
  color: var(--fc-pearl);
  font-family: 'TTNormsPro', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.skip-link {
  position: absolute; top: -40px; left: 0; z-index: 100;
  background: var(--fc-sand); color: var(--fc-bg); padding: 8px 16px;
  transition: top .3s;
}
.skip-link:focus { top: 0; }

.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.10'/%3E%3C/svg%3E");
}

.fc-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.fc-main { flex: 1; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #161616; }
::-webkit-scrollbar-thumb { background: #2a2a2a; }

:focus-visible { outline: 1px solid var(--fc-sand); outline-offset: 2px; }
header[data-testid="main-header"] :focus-visible,
header[data-testid="main-header"] a:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body[data-menu-open="true"] [data-testid="back-to-top-btn"],
body[data-menu-open="true"] [data-testid="cookie-banner"],
body[data-menu-open="true"] [data-testid="fc-ai-placeholder"],
body[data-menu-open="true"] [data-testid="fc-ai-placeholder-panel"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
