/* =====================================================
   Mido Hasan — HOW I THINK (scoped)
   /assets/css/07__how-i-think.css
   Lifted verbatim from 07__How_I_Think.html (section CSS only).
   Excluded as duplicate globals: :root, reset, html/body, fonts,
   demo-before/demo-after. Locked scroll behavior, layout, width,
   typography, and spacing preserved. Global section-header spacing
   is NOT applied here (this section keeps its own locked spacing).
   ===================================================== */

/* Locked scoped token override (preserved exactly as in the locked file). */
.mht-who-scroll {
  --text-muted: #A29AA9;
}

.mht-who-scroll {
  position: relative;
  height: 360svh;
  background: transparent;
  isolation: isolate;
}

.mht-who-scroll__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px) var(--page-x);
  display: grid;
  place-items: center;
}

.mht-who-scroll__title {
  --title-scale: .34;
  --title-y: 0px;
  --title-opacity: 1;
  position: absolute;
  left: 50%;
  top: 30%;
  z-index: 3;
  width: min(1320px, calc(100% - 60px));
  transform: translate(-50%, -50%) translateY(var(--title-y)) scale(var(--title-scale));
  transform-origin: center;
  opacity: var(--title-opacity);
  color: var(--text-primary);
  font-family: "Migra", Georgia, serif;
  font-size: clamp(4rem, 11vw, 12rem);
  line-height: .82;
  letter-spacing: -.075em;
  font-weight: 700;
  text-align: center;
  will-change: transform, opacity;
  padding-bottom: .12em;
  pointer-events: none;
}

.mht-who-scroll__title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(197,166,211,.72);
}

.mht-who-scroll__scene {
  --scene-y: 360px;
  position: relative;
  z-index: 4;
  width: min(1500px, 100%);
  /* Phase 10.10.4+: capped at 620px desktop to reduce paint area */
  height: min(620px, 92svh);
  overflow: hidden;
  border-radius: clamp(22px, 3vw, 38px);
  background: var(--bg-surface);
  isolation: isolate;
  box-shadow: 0 8px 24px rgba(0,0,0,.16), 0 30px 80px rgba(0,0,0,.18), 0 60px 140px rgba(0,0,0,.14);
  transform: translateY(var(--scene-y));
  will-change: transform;
}

.mht-who-scroll__bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: #4C345D;
  background-image:
    radial-gradient(at 0% 100%, rgba(197,166,211,.88) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(197,166,211,.62) 0px, transparent 48%),
    radial-gradient(at 100% 100%, rgba(142,99,163,.78) 0px, transparent 44%),
    radial-gradient(at 38% 36%, rgba(76,52,93,.92) 0px, transparent 56%);
  background-size: 220% 220%;
  animation: mhtMeshMove 8s ease infinite;
  /* Phase 10.10.4+: filter:saturate/contrast removed — no CSS filters on mesh */
}

@keyframes mhtMeshMove {
  0% { background-position: 0% 20%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 50% 72%; }
  100% { background-position: 0% 20%; }
}

@keyframes mhtTasteMeshMove {
  /* Phase 10.10.4+: filter:saturate/brightness removed from keyframes.
     Animate background-position only — no filter paint cost. */
  0% { background-position: 0% 0%; }
  25% { background-position: 100% 18%; }
  50% { background-position: 80% 100%; }
  75% { background-position: 10% 80%; }
  100% { background-position: 0% 0%; }
}

.mht-who-scroll__grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: .21;
  background-image:
    linear-gradient(rgba(0,0,0,.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.34) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.mht-who-scroll__grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: .10;
  background: repeating-radial-gradient(circle at 30% 40%, rgba(255,255,255,.08) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.mht-who-scroll__vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.08), transparent 26%, transparent 72%, rgba(0,0,0,.40)),
    radial-gradient(circle at center, transparent 32%, rgba(0,0,0,.34));
  pointer-events: none;
}

