/*
Theme Name: Market X
Theme URI: https://marketxconsulting.com
Author: Market X Consulting
Description: Market X Consulting — private real estate brokerage consultancy. Dark luxe identity, brass on ink, Cormorant display, dossier system. v2 elevation pass.
Version: 2.1.2
Requires at least: 7.0
Tested up to: 7.0
License: Proprietary
Text Domain: marketx
*/

/* ═══ TOKENS ═════════════════════════════════════════════════════════════ */
:root {
  --ink: #08080a;
  --ink-2: #0d0d11;
  --surface: #101015;
  --surface-2: #14141a;
  --line: rgba(201, 169, 106, 0.14);
  --line-strong: rgba(201, 169, 106, 0.34);
  --brass: #c9a96a;
  --brass-bright: #e9d9ae;
  --brass-deep: #8f7544;
  --parchment: #ece7dc;
  --parchment-dim: #cfc9bd;
  --muted: #96908a;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, "Roboto Mono", monospace;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 520ms;
}

/* ═══ BASE ═══════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.8;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--brass); color: var(--ink); }
a { color: var(--brass); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--brass-bright); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 1.5px solid var(--brass); outline-offset: 3px;
}
img { max-width: 100%; display: block; }

/* fixed atmosphere layers */
.mx-grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
.mx-vignette {
  position: fixed; inset: 0; z-index: 199; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,0.42) 100%);
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-4%,-6%); }
  30% { transform: translate(5%,-3%); } 50% { transform: translate(-6%,4%); }
  70% { transform: translate(3%,6%); } 90% { transform: translate(-3%,2%); }
}

/* ═══ LAYOUT ═════════════════════════════════════════════════════════════ */
.mx-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.4rem, 5vw, 3rem); position: relative; }
.mx-wide { max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.4rem, 5vw, 3rem); }

/* ═══ TYPE ═══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: #f6f3ec;
  line-height: 1.06;
  letter-spacing: 0.002em;
}
.mx-display { font-size: clamp(3rem, 7.2vw, 5.8rem); }
.mx-display em { font-style: italic; color: var(--brass); font-weight: 400; }
.mx-h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.mx-h3 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); letter-spacing: 0.01em; }

.mx-eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--brass);
  display: inline-flex; align-items: center; gap: 0.9rem;
  margin-bottom: 1.7rem;
}
.mx-eyebrow::before {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass));
}

.mx-lead {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.75; font-weight: 300;
  color: var(--parchment-dim);
  max-width: 46ch;
}
.mx-small { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.08em; line-height: 1.9; }

/* ═══ HEADER ═════════════════════════════════════════════════════════════ */
.mx-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), padding 0.5s var(--ease);
  border-bottom: 1px solid transparent;
  padding: 1.4rem 0;
}
.mx-header.is-scrolled {
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
  padding: 0.85rem 0;
}
.mx-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.4rem, 5vw, 3rem);
}
.mx-mark {
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.22em;
  color: #f6f3ec; font-weight: 600; display: flex; align-items: baseline; gap: 2px;
}
.mx-mark em { font-style: normal; color: var(--brass); }
.mx-mark__sub {
  font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.34em;
  color: var(--muted); text-transform: uppercase; margin-left: 0.9rem;
  display: inline-block; transform: translateY(-2px);
}
.mx-nav { display: flex; gap: clamp(1.3rem, 3.4vw, 2.8rem); align-items: center; }
.mx-nav a.mx-nav__link {
  color: var(--parchment-dim); font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  position: relative; padding: 0.3rem 0;
}
.mx-nav a.mx-nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.mx-nav a.mx-nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.mx-nav a.mx-nav__link:hover { color: #f6f3ec; }
.mx-nav a.mx-nav__cta {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); background: var(--brass);
  padding: 0.72rem 1.35rem; border-radius: 1px; font-weight: 500;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.mx-nav a.mx-nav__cta:hover { background: var(--brass-bright); box-shadow: 0 6px 30px rgba(201,169,106,0.35); }

/* ═══ HERO ═══════════════════════════════════════════════════════════════ */
.mx-hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(7rem, 14vh, 10rem) 0 clamp(4rem, 8vh, 6rem);
  overflow: hidden;
}
.mx-hero__backdrop { position: absolute; inset: 0; pointer-events: none; }
.mx-hero__backdrop .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,169,106,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,106,0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(1000px 640px at 72% 20%, black 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(1000px 640px at 72% 20%, black 0%, transparent 78%);
}
.mx-hero__backdrop .glow {
  position: absolute; width: 60vw; height: 60vw; right: -18vw; top: -22vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,106,0.13) 0%, transparent 62%);
  filter: blur(30px);
}
.mx-hero__backdrop .glow--low {
  left: -22vw; right: auto; top: auto; bottom: -28vw; width: 46vw; height: 46vw;
  background: radial-gradient(circle, rgba(143,117,68,0.10) 0%, transparent 60%);
}
.mx-hero .mx-wrap { z-index: 3; width: 100%; }

