/* ============================================================
   FUTURE MARKETING STUDIO — GLOBAL DESIGN SYSTEM
   Foundation styles shared across all pages
   ============================================================ */

/* ── 1. RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--red); color: #fff; }

/* ── 2. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:             #090909;
  --bg-2:           #111111;
  --bg-3:           #1a1a1a;
  --bg-4:           #222222;

  /* Accent */
  --red:            #E02424;
  --red-hover:      #c91e1e;
  --red-dim:        rgba(224, 36, 36, 0.18);
  --red-border:     rgba(224, 36, 36, 0.28);

  /* Text */
  --text:           #F0EDE8;
  --text-2:         #8A8680;
  --text-3:         #4A4744;

  /* Borders */
  --border:         rgba(255, 255, 255, 0.06);
  --border-2:       rgba(255, 255, 255, 0.11);
  --border-3:       rgba(255, 255, 255, 0.18);

  /* Fonts */
  --font-display:   'Bebas Neue', sans-serif;
  --font-body:      'Montserrat', sans-serif;

  /* Layout */
  --nav-h:          72px;
  --max-w:          1280px;
  --section-v:      clamp(72px, 10vw, 140px);
  --section-h:      clamp(20px, 5vw, 80px);

  /* Transitions */
  --ease:           cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in:        cubic-bezier(0.4, 0, 1, 1);
  --ease-out:       cubic-bezier(0, 0, 0.2, 1);
  --t-fast:         0.2s;
  --t-med:          0.4s;
  --t-slow:         0.7s;
}

/* ── 3. TYPOGRAPHY SCALE ─────────────────────────────────── */
.t-display-xl {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}
.t-display-lg {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.93;
  letter-spacing: 0;
}
.t-display-md {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.0;
}
.t-display-sm {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.1;
}
.t-body-lg {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 300;
  line-height: 1.85;
}
.t-body-md {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 300;
  line-height: 1.8;
}
.t-body-sm {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
}
.t-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.t-mono {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

/* ── 4. LAYOUT UTILITIES ─────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-h);
  width: 100%;
}

.section-pad {
  padding: var(--section-v) 0;
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 48px; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.color-red   { color: var(--red); }
.color-muted { color: var(--text-2); }

/* ── 5. SHARED COMPONENTS ────────────────────────────────── */

/* Section Label */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Red accent line */
.red-line {
  width: 56px;
  height: 1px;
  background: var(--red);
  margin: 28px 0;
}
.red-line.center { margin-left: auto; margin-right: auto; }
.red-line.lg { width: 80px; }

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ── 6. BUTTON SYSTEM ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-hover); }

.btn-primary-lg {
  background: var(--red);
  color: #fff;
  padding: 18px 44px;
  font-size: 12px;
}
.btn-primary-lg:hover { background: var(--red-hover); }

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--border-3); color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 14px 0;
  position: relative;
  gap: 0;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 10px; left: 0;
  width: 100%; height: 1px;
  background: var(--text-3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost:hover::after { transform: scaleX(1); }

/* ── 7. NAVIGATION ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-h);
  transition: background var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(9, 9, 9, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-height: 44px;
}
.nav-logo-mark {
  width: auto;
  height: 32px;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  display: block;
}
.footer-logo-img {
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--t-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active::after,
.nav-links a:hover::after { transform: scaleX(1); }

/* Nav CTA */
.nav-cta {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background var(--t-fast);
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  white-space: nowrap;
  text-decoration: none;
}
.nav-cta:hover { background: var(--red-hover); }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(9, 9, 9, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  backdrop-filter: blur(20px);
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.nav-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 48px;
}
.nav-overlay-links a {
  font-family: var(--font-display);
  font-size: clamp(40px, 10vw, 64px);
  letter-spacing: 0.04em;
  color: var(--text-3);
  transition: color 0.25s;
  line-height: 1.15;
  min-height: 60px;
  display: flex;
  align-items: center;
}
.nav-overlay-links a:hover { color: var(--red); }
.nav-overlay-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.nav-overlay-bottom a.btn-primary {
  font-size: 11px;
  padding: 14px 32px;
}
.nav-overlay-contact {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-align: center;
}

/* ── 8. FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 25%, rgba(224,36,36,0.5) 75%, transparent 100%);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--section-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--text);
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.75;
  max-width: 240px;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-social a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
  transition: color var(--t-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-social a:hover { color: var(--red); }

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-nav a {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--t-fast);
  min-height: 32px;
  display: flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--red); }

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.footer-copy {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-3);
  text-align: right;
  line-height: 1.8;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px var(--section-h);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom p {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  color: var(--text-3);
  letter-spacing: 0.08em;
}

/* ── 9. PAGE HERO (shared structure) ─────────────────────── */
.page-hero {
  position: relative;
  min-height: clamp(380px, 55vh, 600px);
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--section-v);
  padding-top: calc(var(--nav-h) + 60px);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9,9,9,0.5) 0%, rgba(9,9,9,0.85) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-h);
  width: 100%;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--text);
}
.page-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 540px;
  margin-top: 20px;
}

/* ── 10. NOISE TEXTURE ───────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.38;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* ── 11. CUSTOM CURSOR ───────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition-property: width, height, background, border-color, opacity;
  transition-duration: var(--t-fast);
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--red);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid rgba(224, 36, 36, 0.5);
  transition-duration: var(--t-med);
  transition-timing-function: var(--ease-out);
}
.cursor-ring.hovering {
  width: 52px; height: 52px;
  border-color: rgba(224, 36, 36, 0.3);
  background: rgba(224, 36, 36, 0.04);
}
.cursor-dot.hovering { width: 0; height: 0; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  * { cursor: auto !important; }
}

/* ── 12. PAGE TRANSITION ─────────────────────────────────── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: var(--bg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-in);
}
.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ── 13. PAGE LOADER ─────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9996;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  opacity: 1;
  transition: opacity 0.6s var(--ease-out);
}
.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-mark {
  animation: loaderPulse 1.4s ease-in-out infinite;
}
.loader-bar {
  width: 120px;
  height: 1px;
  background: var(--border-2);
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-100%);
  animation: loaderSlide 1.2s var(--ease) infinite;
}
@keyframes loaderPulse {
  0%,100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── 14. SCROLL REVEAL BASE ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }


/* ── 15. FORM VALIDATION ─────────────────────────────────── */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--red) !important;
}
.field-error {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--red);
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* ── 16. ACCESSIBILITY ───────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
