/* =============================================================
   METHOS KIT — foundation v0.7.0
   Rule: every selector is scoped to .mth-scope or prefixed mth-.
   Nothing here can restyle the theme or other plugins.
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
	--mth-bg: #ffffff;
	--mth-surface: #f7f6f9;
	--mth-ink: #141414;
	--mth-ink-2: #4a4a55;
	--mth-muted: #8a8794;
	--mth-line: #ece9f1;

	--mth-purple: #8343d5;
	--mth-purple-deep: #6b2fbd;
	--mth-purple-soft: #f4eefc;

	--mth-font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--mth-radius: 16px;
	--mth-radius-pill: 999px;

	--mth-container: 1200px;
	--mth-gutter: clamp(16px, 4vw, 40px);
	--mth-header-h: 76px;
	--mth-section-y: clamp(80px, 11vw, 160px);

	--mth-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Page base (Methos Blank pages only) ---------- */
body.mth-page {
	margin: 0;
	background: var(--mth-bg);
	color: var(--mth-ink);
	font-family: var(--mth-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
.mth-main { display: block; }

/* ---------- 3. Scoped reset (inside our sections only) ---------- */
.mth-scope,
.mth-scope *,
.mth-scope *::before,
.mth-scope *::after { box-sizing: border-box; }

.mth-scope {
	font-family: var(--mth-font);
	color: var(--mth-ink);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: normal;
	text-align: left;
}
.mth-scope h1, .mth-scope h2, .mth-scope h3,
.mth-scope h4, .mth-scope h5, .mth-scope h6,
.mth-scope p, .mth-scope ul, .mth-scope ol, .mth-scope figure {
	margin: 0;
	padding: 0;
	font-family: inherit;
	color: inherit;
	text-transform: none;
}
.mth-scope ul, .mth-scope ol { list-style: none; }
.mth-scope a { color: inherit; text-decoration: none; background: none; box-shadow: none; }
.mth-scope img, .mth-scope svg { display: block; max-width: 100%; height: auto; border: 0; }
.mth-scope button {
	font: inherit; color: inherit; background: none; border: 0;
	padding: 0; margin: 0; cursor: pointer; box-shadow: none; text-transform: none;
	min-height: 0; line-height: inherit;
}
.mth-scope :focus-visible { outline: 2px solid var(--mth-purple); outline-offset: 3px; border-radius: 6px; }

/* ---------- 4. Layout ---------- */
.mth-scope .mth-container {
	width: 100%;
	max-width: calc(var(--mth-container) + var(--mth-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--mth-gutter);
}
.mth-scope.mth-section { padding: var(--mth-section-y) 0; background: var(--mth-bg); }

/* ---------- 5. Type ---------- */
.mth-scope .mth-h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 600; line-height: 1.06; letter-spacing: -0.03em; }
.mth-scope .mth-h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 600; line-height: 1.1;  letter-spacing: -0.025em; }
.mth-scope .mth-h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.mth-scope .mth-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--mth-ink-2); }
.mth-scope .mth-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
	color: var(--mth-purple);
}