/* staged reveal */
.mx-reveal { opacity: 0; transform: translateY(26px); }
.is-in.mx-reveal, .no-js .mx-reveal { opacity: 1; transform: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }

.mx-hero__index {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.4em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 2.2rem; display: flex; gap: 1rem; align-items: center;
}
.mx-hero__index::after { content: ""; flex: 0 0 60px; height: 1px; background: var(--line-strong); }

.mx-rotator {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.22em;
  color: var(--brass); text-transform: uppercase; margin-top: 2.6rem; min-height: 1.4em;
}
.mx-rotator .mx-rotator__tick { display: inline-block; }
.mx-rotator .caret {
  display: inline-block; width: 8px; height: 15px; background: var(--brass);
  margin-left: 6px; vertical-align: -2px; animation: caret 1.1s steps(2) infinite;
}
@keyframes caret { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.mx-hero__actions { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: 2.8rem; }

.mx-btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 1.02rem 1.9rem; border-radius: 1px; overflow: hidden; cursor: pointer;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  border: 1px solid transparent;
}
.mx-btn__label { position: relative; z-index: 2; }
.mx-btn--gold { background: var(--brass); color: var(--ink); font-weight: 500; }
.mx-btn--gold::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, var(--brass-deep), var(--brass-bright), var(--brass-deep));
  transform: translateX(-101%); transition: transform 0.6s var(--ease);
}
.mx-btn--gold:hover::before { transform: translateX(0); }
.mx-btn--gold:hover { box-shadow: 0 10px 44px rgba(201,169,106,0.32); }
.mx-btn--ghost { border-color: var(--line-strong); color: var(--parchment); }
.mx-btn--ghost:hover { border-color: var(--brass); background: rgba(201,169,106,0.06); }

/* hero systems graph */
.mx-graph { position: absolute; right: clamp(-8rem, -4vw, 0rem); top: 50%; transform: translateY(-50%); z-index: 2; width: min(46vw, 660px); opacity: 0.9; pointer-events: none; }
.mx-graph .node { fill: var(--ink); stroke: var(--brass); stroke-width: 1; }
.mx-graph .node--core { fill: rgba(201,169,106,0.16); stroke: var(--brass-bright); }
.mx-graph .edge { stroke: rgba(201,169,106,0.4); stroke-width: 1; fill: none; stroke-dasharray: 3 6; animation: dashdrift 14s linear infinite; }
.mx-graph .pulse { fill: var(--brass-bright); opacity: 0; }
.mx-graph .pulse--a { animation: pulse 7s var(--ease) infinite; }
.mx-graph .pulse--b { animation: pulse 7s var(--ease) 2.3s infinite; }
.mx-graph .pulse--c { animation: pulse 7s var(--ease) 4.6s infinite; }
.mx-graph .ring { fill: none; stroke: rgba(201,169,106,0.28); stroke-width: 1; transform-origin: center; animation: ringrotate 46s linear infinite; }
@keyframes dashdrift { to { stroke-dashoffset: -180; } }
@keyframes pulse { 0% { opacity: 0; } 12% { opacity: 1; } 34% { opacity: 0; transform: translate(0,0); } 100% { opacity: 0; } }
@keyframes ringrotate { to { transform: rotate(360deg); } }

/* ═══ SECTIONS ═══════════════════════════════════════════════════════════ */
.mx-section { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.mx-section + .mx-section { border-top: 1px solid rgba(201,169,106,0.09); }
.mx-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.4rem, 5vw, 4rem); }

