/* ════════════════════════════════════════════════════
   E-MIKE 3D LAB — Shared Stylesheet
   Industrial Dark · Amber/Orange accent · Bebas Neue
   ════════════════════════════════════════════════════ */

@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InversionzUnboxed";
  src: url("fonts/InversionzUnboxed.ttf") format("truetype");
  font-display: swap;
}

/* ── Variables ── */
:root {
  --bg:        #0f0e0d;
  --surface:   #171614;
  --surface-2: #1e1c1a;
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);
  --accent:    #f97316;
  --accent-dim:rgba(249,115,22,0.12);
  --text:      #f0ece6;
  --muted:     #8a8680;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --max-w:     1600px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { cursor: none !important; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Dot-grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Gradient vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(249,115,22,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 100% 50% at 50% 50%, transparent 45%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  z-index: 0;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Cursor ── */
#cursor-dot, #cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
#cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
}
#cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.35);
  transition: width .25s ease, height .25s ease, border-color .25s ease;
}
#cursor-ring.hovering {
  width: 48px; height: 48px;
  border-color: var(--accent);
}

/* ── Navigation ── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(15,14,13,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger mobile */
#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
#nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}

/* ── Page header ── */
.page-header {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 6vw 48px;
}

.page-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text);
}

.page-subtitle {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Section divider ── */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Footer ── */
#footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 28px 6vw 36px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner address { font-style: normal; line-height: 1.8; }

.footer-inner a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.footer-inner a:hover {
  color: var(--text);
  border-bottom-color: rgba(255,255,255,0.25);
}

.footer-back {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  transition: color .25s;
}
.footer-back:hover { color: var(--accent); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim { opacity: 0; }
.anim.visible { animation: fadeUp 1.4s var(--ease) forwards; }

/* Scale on scroll */
.scroll-scale {
  opacity: 0;
  transform: scale(0.96) translateY(32px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.scroll-scale.scaled-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Stagger children */
.stagger-item {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  * { cursor: auto !important; }
  #cursor-dot, #cursor-ring { display: none; }

  #nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(15,14,13,0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

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

  .nav-links a {
    padding: 14px 6vw;
    width: 100%;
    font-size: 1.3rem;
  }
  .nav-links a::after { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (min-width: 2000px) {
  .page-title { font-size: clamp(6rem, 5vw, 8rem); }
}