/* ---------- 6. Buttons ---------- */
.mth-scope .mth-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 22px;
	border-radius: var(--mth-radius-pill);
	font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
	transition: background-color .2s var(--mth-ease), color .2s var(--mth-ease), border-color .2s var(--mth-ease), transform .2s var(--mth-ease);
}
.mth-scope .mth-btn:active { transform: translateY(1px); }
.mth-scope .mth-btn--primary { background: var(--mth-purple); color: #fff; }
.mth-scope .mth-btn--primary:hover { background: var(--mth-purple-deep); color: #fff; }
.mth-scope .mth-btn--ghost { border: 1px solid var(--mth-line); color: var(--mth-ink); background: #fff; }
.mth-scope .mth-btn--ghost:hover { border-color: var(--mth-purple); color: var(--mth-purple); }
.mth-scope .mth-btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* ---------- 7. Reveal-on-scroll utility (used by later sections) ---------- */
html.mth-js .mth-scope [data-mth-reveal] {
	opacity: 0; transform: translateY(18px);
	transition: opacity .7s var(--mth-ease), transform .7s var(--mth-ease);
}
html.mth-js .mth-scope [data-mth-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html.mth-js .mth-scope [data-mth-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- 8. Skip link ---------- */
.mth-skip {
	position: absolute; left: 16px; top: -100px; z-index: 10001;
	padding: 10px 16px; border-radius: 8px;
	background: var(--mth-ink); color: #fff; font: 500 14px/1 var(--mth-font); text-decoration: none;
}
.mth-skip:focus { top: 12px; }

/* =============================================================
   SECTION 1 — HEADER
   ============================================================= */
.mth-header {
	position: sticky; top: 0; z-index: 1000;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s var(--mth-ease), box-shadow .25s var(--mth-ease), transform .32s var(--mth-ease);
}
/* tucked away while scrolling down; back on scroll up */
.mth-header.is-hidden { transform: translateY(-100%); box-shadow: none; }
body.admin-bar .mth-header.is-hidden { transform: translateY(calc(-100% - 46px)); }
@media (prefers-reduced-motion: reduce) { .mth-header { transition: none; } }
body.admin-bar .mth-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .mth-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .mth-header { top: 0; } }

.mth-header.is-scrolled {
	border-bottom-color: var(--mth-line);
	box-shadow: 0 10px 30px -18px rgba(20, 20, 20, .18);
}

.mth-header .mth-header__inner {
	display: flex; align-items: center; gap: 24px;
	height: var(--mth-header-h);
}

/* Brand */
.mth-header .mth-header__brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mth-header .mth-header__logo { height: 40px; width: auto; }
.mth-header .mth-header__wordmark[hidden] { display: none; }
.mth-header .mth-header__wordmark {
	font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--mth-ink); line-height: 1;
}
.mth-header .mth-header__wordmark span { font-weight: 400; color: var(--mth-muted); }

/* Nav (desktop) */
.mth-header .mth-nav { margin-left: auto; display: flex; align-items: center; }
.mth-header .mth-nav__list { display: flex; align-items: center; gap: 2px; }
.mth-header .mth-nav__list a {
	display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
	border-radius: var(--mth-radius-pill);
	font-size: 15px; font-weight: 500; color: var(--mth-ink-2);
	transition: background-color .2s var(--mth-ease), color .2s var(--mth-ease);
}
.mth-header .mth-nav__list a:hover { background: var(--mth-purple-soft); color: var(--mth-purple); }
.mth-header .mth-nav__list .current-menu-item > a,
.mth-header .mth-nav__list a[aria-current="page"] { color: var(--mth-ink); font-weight: 600; }
.mth-header .mth-nav__cta { display: none; }

/* Toggle (mobile) */
.mth-header .mth-header__toggle {
	display: none; position: relative;
	width: 44px; height: 44px; border-radius: 12px; margin-left: 4px;
}
.mth-header .mth-header__toggle span {
	position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
	background: var(--mth-ink);
	transition: transform .25s var(--mth-ease), top .25s var(--mth-ease);
}
.mth-header .mth-header__toggle span:nth-child(1) { top: 17px; }
.mth-header .mth-header__toggle span:nth-child(2) { top: 25px; }
.mth-header .mth-header__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.mth-header .mth-header__toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Tablet + mobile */
@media (max-width: 959px) {
	.mth-header .mth-header__toggle { display: inline-block; }
	.mth-header .mth-header__cta { margin-left: auto; }

	.mth-header .mth-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		display: block; margin: 0;
		padding: 8px var(--mth-gutter) 24px;
		background: #fff;
		border-bottom: 1px solid var(--mth-line);
		box-shadow: 0 24px 40px -24px rgba(20, 20, 20, .18);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .2s var(--mth-ease), transform .2s var(--mth-ease), visibility 0s linear .2s;
	}
	.mth-header.is-open .mth-nav {
		opacity: 1; visibility: visible; transform: none;
		transition: opacity .2s var(--mth-ease), transform .2s var(--mth-ease);
	}
	.mth-header .mth-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.mth-header .mth-nav__list a {
		display: flex; height: auto; padding: 16px 0; border-radius: 0;
		border-bottom: 1px solid var(--mth-line);
		font-size: 18px; color: var(--mth-ink);
	}
	.mth-header .mth-nav__list a:hover { background: none; color: var(--mth-purple); }
	.mth-header.is-open { border-bottom-color: var(--mth-line); }
}

/* Phones: header button moves inside the menu */
@media (max-width: 639px) {
	.mth-header .mth-header__cta { display: none; }
	.mth-header .mth-header__toggle { margin-left: auto; }
	.mth-header .mth-nav__cta { display: flex; width: 100%; margin-top: 20px; height: 52px; font-size: 16px; }
	.mth-header .mth-header__wordmark span { display: none; }
}

/* ---------- Smooth scrolling for on-page links (#about, #services …) ---------- */
@media (prefers-reduced-motion: no-preference) {
	html:has(body.mth-page) { scroll-behavior: smooth; }
}
.mth-scope[id], .mth-scope [id] { scroll-margin-top: 24px; }

/* ---------- Glass button (for dark backgrounds) ---------- */
.mth-scope .mth-btn--glass {
	color: #fff;
	background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
	border: 1px solid rgba(255, 255, 255, .2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.mth-scope .mth-btn--glass:hover { color: #fff; border-color: rgba(255, 255, 255, .38); background-color: rgba(255, 255, 255, .06); }

/* =============================================================
   FOOTER
   ============================================================= */
.mth-footer {
	position: relative; overflow: hidden;
	padding: clamp(80px, 11vw, 140px) 0 28px;
	color: #fff;
	background:
		radial-gradient(50% 28% at 50% 42%, rgba(131, 67, 213, .18), rgba(131, 67, 213, 0) 100%),
		#110d17;
}
.mth-footer .mth-footer__top { text-align: center; max-width: 1120px; margin: 0 auto; }
.mth-footer .mth-footer__kicker {
	font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
	color: rgba(255, 255, 255, .55); text-align: center;
}
.mth-footer .mth-footer__title {
	margin-top: 16px;
	font-size: clamp(40px, 6.4vw, 88px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em;
	color: #fff; text-align: center;
}
.mth-footer .mth-footer__title span { display: block; color: #a06ce6; }
.mth-footer .mth-footer__actions {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
	margin-top: clamp(28px, 4vw, 44px);
}

.mth-footer .mth-footer__grid {
	display: grid; gap: 40px 32px;
	grid-template-columns: 1fr;
	margin-top: clamp(72px, 9vw, 120px);
	padding-top: 40px;
	border-top: 1px solid rgba(255, 255, 255, .1);
}
@media (min-width: 640px)  { .mth-footer .mth-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mth-footer .mth-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.mth-footer .mth-footer__logo-link { display: inline-block; margin-bottom: 18px; }
.mth-footer .mth-footer__logo { display: block; width: auto; height: 56px; max-width: 220px; object-fit: contain; }
.mth-footer .mth-footer__logo--white { filter: brightness(0) invert(1); opacity: .92; }   /* main logo turned white for the dark footer */
.mth-footer .mth-footer__brand { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.mth-footer .mth-footer__about { margin-top: 12px; max-width: 360px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .6); }
.mth-footer .mth-footer__label {
	margin-bottom: 14px;
	font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
}
.mth-footer .mth-footer__list li + li { margin-top: 10px; }
.mth-footer .mth-footer__list a,
.mth-footer .mth-footer__list span { font-size: 15px; color: rgba(255, 255, 255, .82); transition: color .2s var(--mth-ease); }
.mth-footer .mth-footer__list a:hover { color: #c9a7ff; }
.mth-footer .mth-footer__list a span { font-size: 12px; color: inherit; }

/* Giant wordmark — the semicolon is the brand's "the story continues" mark */
.mth-footer .mth-footer__wordmark {
	margin: clamp(56px, 8vw, 96px) 0 0;
	font-size: min(23vw, 300px); font-weight: 700; line-height: .82; letter-spacing: -0.055em;
	padding-bottom: .16em;   /* room for the semicolon's tail */
	text-align: center; white-space: nowrap; user-select: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .02) 85%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.mth-footer .mth-footer__wordmark span {
	margin-left: 0.06em;   /* space between "Methos" and the semicolon */
	background: linear-gradient(180deg, #a06ce6 0%, rgba(131, 67, 213, .25) 90%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

.mth-footer .mth-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	margin-top: 0; padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: 13px; color: rgba(255, 255, 255, .45);
}

/* ---------- "Start a conversation" pop-up ---------- */
html.mth-modal-open, html.mth-modal-open body { overflow: hidden; }
.mth-scope.mth-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; color: #fff; }
.mth-scope.mth-modal[hidden] { display: none; }
.mth-modal .mth-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 7, 14, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s var(--mth-ease); }
.mth-modal .mth-modal__panel {
	position: relative; width: min(100%, 620px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto;
	padding: clamp(28px, 4vw, 44px); border-radius: 26px;
	background: radial-gradient(70% 50% at 50% 0%, rgba(131, 67, 213, .28), rgba(131, 67, 213, 0) 70%), #16111d;
	border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7);
	opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .22s var(--mth-ease), transform .26s var(--mth-ease);
}
.mth-modal.is-open .mth-modal__backdrop { opacity: 1; }
.mth-modal.is-open .mth-modal__panel { opacity: 1; transform: none; }
.mth-modal .mth-modal__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, .7); }
.mth-modal .mth-modal__x:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.mth-modal .mth-modal__kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #c9a7ff; }
.mth-modal .mth-modal__title { margin-top: 10px; font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: #fff; padding-right: 32px; }
.mth-modal .mth-modal__sub { margin-top: 10px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .65); }
.mth-modal .mth-modal__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.mth-modal .mth-opt {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left;
	padding: 18px; border-radius: 18px; color: #fff;
	background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
	border: 1px solid rgba(255, 255, 255, .12);
	transition: border-color .2s var(--mth-ease), transform .2s var(--mth-ease), background-color .2s var(--mth-ease);
}
.mth-modal .mth-opt .mth-opt__odd { display: none; }
.mth-modal .mth-opt.is-odd { pointer-events: none; cursor: default; opacity: .6; }
.mth-modal .mth-opt.is-odd .mth-opt__num { display: none; }
.mth-modal .mth-opt.is-odd .mth-opt__odd { display: block; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .6); }
.mth-modal .mth-opt:hover { border-color: rgba(201, 167, 255, .6); transform: translateY(-2px); background-color: rgba(131, 67, 213, .12); }
.mth-modal .mth-opt__icon { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(131, 67, 213, .22); color: #d8c2ff; }
.mth-modal .mth-opt__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mth-modal .mth-opt b { font-size: 16px; font-weight: 600; }
.mth-modal .mth-opt > span:last-child { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .6); min-width: 0; overflow-wrap: anywhere; }
.mth-modal .mth-modal__back { margin-bottom: 18px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.mth-modal .mth-modal__back:hover { color: #fff; }
.mth-modal .mth-modal__done .mth-btn { margin-top: 24px; }
@media (max-width: 520px) { .mth-modal .mth-modal__options { grid-template-columns: 1fr; } }

/* ---------- Forms (pop-up and free audit page): built for dark backgrounds ---------- */
.mth-scope .mth-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; align-items: end; }
.mth-scope .mth-field-row { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.mth-scope .mth-field-row--full { grid-column: 1 / -1; }
.mth-scope .mth-field-row > span { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.mth-scope .mth-field-row > span i { font-style: normal; color: rgba(255, 255, 255, .4); }
.mth-scope .mth-form input, .mth-scope .mth-form textarea, .mth-scope .mth-form select {
	width: 100%; min-height: 48px; margin: 0; padding: 12px 14px; border-radius: 12px;
	font: inherit; font-size: 16px; line-height: 1.4; color: #fff;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; outline: none;
	transition: border-color .2s var(--mth-ease), background-color .2s var(--mth-ease);
	-webkit-appearance: none; appearance: none;
}
.mth-scope .mth-form textarea { resize: vertical; min-height: 104px; }
.mth-scope .mth-form select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9a7ff' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.mth-scope .mth-form select option { color: #141414; }
.mth-scope .mth-form input::placeholder, .mth-scope .mth-form textarea::placeholder { color: rgba(255, 255, 255, .35); }
.mth-scope .mth-form input:focus, .mth-scope .mth-form textarea:focus, .mth-scope .mth-form select:focus { border-color: #a06ce6; background-color: rgba(255, 255, 255, .09); }
.mth-scope .mth-form .is-invalid { border-color: #ff7a8a; background-color: rgba(255, 122, 138, .08); }
.mth-scope .mth-form__note { margin-top: 12px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .45); }
.mth-scope .mth-form__submit { margin-top: 20px; width: 100%; }
.mth-scope .mth-form__submit[disabled] { opacity: .6; cursor: wait; }
.mth-scope .mth-form__status { min-height: 1.4em; margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.mth-scope .mth-form__status.is-bad { color: #ff9aa6; }
.mth-scope .mth-form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) { .mth-scope .mth-form__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mth-modal .mth-modal__panel, .mth-modal .mth-modal__backdrop { transition: none; } }
/* ---------- Footer on phones: columns side by side instead of one long stack ---------- */
@media (max-width: 639px) {
	.mth-footer .mth-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
	.mth-footer .mth-footer__col--about { grid-column: 1 / -1; }
	/* Contact: its own row under Explore + Follow, details in one line that wraps */
	.mth-footer .mth-footer__col:has(a[href^="mailto:"], a[href^="tel:"]) { grid-column: 1 / -1; order: 3; }
	.mth-footer .mth-footer__col:has(a[href^="mailto:"], a[href^="tel:"]) .mth-footer__list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
	.mth-footer .mth-footer__col:has(a[href^="mailto:"], a[href^="tel:"]) .mth-footer__list li + li { margin-top: 0; }
	.mth-footer .mth-footer__list a,
	.mth-footer .mth-footer__list span { font-size: 14px; }
}
