/* =====================================================
   Mido Hasan — GLOBAL BASE
   /assets/css/00__global-base.css
   Load order: this file FIRST, then 01__Style_Foundation.css,
   then each section's scoped CSS.
   Scope: only true global/shared rules deduplicated across the
   locked section files. Accent = #8E63A3 per locked files.
   ===================================================== */

:root {
  --bg-primary: #141017;
  --bg-surface: #141017;
  --bg-elevated: #1B1620;

  --text-primary: #F6F2F7;
  --text-secondary: #DDD6E3;
  --text-muted: #AFA4B8;
  --text-faint: #7C7284;

  --accent: #8E63A3;
  --accent-soft: #C5A6D3;
  --accent-deep: #4C345D;
  /* legacy accent token names kept stable; remapped to brand glow/light palette */
  --accent-rose: #C5A6D3;
  --accent-lime: #B78CFF;
  --accent-gold: #E6D8FF;

  --border: rgba(44,37,50,0.55);
  --border-faint: rgba(44,37,50,0.30);
  --border-glass: rgba(255,255,255,0.125);

  --font-display: "Migra", serif;
  --font-sans: "Blauer Nue", sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-circ: cubic-bezier(0, 0, .2, 1);
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
  /* Phase 10.9.1: motion duration scale. These tokens already existed
     (--t-base/--t-slow/--t-xslow) but were only used in 2 places. Extended
     with --t-fast and --t-mid to cover the real duration clusters used across
     the site (160ms / 320ms). Values match what's already in use — adopting
     these tokens changes maintainability, not the actual motion timing.
     Scale: fast(hover micro) → base(hover) → mid(UI) → slow(emphasis) → xslow(reveal). */
  --t-fast: 160ms;
  --t-base: 220ms;
  --t-mid: 320ms;
  --t-slow: 420ms;
  --t-xslow: 700ms;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 52px;
  --sp-10: 64px;
  --sp-11: 80px;
  --sp-12: 100px;
  --sp-13: 128px;

  --site-max: 1120px;
  --site-gutter: 40px;
  --site-w: min(var(--site-max), calc(100% - var(--site-gutter)));
  --nav-h: 58px;

  --content-kicker-font-size: 10px;
  --content-kicker-weight: 500;
  --content-kicker-letter-spacing: .26em;
  --content-kicker-transform: uppercase;
  --content-kicker-color: var(--text-muted);

  --content-heading-font: var(--font-display);
  --content-heading-size: clamp(2.6rem, 3.4vw + .3rem, 4.8rem);
  --content-heading-weight: 700;
  --content-heading-line-height: 1.12;
  --content-heading-letter-spacing: -.03em;
  --content-heading-color: var(--text-primary);

  --content-body-size: clamp(.9rem, .88rem + .22vw, 1.05rem);
  --content-body-weight: 400;
  --content-body-line-height: 1.78;
  --content-body-color: var(--text-secondary);

  /* Aliases — tokens some locked sections reference under different
     names (07__How_I_Think). Pointed at canonical values so those
     sections keep rendering identically without editing them. */
  --accent-yellow: var(--accent-gold);
  --accent-warm:   var(--accent-rose);
  --page-x: clamp(20px, 4vw, 56px);

  --content-note-size: clamp(.78rem, .76rem + .14vw, .88rem);
}

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

ul { list-style: none; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--bg-primary);
}

body {
  background: var(--bg-primary);
  color: var(--text-muted);
  font-family: var(--font-sans);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; }

img,
svg,
video {
  display: block;
  max-width: 100%;
}

::selection {
  background: #B78CFF;
  color: #0D0D0D;
}

:focus-visible {
  outline: 1.5px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 3px;
}

.mht-shell {
  width: var(--site-w);
  max-width: var(--site-max);
  margin-inline: auto;
}

