/* ===========================
   MPI ARTIST SERVICES
   Base + Design Tokens
   =========================== */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=satoshi@300,400,500,700&display=swap');

/* ── TOKENS ── */
:root {
  /* Brand Colors */
  --navy:         #0D1B2A;
  --navy-deep:    #080f18;
  --navy-mid:     #132235;
  --navy-soft:    #1a2e40;
  --gold:         #C69214;
  --gold-light:   #d4a835;
  --gold-muted:   #a07610;
  --gold-subtle:  #2a2010;
  --teal:         #01696F;
  --teal-light:   #028a92;
  --off-white:    #F5F1E8;
  --warm-white:   #FAF7F2;
  --cream:        #EDE8DC;

  /* Semantic */
  --color-bg:             var(--navy);
  --color-surface:        var(--navy-mid);
  --color-surface-2:      var(--navy-soft);
  --color-border:         rgba(198, 146, 20, 0.18);
  --color-border-strong:  rgba(198, 146, 20, 0.35);
  --color-text:           var(--off-white);
  --color-text-muted:     rgba(245, 241, 232, 0.6);
  --color-text-faint:     rgba(245, 241, 232, 0.35);
  --color-primary:        var(--gold);
  --color-primary-hover:  var(--gold-light);

  /* Type Scale */
  --text-xs:    clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:    clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base:  clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:    clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:    clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:   clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:   clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero:  clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Clash Display', 'Helvetica Neue', sans-serif;
  --font-body:    'Satoshi', 'Inter', sans-serif;

  /* Radius */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.45);
  --shadow-gold: 0 0 40px rgba(198, 146, 20, 0.15);

  /* Layout */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;
  --nav-height:      72px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p, li, figcaption {
  text-wrap: pretty;
  max-width: 68ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}

::selection {
  background: rgba(198, 146, 20, 0.3);
  color: var(--off-white);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ── LAYOUT UTILITIES ── */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.container--narrow {
  max-width: var(--content-default);
}

.container--text {
  max-width: var(--content-narrow);
}

/* ── TYPOGRAPHY UTILITIES ── */
.display {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.heading-xl {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.body-lg {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.6;
}

.label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-muted  { color: var(--color-text-muted); }
.text-faint  { color: var(--color-text-faint); }
.text-gold   { color: var(--gold); }
.text-teal   { color: var(--teal-light); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition), 
              transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 20px rgba(198, 146, 20, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border: 1px solid var(--color-border-strong);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  color: var(--color-text);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-base);
}

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

.divider-gold {
  width: 48px;
  height: 2px;
  background: var(--gold);
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(198, 146, 20, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(198, 146, 20, 0.25);
}

.badge-teal {
  background: rgba(1, 105, 111, 0.2);
  color: var(--teal-light);
  border: 1px solid rgba(1, 105, 111, 0.3);
}

.badge-navy {
  background: rgba(13, 27, 42, 0.8);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* ── CARDS ── */
.card {
  background: var(--navy-mid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--color-border-strong);
}

.card-featured {
  background: var(--navy-mid);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-gold);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--transition-slow), border-color var(--transition-slow),
              backdrop-filter var(--transition-slow);
}

.nav.scrolled {
  background: rgba(8, 15, 24, 0.9);
  border-bottom-color: var(--color-border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--off-white);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── SECTION SPACING ── */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section-sm {
  padding-block: clamp(var(--space-12), 5vw, var(--space-20));
}

/* ── GRID UTILITIES ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* ── NOISE TEXTURE OVERLAY ── */
.noise::after {
  content: '';
  position: absolute;
  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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* ── GOLD RULE ── */
.rule-gold {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding-inline: var(--space-5); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }

  .btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-sm);
  }
}
