/* =========================================================
   MAYFAIR CORPORATION — inner pages
   Loaded after style.css; reuses its tokens, bar, sheet,
   sand "creed" sheet, Let's talk and footer.
   ========================================================= */

.mf-inner { --mf-h2: clamp(36px, 4.6vw, 72px); --mf-p: 17px; }
.mf-inner .mf-bar__nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Page hero ---------- */
.mf-phero { position: relative; min-height: 78vh; min-height: 78svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: #fff; background: #0B0F18; }
.mf-phero__bg { position: absolute; inset: 0; }
.mf-phero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transition: transform 9s var(--mf-ease); }
body.is-ready .mf-phero__bg img { transform: scale(1.04); }
.mf-phero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(11, 15, 24, .82) 0%, rgba(11, 15, 24, .45) 45%, rgba(11, 15, 24, .15) 80%), linear-gradient(0deg, rgba(11, 15, 24, .92) 0%, rgba(11, 15, 24, .4) 32%, transparent 58%), linear-gradient(180deg, rgba(11, 15, 24, .6) 0%, transparent 22%); }
.mf-phero__body { position: relative; z-index: 2; padding: 150px var(--mf-gut) 44px; }
.mf-phero__crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; font: 600 12px var(--mf-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mf-gold-lt); opacity: 0; transform: translateY(12px); transition: opacity 1s .1s, transform 1s .1s var(--mf-ease); }
.mf-phero__crumb a { transition: color .3s; }
.mf-phero__crumb a:hover { color: #fff; }
.mf-phero__crumb i { width: 34px; height: 1px; background: var(--mf-gold); }
.mf-phero__crumb span { color: rgba(255, 255, 255, .75); }
body.is-ready .mf-phero__crumb { opacity: 1; transform: none; }
.mf-phero__title { font: 500 var(--mf-h2)/1.04 var(--mf-sans); letter-spacing: -.045em; }
.mf-phero__title--long { max-width: 20ch; }
.mf-phero__ln { display: block; overflow: hidden; padding-bottom: .06em; }
.mf-phero__ln > span { display: block; transform: translateY(110%); transition: transform 1.2s var(--mf-ease); }
.mf-phero__ln:nth-child(2) > span { transition-delay: .1s; }
body.is-ready .mf-phero__ln > span { transform: none; }
.mf-phero__title em { font-weight: 600; font-size: 1.04em; padding-right: .06em; color: #E7C384; text-shadow: 0 2px 24px rgba(11, 15, 24, .55); }
.mf-phero__foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 var(--mf-gut); padding: 22px 0 66px; border-top: 1px solid rgba(255, 255, 255, .16); font: 600 12px var(--mf-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); opacity: 0; transition: opacity 1s .6s; }
body.is-ready .mf-phero__foot { opacity: 1; }
.mf-phero__foot p:nth-of-type(2) { margin-right: 28px; }
.mf-phero__scroll { position: absolute; right: 0; bottom: 56px; }
.mf-phero__scroll i { position: relative; display: block; width: 1px; height: 54px; overflow: hidden; background: rgba(255, 255, 255, .2); }
.mf-phero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--mf-gold); animation: mfScrollCue 2.2s var(--mf-ease) infinite; }

/* Sheet that slides over the hero */
.mf-pg { position: relative; z-index: 2; margin-top: -34px; border-radius: 34px 34px 0 0; box-shadow: 0 -30px 60px rgba(0, 0, 0, .35); }
.mf-pg--stone { background: var(--mf-stone); }
.mf-pg--paper { background: var(--mf-paper); }

/* =========================================================
   Introduction
   ========================================================= */
