/* ============================================================
   Millions Trading Enterprise — Dakar
   Palette: desaturated 70s photo (faded print, warm grain)
   ============================================================ */

:root {
  --bg:        #efe6d0;
  --bg-2:      #e6d9bd;
  --ink:       #3a2f1a;
  --ink-soft:  #6a5c3c;
  --a:         #a67c00;   /* mustard */
  --b:         #6b7a3a;   /* avocado */
  --c:         #c04e1a;   /* burnt sienna */
  --line:      color-mix(in srgb, var(--ink) 22%, transparent);
  --card:      #f6efdd;
  --wrap:      68rem;
  --pad:       clamp(1.25rem, 5vw, 4rem);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #1c1810;
    --bg-2:     #221d13;
    --ink:      #ece2c8;
    --ink-soft: #b3a684;
    --a:        #d9a72a;
    --b:        #9aab5c;
    --c:        #e0703a;
    --card:     #262013;
    --line:     color-mix(in srgb, var(--ink) 26%, transparent);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain overlay — the "faded print" texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  body::before { mix-blend-mode: screen; opacity: 0.14; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* ---------- scroll progress strip ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  z-index: 90;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--a), var(--c) 55%, var(--b));
  transform-origin: 0 50%;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .progress span {
    animation: fill linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.topnav {
  display: flex;
  gap: 1.1rem;
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.topnav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.topnav a:hover { color: var(--ink); border-bottom-color: var(--c); }

.callbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
}
.callbtn:hover { background: var(--c); }
.callbtn .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--b);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--b) 70%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--b) 70%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.9rem;
}
h2 {
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 0.6rem; }
.section-lede {
  max-width: 46rem;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
  text-wrap: pretty;
}

/* ---------- hero ---------- */
.hero {
  background: var(--bg);
  padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(3rem, 8vw, 6.5rem);
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
h1 {
  font-size: clamp(2.6rem, 1.4rem + 6.4vw, 6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}
.caret {
  display: inline-block;
  color: var(--c);
  font-weight: 400;
  animation: blink 1.05s steps(1) infinite;
  margin-inline-start: 0.06em;
}
@keyframes blink { 50% { opacity: 0; } }

/* signature: audio-visualizer bars under the hero name */
.viz {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
  margin: 0 0 1.4rem;
}
.viz i {
  display: block;
  width: 5px;
  height: 100%;
  background: var(--a);
  transform-origin: 50% 100%;
  animation: bar 1.5s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
}
.viz i:nth-child(3n)   { background: var(--c); }
.viz i:nth-child(4n+1) { background: var(--b); }
@keyframes bar {
  from { transform: scaleY(0.16); }
  to   { transform: scaleY(1); }
}

.lede {
  max-width: 34rem;
  color: var(--ink-soft);
  margin: 0 0 1.8rem;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--ink);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--c); color: #fff6ea; border-color: var(--c); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-small { min-height: 44px; padding: 0.55rem 1rem; font-size: 0.78rem; }

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
@media (min-width: 34rem) { .hero-facts { grid-template-columns: repeat(3, auto); } }
.hero-facts strong { color: var(--ink); }

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.82) contrast(1.04);
}
.hero-figure figcaption,
figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* ---------- full-bleed colour bands ---------- */
.band { padding: clamp(3rem, 8vw, 7rem) 0; }
.band-a { background: var(--bg-2); }
.band-b { background: var(--b); color: #f4f0dd; }
.band-c { background: var(--bg); }
.band-d { background: var(--a); color: #2a2109; }
.band-e { background: var(--bg-2); }
.band-quote { background: var(--ink); color: var(--bg); }

.band-b .eyebrow, .band-b .section-lede,
.band-d .eyebrow, .band-d .section-lede { color: color-mix(in srgb, currentColor 72%, transparent); }
.band-b a, .band-d a { color: inherit; }

/* ---------- services menu ---------- */
.menu { display: grid; gap: clamp(2rem, 4vw, 3.25rem); }
@media (min-width: 58rem) {
  .menu { grid-template-columns: 1fr 1fr; column-gap: clamp(2.5rem, 6vw, 5rem); }
}
.menu-block h3 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1.25rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--line);
}
.item .name { font-weight: 500; }
.item .name em {
  display: block;
  font-style: normal;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}