/* side rail */
.mx-rail {
  position: absolute; left: clamp(0.6rem, 2vw, 1.8rem); top: clamp(4.5rem, 10vw, 8rem);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.5em;
  color: rgba(201,169,106,0.4); text-transform: uppercase;
}
@media (max-width: 900px) { .mx-rail { display: none; } }

/* ghost numeral */
.mx-ghost {
  position: absolute; right: clamp(1rem, 4vw, 3rem); top: clamp(1rem, 3vw, 2.4rem);
  font-family: var(--serif); font-size: clamp(6rem, 16vw, 13rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(201,169,106,0.13);
  pointer-events: none; user-select: none; font-weight: 600;
}

/* dossier cards */
.mx-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.mx-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; }
.mx-card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--surface) 0%, var(--ink-2) 88%);
  border: 1px solid var(--line);
  padding: 2.4rem 2.1rem 2.2rem;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.mx-card::before, .mx-card::after {
  content: ""; position: absolute; width: 14px; height: 14px; opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.mx-card::before { top: -1px; left: -1px; border-top: 1px solid var(--brass); border-left: 1px solid var(--brass); }
.mx-card::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--brass); border-right: 1px solid var(--brass); }
.mx-card:hover { border-color: var(--line-strong); transform: translateY(-5px); box-shadow: 0 26px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,169,106,0.05); }
.mx-card:hover::before, .mx-card:hover::after { opacity: 1; }
.mx-card__index {
  font-family: var(--mono); font-size: 0.72rem; color: var(--brass);
  letter-spacing: 0.3em; display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.5rem;
}
.mx-card__index::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mx-card h3 { margin-bottom: 0.7rem; }
.mx-card p { color: var(--muted); font-size: 0.94rem; line-height: 1.85; }
.mx-card__tag {
  display: inline-block; margin-top: 1.4rem; font-family: var(--mono);
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(201,169,106,0.75); border: 1px solid var(--line); padding: 0.34rem 0.7rem;
}

/* redaction strip */
.mx-redact {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  border: 1px solid var(--line); padding: 1.6rem 1.9rem;
  background: linear-gradient(165deg, var(--surface) 0%, var(--ink-2) 88%);
}
.mx-redact__bar { height: 0.9em; background: var(--surface-2); border: 1px solid rgba(201,169,106,0.2); position: relative; overflow: hidden; flex: 0 1 auto; min-width: 60px; }
.mx-redact__bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(201,169,106,0.14), transparent);
  transform: translateX(-100%); animation: sweep 3.8s var(--ease) infinite;
}
@keyframes sweep { 0% { transform: translateX(-100%);} 55%,100% { transform: translateX(100%);} }

.mx-rule { height: 1px; border: 0; background: linear-gradient(90deg, var(--line-strong), transparent); margin: 2.6rem 0; }

.mx-quoteline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.4;
  color: #ded8cb; max-width: 26ch;
}
.mx-quoteline strong { color: var(--brass-bright); font-weight: 400; }

/* timeline (approach) */
.mx-timeline { position: relative; display: grid; gap: 0; }
.mx-timeline__track {
  position: absolute; left: 19px; top: 8px; bottom: 8px; width: 1px;
  background: var(--line);
}
.mx-timeline__track i {
  position: absolute; inset: 0; display: block;
  background: linear-gradient(180deg, var(--brass), var(--brass-deep));
  transform-origin: top; transform: scaleY(var(--fill, 0));
  transition: transform 1.1s var(--ease);
}
.mx-step { position: relative; padding: 0 0 3.2rem 4.4rem; }
.mx-step:last-child { padding-bottom: 0; }
.mx-step__dot {
  position: absolute; left: 12px; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--brass);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.mx-step.is-in .mx-step__dot { background: var(--brass); box-shadow: 0 0 0 5px rgba(201,169,106,0.12); }
.mx-step__no { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.3em; color: var(--brass); text-transform: uppercase; }
.mx-step h3 { margin: 0.5rem 0 0.6rem; }

/* ═══ FOOTER ═════════════════════════════════════════════════════════════ */
.mx-footer { position: relative; border-top: 1px solid var(--line); padding: clamp(3.4rem, 7vw, 5.4rem) 0 2.6rem; overflow: hidden; }
.mx-footer::before {
  content: "MARKET X"; position: absolute; left: 50%; bottom: -0.34em; transform: translateX(-50%);
  font-family: var(--serif); font-weight: 600; font-size: clamp(6rem, 18vw, 15rem);
  letter-spacing: 0.08em; color: transparent; -webkit-text-stroke: 1px rgba(201,169,106,0.10);
  pointer-events: none; white-space: nowrap;
}
.mx-footer__grid { display: flex; justify-content: space-between; gap: 2.4rem; flex-wrap: wrap; align-items: flex-start; position: relative; }
.mx-footer__meta { margin-top: 3.4rem; display: flex; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; }