.mf-intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 6vw, 110px); padding: 120px var(--mf-gut) 130px; background: var(--mf-paper); align-items: start; }
.mf-intro__stick { position: sticky; top: 96px; }
.mf-intro__label, .mf-trio__label, .mf-svd__label, .mf-svl__label, .mf-clx__label, .mf-ctc__label { font: 600 12px var(--mf-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mf-bronze); }
.mf-intro__fig { position: relative; margin: 22px 0 16px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mf-navy-2); }
.mf-intro__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); will-change: transform; }
.mf-intro__cap { font: 600 12px var(--mf-mono); letter-spacing: .1em; text-transform: uppercase; }
.mf-intro__cap span { color: var(--mf-ash); }
.mf-intro__block { display: grid; grid-template-columns: 70px 1fr; column-gap: 20px; padding: 38px 0 46px; border-top: 1px solid var(--mf-line); }
.mf-intro__block:last-child { border-bottom: 1px solid var(--mf-line); }
.mf-intro__no { grid-row: 1 / 3; font: 600 14px var(--mf-mono); color: var(--mf-ash); padding-top: 12px; }
.mf-intro__block h3 { font: 400 clamp(34px, 4vw, 64px)/1 var(--mf-sans); letter-spacing: -.045em; }
.mf-intro__block h3 em { color: var(--mf-bronze); font-size: 1.05em; }
.mf-intro__block p { max-width: 640px; margin-top: 20px; font-size: 18px; line-height: 1.7; color: #4A4F5B; }

.mf-trio { padding: 120px var(--mf-gut) 130px; background: var(--mf-night); color: var(--mf-stone); }
.mf-trio__label { color: var(--mf-gold); }
.mf-trio__head h2 { max-width: 14ch; margin: 18px 0 56px; font: 400 clamp(40px, 5.4vw, 88px)/.96 var(--mf-sans); letter-spacing: -.045em; }
.mf-trio__head h2 em { color: var(--mf-gold-lt); }
.mf-trio__row { display: flex; gap: 12px; height: min(72vh, 640px); }
.mf-trio__p { position: relative; flex: 1; min-width: 0; overflow: hidden; background: var(--mf-navy-2); cursor: pointer; outline: none; transition: flex .9s var(--mf-ease); }
.mf-trio__p.is-on { flex: 3.4; cursor: default; }
.mf-trio__p img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.1); transition: transform 1.4s var(--mf-ease), opacity .6s; }
.mf-trio__p.is-on img { opacity: .9; transform: scale(1); }
.mf-trio__p::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 18, 34, .85) 0%, rgba(10, 18, 34, .1) 60%); }
.mf-trio__v { position: absolute; z-index: 2; left: 22px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font: 400 26px var(--mf-sans); letter-spacing: -.02em; writing-mode: vertical-rl; transform: rotate(180deg); transition: opacity .4s; }
.mf-trio__v b { font: 600 13px var(--mf-mono); color: var(--mf-gold); letter-spacing: .1em; writing-mode: horizontal-tb; transform: rotate(180deg); }
.mf-trio__p.is-on .mf-trio__v { opacity: 0; pointer-events: none; }
.mf-trio__open { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 36px; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .8s var(--mf-ease); }
.mf-trio__p.is-on .mf-trio__open { opacity: 1; transform: none; transition-delay: .35s; }
.mf-trio__open b { font: 600 13px var(--mf-mono); letter-spacing: .1em; color: var(--mf-gold); }
.mf-trio__open h3 { margin: 10px 0 12px; font: 400 clamp(32px, 3.6vw, 58px)/1 var(--mf-sans); letter-spacing: -.045em; }
.mf-trio__open h3 em { color: var(--mf-gold-lt); }
.mf-trio__open p { max-width: 380px; color: rgba(242, 239, 232, .8); }
.mf-trio__open a { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 11px 18px; border-radius: 999px; background: var(--mf-stone); color: var(--mf-night); font: 600 12px var(--mf-mono); letter-spacing: .06em; text-transform: uppercase; transition: background .3s; }
.mf-trio__open a:hover { background: var(--mf-gold); }
.mf-trio__open svg { width: 13px; height: 13px; }

