/* ============================================
   VANTEDGE DX — MAIN STYLESHEET
   Design System: Minimalist / Industrial / Futuristic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ============================================
   CSS VARIABLES — DESIGN TOKENS
   ============================================ */
:root {
  /* Colors */
  --color-bg:         #0e0e0f;
  --color-surface:    #141416;
  --color-surface-2:  #1a1a1d;
  --color-border:     rgba(255,255,255,0.06);
  --color-border-strong: rgba(255,255,255,0.12);

  --color-text:       #e8e6e1;
  --color-text-muted: #6b6a68;
  --color-text-dim:   #3a3938;

  --color-blue:       #FF7F1F;
  --color-blue-glow:  rgba(29, 122, 255, 0.15);
  --color-blue-dim:   rgba(29, 122, 255, 0.06);
  --color-red:        #e0001b;
  --color-red-glow:   rgba(224, 0, 27, 0.12);

  --color-white:      #ffffff;
  --color-off-white:  #e8e6e1;

  /* Typography */
  --font-display:     'Bebas Neue', sans-serif;
  --font-heading:     'Syne', sans-serif;
  --font-body:        'DM Sans', sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   8rem;
  --space-2xl:  12rem;

  /* Layout */
  --max-width:        1280px;
  --gutter:           clamp(1.5rem, 5vw, 4rem);

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout: cubic-bezier(0.85, 0, 0.15, 1);
  --duration-fast: 200ms;
  --duration-med:  400ms;
  --duration-slow: 800ms;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--color-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s var(--ease-out), opacity 0.2s;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,127,31,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.18s var(--ease-out), width 0.3s, height 0.3s, opacity 0.3s;
  transform: translate(-50%, -50%);
}
.cursor-ring.hover {
  width: 56px; height: 56px;
  border-color: var(--color-blue);
  background: var(--color-blue-dim);
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */
.t-display {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 11rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.t-hero {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.t-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
}
.t-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}
.t-h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
}
.t-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.t-body { font-size: 1rem; line-height: 1.75; font-weight: 300; }
.t-body-lg { font-size: 1.15rem; line-height: 1.7; font-weight: 300; }

.accent-blue { color: var(--color-blue); }
.accent-red  { color: var(--color-red); }

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--space-xl) 0;
}
.section-sm {
  padding: var(--space-lg) 0;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--duration-med) var(--ease-out),
              border-color var(--duration-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14,14,15,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--color-border);
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-logo span { color: var(--color-blue); }
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--color-blue);
  transition: width var(--duration-med) var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--color-text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-blue);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast), transform var(--duration-fast);
}
.nav-cta:hover {
  background: #ff9a3d;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--color-text);
  transition: transform var(--duration-med) var(--ease-out), opacity var(--duration-med);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 850;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity var(--duration-med) var(--ease-out), transform var(--duration-med) var(--ease-out);
}
.nav-mobile.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.nav-mobile .nav-link {
  font-size: 1.2rem;
  letter-spacing: 0.15em;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration-med) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  opacity: 0;
  transition: opacity var(--duration-fast);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 0 0 0 var(--color-blue-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--color-blue-glow), 0 0 0 1px rgba(255,127,31,0.3);
}
.btn-outline {
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  transform: translateY(-2px);
}
.btn-arrow::after {
  content: '→';
  transition: transform var(--duration-fast);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================
   DIVIDER / RULE
   ============================================ */
.rule {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}
.rule-accent {
  width: 48px; height: 2px;
  background: var(--color-blue);
  margin-bottom: var(--space-md);
}

/* ============================================
   SECTION LABEL
   ============================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-md);
}
.section-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--color-blue);
}

/* ============================================
   ABSTRACT VISUAL BLOCKS (Portfolio/Lab)
   ============================================ */
.abstract-block {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  background: var(--color-surface-2);
}
.abstract-block canvas {
  width: 100%; height: 100%;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: border-color var(--duration-med), transform var(--duration-med) var(--ease-out);
}
.card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-4px);
}
.card-blue:hover {
  border-color: rgba(255,127,31,0.3);
  box-shadow: 0 0 40px var(--color-blue-dim);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.form-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.form-input,
.form-select,
.form-textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6a68' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  padding-right: 3rem;
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px var(--color-blue-dim);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-dim); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: var(--space-lg);
}
.footer-tagline span { color: var(--color-blue); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}
.footer-link:hover { color: var(--color-text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  transition: border-color var(--duration-fast), color var(--duration-fast);
}
.footer-social-link:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }
[data-reveal-delay="6"] { transition-delay: 0.6s; }

/* ============================================
   PAGE TRANSITION OVERLAY
   ============================================ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9990;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.page-transition.active { opacity: 1; }

/* ============================================
   LOADING SCREEN
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 9995;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.loader-logo span { color: var(--color-blue); }
.loader-bar {
  width: 200px; height: 1px;
  background: var(--color-border);
  overflow: hidden;
}
.loader-bar-fill {
  width: 0%; height: 100%;
  background: var(--color-blue);
  transition: width 1.2s var(--ease-out);
}
.loader-text {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}