.mht-who-scroll__stage {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.mht-who-card {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  --s: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(315px, 28vw, 430px);
  height: clamp(205px, 18.5vw, 245px);
  min-height: 0;
  padding: clamp(20px, 2vw, 27px);
  color: var(--text-primary);
  opacity: 1;
  transform: translate(-50%, -50%) translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(var(--s));
  transform-origin: center;
  will-change: transform;
  /* Phase 10.10.8: solid premium fill — no transparency that lets cards
     bleed into the mesh background. Base is opaque #141017. */
  background-color: #141017;
  background:
    radial-gradient(circle at 18% 0%, rgba(183,140,255,0.16), transparent 34%),
    linear-gradient(145deg, #2F1F3A 0%, #141017 48%, #0D0D0D 100%);
  border-radius: 20px;
  border: 1px solid rgba(197,166,211,0.18);
  box-shadow:
    inset 0 1px 0 rgba(246,242,247,0.07),
    0 18px 46px rgba(0,0,0,0.36);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mht-who-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Phase 10.10.8: subtle top highlight only — no glassy wash */
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.06), transparent 30%);
  opacity: 1;
  pointer-events: none;
}

.mht-who-card__title,
.mht-who-card__content {
  position: relative;
  z-index: 2;
}

.mht-who-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2.45rem);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 700;
  color: #fff;
}

.mht-who-card__content {
  position: relative;
  margin-top: auto;
  display: grid;
  grid-template-columns: clamp(70px, 6.4vw, 90px) 1fr;
  gap: clamp(15px, 1.7vw, 24px);
  align-items: center;
}

.mht-who-card__icon-wrap {
  /* Phase 10.10.6: no box, no background, no border, no shadow.
     The icon floats in the slot as an abstract editorial symbol. */
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(70px, 6.4vw, 90px);
  aspect-ratio: 1;
  background: none;
  border: none;
  box-shadow: none;
  flex: 0 0 auto;
}

.mht-who-card__svg {
  /* Full slot — icon fills the allocated area, no inner cropping */
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* ── Taste icon animations ────────────────────────────────────────────────
   Bars breathe softly — staggered opacity pulses. Transform + opacity only. */
.mht-who-card--one .mht-icon-bar-1 {
  animation: mht-icon-bar-breathe 3.2s ease-in-out infinite;
}
.mht-who-card--one .mht-icon-bar-2 {
  animation: mht-icon-bar-breathe 3.2s ease-in-out 0.4s infinite;
}
.mht-who-card--one .mht-icon-bar-3 {
  animation: mht-icon-bar-breathe 3.2s ease-in-out 0.8s infinite;
}
.mht-who-card--one .mht-icon-accent {
  animation: mht-icon-pulse 3.2s ease-in-out infinite;
}

@keyframes mht-icon-bar-breathe {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}
@keyframes mht-icon-pulse {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.78); }
}

/* ── Structure icon animations ───────────────────────────────────────────
   Nodes pulse in sequence — like a system becoming connected. */
.mht-who-card--two .mht-icon-node-top {
  animation: mht-icon-node-signal 4s ease-in-out infinite;
}
.mht-who-card--two .mht-icon-node-left {
  animation: mht-icon-node-signal 4s ease-in-out 1.2s infinite;
}
.mht-who-card--two .mht-icon-node-right {
  animation: mht-icon-node-signal 4s ease-in-out 2.4s infinite;
}
.mht-who-card--two .mht-icon-lines {
  animation: mht-icon-lines-fade 4s ease-in-out infinite;
}

@keyframes mht-icon-node-signal {
  0%, 100% { opacity: 1;    transform: scale(1); }
  40%       { opacity: 0.35; transform: scale(0.72); }
  70%       { opacity: 1;    transform: scale(1.12); }
}
@keyframes mht-icon-lines-fade {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ── Perception icon animations ──────────────────────────────────────────
   Outer lens shape breathes. Inner pupil steady. Dashed ring rotates slowly. */
.mht-who-card--three .mht-icon-lens {
  animation: mht-icon-lens-breathe 4.8s ease-in-out infinite;
}
.mht-who-card--three .mht-icon-iris {
  animation: mht-icon-iris-expand 4.8s ease-in-out infinite;
}
.mht-who-card--three .mht-icon-ring {
  transform-origin: 40px 40px;
  animation: mht-icon-ring-spin 12s linear infinite;
}

@keyframes mht-icon-lens-breathe {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes mht-icon-iris-expand {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.14); }
}
@keyframes mht-icon-ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Reduced motion ──────────────────────────────────────────────────────*/
@media (prefers-reduced-motion: reduce) {
  .mht-who-card--one .mht-icon-bar-1,
  .mht-who-card--one .mht-icon-bar-2,
  .mht-who-card--one .mht-icon-bar-3,
  .mht-who-card--one .mht-icon-accent,
  .mht-who-card--two .mht-icon-node-top,
  .mht-who-card--two .mht-icon-node-left,
  .mht-who-card--two .mht-icon-node-right,
  .mht-who-card--two .mht-icon-lines,
  .mht-who-card--three .mht-icon-lens,
  .mht-who-card--three .mht-icon-iris,
  .mht-who-card--three .mht-icon-ring {
    animation: none !important;
  }
}