/* Full-screen photo band: opens from a rounded window on scroll */
.mf-band { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--mf-paper); }
.mf-band__frame { position: absolute; inset: 0; overflow: hidden; clip-path: inset(calc((1 - var(--mf-b, 0)) * 22%) calc((1 - var(--mf-b, 0)) * 28%)); }
.mf-band__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transform: scale(calc(1.25 - var(--mf-b, 0) * .25)); }
.mf-band__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 18, 34, .75) 0%, rgba(10, 18, 34, .05) 55%); }
.mf-band__txt { position: absolute; z-index: 2; left: var(--mf-gut); bottom: 56px; color: #fff; font: 400 clamp(44px, 6vw, 104px)/.95 var(--mf-sans); letter-spacing: -.045em; opacity: calc((var(--mf-b, 0) - .55) * 2.4); }
.mf-band__txt em { color: var(--mf-gold-lt); font-weight: 600; }
.mf-band__txt small { display: block; margin-top: 18px; font: 600 12px var(--mf-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mf-gold-lt); }

/* Next pages — big link rows */
.mf-nxt { background: var(--mf-stone); }
.mf-nxt__row { position: relative; display: flex; align-items: center; gap: 30px; padding: clamp(30px, 4.5vw, 64px) var(--mf-gut); border-bottom: 1px solid var(--mf-line); overflow: hidden; isolation: isolate; transition: color .5s; }
.mf-nxt__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--mf-night); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--mf-ease); }
.mf-nxt__row:hover { color: var(--mf-stone); }
.mf-nxt__row:hover::before { transform: scaleY(1); }
.mf-nxt__k { width: 90px; flex: none; font: 600 12px var(--mf-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mf-bronze); }
.mf-nxt__t { font: 400 clamp(38px, 7vw, 120px)/1 var(--mf-sans); letter-spacing: -.05em; }
.mf-nxt__t em { color: var(--mf-bronze); font-size: 1.04em; transition: color .5s; }
.mf-nxt__row:hover .mf-nxt__t em { color: var(--mf-gold-lt); }
.mf-nxt__row > svg { width: clamp(30px, 4vw, 60px); height: clamp(30px, 4vw, 60px); margin-left: auto; flex: none; transition: transform .6s var(--mf-ease), color .4s; }
.mf-nxt__row:hover > svg { transform: rotate(45deg); color: var(--mf-gold); }

/* =========================================================
   Services listing
   ========================================================= */
.mf-svl { position: relative; z-index: 2; margin-top: -34px; border-radius: 34px 34px 0 0; box-shadow: 0 -30px 60px rgba(0, 0, 0, .35); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 5vw, 90px); padding: 100px var(--mf-gut) 130px; background: var(--mf-paper); align-items: start; }
.mf-svl__side, .mf-svd__side { align-self: stretch; }
.mf-svl__stage { position: sticky; top: 90px; height: calc(100vh - 120px); max-height: 720px; overflow: hidden; background: var(--mf-navy-2); }
.mf-svl__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.14); transition: opacity .7s, transform 1.4s var(--mf-ease); }
.mf-svl__stage img.is-on { opacity: 1; transform: scale(1); }
.mf-svl__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 18, 34, .8) 0%, transparent 45%); }
.mf-svl__tag { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 24px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; color: #fff; font: 600 12px var(--mf-mono); letter-spacing: .12em; text-transform: uppercase; }
.mf-svl__tag b { font-size: 14px; color: var(--mf-gold); }
.mf-svl__tag em { flex-basis: 100%; margin-top: 6px; font: 400 clamp(24px, 2.2vw, 34px)/1.1 var(--mf-sans); letter-spacing: -.03em; text-transform: none; }
.mf-svl__label { margin-bottom: 18px; }
.mf-svl__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mf-line); }
.mf-svl__row { display: grid; grid-template-columns: 64px 1fr 46px; gap: 18px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--mf-line); transition: padding .5s var(--mf-ease), color .3s; }
.mf-svl__no { font: 600 14px var(--mf-mono); color: var(--mf-ash); transition: color .3s; }
.mf-svl__name { display: block; font: 400 clamp(26px, 3vw, 48px)/1.05 var(--mf-sans); letter-spacing: -.045em; transition: transform .6s var(--mf-ease); }
.mf-svl__line { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: var(--mf-p); color: #4A4F5B; transition: max-height .5s var(--mf-ease), opacity .4s, margin .4s; }
.mf-svl__go { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--mf-line); border-radius: 50%; transition: background .4s, color .4s, transform .5s var(--mf-ease); }
.mf-svl__go svg { width: 16px; height: 16px; }
.mf-svl__thumb { display: none; }
.mf-svl__row:hover, .mf-svl__row:focus-visible { color: var(--mf-navy); outline: none; }
.mf-svl__row:hover .mf-svl__name, .mf-svl__row:focus-visible .mf-svl__name { transform: translateX(14px); font-family: var(--mf-serif); font-style: italic; letter-spacing: -.02em; }
.mf-svl__row:hover .mf-svl__line, .mf-svl__row:focus-visible .mf-svl__line { max-height: 60px; opacity: 1; margin: 10px 0 0 14px; }
.mf-svl__row:hover .mf-svl__no { color: var(--mf-bronze); }
.mf-svl__row:hover .mf-svl__go { background: var(--mf-night); color: var(--mf-gold); transform: rotate(45deg); }

