/* ============================================================
   MMT — mmt.ad  ·  Global stylesheet
   Dark, bold, signal-orange. Display: Unbounded / Body: Manrope
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --bg-2: #101014;
  --surface: #15151a;
  --line: rgba(245, 243, 238, 0.09);
  --text: #f5f3ee;
  --muted: #9a968d;
  --accent: #ff5c28;
  --accent-soft: rgba(255, 92, 40, 0.12);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Manrope", sans-serif;
  --max: 1200px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #0b0b0d; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(30px, 4.6vw, 54px);
  max-width: 18ch;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 56ch;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.02em;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav-links a { color: var(--muted); transition: color 0.25s; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 15px 28px;
  border-radius: 100px;
  background: var(--accent);
  color: #0b0b0d;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 92, 40, 0.35);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.btn-sm { padding: 11px 22px; font-size: 11px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 78% 18%, rgba(255, 92, 40, 0.16), transparent 65%),
    radial-gradient(ellipse 50% 40% at 12% 85%, rgba(255, 92, 40, 0.07), transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 30%, transparent 75%);
  opacity: 0.5;
}
.hero-inner { position: relative; }
.hero h1 {
  font-size: clamp(40px, 7.2vw, 96px);
  font-weight: 800;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin: 30px 0 44px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Rotating word */
.rotator {
  display: inline-block;
  position: relative;
  color: var(--accent);
  min-width: 6.5ch;
}
.rotator span {
  position: absolute;
  left: 0; top: 0;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.5s, transform 0.5s;
  white-space: nowrap;
}
.rotator span.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track b { color: var(--accent); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 64px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.service-card {
  grid-column: span 2;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 40px 34px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
  overflow: hidden;
  transition: transform 0.35s, border-color 0.35s;
}
.service-card:nth-child(4) { grid-column: span 3; }
.service-card:nth-child(5) { grid-column: span 3; }
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 85% -10%, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(255, 92, 40, 0.45); }
.service-card:hover::before { opacity: 1; }
.service-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.service-card h3 { font-size: 21px; position: relative; }
.service-card p { color: var(--muted); font-size: 15px; position: relative; flex: 1; }
.service-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s, gap 0.25s;
}
.service-card:hover .service-link { color: var(--accent); gap: 14px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  padding: 46px 34px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 10px;
}
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -0.62em;
  left: 0;
  background: var(--bg);
  padding-right: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
}
.section.alt .step::before { background: var(--bg-2); }
.step h3 { font-size: 18px; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Split / About ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}
.split .lead { margin-top: 22px; }
.checklist { margin-top: 30px; display: grid; gap: 14px; }
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 16px;
}
.checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background-color: var(--accent-soft);
  border: 1px solid rgba(255, 92, 40, 0.5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23ff5c28' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  padding: 48px 42px;
}
.panel .big-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 22px;
}
.panel p { color: var(--muted); }
.panel .sig { margin-top: 28px; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Capability list (service pages) ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 34px 30px;
  transition: border-color 0.3s, transform 0.3s;
}
.cap:hover { border-color: rgba(255, 92, 40, 0.45); transform: translateY(-4px); }
.cap h3 { font-size: 17px; margin-bottom: 10px; }
.cap p { color: var(--muted); font-size: 15px; }

/* ---------- Page hero (service pages) ---------- */
.page-hero {
  position: relative;
  padding: 190px 0 100px;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(36px, 5.8vw, 72px); font-weight: 800; max-width: 16ch; }
.page-hero .lead { margin-top: 28px; }
.crumb {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
  display: block;
}
.crumb a:hover { color: var(--accent); }
.crumb b { color: var(--accent); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  padding: 130px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-band .hero-bg { opacity: 0.9; }
.cta-band h2 { font-size: clamp(32px, 5vw, 60px); max-width: 20ch; margin: 0 auto 26px; position: relative; }
.cta-band .lead { margin: 0 auto 40px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 70px 0 36px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 56px;
}
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text);
  margin-bottom: 20px;
}
.footer-grid ul { display: grid; gap: 12px; }
.footer-grid a { color: var(--muted); transition: color 0.25s; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); max-width: 34ch; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 1; min-height: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 44px 20px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(11, 11, 13, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 10px 28px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav-links .btn { margin-top: 14px; }
  .nav-toggle { display: block; }
  .services-grid, .cap-grid, .process { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:nth-child(3) { border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .section { padding: 84px 0; }
}