.item .price {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--c);
}
.menu-note {
  margin: 2.5rem 0 0;
  max-width: 52rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--a);
  padding-left: 1rem;
  text-wrap: pretty;
}

/* ---------- story ---------- */
.story { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 58rem) { .story { grid-template-columns: 1.15fr 0.85fr; } }
.story-text p { margin: 0 0 1.1rem; max-width: 40rem; text-wrap: pretty; }
.story-side figure { margin: 0 0 1.75rem; }
.story-side img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, #f4f0dd 30%, transparent);
  filter: saturate(0.8) contrast(1.05);
}
.stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  border-top: 1px solid color-mix(in srgb, #f4f0dd 32%, transparent);
  padding-top: 1.25rem;
}
.stats dt {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: #f4f0dd;
}
.stats dd {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: color-mix(in srgb, #f4f0dd 78%, transparent);
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 74rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--c);
  margin-bottom: 0.5rem;
}
.steps p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- footer cards ---------- */
.footer-cards { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .footer-cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid color-mix(in srgb, #2a2109 22%, transparent);
  padding: 1.5rem;
  border-radius: 2px;
}
.card h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours th, .hours td { padding: 0.42rem 0; text-align: left; font-weight: 400; }
.hours th { color: color-mix(in srgb, #2a2109 78%, transparent); }
.hours td { text-align: right; font-family: var(--font-mono); font-size: 0.84rem; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px dotted color-mix(in srgb, #2a2109 22%, transparent); }
.hours .closed td { color: var(--c); font-weight: 600; }
.card-note {
  font-size: 0.85rem;
  line-height: 1.55;
  color: color-mix(in srgb, #2a2109 82%, transparent);
  margin: 1rem 0 0;
  text-wrap: pretty;
}
.card address { font-style: normal; line-height: 1.7; }
.big-phone {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.big-phone a { text-decoration: none; border-bottom: 3px solid var(--c); }
.big-phone a:hover { color: var(--c); }
.card .btn { margin-top: 1.25rem; width: 100%; }
.card-address .btn { margin-top: 1.25rem; }

/* ---------- zones ---------- */
.zones {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
@media (min-width: 34rem) { .zones { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 58rem) { .zones { grid-template-columns: repeat(3, 1fr); } }
.zones li {
  padding: 0.55rem 0 0.55rem 1.1rem;
  border-bottom: 1px dotted var(--line);
  position: relative;
}
.zones li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 6px; height: 6px;
  background: var(--c);
}

/* ---------- quote ---------- */
.band-quote blockquote { margin: 0; max-width: 52rem; }
.band-quote p {
  font-size: clamp(1.25rem, 0.9rem + 1.8vw, 2.1rem);
  line-height: 1.28;
  font-weight: 300;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  text-wrap: pretty;
}
.band-quote cite {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-style: normal;
  color: color-mix(in srgb, var(--bg) 70%, transparent);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 6vw, 4rem) 0 5rem;
}
.footer-inner {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 2rem;
}
@media (min-width: 52rem) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
}
.footer-name { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.4rem; }
.footer-line { margin: 0 0 0.3rem; font-size: 0.88rem; color: var(--ink-soft); }
.footer-line a { color: var(--ink); font-family: var(--font-mono); font-weight: 600; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.footer-nav a { color: var(--ink-soft); text-decoration: none; padding: 0.35rem 0; }
.footer-nav a:hover { color: var(--ink); }

.claim-banner {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
}
.claim-banner:hover { color: var(--ink); border-color: var(--ink); }

.attribution {
  max-width: var(--wrap);
  margin: 1.5rem auto 0;
  padding-inline: var(--pad);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.55;
}
.attribution a { color: inherit; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .viz i { animation: none; transform: scaleY(0.55); }
  .callbtn .dot { animation: none; }
  .progress span { animation: none; transform: scaleX(1); }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