/* ═══ FORM ═══════════════════════════════════════════════════════════════ */
.mx-form-shell {
  position: relative; max-width: 680px;
  background: linear-gradient(165deg, var(--surface) 0%, var(--ink-2) 88%);
  border: 1px solid var(--line);
  padding: clamp(1.9rem, 4.4vw, 3rem);
}
.mx-form-shell::before { content: ""; position: absolute; top: -1px; left: 24px; right: 60%; height: 1px; background: linear-gradient(90deg, var(--brass), transparent); }
.fluentform .ff-el-group { margin-bottom: 1.35rem; }
.fluentform label, .fluentform .ff-el-input--label label {
  font-family: var(--mono) !important; font-size: 0.64rem !important; letter-spacing: 0.3em !important;
  text-transform: uppercase; color: var(--muted) !important; margin-bottom: 0.6rem !important; display: block;
}
.fluentform input[type="text"], .fluentform input[type="email"], .fluentform textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line-strong);
  color: var(--parchment); border-radius: 1px; padding: 0.95rem 1.05rem;
  font-family: var(--sans); font-size: 0.98rem; font-weight: 300;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.fluentform input:focus, .fluentform textarea:focus { outline: none; border-color: var(--brass); background: var(--ink-2); }
.fluentform textarea { min-height: 140px; resize: vertical; }
.fluentform .ff-btn-submit {
  background: var(--brass); color: var(--ink); border: 0; border-radius: 1px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 1rem 1.9rem; font-weight: 500; cursor: pointer;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.fluentform .ff-btn-submit:hover { background: var(--brass-bright); box-shadow: 0 10px 40px rgba(201,169,106,0.3); }
.fluentform .ff-el-group.error input, .fluentform .ff-el-group.error textarea { border-color: #a33; }

/* ═══ MOTION GATING ══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
  .mx-reveal { opacity: 1; transform: none; }
  .mx-grain { animation: none; }
}

@media (max-width: 680px) {
  .mx-nav a.mx-nav__link { display: none; }
  .mx-graph { opacity: 0.28; right: -30vw; width: 80vw; }
  body { font-size: 15.5px; }
}

/* ═══ v2.1 — WOW PASS ═══════════════════════════════════════════════════ */

/* scroll progress hairline */
.mx-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 300; pointer-events: none; }
.mx-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brass-deep), var(--brass), var(--brass-bright)); transform: scaleX(0); transform-origin: left; }

/* preloader */
.mx-preloader {
  position: fixed; inset: 0; z-index: 400; background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1.6rem;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.mx-preloader.is-done { opacity: 0; visibility: hidden; }
.mx-preloader__mark {
  font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 600;
  letter-spacing: 0.3em; color: #f6f3ec; display: flex; overflow: hidden;
}
.mx-preloader__mark span { display: inline-block; transform: translateY(120%); animation: markin 0.9s var(--ease) forwards; }
.mx-preloader__mark span:nth-child(2) { animation-delay: 0.08s; }
.mx-preloader__mark span:nth-child(3) { animation-delay: 0.16s; }
.mx-preloader__mark span:nth-child(4) { animation-delay: 0.24s; }
.mx-preloader__mark em { font-style: normal; color: var(--brass); }
@keyframes markin { to { transform: translateY(0); } }
.mx-preloader__line { width: 0; height: 1px; background: var(--brass); animation: linegrow 1.5s var(--ease) 0.2s forwards, linefade 0.6s ease 1.9s forwards; }
@keyframes linegrow { to { width: min(300px, 56vw); } }
@keyframes linefade { to { opacity: 0; } }
.mx-preloader__sub {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.5em; color: var(--muted);
  text-transform: uppercase; opacity: 0; animation: fadeup 0.8s var(--ease) 0.7s forwards;
}
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* hero line-mask reveal */
.mx-lines .mx-line { display: block; overflow: hidden; }
.mx-lines .mx-line > span { display: inline-block; transform: translateY(115%); transition: transform 1.05s var(--ease); }
.is-loaded .mx-lines .mx-line > span, .no-js .mx-lines .mx-line > span { transform: translateY(0); }
.is-loaded .mx-lines .mx-line:nth-child(2) > span { transition-delay: 0.1s; }
.is-loaded .mx-lines .mx-line:nth-child(3) > span { transition-delay: 0.2s; }

/* radar sweep */
.mx-hero__backdrop .radar {
  position: absolute; width: 78vmin; height: 78vmin; right: -14vmin; top: -8vmin; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(201,169,106,0.16), transparent 22%, transparent 100%);
  animation: mxspin 26s linear infinite; opacity: 0.55; filter: blur(2px);
}
@keyframes mxspin { to { transform: rotate(360deg); } }