/* Legacy icon CSS kept for reference but no longer rendered — classes removed from HTML */
.mht-who-card__visual,
.mht-who-card__structure-icon,
.mht-who-card__perception-icon {
  /* Preserved class names for stability — HTML now uses .mht-who-card__icon-wrap */
}

.mht-who-card__copy {
  color: rgba(245,243,247,.9);
  font-family: var(--font-sans);
  font-size: clamp(.82rem, .92vw, .98rem);
  line-height: 1.46;
  letter-spacing: .005em;
}

.mht-who-card--one .mht-who-card__title { max-width: 250px; }
.mht-who-card--two .mht-who-card__title,
.mht-who-card--three .mht-who-card__title { margin-left: 0; }
.mht-who-card--three .mht-who-card__content { grid-template-columns: clamp(70px, 6.4vw, 90px) 1fr; }

@media (max-width: 980px) {
  .mht-who-scroll { height: auto; }
  .mht-who-scroll__pin {
    position: relative;
    height: auto;
    padding-top: 82px;
    padding-bottom: 90px;
  }
  .mht-who-scroll__title {
    position: relative;
    left: auto;
    top: auto;
    z-index: 1;
    width: 100%;
    transform: none !important;
    opacity: 1 !important;
    margin: 0 auto 8px;
    font-size: clamp(3.2rem, 16vw, 6.4rem);
    text-align: left;
  }
  .mht-who-scroll__scene {
    height: auto;
    min-height: auto;
    padding: 24px 18px;
    transform: none !important;
  }
  .mht-who-scroll__stage {
    position: relative;
    inset: auto;
    display: grid;
    gap: 16px;
  }
  .mht-who-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    transform: none !important;
  }
  /* Phase 10.2.1: only hide under js-enabled; JS adds this class so without JS it won't exist anyway */
  .js-enabled .mht-who-card--mreveal {
    opacity: 0;
    transform: translateY(26px) !important;
    transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
  }
  .mht-who-card--mreveal.is-revealed {
    opacity: 1;
    transform: translateY(0) !important;
  }
  .mht-who-card--mreveal:nth-child(2) { transition-delay: 80ms; }
  .mht-who-card--mreveal:nth-child(3) { transition-delay: 160ms; }
  .mht-who-card__content,
  .mht-who-card--three .mht-who-card__content {
    position: relative;
    margin-top: 20px;
    grid-template-columns: 90px 1fr;
  }
}