/* =========================================================
   Service detail
   ========================================================= */
.mf-svd { position: relative; z-index: 2; margin-top: -34px; border-radius: 34px 34px 0 0; box-shadow: 0 -30px 60px rgba(0, 0, 0, .35); display: grid; grid-template-columns: 4fr 8fr; gap: clamp(30px, 6vw, 110px); padding: 100px var(--mf-gut) 120px; background: var(--mf-paper); align-items: start; }
.mf-svd__stick { position: sticky; top: 96px; }
.mf-svd__meta { margin: 26px 0 30px; border-top: 1px solid var(--mf-line); }
.mf-svd__meta div { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--mf-line); }
.mf-svd__meta dt { font: 600 11px var(--mf-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mf-ash); }
.mf-svd__meta dd { margin: 0; font: 400 20px/1.25 var(--mf-sans); letter-spacing: -.02em; }
.mf-svd__btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--mf-night); color: var(--mf-stone); font: 600 12px var(--mf-mono); letter-spacing: .06em; text-transform: uppercase; transition: background .3s; }
.mf-svd__btn:hover { background: var(--mf-bronze); }
.mf-svd__btn svg { width: 13px; height: 13px; }
.mf-svd__lead { font: 400 clamp(26px, 3.1vw, 50px)/1.18 var(--mf-sans); letter-spacing: -.04em; }
.mf-svd__para { max-width: 640px; margin-top: 34px; font-size: var(--mf-p); line-height: 1.65; color: #4A4F5B; }

.mf-svd__incl { padding: 100px var(--mf-gut) 110px; background: var(--mf-stone); }
.mf-svd__incl ol { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--mf-ink); }
.mf-svd__incl li { display: grid; grid-template-columns: 90px 1.2fr 1fr; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--mf-line); }
.mf-svd__incl li > span { font: 600 14px var(--mf-mono); color: var(--mf-ash); }
.mf-svd__incl .mf-svd__it { font: 400 clamp(26px, 3.2vw, 52px)/1.05 var(--mf-sans); letter-spacing: -.045em; }
.mf-svd__incl p:not(.mf-svd__it) { color: #4A4F5B; font-size: var(--mf-p); line-height: 1.65; }

.mf-svd__steps { padding: 110px var(--mf-gut) 120px; background: var(--mf-night); color: var(--mf-stone); }
.mf-svd__steps .mf-svd__label { color: var(--mf-gold); }
.mf-svd__track { list-style: none; margin: 60px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 50px); position: relative; }
.mf-svd__track::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--mf-line-lt); }
.mf-svd__track li { position: relative; padding-top: 34px; }
.mf-svd__track li::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--mf-gold); }
.mf-svd__track b { display: block; font: 900 clamp(40px, 3.6vw, 60px)/.9 var(--mf-display); font-stretch: 125%; color: transparent; -webkit-text-stroke: 1px var(--mf-gold); }
.mf-svd__track .mf-svd__it { margin: 22px 0 10px; font: 400 clamp(24px, 2.2vw, 34px)/1.1 var(--mf-sans); letter-spacing: -.03em; }
.mf-svd__track p:not(.mf-svd__it) { color: rgba(242, 239, 232, .65); font-size: var(--mf-p); line-height: 1.65; }