/* blueprint corner annotations */
.mx-anno {
  position: absolute; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.26em;
  color: rgba(201,169,106,0.5); text-transform: uppercase; pointer-events: none;
}
.mx-anno--tl { top: 6.6rem; left: clamp(1.4rem, 5vw, 3rem); }
.mx-anno--br { bottom: 4.6rem; right: clamp(1.4rem, 5vw, 3rem); text-align: right; }
@media (max-width: 680px) { .mx-anno--br { display: none; } }

/* hero datum strip */
.mx-datum { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); background: rgba(8,8,10,0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mx-datum__inner {
  max-width: 1400px; margin: 0 auto; padding: 0.95rem clamp(1.4rem, 5vw, 3rem);
  display: flex; gap: clamp(1.6rem, 5vw, 4.5rem); flex-wrap: wrap; justify-content: space-between;
}
.mx-datum__item { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); display: flex; gap: 0.8rem; align-items: baseline; }
.mx-datum__item b { color: var(--brass); font-weight: 500; }

/* marquee */
.mx-marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.15rem 0; background: var(--ink-2); }
.mx-marquee__track { display: flex; gap: 3.4rem; width: max-content; animation: mxmarquee 42s linear infinite; }
.mx-marquee__track span {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(201,169,106,0.55); white-space: nowrap; display: flex; align-items: center; gap: 3.4rem;
}
.mx-marquee__track span::after { content: "/"; color: rgba(201,169,106,0.4); }
@keyframes mxmarquee { to { transform: translateX(-50%); } }
.mx-marquee:hover .mx-marquee__track { animation-play-state: paused; }

/* section index rail (right edge) */
.mx-index { position: fixed; right: clamp(0.5rem, 1.6vw, 1.3rem); top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 1.05rem; }
.mx-index a { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.mx-index a i { width: 22px; height: 1px; background: var(--muted); display: block; transition: width 0.45s var(--ease), background 0.45s var(--ease); }
.mx-index a span { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.3em; text-transform: uppercase; color: transparent; transition: color 0.45s var(--ease); }
.mx-index a:hover span, .mx-index a.is-active span { color: var(--brass); }
.mx-index a.is-active i, .mx-index a:hover i { width: 38px; background: var(--brass); }
@media (max-width: 980px) { .mx-index { display: none; } }

/* custom cursor */
.mx-cursor, .mx-cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 500; border-radius: 50%; }
.mx-cursor { width: 5px; height: 5px; background: var(--brass-bright); margin: -2.5px 0 0 -2.5px; }
.mx-cursor-ring {
  width: 34px; height: 34px; border: 1px solid rgba(201,169,106,0.55); margin: -17px 0 0 -17px;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), border-color 0.35s var(--ease);
}
.mx-cursor-ring.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--brass); }
@media (pointer: coarse) { .mx-cursor, .mx-cursor-ring { display: none; } }

/* page fade */
.mx-fade { animation: pagein 0.75s var(--ease) both; }
@keyframes pagein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* founder card (The Firm) */
.mx-founder {
  display: grid; grid-template-columns: 200px 1fr; gap: 2.6rem; align-items: start;
  border: 1px solid var(--line); background: linear-gradient(165deg, var(--surface), var(--ink-2));
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.mx-founder__monogram {
  width: 200px; height: 240px; border: 1px solid var(--line-strong); position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 3.6rem; font-weight: 500; color: var(--brass); letter-spacing: 0.1em;
  background:
    radial-gradient(140px 140px at 50% 40%, rgba(201,169,106,0.10), transparent 70%),
    linear-gradient(rgba(201,169,106,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,106,0.05) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
}
.mx-founder__monogram::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); }
@media (max-width: 760px) { .mx-founder { grid-template-columns: 1fr; } .mx-founder__monogram { width: 100%; } }