.glass-card {
  /* Phase 10.10.4: faux-glass — no live backdrop-filter (confirmed flicker
     cause). A layered gradient + inner highlight + soft glow reads as a lit
     glass panel on the dark theme, with zero compositing cost. */
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.014)),
    linear-gradient(135deg, rgba(197,166,211,0.07), rgba(142,99,163,0.035) 30%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(24,19,31,0.95), rgba(16,12,21,0.92));
  border-radius: 20px;
  /* V9.2: softer, more premium glass edge.
     Outer line is lower opacity (~6.5% vs the previous 12.5%) so it reads
     as a real glass edge rather than a harsh outline. An inset highlight
     adds the subtle "lit-from-above" rim that real glass has on dark bg. */
  border: 1px solid rgba(245, 243, 247, 0.09);
  box-shadow: inset 0 1px 0 rgba(245, 243, 247, 0.045);
}

.glass-card--elevated {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 2px 6px rgba(0,0,0,.10),
    0 8px 20px rgba(0,0,0,.12),
    0 22px 50px rgba(0,0,0,.14),
    0 40px 90px rgba(0,0,0,.12);
}

.mht-content-kicker {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--content-kicker-font-size);
  font-weight: var(--content-kicker-weight);
  letter-spacing: var(--content-kicker-letter-spacing);
  text-transform: var(--content-kicker-transform);
  color: var(--content-kicker-color);
}

.mht-content-kicker__line {
  display: block;
  width: 22px;
  height: .5px;
  background: var(--accent-lime);
  flex-shrink: 0;
}

.mht-content-heading {
  font-family: var(--content-heading-font);
  font-size: var(--content-heading-size);
  font-weight: var(--content-heading-weight);
  line-height: var(--content-heading-line-height);
  letter-spacing: var(--content-heading-letter-spacing);
  color: var(--content-heading-color);
  padding-bottom: .12em;
  overflow: visible;
}

.mht-content-heading em {
  display: block;
  font-style: italic;
  font-weight: 400;
  padding-bottom: .14em;
  overflow: visible;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mht-content-body {
  font-size: var(--content-body-size);
  font-weight: var(--content-body-weight);
  line-height: var(--content-body-line-height);
  color: var(--content-body-color);
}

.mht-content-note {
  font-size: var(--content-note-size);
  font-weight: 400;
  line-height: 1.48;
  color: var(--text-muted);
}

/* ---- Universal button system (LOCKED — verbatim from 02__Hero) ---- */
/* Locked button system */
.mht-u-btn {
  --btn-h: 48px;
  --btn-border: rgba(245,243,247,.18);
  --btn-text: var(--text-primary);
  --btn-bg: transparent;

  position: relative;
  isolation: isolate;
  height: var(--btn-h);
  min-height: var(--btn-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transform: none;
  /* Phase 10.9.1: tokenized — 420ms = --t-slow. The global button is the
     most-used interactive element; routing it through the token guarantees
     every button site-wide shares identical timing. Value unchanged. */
  transition:
    border-color var(--t-slow) var(--ease-out),
    color var(--t-slow) var(--ease-out),
    background-color var(--t-slow) var(--ease-out);
}

.mht-u-btn:hover,
.mht-u-btn:active,
.mht-u-btn:focus {
  transform: none;
}

.mht-u-btn:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 4px;
}

.mht-u-btn__label {
  position: relative;
  z-index: 3;
}

.mht-u-btn--primary {
  gap: 14px;
  padding: 0 6px 0 24px;
  background: var(--bg-primary);
  border-color: rgba(245,242,247,.16);
  color: var(--text-primary);
}

.mht-u-btn--primary:hover {
  border-color: #B78CFF;
  background: #141017;
  color: #E6D8FF;
}

.mht-u-btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent 0%, rgba(197,166,211,.08) 50%, transparent 100%);
  transform: translateX(-70%);
  opacity: 0;
  transition:
    transform 700ms var(--ease-out),
    opacity 420ms var(--ease-out);
}

.mht-u-btn--primary:hover::before {
  transform: translateX(70%);
  opacity: 1;
}

.mht-u-btn__orb {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #F6F2F7;
  color: #0D0D0D;
  transition: color 420ms var(--ease-out);
}

