
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

img, video, svg {
    display: block;
    max-width: 100%;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    border: 0;
    background: transparent;
}

ol, ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

/* ============ Body ============ */
.content-wrapper {
  flex: 1;
}

/* ============ Selectors ============ */
:root {
  --scroll-orange:rgb(219, 126, 20);
  --scroll-gray:rgb(39, 39, 39);
  color-scheme: dark;
}

/* ============ Cursor Icons ============ */
.cursor-pointer {
    cursor: pointer;
}

/* ============ Scroll Behavior ============ */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-orange) var(--scroll-gray);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--scroll-gray); }
::-webkit-scrollbar-thumb { background: var(--scroll-orange); border-radius: 3px; }

/* ============ Loading Screen ============ */
#loading-screen {
    position: fixed; inset: 0; z-index: 99999;
    background: #0e0e0e;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s ease;
}
#loading-screen.hidden { opacity: 0; pointer-events: none; }
.spinner {
    width: 36px; height: 36px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: #d97c20;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Noise grain overlay ============ */
body::after {
    content: '';
    position: fixed; inset: 0; z-index: 9999; pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ============ Utility ============ */
.ct-accent { color: #d97c20; }