@media (max-width: 560px) {
  .mht-who-scroll__scene { border-radius: 22px; }
  .mht-who-card { padding: 22px; }
  .mht-who-card__content,
  .mht-who-card--three .mht-who-card__content {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .mht-who-card__visual,
  .mht-who-card__structure-icon,
  .mht-who-card__perception-icon { width: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .mht-who-scroll { height: auto; }
  .mht-who-scroll__pin { position: relative; height: auto; }
  .mht-who-scroll__bg { animation: none !important; }
  .mht-who-scroll__title,
  .mht-who-card {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ── MIDO PHASE 9.6.2 HOW THINK LOGO WALL SEAM FIX ACTIVE ──
   The scene box-shadow was creating a hard bottom edge/shadow
   that looked like a separator before the Client Logo Wall.
   Fix: reduce/soften the bottom shadow, add negative margin to
   the logo wall so the sections bleed into each other seamlessly.
   Do not touch the scene visual itself. ── */
.mht-who-scroll__scene {
  box-shadow:
    0 8px 24px rgba(0,0,0,.12),
    0 30px 80px rgba(0,0,0,.12),
    0 60px 140px rgba(0,0,0,.06);
}

/* Phase 10.10.40: shared travelling lavender progress cue */
.mht-who-scroll__scene {
  --who-progress: 0;
}

.mht-who-scroll__scene::after {
  content: "";
  position: absolute;
  z-index: 12;
  top: 14px;
  left: calc(8% + (84% * var(--who-progress, 0)));
  width: clamp(54px, 6vw, 92px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(183,140,255,0), rgba(183,140,255,.92), rgba(197,166,211,.72), rgba(183,140,255,0));
  box-shadow: 0 0 18px rgba(183,140,255,.52), 0 0 34px rgba(197,166,211,.22);
  transform: translateX(-50%);
  pointer-events: none;
}

/* =============================================================================
   MIDO PHASE 10.10.41 — How I Think spacing/progress alignment
   Match the How I Work scene breathing room under the nav and keep progress cue
   in the same top-inside position for both sticky mesh scenes.
   ========================================================================== */
@media (min-width: 981px) {
  .mht-who-scroll__scene::after {
    top: 18px;
    left: calc(8% + (84% * var(--who-progress, 0)));
  }
}

/* =============================================================================
   MIDO PHASE 10.10.42 — How I Think progress cleanup
   Keep one travelling lavender cue only and place it consistently inside the
   purple scene. No extra/legacy progress line should remain visible.
   ========================================================================== */
@media (min-width: 981px) {
  .mht-who-scroll__scene::after {
    content: "" !important;
    position: absolute !important;
    z-index: 20 !important;
    top: clamp(28px, 3vw, 38px) !important;
    left: calc(10% + (80% * var(--who-progress, 0))) !important;
    width: clamp(54px, 5.6vw, 88px) !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, rgba(183,140,255,0), rgba(183,140,255,.92), rgba(230,216,255,.58), rgba(183,140,255,0)) !important;
    box-shadow: 0 0 18px rgba(183,140,255,.50), 0 0 34px rgba(197,166,211,.18) !important;
    opacity: .86 !important;
    transform: translateX(-50%) !important;
    pointer-events: none !important;
  }
}

/* =============================================================================
   MIDO PHASE 10.10.44 — Border-mounted progress cue
   Keep the travelling lavender cue attached to the top border of the purple
   scene. This removes the floating/under-border look from previous phases.
   ========================================================================== */
@media (min-width: 981px) {
  .mht-who-scroll__scene::after {
    top: 0 !important;
    left: calc(10% + (80% * var(--who-progress, 0))) !important;
    transform: translateX(-50%) !important;
    width: clamp(54px, 5.6vw, 88px) !important;
    height: 2px !important;
    z-index: 30 !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, rgba(183,140,255,0), rgba(183,140,255,.94), rgba(230,216,255,.64), rgba(183,140,255,0)) !important;
    box-shadow: 0 0 14px rgba(183,140,255,.46), 0 0 28px rgba(197,166,211,.18) !important;
    opacity: .9 !important;
    pointer-events: none !important;
  }
}

/* =============================================================================
   MIDO PHASE 10.10.45 — How I Think mobile progress border lock
   Root cause: desktop progress was moved to the border, but the base/mobile
   pseudo-element was still using top:14px. This locks the cue to the top border
   on every viewport.
   ========================================================================== */
.mht-who-scroll__scene::after {
  top: 0 !important;
  z-index: 30 !important;
  height: 2px !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
}

@media (max-width: 980px) {
  .mht-who-scroll__scene::after {
    top: 0 !important;
    left: calc(12% + (76% * var(--who-progress, 0))) !important;
    width: clamp(58px, 18vw, 92px) !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, rgba(183,140,255,0), rgba(183,140,255,.94), rgba(230,216,255,.64), rgba(183,140,255,0)) !important;
    box-shadow: 0 0 14px rgba(183,140,255,.46), 0 0 28px rgba(197,166,211,.18) !important;
    opacity: .9 !important;
  }
}

/* =============================================================================
   MIDO PHASE 10.10.50 — Mobile progress full-travel fix
   Phone progress now travels the full top border instead of stopping inside the
   old 12%/88% safe range. The marker is clipped naturally by the scene edge.
   ========================================================================== */
@media (max-width: 980px) {
  .mht-who-scroll__scene::after {
    left: calc(var(--who-progress, 0) * 100%) !important;
  }
}

/* =============================================================================
   MIDO PHASE 10.10.64 — Mobile section heading scale lock
   Sticky section titles are dramatic on desktop because they animate behind the
   scene. On mobile they are normal section headers, so match the homepage
   .mht-content-heading scale used by "Different needs. Same standard.".
   ========================================================================== */
@media (max-width: 900px) {
  .mht-who-scroll__title {
    font-size: var(--content-heading-size) !important;
    line-height: var(--content-heading-line-height) !important;
    letter-spacing: var(--content-heading-letter-spacing) !important;
    font-weight: var(--content-heading-weight) !important;
  }
}