.mht-u-btn__orb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: #B78CFF;
  transform: translateX(-105%) rotate(8deg);
  transform-origin: left center;
  transition: transform 560ms var(--ease-out);
}

.mht-u-btn--primary:hover .mht-u-btn__orb {
  color: #141017;
}

.mht-u-btn--primary:hover .mht-u-btn__orb::after {
  transform: translateX(0) rotate(0deg);
}

.mht-u-btn__orb::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0%, rgba(76,52,93,.16) 46%, transparent 72%);
  transform: translateX(-115%);
  opacity: .78;
  transition:
    transform 620ms var(--ease-out),
    opacity 420ms var(--ease-out);
}

.mht-u-btn--primary:hover .mht-u-btn__orb::before {
  transform: translateX(115%);
  opacity: .95;
}

.mht-u-btn__svg {
  position: relative;
  z-index: 3;
  width: 18px;
  height: 18px;
  display: block;
  overflow: visible;
}

.mht-u-btn__svg-line,
.mht-u-btn__svg-head {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform 480ms var(--ease-out),
    stroke-dashoffset 480ms var(--ease-out),
    opacity 480ms var(--ease-out);
}

.mht-u-btn__svg-line {
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  opacity: 0;
  transform: translateX(-4px);
}

.mht-u-btn__svg-head {
  transform: translateX(-2px);
}

.mht-u-btn--primary:hover .mht-u-btn__svg-line {
  stroke-dashoffset: 0;
  opacity: 1;
  transform: translateX(0);
}

.mht-u-btn--primary:hover .mht-u-btn__svg-head {
  transform: translateX(2px);
}

.mht-u-btn--secondary {
  padding: 0 26px;
  border-color: var(--border);
  background: var(--bg-primary);
  color: var(--text-secondary);
}

.mht-u-btn--secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #B78CFF;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--ease-out);
}

.mht-u-btn--secondary:hover {
  color: var(--bg-primary);
  border-color: var(--accent-lime);
  background: transparent;
}

.mht-u-btn--secondary:hover::before {
  transform: scaleX(1);
}

.mht-u-btn--nav {
  height: 38px;
  min-height: 38px;
  padding: 0 17px;
  gap: 9px;
  border-color: #8E63A3;
  color: var(--text-secondary);
  background: rgba(13,13,13,.18);
  font-size: 9px;
  letter-spacing: .16em;
}

.mht-u-btn--nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #B78CFF;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms var(--ease-out);
}

.mht-u-btn--nav:hover {
  border-color: #B78CFF;
  color: var(--bg-primary);
}

.mht-u-btn--nav:hover::before {
  transform: scaleX(1);
}

.mht-u-btn__dot {
  position: relative;
  z-index: 3;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  background: #B78CFF;
  box-shadow: 0 0 12px rgba(183,140,255,.38);
  animation: mht-dot-pulse 2.4s ease-in-out infinite;
}

.mht-u-btn--nav:hover .mht-u-btn__dot {
  background: #0D0D0D;
  box-shadow: none;
}

@keyframes mht-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .32; transform: scale(.72); }
}

/* =============================================================================
   V9.2 — Site-wide subtle grain overlay + modal scroll-lock without jump.
   ========================================================================== */

/* Site grain — a single fixed-position overlay sitting ABOVE the body bg but
   BELOW content. Pointer-events:none so it never interferes. Uses the same
   inline-SVG noise data URI as the project cards for consistency. */
html { isolation: isolate; }
html::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.36 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	background-size: 180px 180px;
	background-repeat: repeat;
	opacity: 0.045;          /* very subtle — readability protected */
	mix-blend-mode: overlay;
}
/* Ensure all primary layout flows above the grain. */
body > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
	html::before { opacity: 0.03; }
}

/* === Modal scroll-lock without visual jump ============================== */
/* The previous lock used body{position:fixed;top:-Ypx} which caused a small
   vertical shift on open and a delayed shift on close. The new lock keeps
   body in flow with overflow:hidden on html+body, and compensates for the
   reserved scrollbar gutter so layout width never changes. */