/* notes list */
.mx-note { display: grid; grid-template-columns: 130px 1fr auto; gap: 1.6rem; align-items: baseline; padding: 2rem 0; border-bottom: 1px solid var(--line); transition: background 0.4s var(--ease); }
.mx-note:hover { background: rgba(201,169,106,0.03); }
.mx-note__no { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.3em; color: var(--brass); }
.mx-note h3 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.mx-note h3 a { color: #f6f3ec; } .mx-note h3 a:hover { color: var(--brass-bright); }
.mx-note p { color: var(--muted); font-size: 0.93rem; max-width: 62ch; margin-top: 0.5rem; }
.mx-note__meta { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.24em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
@media (max-width: 760px) { .mx-note { grid-template-columns: 1fr; gap: 0.6rem; } }

/* single note prose */
.mx-prose { max-width: 72ch; }
.mx-prose h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 2.8rem 0 1rem; }
.mx-prose p { color: var(--parchment-dim); margin-bottom: 1.5rem; font-weight: 300; }
.mx-prose p:first-of-type { font-size: 1.2rem; line-height: 1.75; color: #ded8cb; }
.mx-prose blockquote {
  border-left: 1px solid var(--brass); padding: 0.4rem 0 0.4rem 1.6rem; margin: 2.2rem 0;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: #ded8cb;
}
.mx-backlink { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.6rem; }
.mx-backlink:hover { color: var(--brass); }

/* reduced-motion additions */
@media (prefers-reduced-motion: reduce) {
  .mx-preloader { display: none; }
  .mx-lines .mx-line > span { transform: none !important; }
  .mx-marquee__track, .mx-hero__backdrop .radar { animation: none !important; }
}

/* ═══ v2.1.1 — confidentiality declaration panel (replaces redaction strips) ═══ */
.mx-confidential {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface) 0%, var(--ink-2) 88%);
  padding: clamp(2rem, 4.6vw, 3.2rem);
}
.mx-confidential::before, .mx-confidential::after {
  content: ""; position: absolute; width: 16px; height: 16px;
}
.mx-confidential::before { top: -1px; left: -1px; border-top: 1px solid var(--brass); border-left: 1px solid var(--brass); }
.mx-confidential::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--brass); border-right: 1px solid var(--brass); }
.mx-statement {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem); line-height: 1.35;
  color: #ded8cb; max-width: 24ch;
}
.mx-statement strong { color: var(--brass-bright); font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .mx-confidential { animation: none !important; } }

/* ═══ v2.1.2 — full brand name: MARKET X CONSULTING ═════════════════════ */

/* wordmark with CONSULTING */
.mx-mark { letter-spacing: 0.18em; }
.mx-mark__word {
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.4em;
  color: var(--parchment-dim); text-transform: uppercase; margin-left: 0.85rem;
  display: inline-block; transform: translateY(-3px); font-weight: 400;
}
.mx-footer .mx-mark__word { color: var(--muted); }
@media (max-width: 560px) { .mx-mark__sub { display: none; } }
@media (max-width: 400px) { .mx-mark__word { display: none; } }

/* footer ghost: full name, rescaled */
.mx-footer::before {
  content: "MARKET X CONSULTING";
  font-size: clamp(3.2rem, 9.5vw, 8.5rem);
  letter-spacing: 0.06em;
}

/* preloader: full spelling + CONSULTING line */
.mx-preloader__mark span { margin-right: 0.06em; }
.mx-preloader__mark span:nth-child(5) { animation-delay: 0.32s; }
.mx-preloader__mark span:nth-child(6) { animation-delay: 0.40s; }
.mx-preloader__mark span:nth-child(7) { animation-delay: 0.48s; }
.mx-preloader__mark span:nth-child(8) { animation-delay: 0.56s; }
.mx-preloader__mark span:nth-child(n+9) { animation-delay: 0.64s; }
.mx-preloader__word {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.58em;
  color: var(--brass); text-transform: uppercase; opacity: 0;
  animation: fadeup 0.8s var(--ease) 1.05s forwards;
}
