/* ===========================
   AI MERCHANTS LTD — Stylesheet
   =========================== */

:root {
  --bg:        #050206;
  --graphite:  #3B3B3B;
  --accent:    #9A8174;
  --white:     #FFFFFF;
  --off-white: #E8E2DC;
  --muted:     #888080;
  --border:    rgba(154,129,116,0.18);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui:      'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── GRAIN TEXTURE ── */
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='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ═══════════════════════════
   NAV
═══════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(5,2,6,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--white);
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}
.nav-links a {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 300;
  color: var(--off-white);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ═══════════════════════════
   HERO
═══════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 160px 48px 100px;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(154,129,116,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(59,59,59,0.4) 0%, transparent 60%);
  pointer-events: none;
}

.hero-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(154,129,116,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(154,129,116,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(68px, 10vw, 128px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 36px;
}
.hero-title .line { display: block; }
.hero-title .italic { font-style: italic; color: var(--off-white); }

.hero-sub {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 52px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 16px 36px;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--off-white);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 16px 36px;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-full { width: 100%; text-align: center; }

.hero-badge {
  position: absolute;
  bottom: 48px; right: 48px;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge-divider { color: var(--accent); }

.scroll-hint {
  position: absolute;
  bottom: 48px; left: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.scroll-line {
  width: 48px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--white);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* ═══════════════════════════
   MARQUEE
═══════════════════════════ */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  background: rgba(59,59,59,0.12);
}
.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee-track .dot {
  color: var(--accent);
  letter-spacing: 0;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════
   SECTION COMMON
═══════════════════════════ */
.section-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
}
.section-title em {
  font-style: italic;
  color: var(--off-white);
}

/* ═══════════════════════════
   ABOUT
═══════════════════════════ */
.about {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--off-white);
  margin-bottom: 28px;
}

.about-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 56px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 24px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ═══════════════════════════
   SERVICES
═══════════════════════════ */
.services {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

.services-header {
  margin-bottom: 72px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.service-card {
  background: rgba(59,59,59,0.1);
  border: 1px solid var(--border);
  padding: 48px;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-card:hover {
  background: rgba(154,129,116,0.06);
  border-color: rgba(154,129,116,0.35);
}

.service-num {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.7;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
}
.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.2;
}

.service-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  flex: 1;
}

.service-link {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-top: auto;
  transition: letter-spacing 0.3s, color 0.2s;
}
.service-card:hover .service-link {
  letter-spacing: 0.3em;
  color: var(--off-white);
}

/* ═══════════════════════════
   STATEMENT
═══════════════════════════ */
.statement {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(59,59,59,0.08);
}

.statement-quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 300;
  font-style: normal;
  line-height: 1.5;
  color: var(--off-white);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: -0.01em;
}
.statement-quote em {
  font-style: italic;
  color: var(--accent);
}

/* ═══════════════════════════
   CONTACT
═══════════════════════════ */
.contact {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 28px;
  max-width: 380px;
}

.contact-card {
  background: rgba(59,59,59,0.12);
  border: 1px solid var(--border);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-card-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-email {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  color: var(--white);
  word-break: break-all;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--accent); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.contact-detail {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.detail-label {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-val {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--off-white);
  text-align: right;
}

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
.footer {
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--white);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  text-align: center;
}

.footer-right a {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-right a:hover { color: var(--accent); }

/* ═══════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero .reveal:nth-child(2) { transition-delay: 0.25s; }
.hero .reveal:nth-child(3) { transition-delay: 0.4s; }
.hero .reveal:nth-child(4) { transition-delay: 0.55s; }

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */
.br-desktop { display: block; }

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 52px; }
  .about-stats { grid-template-columns: repeat(3,1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 52px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 130px 24px 80px; }
  .hero-badge { display: none; }
  .scroll-hint { left: 24px; bottom: 32px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 36px 28px; }

  .about-stats { grid-template-columns: 1fr 1fr; gap: 28px; }

  .contact-card { padding: 36px 28px; }

  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer-copy { order: 2; }
  .footer-right { order: 3; }

  .br-desktop { display: none; }

  .statement-quote { font-size: 22px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 58px; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
  .about-stats { grid-template-columns: 1fr; }
  .contact-email { font-size: 20px; }
}