.mf-svd__pn { display: grid; grid-template-columns: 1fr 1fr; }
.mf-svd__pnl { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 58vh; padding: 40px var(--mf-gut); color: #fff; overflow: hidden; isolation: isolate; }
.mf-svd__pnl + .mf-svd__pnl { text-align: right; align-items: flex-end; }
.mf-svd__pnl img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--mf-ease); }
.mf-svd__pnl::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 18, 34, .85) 0%, rgba(10, 18, 34, .35) 100%); transition: background .5s; }
.mf-svd__pnl:hover img { transform: scale(1.14); }
.mf-svd__pnl:hover::before { background: linear-gradient(0deg, rgba(10, 18, 34, .8) 0%, rgba(10, 18, 34, .15) 100%); }
.mf-svd__pnk { font: 600 12px var(--mf-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mf-gold-lt); }
.mf-svd__pnt { max-width: 16ch; font: 400 clamp(28px, 3.4vw, 56px)/1.05 var(--mf-sans); letter-spacing: -.045em; }

/* =========================================================
   Clients
   ========================================================= */
.mf-pg--sand { background: radial-gradient(circle, rgba(14, 27, 51, .07) 1px, transparent 1.4px) 0 0 / 22px 22px, #EADFC9; color: var(--mf-night); }
.mf-clx { padding: 100px var(--mf-gut) 140px; }
.mf-clx__head h2 { max-width: 14ch; font: 500 var(--mf-h2)/1.04 var(--mf-sans); letter-spacing: -.045em; }
.mf-clx__head h2 em { color: var(--mf-bronze); font-weight: 600; }
.mf-clx__head p { max-width: 640px; margin-top: 24px; font-size: var(--mf-p); line-height: 1.65; color: #4A4F5B; }
.mf-clx__grid { list-style: none; margin: clamp(46px, 6vw, 76px) 0 0; padding: 1px 0 0 1px; display: flex; flex-wrap: wrap; justify-content: center; }
.mf-clx__cell { width: calc(25% + 1px); margin: -1px 0 0 -1px; border: 1px solid var(--mf-line); display: flex; flex-direction: column; justify-content: flex-end; height: clamp(150px, 11.5vw, 166px); padding: clamp(20px, 1.8vw, 26px); background: var(--mf-paper); transition: background .4s; }
@media (min-width: 1101px) {
  .mf-clx__cell:nth-child(1) { border-top-left-radius: 24px; }
  .mf-clx__cell:nth-child(4) { border-top-right-radius: 24px; }
  .mf-clx__cell:nth-child(9), .mf-clx__cell:nth-child(13) { border-bottom-left-radius: 24px; }
  .mf-clx__cell:nth-child(12), .mf-clx__cell:nth-child(14) { border-bottom-right-radius: 24px; }
}
.mf-clx__ic { display: block; width: min(190px, 100%); height: 64px; margin-bottom: 16px; }
.mf-clx__ic img { width: 100%; height: 100%; object-fit: contain; object-position: left center; filter: grayscale(1); opacity: .72; mix-blend-mode: multiply; transition: filter .4s, opacity .4s; }
.mf-clx__k { font: 400 15px/1.3 var(--mf-sans); color: var(--mf-ash); }
.mf-clx__nm { font: 500 clamp(16px, 1.3vw, 19px)/1.25 var(--mf-sans); letter-spacing: -.005em; color: var(--mf-ink); }
.mf-clx__ic img[src*="crown-paper-mill"] { width: 78%; height: 78%; }
.mf-clx__cell:hover { background: #F5F2EB; }
.mf-clx__cell:hover .mf-clx__ic img { filter: none; opacity: 1; }

/* =========================================================
   Contact
   ========================================================= */
.mf-talk--page { position: relative; padding: 150px var(--mf-gut) 150px; }
.mf-talk--page .mf-phero__crumb { justify-content: center; opacity: 1; transform: none; margin: 0 0 14px; }
.mf-talk--page .mf-talk__mail { margin-top: 44px; }
.mf-ctc { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(30px, 6vw, 110px); padding: 100px var(--mf-gut) 130px; text-align: left; align-items: start; }
.mf-ctc__list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid rgba(14, 27, 51, .3); }
.mf-ctc__list li { padding: 24px 0; border-bottom: 1px solid rgba(14, 27, 51, .2); }
.mf-ctc__list span { display: block; margin-bottom: 10px; font: 600 11px var(--mf-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mf-bronze); }
.mf-ctc__list p, .mf-ctc__list a { font: 400 clamp(22px, 2.2vw, 34px)/1.25 var(--mf-sans); letter-spacing: -.035em; transition: color .3s; }
.mf-ctc__list a:hover { color: var(--mf-bronze); }
.mf-ctc__form { display: grid; grid-template-columns: 1fr 1fr; gap: 38px 32px; margin-top: 26px; }
.mf-ctc__f { display: grid; gap: 6px; }
.mf-ctc__f--w { grid-column: 1 / -1; }
.mf-ctc__f span { font: 600 11px var(--mf-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mf-bronze); }
.mf-ctc__f input, .mf-ctc__f select, .mf-ctc__f textarea { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(14, 27, 51, .35); border-radius: 0; background: transparent; color: var(--mf-night); font: 400 22px/1.3 var(--mf-sans); letter-spacing: -.02em; outline: none; transition: border-color .3s, box-shadow .3s; }
.mf-ctc__f textarea { resize: vertical; min-height: 120px; }
.mf-ctc__f select { appearance: none; -webkit-appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A67C46' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 20px no-repeat; }
.mf-ctc__f input:focus, .mf-ctc__f select:focus, .mf-ctc__f textarea:focus { border-color: var(--mf-bronze); box-shadow: 0 1px 0 var(--mf-bronze); }
.mf-ctc__f.is-bad input { border-color: #B4472F; }
.mf-ctc__send { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; background: var(--mf-night); color: var(--mf-stone); font: 600 13px var(--mf-mono); letter-spacing: .06em; text-transform: uppercase; transition: background .3s; }
.mf-ctc__send:hover { background: var(--mf-bronze); }
.mf-ctc__send svg { width: 14px; height: 14px; }
/* Locations */
.mf-lcx { padding: 100px var(--mf-gut) 130px; }
.mf-lcx__addr { margin-top: 26px; font: 400 clamp(24px, 2.4vw, 36px)/1.25 var(--mf-sans); letter-spacing: -.035em; }
.mf-lcx__addr em { color: var(--mf-bronze); font-weight: 600; }
.mf-lcx__ways { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 64px); margin: clamp(44px, 6vw, 80px) 0 0; padding: 0; }
.mf-lcx__ways li { padding: 24px 0 0; border-top: 1px solid var(--mf-line); }
.mf-lcx__ways span { display: block; margin-bottom: 10px; font: 600 11px var(--mf-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mf-bronze); }
.mf-lcx__ways a { font: 400 clamp(20px, 1.9vw, 28px)/1.25 var(--mf-sans); letter-spacing: -.03em; overflow-wrap: anywhere; transition: color .3s; }
.mf-lcx__ways a:hover { color: var(--mf-bronze); }
.mf-lcx__map { position: relative; margin-top: clamp(56px, 7vw, 96px); height: clamp(340px, 42vw, 560px); border-radius: 28px; overflow: hidden; background: var(--mf-sand); }
.mf-lcx__map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.8) contrast(1.05); transition: filter .6s; }
.mf-lcx__map:hover iframe { filter: none; }
.mf-lcx__open { position: absolute; left: 20px; bottom: 20px; }
.mf-band--ctc { background: var(--mf-night); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Page hero — responsive */
@media (max-width: 900px) {
  .mf-phero { min-height: 70svh; }
  .mf-phero__body { padding: 120px var(--mf-gut) 36px; }
  .mf-phero__scroll { display: none; }
  .mf-pg, .mf-svl, .mf-svd { margin-top: -24px; border-radius: 24px 24px 0 0; }
}
@media (max-width: 560px) {
  .mf-phero__title { font-size: var(--mf-h2); }
  .mf-phero__title--long { max-width: none; }
  .mf-phero__foot { padding-bottom: 50px; font-size: 11px; letter-spacing: .1em; }
}

/* Introduction — responsive */
@media (max-width: 900px) {
  .mf-intro { grid-template-columns: 1fr; padding: 80px var(--mf-gut) 90px; }
  .mf-intro__stick { position: static; }
  .mf-intro__fig { aspect-ratio: 4 / 3.4; }
  .mf-trio { padding: 90px var(--mf-gut); }
  .mf-trio__row { flex-direction: column; height: auto; }
  .mf-trio__p, .mf-trio__p.is-on { flex: none; height: 340px; }
  .mf-trio__p img { opacity: .9; transform: none; }
  .mf-trio__v { display: none; }
  .mf-trio__open { opacity: 1; transform: none; padding: 24px; }
  .mf-band { height: 80svh; }
  .mf-band__txt { bottom: 36px; }
  .mf-nxt__row { gap: 16px; }
  .mf-nxt__k { display: none; }
}
@media (max-width: 560px) {
  .mf-intro__block { grid-template-columns: 1fr; }
  .mf-intro__no { grid-row: auto; padding: 0 0 12px; }
  .mf-intro__block p { font-size: 16px; }
}

/* Services listing — responsive */
@media (max-width: 900px) {
  .mf-svl { grid-template-columns: 1fr; padding: 80px var(--mf-gut) 90px; }
  .mf-svl__side { display: none; }
  .mf-svl__row { grid-template-columns: 44px 1fr 76px; gap: 14px; padding: 18px 0; }
  .mf-svl__go { display: none; }
  .mf-svl__line { max-height: none; opacity: 1; margin-top: 8px; }
  .mf-svl__thumb { display: block; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
}

/* Service detail — responsive */
@media (max-width: 900px) {
  .mf-svd { grid-template-columns: 1fr; padding: 80px var(--mf-gut) 80px; }
  .mf-svd__stick { position: static; }
  .mf-svd__incl { padding: 80px var(--mf-gut); }
  .mf-svd__incl li { grid-template-columns: 50px 1fr; row-gap: 10px; }
  .mf-svd__incl li p { grid-column: 2; }
  .mf-svd__steps { padding: 80px var(--mf-gut); }
  .mf-svd__track { grid-template-columns: 1fr 1fr; row-gap: 46px; }
  .mf-svd__pnl { min-height: 44vh; }
}
@media (max-width: 560px) {
  .mf-svd__track { grid-template-columns: 1fr; }
  .mf-svd__pn { grid-template-columns: 1fr; }
  .mf-svd__pnl + .mf-svd__pnl { text-align: left; align-items: flex-start; }
}

/* Clients — responsive */
@media (max-width: 1100px) {
  .mf-clx__cell { width: calc(33.3334% + 1px); }
}
@media (max-width: 760px) {
  .mf-clx { padding: 80px var(--mf-gut) 100px; }
  .mf-clx__cell { width: calc(50% + 1px); }
  .mf-clx__cell { height: 136px; min-height: 0; padding: 16px; }
  .mf-clx__ic { height: 52px; margin-bottom: 12px; }
}
/* Contact — responsive */
@media (max-width: 900px) {
  .mf-talk--page { padding: 120px var(--mf-gut) 120px; }
  .mf-ctc { grid-template-columns: 1fr; padding: 80px var(--mf-gut) 90px; }
}
/* Locations — responsive */
@media (max-width: 900px) {
  .mf-lcx { padding: 80px var(--mf-gut) 90px; }
  .mf-lcx__ways { grid-template-columns: 1fr; gap: 0; }
  .mf-lcx__ways li { padding: 20px 0 22px; }
}
@media (max-width: 600px) {
  .mf-lcx__map { height: 320px; border-radius: 20px; }
  .mf-lcx__open { left: 14px; bottom: 14px; }
}
@media (max-width: 600px) {
  .mf-ctc__form { grid-template-columns: 1fr; gap: 30px; }
  .mf-ctc__f input, .mf-ctc__f select, .mf-ctc__f textarea { font-size: 19px; }
  .mf-talk--page .mf-talk__mail { margin-top: 36px; }
}

/* Reduced motion — inner pages */
@media (prefers-reduced-motion: reduce) {
  .mf-phero__ln > span, .mf-phero__crumb, .mf-phero__foot { transform: none; opacity: 1; transition: none; }
  .mf-phero__bg img { transform: none; transition: none; }
}

/* =========================================================
   WordPress additions (not part of the original HTML design)
   ========================================================= */

/* Locations: spacing between offices when more than one location is added */
.mf-lcx__item + .mf-lcx__item { margin-top: clamp(80px, 9vw, 140px); padding-top: clamp(50px, 6vw, 90px); border-top: 1px solid var(--mf-line); }

/* Contact Form 7 — same look as the original form */
.mf-ctc__form .hidden-fields-container { display: none; }
.mf-ctc__f .wpcf7-form-control-wrap, .mf-ctc__f .wpcf7-form-control { display: block; }
.mf-ctc__f .wpcf7-not-valid { border-color: #B4472F; }
.mf-ctc__f .wpcf7-not-valid-tip { margin-top: 8px; font: 600 11px/1.5 var(--mf-mono); letter-spacing: .08em; text-transform: uppercase; color: #B4472F; }
.mf-ctc__form.submitting .mf-ctc__send { opacity: .6; pointer-events: none; }
.wpcf7 .mf-ctc__form .wpcf7-response-output { grid-column: 1 / -1; margin: 0; padding: 16px 20px; border: 1px solid rgba(14, 27, 51, .35); border-radius: 14px; font: 500 15px/1.5 var(--mf-sans); color: var(--mf-night); }
.wpcf7 .mf-ctc__form.sent .wpcf7-response-output { border-color: var(--mf-bronze); background: rgba(166, 124, 70, .1); }
.wpcf7 .mf-ctc__form.invalid .wpcf7-response-output,
.wpcf7 .mf-ctc__form.unaccepted .wpcf7-response-output,
.wpcf7 .mf-ctc__form.failed .wpcf7-response-output,
.wpcf7 .mf-ctc__form.aborted .wpcf7-response-output,
.wpcf7 .mf-ctc__form.spam .wpcf7-response-output { border-color: #B4472F; color: #B4472F; background: rgba(180, 71, 47, .06); }

/* Fallback content pages (index.php: e.g. Privacy Policy, 404) */
.mf-prose { padding: 100px var(--mf-gut) 130px; }
.mf-prose > * { max-width: 760px; }
.mf-prose p, .mf-prose li { font-size: var(--mf-p); line-height: 1.7; color: #4A4F5B; }
.mf-prose > * + * { margin-top: 1.2em; }
.mf-prose h2 { font: 400 clamp(28px, 3vw, 44px)/1.1 var(--mf-sans); letter-spacing: -.035em; color: var(--mf-ink); }
.mf-prose h3 { font: 500 22px/1.25 var(--mf-sans); color: var(--mf-ink); }
.mf-prose a:not([class]) { text-decoration: underline; text-underline-offset: 3px; }
.mf-prose__list { list-style: none; padding: 0; border-top: 1px solid var(--mf-line); }
.mf-prose__list li { padding: 24px 0; border-bottom: 1px solid var(--mf-line); }
.mf-prose__list li > a { font: 400 clamp(24px, 2.4vw, 36px)/1.2 var(--mf-sans); letter-spacing: -.03em; color: var(--mf-ink); text-decoration: none; }
@media (max-width: 900px) {
  .mf-prose { padding: 80px var(--mf-gut) 90px; }
}