html.mht-modal-lock,
body.mht-modal-lock {
	overflow: hidden !important;
}
/* Compensate scrollbar width set by JS as --mht-scrollbar-w. */
body.mht-modal-lock {
	padding-right: var(--mht-scrollbar-w, 0px);
}
/* Fixed header must not shift either. */
.mht-nav {
	padding-right: var(--mht-scrollbar-w-nav, 0px);
}

/* =============================================================================
   V9.2 — Global section padding + gradient placement guidance.

   To prevent gradient-cropping at section edges (the issue seen on the
   Enquiries page), large sections should have equal, generous top + bottom
   padding so gradient backdrops never sit flush with a hard boundary.

   --section-padding is already set in 01__Style_Foundation.css to
   clamp(72px, 10vw, 130px) and applies to every .mht-section via padding-block.
   The rule below adds a minimum floor on large sections that explicitly host
   a gradient background (.mht-section--gradient) so the gradient's edges
   stay safely inside the section.

   It also alternates the gradient origin via :nth-of-type so consecutive
   gradient sections don't all glow from the same side.
   ========================================================================== */
.mht-section.mht-section--gradient {
	/* Floor: never less than this even if --section-padding shrinks. */
	padding-block: max(96px, var(--section-padding));
}
/* Odd-indexed gradient sections lean right; even ones lean left.
   Sections that need a specific side can override with their own class. */
.mht-section.mht-section--gradient:nth-of-type(odd)::before {
	background-position: 78% 50%;
}
.mht-section.mht-section--gradient:nth-of-type(even)::before {
	background-position: 22% 50%;
}

/* =====================================================
   MIDO PHASE 10.4.1 — BUTTON VISIBILITY + SECTION HEADING SYSTEM
   ===================================================== */

/* Part 8 — Button visibility fix */
/* button_1 = .mht-u-btn--primary: clearer white border */
.mht-u-btn--primary {
  border-color: rgba(245,242,247,.32);
}
/* Hover stays #B78CFF — already correct in base, no change needed */

/* button_2 = .mht-u-btn--secondary: #B78CFF accent border */
.mht-u-btn--secondary {
  border-color: rgba(183,140,255,.45);
  color: var(--text-secondary);
}
.mht-u-btn--secondary:hover {
  border-color: #B78CFF;
}

/* Part 7 — Two-part gradient section heading system */
.mht-split-heading {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin: 0;
}
.mht-split-heading__white {
  color: var(--text-primary, #F6F2F7);
}
.mht-split-heading__gradient {
  background: linear-gradient(135deg, #8E63A3 0%, #B78CFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

/* Enquiries focus outline fix (Part 3) */
.mht-enquiries-page *:focus {
  outline: none;
}
.mht-enquiries-page *:focus-visible {
  outline: 2px solid rgba(183,140,255,.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =============================================================================
   MIDO PHASE 10.4.4 — BUTTON_1 ORB TABLET ALIGNMENT (GLOBAL FIX)
   Ensures orb sits flush right on all screen sizes including tablet.
   Applies to ALL mht-u-btn--primary buttons sitewide.
   ============================================================================= */

/* Force orb to always push to the right edge of the button */
.mht-u-btn--primary {
	justify-content: space-between;
}

/* Orb never shrinks, sits at right edge */
.mht-u-btn--primary .mht-u-btn__orb {
	margin-left: auto;
	flex-shrink: 0;
}

/* Tablet: ensure padding + gap stays consistent */
@media (min-width: 480px) and (max-width: 1024px) {
	.mht-u-btn--primary {
		padding: 0 6px 0 22px;
		gap: 12px;
	}
	.mht-u-btn--primary .mht-u-btn__orb {
		width: 36px;
		height: 36px;
		flex: 0 0 36px;
	}
}


/* Phase 113 — casual image protection
   This only deters casual save/drag behavior. It cannot make browser-loaded images impossible to capture. */
img:not([data-mht-allow-image-touch]) {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
